misp-ui-library-test 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/README.md +113 -0
  2. package/dist/theme-chalk/alert/index.scss +152 -0
  3. package/dist/theme-chalk/avatar/index.scss +51 -0
  4. package/dist/theme-chalk/backtop/index.scss +38 -0
  5. package/dist/theme-chalk/badge/index.scss +63 -0
  6. package/dist/theme-chalk/breadcrumb/index.scss +36 -0
  7. package/dist/theme-chalk/breadcrumb-item/index.scss +36 -0
  8. package/dist/theme-chalk/button/index.scss +157 -0
  9. package/dist/theme-chalk/card/index.scss +38 -0
  10. package/dist/theme-chalk/chart/index.scss +21 -0
  11. package/dist/theme-chalk/checkbox/index.scss +358 -0
  12. package/dist/theme-chalk/col/index.scss +131 -0
  13. package/dist/theme-chalk/container/index.scss +40 -0
  14. package/dist/theme-chalk/css/alert.css +484 -0
  15. package/dist/theme-chalk/css/avatar.css +409 -0
  16. package/dist/theme-chalk/css/backtop.css +401 -0
  17. package/dist/theme-chalk/css/badge.css +419 -0
  18. package/dist/theme-chalk/css/breadcrumb-item.css +395 -0
  19. package/dist/theme-chalk/css/breadcrumb.css +395 -0
  20. package/dist/theme-chalk/css/button.css +587 -0
  21. package/dist/theme-chalk/css/card.css +397 -0
  22. package/dist/theme-chalk/css/chart.css +386 -0
  23. package/dist/theme-chalk/css/checkbox.css +648 -0
  24. package/dist/theme-chalk/css/col.css +2111 -0
  25. package/dist/theme-chalk/css/container.css +404 -0
  26. package/dist/theme-chalk/css/dialog.css +505 -0
  27. package/dist/theme-chalk/css/divider.css +405 -0
  28. package/dist/theme-chalk/css/drawer.css +546 -0
  29. package/dist/theme-chalk/css/empty.css +394 -0
  30. package/dist/theme-chalk/css/form.css +561 -0
  31. package/dist/theme-chalk/css/icon.css +1534 -0
  32. package/dist/theme-chalk/css/image.css +400 -0
  33. package/dist/theme-chalk/css/input-number.css +424 -0
  34. package/dist/theme-chalk/css/input.css +721 -0
  35. package/dist/theme-chalk/css/link.css +424 -0
  36. package/dist/theme-chalk/css/loading.css +483 -0
  37. package/dist/theme-chalk/css/message-box.css +479 -0
  38. package/dist/theme-chalk/css/message.css +456 -0
  39. package/dist/theme-chalk/css/no-data.css +397 -0
  40. package/dist/theme-chalk/css/notification.css +431 -0
  41. package/dist/theme-chalk/css/page-header.css +396 -0
  42. package/dist/theme-chalk/css/pagination.css +565 -0
  43. package/dist/theme-chalk/css/popover.css +421 -0
  44. package/dist/theme-chalk/css/popper.css +454 -0
  45. package/dist/theme-chalk/css/progress.css +451 -0
  46. package/dist/theme-chalk/css/radio.css +626 -0
  47. package/dist/theme-chalk/css/rate.css +414 -0
  48. package/dist/theme-chalk/css/result.css +403 -0
  49. package/dist/theme-chalk/css/row.css +433 -0
  50. package/dist/theme-chalk/css/scrollbar.css +422 -0
  51. package/dist/theme-chalk/css/select.css +1897 -0
  52. package/dist/theme-chalk/css/skeleton-item.css +407 -0
  53. package/dist/theme-chalk/css/skeleton.css +390 -0
  54. package/dist/theme-chalk/css/slider.css +460 -0
  55. package/dist/theme-chalk/css/spinner.css +403 -0
  56. package/dist/theme-chalk/css/statistic.css +396 -0
  57. package/dist/theme-chalk/css/status-timeline-chart.css +388 -0
  58. package/dist/theme-chalk/css/step.css +496 -0
  59. package/dist/theme-chalk/css/steps.css +496 -0
  60. package/dist/theme-chalk/css/switch.css +507 -0
  61. package/dist/theme-chalk/css/tab-pane.css +457 -0
  62. package/dist/theme-chalk/css/table.css +461 -0
  63. package/dist/theme-chalk/css/tabs-navigation.css +925 -0
  64. package/dist/theme-chalk/css/tabs.css +457 -0
  65. package/dist/theme-chalk/css/tag.css +599 -0
  66. package/dist/theme-chalk/css/time-picker.css +683 -0
  67. package/dist/theme-chalk/css/timeline-item.css +459 -0
  68. package/dist/theme-chalk/css/timeline.css +459 -0
  69. package/dist/theme-chalk/css/tooltip.css +485 -0
  70. package/dist/theme-chalk/css/tree.css +473 -0
  71. package/dist/theme-chalk/css/upload.css +665 -0
  72. package/dist/theme-chalk/dialog/index.scss +168 -0
  73. package/dist/theme-chalk/divider/index.scss +46 -0
  74. package/dist/theme-chalk/drawer/index.scss +172 -0
  75. package/dist/theme-chalk/empty/index.scss +36 -0
  76. package/dist/theme-chalk/fonts/element-icons.ttf +0 -0
  77. package/dist/theme-chalk/fonts/element-icons.woff +0 -0
  78. package/dist/theme-chalk/form/index.scss +220 -0
  79. package/dist/theme-chalk/icon/index.scss +1171 -0
  80. package/dist/theme-chalk/image/index.scss +39 -0
  81. package/dist/theme-chalk/index.scss +127 -0
  82. package/dist/theme-chalk/input/index.scss +363 -0
  83. package/dist/theme-chalk/input-number/index.scss +71 -0
  84. package/dist/theme-chalk/link/index.scss +75 -0
  85. package/dist/theme-chalk/loading/index.scss +131 -0
  86. package/dist/theme-chalk/message/index.scss +100 -0
  87. package/dist/theme-chalk/message-box/index.scss +131 -0
  88. package/dist/theme-chalk/mixins.scss +203 -0
  89. package/dist/theme-chalk/no-data/index.scss +36 -0
  90. package/dist/theme-chalk/notification/index.scss +76 -0
  91. package/dist/theme-chalk/page-header/index.scss +36 -0
  92. package/dist/theme-chalk/pagination/index.scss +225 -0
  93. package/dist/theme-chalk/popover/index.scss +56 -0
  94. package/dist/theme-chalk/popper/index.scss +89 -0
  95. package/dist/theme-chalk/progress/index.scss +105 -0
  96. package/dist/theme-chalk/radio/index.scss +328 -0
  97. package/dist/theme-chalk/rate/index.scss +56 -0
  98. package/dist/theme-chalk/reset.scss +262 -0
  99. package/dist/theme-chalk/result/index.scss +46 -0
  100. package/dist/theme-chalk/row/index.scss +88 -0
  101. package/dist/theme-chalk/scrollbar/index.scss +67 -0
  102. package/dist/theme-chalk/select/index.scss +223 -0
  103. package/dist/theme-chalk/skeleton/index.scss +30 -0
  104. package/dist/theme-chalk/skeleton-item/index.scss +49 -0
  105. package/dist/theme-chalk/slider/index.scss +113 -0
  106. package/dist/theme-chalk/spinner/index.scss +40 -0
  107. package/dist/theme-chalk/statistic/index.scss +38 -0
  108. package/dist/theme-chalk/status-timeline-chart/index.scss +23 -0
  109. package/dist/theme-chalk/step/index.scss +160 -0
  110. package/dist/theme-chalk/steps/index.scss +160 -0
  111. package/dist/theme-chalk/switch/index.scss +153 -0
  112. package/dist/theme-chalk/tab-pane/index.scss +112 -0
  113. package/dist/theme-chalk/table/index.scss +110 -0
  114. package/dist/theme-chalk/tabs/index.scss +112 -0
  115. package/dist/theme-chalk/tabs-navigation/index.scss +631 -0
  116. package/dist/theme-chalk/tag/index.scss +138 -0
  117. package/dist/theme-chalk/themes/blue.scss +76 -0
  118. package/dist/theme-chalk/themes/dark.scss +99 -0
  119. package/dist/theme-chalk/themes/index.scss +260 -0
  120. package/dist/theme-chalk/themes/light.scss +99 -0
  121. package/dist/theme-chalk/time-picker/index.scss +332 -0
  122. package/dist/theme-chalk/timeline/index.scss +119 -0
  123. package/dist/theme-chalk/timeline-item/index.scss +119 -0
  124. package/dist/theme-chalk/tooltip/index.scss +122 -0
  125. package/dist/theme-chalk/tree/index.scss +125 -0
  126. package/dist/theme-chalk/upload/index.scss +348 -0
  127. package/dist/theme-chalk/variables.scss +93 -0
  128. package/dist/vue2-ui-library.cjs.temp.js.map +1 -0
  129. package/dist/vue2-ui-library.common.js +28 -0
  130. package/dist/vue2-ui-library.common.js.map +1 -0
  131. package/dist/vue2-ui-library.esm.js +29 -0
  132. package/dist/vue2-ui-library.umd.js +27 -0
  133. package/package.json +161 -0
  134. package/src/directives/clickoutside/index.js +111 -0
  135. package/src/directives/init/index.js +50 -0
  136. package/src/directives/resize/index.js +69 -0
  137. package/src/index.js +174 -0
  138. package/src/mixins/emitter.js +47 -0
  139. package/src/mixins/focus.js +42 -0
  140. package/src/mixins/locale.js +24 -0
  141. package/src/mixins/migrating.js +46 -0
  142. package/src/packages/alert/index.js +12 -0
  143. package/src/packages/alert/src/main.vue +98 -0
  144. package/src/packages/aside/index.js +12 -0
  145. package/src/packages/aside/src/main.vue +20 -0
  146. package/src/packages/auto-grid-layout/index.js +18 -0
  147. package/src/packages/auto-grid-layout/prop.js +92 -0
  148. package/src/packages/auto-grid-layout/src/components/GridItem.vue +759 -0
  149. package/src/packages/auto-grid-layout/src/components/GridLayout.vue +367 -0
  150. package/src/packages/auto-grid-layout/src/main.vue +287 -0
  151. package/src/packages/auto-grid-layout/src/utils/DOM.js +46 -0
  152. package/src/packages/auto-grid-layout/src/utils/interact.js +333 -0
  153. package/src/packages/auto-grid-layout/src/utils/responsiveUtils.js +75 -0
  154. package/src/packages/auto-grid-layout/src/utils/utils.js +339 -0
  155. package/src/packages/autocomplete/index.js +12 -0
  156. package/src/packages/autocomplete/src/main.vue +170 -0
  157. package/src/packages/avatar/index.js +12 -0
  158. package/src/packages/avatar/src/main.vue +87 -0
  159. package/src/packages/backtop/index.js +12 -0
  160. package/src/packages/backtop/src/main.vue +120 -0
  161. package/src/packages/badge/index.js +12 -0
  162. package/src/packages/badge/src/main.vue +53 -0
  163. package/src/packages/breadcrumb/index.js +12 -0
  164. package/src/packages/breadcrumb/src/main.vue +34 -0
  165. package/src/packages/breadcrumb-item/index.js +12 -0
  166. package/src/packages/breadcrumb-item/src/main.vue +41 -0
  167. package/src/packages/button/index.js +13 -0
  168. package/src/packages/button/src/main.vue +106 -0
  169. package/src/packages/calendar/index.js +12 -0
  170. package/src/packages/calendar/src/main.vue +173 -0
  171. package/src/packages/card/index.js +12 -0
  172. package/src/packages/card/src/main.vue +26 -0
  173. package/src/packages/carousel/index.js +12 -0
  174. package/src/packages/carousel/src/main.vue +186 -0
  175. package/src/packages/carousel-item/index.js +12 -0
  176. package/src/packages/carousel-item/src/main.vue +34 -0
  177. package/src/packages/cascader/index.js +12 -0
  178. package/src/packages/cascader/src/main.vue +232 -0
  179. package/src/packages/chart/index.js +7 -0
  180. package/src/packages/chart/src/axis-chart.js +700 -0
  181. package/src/packages/chart/src/main.vue +828 -0
  182. package/src/packages/chart/src/utils.js +21 -0
  183. package/src/packages/checkbox/index.js +44 -0
  184. package/src/packages/checkbox/src/main.vue +312 -0
  185. package/src/packages/col/index.js +12 -0
  186. package/src/packages/col/src/main.vue +85 -0
  187. package/src/packages/collapse/index.js +12 -0
  188. package/src/packages/collapse/src/main.vue +69 -0
  189. package/src/packages/collapse-item/index.js +12 -0
  190. package/src/packages/collapse-item/src/main.vue +75 -0
  191. package/src/packages/color-picker/index.js +12 -0
  192. package/src/packages/color-picker/src/main.vue +206 -0
  193. package/src/packages/container/index.js +12 -0
  194. package/src/packages/container/src/main.vue +33 -0
  195. package/src/packages/date-picker/index.js +12 -0
  196. package/src/packages/date-picker/src/main.vue +246 -0
  197. package/src/packages/descriptions/index.js +12 -0
  198. package/src/packages/descriptions/src/main.vue +89 -0
  199. package/src/packages/descriptions-item/index.js +12 -0
  200. package/src/packages/descriptions-item/src/main.vue +26 -0
  201. package/src/packages/dialog/index.js +12 -0
  202. package/src/packages/dialog/src/main.vue +336 -0
  203. package/src/packages/divider/index.js +12 -0
  204. package/src/packages/divider/src/main.vue +37 -0
  205. package/src/packages/drawer/index.js +7 -0
  206. package/src/packages/drawer/src/main.vue +310 -0
  207. package/src/packages/dropdown/index.js +12 -0
  208. package/src/packages/dropdown/src/main.vue +82 -0
  209. package/src/packages/dropdown-menu-item/index.js +12 -0
  210. package/src/packages/dropdown-menu-item/src/main.vue +29 -0
  211. package/src/packages/empty/index.js +12 -0
  212. package/src/packages/empty/src/img-empty.vue +12 -0
  213. package/src/packages/empty/src/main.vue +49 -0
  214. package/src/packages/footer/index.js +12 -0
  215. package/src/packages/footer/src/main.vue +20 -0
  216. package/src/packages/form/index.js +13 -0
  217. package/src/packages/form/src/form-field.vue +790 -0
  218. package/src/packages/form/src/form-item.vue +464 -0
  219. package/src/packages/form/src/label-wrap.vue +127 -0
  220. package/src/packages/form/src/main.vue +442 -0
  221. package/src/packages/form-item/index.js +11 -0
  222. package/src/packages/header/index.js +12 -0
  223. package/src/packages/header/src/main.vue +20 -0
  224. package/src/packages/icon/index.js +12 -0
  225. package/src/packages/icon/src/main.vue +48 -0
  226. package/src/packages/image/index.js +12 -0
  227. package/src/packages/image/src/main.vue +224 -0
  228. package/src/packages/input/index.js +13 -0
  229. package/src/packages/input/src/calcTextareaHeight.js +123 -0
  230. package/src/packages/input/src/main.vue +510 -0
  231. package/src/packages/input-number/index.js +12 -0
  232. package/src/packages/input-number/src/main.vue +121 -0
  233. package/src/packages/link/index.js +12 -0
  234. package/src/packages/link/src/main.vue +53 -0
  235. package/src/packages/loading/index.js +17 -0
  236. package/src/packages/loading/src/directive.js +54 -0
  237. package/src/packages/loading/src/main.vue +38 -0
  238. package/src/packages/loading/src/service.js +63 -0
  239. package/src/packages/main/index.js +12 -0
  240. package/src/packages/main/src/main.vue +12 -0
  241. package/src/packages/menu/index.js +12 -0
  242. package/src/packages/menu/src/main.vue +117 -0
  243. package/src/packages/menu-item/index.js +12 -0
  244. package/src/packages/menu-item/src/main.vue +61 -0
  245. package/src/packages/message/index.js +95 -0
  246. package/src/packages/message/src/main.vue +131 -0
  247. package/src/packages/message-box/index.js +75 -0
  248. package/src/packages/message-box/src/main.vue +207 -0
  249. package/src/packages/no-data/index.js +8 -0
  250. package/src/packages/no-data/src/main.vue +23 -0
  251. package/src/packages/notification/index.js +72 -0
  252. package/src/packages/notification/src/main.vue +139 -0
  253. package/src/packages/option/index.js +13 -0
  254. package/src/packages/page-header/index.js +12 -0
  255. package/src/packages/page-header/src/main.vue +27 -0
  256. package/src/packages/pagination/index.js +12 -0
  257. package/src/packages/pagination/src/main.vue +255 -0
  258. package/src/packages/popconfirm/index.js +12 -0
  259. package/src/packages/popconfirm/src/main.vue +89 -0
  260. package/src/packages/popover/index.js +12 -0
  261. package/src/packages/popover/src/main.vue +452 -0
  262. package/src/packages/progress/index.js +12 -0
  263. package/src/packages/progress/src/main.vue +236 -0
  264. package/src/packages/radio/index.js +44 -0
  265. package/src/packages/radio/src/main.vue +291 -0
  266. package/src/packages/rate/index.js +12 -0
  267. package/src/packages/rate/src/main.vue +129 -0
  268. package/src/packages/result/index.js +12 -0
  269. package/src/packages/result/src/main.vue +52 -0
  270. package/src/packages/row/index.js +12 -0
  271. package/src/packages/row/src/main.vue +57 -0
  272. package/src/packages/scrollbar/index.js +12 -0
  273. package/src/packages/scrollbar/src/bar.vue +116 -0
  274. package/src/packages/scrollbar/src/main.vue +124 -0
  275. package/src/packages/select/index.js +15 -0
  276. package/src/packages/select/src/clickoutside.js +20 -0
  277. package/src/packages/select/src/main.vue +1055 -0
  278. package/src/packages/select/src/navigation-mixin.js +49 -0
  279. package/src/packages/select/src/option.vue +249 -0
  280. package/src/packages/select/src/select-dropdown.vue +95 -0
  281. package/src/packages/select/src/utils.js +5 -0
  282. package/src/packages/skeleton/index.js +12 -0
  283. package/src/packages/skeleton/src/main.vue +76 -0
  284. package/src/packages/skeleton-item/index.js +12 -0
  285. package/src/packages/skeleton-item/src/img-placeholder.vue +13 -0
  286. package/src/packages/skeleton-item/src/main.vue +22 -0
  287. package/src/packages/slider/index.js +12 -0
  288. package/src/packages/slider/src/main.vue +176 -0
  289. package/src/packages/spinner/index.js +12 -0
  290. package/src/packages/spinner/src/main.vue +27 -0
  291. package/src/packages/statistic/index.js +12 -0
  292. package/src/packages/statistic/src/main.vue +100 -0
  293. package/src/packages/status-timeline-chart/index.js +7 -0
  294. package/src/packages/status-timeline-chart/src/constants.js +20 -0
  295. package/src/packages/status-timeline-chart/src/main.vue +499 -0
  296. package/src/packages/status-timeline-chart/src/option-builder.js +475 -0
  297. package/src/packages/step/index.js +12 -0
  298. package/src/packages/step/src/main.vue +183 -0
  299. package/src/packages/steps/index.js +12 -0
  300. package/src/packages/steps/src/main.vue +57 -0
  301. package/src/packages/submenu/index.js +12 -0
  302. package/src/packages/submenu/src/main.vue +68 -0
  303. package/src/packages/switch/index.js +12 -0
  304. package/src/packages/switch/src/main.vue +166 -0
  305. package/src/packages/tab-pane/index.js +12 -0
  306. package/src/packages/tab-pane/src/main.vue +74 -0
  307. package/src/packages/table/index.js +8 -0
  308. package/src/packages/table/src/components/PagePagination.vue +82 -0
  309. package/src/packages/table/src/main.vue +153 -0
  310. package/src/packages/tabs/index.js +12 -0
  311. package/src/packages/tabs/src/main.vue +167 -0
  312. package/src/packages/tabs-navigation/index.js +7 -0
  313. package/src/packages/tabs-navigation/src/main.vue +462 -0
  314. package/src/packages/tag/index.js +12 -0
  315. package/src/packages/tag/src/main.vue +194 -0
  316. package/src/packages/time-picker/index.js +17 -0
  317. package/src/packages/time-picker/src/date-utils.js +455 -0
  318. package/src/packages/time-picker/src/main.vue +321 -0
  319. package/src/packages/time-picker/src/pane/date-range.vue +193 -0
  320. package/src/packages/time-picker/src/pane/date-time-range.vue +362 -0
  321. package/src/packages/time-picker/src/pane/date-time.vue +362 -0
  322. package/src/packages/time-picker/src/pane/date.vue +441 -0
  323. package/src/packages/time-picker/src/pane/time.vue +260 -0
  324. package/src/packages/time-picker/src/time-input.vue +203 -0
  325. package/src/packages/time-picker/src/time-range-input.vue +170 -0
  326. package/src/packages/timeline/index.js +12 -0
  327. package/src/packages/timeline/src/main.vue +24 -0
  328. package/src/packages/timeline-item/index.js +12 -0
  329. package/src/packages/timeline-item/src/main.vue +78 -0
  330. package/src/packages/tooltip/index.js +12 -0
  331. package/src/packages/tooltip/src/main.js +367 -0
  332. package/src/packages/transfer/index.js +8 -0
  333. package/src/packages/transfer/src/main.vue +229 -0
  334. package/src/packages/transfer/src/transfer-panel.vue +245 -0
  335. package/src/packages/transitions/collapse-transition.js +75 -0
  336. package/src/packages/tree/index.js +12 -0
  337. package/src/packages/tree/src/main.vue +322 -0
  338. package/src/packages/tree/src/model/node.js +348 -0
  339. package/src/packages/tree/src/model/tree-store.js +354 -0
  340. package/src/packages/tree/src/model/util.js +10 -0
  341. package/src/packages/tree/src/tree-node.vue +262 -0
  342. package/src/packages/upload/index.js +9 -0
  343. package/src/packages/upload/src/main.vue +415 -0
  344. package/src/playground/mixins/element.js +98 -0
  345. package/src/playground/types/element.js +197 -0
  346. package/src/playground/types/layout.js +80 -0
  347. package/src/plugins/i18n.js +125 -0
  348. package/src/styles/fonts/element-icons.ttf +0 -0
  349. package/src/styles/fonts/element-icons.woff +0 -0
  350. package/src/styles/index.scss +138 -0
  351. package/src/styles/reset.scss +257 -0
  352. package/src/styles/themes/blue.scss +75 -0
  353. package/src/styles/themes/dark.scss +98 -0
  354. package/src/styles/themes/index.scss +34 -0
  355. package/src/styles/themes/light.scss +98 -0
  356. package/src/styles/themes/variables.scss +233 -0
  357. package/src/styles/variables.scss +146 -0
  358. package/src/utils/async-validator/index.js +659 -0
  359. package/src/utils/browser/index.js +39 -0
  360. package/src/utils/color.js +76 -0
  361. package/src/utils/dom/index.js +421 -0
  362. package/src/utils/dom/scrollbar-width.js +49 -0
  363. package/src/utils/draggable/core.js +379 -0
  364. package/src/utils/draggable/draggable.js +478 -0
  365. package/src/utils/draggable/index.js +61 -0
  366. package/src/utils/draggable/sortable.js +751 -0
  367. package/src/utils/lodash/index.js +2395 -0
  368. package/src/utils/moment/index.js +909 -0
  369. package/src/utils/playground/index.js +37 -0
  370. package/src/utils/popper/index.js +308 -0
  371. package/src/utils/popper/popper.js +1132 -0
  372. package/src/utils/popper/popup-manager.js +288 -0
  373. package/src/utils/popper/popup.js +344 -0
@@ -0,0 +1,27 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("Vue2UILibrary",["vue"],e):"object"==typeof exports?exports.Vue2UILibrary=e(require("vue")):t.Vue2UILibrary=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=119)}([function(t,e,i){"use strict";i.d(e,"p",(function(){return g})),i.d(e,"G",(function(){return m})),i.d(e,"d",(function(){return y})),i.d(e,"I",(function(){return v})),i.d(e,"J",(function(){return b})),i.d(e,"m",(function(){return x})),i.d(e,"i",(function(){return _})),i.d(e,"r",(function(){return w})),i.d(e,"s",(function(){return S})),i.d(e,"K",(function(){return C})),i.d(e,"u",(function(){return M})),i.d(e,"k",(function(){return k})),i.d(e,"H",(function(){return O})),i.d(e,"N",(function(){return A})),i.d(e,"n",(function(){return I})),i.d(e,"o",(function(){return T})),i.d(e,"F",(function(){return D})),i.d(e,"c",(function(){return L})),i.d(e,"h",(function(){return P})),i.d(e,"t",(function(){return j})),i.d(e,"w",(function(){return N})),i.d(e,"C",(function(){return E})),i.d(e,"D",(function(){return R})),i.d(e,"z",(function(){return z})),i.d(e,"A",(function(){return B})),i.d(e,"E",(function(){return F})),i.d(e,"v",(function(){return H})),i.d(e,"x",(function(){return $})),i.d(e,"y",(function(){return G})),i.d(e,"B",(function(){return W})),i.d(e,"l",(function(){return U})),i.d(e,"O",(function(){return Y})),i.d(e,"P",(function(){return q})),i.d(e,"Q",(function(){return X})),i.d(e,"S",(function(){return Z})),i.d(e,"M",(function(){return K})),i.d(e,"b",(function(){return Q})),i.d(e,"T",(function(){return J})),i.d(e,"R",(function(){return tt})),i.d(e,"f",(function(){return ot})),i.d(e,"e",(function(){return at})),i.d(e,"g",(function(){return st})),i.d(e,"j",(function(){return lt})),i.d(e,"q",(function(){return ut})),i.d(e,"L",(function(){return ct})),i.d(e,"a",(function(){return ht}));var n=i(8),r=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f=2311;function g(){return f++}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,i=a.call(t);if("[object Array]"===i){if(!et(t)){e=[];for(var n=0,s=t.length;n<s;n++)e[n]=y(t[n])}}else if(o[i]){if(!et(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(n=0,s=t.length;n<s;n++)e[n]=t[n]}}}else if(!r[i]&&!et(t)&&!H(t))for(var u in e={},t)t.hasOwnProperty(u)&&"__proto__"!==u&&(e[u]=y(t[u]));return e}function v(t,e,i){if(!B(e)||!B(t))return i?y(e):t;for(var n in e)if(e.hasOwnProperty(n)&&"__proto__"!==n){var r=t[n],o=e[n];!B(o)||!B(r)||j(o)||j(r)||H(o)||H(r)||V(o)||V(r)||et(o)||et(r)?!i&&n in t||(t[n]=y(e[n])):v(r,o,i)}return t}function b(t,e){for(var i=t[0],n=1,r=t.length;n<r;n++)i=v(i,t[n],e);return i}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&"__proto__"!==i&&(t[i]=e[i]);return t}function _(t,e,i){for(var n=D(e),r=0,o=n.length;r<o;r++){var a=n[r];(i?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}n.d.createCanvas;function w(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function S(t,e){var i=t.prototype;function n(){}for(var r in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function C(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else _(t,e,i)}function M(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function k(t,e,i){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function O(t,e,i){if(!t)return[];if(!e)return Z(t);if(t.map&&t.map===h)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function A(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,t);return i}}function I(t,e,i){if(!t)return[];if(!e)return Z(t);if(t.filter&&t.filter===u)return t.filter(e,i);for(var n=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function T(t,e,i){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]}function D(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}var L=p&&N(p.bind)?p.call.bind(p.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(c.call(arguments)))}};function P(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function j(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function N(t){return"function"==typeof t}function E(t){return"string"==typeof t}function R(t){return"[object String]"===a.call(t)}function z(t){return"number"==typeof t}function B(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function V(t){return!!r[a.call(t)]}function F(t){return!!o[a.call(t)]}function H(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function $(t){return null!=t.colorStops}function G(t){return null!=t.image}function W(t){return"[object RegExp]"===a.call(t)}function U(t){return t!=t}function Y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function q(t,e){return null!=t?t:e}function X(t,e,i){return null!=t?t:null!=e?e:i}function Z(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return c.apply(t,e)}function K(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Q(t,e){if(!t)throw new Error(e)}function J(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function tt(t){t.__ec_primitive__=!0}function et(t){return t.__ec_primitive__}var it=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return D(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),nt="function"==typeof Map;var rt=function(){function t(e){var i=j(e);this.data=nt?new Map:new it;var n=this;function r(t,e){i?n.set(t,e):n.set(e,t)}e instanceof t?e.each(r):e&&k(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(i,n){t.call(e,i,n)}))},t.prototype.keys=function(){var t=this.data.keys();return nt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ot(t){return new rt(t)}function at(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function st(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&x(i,e),i}function lt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function ct(){}var ht=180/Math.PI},function(t,e,i){"use strict";function n(t,e,i,n,r,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}i.d(e,"a",(function(){return n}))},function(t,e,i){"use strict";function n(t){return"number"==typeof t}function r(t){return"number"==typeof t&&isFinite(t)}function o(t){return Number.isNaN(t)}function a(t){return"string"==typeof t}function s(t){return"function"==typeof t}function l(t){return Array.isArray(t)}function u(t){if(null==t)return!1;const e=t.length;return"number"==typeof e&&e>=0&&Number.isInteger(e)}function c(t){const e=typeof t;return null!==t&&("object"===e||"function"===e)}function h(t){if(!c(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function d(t){return null!==t&&"object"==typeof t}function p(t){return/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(t)}function f(t){return null==t||(l(t)||a(t)?0===t.length:!!d(t)&&0===Object.keys(t).length)}function g(t,e){if(t===e)return!0;if(null===t||null===e)return t===e;if(typeof t!=typeof e)return!1;if(l(t)&&l(e)){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!g(t[i],e[i]))return!1;return!0}if(h(t)&&h(e)){const i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(const n of i){if(!Object.prototype.hasOwnProperty.call(e,n))return!1;if(!g(t[n],e[n]))return!1}return!0}return!1}function m(t){return u(t)?[...new Set(t)]:[]}function y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!u(t))return[];const i=[];function n(t,r){for(const o of t)l(o)&&r<e?n(o,r+1):i.push(o)}return n(t,0),i}function v(t){return null==t?[]:(c(t)||(t=Object(t)),Object.keys(t))}function b(t,e,i){if(null==t)return i;const n=l(e)?e:String(e).split(".");let r=t;for(const t of n){if(null==r)return i;r=r[t]}return void 0===r?i:r}function x(t,e,i){if(null==t)return t;const n=l(e)?e:String(e).split(".");let r=t;for(let t=0;t<n.length-1;t++){const e=n[t];c(r[e])||(r[e]={}),r=r[e]}return r[n[n.length-1]]=i,t}function _(t,e){if(null==t)return!1;const i=l(e)?e:String(e).split(".");let n=t;for(const t of i){if(null==n)return!1;if(!Object.prototype.hasOwnProperty.call(n,t))return!1;n=n[t]}return!0}function w(t){c(t)||(t={});for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(const e of i){if(!c(e))continue;const i=Object.keys(e);for(const n of i){const i=Object.getOwnPropertyDescriptor(e,n);if(!i)continue;const r=e[n],o=t[n];"get"in i||"set"in i?Object.defineProperty(t,n,i):h(r)&&h(o)?t[n]=w(o,r):l(r)&&l(o)?t[n]=w([],o,r):t[n]=r}}return t}function S(t,e,i){if(null==t){if(i)throw new Error("please transfer a valid prop path to form item!");return{o:null,k:void 0,v:void 0}}if("string"!=typeof e||!e){if(i)throw new Error("please transfer a valid prop path to form item!");return{o:t,k:void 0,v:void 0}}let n=t;const r=(e=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"")).split("."),o=r.length;if(1===o)return{o:t,k:r[0],v:t[r[0]]};let a=0;for(;a<o-1;++a){const t=r[a];if(null==n||"object"!=typeof n){if(i)throw new Error(`Property '${t}' does not exist on ${n} at path '${r.slice(0,a).join(".")}'`);return{o:null,k:t,v:void 0}}if(!(t in n)){if(i)throw new Error("please transfer a valid prop path to form item!");return{o:n,k:t,v:void 0}}n=n[t]}const s=r[a];if(null==n){if(i)throw new Error("please transfer a valid prop path to form item!");return{o:null,k:s,v:void 0}}return{o:n,k:s,v:n[s]}}function C(t){return a(t)?t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase().replace(/^-|-$/g,""):""}function M(t){return a(t)?t.replace(/[-_\s]+(.)?/g,(t,e)=>e?e.toUpperCase():"").replace(/^[A-Z]/,t=>t.toLowerCase()):""}function k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function O(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e<t&&([t,e]=[e,t]),Math.random()*(e-t)+t}function A(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:n=!1}=i;let r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];const s=this,l=()=>{r=null,n||t.apply(s,o)},u=n&&!r;clearTimeout(r),r=setTimeout(l,e),u&&t.apply(s,o)}}function I(){}i.d(e,"k",(function(){return n})),i.d(e,"j",(function(){return o})),i.d(e,"f",(function(){return l})),i.d(e,"i",(function(){return p})),i.d(e,"g",(function(){return f})),i.d(e,"h",(function(){return g})),i.d(e,"d",(function(){return b})),i.d(e,"m",(function(){return w})),i.d(e,"e",(function(){return S})),i.d(e,"l",(function(){return C})),i.d(e,"c",(function(){return k})),i.d(e,"o",(function(){return O})),i.d(e,"a",(function(){return A})),i.d(e,"n",(function(){return I})),e.b={isNil:function(t){return null==t},isUndefined:function(t){return void 0===t},isNull:function(t){return null===t},isBoolean:function(t){return"boolean"==typeof t},isNumber:n,isFiniteNumber:r,isInteger:function(t){return"number"==typeof t&&Number.isInteger(t)},isNaN:o,isString:a,isSymbol:function(t){return"symbol"==typeof t},isFunction:s,isArray:l,isArrayLike:u,isObject:c,isPlainObject:h,isObjectLike:d,isDate:function(t){return t instanceof Date},isRegExp:function(t){return t instanceof RegExp},isPromise:function(t){return c(t)&&s(t.then)},isMap:function(t){return t instanceof Map},isSet:function(t){return t instanceof Set},isWeakMap:function(t){return t instanceof WeakMap},isWeakSet:function(t){return t instanceof WeakSet},isEmpty:f,isEqual:g,find:function(t,e){if(!u(t))return;const i=s(e),n=h(e);for(let r=0;r<t.length;r++){const o=t[r];if(i){if(e(o,r,t))return o}else if(n){if(Object.keys(e).every(t=>o[t]===e[t]))return o}else if(o===e)return o}},indexOf:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=t?t.length:0;if(!n)return-1;const r=i<0?Math.max(0,n+i):i;for(let i=r;i<n;i++)if(t[i]===e)return i;return-1},lastIndexOf:function(t,e,i){const n=t?t.length:0;if(!n)return-1;for(let r=void 0!==i?Math.min(i<0?n+i:i,n-1):n-1;r>=0;r--)if(t[r]===e)return r;return-1},filter:function(t,e){if(!u(t))return[];const i=[];for(let n=0;n<t.length;n++)e(t[n],n,t)&&i.push(t[n]);return i},map:function(t,e){if(!u(t))return[];const i=[],n=s(e),r=a(e);for(let o=0;o<t.length;o++){const a=t[o];n?i.push(e(a,o,t)):r?i.push(a[e]):i.push(a)}return i},uniq:m,flatten:y,flattenDeep:function(t){return u(t)?y(t,1/0):[]},first:function(t){return t&&t.length?t[0]:void 0},last:function(t){return t&&t.length?t[t.length-1]:void 0},initial:function(t){return t&&t.length?t.slice(0,-1):[]},rest:function(t){return t&&t.length?t.slice(1):[]},take:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t&&t.length?t.slice(0,e):[]},takeRight:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!t||!t.length)return[];const i=Math.max(0,t.length-e);return t.slice(i)},concat:function(t){u(t)||(t=[]);for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.concat(...i.map(t=>u(t)?t:[t]))},union:function(t,e){return m([...u(t)?t:[],...u(e)?e:[]])},intersection:function(t,e){if(!u(t)||!u(e))return[];const i=new Set(e);return m(t.filter(t=>i.has(t)))},difference:function(t,e){if(!u(t))return[];if(!u(e))return t.slice();const i=new Set(e);return t.filter(t=>!i.has(t))},chunk:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!u(t)||e<1)return[];const i=[];for(let n=0;n<t.length;n+=e)i.push(t.slice(n,n+e));return i},reverse:function(t){return u(t)?[...t].reverse():[]},slice:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return u(t)?t.slice(e,i):[]},compact:function(t){return u(t)?t.filter(t=>t):[]},drop:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u(t)?t.slice(e):[]},dropRight:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u(t)?t.slice(0,-e):[]},keys:v,values:function(t){return null==t?[]:Object.keys(t).map(e=>t[e])},entries:function(t){return null==t?[]:Object.entries(t)},get:b,set:x,unset:function(t,e){if(null==t)return!0;const i=l(e)?e:String(e).split(".");let n=t;for(let t=0;t<i.length-1;t++){const e=i[t];if(!c(n[e]))return!0;n=n[e]}return delete n[i[i.length-1]]},has:_,size:function(t){return null==t?0:u(t)?t.length:Object.keys(t).length},merge:w,pick:function(t,e){if(!c(t))return{};const i={};for(const n of e)_(t,n)&&x(i,n,b(t,n));return i},omit:function(t,e){if(!c(t))return{};const i={},n=v(t),r=new Set(e);for(const e of n)r.has(e)||(i[e]=t[e]);return i},keysToKebabCase:function t(e){if(!c(e))return e;const i={};for(const[n,r]of Object.entries(e)){i[n.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")]=c(r)?t(r):r}return i},keysToCamelCase:function t(e){if(!c(e))return e;const i={};for(const[n,r]of Object.entries(e)){i[n.replace(/-([a-z])/g,(t,e)=>e.toUpperCase())]=c(r)?t(r):r}return i},kebabCase:C,camelCase:M,pascalCase:function(t){if(!a(t))return"";const e=M(t);return e.charAt(0).toUpperCase()+e.slice(1)},snakeCase:function(t){return a(t)?t.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase():""},capitalize:function(t){return a(t)?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""},repeat:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!a(t)||e<1?"":t.repeat(Math.floor(e))},pad:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";if(!a(t)||e<=t.length)return t;const n=e-t.length,r=Math.floor(n/2),o=n-r;return i.repeat(r)+t+i.repeat(o)},padStart:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";return!a(t)||e<=t.length?t:i.repeat(e-t.length)+t},padEnd:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";return!a(t)||e<=t.length?t:t+i.repeat(e-t.length)},trim:function(t){return a(t)?t.trim():""},trimStart:function(t){return a(t)?t.trimStart():""},trimEnd:function(t){return a(t)?t.trimEnd():""},truncate:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a(t))return"";const{length:i=30,omission:n="...",separator:r=!1}=e;if(t.length<=i)return t;let o=t.slice(0,i-n.length);if(r){const t=o.lastIndexOf(/\s/);t>0&&(o=o.slice(0,t))}return o+n},escape:function(t){if(!a(t))return"";const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return t.replace(/[&<>"']/g,t=>e[t])},unescape:function(t){if(!a(t))return"";const e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};return t.replace(/&(amp|lt|gt|quot|#39);/g,t=>e[t])},round:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r(t))return t;const i=Math.pow(10,e);return Math.round(t*i)/i},ceil:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r(t))return t;const i=Math.pow(10,e);return Math.ceil(t*i)/i},floor:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r(t))return t;const i=Math.pow(10,e);return Math.floor(t*i)/i},random:O,randomInt:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e<t&&([t,e]=[e,t]),t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},clamp:function(t,e,i){return Math.min(Math.max(t,e),i)},isInRange:function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{leftClosed:o=!0,rightClosed:a=!0}=n;if(!r(t)||!r(e)||!r(i))return!1;const[s,l]=e<=i?[e,i]:[i,e],u=o?t>=s:t>s,c=a?t<=l:t<l;return u&&c},debounce:A,throttle:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{leading:n=!0,trailing:r=!0}=i;let o=null,a=0,s=null,l=null;const u=()=>{a=n?Date.now():0,r&&s&&(t.apply(l,s),s=null,l=null)};return function(){const i=Date.now();a||n||(a=i);const c=e-(i-a);for(var h=arguments.length,d=new Array(h),p=0;p<h;p++)d[p]=arguments[p];s=d,l=this,c<=0?(clearTimeout(o),o=null,a=i,t.apply(this,d)):!o&&r&&(o=setTimeout(u,c))}},once:function(t){let e,i=!1;return function(){if(!i){i=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e=t.apply(this,r)}return e}},negate:function(t){return function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return!t.apply(this,i)}},noop:I,identity:function(t){return t},constant:function(t){return()=>t},compose:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((t,e)=>e(t),t)}},pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((t,e)=>e(t),t)}},formatDate:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";if(!t)return"";const i=new Date(t);if(o(i.getTime()))return"";const n=i.getFullYear(),r=String(i.getMonth()+1).padStart(2,"0"),a=String(i.getDate()).padStart(2,"0"),s=String(i.getHours()).padStart(2,"0"),l=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0"),c=String(i.getMilliseconds()).padStart(3,"0");return e.replace("YYYY",n).replace("MM",r).replace("DD",a).replace("HH",s).replace("mm",l).replace("ss",u).replace("SSS",c)},parseDate:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";if(!t)return null;const i=e.replace("YYYY","(?<year>\\d{4})").replace("MM","(?<month>\\d{2})").replace("DD","(?<day>\\d{2})").replace("HH","(?<hours>\\d{2})").replace("mm","(?<minutes>\\d{2})").replace("ss","(?<seconds>\\d{2})").replace("SSS","(?<milliseconds>\\d{3})"),n=new RegExp(i),r=t.match(n);if(!r||!r.groups)return null;const{year:o,month:a,day:s,hours:l,minutes:u,seconds:c,milliseconds:h}=r.groups;return new Date(parseInt(o),parseInt(a)-1,parseInt(s),parseInt(l||0),parseInt(u||0),parseInt(c||0),parseInt(h||0))},dateDiff:function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ms";const n=new Date(t).getTime()-new Date(e).getTime();switch(i){case"s":return Math.floor(n/1e3);case"m":return Math.floor(n/6e4);case"h":return Math.floor(n/36e5);case"d":return Math.floor(n/864e5);default:return n}},cloneDeep:function t(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!=typeof e)return e;if(i.has(e))return i.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){const n=new Map;i.set(e,n);for(const[r,o]of e.entries())n.set(r,t(o,i));return n}if(e instanceof Set){const n=new Set;i.set(e,n);for(const r of e.values())n.add(t(r,i));return n}if(Array.isArray(e)){const n=[];return i.set(e,n),e.map(e=>t(e,i))}if(e.constructor===Object){const n=Object.create(Object.getPrototypeOf(e));i.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t(e[r],i));return n}return e},sleep:function(t){return new Promise(e=>setTimeout(e,t))},tryCatch:function(t,e){try{return t()}catch(t){return e}},delay:function(t,e){return new Promise(i=>setTimeout(()=>i(e),t))}}},function(t,e,i){"use strict";i.d(e,"g",(function(){return c})),i.d(e,"f",(function(){return h})),i.d(e,"e",(function(){return d})),i.d(e,"a",(function(){return p})),i.d(e,"h",(function(){return f})),i.d(e,"c",(function(){return g})),i.d(e,"b",(function(){return m})),i.d(e,"i",(function(){return y})),i.d(e,"d",(function(){return v}));var n=i(5),r=i.n(n);const o=r.a.prototype.$isServer,a=/([\:\-\_]+(.))/g,s=/^moz([A-Z])/,l=o?0:Number(document.documentMode),u=function(t){return t.replace(a,(function(t,e,i,n){return n?i.toUpperCase():i})).replace(s,"Moz$1")},c=!o&&document.addEventListener?function(t,e,i){t&&e&&i&&t.addEventListener(e,i,!1)}:function(t,e,i){t&&e&&i&&t.attachEvent("on"+e,i)},h=!o&&document.removeEventListener?function(t,e,i){t&&e&&t.removeEventListener(e,i,!1)}:function(t,e,i){t&&e&&t.detachEvent("on"+e,i)};function d(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function p(t,e){if(t){for(var i=t.className,n=(e||"").split(" "),r=0,o=n.length;r<o;r++){var a=n[r];a&&(t.classList?t.classList.add(a):d(t,a)||(i+=" "+a))}t.classList||t.setAttribute("class",i)}}function f(t,e){if(t&&e){for(var i=e.split(" "),n=" "+t.className+" ",r=0,o=i.length;r<o;r++){var a=i[r];a&&(t.classList?t.classList.remove(a):d(t,a)&&(n=n.replace(" "+a+" "," ")))}t.classList||t.setAttribute("class",(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}const g=l<9?function(t,e){if(!o){if(!t||!e)return null;"float"===(e=u(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(i){return t.style[e]}}}:function(t,e){if(!o){if(!t||!e)return null;"float"===(e=u(e))&&(e="cssFloat");try{var i=document.defaultView.getComputedStyle(t,"");return t.style[e]||i?i[e]:null}catch(i){return t.style[e]}}};function m(t,e){return o?"":t&&e?getComputedStyle(t).getPropertyValue("--"+e).trim():""}function y(t,e){if(r.a.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);const i=[];let n=e.offsetParent;for(;n&&t!==n&&t.contains(n);)i.push(n),n=n.offsetParent;const o=e.offsetTop+i.reduce((t,e)=>t+e.offsetTop,0),a=o+e.offsetHeight,s=t.scrollTop,l=s+t.clientHeight;o<s?t.scrollTop=o:a>l&&(t.scrollTop=a-t.clientHeight)}function v(t,e){if(o)return 0;if(!t)return 0;const i=document.createElement("span");i.style.position="absolute",i.style.visibility="hidden",i.style.whiteSpace="nowrap",i.style.font=e||g(document.body,"font"),i.textContent=t,document.body.appendChild(i);const n=i.offsetWidth;return document.body.removeChild(i),n}},function(t,e,i){"use strict";var n=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:!r.hasGlobalWindow||"Deno"in window?(r.node=!0,r.svgSupported=!0):function(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]);r&&(i.ie=!0,i.version=r[1]);o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18);a&&(i.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}(navigator.userAgent,r),e.a=r},function(e,i){e.exports=t},function(t,e,i){"use strict";i.d(e,"h",(function(){return y})),i.d(e,"c",(function(){return b})),i.d(e,"a",(function(){return x})),i.d(e,"b",(function(){return _})),i.d(e,"g",(function(){return w})),i.d(e,"f",(function(){return S})),i.d(e,"i",(function(){return C})),i.d(e,"e",(function(){return M})),i.d(e,"d",(function(){return O}));var n=i(26),r=i(0),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function h(t,e,i){return t+(e-t)*i}function d(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new n.a(20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var i=f.get(t);if(i)return p(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in o)return p(e,o[n]),m(t,e),e;var r,a=n.length;if("#"===n.charAt(0))return 4===a||5===a?(r=parseInt(n.slice(1,4),16))>=0&&r<=4095?(d(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(n.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1):7===a||9===a?(r=parseInt(n.slice(1,7),16))>=0&&r<=16777215?(d(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(n.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1):void 0;var s=n.indexOf("("),c=n.indexOf(")");if(-1!==s&&c+1===a){var h=n.substr(0,s),g=n.substr(s+1,c-(s+1)).split(","),y=1;switch(h){case"rgba":if(4!==g.length)return 3===g.length?d(e,+g[0],+g[1],+g[2],1):d(e,0,0,0,1);y=u(g.pop());case"rgb":return g.length>=3?(d(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:u(g[3])),m(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==g.length?void d(e,0,0,0,1):(g[3]=u(g[3]),v(g,e),m(t,e),e);case"hsl":return 3!==g.length?void d(e,0,0,0,1):(v(g,e),m(t,e),e);default:return}}d(e,0,0,0,1)}}function v(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=u(t[1]),r=u(t[2]),o=r<=.5?r*(n+1):r+n-r*n,s=2*r-o;return d(e=e||[],a(255*c(s,o,i+1/3)),a(255*c(s,o,i)),a(255*c(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t,e){var i=y(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return C(i,4===i.length?"rgba":"rgb")}}function x(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),l=e[r],u=e[o],c=n-r;return i[0]=a(h(l[0],u[0],c)),i[1]=a(h(l[1],u[1],c)),i[2]=a(h(l[2],u[2],c)),i[3]=s(h(l[3],u[3],c)),i}}function _(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),l=y(e[r]),u=y(e[o]),c=n-r,d=C([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return i?{color:d,leftIndex:r,rightIndex:o,value:n}:d}}function w(t,e,i,n){var r,o=y(t);if(t)return o=function(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=i&&(o[1]=u(i)),null!=n&&(o[2]=u(n)),C(v(o),"rgba")}function S(t,e){var i=y(t);if(i&&null!=e)return i[3]=s(e),C(i,"rgba")}function C(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function M(t,e){var i=y(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}var k=new n.a(100);function O(t){if(Object(r.C)(t)){var e=k.get(t);return e||(e=b(t,-.1),k.put(t,e)),e}if(Object(r.x)(t)){var i=Object(r.m)({},t);return i.colorStops=Object(r.H)(t.colorStops,(function(t){return{offset:t.offset,color:b(t.color,-.1)}})),i}return t}},function(t,e,i){"use strict";(function(t){i.d(e,"p",(function(){return s})),i.d(e,"j",(function(){return l})),i.d(e,"q",(function(){return c})),i.d(e,"e",(function(){return h})),i.d(e,"a",(function(){return d})),i.d(e,"b",(function(){return p})),i.d(e,"i",(function(){return f})),i.d(e,"h",(function(){return g})),i.d(e,"l",(function(){return m})),i.d(e,"n",(function(){return y})),i.d(e,"m",(function(){return v})),i.d(e,"o",(function(){return b})),i.d(e,"k",(function(){return x})),i.d(e,"d",(function(){return _})),i.d(e,"f",(function(){return w})),i.d(e,"g",(function(){return S})),i.d(e,"c",(function(){return C}));var n=i(0),r=i(6),o=i(4),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var i=Object(r.h)(t);i&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function l(t){return t<1e-4&&t>-1e-4}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,i){return"top"===i?t+=e/2:"bottom"===i&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g(t){var e=t.style,i=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(",")}function m(t){return t&&!!t.image}function y(t){return m(t)||function(t){return t&&!!t.svgElement}(t)}function v(t){return"linear"===t.type}function b(t){return"radial"===t.type}function x(t){return t&&("linear"===t.type||"radial"===t.type)}function _(t){return"url(#"+t+")"}function w(t){var e=t.getGlobalScale(),i=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(i)/Math.log(10)),1)}function S(t){var e=t.x||0,i=t.y||0,r=(t.rotation||0)*n.a,o=Object(n.P)(t.scaleX,1),s=Object(n.P)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||i)&&c.push("translate("+e+"px,"+i+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*n.a)+"deg, "+a(u*n.a)+"deg)"),c.join(" ")}var C=o.a.hasGlobalWindow&&Object(n.w)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(this,i(124).Buffer)},function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"a",(function(){return o})),i.d(e,"d",(function(){return u})),i.d(e,"e",(function(){return c}));var n=12,r="sans-serif",o=n+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-20)/100;e[n]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var i=u.createCanvas();a=i&&i.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),c=r&&+r[1]||n,h=0;if(e.indexOf("mono")>=0)h=c*t.length;else for(var d=0;d<t.length;d++){var p=l[t[d]];h+=null==p?c:p*c}return{width:h}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}};function c(t){for(var e in u)t[e]&&(u[e]=t[e])}},function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i(3);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i="undefined"!=typeof document?Object(n.b)(document.documentElement,t):"";i||(i=t);let r=parseFloat(e);return isNaN(r)&&(r=1),r=Math.max(0,Math.min(1,r)),i.startsWith("#")?o(i,r):i.startsWith("rgb")?a(i,r):t}function o(t,e){const i=t.replace(/^#/,"");if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$/.test(i))return t;let n=[];if(3===i.length)n=Array.from(i).map(t=>t+t);else{if(6!==i.length)return t;n=i.match(/.{2}/g)}return`rgba(${n.map(t=>{const e=parseInt(t,16);return isNaN(e)?0:e}).join(", ")}, ${e})`}function a(t,e){const i=t.match(/^rgba?\(([^)]+)\)/);if(!i)return t;const n=i[1].split(",").map(t=>t.trim());if(n.length<3)return t;return`rgba(${n.slice(0,3).map(t=>{const e=parseInt(t,10);return isNaN(e)?0:e}).join(", ")}, ${e})`}},function(t,e,i){"use strict";i.d(e,"b",(function(){return o}));var n=i(5),r=i.n(n);const o=function(t,e){const i=(this?Object.getPrototypeOf(this):r.a.prototype).$t;return"function"==typeof i?i.apply(this||r.a,arguments):t||""};e.a={methods:{t:o}}},function(t,e,i){"use strict";function n(t,e,i){this.$children.forEach(r=>{r.$options.name===t?r.$emit.apply(r,[e].concat(i)):n.apply(r,[t,e].concat([i]))})}e.a={methods:{dispatch(t,e,i){for(var n=this.$parent||this.$root,r=n.$options.name;n&&(!r||r!==t);)(n=n.$parent)&&(r=n.$options.name);n&&n.$emit.apply(n,[e].concat(i))},broadcast(t,e,i){n.call(this,t,e,i)}}}},function(t,e,i){"use strict";i.r(e);var n=i(5),r=i.n(n),o=i(3);const a=[],s="@@clickoutsideContext";let l,u=0;function c(t,e,i){return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(i&&i.context&&n.target&&r.target)||t.contains(n.target)||t.contains(r.target)||t===n.target||i.context.popperElm&&(i.context.popperElm.contains(n.target)||i.context.popperElm.contains(r.target))||(e.expression&&t[s].methodName&&i.context[t[s].methodName]?i.context[t[s].methodName](n,r):t[s].bindingFn&&t[s].bindingFn(n,r))}}!r.a.prototype.$isServer&&Object(o.g)(document,"mousedown",t=>l=t),!r.a.prototype.$isServer&&Object(o.g)(document,"mouseup",t=>{a.forEach(e=>e[s].documentHandler(t,l))}),e.default={bind(t,e,i){a.push(t);const n=u++;t[s]={id:n,documentHandler:c(t,e,i),methodName:e.expression,bindingFn:e.value}},update(t,e,i){t[s].documentHandler=c(t,e,i),t[s].methodName=e.expression,t[s].bindingFn=e.value},unbind(t){let e=a.length;for(let i=0;i<e;i++)if(a[i][s].id===t[s].id){a.splice(i,1);break}delete t[s]}}},function(t,e,i){"use strict";var n=i(11),r=i(2),o={mounted(){},methods:{getMigratingConfig:()=>({props:{},events:{}})}};let a;const s="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function u(t){const e=window.getComputedStyle(t),i=e.getPropertyValue("box-sizing"),n=parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),r=parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:l.map(t=>`${t}:${e.getPropertyValue(t)}`).join(";"),paddingSize:n,borderSize:r,boxSizing:i}}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;a||(a=document.createElement("textarea"),document.body.appendChild(a));let{paddingSize:n,borderSize:r,boxSizing:o,contextStyle:l}=u(t);a.setAttribute("style",`${l};${s}`),a.value=t.value||t.placeholder||"";let c=a.scrollHeight;const h={};"border-box"===o?c+=r:"content-box"===o&&(c-=n),a.value="";let d=a.scrollHeight-n;if(null!==e){let t=d*e;"border-box"===o&&(t=t+n+r),c=Math.max(t,c),h.minHeight=t+"px"}if(null!==i){let t=d*i;"border-box"===o&&(t=t+n+r),c=Math.min(t,c)}return h.height=c+"px",a.parentNode&&a.parentNode.removeChild(a),a=null,h}var h={name:"uiInput",mixins:[n.a,o],inheritAttrs:!1,inject:{uiForm:{default:""},uiFormItem:{default:""}},data:()=>({textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}),props:{value:[String,Number],type:{type:String,default:"text"},label:String,placeholder:String,prefixIcon:String,suffixIcon:String,size:String,resize:String,clearable:{type:Boolean,default:!1},disabled:Boolean,readonly:Boolean,autosize:{type:[Boolean,Object],default:!1},validateEvent:{type:Boolean,default:!0},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},form:String,tabindex:String},computed:{_uiFormItemSize(){return(this.uiFormItem||{}).uiFormItemSize},validateState(){return this.uiFormItem?this.uiFormItem.validateState:""},needStatusIcon(){return!!this.uiForm&&this.uiForm.statusIcon},validateIcon(){return{validating:"ui-icon-loading",success:"ui-icon-circle-check",error:"ui-icon-circle-close"}[this.validateState]},textareaStyle(){return Object(r.m)({},this.textareaCalcStyle,{resize:this.resize})},inputSize(){return this.size||this._uiFormItemSize||(this.$ELEMENT||{}).size},inputDisabled(){return this.disabled||(this.uiForm||{}).disabled},nativeInputValue(){return null===this.value||void 0===this.value?"":String(this.value)},showClear(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit(){return this.$attrs.maxlength},textLength(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("UiFormItem","ui.form.change",[t])},nativeInputValue(){this.setNativeInputValue()},type(){this.$nextTick(()=>{this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()})}},methods:{focus(){this.getInput().focus()},blur(){this.getInput().blur()},getMigratingConfig:()=>({props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}),handleBlur(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("UiFormItem","ui.form.blur",[this.value])},select(){this.getInput().select()},resizeTextarea(){if(this.$isServer)return;const{autosize:t,type:e}=this;if("textarea"!==e)return;if(!t)return void(this.textareaCalcStyle={minHeight:c(this.$refs.textarea).minHeight});const i=t.minRows,n=t.maxRows;this.textareaCalcStyle=c(this.$refs.textarea,i,n)},setNativeInputValue(){const t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate(t){this.$emit("compositionupdate",t);const e=t.target.value,i=e[e.length-1]||"";this.isComposing=!Object(r.i)(i)},handleCompositionEnd(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange(t){this.$emit("change",t.target.value)},calcIconOffset(t){let e=[].slice.call(this.$el.querySelectorAll(".ui-input__"+t)||[]);if(!e.length)return;let i=null;for(let t=0;t<e.length;t++)if(e[t].parentNode===this.$el){i=e[t];break}if(!i)return;const n={suffix:"append",prefix:"prepend"}[t];this.$slots[n]?i.style.transform=`translateX(${"suffix"===t?"-":""}${this.$el.querySelector(".ui-input-group__"+n).offsetWidth}px)`:i.removeAttribute("style")},updateIconOffset(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible(){this.passwordVisible=!this.passwordVisible,this.$nextTick(()=>{this.focus()})},getInput(){return this.$refs.input||this.$refs.textarea},getSuffixVisible(){return this.$slots.suffix||this.$scopedSlots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created(){this.$on("inputSelect",this.select)},mounted(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated(){this.$nextTick(this.updateIconOffset)}},d=i(1),p=Object(d.a)(h,(function(){var t=this,e=t._self._c;return e("div",{class:["textarea"===t.type?"ui-textarea":"ui-input",t.inputSize?"ui-input--"+t.inputSize:"",{"is-disabled":t.inputDisabled,"is-exceed":t.inputExceed,"ui-input-group":t.$slots.prepend||t.$scopedSlots.prepend||t.$slots.append||t.$scopedSlots.append,"ui-input-group--append":t.$slots.append||t.$scopedSlots.append,"ui-input-group--prepend":t.$slots.prepend||t.$scopedSlots.prepend,"ui-input--prefix":t.$slots.prefix||t.$scopedSlots.prefix||t.prefixIcon,"ui-input--suffix":t.$slots.suffix||t.$scopedSlots.suffix||t.suffixIcon||t.clearable||t.showPassword}],on:{mouseenter:function(e){t.hovering=!0},mouseleave:function(e){t.hovering=!1}}},["textarea"!==t.type?[t.$slots.prepend||t.$scopedSlots.prepend?e("div",{staticClass:"ui-input-group__prepend"},[t._t("prepend")],2):t._e(),"textarea"!==t.type?e("input",t._b({ref:"input",staticClass:"ui-input__inner",attrs:{tabindex:t.tabindex,type:t.showPassword?t.passwordVisible?"text":"password":t.type,placeholder:t.placeholder,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autocomplete,"aria-label":t.label},on:{compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd,input:t.handleInput,focus:t.handleFocus,blur:t.handleBlur,change:t.handleChange}},"input",t.$attrs,!1)):t._e(),t.$slots.prefix||t.$scopedSlots.prefix||t.prefixIcon?e("span",{staticClass:"ui-input__prefix"},[t._t("prefix"),t.prefixIcon?e("i",{staticClass:"ui-input__icon",class:t.prefixIcon}):t._e()],2):t._e(),t.getSuffixVisible()?e("span",{staticClass:"ui-input__suffix"},[e("span",{staticClass:"ui-input__suffix-inner"},[t.showClear&&t.showPwdVisible&&t.isWordLimitVisible?t._e():[t._t("suffix"),t.suffixIcon?e("i",{staticClass:"ui-input__icon",class:t.suffixIcon}):t._e()],t.showClear?e("i",{staticClass:"ui-input__icon ui-icon-circle-close ui-input__clear",on:{mousedown:function(t){t.preventDefault()},click:t.clear}}):t._e(),t.showPwdVisible?e("i",{class:["ui-input__icon ui-input__clear",t.passwordVisible?"ui-icon-more":"ui-icon-view"],on:{click:t.handlePasswordVisible}}):t._e(),t.isWordLimitVisible?e("span",{staticClass:"ui-input__count"},[e("span",{staticClass:"ui-input__count-inner"},[t._v(" "+t._s(t.textLength)+"/"+t._s(t.upperLimit)+" ")])]):t._e()],2),t.validateState?e("i",{staticClass:"ui-input__icon",class:["ui-input__validateIcon",t.validateIcon]}):t._e()]):t._e(),t.$slots.append||t.$scopedSlots.append?e("div",{staticClass:"ui-input-group__append"},[t._t("append")],2):t._e()]:e("textarea",t._b({ref:"textarea",staticClass:"ui-textarea__inner",style:t.textareaStyle,attrs:{tabindex:t.tabindex,placeholder:t.placeholder,disabled:t.inputDisabled,readonly:t.readonly,autocomplete:t.autocomplete,"aria-label":t.label},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.handleInput,change:t.handleChange,compositionstart:t.handleCompositionStart,compositionupdate:t.handleCompositionUpdate,compositionend:t.handleCompositionEnd}},"textarea",t.$attrs,!1)),t.isWordLimitVisible&&"textarea"===t.type?e("span",{staticClass:"ui-input__count"},[t._v(t._s(t.textLength)+"/"+t._s(t.upperLimit))]):t._e()],2)}),[],!1,null,null,null);e.a=p.exports},function(t,e,i){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var i in e)if(t[i])if(-1!==r.indexOf(i))t[i]=n({},t[i],e[i]);else if(-1!==o.indexOf(i)){var l=t[i]instanceof Array?t[i]:[t[i]],u=e[i]instanceof Array?e[i]:[e[i]];t[i]=[].concat(l,u)}else if(-1!==a.indexOf(i))for(var c in e[i])if(t[i][c]){var h=t[i][c]instanceof Array?t[i][c]:[t[i][c]],d=e[i][c]instanceof Array?e[i][c]:[e[i][c]];t[i][c]=[].concat(h,d)}else t[i][c]=e[i][c];else if("hook"===i)for(var p in e[i])t[i][p]=t[i][p]?s(t[i][p],e[i][p]):e[i][p];else t[i]=e[i];else t[i]=e[i];return t}),{})}},function(t,e,i){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function s(t){for(var e=-1,i=0;i<a.length;i++)if(a[i].identifier===t){e=i;break}return e}function l(t,e){for(var i={},n=[],r=0;r<t.length;r++){var o=t[r],l=e.base?o[0]+e.base:o[0],u=i[l]||0,c="".concat(l," ").concat(u);i[l]=u+1;var h=s(c),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:c,updater:m(d,e),references:1}),n.push(c)}return n}function u(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,h=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function p(t,e,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f=null,g=0;function m(t,e){var i,n,r;if(e.singleton){var o=g++;i=f||(f=u(e)),n=d.bind(null,i,o,!1),r=d.bind(null,i,o,!0)}else i=u(e),n=p.bind(null,i,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var i=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var r=s(i[n]);a[r].references--}for(var o=l(t,e),u=0;u<i.length;u++){var c=s(i[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}i=o}}}},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var r=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[i].concat(o).concat([r]).join("\n")}var a,s,l;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e,i){"use strict";i.r(e),e.default={bind(t,e,i){i.context;const n=e.value;if(!(n instanceof Function))throw new Error("v-init only accepts a function as handler");n.call(this,t)}}},function(t,e,i){"use strict";var n={name:"UiButton",props:{type:{type:String,default:"default",validator:t=>["default","primary","success","warning","danger"].includes(t)},size:{type:String,default:"medium",validator:t=>["large","medium","small","mini"].includes(t)},label:String,disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},textual:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},icon:{type:String,default:""},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"}},methods:{handleClick(t){this.disabled||this.loading||this.$emit("click",t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("button",{staticClass:"ui-button",class:[t.type?"ui-button--"+t.type:"",t.size?"ui-button--"+t.size:"",{"is-disabled":t.disabled,"is-loading":t.loading,"is-plain":t.plain||t.textual,"is-text":t.textual,"is-round":t.round,"is-circle":t.circle}],attrs:{disabled:t.disabled||t.loading,autofocus:t.autofocus,type:t.nativeType},on:{click:t.handleClick}},[t.loading?e("i",{staticClass:"ui-icon-loading"}):t._e(),t.icon&&!t.loading?e("i",{class:t.icon}):t._e(),e("span",[t._t("default",(function(){return[t._v(t._s(t.label))]}))],2)])}),[],!1,null,null,null);e.a=o.exports},function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i(5),r=i.n(n),o=i(2),a=i(3);let s,l=!1,u=!1;const c=function(){if(r.a.prototype.$isServer)return;let t=d.modalDom;return t?l=!0:(l=!1,t=document.createElement("div"),d.modalDom=t,t.addEventListener("touchmove",(function(t){t.preventDefault(),t.stopPropagation()})),t.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),t},h={},d={modalFade:!0,modalStack:[],getInstance:function(t){return h[t]},register:function(t,e){t&&e&&(h[t]=e)},deregister:function(t){t&&(h[t]=null,delete h[t])},nextZIndex:function(){return d.zIndex++},doOnModalClick:function(){const t=d.modalStack[d.modalStack.length-1];if(!t)return;const e=d.getInstance(t.id);e&&e.closeOnClickModal&&e.close()},openModal:function(t,e,i,n,o){if(r.a.prototype.$isServer)return;if(!t||void 0===e)return;this.modalFade=o;const s=this.modalStack;for(let e=0,i=s.length;e<i;e++){if(s[e].id===t)return}const u=c();if(Object(a.a)(u,"ui-modal"),this.modalFade&&!l&&Object(a.a)(u,"ui-modal-enter"),n){n.trim().split(/\s+/).forEach(t=>Object(a.a)(u,t))}setTimeout(()=>{Object(a.h)(u,"ui-modal-enter")},200),i&&i.parentNode&&11!==i.parentNode.nodeType?i.parentNode.appendChild(u):document.body.appendChild(u),e&&(u.style.zIndex=e),u.tabIndex=0,u.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:n})},closeModal:function(t){const e=this.modalStack,i=c();if(e.length>0){const n=e[e.length-1];if(n.id===t){if(n.modalClass){n.modalClass.trim().split(/\s+/).forEach(t=>Object(a.h)(i,t))}e.pop(),e.length>0&&(i.style.zIndex=e[e.length-1].zIndex)}else for(let i=e.length-1;i>=0;i--)if(e[i].id===t){e.splice(i,1);break}}0===e.length&&(this.modalFade&&Object(a.a)(i,"ui-modal-leave"),setTimeout(()=>{0===e.length&&(i.parentNode&&i.parentNode.removeChild(i),i.style.display="none",d.modalDom=void 0),Object(a.h)(i,"ui-modal-leave")},200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:()=>(u||(s=s||(r.a.prototype.$ELEMENT||{}).zIndex||2e3,u=!0),s),set(t){s=t}});r.a.prototype.$isServer||window.addEventListener("keydown",(function(t){if(27===t.keyCode){const t=function(){if(!r.a.prototype.$isServer&&d.modalStack.length>0){const t=d.modalStack[d.modalStack.length-1];if(!t)return;return d.getInstance(t.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}}));var p=d;let f;let g,m=1;e.b={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount(){this._popupId="popup-"+m++,p.register(this._popupId,this)},beforeDestroy(){p.deregister(this._popupId),p.closeModal(this._popupId),this.restoreBodyStyle()},data:()=>({opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}),watch:{visible(t){if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.a.nextTick(this.open))}else this.close()}},methods:{open(t){this.rendered||(this.rendered=!0);const e=Object(o.m)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);const i=Number(e.openDelay);i>0?this._openTimer=setTimeout(()=>{this._openTimer=null,this.doOpen(e)},i):this.doOpen(e)},doOpen(t){if(this.$isServer)return;if(this.willOpen&&!this.willOpen())return;if(this.opened)return;this._opening=!0;const e=this.$el,i=t.modal,n=t.zIndex;if(n&&(p.zIndex=n),i&&(this._closing&&(p.closeModal(this._popupId),this._closing=!1),p.openModal(this._popupId,p.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!Object(a.e)(document.body,"ui-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt(Object(a.c)(document.body,"paddingRight"),10)),g=function(){if(r.a.prototype.$isServer)return 0;if(void 0!==f)return f;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const n=i.offsetWidth;return t.parentNode.removeChild(t),f=e-n,f}();let t=document.documentElement.clientHeight<document.body.scrollHeight,e=Object(a.c)(document.body,"overflowY");g>0&&(t||"scroll"===e)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+g+"px"),Object(a.a)(document.body,"ui-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=p.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()},doAfterOpen(){this._opening=!1},close(){if(this.willClose&&!this.willClose())return;null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);const t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(()=>{this._closeTimer=null,this.doClose()},t):this.doClose()},doClose(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose(){p.closeModal(this._popupId),this._closing=!1},restoreBodyStyle(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,Object(a.h)(document.body,"ui-popup-parent--hidden")),this.withoutHiddenClass=!0}}}},function(t,e,i){"use strict";var n={name:"UiLabelWrap",components:{},mixins:[],props:{isAutoWidth:Boolean,updateAll:Boolean},data:()=>({computedWidth:0}),inject:["uiForm","uiFormItem"],filters:{},computed:{},watch:{computedWidth(t,e){this.updateAll&&(this.uiForm.registerLabelWidth(t,e),this.uiFormItem.updateComputedLabelWidth(t))}},render(){const t=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var i;const n=this.uiForm?this.uiForm.autoLabelWidth:null===(i=this.uiForm)||void 0===i?void 0:i.autoLabelWidth,r={};if(n&&"auto"!==n){const t=parseInt(n,10)-this.computedWidth;t&&(r.marginLeft=t+"px")}return t("div",{class:"ui-form-item__label-wrap",style:r},[e])}return e[0]},mounted(){this.updateLabelWidth("update")},updated(){this.updateLabelWidth("update")},beforeDestroy(){this.updateLabelWidth("remove")},methods:{getLabelWidth(){if(this.$el&&this.$el.firstElementChild){const t=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(t))}return 0},updateLabelWidth(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";if(this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild)if("update"===t)this.computedWidth=this.getLabelWidth();else if("remove"===t){const t=this.uiForm||this.uiForm;t&&t.deregisterLabelWidth(this.computedWidth)}}}},r=i(1),o=Object(r.a)(n,void 0,void 0,!1,null,"b3ade9cc",null).exports,a=i(11);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}const l={default:"字段 %s 校验失败",required:"%s 是必填项",enum:"%s 必须是以下值之一: %s",whitespace:"%s 不能为空",date:{format:"%s 日期 %s 不符合格式 %s",parse:"%s 日期无法解析",invalid:"%s 日期 %s 无效"},types:{string:"%s 不是字符串类型",method:"%s 不是函数类型",array:"%s 不是数组类型",object:"%s 不是对象类型",number:"%s 不是数字类型",date:"%s 不是日期类型",boolean:"%s 不是布尔类型",integer:"%s 不是整数类型",float:"%s 不是浮点数类型",url:"%s 不是有效的 URL",hex:"%s 不是有效的十六进制颜色",email:"%s 不是有效的邮箱地址",regexp:"%s 不是有效的正则表达式"},string:{len:"%s 必须正好是 %s 个字符",min:"%s 长度不能少于 %s 个字符",max:"%s 长度不能超过 %s 个字符",range:"%s 长度必须在 %s 到 %s 个字符之间"},number:{len:"%s 必须等于 %s",min:"%s 不能小于 %s",max:"%s 不能大于 %s",range:"%s 必须在 %s 到 %s 之间"},array:{len:"%s 长度必须正好是 %s",min:"%s 长度不能少于 %s",max:"%s 长度不能超过 %s",range:"%s 长度必须在 %s 到 %s 之间"},pattern:{mismatch:"%s 的值 %s 不匹配模式 %s"}},u={email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u007F-\uFFFF]+\.)+[a-zA-Z\u007F-\uFFFF]{2,}))$/,url:/^(?!mailto:)(?:(?:https?|ftp):\/\/|\/\/)(?:\S+(?::\S*)?@)?(?:(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[0-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u007f-\uffff0-9]+-?)*[a-z\u007f-\uffff0-9]+)(?:\.(?:[a-z\u007f-\uffff0-9]+-?)*[a-z\u007f-\uffff0-9]+)*(?:\.(?:[a-z\u007f-\uffff]{2,})))|localhost)(?::\d{2,5})?(?:\/[^\s]*)?$/i,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,date:/^\d{4}-\d{2}-\d{2}( \d{2}:\d{2}:\d{2}(.\d+)?)?$/,dateObject:Date,digit:/^\d+$/,number:/^-?\d*(\.\d+)?$/,integer:/^-?\d+$/,ipv4:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-4])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-4])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-4])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-4])$/,ipv6:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/};function c(t){let e=t;for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++)e=e.replace("%s",t+1<1||arguments.length<=t+1?void 0:arguments[t+1]);return e}const h={string:t=>"string"==typeof t,number:t=>"number"==typeof t&&!isNaN(t),boolean:t=>"boolean"==typeof t,method:t=>"function"==typeof t,regexp:t=>t instanceof RegExp,object:t=>"object"==typeof t&&null!==t&&!(t instanceof Array),integer:t=>"number"==typeof t&&Number.isInteger(t),float:t=>"number"==typeof t&&!Number.isInteger(t),array:t=>Array.isArray(t),date:t=>t instanceof Date&&!isNaN(t.getTime()),url:t=>"string"==typeof t&&u.url.test(t),hex:t=>"string"==typeof t&&u.hex.test(t),email:t=>"string"==typeof t&&u.email.test(t),ipv4:t=>"string"==typeof t&&u.ipv4.test(t),ipv6:t=>"string"==typeof t&&u.ipv6.test(t)};class d extends Error{constructor(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"async-validator";super(t),this.field=e,this.rule=i,this.type=n}}const p={required(t,e,i,n,r){t.required&&function(t){return null==t||("string"==typeof t&&""===t.trim()||!(!Array.isArray(t)||0!==t.length))}(e)&&n.push(new d(c(t.message||r.messages.required,t.field),t.field,"required"))},whitespace(t,e,i,n,r){t.whitespace&&"string"==typeof e&&""===e.trim()&&n.push(new d(c(t.message||r.messages.whitespace,t.field),t.field,"whitespace"))},type(t,e,i,n,r){if(t.type&&h[t.type]){(0,h[t.type])(e)||n.push(new d(c(t.message||r.messages.types[t.type],t.field,t.type),t.field,"type"))}},pattern(t,e,i,n,r){if(t.pattern&&"string"==typeof e){(t.pattern instanceof RegExp?t.pattern:new RegExp(t.pattern)).test(e)||n.push(new d(c(t.message||r.messages.pattern.mismatch,t.field,e,t.pattern),t.field,"pattern"))}},range(t,e,i,n,r){if("string"==typeof e||Array.isArray(e)){const i=e.length;void 0!==t.len&&i!==t.len&&n.push(new d(c(t.message||r.messages["string"==typeof e?"string":"array"].len,t.field,t.len),t.field,"len")),void 0!==t.min&&i<t.min&&n.push(new d(c(t.message||r.messages["string"==typeof e?"string":"array"].min,t.field,t.min),t.field,"min")),void 0!==t.max&&i>t.max&&n.push(new d(c(t.message||r.messages["string"==typeof e?"string":"array"].max,t.field,t.max),t.field,"max"))}else"number"==typeof e&&(void 0!==t.len&&e!==t.len&&n.push(new d(c(t.message||r.messages.number.len,t.field,t.len),t.field,"len")),void 0!==t.min&&e<t.min&&n.push(new d(c(t.message||r.messages.number.min,t.field,t.min),t.field,"min")),void 0!==t.max&&e>t.max&&n.push(new d(c(t.message||r.messages.number.max,t.field,t.max),t.field,"max")))},enum(t,e,i,n,r){t.enum&&t.enum.length>0&&(t.enum.includes(e)||n.push(new d(c(t.message||r.messages.enum,t.field,JSON.stringify(t.enum)),t.field,"enum")))},validator:(t,e,i,n,r)=>t.validator&&"function"==typeof t.validator?new Promise(async i=>{let r=!1;const o=e=>{r||(r=!0,e instanceof Error?n.push(e):"string"==typeof e?n.push(new d(e,t.field,"validator")):e&&n.push(new d(c(l.default,t.field),t.field,"validator")),i())};try{const a=await t.validator(t,e,o);r||(!1===a?n.push(new d("function"==typeof t.message?t.message(t.field):t.message||c(l.default,t.field),t.field,"validator")):a instanceof Error&&n.push(a),i())}catch(e){r||(n.push(e instanceof Error?e:new d(String(e),t.field,"validator")),i())}}):Promise.resolve()};class f{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.define(t),this.messages=s({},l,e.messages),this.options=e}define(t){return this.descriptor=t,this}messages(t){return t&&(this.messages=s({},this.messages,t)),this.messages}validate(t,e,i){"function"==typeof e&&(i=e,e={});const n=e||{},r=s({},this.messages,n.messages),o=n.keys||Object.keys(this.descriptor);n.messages=r,n.first=n.first||!1,n.firstFields=n.firstFields||!1;const a=[],l=[];return o.forEach(e=>{const i=this.descriptor[e],r=Array.isArray(i)?i:[i],o=t[e],u=new Promise(i=>{const a=[];let l=0;const u=r.length;0!==u?r.forEach(r=>{const c=s({},r,{key:e,field:r.field||e,fullField:r.fullField||r.field||e}),h=[];Object.keys(p).forEach(e=>{"validator"!==e&&"asyncValidator"!==e&&(r.hasOwnProperty(e)||"required"===e)&&p[e](c,o,t,h,n)});let d=Promise.resolve();r.validator&&"function"==typeof r.validator?d=p.validator(c,o,t,h,n):r.asyncValidator&&"function"==typeof r.asyncValidator&&(d=p.asyncValidator(c,o,t,h,n)),d.then(()=>{h.length>0&&a.push(...h),l++,l===u&&i(a)}).catch(t=>{l++,l===u&&i(a)})}):i([])});l.push(u.then(t=>{t&&t.length>0&&a.push(...t)}))}),Promise.all(l).then(()=>{if(a.length>0){const t=function(t){if(!t||0===t.length)return null;const e={};return t.forEach(t=>{const i=t.field;e[i]=e[i]||[],e[i].push(t)}),e}(a);if(!i)return Promise.reject({errors:a,fields:t});i(a,t)}else{if(!i)return t;i(null,t)}})}async validateField(t,e,i,n){"function"==typeof i&&(n=i,i={});const r=i||{},o=Array.isArray(t)?t:[t];return this.validate(e,{...r,keys:o},n)}getRule(t,e){const i=this.descriptor[t];return i?Array.isArray(i)?i.map(t=>({...t,field:e})):[{...i,field:e}]:[]}getRules(t,e){const i=[];return t.forEach((t,n)=>{const r=this.getRule(t,e[n]||t);i.push(...r)}),i}}f.pattern=u,f.messages=l;var g=f,m=i(2),y={name:"UiFormItem",components:{LabelWrap:o},mixins:[a.a],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},data:()=>({validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}),inject:["uiForm"],provide(){return{uiFormItem:this}},filters:{},computed:{labelFor(){return this.for||this.prop},labelStyle(){const t={};if("top"===this.form.labelPosition)return t;const e=this.labelWidth||this.form.labelWidth;return e&&(t.width=e),t},contentStyle(){const t={},e=this.label;if("top"===this.form.labelPosition||this.form.inline)return t;if(!e&&!this.labelWidth&&this.isNested)return t;const i=this.labelWidth||this.form.labelWidth;return"auto"===i?"auto"===this.labelWidth?t.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(t.marginLeft=this.uiForm.autoLabelWidth):t.marginLeft=i,t},form(){let t=this.$parent,e=t.$options.name;for(;"UiForm"!==e;)"UiFormItem"===e&&(this.isNested=!0),t=t.$parent,e=t.$options.name;return t},fieldValue(){const t=this.form.model;if(!t||!this.prop)return;let e=this.prop;return~e.indexOf(":")&&(e=e.replace(/:/,".")),Object(m.e)(t,e).v},isRequired(){let t=this.getRules(),e=!1;return t&&t.length&&t.every(t=>!t.required||(e=!0,!1)),e},_formSize(){return this.uiForm.size},uiFormItemSize(){return this.size||this._formSize},sizeClass(){return this.uiFormItemSize||(this.$ELEMENT||{}).size}},watch:{error:{handler(t){this.validateMessage=t,this.validateState=t?"error":"",this.notifyFormStatusChange()},immediate:!0},validateStatus(t){this.validateState=t,this.notifyFormStatusChange()},rules(t){t&&0!==t.length||void 0!==this.required||this.clearValidate()}},created(){},mounted(){if(this.prop){this.dispatch("UiForm","ui.form.addField",[this]);let t=this.fieldValue;Array.isArray(t)&&(t=[].concat(t)),Object.defineProperty(this,"initialValue",{value:t}),this.addValidateEvents()}},activated(){},beforeDestroy(){this.dispatch("UiForm","ui.form.removeField",[this])},methods:{notifyFormStatusChange(){this.uiForm&&this.uiForm.notifyStatusChange&&this.$nextTick(()=>{this.uiForm.notifyStatusChange()})},validate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.n;this.validateDisabled=!1;const i=this.getFilteredRule(t);if((!i||0===i.length)&&void 0===this.required)return e(),!0;this.validateState="validating";const n={};i&&i.length>0&&i.forEach(t=>{delete t.trigger}),n[this.prop]=i;const r=new g(n),o={};o[this.prop]=this.fieldValue,r.validate(o,{firstFields:!0},(t,i)=>{this.validateState=t?"error":"success",this.validateMessage=t?t[0].message:"",this.notifyFormStatusChange(),e(this.validateMessage,i),this.uiForm&&this.uiForm.$emit("validate",this.prop,!t,this.validateMessage||null)})},clearValidate(){this.validateState="",this.validateMessage="",this.validateDisabled=!1,this.notifyFormStatusChange()},resetField(){this.validateState="",this.validateMessage="";let t=this.form.model,e=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));let n=Object(m.e)(t,i);this.validateDisabled=!0,Array.isArray(e)?n.o[n.k]=[].concat(this.initialValue):n.o[n.k]=this.initialValue,this.$nextTick(()=>{this.validateDisabled=!1}),this.broadcast("UiTimeSelect","fieldReset",this.initialValue)},getRules(){let t=this.form.rules;const e=this.rules,i=void 0!==this.required?{required:!!this.required}:[],n=Object(m.e)(t,this.prop||"");return t=t?n.o[this.prop||""]||n.v:[],[].concat(e||t||[]).concat(i)},getFilteredRule(t){return this.getRules().filter(e=>!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.indexOf(t)>-1:e.trigger===t)).map(t=>Object(m.m)({},t))},onFieldBlur(){this.validate("blur")},onFieldChange(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth(t){this.computedLabelWidth=t?t+"px":""},addValidateEvents(){(this.getRules().length||void 0!==this.required)&&(this.$on("ui.form.blur",this.onFieldBlur),this.$on("ui.form.change",this.onFieldChange))},removeValidateEvents(){this.$off()}}},v=Object(r.a)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-form-item",class:[{"ui-form-item--feedback":t.uiForm&&t.uiForm.statusIcon,"is-error":"error"===t.validateState,"is-validating":"validating"===t.validateState,"is-success":"success"===t.validateState,"is-required":t.isRequired||t.required,"is-no-asterisk":t.uiForm&&t.uiForm.hideRequiredAsterisk},t.sizeClass?"ui-form-item--"+t.sizeClass:""]},[e("label-wrap",{attrs:{"is-auto-width":t.labelStyle&&"auto"===t.labelStyle.width,"update-all":"auto"===t.form.labelWidth}},[t.label||t.$slots.label?e("label",{staticClass:"ui-form-item__label",style:t.labelStyle,attrs:{for:t.labelFor}},[t._t("label",(function(){return[t._v(t._s(t.label+t.form.labelSuffix))]}))],2):t._e()]),e("div",{staticClass:"ui-form-item__content",style:t.contentStyle},[t._t("default"),e("transition",{attrs:{name:"ui-zoom-in-top"}},["error"===t.validateState&&t.showMessage&&t.form.showMessage?t._t("error",(function(){return[e("div",{staticClass:"ui-form-item__error",class:{"ui-form-item__error--inline":"boolean"==typeof t.inlineMessage?t.inlineMessage:t.uiForm&&t.uiForm.inlineMessage||!1}},[t._v("\n "+t._s(t.validateMessage)+"\n ")])]}),{error:t.validateMessage}):t._e()],2)],2)],1)}),[],!1,null,"5d2f491e",null);e.a=v.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"CheckboxGroup",(function(){return a})),i.d(e,"CheckboxButton",(function(){return s}));var n={name:"UiCheckbox",componentName:"UiCheckbox",mixins:[i(11).a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String,isGroup:Boolean,min:Number,max:Number,fill:String,textColor:String,isButton:Boolean,options:Array},data:()=>({selfModel:!1,focus:!1,isLimitExceeded:!1}),computed:{model:{get(){return this.isGroup?this.value:this.isInsideGroup?this.store:void 0!==this.value?this.value:this.selfModel},set(t){this.isGroup?this.$emit("input",t):this.isInsideGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&t.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("UiCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model&&this.model===this.trueLabel},isInsideGroup(){let t=this.$parent;for(;t;){if("UiCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled(){if(!this.isInsideGroup)return!1;const{max:t,min:e}=this._checkboxGroup;return!(!t&&!e)&&this.model.length>=t&&!this.isChecked||this.model.length<=e&&this.isChecked},isDisabled(){const t=this.disabled||(this.elForm||{}).disabled;return this.isInsideGroup?this._checkboxGroup.disabled||t||this.isLimitDisabled:t},_elFormItemSize(){return(this.elFormItem||{}).elFormItemSize},checkboxSize(){const t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isInsideGroup&&this._checkboxGroup.checkboxGroupSize||t},checkboxGroupSize(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},activeStyle(){return this.isInsideGroup&&this.isButton?{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",boxShadow:this._checkboxGroup.fill?"-1px 0 0 0 "+this._checkboxGroup.fill:"",color:this._checkboxGroup.textColor||""}:{}}},methods:{addToStore(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange(t){if(this.isLimitExceeded)return;let e;e=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",e,t),this.$nextTick(()=>{this.isInsideGroup&&this.dispatch("UiCheckboxGroup","change",[this._checkboxGroup.value])})}},created(){this.isGroup?this.$on("input",t=>{this.$emit("input",t)}):this.checked&&this.addToStore()},mounted(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value(t){this.dispatch("UiFormItem","ui.form.change",[t])}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return t.isGroup?e("div",{staticClass:"ui-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[t._v("\n>\n "),t.options&&t.options.length?t._l(t.options,(function(i){return e("ui-checkbox",{key:i.value,attrs:{label:i.value,"is-button":t.isButton,disabled:i.disabled}},[t._v("\n "+t._s(i.label)+"\n ")])})):t._t("default")],2):t.isButton?e("label",{staticClass:"ui-checkbox-button",class:[t.checkboxSize?"ui-checkbox-button--"+t.checkboxSize:"",{"is-checked":t.isChecked},{"is-disabled":t.isDisabled},{"is-focus":t.focus}]},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"ui-checkbox-button__original",attrs:{type:"checkbox",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var i=t.model,n=e.target,r=!!n.checked;if(Array.isArray(i)){var o=t.label,a=t._i(i,o);n.checked?a<0&&(t.model=i.concat([o])):a>-1&&(t.model=i.slice(0,a).concat(i.slice(a+1)))}else t.model=r},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),e("span",{staticClass:"ui-checkbox-button__inner",style:t.isChecked?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)]):e("label",{staticClass:"ui-checkbox",class:[t.border&&t.checkboxSize?"ui-checkbox--"+t.checkboxSize:"",{"is-disabled":t.isDisabled},{"is-bordered":t.border},{"is-checked":t.isChecked}],attrs:{id:t.id}},[e("span",{staticClass:"ui-checkbox__input",class:{"is-disabled":t.isDisabled,"is-checked":t.isChecked,"is-indeterminate":t.indeterminate,"is-focus":t.focus},attrs:{tabindex:!!t.indeterminate&&0,role:!!t.indeterminate&&"checkbox","aria-checked":!!t.indeterminate&&"mixed"}},[e("span",{staticClass:"ui-checkbox__inner"}),t.trueLabel||t.falseLabel?e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"ui-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",name:t.name,disabled:t.isDisabled,"true-value":t.trueLabel,"false-value":t.falseLabel},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var i=t.model,n=e.target,r=n.checked?t.trueLabel:t.falseLabel;if(Array.isArray(i)){var o=t._i(i,null);n.checked?o<0&&(t.model=i.concat([null])):o>-1&&(t.model=i.slice(0,o).concat(i.slice(o+1)))}else t.model=r},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"ui-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var i=t.model,n=e.target,r=!!n.checked;if(Array.isArray(i)){var o=t.label,a=t._i(i,o);n.checked?a<0&&(t.model=i.concat([o])):a>-1&&(t.model=i.slice(0,a).concat(i.slice(a+1)))}else t.model=r},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?e("span",{staticClass:"ui-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])}),[],!1,null,null,null).exports;const a={...o,name:"UiCheckboxGroup",componentName:"UiCheckboxGroup",props:{...o.props,isGroup:{type:Boolean,default:!0}}},s={...o,name:"UiCheckboxButton",props:{...o.props,isButton:{type:Boolean,default:!0}}};o.Group=a,o.Button=s,o.install=function(t){t.component(o.name,o),t.component("UiCheckboxGroup",a),t.component("UiCheckboxButton",s)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(18);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";var n=i(11),r=i(2),o={name:"UiOption",components:{},mixins:[n.a],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:()=>({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),inject:["select"],filters:{},computed:{isObject(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel(){return this.label||(this.isObject?"":this.value)},currentValue(){return this.value||this.label||""},itemSelected(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel(){this.created||this.select.remote||this.dispatch("UiSelect","setSelected")},value(t,e){const{remote:i,valueKey:n}=this.select;if(!this.created&&!i){if(n&&"object"==typeof t&&"object"==typeof e&&t[n]===e[n])return;this.dispatch("UiSelect","setSelected")}}},created(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy(){const{selected:t,multiple:e}=this.select;let i=e?t:[t],n=this.select.cachedOptions.indexOf(this),r=i.indexOf(this);n>-1&&r<0&&this.select.cachedOptions.splice(n,1),this.select.onOptionDestroy(this.select.options.indexOf(this))},methods:{isEqual(t,e){if(this.isObject){const i=this.select.valueKey;return Object(r.d)(t,i)===Object(r.d)(e,i)}return t===e},contains(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(this.isObject){const i=this.select.valueKey;return t&&t.some(t=>Object(r.d)(t,i)===Object(r.d)(e,i))}return t&&t.indexOf(e)>-1},handleGroupDisabled(t){this.groupDisabled=t},hoverItem(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("UiSelect","handleOptionClick",[this,!0])},queryChange(t){this.visible=new RegExp(Object(r.c)(t),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}}},a=i(1),s=Object(a.a)(o,(function(){var t=this,e=t._self._c;return e("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"ui-select-dropdown__item",class:{selected:t.itemSelected,"is-disabled":t.disabled||t.groupDisabled||t.limitReached,hover:t.hover},on:{mouseenter:t.hoverItem,click:function(e){return e.stopPropagation(),t.selectOptionClick.apply(null,arguments)}}},[t._t("default",(function(){return[e("span",[t._v(t._s(t.currentLabel))])]}))],2)}),[],!1,null,"652d1898",null);e.a=s.exports},function(t,e,i){"use strict";i.r(e);var n=i(13);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e),e.default={bind:(t,e,i)=>{const n=i.context,r=e.value;if(!(r instanceof Function))throw new Error("v-resize only accepts a function as handler");{const e=new ResizeObserver(()=>{r.call(n)});e.observe(t),n.$set(t,"$_resizeObserver",e)}},unbind:t=>{var e;t.$_resizeObserver&&(null===(e=t.$_resizeObserver)||void 0===e||e.disconnect())}}},function(t,e,i){"use strict";var n=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new n(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(null==r[t]){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new n(e),s.key=t,i.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},function(t,e,i){"use strict";var n=i(32),r=i(3),o=i(2);var a={name:"UiPopper",directives:{},mixins:[n.a],props:{visible:{type:Boolean,default:void 0},trigger:{type:String,default:"click",validator:t=>["click","focus","hover","manual"].indexOf(t)>-1},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:()=>"ui-popover-"+Object(o.o)(0,1e4)},watch:{visible:{handler(t){this.$props.hasOwnProperty("visible")&&t!==this.showPopper&&(this.showPopper=t)},immediate:!0,deep:!0},showPopper(t){this.disabled?t&&(this.showPopper=!1,this.$props.hasOwnProperty("visible")&&this.$emit("update:visible",!1)):(t?(this.$emit("show"),this.$nextTick(()=>{"function"==typeof this.updatePopper&&this.updatePopper()})):this.$emit("hide"),this.$props.hasOwnProperty("visible")&&this.$emit("update:visible",t))}},mounted(){this.$props.hasOwnProperty("visible")&&(this.showPopper=!!this.visible);let t=this.referenceElm=this.reference||this.$refs.reference;const e=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(r.a)(t,"ui-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),e.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(r.g)(t,"focusin",()=>{this.handleFocus();const e=t.__vue__;e&&"function"==typeof e.focus&&e.focus()}),Object(r.g)(e,"focusin",this.handleFocus),Object(r.g)(t,"focusout",this.handleBlur),Object(r.g)(e,"focusout",this.handleBlur)),Object(r.g)(t,"keydown",this.handleKeydown),Object(r.g)(t,"click",this.handleClick)),"click"===this.trigger?(Object(r.g)(t,"click",this.doToggle),Object(r.g)(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(r.g)(t,"mouseenter",this.handleMouseEnter),Object(r.g)(e,"mouseenter",this.handleMouseEnter),Object(r.g)(t,"mouseleave",this.handleMouseLeave),Object(r.g)(e,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex,t.querySelector("input, textarea")?(Object(r.g)(t,"focusin",this.doShow),Object(r.g)(t,"focusout",this.doClose)):(Object(r.g)(t,"mousedown",this.doShow),Object(r.g)(t,"mouseup",this.doClose)))},beforeDestroy(){this.cleanup()},deactivated(){this.cleanup()},methods:{doToggle(){this.setShowPopper(!this.showPopper)},doShow(){this.setShowPopper(!0)},doClose(){this.setShowPopper(!1)},setShowPopper(t){if(this.disabled&&!0===t)return;void 0!==this.visible?this.$emit("update:visible",t):this.showPopper=t},handleFocus(){Object(r.a)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||this.setShowPopper(!0)},handleClick(){Object(r.h)(this.referenceElm,"focusing")},handleBlur(){Object(r.h)(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||this.setShowPopper(!1)},handleMouseEnter(){clearTimeout(this._timer),this.openDelay?this._timer=setTimeout(()=>{this.setShowPopper(!0)},this.openDelay):this.setShowPopper(!0)},handleKeydown(t){27===t.keyCode&&"manual"!==this.trigger&&this.setShowPopper(!1)},handleMouseLeave(){clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout(()=>{this.setShowPopper(!1)},this.closeDelay):this.setShowPopper(!1)},handleDocumentClick(t){let e=this.reference||this.$refs.reference;const i=this.popper||this.$refs.popper;!e&&this.$refs.wrapper.children&&(e=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&e&&!this.$el.contains(t.target)&&!e.contains(t.target)&&i&&!i.contains(t.target)&&this.setShowPopper(!1)},handleAfterEnter(){this.$emit("after-enter")},handleAfterLeave(){this.$emit("after-leave"),this.doDestroy()},cleanup(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed(){const t=this.reference;Object(r.f)(t,"click",this.doToggle),Object(r.f)(t,"mouseup",this.doClose),Object(r.f)(t,"mousedown",this.doShow),Object(r.f)(t,"focusin",this.doShow),Object(r.f)(t,"focusout",this.doClose),Object(r.f)(t,"mousedown",this.doShow),Object(r.f)(t,"mouseup",this.doClose),Object(r.f)(t,"mouseleave",this.handleMouseLeave),Object(r.f)(t,"mouseenter",this.handleMouseEnter),Object(r.f)(document,"click",this.handleDocumentClick)}},s=i(1),l=Object(s.a)(a,(function(){var t=this,e=t._self._c;return e("span",[e("span",{ref:"wrapper",staticClass:"ui-popover__reference-wrapper"},[t._t("reference")],2),e("transition",{attrs:{name:t.transition},on:{"after-enter":t.handleAfterEnter,"after-leave":t.handleAfterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"ui-popover ui-popper",class:[t.popperClass,t.content&&"ui-popover--plain"],style:{width:t.width+"px"},attrs:{role:"tooltip",id:t.tooltipId,"aria-hidden":t.disabled||!t.showPopper?"true":"false"}},[t.title?e("div",{staticClass:"ui-popover__title",domProps:{textContent:t._s(t.title)}}):t._e(),t._t("default",(function(){return[t._v(t._s(t.content))]}))],2)])],1)}),[],!1,null,null,null);e.a=l.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"RadioGroup",(function(){return a})),i.d(e,"RadioButton",(function(){return s}));var n={name:"UiRadio",componentName:"UiRadio",mixins:[i(11).a],inject:{uiForm:{default:""},uiFormItem:{default:""}},props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String,isGroup:Boolean,fill:String,textColor:String,isButton:Boolean,options:Array},data:()=>({focus:!1}),computed:{_radioGroup(){let t=this.$parent;for(;t;){if("UiRadioGroup"===t.$options.componentName)return t;t=t.$parent}return null},isInsideGroup(){return!!this._radioGroup},model:{get(){return this.isGroup?this.value:this.isInsideGroup?this._radioGroup.value:this.value},set(t){this.isGroup?this.$emit("input",t):this.isInsideGroup?this.dispatch("UiRadioGroup","input",[t]):this.$emit("input",t),this.dispatch("UiFormItem","ui.form.change",[t]),this.isGroup||this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_uiFormItemSize(){return(this.uiFormItem||{}).uiFormItemSize},radioSize(){const t=this.size||this._uiFormItemSize||(this.$ELEMENT||{}).size;return this.isInsideGroup&&this.radioGroupSize||t},radioGroupSize(){return this.size||this._uiFormItemSize||(this.$ELEMENT||{}).size},isDisabled(){const t=this.disabled||(this.uiForm||{}).disabled;return this.isInsideGroup&&this._radioGroup.disabled||t},tabIndex(){return this.isDisabled||this.isInsideGroup&&this.model!==this.label?-1:0},activeStyle(){return this.isInsideGroup&&this.isButton?{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}:{}},_elTag(){let t=(this.$vnode.data||{}).tag;return t&&"component"!==t||(t="div"),t}},mounted(){if(this.isGroup){const t=this.$el.querySelectorAll("[type=radio]"),e=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(t,t=>t.checked)&&e&&(e.tabIndex=0)}},methods:{handleChange(){this.$nextTick(()=>{this.$emit("change",this.model),this.isInsideGroup&&this.dispatch("UiRadioGroup","handleChange",this.model)})},handleKeydown(t){if(!this.isGroup)return;const e=t.target,i="INPUT"===e.nodeName?"[type=radio]":"[role=radio]",n=this.$el.querySelectorAll(i),r=n.length,o=[].indexOf.call(n,e),a=this.$el.querySelectorAll("[role=radio]");switch(t.keyCode){case 37:case 38:t.stopPropagation(),t.preventDefault(),0===o?(a[r-1].click(),a[r-1].focus()):(a[o-1].click(),a[o-1].focus());break;case 39:case 40:o===r-1?(t.stopPropagation(),t.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus())}}},created(){this.isGroup&&this.$on("handleChange",t=>{this.$emit("change",t)})},watch:{value(t){this.dispatch("UiFormItem","ui.form.change",[t])}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return t.isGroup?e(t._elTag,{tag:"component",staticClass:"ui-radio-group",attrs:{role:"radiogroup"},on:{keydown:t.handleKeydown}},[t._v("\n>\n "),t.options&&t.options.length?t._l(t.options,(function(i){return e("ui-radio",{key:i.value,attrs:{label:i.value,"is-button":t.isButton,disabled:i.disabled}},[t._v("\n "+t._s(i.label)+"\n ")])})):t._t("default")],2):t.isButton?e("label",{staticClass:"ui-radio-button",class:[t.radioSize?"ui-radio-button--"+t.radioSize:"",{"is-active":t.model===t.label},{"is-disabled":t.isDisabled},{"is-focus":t.focus}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"ui-radio-button__orig-radio",attrs:{type:"radio",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{change:[function(e){t.model=t.label},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}),e("span",{staticClass:"ui-radio-button__inner",style:t.model===t.label?t.activeStyle:null,on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)]):e("label",{staticClass:"ui-radio",class:[t.border&&t.radioSize?"ui-radio--"+t.radioSize:"",{"is-disabled":t.isDisabled},{"is-focus":t.focus},{"is-bordered":t.border},{"is-checked":t.model===t.label}],attrs:{role:"radio","aria-checked":t.model===t.label,"aria-disabled":t.isDisabled,tabindex:t.tabIndex},on:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"]))return null;e.stopPropagation(),e.preventDefault(),t.model=t.isDisabled?t.model:t.label}}},[e("span",{staticClass:"ui-radio__input",class:{"is-disabled":t.isDisabled,"is-checked":t.model===t.label}},[e("span",{staticClass:"ui-radio__inner"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"radio",staticClass:"ui-radio__original",attrs:{type:"radio","aria-hidden":"true",name:t.name,disabled:t.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:t.label,checked:t._q(t.model,t.label)},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1},change:[function(e){t.model=t.label},t.handleChange]}})]),e("span",{staticClass:"ui-radio__label",on:{keydown:function(t){t.stopPropagation()}}},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2)])}),[],!1,null,null,null).exports;const a={...o,name:"UiRadioGroup",componentName:"UiRadioGroup",props:{...o.props,isGroup:{type:Boolean,default:!0}}},s={...o,name:"UiRadioButton",props:{...o.props,isButton:{type:Boolean,default:!0}}};o.Group=a,o.Button=s,o.install=function(t){t.component(o.name,o),t.component("UiRadioGroup",a),t.component("UiRadioButton",s)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(31);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";var n={name:"UiIcon",props:{name:{type:String,default:""},size:[String,Number],color:String},computed:{className(){return this.name?"ui-icon-"+this.name:"ui-icon"},style(){const t={};return this.size&&(t.fontSize="number"==typeof this.size?this.size+"px":this.size),this.color&&(t.color=this.color),t.transition="color 0.3s",t}}},r=i(15),o=i.n(r),a=i(114),s={insert:"head",singleton:!1},l=(o()(a.a,s),a.a.locals,i(1)),u=Object(l.a)(n,(function(){return(0,this._self._c)("i",{class:this.className,style:this.style},[this._t("default")],2)}),[],!1,null,null,null);e.a=u.exports},function(t,e,i){"use strict";var n={name:"UiNoData",mixins:[i(10).a]},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"100%",width:"100%"}},[e("div",{staticClass:"ui-no-data"},[e("svg",{staticClass:"ui-no-data__icon",attrs:{t:"1742797496280",viewBox:"0 0 1263 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9471","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("path",{attrs:{d:"M981.781336 1023.881556q6.843424-4.86936 13.528924-9.936126 6.69866-5.066766 13.226233-10.330938 6.540734-5.264173 12.923544-10.725752 6.369649-5.461579 12.581372-11.107404t12.252362-11.475896q6.053798-5.830071 11.91019-11.831228 5.869552-6.001157 11.541698-12.186559 5.685306-6.185403 11.186367-12.51557 5.50106-6.343328 10.804714-12.844581 5.303654-6.514413 10.423062-13.160431 5.106247-6.672339 10.015088-13.476282t9.607115-13.765811q4.711434-6.948708 9.212302-14.02902 4.500868-7.106633 8.778007-14.318549 4.290301-7.211916 8.356874-14.555437t7.896259-14.805485q3.856006-7.461965 7.488285-15.029213 3.619119-7.580408 7.01451-15.2661 3.395391-7.659371 6.567055-15.437186 3.158504-7.764654 6.09328-15.634593 2.934776-7.869938 5.632665-15.818838t5.158889-15.976764q2.461001-8.027863 4.685113-16.121528 2.224113-8.093665 4.198178-16.253133 1.974065-8.159467 3.711242-16.371576 1.737177-8.212109 3.224305-16.47686 1.500289-8.25159 2.73737-16.555823 1.250241-8.291072 2.237273-16.634785 1.000193-8.343713 1.750338-16.700587 0.750145-8.356874 1.250241-16.740069t0.750144-16.76639q0.250048-8.396355 0.250048-16.79271 0-13.844774-0.684342-27.676387-0.684342-13.844774-2.039867-27.623745-1.355524-13.778972-3.382231-27.492141-2.039867-13.686849-4.737755-27.281574-2.711049-13.581565-6.066959-27.018366-3.36907-13.4368-7.383002-26.689355-4.027092-13.265715-8.685884-26.294541-4.671953-13.055148-9.975607-25.847087t-11.225848-25.32067q-5.922194-12.51557-12.449768-24.741611-6.527574-12.21288-13.647368-24.083589-7.119793-11.883869-14.818645-23.399247-7.698852-11.515377-15.950443-22.635942-8.25159-11.133725-17.029598-21.846316-8.791168-10.699431-18.095593-20.964567t-19.082626-20.056498q-9.804521-9.804521-20.069657-19.095785-10.265136-9.304425-20.977728-18.095593-10.699431-8.791168-21.833155-17.042759-11.120564-8.25159-22.635942-15.937282-11.515377-7.698852-23.399247-14.818646-11.883869-7.119793-24.083589-13.647367-12.239201-6.540734-24.741611-12.462929-12.528731-5.922194-25.32067-11.212687-12.8051-5.303654-25.847087-9.975607-13.028827-4.658793-26.294542-8.685885-13.252554-4.013932-26.689355-7.383002-13.4368-3.36907-27.018365-6.066959-13.594726-2.711049-27.294735-4.737755-13.686849-2.026706-27.47898-3.395391-13.792132-1.355524-27.623746-2.026707Q668.378825 0 654.520891 0q-13.844774 0-27.689548 0.684342-13.818453 0.671182-27.610584 2.026707-13.792132 1.368685-27.492141 3.395391-13.686849 2.026706-27.281575 4.737755-13.581565 2.697888-27.018365 6.053799-13.4368 3.382231-26.702515 7.396162-13.252554 4.027092-26.294542 8.685885-13.028827 4.671953-25.833927 9.975607-12.791939 5.290493-25.320669 11.212687-12.51557 5.922194-24.741611 12.462929-12.21288 6.527574-24.08359 13.647367-11.883869 7.106633-23.399247 14.818646-11.528538 7.685692-22.649102 15.937282-11.120564 8.25159-21.833155 17.042759-10.712591 8.791168-20.964567 18.095593-10.265136 9.291265-20.056498 19.082625-9.804521 9.804521-19.095786 20.069658-9.304425 10.265136-18.095593 20.964567-8.791168 10.712591-17.042758 21.846316-8.25159 11.120564-15.950443 22.635942-7.685692 11.515377-14.805485 23.399247-7.119793 11.870709-13.660528 24.083589-6.527574 12.226041-12.449768 24.741611-5.922194 12.528731-11.225848 25.32067-5.290493 12.8051-9.962446 25.833926-4.658793 13.041987-8.685885 26.307702-4.013932 13.252554-7.383002 26.689355-3.36907 13.42364-6.066959 27.018366-2.711049 13.581565-4.737755 27.281574t-3.395391 27.492141q-1.355524 13.778972-2.026707 27.623745-0.684342 13.818453-0.684342 27.676387 0 8.396355 0.250048 16.79271 0.250048 8.383195 0.750145 16.76639 0.500096 8.383195 1.250241 16.740069 0.736984 8.356874 1.737176 16.700587 1.000193 8.330553 2.237274 16.634785 1.250241 8.291072 2.73737 16.555823 1.487129 8.264751 3.224305 16.47686t3.724402 16.371576q1.974065 8.159467 4.198178 16.253133 2.224113 8.093665 4.685113 16.121528 2.461001 8.027863 5.158889 15.976764 2.697888 7.948901 5.632665 15.818838 2.921616 7.856777 6.09328 15.634593 3.158504 7.764654 6.567055 15.450346 3.395391 7.672531 7.01451 15.25294 3.619119 7.567248 7.475125 15.029213 3.842846 7.461965 7.909419 14.805485 4.079734 7.343521 8.356874 14.555437 4.27714 7.225077 8.778008 14.318549 4.487707 7.080312 9.199141 14.02902 4.698274 6.961868 9.607115 13.765811 4.922001 6.803943 10.028249 13.463121 5.106247 6.659178 10.409901 13.160432 5.316814 6.514413 10.804714 12.857741 5.50106 6.343328 11.186367 12.51557 5.685306 6.185403 11.554858 12.186559 5.856392 6.001157 11.89703 11.844389 6.053798 5.816911 12.252362 11.462735 6.211724 5.658985 12.594532 11.107404 6.369649 5.461579 12.910384 10.725752 6.540734 5.264173 13.226233 10.330938 6.69866 5.079926 13.528923 9.949287V361.648652a45.666697 45.666697 0 0 1 45.666697-45.666696h563.187498a45.666697 45.666697 0 0 1 45.666696 45.666696V1023.881556z m213.120025-875.471372q0 2.053027-0.197406 4.106054-0.197406 2.039867-0.60538 4.066574-0.394813 2.013546-1.000193 3.97445-0.592219 1.974065-1.381845 3.869167-0.789626 1.908263-1.750338 3.724402-0.973872 1.802979-2.105669 3.513835-1.158118 1.710856-2.461 3.290108-1.302883 1.605573-2.763691 3.05322-1.447647 1.447647-3.026899 2.763691-1.592412 1.302883-3.303268 2.44784t-3.526996 2.105669q-1.81614 0.973872-3.711242 1.763498-1.908263 0.789626-3.869166 1.381845-1.974065 0.592219-3.987611 1.000193-2.013546 0.394813-4.066573 0.605379-2.039867 0.197406-4.092895 0.197407-2.066188 0-4.106054-0.197407-2.053027-0.210567-4.066573-0.605379t-3.987611-1.000193q-1.974065-0.60538-3.869167-1.381845-1.895102-0.789626-3.711242-1.763498-1.81614-0.960711-3.526995-2.105669-1.710856-1.144958-3.290108-2.44784-1.592412-1.316043-3.05322-2.763691-1.447647-1.447647-2.763691-3.04006-1.289722-1.579252-2.434679-3.290108t-2.105669-3.526995q-0.973872-1.81614-1.763498-3.724402-0.789626-1.895102-1.381845-3.869167-0.60538-1.974065-1.000193-3.97445-0.394813-2.026706-0.60538-4.079734-0.197406-2.039867-0.197407-4.079734 0-2.066188 0.197407-4.119215 0.197406-2.039867 0.60538-4.053413 0.394813-2.026706 1.000193-3.98761 0.592219-1.974065 1.381845-3.869167t1.750337-3.711242q0.973872-1.81614 2.105669-3.526995 1.158118-1.710856 2.461001-3.290108 1.302883-1.605573 2.76369-3.05322 1.447647-1.447647 3.0269-2.763691 1.592412-1.302883 3.303268-2.44784 1.710856-1.131797 3.526995-2.105669 1.81614-0.973872 3.711242-1.763498 1.908263-0.789626 3.869167-1.381845 1.974065-0.592219 3.987611-1.000193 2.013546-0.394813 4.066573-0.592219 2.039867-0.210567 4.106054-0.210567 2.053027 0 4.092895 0.210567 2.053027 0.197406 4.066573 0.592219 2.013546 0.407973 3.987611 1.000193 1.974065 0.60538 3.869166 1.381845 1.895102 0.789626 3.711242 1.763498 1.81614 0.973872 3.526996 2.105669 1.710856 1.144958 3.290107 2.44784 1.592412 1.316043 3.05322 2.763691 1.447647 1.447647 2.763691 3.04006 1.289722 1.592412 2.43468 3.303268t2.105669 3.526995q0.973872 1.81614 1.763498 3.711242 0.789626 1.895102 1.381845 3.869167 0.60538 1.974065 1.000193 3.98761t0.60538 4.053413q0.197406 2.053027 0.197406 4.106055zM106.546852 254.970196q0 1.302883-0.131604 2.605766t-0.381653 2.579444q-0.250048 1.289722-0.631701 2.539963t-0.881749 2.461001q-0.500096 1.21076-1.118636 2.368878-0.60538 1.144958-1.342364 2.237273-0.723824 1.092316-1.552931 2.105669-0.829107 1.000193-1.750337 1.934583-0.92123 0.92123-1.947744 1.750338-1.013353 0.829107-2.105669 1.566091-1.079155 0.723824-2.237274 1.342364-1.144958 0.61854-2.368877 1.118637-1.197599 0.500096-2.44784 0.868588-1.250241 0.394813-2.539964 0.644861-1.276562 0.263209-2.579444 0.381653-1.316043 0.131604-2.618926 0.131604-1.316043 0-2.605765-0.131604-1.316043-0.131604-2.592605-0.394813-1.276562-0.250048-2.526803-0.631701-1.250241-0.368492-2.461001-0.868588-1.21076-0.500096-2.368878-1.118637-1.158118-0.61854-2.237273-1.342364-1.092316-0.736984-2.105669-1.566091t-1.934583-1.750338q-0.92123-0.92123-1.750338-1.934583-0.829107-1.013353-1.566091-2.105669-0.723824-1.092316-1.342364-2.237273-0.61854-1.158118-1.118637-2.368878-0.500096-1.21076-0.881749-2.461001-0.381653-1.250241-0.6317-2.539963-0.263209-1.276562-0.394813-2.579444-0.118444-1.316043-0.118444-2.605766 0-1.316043 0.131604-2.618926t0.394813-2.579444q0.236888-1.289722 0.61854-2.539963 0.394813-1.250241 0.881749-2.461001 0.500096-1.21076 1.118637-2.368878 0.61854-1.144958 1.342364-2.237273 0.736984-1.092316 1.566091-2.105669 0.829107-1.000193 1.750338-1.934583 0.92123-0.92123 1.934583-1.750338 1.013353-0.829107 2.105669-1.566091 1.079155-0.723824 2.237273-1.342364 1.158118-0.61854 2.368878-1.118637 1.21076-0.500096 2.461001-0.868588 1.250241-0.394813 2.526803-0.644861 1.289722-0.263209 2.592605-0.381653 1.302883-0.131604 2.605765-0.131604 1.316043 0 2.618926 0.131604t2.579444 0.394813q1.289722 0.250048 2.539964 0.631701 1.250241 0.368492 2.461 0.868588 1.21076 0.500096 2.368878 1.118637 1.144958 0.61854 2.237273 1.342364 1.079155 0.736984 2.105669 1.566091 1.000193 0.829107 1.934584 1.750338 0.92123 0.92123 1.750337 1.934583 0.829107 1.013353 1.552931 2.105669 0.736984 1.092316 1.342364 2.237273 0.61854 1.158118 1.118636 2.368878 0.500096 1.21076 0.881749 2.461001 0.394813 1.250241 0.631701 2.539963 0.263209 1.276562 0.394813 2.579444 0.131604 1.316043 0.131604 2.605766zM1263.401406 258.773561q0 1.487129-0.144765 2.974257-0.144765 1.500289-0.434294 2.961097-0.30269 1.460808-0.736984 2.895295t-1.000193 2.816333q-0.565899 1.381845-1.276562 2.697888-0.710663 1.316043-1.53977 2.566284-0.829107 1.237081-1.776658 2.395199-0.947551 1.158118-2.000386 2.210952-1.052835 1.052835-2.224113 2.013546-1.158118 0.947551-2.395198 1.776658-1.237081 0.829107-2.566284 1.539771-1.316043 0.697503-2.697889 1.276562-1.381845 0.565899-2.816332 1.000192t-2.895295 0.723824q-1.460808 0.30269-2.961097 0.447455-1.487129 0.131604-2.974258 0.131604-1.500289 0-2.987418-0.131604-1.487129-0.144765-2.947936-0.447455-1.473968-0.289529-2.895295-0.723824-1.447647-0.434294-2.829493-1.000192-1.381845-0.579059-2.697888-1.276562-1.316043-0.710663-2.553124-1.539771-1.250241-0.829107-2.408359-1.776658-1.158118-0.947551-2.210952-2.013546-1.052835-1.052835-2.000386-2.210952-0.960711-1.158118-1.789818-2.395199-0.829107-1.250241-1.52661-2.566284-0.710663-1.316043-1.276562-2.697888-0.579059-1.381845-1.013354-2.816333t-0.723823-2.895295q-0.289529-1.460808-0.434295-2.961097-0.144765-1.487129-0.144764-2.974257 0-1.500289 0.131604-2.987418 0.157925-1.487129 0.447455-2.961097 0.289529-1.460808 0.723823-2.895295t1.013354-2.816332q0.565899-1.381845 1.276562-2.697889 0.697503-1.316043 1.52661-2.553123 0.829107-1.250241 1.789818-2.408359 0.947551-1.158118 2.000386-2.210953 1.052835-1.052835 2.210952-2.000385 1.158118-0.960711 2.408359-1.789819 1.237081-0.829107 2.553124-1.53977 1.316043-0.697503 2.711049-1.263402 1.368685-0.579059 2.803172-1.013353t2.895294-0.723824q1.473968-0.289529 2.961097-0.447454 1.487129-0.131604 2.987418-0.131605 1.487129 0 2.987418 0.131605 1.487129 0.157925 2.947937 0.447454 1.460808 0.289529 2.895295 0.723824t2.816332 1.000193q1.381845 0.579059 2.697889 1.289722 1.316043 0.697503 2.566284 1.52661 1.237081 0.829107 2.395198 1.789819 1.158118 0.947551 2.224113 2.000385 1.052835 1.052835 2.000386 2.210953 0.947551 1.158118 1.776658 2.408359 0.829107 1.237081 1.53977 2.553123 0.697503 1.316043 1.276562 2.697889 0.565899 1.381845 1.000193 2.816332t0.736984 2.895295q0.289529 1.473968 0.434294 2.961097 0.144765 1.487129 0.144765 2.987418z m-603.813749 497.332699q7.383002 0 14.739683-0.697503 7.356681-0.684342 14.608079-2.053027 7.264558-1.368685 14.384351-3.408552 7.106633-2.026706 13.989539-4.724594 6.896066-2.684728 13.528923-6.001157 6.619697-3.316429 12.910383-7.238237 6.303847-3.921809 12.226041-8.422676 5.922194-4.474547 11.396933-9.501832l59.48515 60.972278c4.514028 4.632472 16.029405 5.922194 21.898958 0 5.869552-5.909034 3.908648-16.79271-0.618541-21.425182l-60.4327-61.95931q3.97445-5.303654 7.501446-10.923158 3.553316-5.593183 6.632857-11.489057 3.06638-5.882713 5.658985-12.002313 2.605765-6.119601 4.698274-12.423447 2.105669-6.317007 3.684921-12.778779 1.579252-6.474932 2.658407-13.041988 1.052835-6.580216 1.579252-13.226233 0.539578-6.632857 0.539578-13.292036 0-4.027092-0.184246-8.027863-0.197406-4.027092-0.579059-8.027863-0.394813-3.987611-0.973872-7.962061t-1.355525-7.909419q-0.763305-3.948129-1.724016-7.843617-0.960711-3.895488-2.105669-7.738334-1.158118-3.842846-2.487322-7.63305-1.329204-3.777044-2.842653-7.488285-1.51345-3.711242-3.211145-7.343521-1.684535-3.632279-3.553316-7.172435-1.855621-3.540156-3.895488-6.975029-2.026706-3.461193-4.224499-6.790782-2.197792-3.34275-4.553509-6.580216-2.368878-3.211145-4.869359-6.317007t-5.158889-6.080119q-2.658407-2.987418-5.448419-5.816911-2.803172-2.842653-5.724788-5.540541-2.934776-2.697888-5.987996-5.251013-3.06638-2.553124-6.238044-4.935161-3.171664-2.395198-6.461772-4.632472-3.290108-2.237273-6.685499-4.290301-3.382231-2.066188-6.869745-3.96129t-7.067152-3.605958q-3.579637-1.724017-7.238237-3.263787-3.645439-1.53977-7.369842-2.895295-3.724402-1.342364-7.501446-2.500481-3.790204-1.184439-7.63305-2.158311-3.816525-0.973872-7.698852-1.750338-3.882327-0.789626-7.790975-1.381845-3.908648-0.579059-7.843617-0.973872-3.948129-0.394813-7.896259-0.592219t-7.896259-0.197407q-3.948129 0-7.896259 0.197407t-7.896259 0.592219q-3.934969 0.394813-7.843617 0.973872-3.908648 0.592219-7.790975 1.381845t-7.712013 1.750338q-3.842846 0.987032-7.619889 2.14515-3.790204 1.171278-7.501446 2.526803-3.724402 1.342364-7.369842 2.895295-3.67176 1.52661-7.238237 3.250626-3.579637 1.710856-7.067152 3.605958-3.487514 1.895102-6.869745 3.94813-3.395391 2.079348-6.685499 4.303461-3.290108 2.237273-6.461772 4.632472-3.184824 2.382038-6.238044 4.935161-3.05322 2.553124-5.987996 5.251013-2.921616 2.697888-5.724788 5.527381-2.790011 2.842653-5.448419 5.830071-2.658407 2.974257-5.158889 6.080119-2.513642 3.105862-4.869359 6.317007-2.355717 3.237466-4.55351 6.580216-2.197792 3.329589-4.224498 6.777622-2.039867 3.448033-3.895488 6.988189-1.868781 3.553316-3.553316 7.172435-1.697696 3.632279-3.211145 7.343521-1.51345 3.711242-2.842653 7.501445-1.329204 3.777044-2.487322 7.633051-1.144958 3.829686-2.105669 7.725173-0.960711 3.895488-1.724017 7.843617-0.776465 3.948129-1.355524 7.909419-0.579059 3.97445-0.973872 7.975221-0.394813 3.987611-0.579059 8.001543-0.197406 4.013932-0.197406 8.027863 0 4.027092 0.197406 8.027863 0.197406 4.013932 0.579059 8.027863 0.394813 3.987611 0.973872 7.962061t1.355524 7.909419q0.763305 3.948129 1.724017 7.843617 0.960711 3.895488 2.105669 7.738334 1.158118 3.842846 2.487322 7.63305 1.329204 3.777044 2.842653 7.488285 1.51345 3.711242 3.197984 7.330361 1.697696 3.632279 3.553317 7.185595 1.868781 3.540156 3.908648 6.975029 2.026706 3.461193 4.224498 6.790782 2.197792 3.34275 4.55351 6.580216 2.355717 3.211145 4.869359 6.317007 2.500482 3.105862 5.158889 6.080119 2.658407 2.987418 5.448419 5.816911 2.803172 2.842653 5.724788 5.540542 2.934776 2.697888 5.987996 5.251012 3.06638 2.553124 6.238044 4.935161 3.171664 2.395198 6.461772 4.632472 3.290108 2.237273 6.685499 4.290301 3.382231 2.066188 6.869745 3.96129t7.067152 3.605958q3.566477 1.710856 7.238237 3.263787 3.645439 1.53977 7.369842 2.895295 3.711242 1.342364 7.501446 2.500482 3.777044 1.184439 7.619889 2.15831 3.829686 0.973872 7.712013 1.750338 3.882327 0.789626 7.790975 1.381845 3.908648 0.579059 7.843617 0.973872 3.948129 0.394813 7.896259 0.592219t7.896259 0.197407z m92.201982-257.997095q38.428459 39.047 38.428459 94.360292 0 55.300132-38.428459 94.347132-38.231053 38.823272-92.201982 38.823273-53.970929 0-92.201982-38.823273-38.428459-39.047-38.428459-94.360292 0-55.300132 38.428459-94.347132 38.231053-38.836433 92.201982-38.836433 53.957768 0 92.201982 38.836433z m-108.968372 120.549551a55.313293 55.313293 0 0 1-0.658021-7.567248c0-9.922965 4.435065-18.977342 15.437186-26.781478l9.44919-6.619697c5.922194-4.185017 8.475318-8.988575 8.475317-14.739683 0-8.422676-5.737948-16.542662-19.54324-16.542662-13.818453 0-19.806449 10.554666-19.806449 21.109331 0 2.066188 0.329011 4.185017 0.658021 5.987997l-24.557365-0.868589a41.152669 41.152669 0 0 1-0.92123-8.422676c0-20.174941 15.700395-39.468134 44.350654-39.468133 30.163709 0 45.929905 18.042951 45.929905 37.033453 0 14.792325-7.883098 25.03114-19.21423 32.835277l-7.883098 5.435258c-6.896066 4.487707-10.357259 10.488864-10.35726 18.029791v1.184438h-21.35938v-0.61854z m10.936319 12.041794c8.54112 0 15.437186 6.619697 15.437186 14.739683 0 8.106826-6.896066 14.739683-15.437186 14.739683-8.527959 0-15.437186-6.632857-15.437186-14.739683 0-8.119986 6.909226-14.739683 15.437186-14.739683zM106.546852 867.640916q0 2.605765-0.263209 5.224691-0.250048 2.592605-0.750144 5.158889-0.526417 2.566284-1.276562 5.079926-0.763305 2.500482-1.763498 4.922002-1.000193 2.421519-2.237273 4.724595-1.22392 2.303075-2.684728 4.474546-1.447647 2.184632-3.119022 4.211338-1.658214 2.026706-3.500675 3.869167-1.84246 1.84246-3.882327 3.513835-2.013546 1.658214-4.198178 3.119022-2.171471 1.447647-4.474547 2.684728-2.316236 1.237081-4.737755 2.237274-2.408359 1.000193-4.922001 1.763497-2.500482 0.750145-5.066766 1.263402t-5.17205 0.763305q-2.605765 0.263209-5.224691 0.263209t-5.224691-0.263209q-2.605765-0.263209-5.17205-0.763305-2.566284-0.513257-5.066766-1.263402-2.500482-0.763305-4.922001-1.763497-2.421519-1.000193-4.737755-2.237274-2.289915-1.237081-4.474547-2.684728-2.171471-1.447647-4.198178-3.119022-2.026706-1.658214-3.869166-3.513835-1.84246-1.84246-3.513836-3.869167-1.658214-2.026706-3.119022-4.211338-1.447647-2.171471-2.684728-4.474546-1.237081-2.303075-2.237273-4.737756-1.000193-2.408359-1.763498-4.908841-0.750145-2.500482-1.263401-5.079926-0.513257-2.566284-0.776466-5.158889Q0 870.246681 0 867.627755q0-2.632086 0.263209-5.224691 0.250048-2.605765 0.763305-5.17205 0.513257-2.566284 1.263401-5.079926 0.763305-2.500482 1.763498-4.908841 1.000193-2.421519 2.237273-4.737755 1.237081-2.303075 2.684728-4.474547 1.447647-2.184632 3.119022-4.211338 1.658214-2.013546 3.513836-3.869167 1.84246-1.84246 3.869166-3.513835 2.026706-1.658214 4.211338-3.105862 2.158311-1.447647 4.474547-2.684728 2.303075-1.237081 4.724595-2.237273 2.421519-1.013353 4.922001-1.763498 2.500482-0.763305 5.066766-1.276562 2.566284-0.500096 5.17205-0.763305 2.605765-0.263209 5.224691-0.263208 2.632086 0 5.224691 0.263208 2.605765 0.263209 5.17205 0.763305 2.566284 0.526417 5.066766 1.276562t4.922001 1.763498q2.421519 1.000193 4.737755 2.237273 2.303075 1.22392 4.474547 2.684728 2.184632 1.447647 4.211338 3.105862 2.013546 1.671375 3.869167 3.513835 1.84246 1.84246 3.500675 3.869167 1.671375 2.026706 3.119022 4.211338 1.447647 2.171471 2.684728 4.474547 1.237081 2.316236 2.237273 4.737755 1.000193 2.408359 1.763498 4.908841 0.763305 2.500482 1.276562 5.079926 0.500096 2.566284 0.763305 5.17205 0.263209 2.605765 0.263208 5.224691z m696.936961-32.558907H505.571129c-11.212687 0-20.319706 6.830264-20.319706 15.226619s9.107018 15.213459 20.319706 15.213458h297.912684c11.199527 0 20.319706-6.817103 20.319706-15.213458 0-8.396355-9.120179-15.226619-20.319706-15.226619z m0 79.002069H505.571129c-11.212687 0-20.319706 6.817103-20.319706 15.213458 0 8.396355 9.107018 15.226619 20.319706 15.226619h297.912684c11.199527 0 20.319706-6.830264 20.319706-15.226619s-9.120179-15.213459-20.319706-15.213458z m-66.447018 67.710419h-165.031808c-10.502024 0-19.043144 6.817103-19.043145 15.213458 0 8.396355 8.55428 15.226619 19.043145 15.226619h165.031808c10.515185 0 19.056305-6.830264 19.056305-15.226619s-8.55428-15.213459-19.056305-15.213458z","p-id":"9472"}})]),e("div",{staticClass:"ui-no-data__info"},[t._t("default",(function(){return[e("span",[t._v(t._s(t.t("components.noData.emptyText")||"暂无数据"))])]}))],2)])])}),[],!1,null,null,null);e.a=o.exports},function(t,e,i){"use strict";var n=i(5),r=i.n(n),o=i(19);const a=r.a.prototype.$isServer?function(){}:i(123),s=t=>t.stopPropagation();e.a={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:()=>({gpuAcceleration:!1})}},data:()=>({showPopper:!1,currentPlacement:""}),watch:{value:{handler(t){this.showPopper=t,this.$emit("input",t)},immediate:!0},showPopper(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper(){if(this.$isServer)return;if(this.currentPlacement=this.currentPlacement||this.placement,!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))return;const t=this.popperOptions,e=this.popperElm=this.popperElm||this.popper||this.$refs.popper;let i=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!i&&this.$slots.reference&&this.$slots.reference[0]&&(i=this.referenceElm=this.$slots.reference[0].elm),e&&i&&(this.visibleArrow&&this.appendArrow(e),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new a(i,e,t),this.popperJS.onCreate(()=>{this.$emit("created",this),this.resetTransformOrigin(),this.$nextTick(this.updatePopper)}),"function"==typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.a.nextZIndex(),this.popperElm.addEventListener("click",s))},updatePopper(){const t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=o.a.nextZIndex())):this.createPopper()},doDestroy(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin(){if(!this.transformOrigin)return;let t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],e={top:"bottom",bottom:"top",left:"right",right:"left"}[t];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+e:e+" center"},appendArrow(t){if(this.appended)return;let e;this.appended=!0;for(let i in t.attributes)if(/^_v-/.test(t.attributes[i].name)){e=t.attributes[i].name;break}const i=document.createElement("div");e&&i.setAttribute(e,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",t.appendChild(i)}},beforeDestroy(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",s),document.body.removeChild(this.popperElm))},deactivated(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,i){"use strict";var n=i(118),r=i(2),o={name:"UiForm",components:{UiFormField:n.default},mixins:[],props:{model:Object,fieldList:Array,rules:Object,completed:Boolean,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},data:()=>({fields:[],potentialLabelWidthArr:[]}),provide(){return{uiForm:this}},filters:{},computed:{autoLabelWidth(){if(!this.potentialLabelWidthArr.length)return 0;const t=Math.max(...this.potentialLabelWidthArr);return t?t+"px":""},hasFieldList(){return Object(r.f)(this.fieldList)&&!Object(r.g)(this.fieldList)}},watch:{model:{handler(){this.checkCompleted()},deep:!0},rules(){this.fields.forEach(t=>{t.removeValidateEvents(),t.addValidateEvents()}),this.validateOnRuleChange&&this.validate(()=>{})}},created(){this.$on("ui.form.addField",t=>{t&&this.fields.push(t),this.checkCompleted()}),this.$on("ui.form.removeField",t=>{t.prop&&this.fields.splice(this.fields.indexOf(t),1),this.checkCompleted()})},mounted(){},activated(){},beforeDestroy(){},methods:{resetFields(){this.model&&this.fields.forEach(t=>t.resetField())},clearValidate(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(t.length?"string"==typeof t?this.fields.filter(e=>t===e.prop):this.fields.filter(e=>t.indexOf(e.prop)>-1):this.fields).forEach(t=>t.clearValidate())},validate(t){if(!this.model)return;let e;"function"!=typeof t&&window.Promise&&(e=new window.Promise((e,i)=>{t=function(t,n){t?e(t):i(n)}}));let i=!0,n=0;0===this.fields.length&&t&&(t(!0),this.checkCompleted());let o={};return this.fields.forEach(e=>{e.validate("",(e,a)=>{e&&(i=!1),o=Object(r.m)({},o,a),"function"==typeof t&&++n===this.fields.length&&(t(i,o),this.$nextTick(()=>{this.checkCompleted()}))})}),e||void 0},validateField(t,e){t=[].concat(t);const i=this.fields.filter(e=>-1!==t.indexOf(e.prop));i.length&&i.forEach(t=>{t.validate("",e)})},notifyStatusChange(){this.checkCompleted()},checkCompleted(){let t=!0;for(const e of this.fields){if("error"===e.validateState){t=!1;break}if((e.getRules?e.getRules():[]).some(t=>t.required)&&Object(r.g)(e.fieldValue)){t=!1;break}}t!==this.completed&&this.$emit("update:completed",t)},getLabelWidthIndex(t){const e=this.potentialLabelWidthArr.indexOf(t);if(!~e)throw new Error("[ElementForm]unpected width ",t);return e},registerLabelWidth(t,e){if(t&&e){const i=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(i,1,t)}else t&&this.potentialLabelWidthArr.push(t)},deregisterLabelWidth(t){const e=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(e,1)}}},a=i(1),s=Object(a.a)(o,(function(){var t=this._self._c;return t("form",{staticClass:"ui-form",class:[this.labelPosition?"ui-form--label-"+this.labelPosition:"",this.inline?"ui-form--inline":""]},[this.hasFieldList?t("ui-form-field",{attrs:{fields:this.fieldList}}):this._e(),this._t("default")],2)}),[],!1,null,"684f531c",null);e.a=s.exports},function(t,e,i){"use strict";i.r(e);var n=i(30);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e);var n=i(24),r=i(38),o={name:"UiSelectDropdown",components:{},mixins:[i(32).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:()=>({gpuAcceleration:!1})},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:()=>({minWidth:""}),filters:{},computed:{popperClass(){return this.$parent.popperClass}},watch:{"$parent.inputWidth"(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted(){this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",()=>{this.$parent.visible&&this.updatePopper()}),this.$on("destroyPopper",this.destroyPopper)},methods:{}},a=i(1),s=Object(a.a)(o,(function(){return(0,this._self._c)("div",{staticClass:"ui-select-dropdown ui-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)}),[],!1,null,null,null).exports,l=i(23),u=i(11),c=i(10),h={data:()=>({hoverOption:-1}),computed:{optionsAllDisabled(){return this.options.filter(t=>t.visible).every(t=>t.disabled)}},watch:{hoverIndex(t){"number"==typeof t&&t>-1&&(this.hoverOption=this.options[t]||{}),this.options.forEach(t=>{t.hover=this.hoverOption===t})}},methods:{navigateOptions(t){if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===t?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===t&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));const e=this.options[this.hoverIndex];!0!==e.disabled&&!0!==e.groupDisabled&&e.visible||this.navigateOptions(t),this.$nextTick(()=>this.scrollToOption(this.hoverOption))}}else this.visible=!0}}},d=i(12),p=i(25),f=i(2),g=i(3),m=i(5),y=i.n(m);var v,b={name:"UiSelect",components:{UiInput:n.default,UiSelectMenu:s,UiOption:l.a,UiTag:r.default},mixins:[u.a,c.a,(v="reference",{methods:{focus(){this.$refs[v].focus()}}}),h],directives:{clickoutside:d.default,resize:p.default},inject:{uiForm:{default:""},uiFormItem:{default:""}},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:String,autoSize:Boolean,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:t=>({options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,selectedLabelWidth:null,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}),provide(){return{select:this}},computed:{_uiFormItemSize(){return(this.uiFormItem||{}).uiFormItemSize},readonly(){return!this.filterable||this.multiple||!(!y.a.prototype.$isServer&&!isNaN(Number(document.documentMode)))&&!(!y.a.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1)&&!this.visible},showClose(){let t=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value;return this.clearable&&!this.selectDisabled&&this.inputHovering&&t},iconClass(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce(){return this.remote?300:0},emptyText(){return this.loading?this.loadingText||this.t("components.select.loadingText"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("components.select.noMatchText"):0===this.options.length?this.noDataText||this.t("components.select.noDataText"):null)},showNewOption(){let t=this.options.filter(t=>!t.created).some(t=>t.currentLabel===this.query);return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize(){return this.size||this._uiFormItemSize||(this.$ELEMENT||{}).size},autoSizeStyle(){return{width:this.autoSize&&this.selectedLabelWidth?this.selectedLabelWidth+40+"px":void 0}},selectDisabled(){return this.disabled||(this.uiForm||{}).disabled},collapseTagSize(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder(){return this.placeholder||""}},watch:{selectDisabled(){this.$nextTick(()=>{this.resetInputHeight()})},propPlaceholder(t){this.cachedPlaceHolder=this.currentPlaceholder=t},value(t,e){this.multiple&&(this.resetInputHeight(),t&&t.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(f.h)(t,e)||this.dispatch("UiFormItem","ui.form.change",t)},visible(t){t?(this.broadcast("UiSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("UiOption","queryChange",""),this.broadcast("UiOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("UiSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick(()=>{this.$refs.input&&""===this.$refs.input.value&&0===this.selected.length&&(this.currentPlaceholder=this.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",t)},selectedLabel(){this.debounceLabelWidth&&this.debounceLabelWidth()},options(){if(this.$isServer)return;this.$nextTick(()=>{this.broadcast("UiSelectDropdown","updatePopper")}),this.multiple&&this.resetInputHeight();let t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}},created(){this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=Object(f.a)(()=>{this.onInputChange()},this.debounce),this.debouncedQueryChange=Object(f.a)(t=>{this.handleQueryChange(t.target.value)},this.debounce),this.autoSize&&(this.debounceLabelWidth=()=>this.$nextTick(this.handleLabelChange)),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted(){this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder="");const t=this.$refs.reference;if(t&&t.$el){const e={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||e[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick(()=>{t&&t.$el&&(this.inputWidth=t.$el.getBoundingClientRect().width)}),this.setSelected()},methods:{handleNavigate(t){this.isOnComposition||this.navigateOptions(t)},handleComposition(t){const e=t.target.value;if("compositionend"===t.type)this.isOnComposition=!1,this.$nextTick(()=>this.handleQueryChange(e));else{const t=e[e.length-1]||"";this.isOnComposition=!Object(f.i)(t)}},handleQueryChange(t){this.previousQuery===t||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=t,this.$nextTick(()=>{this.visible&&this.broadcast("UiSelectDropdown","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick(()=>{const t=15*this.$refs.input.value.length+20;this.inputLength=this.collapseTags?Math.min(50,t):t,this.managePlaceholder(),this.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(t)):"function"==typeof this.filterMethod?(this.filterMethod(t),this.broadcast("UiOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("UiOption","queryChange",t),this.broadcast("UiOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=t)},handleLabelChange(){const t=Object(g.c)(this.$refs.reference.$el,"font");this.selectedLabelWidth=Object(g.d)(this.selectedLabel,t)},scrollToOption(t){const e=Array.isArray(t)&&t[0]?t[0].$el:t.$el;if(this.$refs.popper&&e){const t=this.$refs.popper.$el.querySelector(".ui-select-dropdown__wrap");Object(g.i)(t,e)}},handleMenuEnter(){this.$nextTick(()=>this.scrollToOption(this.selected))},emitChange(t){Object(f.h)(this.value,t)||this.$emit("change",t)},getOption(t){let e;const i="[object object]"===Object.prototype.toString.call(t).toLowerCase(),n="[object null]"===Object.prototype.toString.call(t).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(t).toLowerCase();for(let n=this.cachedOptions.length-1;n>=0;n--){const r=this.cachedOptions[n];if(i?Object(f.d)(r.value,this.valueKey)===Object(f.d)(t,this.valueKey):r.value===t){e=r;break}}if(e)return e;let o={value:t,currentLabel:i||n||r?"":String(t)};return this.multiple&&(o.hitState=!1),o},setSelected(){if(!this.multiple){let t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}let t=[];Array.isArray(this.value)&&this.value.forEach(e=>{t.push(this.getOption(e))}),this.selected=t,this.$nextTick(()=>{this.resetInputHeight()})},handleFocus(t){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",t))},blur(){this.visible=!1,this.$refs.reference.blur()},handleBlur(t){setTimeout(()=>{this.isSilentBlur?this.isSilentBlur=!1:this.$emit("blur",t)},50),this.softFocus=!1},handleClearClick(t){this.deleteSelected(t)},doDestroy(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose(){this.visible=!1},toggleLastOptionHitState(t){if(!Array.isArray(this.selected))return;const e=this.selected[this.selected.length-1];return e?!0===t||!1===t?(e.hitState=t,t):(e.hitState=!e.hitState,e.hitState):void 0},deletePrevTag(t){if(t.target.value.length<=0&&!this.toggleLastOptionHitState()){const t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState(t){8!==t.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight(){this.collapseTags&&!this.filterable||this.$nextTick(()=>{if(!this.$refs.reference)return;let t=this.$refs.reference.$el.childNodes,e=[].filter.call(t,t=>"INPUT"===t.tagName)[0];const i=this.$refs.tags,n=i?Math.round(i.getBoundingClientRect().height):0,r=this.initialInputHeight||40;e.style.height=0===this.selected.length?r+"px":Math.max(i?n+(n>r?6:0):0,r)+"px",this.visible&&!1!==this.emptyText&&this.broadcast("UiSelectDropdown","updatePopper")})},resetHoverIndex(){setTimeout(()=>{this.multiple?this.selected.length>0?this.hoverIndex=Math.min.apply(null,this.selected.map(t=>this.options.indexOf(t))):this.hoverIndex=-1:this.hoverIndex=this.options.indexOf(this.selected)},300)},handleOptionSelect(t,e){if(this.multiple){const e=(this.value||[]).slice(),i=this.getValueIndex(e,t.value);i>-1?e.splice(i,1):(this.multipleLimit<=0||e.length<this.multipleLimit)&&e.push(t.value),this.$emit("input",e),this.emitChange(e),t.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",t.value),this.emitChange(t.value),this.visible=!1;this.isSilentBlur=e,this.setSoftFocus(),this.visible||this.$nextTick(()=>{this.scrollToOption(t)})},setSoftFocus(){this.softFocus=!0;const t=this.$refs.input||this.$refs.reference;t&&t.focus()},getValueIndex(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if("[object object]"===Object.prototype.toString.call(e).toLowerCase()){const i=this.valueKey;let n=-1;return t.some((t,r)=>Object(f.d)(t,i)===Object(f.d)(e,i)&&(n=r,!0)),n}return t.indexOf(e)},toggleMenu(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected(t){t.stopPropagation();const e=this.multiple?[]:"";this.$emit("input",e),this.emitChange(e),this.visible=!1,this.$emit("clear")},deleteTag(t,e){let i=this.selected.indexOf(e);if(i>-1&&!this.selectDisabled){const t=this.value.slice();t.splice(i,1),this.$emit("input",t),this.emitChange(t),this.$emit("remove-tag",e.value)}t.stopPropagation()},onInputChange(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy(t){t>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(t,1))},resetInputWidth(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption(){this.hoverIndex=-1;let t=!1;for(let e=this.options.length-1;e>=0;e--)if(this.options[e].created){t=!0,this.hoverIndex=e;break}if(!t)for(let t=0;t!==this.options.length;++t){const e=this.options[t];if(this.query){if(!e.disabled&&!e.groupDisabled&&e.visible){this.hoverIndex=t;break}}else if(e.itemSelected){this.hoverIndex=t;break}}},getValueKey(t){return"[object object]"!==Object.prototype.toString.call(t.value).toLowerCase()?t.value:Object(f.d)(t.value,this.valueKey)}}},x=Object(a.a)(b,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"resize",rawName:"v-resize",value:t.handleResize,expression:"handleResize"},{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"ui-select",class:[t.selectSize?"ui-select--"+t.selectSize:"",t.autoSize?"is-autosize":""],style:t.autoSizeStyle,on:{click:function(e){return e.stopPropagation(),t.toggleMenu.apply(null,arguments)}}},[t.multiple?e("div",{ref:"tags",staticClass:"ui-select__tags",style:{"max-width":t.inputWidth-32+"px",width:"100%"}},[t.collapseTags&&t.selected.length?e("span",[e("ui-tag",{attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:t.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(e){return t.deleteTag(e,t.selected[0])}}},[e("span",{staticClass:"ui-select__tags-text"},[t._v(t._s(t.selected[0].currentLabel))])]),t.selected.length>1?e("ui-tag",{attrs:{closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""}},[e("span",{staticClass:"ui-select__tags-text multi-count"},[t._v("+ "+t._s(t.selected.length-1))])]):t._e()],1):t._e(),t.collapseTags?t._e():e("transition-group",{on:{"after-leave":t.resetInputHeight}},t._l(t.selected,(function(i){return e("ui-tag",{key:t.getValueKey(i),attrs:{closable:!t.selectDisabled,size:t.collapseTagSize,hit:i.hitState,type:"info","disable-transitions":""},on:{close:function(e){return t.deleteTag(e,i)}}},[e("span",{staticClass:"ui-select__tags-text"},[t._v(t._s(i.currentLabel))])])})),1),t.filterable?e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",staticClass:"ui-select__input",class:[t.selectSize?"is-"+t.selectSize:""],style:{"flex-grow":"1",width:t.inputLength/(t.inputWidth-32)+"%","max-width":t.inputWidth-42+"px"},attrs:{type:"text",disabled:t.selectDisabled,autocomplete:t.autocomplete},domProps:{value:t.query},on:{focus:t.handleFocus,blur:function(e){t.softFocus=!1},keyup:t.managePlaceholder,keydown:[t.resetInputState,function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.handleNavigate("next"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.handleNavigate("prev"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption.apply(null,arguments))},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.deletePrevTag.apply(null,arguments)},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition,input:[function(e){e.target.composing||(t.query=e.target.value)},t.debouncedQueryChange]}}):t._e()],1):t._e(),e("ui-input",{ref:"reference",class:{"is-focus":t.visible},attrs:{type:"text",placeholder:t.currentPlaceholder,name:t.name,id:t.id,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,tabindex:t.multiple&&t.filterable?"-1":null},on:{focus:t.handleFocus,blur:t.handleBlur,input:t.debouncedOnInputChange,compositionstart:t.handleComposition,compositionupdate:t.handleComposition,compositionend:t.handleComposition},nativeOn:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.stopPropagation(),e.preventDefault(),t.handleNavigate("next"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.stopPropagation(),e.preventDefault(),t.handleNavigate("prev"))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.selectOption.apply(null,arguments))},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.stopPropagation(),e.preventDefault(),t.visible=!1},function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab"))return null;t.visible=!1}],mouseenter:function(e){t.inputHovering=!0},mouseleave:function(e){t.inputHovering=!1}},model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[t.$slots.prefix||t.$scopedSlots.prefix?e("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),e("template",{slot:"suffix"},[e("i",{directives:[{name:"show",rawName:"v-show",value:!t.showClose,expression:"!showClose"}],class:["ui-select__caret","ui-input__icon","ui-icon-"+t.iconClass]}),t.showClose?e("i",{staticClass:"ui-select__caret ui-input__icon ui-icon-circle-close",on:{click:t.handleClearClick}}):t._e()])],2),e("transition",{attrs:{name:"ui-zoom-in-top"},on:{"before-enter":t.handleMenuEnter,"after-leave":t.doDestroy}},[e("ui-select-menu",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!1!==t.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":t.popperAppendToBody}},[e("div",{staticClass:"ui-scrollbar"},[e("div",{staticClass:"ui-select-dropdown__wrap ui-scrollbar__wrap ui-scrollbar__wrap--hidden-default"},[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.options.length>0&&!t.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"ui-select-dropdown__list":!0,"is-empty":!t.allowCreate&&t.query&&0===t.filteredOptionsCount}},[t.showNewOption?e("ui-option",{attrs:{value:t.query,created:""}}):t._e(),t._t("default")],2)])]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&0===t.options.length)?[t.$slots.empty||t.$scopedSlots.empty?t._t("empty"):e("p",{staticClass:"ui-select-dropdown__empty"},[t._v("\n "+t._s(t.emptyText)+"\n ")])]:t._e()],2)],1)],1)}),[],!1,null,null,null).exports;x.install=function(t){t.component(x.name,x),t.component(l.a.name,l.a)};e.default=x},function(t,e,i){"use strict";i.r(e);var n=i(11),r=i(19),o=i(10),a={name:"UiDialog",mixins:[n.a,r.b,o.a],model:{prop:"visible",event:"visible-change"},props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},message:{type:String,default:""},modal:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},size:{type:String,validator:t=>["small","large","mini"].indexOf(t)>-1},destroyOnClose:Boolean,cancelBtnText:String,confirmBtnText:String,hasCancel:Boolean,hasConfirm:Boolean,closePermission:{type:Boolean,default:!0}},data:()=>({closed:!1,key:0,echoFunc:null,echoOnConfirm:!0,dialogVisible:!1}),watch:{visible:{handler(t){this.dialogVisible=t},immediate:!0},dialogVisible(t){t?(this.rendered=!0,this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.$nextTick(()=>{this.$refs.dialog&&(this.$refs.dialog.scrollTop=0)}),"function"==typeof r.b.methods.open&&r.b.methods.open.call(this)):(this.closed||this.$emit("close"),"function"==typeof r.b.methods.close&&r.b.methods.close.call(this)),this.$emit("update:visible",t),this.$emit("visible-change",t)}},computed:{style(){let t={};return this.fullscreen||(t.marginTop=this.top,this.width&&(t.width=this.width)),t}},methods:{open(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.echoFunc=t,this.echoOnConfirm=e,this.dialogVisible=!0},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()},handleClose(){this.closePermission&&("function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide())},cancelHandler(){this.closePermission&&(this.hide(),this.echoOnConfirm||"function"!=typeof this.echoFunc?this.$emit("manual-close",this.echoFunc):this.echoFunc())},confirmHandler(){this.hide(),this.echoOnConfirm&&"function"==typeof this.echoFunc?this.echoFunc():this.$emit("confirm",this.echoFunc)},hide(t){!1!==t&&(this.dialogVisible=!1,this.closed=!0)},updatePopper(){this.broadcast("UiSelectDropdown","updatePopper"),this.broadcast("UiDropdownMenu","updatePopper")},afterEnter(){this.$emit("opened")},afterLeave(){this.$emit("closed"),this.destroyOnClose&&this.key++}},mounted(){this.dialogVisible&&(this.rendered=!0,this.appendToBody&&document.body.appendChild(this.$el))},beforeDestroy(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},s=i(1),l=Object(s.a)(a,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-dialog-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.dialogVisible,expression:"dialogVisible"}],staticClass:"ui-dialog__wrapper",class:{"is-with-modal":t.modal},on:{click:function(e){return e.target!==e.currentTarget?null:t.handleWrapperClick.apply(null,arguments)}}},[e("div",{key:t.key,ref:"dialog",class:["ui-dialog",{"is-fullscreen":t.fullscreen,"ui-dialog--center":t.center},t.size?"ui-dialog--"+t.size:"",t.customClass],style:t.style,attrs:{role:"dialog","aria-modal":"true","aria-label":t.title||"dialog"}},[e("div",{staticClass:"ui-dialog__header"},[e("div",{staticClass:"ui-dialog__header-content"},[t._t("title-icon"),t._t("title",(function(){return[e("span",{staticClass:"ui-dialog__title"},[t._v(t._s(t.title))])]}))],2),t.showClose?e("button",{staticClass:"ui-dialog__headerbtn",class:{"is-disabled":!t.closePermission},attrs:{type:"button","aria-label":"Close"},on:{click:t.handleClose}},[e("i",{staticClass:"ui-dialog__close ui-icon-close"})]):t._e()]),t.rendered?e("div",{staticClass:"ui-dialog__body"},[t._t("default",(function(){return[t.message?e("div",{staticClass:"ui-dialog__message"},[t._v("\n "+t._s(t.message)+"\n ")]):t._e()]}))],2):t._e(),t.$slots.footer||t.hasCancel||t.hasConfirm?e("div",{staticClass:"ui-dialog__footer"},[t._t("footer",(function(){return[t.hasCancel?e("ui-button",{attrs:{size:"small"},on:{click:t.cancelHandler}},[t._v("\n "+t._s(t.cancelBtnText||t.t("components.messageBox.cancel")||"取消")+"\n ")]):t._e(),t.hasConfirm?e("ui-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirmHandler}},[t._v("\n "+t._s(t.confirmBtnText||t.t("components.messageBox.confirm")||"确定")+"\n ")]):t._e()]}))],2):t._e()])])])}),[],!1,null,null,null).exports;l.install=function(t){t.component(l.name,l)};e.default=l},function(t,e,i){"use strict";i.r(e);var n={name:"UiProgress",props:{type:{type:String,default:"line",validator:t=>["line","circle","dashboard"].indexOf(t)>-1},percentage:{type:Number,default:0,required:!0,validator:t=>t>=0&&t<=100},status:{type:String,validator:t=>["success","exception","warning"].indexOf(t)>-1},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle(){const t={};return t.width=this.percentage+"%",t.backgroundColor=this.getCurrentColor(this.percentage),t},relativeStrokeWidth(){return(this.strokeWidth/this.width*100).toFixed(1)},radius(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath(){const t=this.radius,e="dashboard"===this.type;return`\n M 50 50\n m 0 ${e?"":"-"}${t}\n a ${t} ${t} 0 1 1 0 ${e?"-":""}${2*t}\n a ${t} ${t} 0 1 1 0 ${e?"":"-"}${2*t}\n `},perimeter(){return 2*Math.PI*this.radius},rate(){return"dashboard"===this.type?.75:1},strokeDashoffset(){return-1*this.perimeter*(1-this.rate)/2+"px"},trailPathStyle(){return{strokeDasharray:`${this.perimeter*this.rate}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset}},circlePathStyle(){return{strokeDasharray:`${this.perimeter*this.rate*(this.percentage/100)}px, ${this.perimeter}px`,strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke(){let t;if(this.color)t=this.getCurrentColor(this.percentage);else switch(this.status){case"success":t="#13ce66";break;case"exception":t="#ff4949";break;case"warning":t="#e6a23c";break;default:t="#20a0ff"}return t},iconClass(){return"warning"===this.status?"icon-warning":"line"===this.type?"success"===this.status?"icon-circle-check":"icon-circle-close":"success"===this.status?"icon-check":"icon-close"},progressTextSize(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content(){return"function"==typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor(t){return"function"==typeof this.color?this.color(t):"string"==typeof this.color?this.color:this.getLevelColor(t)},getLevelColor(t){const e=this.getColorArray().sort((t,e)=>t.percentage-e.percentage);for(let i=0;i<e.length;i++)if(e[i].percentage>t)return e[i].color;return e[e.length-1].color},getColorArray(){const t=this.color,e=100/t.length;return t.map((t,i)=>"string"==typeof t?{color:t,percentage:(i+1)*e}:t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-progress",class:["ui-progress--"+t.type,t.status?"is-"+t.status:"",{"ui-progress--without-text":!t.showText,"ui-progress--text-inside":t.textInside}],attrs:{role:"progressbar","aria-valuenow":t.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===t.type?e("div",{staticClass:"ui-progress-bar"},[e("div",{staticClass:"ui-progress-bar__outer",style:{height:t.strokeWidth+"px",backgroundColor:t.defineBackColor}},[e("div",{staticClass:"ui-progress-bar__inner",style:t.barStyle},[t.showText&&t.textInside?e("div",{staticClass:"ui-progress-bar__innerText",style:{color:t.textColor}},[t._v(t._s(t.content))]):t._e()])])]):e("div",{staticClass:"ui-progress-circle",style:{height:t.width+"px",width:t.width+"px"}},[e("svg",{attrs:{viewBox:"0 0 100 100"}},[e("path",{staticClass:"ui-progress-circle__track",style:t.trailPathStyle,attrs:{d:t.trackPath,stroke:t.defineBackColor,"stroke-width":t.relativeStrokeWidth,fill:"none"}}),e("path",{staticClass:"ui-progress-circle__path",style:t.circlePathStyle,attrs:{d:t.trackPath,stroke:t.stroke,fill:"none","stroke-linecap":t.strokeLinecap,"stroke-width":t.percentage?t.relativeStrokeWidth:0}})])]),t.showText&&!t.textInside?e("div",{staticClass:"ui-progress__text",style:{fontSize:t.progressTextSize+"px",color:t.textColor}},[t.status?e("i",{class:t.iconClass}):[t._v(t._s(t.content))]],2):t._e()])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(9),r={name:"UiTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:t=>-1!==["dark","light","plain"].indexOf(t)}},methods:{handleClose(t){t.stopPropagation(),this.$emit("close",t)},handleClick(t){this.$emit("click",t)}},computed:{tagSize(){return this.size||(this.$ELEMENT||{}).size}},render(t){const{type:e,tagSize:i,hit:r,effect:o}=this,a=["ui-tag",e?"ui-tag--"+e:"",i?"ui-tag--"+i:"",o?"ui-tag--"+o:"",r&&"is-hit"];let s={};this.color&&(s={color:this.color,borderColor:this.color,backgroundColor:Object(n.a)(this.color,.2)});const l=t("span",{class:a,style:s,on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"ui-tag__close ui-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?l:t("transition",{attrs:{name:"ui-zoom-in-center"}},[l])}},o=i(1),a=Object(o.a)(r,void 0,void 0,!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n=i(20);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e);var n=i(33),r=i(20);n.a.install=function(t){t.component(n.a.name,n.a),t.component(r.a.name,r.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e);var n=i(23);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e);var n=i(27);n.a.install=function(t){t.component(n.a.name,n.a)},e.default=n.a},function(t,e,i){"use strict";i.r(e);var n={};i.r(n),i.d(n,"updateProps",(function(){return Ta})),i.d(n,"initProps",(function(){return Da})),i.d(n,"removeElement",(function(){return Pa})),i.d(n,"removeElementWithFadeOut",(function(){return Na})),i.d(n,"isElementRemoved",(function(){return La})),i.d(n,"extendShape",(function(){return bd})),i.d(n,"extendPath",(function(){return _d})),i.d(n,"registerShape",(function(){return wd})),i.d(n,"getShapeClass",(function(){return Sd})),i.d(n,"makePath",(function(){return Cd})),i.d(n,"makeImage",(function(){return Md})),i.d(n,"mergePath",(function(){return Od})),i.d(n,"resizePath",(function(){return Ad})),i.d(n,"subPixelOptimizeLine",(function(){return Id})),i.d(n,"subPixelOptimizeRect",(function(){return Td})),i.d(n,"subPixelOptimize",(function(){return Dd})),i.d(n,"getTransform",(function(){return Ld})),i.d(n,"applyTransform",(function(){return Pd})),i.d(n,"transformDirection",(function(){return jd})),i.d(n,"groupTransition",(function(){return Ed})),i.d(n,"clipPointsByRect",(function(){return Rd})),i.d(n,"clipRectByRect",(function(){return zd})),i.d(n,"createIcon",(function(){return Bd})),i.d(n,"linePolygonIntersect",(function(){return Vd})),i.d(n,"lineLineIntersect",(function(){return Fd})),i.d(n,"setTooltipConfig",(function(){return $d})),i.d(n,"traverseElements",(function(){return Wd})),i.d(n,"Group",(function(){return Ci})),i.d(n,"Image",(function(){return uo})),i.d(n,"Text",(function(){return jo})),i.d(n,"Circle",(function(){return vh})),i.d(n,"Ellipse",(function(){return _h})),i.d(n,"Sector",(function(){return Eh})),i.d(n,"Ring",(function(){return Bh})),i.d(n,"Polygon",(function(){return $h})),i.d(n,"Polyline",(function(){return Uh})),i.d(n,"Rect",(function(){return vo})),i.d(n,"Line",(function(){return Zh})),i.d(n,"BezierCurve",(function(){return ed})),i.d(n,"Arc",(function(){return rd})),i.d(n,"IncrementalDisplayable",(function(){return gd})),i.d(n,"CompoundPath",(function(){return od})),i.d(n,"LinearGradient",(function(){return sd})),i.d(n,"RadialGradient",(function(){return ld})),i.d(n,"BoundingRect",(function(){return ft})),i.d(n,"OrientedBoundingRect",(function(){return pd})),i.d(n,"Point",(function(){return ot})),i.d(n,"Path",(function(){return io}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Object.create;Object.create;var a=i(4),s=i(0),l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Object.create;Object.create;function c(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function h(t,e){return t[0]=e[0],t[1]=e[1],t}function d(t){return[t[0],t[1]]}function p(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function f(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function g(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function m(t){return Math.sqrt(y(t))}function y(t){return t[0]*t[0]+t[1]*t[1]}function v(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function b(t,e){var i=m(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function x(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=x;var w=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function S(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function C(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function M(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function k(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var O=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},A=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new O(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new O(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new O(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new O(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new O(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new O(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),I=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var u=n[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),T=Math.log(2);function D(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/T);return t[i][l]}for(var u=n|1<<i,c=i+1;n&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*t[i][d]*D(t,e-1,c,u,r|f,o),p++)}return o[a]=h,h}function L(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=D(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*D(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}var P=[];function j(t,e,i,n,r){if(e.getBoundingClientRect&&a.a.domSupported&&!N(e)){var o=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),s=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?L(s,a):L(a,s))}(function(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}(e,o),o,r);if(s)return s(t,i,n),!0}return!1}function N(t){return"CANVAS"===t.nodeName.toUpperCase()}var E=/([&<>"'])/g,R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function z(t){return null==t?"":(t+"").replace(E,(function(t,e){return R[e]}))}var B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,V=[],F=a.a.browser.firefox&&+a.a.browser.version.split(".")[0]<39;function H(t,e,i,n){return i=i||{},n?$(t,e,i):F&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):$(t,e,i),i}function $(t,e,i){if(a.a.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(N(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(j(V,t,n,r))return i.zrX=V[0],void(i.zrY=V[1])}i.zrX=i.zrY=0}function G(t){return t||window.event}function W(t,e,i){if(null!=(e=G(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&H(t,r,e,i)}else{H(t,e,e,i);var o=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;if(null==i||null==n)return e;return 3*(0!==n?Math.abs(n):Math.abs(i))*(n>0?-1:n<0?1:i>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&B.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function U(t,e,i,n){t.addEventListener(e,i,n)}var Y=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function q(t){return 2===t.which||3===t.which}var X=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=H(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in K)if(K.hasOwnProperty(e)){var i=K[e](this._track,t);if(i)return i}},t}();function Z(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}var K={pinch:function(t,e){var i=t.length;if(i){var n,r=(t[i-1]||{}).points,o=(t[i-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Z(r)/Z(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((n=r)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Q(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function J(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function tt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function et(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function it(t,e,i,n){void 0===n&&(n=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(i),h=Math.cos(i);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-n[0])+c*(u-n[1])+n[0],t[5]=h*(u-n[1])-c*(a-n[0])+n[1],t}function nt(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function rt(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}var ot=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),at=Math.min,st=Math.max,lt=new ot,ut=new ot,ct=new ot,ht=new ot,dt=new ot,pt=new ot,ft=function(){function t(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=at(t.x,this.x),i=at(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=st(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=st(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=[1,0,0,1,0,0];return et(r,r,[-e.x,-e.y]),nt(r,r,[i,n]),et(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<r||s<c||h<a);if(i){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(u-r),y=Math.abs(s-c),v=Math.abs(h-a),b=Math.min(g,m),x=Math.min(y,v);o<l||u<r?b>f&&(f=b,g<m?ot.set(pt,-g,0):ot.set(pt,m,0)):b<p&&(p=b,g<m?ot.set(dt,g,0):ot.set(dt,-m,0)),s<c||h<a?x>f&&(f=x,y<v?ot.set(pt,0,-y):ot.set(pt,0,v)):b<p&&(p=b,y<v?ot.set(dt,0,y):ot.set(dt,0,-v))}return i&&ot.copy(i,d?dt:pt),d},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}lt.x=ct.x=i.x,lt.y=ht.y=i.y,ut.x=ht.x=i.x+i.width,ut.y=ct.y=i.y+i.height,lt.transform(n),ht.transform(n),ut.transform(n),ct.transform(n),e.x=at(lt.x,ut.x,ct.x,ht.x),e.y=at(lt.y,ut.y,ct.y,ht.y);var l=st(lt.x,ut.x,ct.x,ht.x),u=st(lt.y,ut.y,ct.y,ht.y);e.width=l-e.x,e.height=u-e.y}else e!==i&&t.copy(e,i)},t}();function gt(){Y(this.event)}var mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return u(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(I),yt=function(t,e){this.x=t,this.y=e},vt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bt=new ft(0,0,0,0),xt=function(t){function e(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new yt(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new mt,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new A(a),a}return u(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(s.k(vt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=St(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=n?new yt(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new yt(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r="on"+e,o=function(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:gt}}(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new yt(t,e);if(wt(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ft(t-s,e-s,a,a),u=n.length-1;u>=0;u--){var c=n[u];c===i||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(bt.copy(c.getBoundingRect()),c.transform&&bt.applyTransform(c.transform),bt.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=h){if(wt(o,r,t+p*Math.cos(f),e+p*Math.sin(f),i),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new X);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new yt;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(I);function _t(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(r=!0);var s=n.__hostTarget;n=s||n.parent}return!r||"silent"}return!1}function wt(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=_t(a,i,n))&&(!e.topTarget&&(e.topTarget=a),"silent"!==s)){e.target=a;break}}}function St(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}s.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){xt.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=St(this,r,o);if("mouseup"===t&&a||(n=(i=this.findHover(r,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||_(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}));var Ct=xt;function Mt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r<i&&n(t[r],t[r-1])<0;)r++;!function(t,e,i){i--;for(;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}(t,e,r)}else for(;r<i&&n(t[r],t[r-1])>=0;)r++;return r-e}function kt(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ot(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;l<s&&o(t,e[i+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[i+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[i+c])>0?a=c+1:l=c}return l}function At(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;l<s&&o(t,e[i+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=n-r;l<s&&o(t,e[i+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[i+c])<0?l=c:a=c+1}return l}function It(t,e){var i,n,r=7,o=0,a=[];function s(s){var l=i[s],u=n[s],c=i[s+1],h=n[s+1];n[s]=u+h,s===o-3&&(i[s+1]=i[s+2],n[s+1]=n[s+2]),o--;var d=At(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=Ot(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(i,n,o,s){var l=0;for(l=0;l<n;l++)a[l]=t[i+l];var u=0,c=o,h=i;if(t[h++]=t[c++],0==--s){for(l=0;l<n;l++)t[h+l]=a[u+l];return}if(1===n){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var d,p,f,g=r;for(;;){d=0,p=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,d=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],d++,p=0,1==--n){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=At(t[c],a,u,n,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(n-=d)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(p=Ot(a[u],t,c,s,0,e))){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,0===(s-=p)){f=!0;break}}if(t[h++]=a[u++],1==--n){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===n){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===n)throw new Error;for(l=0;l<n;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(i,n,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=i+n-1,c=s-1,h=o+s-1,d=0,p=0;if(t[h--]=t[u--],0==--n){for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l];return}if(1===s){for(p=(h-=n)+1,d=(u-=n)+1,l=n-1;l>=0;l--)t[p+l]=t[d+l];return void(t[h]=a[c])}var f=r;for(;;){var g=0,m=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,m=0,0==--n){y=!0;break}}else if(t[h--]=a[c--],m++,g=0,1==--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!==(g=n-At(a[c],t,i,n,n-1,e))){for(n-=g,p=(h-=g)+1,d=(u-=g)+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===n){y=!0;break}}if(t[h--]=a[c--],1==--s){y=!0;break}if(0!==(m=s-Ot(t[u],a,0,s,s-1,e))){for(s-=m,p=(h-=m)+1,d=(c-=m)+1,l=0;l<m;l++)t[p+l]=a[d+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0==--n){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(p=(h-=n)+1,d=(u-=n)+1,l=n-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}(l,u,c,h))}return i=[],n=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&n[t-1]<n[t+1]&&t--,s(t)}},pushRun:function(t,e){i[o]=t,n[o]=e,o+=1}}}function Tt(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(r<2)){var o=0;if(r<32)kt(t,i,n,i+(o=Mt(t,i,n,e)),e);else{var a=It(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Mt(t,i,n,e))<s){var l=r;l>s&&(l=s),kt(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}}var Dt=!1;function Lt(){Dt||(Dt=!0)}function Pt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var jt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pt}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Tt(i,Pt)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Lt(),u.z=0),isNaN(u.z2)&&(Lt(),u.z2=0),isNaN(u.zlevel)&&(Lt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=s.r(this._roots,t);n>=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Nt=a.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Et={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Et.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Et.bounceIn(2*t):.5*Et.bounceOut(2*t-1)+.5}},Rt=Et,zt=Math.pow,Bt=Math.sqrt,Vt=Bt(3),Ft=c(),Ht=c(),$t=c();function Gt(t){return t>-1e-8&&t<1e-8}function Wt(t){return t>1e-8||t<-1e-8}function Ut(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Yt(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function qt(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Gt(c)&&Gt(h)){if(Gt(s))o[0]=0;else(C=-l/s)>=0&&C<=1&&(o[p++]=C)}else{var f=h*h-4*c*d;if(Gt(f)){var g=h/c,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[p++]=C),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=Bt(f),v=c*s+1.5*a*(-h+y),b=c*s+1.5*a*(-h-y);(C=(-s-((v=v<0?-zt(-v,1/3):zt(v,1/3))+(b=b<0?-zt(-b,1/3):zt(b,1/3))))/(3*a))>=0&&C<=1&&(o[p++]=C)}else{var x=(2*c*s-3*a*h)/(2*Bt(c*c*c)),_=Math.acos(x)/3,w=Bt(c),S=Math.cos(_),C=(-s-2*w*S)/(3*a),M=(m=(-s+w*(S+Vt*Math.sin(_)))/(3*a),(-s+w*(S-Vt*Math.sin(_)))/(3*a));C>=0&&C<=1&&(o[p++]=C),m>=0&&m<=1&&(o[p++]=m),M>=0&&M<=1&&(o[p++]=M)}}return p}function Xt(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Gt(a)){if(Wt(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Gt(u))r[0]=-o/(2*a);else if(u>0){var c,h=Bt(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Zt(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=n}function Kt(t,e,i,n,r,o,a,s,l,u,c){var h,d,p,f,g,m=.005,y=1/0;Ft[0]=l,Ft[1]=u;for(var v=0;v<1;v+=.05)Ht[0]=Ut(t,i,r,a,v),Ht[1]=Ut(e,n,o,s,v),(f=w(Ft,Ht))<y&&(h=v,y=f);y=1/0;for(var b=0;b<32&&!(m<1e-4);b++)d=h-m,p=h+m,Ht[0]=Ut(t,i,r,a,d),Ht[1]=Ut(e,n,o,s,d),f=w(Ht,Ft),d>=0&&f<y?(h=d,y=f):($t[0]=Ut(t,i,r,a,p),$t[1]=Ut(e,n,o,s,p),g=w($t,Ft),p<=1&&g<y?(h=p,y=g):m*=.5);return c&&(c[0]=Ut(t,i,r,a,h),c[1]=Ut(e,n,o,s,h)),Bt(y)}function Qt(t,e,i,n,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Ut(t,i,r,a,f),m=Ut(e,n,o,s,f),y=g-u,v=m-c;h+=Math.sqrt(y*y+v*v),u=g,c=m}return h}function Jt(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function te(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ee(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function ie(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function ne(t,e,i,n,r,o,a,s,l){var u,c=.005,h=1/0;Ft[0]=a,Ft[1]=s;for(var d=0;d<1;d+=.05){Ht[0]=Jt(t,i,r,d),Ht[1]=Jt(e,n,o,d),(m=w(Ft,Ht))<h&&(u=d,h=m)}h=1/0;for(var p=0;p<32&&!(c<1e-4);p++){var f=u-c,g=u+c;Ht[0]=Jt(t,i,r,f),Ht[1]=Jt(e,n,o,f);var m=w(Ht,Ft);if(f>=0&&m<h)u=f,h=m;else{$t[0]=Jt(t,i,r,g),$t[1]=Jt(e,n,o,g);var y=w($t,Ft);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Jt(t,i,r,u),l[1]=Jt(e,n,o,u)),Bt(h)}function re(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Jt(t,i,r,d),f=Jt(e,n,o,d),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var oe=/cubic-bezier\(([0-9,\.e ]+)\)/;function ae(t){var e=t&&oe.exec(t);if(e){var i=e[1].split(","),n=+Object(s.T)(i[0]),r=+Object(s.T)(i[1]),o=+Object(s.T)(i[2]),a=+Object(s.T)(i[3]);if(isNaN(n+r+o+a))return;var l=[];return function(t){return t<=0?0:t>=1?1:qt(0,n,o,1,t,l)&&Ut(0,r,a,1,l[0])}}}var se=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||s.L,this.ondestroy=t.ondestroy||s.L,this.onrestart=t.onrestart||s.L,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=n%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(s.w)(t)?t:Rt[t]||ae(t)},t}(),le=i(6),ue=i(7),ce=Array.prototype.slice;function he(t,e,i){return(e-t)*i+t}function de(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=he(e[o],i[o],n);return t}function pe(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function fe(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function ge(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}function me(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a)if(o>a)n.length=a;else for(var s=o;s<a;s++)n.push(1===i?r[s]:ce.call(r[s]));var l=n[0]&&n[0].length;for(s=0;s<n.length;s++)if(1===i)isNaN(n[s])&&(n[s]=r[s]);else for(var u=0;u<l;u++)isNaN(n[s][u])&&(n[s][u]=r[s][u])}}function ye(t){if(Object(s.u)(t)){var e=t.length;if(Object(s.u)(t[0])){for(var i=[],n=0;n<e;n++)i.push(ce.call(t[n]));return i}return ce.call(t)}return t}function ve(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function be(t){return 4===t||5===t}function xe(t){return 1===t||2===t}var _e=[0,0,0,0],we=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=6,l=e;if(Object(s.u)(e)){var u=function(t){return Object(s.u)(t&&t[0])?2:1}(e);a=u,(1===u&&!Object(s.z)(e[0])||2===u&&!Object(s.z)(e[0][0]))&&(o=!0)}else if(Object(s.z)(e)&&!Object(s.l)(e))a=0;else if(Object(s.C)(e))if(isNaN(+e)){var c=le.h(e);c&&(l=c,a=3)}else a=0;else if(Object(s.x)(e)){var h=Object(s.m)({},l);h.colorStops=Object(s.H)(e.colorStops,(function(t){return{offset:t.offset,color:le.h(t.color)}})),Object(ue.m)(e)?a=4:Object(ue.o)(e)&&(a=5),l=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:e,percent:0};return i&&(d.easing=i,d.easingFunc=Object(s.w)(i)?i:Rt[i]||ae(i)),n.push(d),d},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort((function(t,e){return t.time-e.time}));for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=xe(n),l=be(n),u=0;u<r;u++){var c=i[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?me(h,d,n):l&&ge(h.colorStops,d.colorStops))}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;var p=i[0].value;for(u=0;u<r;u++)0===n?i[u].additiveValue=i[u].value-p:3===n?i[u].additiveValue=pe([],i[u].value,p,-1):xe(n)&&(i[u].additiveValue=1===n?pe([],i[u].value,p,-1):fe([],i[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,h=this.propName,d=3===l,p=this._lastFr,f=Math.min;if(1===c)n=r=u[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=f(p+1,c-1);i>=0&&!(u[i].percent<=e);i--);i=f(i,c-2)}else{for(i=p;i<c&&!(u[i].percent>e);i++);i=f(i-1,c-2)}r=u[i+1],n=u[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var g=r.percent-n.percent,m=0===g?1:f((e-n.percent)/g,1);r.easingFunc&&(m=r.easingFunc(m));var y=o?this._additiveValue:d?_e:t[h];if(!xe(l)&&!d||y||(y=this._additiveValue=[]),this.discrete)t[h]=m<1?n.rawValue:r.rawValue;else if(xe(l))1===l?de(y,n[a],r[a],m):function(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=he(e[a][s],i[a][s],n)}}(y,n[a],r[a],m);else if(be(l)){var v=n[a],b=r[a],x=4===l;t[h]={type:x?"linear":"radial",x:he(v.x,b.x,m),y:he(v.y,b.y,m),colorStops:Object(s.H)(v.colorStops,(function(t,e){var i=b.colorStops[e];return{offset:he(t.offset,i.offset,m),color:ve(de([],t.color,i.color,m))}})),global:b.global},x?(t[h].x2=he(v.x2,b.x2,m),t[h].y2=he(v.y2,b.y2,m)):t[h].r=he(v.r,b.r,m)}else if(d)de(y,n[a],r[a],m),o||(t[h]=ve(y));else{var _=he(n[a],r[a],m);o?this._additiveValue=_:t[h]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(le.h(t[i],_e),pe(_e,_e,n,1),t[i]=ve(_e)):1===e?pe(t[i],t[i],n,1):2===e&&fe(t[i],t[i],n,1)},t}(),Se=function(){function t(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?Object(s.G)("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Object(s.F)(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new we(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=ve(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,ye(l),n),this._trackKeys.push(a)}s.addKeyframe(t,ye(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var h=new se({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(s.H)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=ye(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(s.F)(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Ce(){return(new Date).getTime()}var Me,ke,Oe=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return u(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Ce()-this._pausedTime,i=e-this._time,n=this._head;n;){var r=n.next;n.step(e,i)?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Nt((function e(){t._running&&(Nt(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Ce(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ce(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ce()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new Se(t,e.loop);return this.addAnimator(i),i},e}(I),Ae=a.a.domSupported,Ie=(ke={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Me=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:s.H(Me,(function(t){var e=t.replace("mouse","pointer");return ke.hasOwnProperty(e)?e:t}))}),Te=["mousemove","mouseup"],De=["pointermove","pointerup"],Le=!1;function Pe(t){var e=t.pointerType;return"pen"===e||"touch"===e}function je(t){t&&(t.zrByTouch=!0)}function Ne(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}var Ee=function(t,e){this.stopPropagation=s.L,this.stopImmediatePropagation=s.L,this.preventDefault=s.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Re={mousedown:function(t){t=W(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=W(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=W(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ne(this,(t=W(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Le=!0,t=W(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Le||(t=W(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){je(t=W(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Re.mousemove.call(this,t),Re.mousedown.call(this,t)},touchmove:function(t){je(t=W(this.dom,t)),this.handler.processGesture(t,"change"),Re.mousemove.call(this,t)},touchend:function(t){je(t=W(this.dom,t)),this.handler.processGesture(t,"end"),Re.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Re.click.call(this,t)},pointerdown:function(t){Re.mousedown.call(this,t)},pointermove:function(t){Pe(t)||Re.mousemove.call(this,t)},pointerup:function(t){Re.mouseup.call(this,t)},pointerout:function(t){Pe(t)||Re.mouseout.call(this,t)}};s.k(["click","dblclick","contextmenu"],(function(t){Re[t]=function(e){e=W(this.dom,e),this.trigger(t,e)}}));var ze={pointermove:function(t){Pe(t)||ze.mousemove.call(this,t)},pointerup:function(t){ze.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Be(t,e){var i=e.domHandlers;a.a.pointerEventsSupported?s.k(Ie.pointer,(function(n){Fe(e,n,(function(e){i[n].call(t,e)}))})):(a.a.touchEventsSupported&&s.k(Ie.touch,(function(n){Fe(e,n,(function(r){i[n].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),s.k(Ie.mouse,(function(n){Fe(e,n,(function(r){r=G(r),e.touching||i[n].call(t,r)}))})))}function Ve(t,e){function i(i){Fe(e,i,(function(n){n=G(n),Ne(t,n.target)||(n=function(t,e){return W(t.dom,new Ee(t,e),!0)}(t,n),e.domHandlers[i].call(t,n))}),{capture:!0})}a.a.pointerEventsSupported?s.k(De,i):a.a.touchEventsSupported||s.k(Te,i)}function Fe(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,U(t.domTarget,e,i,n)}function He(t){var e,i,n,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,i=a,n=o[a],r=t.listenerOpts[a],e.removeEventListener(i,n,r));t.mounted={}}var $e=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Ge=function(t){function e(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new $e(e,Re),Ae&&(n._globalHandlerScope=new $e(document,ze)),Be(n,n._localHandlerScope),n}return u(e,t),e.prototype.dispose=function(){He(this._localHandlerScope),Ae&&He(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ae&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Ve(this,e):He(e)}},e}(I),We=1;a.a.hasGlobalWindow&&(We=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ue=We,Ye=Q;function qe(t){return t>5e-5||t<-5e-5}var Xe=[],Ze=[],Ke=[1,0,0,1,0,0],Qe=Math.abs,Je=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return qe(this.rotation)||qe(this.x)||qe(this.y)||qe(this.scaleX-1)||qe(this.scaleY-1)||qe(this.skewX)||qe(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):Ye(i),t&&(e?tt(i,t,i):J(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(Ye(i),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Xe);var i=Xe[0]<0?-1:1,n=Xe[1]<0?-1:1,r=((Xe[0]-i)*e+i)/Xe[0]||0,o=((Xe[1]-n)*e+n)/Xe[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],rt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],tt(Ze,t.invTransform,e),e=Ze);var i=this.originX,n=this.originY;(i||n)&&(Ke[4]=i,Ke[5]=n,tt(Ze,e,Ke),Ze[4]-=i,Ze[5]-=n,e=Ze),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&C(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&C(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Qe(t[0]-1)>1e-10&&Qe(t[3]-1)>1e-10?Math.sqrt(Qe(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ei(this,t)},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var p=i+a,f=n+s;e[4]=-p*r-h*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&it(e,e,l),e[4]+=i+u,e[5]+=n+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),ti=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ei(t,e){for(var i=0;i<ti.length;i++){var n=ti[i];t[n]=e[n]}}var ii=Je,ni=i(26),ri=i(8),oi={};function ai(t,e){e=e||ri.a;var i=oi[e];i||(i=oi[e]=new ni.a(500));var n=i.get(t);return null==n&&(n=ri.d.measureText(t,e).width,i.put(t,n)),n}function si(t,e,i,n){var r=ai(t,e),o=hi(e),a=ui(0,r,i),s=ci(0,o,n);return new ft(a,s,r,o)}function li(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return si(r[0],e,i,n);for(var o=new ft(0,0,0,0),a=0;a<r.length;a++){var s=si(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function ui(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function ci(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function hi(t){return ai("国",t)}function di(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function pi(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,c="left",h="top";if(n instanceof Array)l+=di(n[0],i.width),u+=di(n[1],i.height),c=null,h=null;else switch(n){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var fi=ti.concat(["ignore"]),gi=Object(s.N)(ti,(function(t,e){return t[e]=!0,t}),{ignore:!1}),mi={},yi=new ft(0,0,0,0),vi=function(){function t(t){this.id=Object(s.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=yi;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(mi,i,u):pi(mi,i,u),r.x=mi.x,r.y=mi.y,o=mi.align,a=mi.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=di(c[0],u.width),d=di(c[1],u.height)),l=!0,r.originX=-r.x+h+(n?0:u.x),r.originY=-r.y+d+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var p=i.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,v=void 0;f&&this.canBeInsideText()?(m=i.insideFill,y=i.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(m),v=!0)):(m=i.outsideFill,y=i.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(m),v=!0)),(m=m||"#000")===g.fill&&y===g.stroke&&v===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=y,g.autoStroke=v,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&Object(le.h)(e);i||(i=[255,255,255,1]);for(var n=i[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(r?0:255)*(1-n);return i[3]=1,Object(le.i)(i,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(s.m)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(s.A)(t))for(var i=t,n=Object(s.F)(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!(n.getLoop()||r&&"__zr_normal__"!==r)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,fi)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,i,n){var r="__zr_normal__"===t;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(Object(s.r)(o,t)>=0)||!e&&1!==o.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,i,u),h&&h.useState(t,e,i,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),l}Object(s.G)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var c=n[o-1],h=!!(c&&c.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(s.r)(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=Object(s.r)(n,t),o=Object(s.r)(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];Object(s.m)(i,r),r.textConfig&&(e=e||{},Object(s.m)(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=Object(s.m)({},n?this.textConfig:i.textConfig),Object(s.m)(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<fi.length;c++){var h=fi[c],d=r&&gi[h];e&&null!=e[h]?d?(u=!0,l[h]=e[h]):this[h]=e[h]:a&&null!=i[h]&&(d?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!r)for(c=0;c<this.animators.length;c++){var p=this.animators[c],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||i)[f]:e||i)}u&&this._transitionState(t,l,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ii,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(s.m)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=t?this[t]:this;var r=new Se(n,e,i);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during((function(){n.updateDuringAnimation(e)})).done((function(){var e=n.animators,i=Object(s.r)(e,t);i>=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){bi(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){bi(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=bi(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1;function i(t,i,n,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[i]||o(this,this[i]=[]);return this[i]},set:function(t){this[n]=t[0],this[r]=t[1],this[i]=t,o(this,t)}})}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function bi(t,e,i,n,r){var o=[];!function t(e,i,n,r,o,a,l,u){for(var c=Object(s.F)(r),h=o.duration,d=o.delay,p=o.additive,f=o.setToFinal,g=!Object(s.A)(a),m=e.animators,y=[],v=0;v<c.length;v++){var b=c[v],x=r[b];if(null!=x&&null!=n[b]&&(g||a[b]))if(!Object(s.A)(x)||Object(s.u)(x)||Object(s.x)(x))y.push(b);else{if(i){u||(n[b]=x,e.updateDuringAnimation(i));continue}t(e,b,n[b],x,o,a&&a[b],l,u)}else u||(n[b]=x,e.updateDuringAnimation(i),y.push(b))}var _=y.length;if(!p&&_)for(var w=0;w<m.length;w++){if((C=m[w]).targetName===i)if(C.stopTracks(y)){var S=Object(s.r)(m,C);m.splice(S,1)}}o.force||(y=Object(s.n)(y,(function(t){return e=r[t],i=n[t],!(e===i||Object(s.u)(e)&&Object(s.u)(i)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(e,i));var e,i})),_=y.length);if(_>0||o.force&&!l.length){var C,M=void 0,k=void 0,O=void 0;if(u){k={},f&&(M={});for(w=0;w<_;w++){b=y[w];k[b]=n[b],f?M[b]=r[b]:n[b]=r[b]}}else if(f){O={};for(w=0;w<_;w++){b=y[w];O[b]=ye(n[b]),_i(n,r,b)}}(C=new Se(n,!1,!1,p?Object(s.n)(m,(function(t){return t.targetName===i})):null)).targetName=i,o.scope&&(C.scope=o.scope),f&&M&&C.whenWithKeys(0,M,y),O&&C.whenWithKeys(0,O,y),C.whenWithKeys(null==h?500:h,u?k:r,y).delay(d||0),e.addAnimator(C,i),l.push(C)}}(t,"",t,e,i=i||{},n,o,r);var a=o.length,l=!1,u=i.done,c=i.aborted,h=function(){l=!0,--a<=0&&(l?u&&u():c&&c())},d=function(){--a<=0&&(l?u&&u():c&&c())};a||u&&u(),o.length>0&&i.during&&o[0].during((function(t,e){i.during(e)}));for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),d&&f.aborted(d),i.force&&f.duration(i.duration),f.start(i.easing)}return o}function xi(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function _i(t,e,i){if(Object(s.u)(e[i]))if(Object(s.u)(t[i])||(t[i]=[]),Object(s.E)(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),xi(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(c=r,Object(s.u)(c[0]))for(var l=r[0].length,u=0;u<a;u++)o[u]?xi(o[u],r[u],l):o[u]=Array.prototype.slice.call(r[u]);else xi(o,r,a);o.length=r.length}else t[i]=e[i];var c}Object(s.K)(vi,I),Object(s.K)(vi,ii);var wi=vi,Si=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return u(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var i=s.r(this._children,t);return i>=0&&this.replaceAt(e,i),this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,i=this._children,n=s.r(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},e.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new ft(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(ft.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(wi);Si.prototype.type="group";var Ci=Si,Mi={},ki={};
2
+ /*!
3
+ * ZRender, a high performance 2d drawing library.
4
+ *
5
+ * Copyright (c) 2013, Baidu Inc.
6
+ * All rights reserved.
7
+ *
8
+ * LICENSE
9
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
10
+ */var Oi,Ai=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new jt,o=i.renderer||"canvas";Mi[o]||(o=s.F(Mi)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var l=new Mi[o](e,r,i,t),u=i.ssr||l.ssrOnly;this.storage=r,this.painter=l;var c,h=a.a.node||a.a.worker||u?null:new Ge(l.getViewportRoot(),l.root),d=i.useCoarsePointer;(null==d||"auto"===d?a.a.touchEventsSupported:!!d)&&(c=s.P(i.pointerSize,44)),this.handler=new Ct(r,l,h,l.root,c),this.animation=new Oe({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(le.e)(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=Object(le.e)(e[r].color,1);return(i/=n)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,i=Ce();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Ce();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ci&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete ki[t])},t}();function Ii(t,e){var i=new Ai(s.p(),t,e);return ki[i.id]=i,i}function Ti(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Di(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return s.C(t)?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i}function Li(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function Pi(t){return t.sort((function(t,e){return t-e})),t}function ji(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return function(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-n)}(t)}function Ni(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ei(t,e){var i=s.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return[];for(var n=Math.pow(10,e),r=s.H(t,(function(t){return(isNaN(t)?0:t)/i*n*100})),o=100*n,a=s.H(r,(function(t){return Math.floor(t)})),l=s.N(a,(function(t,e){return t+e}),0),u=s.H(r,(function(t,e){return t-a[e]}));l<o;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++a[h],u[h]=0,++l}return s.H(a,(function(t){return t/n}))}function Ri(t,e){var i=Math.max(ji(t),ji(e)),n=t+e;return i>20?n:Li(n,i)}function zi(t){var e=2*Math.PI;return(t%e+e)%e}function Bi(t){return t>-1e-4&&t<1e-4}var Vi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Fi(t){if(t instanceof Date)return t;if(s.C(t)){var e=Vi.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Hi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function $i(t,e){var i=Hi(t),n=Math.pow(10,i),r=t/n;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,i>=-20?+t.toFixed(i<0?-i:0):t}function Gi(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function Wi(t){t.sort((function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n<t.length;){for(var r=t[n].interval,o=t[n].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-i),e=r[a],i=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(n,1):n++}return t}function Ui(t){var e=parseFloat(t);return e==t&&(0!==e||!s.C(t)||t.indexOf("x")<=0)?e:NaN}function Yi(t){return!isNaN(Ui(t))}function qi(){return Math.round(9*Math.random())}function Xi(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function Zi(t,e,i){return(e-t)*i+t}function Ki(t){return t instanceof Array?t:null==t?[]:[t]}function Qi(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Ji=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function tn(t){return!Object(s.A)(t)||Object(s.t)(t)||t instanceof Date?t:t.value}function en(t){return Object(s.A)(t)&&!(t instanceof Array)}function nn(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=Object(s.f)();Object(s.k)(e,(function(t,i){Object(s.A)(t)||(e[i]=null)}));var l,u,c=function(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||ln(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}(t,a,i);return(n||r)&&function(t,e,i,n){Object(s.k)(n,(function(r,o){if(r&&null!=r.id){var a=on(r.id),l=i.get(a);if(null!=l){var u=t[l];Object(s.b)(!u.newOption,'Duplicated option on id "'+a+'".'),u.newOption=r,u.existing=e[l],n[o]=null}}}))}(c,t,a,e),n&&function(t,e){Object(s.k)(e,(function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!ln(i)&&!ln(o)&&rn("name",o,i))return t[r].newOption=i,void(e[n]=null)}}))}(c,e),n||r?function(t,e,i){Object(s.k)(e,(function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||ln(n.existing)||n.existing&&null!=e.id&&!rn("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}}))}(c,e,r):o&&function(t,e){Object(s.k)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(c,e),l=c,u=Object(s.f)(),Object(s.k)(l,(function(t){var e=t.existing;e&&u.set(e.id,t)})),Object(s.k)(l,(function(t){var e=t.newOption;Object(s.b)(!e||null==e.id||!u.get(e.id)||u.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&u.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(s.k)(l,(function(t,e){var i=t.existing,n=t.newOption,r=t.keyInfo;if(Object(s.A)(n)){if(r.name=null!=n.name?on(n.name):i?i.name:"series\0"+e,i)r.id=on(i.id);else if(null!=n.id)r.id=on(n.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(u.get(r.id))}u.set(r.id,t)}})),c}function rn(t,e,i){var n=an(e[t],null),r=an(i[t],null);return null!=n&&null!=r&&n===r}function on(t){return an(t,"")}function an(t,e){return null==t?e:Object(s.C)(t)?t:Object(s.z)(t)||Object(s.D)(t)?t+"":e}function sn(t){var e=t.name;return!(!e||!e.indexOf("series\0"))}function ln(t){return t&&null!=t.id&&0===on(t.id).indexOf("\0_ec_\0")}function un(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(s.t)(e.dataIndex)?Object(s.H)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(s.t)(e.name)?Object(s.H)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function cn(){var t="__ec_inner_"+hn++;return function(e){return e[t]||(e[t]={})}}var hn=qi();function dn(t,e,i){var n=pn(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=i?i.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,n){var r=mn(t,n,e,{useDefault:s===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});a[n+"Models"]=r.models,a[n+"Model"]=r.models[0]})),a}function pn(t,e){var i;if(Object(s.C)(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=Object(s.f)(),o={},a=!1;return Object(s.k)(i,(function(t,i){if("dataIndex"!==i&&"dataIndexInside"!==i){var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],l=n[1],u=(n[2]||"").toLowerCase();if(l&&u&&!(e&&e.includeMainTypes&&Object(s.r)(e.includeMainTypes,l)<0))a=a||!!l,(r.get(l)||r.set(l,{}))[u]=t}else o[i]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var fn={useDefault:!0,enableAll:!1,enableNone:!1},gn={useDefault:!1,enableAll:!0,enableNone:!0};function mn(t,e,i,n){n=n||fn;var r=i.index,o=i.id,a=i.name,l={models:null,specified:null!=r||null!=o||null!=a};if(!l.specified){var u=void 0;return l.models=n.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===r||!1===r?(Object(s.b)(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===r&&(Object(s.b)(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),l.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),l)}function yn(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function vn(t,e){var i=Object(s.f)(),n=[];return Object(s.k)(t,(function(t){var r=e(t);(i.get(r)||(n.push(r),i.set(r,[]))).push(t)})),{keys:n,buckets:i}}function bn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(Object(s.z)(n))return Li(g=Zi(i||0,n,r),o?Math.max(ji(i||0),ji(n)):e);if(Object(s.C)(n))return r<1?i:n;for(var a=[],l=i,u=n,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if(d&&"ordinal"===d.type)a[h]=(r<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h],g=Zi(p,f,r);a[h]=Li(g,o?Math.max(ji(p),ji(f)):e)}}return a}var xn="___EC__COMPONENT__CONTAINER___";function _n(t){var e={main:"",sub:""};if(t){var i=t.split(".");e.main=i[0]||"",e.sub=i[1]||""}return e}function wn(t,e){t.$constructor=t,t.extend=function(t){var e,i,n=this;return i=n,s.w(i)&&/^class\s/.test(Function.prototype.toString.call(i))?e=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},s.s(e,this)),s.m(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=Mn,e.superApply=kn,e.superClass=n,e}}function Sn(t,e){t.extend=e.extend}var Cn=Math.round(10*Math.random());function Mn(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function kn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function On(t){var e={};t.registerClass=function(t){var i,n=t.type||t.prototype.type;if(n){i=n,s.b(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i),'componentType "'+i+'" illegal'),t.prototype.type=n;var r=_n(n);if(r.sub){if(r.sub!==xn){(function(t){var i=e[t.main];i&&i[xn]||((i=e[t.main]={})[xn]=!0);return i}(r))[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,i,n){var r=e[t];if(r&&r[xn]&&(r=i?r[i]:null),n&&!r)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var i=_n(t),n=[],r=e[i.main];return r&&r[xn]?s.k(r,(function(t,e){e!==xn&&n.push(t)})):n.push(r),n},t.hasClass=function(t){var i=_n(t);return!!e[i.main]},t.getAllClassMainTypes=function(){var t=[];return s.k(e,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){var i=_n(t),n=e[i.main];return n&&n[xn]}}function An(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var l=t[a][1];if(!(n&&s.r(n,l)>=0||r&&s.r(r,l)<0)){var u=i.getShallow(l,e);null!=u&&(o[t[a][0]]=u)}}return o}}var In=An([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Tn=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return In(this,t,e)},t}(),Dn=new ni.a(50);function Ln(t){if("string"==typeof t){var e=Dn.get(t);return e&&e.image}return t}function Pn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=Dn.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?!Nn(e=o.image)&&o.pending.push(a):((e=ri.d.loadImage(t,jn,jn)).__zrImageSrc=t,Dn.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function jn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Nn(t){return t&&t.width&&t.height}var En=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Rn(t,e,i,n,r,o){if(!i)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=zn(i,n,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Bn(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function zn(t,e,i,n){n=n||{};var r=Object(s.m)({},n);r.font=e,i=Object(s.P)(i,"..."),r.maxIterations=Object(s.P)(n.maxIterations,2);var o=r.minChar=Object(s.P)(n.minChar,0);r.cnCharWidth=ai("国",e);var a=r.ascCharWidth=ai("a",e);r.placeholder=Object(s.P)(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=a;u++)l-=a;var c=ai(i,e);return c>l&&(i="",c=0),l=t-c,r.ellipsis=i,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function Bn(t,e,i){var n=i.containerWidth,r=i.font,o=i.contentWidth;if(!n)return t.textLine="",void(t.isTruncated=!1);var a=ai(e,r);if(a<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=i.maxIterations){e+=i.ellipsis;break}var l=0===s?Vn(e,o,i.ascCharWidth,i.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=ai(e=e.substr(0,l),r)}""===e&&(e=i.placeholder),t.textLine=e,t.isTruncated=!0}function Vn(t,e,i,n){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?i:n}return o}var Fn=function(){},Hn=function(t){this.tokens=[],t&&(this.tokens=t)},$n=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Gn(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,c=l.font||i.font,h=!1;if(n){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=di(l.width,n.width)+p;u.length>0&&f+n.accumWidth>n.width&&(o=e.split("\n"),h=!0),n.accumWidth=f}else{var g=Yn(e,c,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m<o.length;m++){var y=o[m],v=new Fn;if(v.styleName=r,v.text=y,v.isLineHolder=!y&&!s,"number"==typeof l.width?v.width=l.width:v.width=a?a[m]:ai(y,c),m||h)u.push(new Hn([v]));else{var b=(u[u.length-1]||(u[0]=new Hn)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=v:(y||!x||s)&&b.push(v)}}}var Wn=Object(s.N)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Un(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Wn[t]}function Yn(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=ai(d,e),f=!n&&!Un(d);(o.length?c+p>i:r+c+p>i)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var qn="__zr_style_"+Math.round(10*Math.random()),Xn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Zn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xn[qn]=!0;var Kn=["z","z2","invisible"],Qn=["invisible"],Jn=function(t){function e(e){return t.call(this,e)||this}var i;return u(e,t),e.prototype._init=function(e){for(var i=Object(s.F)(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){tr.copy(t.getBoundingRect()),t.transform&&tr.applyTransform(t.transform);return er.width=e,er.height=i,!tr.intersect(er)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ft(0,0,0,0)),e?ft.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ft(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(s.m)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Object(s.g)(Xn,t)},e.prototype.useStyle=function(t){t[qn]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[qn]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Kn)},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var l,u=!(i&&r);if(i&&i.style?o?r?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Object(s.F)(c),d=0;d<h.length;d++){(f=h[d])in l&&(l[f]=l[f],this.style[f]=c[f])}var p=Object(s.F)(l);for(d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(e,{style:l},a,this.getAnimationStyleProps())}else this.useStyle(l);var g=this.__inHover?Qn:Kn;for(d=0;d<g.length;d++){f=g[d];i&&null!=i[f]?this[f]=i[f]:u&&null!=n[f]&&(this[f]=n[f])}},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,e){return Object(s.m)(t,e),t},e.prototype.getAnimationStyleProps=function(){return Zn},e.initDefaultProps=((i=e.prototype).type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._rect=null,i.dirtyRectTolerance=0,void(i.__dirty=3)),e}(wi),tr=new ft(0,0,0,0),er=new ft(0,0,0,0);var ir=Jn,nr=Math.min,rr=Math.max,or=Math.sin,ar=Math.cos,sr=2*Math.PI,lr=c(),ur=c(),cr=c();function hr(t,e,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],r=nr(r,n[0]),o=rr(o,n[0]),a=nr(a,n[1]),s=rr(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function dr(t,e,i,n,r,o){r[0]=nr(t,i),r[1]=nr(e,n),o[0]=rr(t,i),o[1]=rr(e,n)}var pr=[],fr=[];function gr(t,e,i,n,r,o,a,s,l,u){var c=Xt,h=Ut,d=c(t,i,r,a,pr);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,i,r,a,pr[p]);l[0]=nr(f,l[0]),u[0]=rr(f,u[0])}d=c(e,n,o,s,fr);for(p=0;p<d;p++){var g=h(e,n,o,s,fr[p]);l[1]=nr(g,l[1]),u[1]=rr(g,u[1])}l[0]=nr(t,l[0]),u[0]=rr(t,u[0]),l[0]=nr(a,l[0]),u[0]=rr(a,u[0]),l[1]=nr(e,l[1]),u[1]=rr(e,u[1]),l[1]=nr(s,l[1]),u[1]=rr(s,u[1])}function mr(t,e,i,n,r,o,a,s){var l=ee,u=Jt,c=rr(nr(l(t,i,r),1),0),h=rr(nr(l(e,n,o),1),0),d=u(t,i,r,c),p=u(e,n,o,h);a[0]=nr(t,r,d),a[1]=nr(e,o,p),s[0]=rr(t,r,d),s[1]=rr(e,o,p)}function yr(t,e,i,n,r,o,a,s,l){var u=M,c=k,h=Math.abs(r-o);if(h%sr<1e-4&&h>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(lr[0]=ar(r)*i+t,lr[1]=or(r)*n+e,ur[0]=ar(o)*i+t,ur[1]=or(o)*n+e,u(s,lr,ur),c(l,lr,ur),(r%=sr)<0&&(r+=sr),(o%=sr)<0&&(o+=sr),r>o&&!a?o+=sr:r<o&&a&&(r+=sr),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(cr[0]=ar(p)*i+t,cr[1]=or(p)*n+e,u(s,cr,s),c(l,cr,l))}var vr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},br=[],xr=[],_r=[],wr=[],Sr=[],Cr=[],Mr=Math.min,kr=Math.max,Or=Math.cos,Ar=Math.sin,Ir=Math.abs,Tr=Math.PI,Dr=2*Tr,Lr="undefined"!=typeof Float32Array,Pr=[];function jr(t){return Math.round(t/Tr*1e8)/1e8%2*Tr}function Nr(t,e){var i=jr(t[0]);i<0&&(i+=Dr);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=Dr?r=i+Dr:e&&i-r>=Dr?r=i-Dr:!e&&i>r?r=i+(Dr-jr(i-r)):e&&i<r&&(r=i-(Dr-jr(r-i))),t[0]=i,t[1]=r}var Er=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=Ir(i/Ue/t)||0,this._uy=Ir(i/Ue/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(vr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=Ir(t-this._xi),n=Ir(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(vr.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(vr.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(vr.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),Pr[0]=n,Pr[1]=r,Nr(Pr,o),n=Pr[0];var a=(r=Pr[1])-n;return this.addData(vr.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=Or(r)*i+t,this._yi=Ar(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(vr.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(vr.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Lr||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();Lr&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},t.prototype.addData=function(t,e,i,n,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Lr&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){_r[0]=_r[1]=Sr[0]=Sr[1]=Number.MAX_VALUE,wr[0]=wr[1]=Cr[0]=Cr[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=i=e[t],o=n=e[t+1]),a){case vr.M:i=r=e[t++],n=o=e[t++],Sr[0]=r,Sr[1]=o,Cr[0]=r,Cr[1]=o;break;case vr.L:dr(i,n,e[t],e[t+1],Sr,Cr),i=e[t++],n=e[t++];break;case vr.C:gr(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Sr,Cr),i=e[t++],n=e[t++];break;case vr.Q:mr(i,n,e[t++],e[t++],e[t],e[t+1],Sr,Cr),i=e[t++],n=e[t++];break;case vr.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=Or(d)*c+l,o=Ar(d)*h+u),yr(l,u,c,h,d,p,f,Sr,Cr),i=Or(p)*c+l,n=Ar(p)*h+u;break;case vr.R:dr(r=i=e[t++],o=n=e[t++],r+e[t++],o+e[t++],Sr,Cr);break;case vr.Z:i=r,n=o}M(_r,_r,Sr),k(wr,wr,Cr)}return 0===t&&(_r[0]=_r[1]=wr[0]=wr[1]=0),new ft(_r[0],_r[1],wr[0]-_r[0],wr[1]-_r[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(d){case vr.M:r=a=t[h++],o=s=t[h++];break;case vr.L:var g=t[h++],m=(b=t[h++])-o;(Ir(I=g-r)>i||Ir(m)>n||h===e-1)&&(f=Math.sqrt(I*I+m*m),r=g,o=b);break;case vr.C:var y=t[h++],v=t[h++],b=(g=t[h++],t[h++]),x=t[h++],_=t[h++];f=Qt(r,o,y,v,g,b,x,_,10),r=x,o=_;break;case vr.Q:f=re(r,o,y=t[h++],v=t[h++],g=t[h++],b=t[h++],10),r=g,o=b;break;case vr.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],k=t[h++],O=t[h++],A=O+k;h+=1,p&&(a=Or(k)*C+w,s=Ar(k)*M+S),f=kr(C,M)*Mr(Dr,Math.abs(O)),r=Or(A)*C+w,o=Ar(A)*M+S;break;case vr.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case vr.Z:var I=a-r;m=s-o;f=Math.sqrt(I*I+m*m),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,c,h,d=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,y=0,v=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var _=d[x++],w=1===x;switch(w&&(i=r=d[x],n=o=d[x+1]),_!==vr.L&&b>0&&(t.lineTo(c,h),b=0),_){case vr.M:i=r=d[x++],n=o=d[x++],t.moveTo(r,o);break;case vr.L:a=d[x++],s=d[x++];var S=Ir(a-r),C=Ir(s-o);if(S>p||C>f){if(m){if(y+(q=l[v++])>u){var M=(u-y)/q;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=q}t.lineTo(a,s),r=a,o=s,b=0}else{var k=S*S+C*C;k>b&&(c=a,h=s,b=k)}break;case vr.C:var O=d[x++],A=d[x++],I=d[x++],T=d[x++],D=d[x++],L=d[x++];if(m){if(y+(q=l[v++])>u){Zt(r,O,I,D,M=(u-y)/q,br),Zt(o,A,T,L,M,xr),t.bezierCurveTo(br[1],xr[1],br[2],xr[2],br[3],xr[3]);break t}y+=q}t.bezierCurveTo(O,A,I,T,D,L),r=D,o=L;break;case vr.Q:O=d[x++],A=d[x++],I=d[x++],T=d[x++];if(m){if(y+(q=l[v++])>u){ie(r,O,I,M=(u-y)/q,br),ie(o,A,T,M,xr),t.quadraticCurveTo(br[1],xr[1],br[2],xr[2]);break t}y+=q}t.quadraticCurveTo(O,A,I,T),r=I,o=T;break;case vr.A:var P=d[x++],j=d[x++],N=d[x++],E=d[x++],R=d[x++],z=d[x++],B=d[x++],V=!d[x++],F=N>E?N:E,H=Ir(N-E)>.001,$=R+z,G=!1;if(m)y+(q=l[v++])>u&&($=R+z*(u-y)/q,G=!0),y+=q;if(H&&t.ellipse?t.ellipse(P,j,N,E,B,R,$,V):t.arc(P,j,F,R,$,V),G)break t;w&&(i=Or(R)*N+P,n=Ar(R)*E+j),r=Or($)*N+P,o=Ar($)*E+j;break;case vr.R:i=r=d[x],n=o=d[x+1],a=d[x++],s=d[x++];var W=d[x++],U=d[x++];if(m){if(y+(q=l[v++])>u){var Y=u-y;t.moveTo(a,s),t.lineTo(a+Mr(Y,W),s),(Y-=W)>0&&t.lineTo(a+W,s+Mr(Y,U)),(Y-=U)>0&&t.lineTo(a+kr(W-Y,0),s+U),(Y-=W)>0&&t.lineTo(a,s+kr(U-Y,0));break t}y+=q}t.rect(a,s,W,U);break;case vr.Z:if(m){var q;if(y+(q=l[v++])>u){M=(u-y)/q;t.lineTo(r*(1-M)+i*M,o*(1-M)+n*M);break t}y+=q}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},t.CMD=vr,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function Rr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>n+s||a<e-s&&a<n-s||o>t+s&&o>i+s||o<t-s&&o<i-s)return!1;if(t===i)return Math.abs(o-t)<=s/2;var u=(l=(e-n)/(t-i))*o-a+(t*n-i*e)/(t-i);return u*u/(l*l+1)<=s/2*s/2}function zr(t,e,i,n,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>n+h&&c>o+h&&c>s+h||c<e-h&&c<n-h&&c<o-h&&c<s-h||u>t+h&&u>i+h&&u>r+h&&u>a+h||u<t-h&&u<i-h&&u<r-h&&u<a-h)&&Kt(t,e,i,n,r,o,a,s,u,c,null)<=h/2}function Br(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u||s>t+u&&s>i+u&&s>r+u||s<t-u&&s<i-u&&s<r-u)&&ne(t,e,i,n,r,o,s,l,null)<=u/2}var Vr=2*Math.PI;function Fr(t){return(t%=Vr)<0&&(t+=Vr),t}var Hr=2*Math.PI;function $r(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>i||c+u<i)return!1;if(Math.abs(n-r)%Hr<1e-4)return!0;if(o){var h=n;n=Fr(r),r=Fr(h)}else n=Fr(n),r=Fr(r);n>r&&(r+=Hr);var d=Math.atan2(l,s);return d<0&&(d+=Hr),d>=n&&d<=r||d+Hr>=n&&d+Hr<=r}function Gr(t,e,i,n,r,o){if(o>e&&o>n||o<e&&o<n)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=n<e?1:-1;1!==a&&0!==a||(s=n<e?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}var Wr=Er.CMD,Ur=2*Math.PI;var Yr=[-1,-1,-1],qr=[-1,-1];function Xr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||u<e&&u<n&&u<o&&u<s)return 0;var c,h=qt(e,n,o,s,u,Yr);if(0===h)return 0;for(var d=0,p=-1,f=void 0,g=void 0,m=0;m<h;m++){var y=Yr[m],v=0===y||1===y?.5:1;Ut(t,i,r,a,y)<l||(p<0&&(p=Xt(e,n,o,s,qr),qr[1]<qr[0]&&p>1&&(c=void 0,c=qr[0],qr[0]=qr[1],qr[1]=c),f=Ut(e,n,o,s,qr[0]),p>1&&(g=Ut(e,n,o,s,qr[1]))),2===p?y<qr[0]?d+=f<e?v:-v:y<qr[1]?d+=g<f?v:-v:d+=s<g?v:-v:y<qr[0]?d+=f<e?v:-v:d+=s<f?v:-v)}return d}function Zr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=function(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Gt(o)){if(Wt(a))(c=-s/a)>=0&&c<=1&&(r[l++]=c)}else{var u=a*a-4*o*s;if(Gt(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Bt(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,n,o,s,Yr);if(0===l)return 0;var u=ee(e,n,o);if(u>=0&&u<=1){for(var c=0,h=Jt(e,n,o,u),d=0;d<l;d++){var p=0===Yr[d]||1===Yr[d]?.5:1;Jt(t,i,r,Yr[d])<a||(Yr[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Yr[0]||1===Yr[0]?.5:1;return Jt(t,i,r,Yr[0])<a?0:o<e?p:-p}function Kr(t,e,i,n,r,o,a,s){if((s-=e)>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);Yr[0]=-l,Yr[1]=l;var u=Math.abs(n-r);if(u<1e-4)return 0;if(u>=Ur-1e-4){n=0,r=Ur;var c=o?1:-1;return a>=Yr[0]+t&&a<=Yr[1]+t?c:0}if(n>r){var h=n;n=r,r=h}n<0&&(n+=Ur,r+=Ur);for(var d=0,p=0;p<2;p++){var f=Yr[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ur+g),(g>=n&&g<=r||g+Ur>=n&&g+Ur<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Qr(t,e,i,n,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Wr.M&&m>1&&(i||(h+=Gr(d,p,f,g,n,r))),v&&(f=d=u[m],g=p=u[m+1]),y){case Wr.M:d=f=u[m++],p=g=u[m++];break;case Wr.L:if(i){if(Rr(d,p,u[m],u[m+1],e,n,r))return!0}else h+=Gr(d,p,u[m],u[m+1],n,r)||0;d=u[m++],p=u[m++];break;case Wr.C:if(i){if(zr(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],e,n,r))return!0}else h+=Xr(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],n,r)||0;d=u[m++],p=u[m++];break;case Wr.Q:if(i){if(Br(d,p,u[m++],u[m++],u[m],u[m+1],e,n,r))return!0}else h+=Zr(d,p,u[m++],u[m++],u[m],u[m+1],n,r)||0;d=u[m++],p=u[m++];break;case Wr.A:var b=u[m++],x=u[m++],_=u[m++],w=u[m++],S=u[m++],C=u[m++];m+=1;var M=!!(1-u[m++]);o=Math.cos(S)*_+b,a=Math.sin(S)*w+x,v?(f=o,g=a):h+=Gr(d,p,o,a,n,r);var k=(n-b)*w/_+b;if(i){if($r(b,x,w,S,S+C,M,e,k,r))return!0}else h+=Kr(b,x,w,S,S+C,M,k,r);d=Math.cos(S+C)*_+b,p=Math.sin(S+C)*w+x;break;case Wr.R:if(f=d=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],i){if(Rr(f,g,o,g,e,n,r)||Rr(o,g,o,a,e,n,r)||Rr(o,a,f,a,e,n,r)||Rr(f,a,f,g,e,n,r))return!0}else h+=Gr(o,g,o,a,n,r),h+=Gr(f,a,f,g,n,r);break;case Wr.Z:if(i){if(Rr(d,p,f,g,e,n,r))return!0}else h+=Gr(d,p,f,g,n,r);d=f,p=g}}return i||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=Gr(d,p,f,g,n,r)||0),0!==h}var Jr=Object(s.i)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xn),to={style:Object(s.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zn.style)},eo=ti.concat(["invisible","culling","z","z2","zlevel","parent"]),io=function(t){function e(e){return t.call(this,e)||this}var i;return u(e,t),e.prototype.update=function(){var i=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){i.buildPath(t,i.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<eo.length;++s)r[eo[s]]=this[eo[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var i=Object(s.F)(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?Object(s.m)(this.style,a):this.useStyle(a):"shape"===o?Object(s.m)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(s.C)(t)){var e=Object(le.e)(t,0);return e>.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s.C)(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())===Object(le.e)(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,i){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Er(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,i,n){return Qr(t,e,!0,i,n)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,i){return Qr(t,0,!1,e,i)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},e.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:Object(s.m)(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Object(s.g)(Jr,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=Object(s.m)({},this.shape))},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var l,u=!(i&&r);if(i&&i.shape?o?r?l=i.shape:(l=Object(s.m)({},n.shape),Object(s.m)(l,i.shape)):(l=Object(s.m)({},r?this.shape:n.shape),Object(s.m)(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=Object(s.m)({},this.shape);for(var c={},h=Object(s.F)(l),d=0;d<h.length;d++){var p=h[d];"object"==typeof l[p]?this.shape[p]=l[p]:c[p]=l[p]}this._transitionState(e,{shape:c},a)}else this.shape=l,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return to},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(e){function i(i){var n=e.call(this,i)||this;return t.init&&t.init.call(n,i),n}return u(i,e),i.prototype.getDefaultStyle=function(){return Object(s.d)(t.style)},i.prototype.getDefaultShape=function(){return Object(s.d)(t.shape)},i}(e);for(var n in t)"function"==typeof t[n]&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=((i=e.prototype).type="path",i.strokeContainThreshold=5,i.segmentIgnoreThreshold=0,i.subPixelOptimize=!1,i.autoBatch=!1,void(i.__dirty=7)),e}(ir),no=Object(s.i)({strokeFirst:!0,font:ri.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Jr),ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(s.g)(no,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=li(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ir);ro.prototype.type="tspan";var oo=ro,ao=Object(s.i)({x:0,y:0},Xn),so={style:Object(s.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zn.style)};var lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.createStyle=function(t){return Object(s.g)(ao,t)},e.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n,r=(n=e.image)&&"string"!=typeof n&&n.width&&n.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return so},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ft(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ir);lo.prototype.type="image";var uo=lo;var co=Math.round;function ho(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(co(2*n)===co(2*r)&&(t.x1=t.x2=fo(n,s,!0)),co(2*o)===co(2*a)&&(t.y1=t.y2=fo(o,s,!0)),t):t}}function po(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=fo(n,s,!0),t.y=fo(r,s,!0),t.width=Math.max(fo(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(fo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function fo(t,e,i){if(!e)return t;var n=co(2*t);return(n+co(e))%2==0?n/2:(n+(i?1:-1))/2}var go=function(){this.x=0,this.y=0,this.width=0,this.height=0},mo={},yo=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new go},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=po(mo,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?function(t,e){var i,n,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0,i+n>u&&(i*=u/(a=i+n),n*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),n+r>c&&(n*=c/(a=n+r),r*=c/a),i+o>c&&(i*=c/(a=i+o),o*=c/a),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}(t,e):t.rect(i,n,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(io);yo.prototype.type="rect";var vo=yo,bo={fill:"#000"},xo={style:Object(s.i)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Zn.style)},_o=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=bo,i.attr(e),i}return u(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Ao(t=this.style),Object(s.k)(t.rich,Ao),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ft(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||bo},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return Object(s.m)(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var i=Object(s.F)(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},Object(s.m)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return xo},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||ri.a,i=t.padding,n=function(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,l=hi(o),u=Object(s.P)(e.lineHeight,l),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,d=!1,p=e.width,f=(i=null==p||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?Yn(t,e.font,p,"breakAll"===n,0).lines:[]).length*u,g=Object(s.P)(e.height,f);if(f>g&&h){var m=Math.floor(g/u);d=d||i.length>m,i=i.slice(0,m)}if(t&&a&&null!=p)for(var y=zn(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},b=0;b<i.length;b++)Bn(v,i[b],y),i[b]=v.textLine,d=d||v.isTruncated;var x=g,_=0;for(b=0;b<i.length;b++)_=Math.max(ai(i[b],o),_);null==p&&(p=_);var w=_;return r&&(x+=r[0]+r[2],w+=r[1]+r[3],p+=r[1]+r[3]),c&&(w=p),{lines:i,height:g,outerWidth:w,outerHeight:x,lineHeight:u,calculatedLineHeight:l,contentWidth:_,contentHeight:f,width:p,isTruncated:d}}(Lo(t),t),r=Po(t),o=!!t.backgroundColor,a=n.outerHeight,l=n.outerWidth,u=n.contentWidth,c=n.lines,h=n.lineHeight,d=this._defaultStyle;this.isTruncated=!!n.isTruncated;var p=t.x||0,f=t.y||0,g=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",y=p,v=ci(f,n.contentHeight,m);if(r||i){var b=ui(p,l,g),x=ci(f,a,m);r&&this._renderBackground(t,t,b,x,l,a)}v+=h/2,i&&(y=Do(p,g,i),"top"===m?v+=i[0]:"bottom"===m&&(v-=i[2]));for(var _=0,w=!1,S=(To("fill"in t?t.fill:(w=!0,d.fill))),C=(Io("stroke"in t?t.stroke:o||d.autoStroke&&!w?null:(_=2,d.stroke))),M=t.textShadowBlur>0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),O=n.calculatedLineHeight,A=0;A<c.length;A++){var I=this._getOrCreateChild(oo),T=I.createStyle();I.useStyle(T),T.text=c[A],T.x=y,T.y=v,g&&(T.textAlign=g),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,M&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=C,T.fill=S,C&&(T.lineWidth=t.lineWidth||_,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,ko(T,t),v+=h,k&&I.setBoundingRect(new ft(ui(T.x,u,T.textAlign),ci(T.y,O,T.textBaseline),u,O))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var i=new $n;if(null!=t&&(t+=""),!t)return i;for(var n,r=e.width,o=e.height,a=e.overflow,l="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},u=En.lastIndex=0;null!=(n=En.exec(t));){var c=n.index;c>u&&Gn(i,t.substring(u,c),e,l),Gn(i,n[2],e,l,n[1]),u=En.lastIndex}u<t.length&&Gn(i,t.substring(u,t.length),e,l);var h=[],d=0,p=0,f=e.padding,g="truncate"===a,m="truncate"===e.lineOverflow,y={};function v(t,e,i){t.width=e,t.lineHeight=i,d+=i,p=Math.max(p,e)}t:for(var b=0;b<i.lines.length;b++){for(var x=i.lines[b],_=0,w=0,S=0;S<x.tokens.length;S++){var C=(N=x.tokens[S]).styleName&&e.rich[N.styleName]||{},M=N.textPadding=C.padding,k=M?M[1]+M[3]:0,O=N.font=C.font||e.font;N.contentHeight=hi(O);var A=Object(s.P)(C.height,N.contentHeight);if(N.innerHeight=A,M&&(A+=M[0]+M[2]),N.height=A,N.lineHeight=Object(s.Q)(C.lineHeight,e.lineHeight,A),N.align=C&&C.align||e.align,N.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=o&&d+N.lineHeight>o){var I=i.lines.length;S>0?(x.tokens=x.tokens.slice(0,S),v(x,w,_),i.lines=i.lines.slice(0,b+1)):i.lines=i.lines.slice(0,b),i.isTruncated=i.isTruncated||i.lines.length<I;break t}var T=C.width,D=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))N.percentWidth=T,h.push(N),N.contentWidth=ai(N.text,O);else{if(D){var L=C.backgroundColor,P=L&&L.image;P&&Nn(P=Ln(P))&&(N.width=Math.max(N.width,P.width*A/P.height))}var j=g&&null!=r?r-w:null;null!=j&&j<N.width?!D||j<k?(N.text="",N.width=N.contentWidth=0):(Rn(y,N.text,j-k,O,e.ellipsis,{minChar:e.truncateMinChar}),N.text=y.text,i.isTruncated=i.isTruncated||y.isTruncated,N.width=N.contentWidth=ai(N.text,O)):N.contentWidth=ai(N.text,O)}N.width+=k,w+=N.width,C&&(_=Math.max(_,N.lineHeight))}v(x,w,_)}for(i.outerWidth=i.width=Object(s.P)(r,p),i.outerHeight=i.height=Object(s.P)(o,d),i.contentHeight=d,i.contentWidth=p,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]),b=0;b<h.length;b++){var N,E=(N=h[b]).percentWidth;N.width=parseInt(E,10)/100*i.width}return i}(Lo(t),t),i=e.width,n=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign;this.isTruncated=!!e.isTruncated;var d=ui(a,n,c),p=ci(l,r,h),f=d,g=p;o&&(f+=o[3],g+=o[0]);var m=f+i;Po(t)&&this._renderBackground(t,t,d,p,n,r);for(var y=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var b=e.lines[v],x=b.tokens,_=x.length,w=b.lineHeight,S=b.width,C=0,M=f,k=m,O=_-1,A=void 0;C<_&&(!(A=x[C]).align||"left"===A.align);)this._placeToken(A,t,w,g,M,"left",y),S-=A.width,M+=A.width,C++;for(;O>=0&&"right"===(A=x[O]).align;)this._placeToken(A,t,w,g,k,"right",y),S-=A.width,k-=A.width,O--;for(M+=(i-(M-f)-(m-k)-S)/2;C<=O;)A=x[C],this._placeToken(A,t,w,g,M+A.width/2,"center",y),M+=A.width,C++;g+=w}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=n+i/2;"top"===u?c=n+t.height/2:"bottom"===u&&(c=n+i-t.height/2),!t.isLineHolder&&Po(l)&&this._renderBackground(l,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var h=!!l.backgroundColor,d=t.textPadding;d&&(r=Do(r,o,d),c-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(oo),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,m=!1,y=0,v=To("fill"in l?l.fill:"fill"in e?e.fill:(m=!0,g.fill)),b=Io("stroke"in l?l.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!m?null:(y=2,g.stroke)),x=l.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=c,x&&(f.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,f.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||ri.a,f.opacity=Object(s.Q)(l.opacity,e.opacity,1),ko(f,l),b&&(f.lineWidth=Object(s.Q)(l.lineWidth,e.lineWidth,y),f.lineDash=Object(s.P)(l.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=b),v&&(f.fill=v);var _=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new ft(ui(f.x,_,f.textAlign),ci(f.y,w,f.textBaseline),_,w))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,l,u,c=t.backgroundColor,h=t.borderWidth,d=t.borderColor,p=c&&c.image,f=c&&!p,g=t.borderRadius,m=this;if(f||t.lineHeight||h&&d){(a=this._getOrCreateChild(vo)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=i,y.y=n,y.width=r,y.height=o,y.r=g,a.dirtyShape()}if(f)(u=a.style).fill=c||null,u.fillOpacity=Object(s.P)(t.fillOpacity,1);else if(p){(l=this._getOrCreateChild(uo)).onload=function(){m.dirtyStyle()};var v=l.style;v.image=c.image,v.x=i,v.y=n,v.width=r,v.height=o}h&&d&&((u=a.style).lineWidth=h,u.stroke=d,u.strokeOpacity=Object(s.P)(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var b=(a||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(s.Q)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Oo(t)&&(e=[t.fontStyle,t.fontWeight,Mo(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(s.T)(e)||t.textFont||t.font},e}(ir),wo={left:!0,right:1,center:1},So={top:1,bottom:1,middle:1},Co=["fontStyle","fontWeight","fontSize","fontFamily"];function Mo(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?ri.c+"px":t+"px":t}function ko(t,e){for(var i=0;i<Co.length;i++){var n=Co[i],r=e[n];null!=r&&(t[n]=r)}}function Oo(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Ao(t){if(t){t.font=_o.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||wo[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||So[i]?i:"top",t.padding&&(t.padding=Object(s.M)(t.padding))}}function Io(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function To(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Do(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Lo(t){var e=t.text;return null!=e&&(e+=""),e}function Po(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var jo=_o,No=cn(),Eo=function(t,e,i,n){if(n){var r=No(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===n.type&&n.traverse((function(n){var r=No(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e,r.ssrType="chart"}))}},Ro=1,zo={},Bo=cn(),Vo=cn(),Fo=["emphasis","blur","select"],Ho=["normal","emphasis","blur","select"];function $o(t){return null!=t&&"none"!==t}function Go(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Wo(t){Go(t,"emphasis",2)}function Uo(t){2===t.hoverState&&Go(t,"normal",0)}function Yo(t){Go(t,"blur",1)}function qo(t){1===t.hoverState&&Go(t,"normal",0)}function Xo(t){t.selected=!0}function Zo(t){t.selected=!1}function Ko(t,e,i){e(t,i)}function Qo(t,e,i){Ko(t,e,i),t.isGroup&&t.traverse((function(t){Ko(t,e,i)}))}function Jo(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ta(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,i,n){var r=i&&Object(s.r)(i,"select")>=0,o=!1;if(t instanceof io){var a=Bo(t),l=r&&a.selectFill||a.normalFill,u=r&&a.selectStroke||a.normalStroke;if($o(l)||$o(u)){var c=(n=n||{}).style||{};"inherit"===c.fill?(o=!0,n=Object(s.m)({},n),(c=Object(s.m)({},c)).fill=l):!$o(c.fill)&&$o(l)?(o=!0,n=Object(s.m)({},n),(c=Object(s.m)({},c)).fill=Object(le.d)(l)):!$o(c.stroke)&&$o(u)&&(o||(n=Object(s.m)({},n),c=Object(s.m)({},c)),c.stroke=Object(le.d)(u)),n.style=c}}if(n&&null==n.z2){o||(n=Object(s.m)({},n));var h=t.z2EmphasisLift;n.z2=t.z2+(null!=h?h:10)}return n}(this,0,e,i);if("blur"===t)return function(t,e,i){var n=Object(s.r)(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:function(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(i=i||{}).style||{};return null==a.opacity&&(i=Object(s.m)({},i),a=Object(s.m)({opacity:n?r:.1*o.opacity},a),i.style=a),i}(this,t,i);if("select"===t)return function(t,e,i){if(i&&null==i.z2){i=Object(s.m)({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:9)}return i}(this,0,i)}return i}function ea(t){t.stateProxy=ta;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=ta),i&&(i.stateProxy=ta)}function ia(t,e){!ca(t,e)&&!t.__highByOuter&&Qo(t,Wo)}function na(t,e){!ca(t,e)&&!t.__highByOuter&&Qo(t,Uo)}function ra(t,e){t.__highByOuter|=1<<(e||0),Qo(t,Wo)}function oa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Qo(t,Uo)}function aa(t){Qo(t,Yo)}function sa(t){Qo(t,qo)}function la(t){Qo(t,Xo)}function ua(t){Qo(t,Zo)}function ca(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ha(t){var e=t.getModel(),i=[],n=[];e.eachComponent((function(e,r){var o=Vo(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&n.push(s),o.isBlured&&(s.group.traverse((function(t){qo(t)})),a&&i.push(r)),o.isBlured=!1})),Object(s.k)(n,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)}))}function da(t,e,i,n){var r=n.getModel();function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&sa(n)}}if(i=i||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),l=a.coordinateSystem;l&&l.master&&(l=l.master);var u=[];r.eachSeries((function(t){var r=a===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===i&&!r||"coordinateSystem"===i&&!(c&&l?c===l:r)||"series"===e&&r)){if(n.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&r&&"self"===e||Yo(t)})),Object(s.u)(e))o(t.getData(),e);else if(Object(s.A)(e))for(var h=Object(s.F)(e),d=0;d<h.length;d++)o(t.getData(h[d]),e[h[d]]);u.push(t),Vo(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(u,!0,r)}}))}}function pa(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){Vo(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Yo(t)}))}}}function fa(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===No(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ga(t){var e=t.getAllData();Object(s.k)(e,(function(e){var i=e.data,n=e.type;i.eachItemGraphicEl((function(e,i){t.isSelected(i,n)?la(e):ua(e)}))}))}function ma(t){var e=[];return t.eachSeries((function(t){var i=t.getAllData();Object(s.k)(i,(function(i){i.data;var n=i.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}}))})),e}function ya(t,e,i){Sa(t,!0),Qo(t,ea),ba(t,e,i)}function va(t,e,i,n){n?function(t){Sa(t,!1)}(t):ya(t,e,i)}function ba(t,e,i){var n=No(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}var xa=["emphasis","blur","select"],_a={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wa(t,e,i,n){i=i||"itemStyle";for(var r=0;r<xa.length;r++){var o=xa[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[_a[i]]()}}function Sa(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),i&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}function Ca(t){return!(!t||!t.__highDownDispatcher)}function Ma(t){var e=t.type;return"select"===e||"unselect"===e||"toggleSelect"===e}function ka(t){var e=t.type;return"highlight"===e||"downplay"===e}var Oa=cn();function Aa(t,e,i,n,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return n?(u=Object(s.P)(n.duration,200),c=Object(s.P)(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Object(s.w)(h)&&(h=h(i,r)),Object(s.w)(u)&&(u=u(i)),{duration:u||0,delay:h,easing:c}}return null}function Ia(t,e,i,n,r,o,a){var l,u=!1;Object(s.w)(r)?(a=o,o=r,r=null):Object(s.A)(r)&&(o=r.cb,a=r.during,u=r.isFrom,l=r.removeOpt,r=r.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=Aa(t,n,r,c?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var d={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};u?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),!u&&e.attr(i),a&&a(1),o&&o()}function Ta(t,e,i,n,r,o){Ia("update",t,e,i,n,r,o)}function Da(t,e,i,n,r,o){Ia("enter",t,e,i,n,r,o)}function La(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function Pa(t,e,i,n,r,o){La(t)||Ia("leave",t,e,i,n,r,o)}function ja(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),Pa(t,{style:{opacity:0}},e,i,n)}function Na(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ja(t,e,i,n)})):ja(t,e,i,n)}function Ea(t){Oa(t).oldStyle=t.style}var Ra={};function za(t,e){for(var i=0;i<Fo.length;i++){var n=Fo[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ba(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,l=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,l&&l.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=Object(s.w)(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var u={normal:n},c=0;c<Fo.length;c++){var h=Fo[c],d=e[h];u[h]=Object(s.P)(r?r.getFormattedLabel(o,h,null,a,d&&d.get("formatter")):null,n)}return u}function Va(t,e,i,n){i=i||Ra;for(var r=t instanceof jo,o=!1,a=0;a<Ho.length;a++){if((p=e[Ho[a]])&&p.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new jo,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Ba(i,e),c=e.normal,h=!!c.getShallow("show"),d=Ha(c,n&&n.normal,i,!1,!r);d.text=u.normal,r||t.setTextConfig($a(c,i,!1));for(a=0;a<Fo.length;a++){var p,f=Fo[a];if(p=e[f]){var g=l.ensureState(f),m=!!Object(s.P)(p.getShallow("show"),h);if(m!==h&&(g.ignore=!m),g.style=Ha(p,n&&n[f],i,!0,!r),g.style.text=u[f],!r)t.ensureState(f).textConfig=$a(p,i,!0)}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),i.enableTextSetter&&(Xa(l).setLabelText=function(t){var n=Ba(i,e,t);za(l,n)})}else l&&(l.ignore=!0);t.dirty()}function Fa(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<Fo.length;n++){var r=Fo[n];i[r]=t.getModel([r,e])}return i}function Ha(t,e,i,n,r){var o={};return function(t,e,i,n,r){i=i||Ra;var o,a=e.ecModel,l=a&&a.option.textStyle,u=function(t){var e;for(;t&&t!==t.ecModel;){var i=(t.option||Ra).rich;if(i){e=e||{};for(var n=Object(s.F)(i),r=0;r<n.length;r++){var o=n[r];e[o]=1}}t=t.parentModel}return e}(e);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var h=e.getModel(["rich",c]);Ya(o[c]={},h,l,i,n,r,!1,!0)}o&&(t.rich=o);var d=e.get("overflow");d&&(t.overflow=d);var p=e.get("minMargin");null!=p&&(t.margin=p);Ya(t,e,l,i,n,r,!0,!1)}(o,t,i,n,r),e&&Object(s.m)(o,e),o}function $a(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=Object(s.P)(t.getShallow("distance"),i?null:5),l=t.getShallow("offset");return"outside"===(n=t.getShallow("position")||(i?null:"inside"))&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=l&&(r.offset=l),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var Ga=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Wa=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Ua=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ya(t,e,i,n,r,o,a,l){i=!r&&i||Ra;var u=n&&n.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=Object(s.P)(e.getShallow("opacity"),i.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==h&&"auto"!==h||(h=u||null),o||(c=c||i.color,h=h||i.textBorderColor),null!=c&&(t.fill=c),null!=h&&(t.stroke=h);var p=Object(s.P)(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(t.lineWidth=p);var f=Object(s.P)(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var g=Object(s.P)(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=g&&(t.lineDashOffset=g),r||null!=d||l||(d=n&&n.defaultOpacity),null!=d&&(t.opacity=d),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var m=0;m<Ga.length;m++){var y=Ga[m];null!=(b=Object(s.P)(e.getShallow(y),i[y]))&&(t[y]=b)}for(m=0;m<Wa.length;m++){y=Wa[m];null!=(b=e.getShallow(y))&&(t[y]=b)}if(null==t.verticalAlign){var v=e.getShallow("baseline");null!=v&&(t.verticalAlign=v)}if(!a||!n.disableBox){for(m=0;m<Ua.length;m++){var b;y=Ua[m];null!=(b=e.getShallow(y))&&(t[y]=b)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!u||(t.backgroundColor=u),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!u||(t.borderColor=u)}}function qa(t,e){var i=e&&e.getModel("textStyle");return Object(s.T)([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}var Xa=cn();function Za(t,e,i,n){if(t){var r=Xa(t);r.prevValue=r.value,r.value=i;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=n,r.statesModels=e)}}function Ka(t,e,i,n,r){var o=Xa(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,l=Object(s.P)(o.interpolatedValue,o.prevValue),u=o.value;t.percent=0,(null==o.prevValue?Da:Ta)(t,{percent:1},n,e,null,(function(n){var s=bn(i,o.precision,l,u,n);o.interpolatedValue=1===n?null:s;var c=Ba({labelDataIndex:e,labelFetcher:r,defaultText:a?a(s):s+""},o.statesModels,s);za(t,c)}))}}var Qa,Ja,ts=["textStyle","color"],es=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],is=new jo,ns=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ts):null)},t.prototype.getFont=function(){return qa({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<es.length;i++)e[es[i]]=this.getShallow(es[i]);return is.useStyle(e),is.update(),is.getBoundingRect()},t}(),rs=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],os=An(rs),as=function(){function t(){}return t.prototype.getLineStyle=function(t){return os(this,t)},t}(),ss=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ls=An(ss),us=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return ls(this,t,e)},t}(),cs=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(t,e,i){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(s.I)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null;return new t(n?this._doGet(r):this.option,i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(Object(s.d)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!a.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();wn(cs),Qa=cs,Ja=["__\0is_clz",Cn++].join("_"),Qa.prototype[Ja]=!0,Qa.isInstance=function(t){return!(!t||!t[Ja])},Object(s.K)(cs,as),Object(s.K)(cs,us),Object(s.K)(cs,Tn),Object(s.K)(cs,ns);var hs=cs,ds=Math.round(10*Math.random());function ps(t){return[t||"",ds++].join("_")}function fs(t,e){return s.I(s.I({},t,!0),e,!0)}var gs={},ms={},ys=a.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function vs(t,e){t=t.toUpperCase(),ms[t]=new hs(e),gs[t]=e}function bs(t){return ms[t]}vs("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),vs("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var xs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},_s={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+xs.hour,minute:"{yyyy}-{MM}-{dd} "+xs.minute,second:"{yyyy}-{MM}-{dd} "+xs.second,millisecond:xs.none},ws=["year","month","day","hour","minute","second","millisecond"],Ss=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Cs(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ms(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ks(t,e,i,n){var r=Fi(t),o=r[Is(i)](),a=r[Ts(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[Ds(i)](),u=r["get"+(i?"UTC":"")+"Day"](),c=r[Ls(i)](),h=(c-1)%12+1,d=r[Ps(i)](),p=r[js(i)](),f=r[Ns(i)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=(n instanceof hs?n:bs(n||ys)||ms.EN).getModel("time"),v=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Cs(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,Cs(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Cs(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Cs(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Cs(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Cs(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Cs(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Cs(f,3)).replace(/{S}/g,f+"")}function Os(t,e){var i=Fi(t),n=i[Ts(e)]()+1,r=i[Ds(e)](),o=i[Ls(e)](),a=i[Ps(e)](),s=i[js(e)](),l=0===i[Ns(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===n?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function As(t,e,i){var n=s.z(t)?Fi(t):t;switch(e=e||Os(t,i)){case"year":return n[Is(i)]();case"half-year":return n[Ts(i)]()>=6?1:0;case"quarter":return Math.floor((n[Ts(i)]()+1)/4);case"month":return n[Ts(i)]();case"day":return n[Ds(i)]();case"half-day":return n[Ls(i)]()/24;case"hour":return n[Ls(i)]();case"minute":return n[Ps(i)]();case"second":return n[js(i)]();case"millisecond":return n[Ns(i)]()}}function Is(t){return t?"getUTCFullYear":"getFullYear"}function Ts(t){return t?"getUTCMonth":"getMonth"}function Ds(t){return t?"getUTCDate":"getDate"}function Ls(t){return t?"getUTCHours":"getHours"}function Ps(t){return t?"getUTCMinutes":"getMinutes"}function js(t){return t?"getUTCSeconds":"getSeconds"}function Ns(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Es(t){return t?"setUTCFullYear":"setFullYear"}function Rs(t){return t?"setUTCMonth":"setMonth"}function zs(t){return t?"setUTCDate":"setDate"}function Bs(t){return t?"setUTCHours":"setHours"}function Vs(t){return t?"setUTCMinutes":"setMinutes"}function Fs(t){return t?"setUTCSeconds":"setSeconds"}function Hs(t){return t?"setUTCMilliseconds":"setMilliseconds"}function $s(t){if(!Yi(t))return s.C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ws=s.M;function Us(t,e,i){function n(t){return t&&s.T(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var l=o?Fi(t):t;if(!isNaN(+l))return ks(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(a)return"-"}if("ordinal"===e)return s.D(t)?n(t):s.z(t)&&r(t)?t+"":"-";var u=Ui(t);return r(u)?$s(u):s.D(t)?n(t):"boolean"==typeof t?t+"":"-"}var Ys=["a","b","c","d","e","f","g"],qs=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Xs(t,e,i){s.t(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Ys[o];t=t.replace(qs(a),qs(a,0))}for(var l=0;l<n;l++)for(var u=0;u<r.length;u++){var c=e[l][r[u]];t=t.replace(qs(Ys[u],l),i?z(c):c)}return t}function Zs(t,e){return e=e||"transparent",s.C(t)?t:s.A(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ks(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location.href=t}else window.open(t,e)}var Qs=s.k,Js=["left","right","top","bottom","width","height"],tl=[["width","left","right"],["height","top","bottom"]];function el(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>n||l.newline?(o=0,c=g,a+=s+i,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(h=a+m)>r||l.newline?(o+=s+i,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+i:a=h+i)}))}var il=el;s.h(el,"vertical"),s.h(el,"horizontal");function nl(t,e,i){i=Ws(i||0);var n=e.width,r=e.height,o=Di(t.left,n),a=Di(t.top,r),s=Di(t.right,n),l=Di(t.bottom,r),u=Di(t.width,n),c=Di(t.height,r),h=i[2]+i[0],d=i[1]+i[3],p=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>n/r?u=.8*n:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=n-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-i[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new ft(o+i[3],a+i[0],u,c);return f.margin=i,f}function rl(t,e,i,n,r,o){var a,l=!r||!r.hv||r.hv[0],u=!r||!r.hv||r.hv[1],c=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!l&&!u)return!1;if("raw"===c)a="group"===t.type?new ft(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var d=nl(s.i({width:a.width,height:a.height},e),i,n),p=l?d.x-a.x:0,f=u?d.y-a.y:0;return"raw"===c?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function ol(t){var e=t.layoutMode||t.constructor.layoutMode;return s.A(e)?e:e?{type:e}:null}function al(t,e,i){var n=i&&i.ignoreSize;!s.t(n)&&(n=[n,n]);var r=a(tl[0],0),o=a(tl[1],1);function a(i,r){var o={},a=0,s={},c=0;if(Qs(i,(function(e){s[e]=t[e]})),Qs(i,(function(t){l(e,t)&&(o[t]=s[t]=e[t]),u(o,t)&&a++,u(s,t)&&c++})),n[r])return u(e,i[1])?s[i[2]]=null:u(e,i[2])&&(s[i[1]]=null),s;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<i.length;h++){var d=i[h];if(!l(o,d)&&l(t,d)){o[d]=t[d];break}}return o}return s}function l(t,e){return t.hasOwnProperty(e)}function u(t,e){return null!=t[e]&&"auto"!==t[e]}function c(t,e,i){Qs(t,(function(t){e[t]=i[t]}))}c(tl[0],t,r),c(tl[1],t,o)}function sl(t){return ll({},t)}function ll(t,e){return e&&t&&Qs(Js,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}var ul=cn(),cl=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=ps("ec_cpt_model"),r}var i;return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=ol(this),n=i?sl(t):{},r=e.getTheme();s.I(t,r.get(this.mainType)),s.I(t,this.getDefaultOption()),i&&al(t,n,i)},e.prototype.mergeOption=function(t,e){s.I(this.option,t,!0);var i=ol(this);i&&al(this.option,t,i)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}(t))return t.defaultOption;var e=ul(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=s.I(o,i[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return mn(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((i=e.prototype).type="component",i.id="",i.name="",i.mainType="",i.subType="",void(i.componentIndex=0)),e}(hs);Sn(cl,hs),On(cl),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=_n(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=_n(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(cl),function(t,e){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,n,r,o){if(t.length){var a=function(t){var n={},r=[];return s.k(t,(function(o){var a=i(n,o),l=function(t,e){var i=[];return s.k(t,(function(t){s.r(e,t)>=0&&i.push(t)})),i}(a.originalDeps=e(o),t);a.entryCount=l.length,0===a.entryCount&&r.push(o),s.k(l,(function(t){s.r(a.predecessor,t)<0&&a.predecessor.push(t);var e=i(n,t);s.r(e.successor,t)<0&&e.successor.push(o)}))})),{graph:n,noEntryList:r}}(n),l=a.graph,u=a.noEntryList,c={};for(s.k(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(r.call(o,h,d.originalDeps.slice()),delete c[h]),s.k(d.successor,p?g:f)}s.k(c,(function(){throw new Error("")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}}}(cl,(function(t){var e=[];s.k(cl.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=s.H(e,(function(t){return _n(t).main})),"dataset"!==t&&s.r(e,"dataset")<=0&&e.unshift("dataset");return e}));var hl=cl,dl="";"undefined"!=typeof navigator&&(dl=navigator.platform||"");var pl="rgba(0, 0, 0, 0.2)",fl={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:pl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:pl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:pl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:pl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:pl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:pl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dl.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},gl=Object(s.f)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ml=1,yl=2,vl=3,bl=cn();function xl(t,e,i){var n={},r=wl(e);if(!r||!t)return n;var o,a,l=[],u=[],c=e.ecModel,h=bl(c).datasetMap,d=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),Object(s.k)(t,(function(e,i){var r=Object(s.A)(e)?e:t[i]={name:e};"ordinal"===r.type&&null==o&&(o=i,a=g(r)),n[r.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function g(t){var e=t.dimsDef;return e?e.length:1}return Object(s.k)(t,(function(t,e){var i=t.name,r=g(t);if(null==o){var a=p.valueWayDim;f(n[i],a,r),f(u,a,r),p.valueWayDim+=r}else if(o===e)f(n[i],0,r),f(l,0,r);else{a=p.categoryWayDim;f(n[i],a,r),f(u,a,r),p.categoryWayDim+=r}})),l.length&&(n.itemName=l),u.length&&(n.seriesName=u),n}function _l(t,e,i){var n={};if(!wl(t))return n;var r,o=e.sourceFormat,a=e.dimensionsDefine;"objectRows"!==o&&"keyedColumns"!==o||Object(s.k)(a,(function(t,e){"name"===(Object(s.A)(t)?t.name:t)&&(r=e)}));var l=function(){for(var t={},n={},s=[],l=0,u=Math.min(5,i);l<u;l++){var c=Cl(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===vl;if(h&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===vl)&&(t.n=l),d(t)&&s[t.n]!==vl)return t;h||(c===yl&&null==n.v&&l!==r&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(n)?n:null}();if(l){n.value=[l.v];var u=null!=r?r:l.n;n.itemName=[u],n.seriesName=[u]}return n}function wl(t){if(!t.get("data",!0))return mn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},fn).models[0]}function Sl(t,e){return Cl(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Cl(t,e,i,n,r,o){var a,l,u;if(Object(s.E)(t))return vl;if(n){var c=n[o];Object(s.A)(c)?(l=c.name,u=c.type):Object(s.C)(c)&&(l=c)}if(null!=u)return"ordinal"===u?ml:vl;if("arrayRows"===e){var h=t;if("row"===i){for(var d=h[o],p=0;p<(d||[]).length&&p<5;p++)if(null!=(a=b(d[r+p])))return a}else for(p=0;p<h.length&&p<5;p++){var f=h[r+p];if(f&&null!=(a=b(f[o])))return a}}else if("objectRows"===e){var g=t;if(!l)return vl;for(p=0;p<g.length&&p<5;p++){if((y=g[p])&&null!=(a=b(y[l])))return a}}else if("keyedColumns"===e){if(!l)return vl;if(!(d=t[l])||Object(s.E)(d))return vl;for(p=0;p<d.length&&p<5;p++)if(null!=(a=b(d[p])))return a}else if("original"===e){var m=t;for(p=0;p<m.length&&p<5;p++){var y,v=tn(y=m[p]);if(!Object(s.t)(v))return vl;if(null!=(a=b(v[o])))return a}}function b(t){var e=Object(s.C)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?yl:vl:e&&"-"!==t?ml:void 0}return vl}var Ml=Object(s.f)();var kl=cn(),Ol=cn(),Al=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=Ki(this.get("color",!0)),r=this.get("colorLayer",!0);return Tl(this,kl,n,r,t,e,i)},t.prototype.clearColorPalette=function(){var t,e;(e=kl)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function Il(t,e,i,n){var r=Ki(t.get(["aria","decal","decals"]));return Tl(t,Ol,r,null,e,i,n)}function Tl(t,e,i,n,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&n?function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}(n,a):i;if((c=c||i)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var Dl,Ll,Pl;"undefined"!=typeof console&&console.warn&&console.log;function jl(t){0}function Nl(t){throw new Error(t)}var El=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new hs(n),this._locale=new hs(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=Bl(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Bl(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Pl(this,r),i=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&Object(s.k)(a,(function(t){i=!0,this._mergeOption(t,e)}),this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,r=this._componentsCount,o=[],a=Object(s.f)(),l=e&&e.replaceMergeMainTypeMap;bl(this).datasetMap=Object(s.f)(),Object(s.k)(t,(function(t,e){null!=t&&(hl.hasClass(e)?e&&(o.push(e),a.set(e,!0)):i[e]=null==i[e]?Object(s.d)(t):Object(s.I)(i[e],t,!0))})),l&&l.each((function(t,e){hl.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),hl.topologicalTravel(o,hl.getAllClassMainTypes(),(function(e){var o=function(t,e,i){var n=Ml.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}(this,e,Ki(t[e])),a=n.get(e),u=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=nn(a,o,u);(function(t,e,i){Object(s.k)(t,(function(t){var n=t.newOption;Object(s.A)(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,i,n){return e.type?e.type:i?i.subType:n.determineSubType(t,e)}(e,n,t.existing,i))}))})(c,e,hl),i[e]=null,n.set(e,null),r.set(e,0);var h,d=[],p=[],f=0;Object(s.k)(c,(function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=hl.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var l=Object(s.m)({componentIndex:i},t.keyInfo);n=new a(r,this,this,l),Object(s.m)(n,l),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(d.push(n.option),p.push(n),f++):(d.push(void 0),p.push(void 0))}),this),i[e]=d,n.set(e,p),r.set(e,f),"series"===e&&Dl(this)}),this),this._seriesIndices||Dl(this)},e.prototype.getOption=function(){var t=Object(s.d)(this.option);return Object(s.k)(t,(function(e,i){if(hl.hasClass(i)){for(var n=Ki(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!ln(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=n?(i=[],Object(s.k)(Ki(n),(function(t){a[t]&&i.push(a[t])}))):i=null!=r?Rl("id",r,a):null!=o?Rl("name",o,a):Object(s.n)(a,(function(t){return!!t})),zl(i,t)):[]},e.prototype.findComponents=function(t){var e,i,n,r,o,a=t.query,l=t.mainType,u=(i=l+"Index",n=l+"Id",r=l+"Name",!(e=a)||null==e[i]&&null==e[n]&&null==e[r]?null:{mainType:l,index:e[i],id:e[n],name:e[r]}),c=u?this.queryComponents(u):Object(s.n)(this._componentsMap.get(l),(function(t){return!!t}));return o=zl(c,t),t.filter?Object(s.n)(o,t.filter):o},e.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(Object(s.w)(t)){var r=e,o=t;n.each((function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}}))}else for(var a=Object(s.C)(t)?n.get(t):Object(s.A)(t)?this.findComponents(t):null,l=0;a&&l<a.length;l++){var u=a[l];u&&e.call(i,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=an(t,null);return Object(s.n)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(s.n)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(s.n)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Ll(this),Object(s.k)(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},e.prototype.eachRawSeries=function(t,e){Object(s.k)(this._componentsMap.get("series"),(function(i){i&&t.call(e,i,i.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,i){Ll(this),Object(s.k)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},e.prototype.eachRawSeriesByType=function(t,e,i){return Object(s.k)(this.getSeriesByType(t),e,i)},e.prototype.isSeriesFiltered=function(t){return Ll(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Ll(this);var i=[];Object(s.k)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)}),this),this._seriesIndices=i,this._seriesIndicesMap=Object(s.f)(i)},e.prototype.restoreData=function(t){Dl(this);var e=this._componentsMap,i=[];e.each((function(t,e){hl.hasClass(e)&&i.push(e)})),hl.topologicalTravel(i,hl.getAllClassMainTypes(),(function(i){Object(s.k)(e.get(i),(function(e){!e||"series"===i&&function(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(Dl=function(t){var e=t._seriesIndices=[];Object(s.k)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(s.f)(e)},Ll=function(t){},void(Pl=function(t,e){t.option={},t.option["\0_ec_inner"]=1,t._componentsMap=Object(s.f)({series:[]}),t._componentsCount=Object(s.f)();var i,n,r,o=e.aria;Object(s.A)(o)&&null==o.enabled&&(o.enabled=!0),i=e,n=t._theme.option,r=i.color&&!i.colorLayer,Object(s.k)(n,(function(t,e){"colorLayer"===e&&r||hl.hasClass(e)||("object"==typeof t?i[e]=i[e]?Object(s.I)(i[e],t,!1):Object(s.d)(t):null==i[e]&&(i[e]=t))})),Object(s.I)(e,fl,!1),t._mergeOption(e,null)})),e}(hs);function Rl(t,e,i){if(Object(s.t)(e)){var n=Object(s.f)();return Object(s.k)(e,(function(t){null!=t&&(null!=an(t,null)&&n.set(t,!0))})),Object(s.n)(i,(function(e){return e&&n.get(e[t])}))}var r=an(e,null);return Object(s.n)(i,(function(e){return e&&null!=r&&e[t]===r}))}function zl(t,e){return e.hasOwnProperty("subType")?Object(s.n)(t,(function(t){return t&&t.subType===e.subType})):t}function Bl(t){var e=Object(s.f)();return t&&Object(s.k)(Ki(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(s.K)(El,Al);var Vl=El,Fl=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Hl=function(t){s.k(Fl,(function(e){this[e]=s.c(t[e],t)}),this)},$l={},Gl=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];s.k($l,(function(n,r){var o=n.create(t,e);i=i.concat(o||[])})),this._coordinateSystems=i},t.prototype.update=function(t,e){s.k(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){$l[t]=e},t.get=function(t){return $l[t]},t}(),Wl=/^(min|max)?(.+)$/;function Ul(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return Object(s.k)(t,(function(t,e){var i=e.match(Wl);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();(function(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e})(n[a],t,o)||(r=!1)}})),r}var Yl=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,i){t&&(Object(s.k)(Ki(t.series),(function(t){t&&t.data&&Object(s.E)(t.data)&&Object(s.R)(t.data)})),Object(s.k)(Ki(t.dataset),(function(t){t&&t.source&&Object(s.E)(t.source)&&Object(s.R)(t.source)}))),t=Object(s.d)(t);var n=this._optionBackup,r=function(t,e,i){var n,r,o=[],a=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||a&&a.timeline);a?(r=a).timeline||(r.timeline=l):((d||h)&&(t.options=t.media=null),r=t);h&&Object(s.t)(c)&&Object(s.k)(c,(function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))}));function p(t){Object(s.k)(e,(function(e){e(t,i)}))}return p(r),Object(s.k)(u,(function(t){return p(t)})),Object(s.k)(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:n,mediaList:o}}(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(s.d)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=Object(s.d)(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,i,n=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,l=[],u=[];if(!o.length&&!a)return u;for(var c=0,h=o.length;c<h;c++)Ul(o[c].query,n,r)&&l.push(c);return!l.length&&a&&(l=[-1]),l.length&&(e=l,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(u=Object(s.H)(l,(function(t){return Object(s.d)(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=l,u},t}(),ql=s.k,Xl=s.A,Zl=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kl(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Zl.length;i<n;i++){var r=Zl[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s.I(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s.I(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Ql(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,s.i(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Jl(t){Ql(t,"itemStyle"),Ql(t,"lineStyle"),Ql(t,"areaStyle"),Ql(t,"label"),Ql(t,"labelLine"),Ql(t,"upperLabel"),Ql(t,"edgeLabel")}function tu(t,e){var i=Xl(t)&&t[e],n=Xl(i)&&i.textStyle;if(n){0;for(var r=0,o=Ji.length;r<o;r++){var a=Ji[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}}function eu(t){t&&(Jl(t),tu(t,"label"),t.emphasis&&tu(t.emphasis,"label"))}function iu(t){return s.t(t)?t:t?[t]:[]}function nu(t){return(s.t(t)?t[0]:t)||{}}function ru(t,e){ql(iu(t.series),(function(t){Xl(t)&&function(t){if(Xl(t)){Kl(t),Jl(t),tu(t,"label"),tu(t,"upperLabel"),tu(t,"edgeLabel"),t.emphasis&&(tu(t.emphasis,"label"),tu(t.emphasis,"upperLabel"),tu(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Kl(e),eu(e));var i=t.markLine;i&&(Kl(i),eu(i));var n=t.markArea;n&&eu(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!s.E(o))for(var a=0;a<o.length;a++)eu(o[a]);s.k(t.categories,(function(t){Jl(t)}))}if(r&&!s.E(r))for(a=0;a<r.length;a++)eu(r[a]);if((e=t.markPoint)&&e.data){var l=e.data;for(a=0;a<l.length;a++)eu(l[a])}if((i=t.markLine)&&i.data){var u=i.data;for(a=0;a<u.length;a++)s.t(u[a])?(eu(u[a][0]),eu(u[a][1])):eu(u[a])}"gauge"===t.type?(tu(t,"axisLabel"),tu(t,"title"),tu(t,"detail")):"treemap"===t.type?(Ql(t.breadcrumb,"itemStyle"),s.k(t.levels,(function(t){Jl(t)}))):"tree"===t.type&&Jl(t.leaves)}}(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),ql(i,(function(e){ql(iu(t[e]),(function(t){t&&(tu(t,"axisLabel"),tu(t.axisPointer,"label"))}))})),ql(iu(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;tu(e,"axisLabel"),tu(e&&e.axisPointer,"label")})),ql(iu(t.calendar),(function(t){Ql(t,"itemStyle"),tu(t,"dayLabel"),tu(t,"monthLabel"),tu(t,"yearLabel")})),ql(iu(t.radar),(function(t){tu(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),ql(iu(t.geo),(function(t){Xl(t)&&(eu(t),ql(iu(t.regions),(function(t){eu(t)})))})),ql(iu(t.timeline),(function(t){eu(t),Ql(t,"label"),Ql(t,"itemStyle"),Ql(t,"controlStyle",!0);var e=t.data;s.t(e)&&s.k(e,(function(t){s.A(t)&&(Ql(t,"label"),Ql(t,"itemStyle"))}))})),ql(iu(t.toolbox),(function(t){Ql(t,"iconStyle"),ql(t.feature,(function(t){Ql(t,"iconStyle")}))})),tu(nu(t.axisPointer),"label"),tu(nu(t.tooltip).axisPointer,"label")}function ou(t){t&&Object(s.k)(au,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var au=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],su=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function uu(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<lu.length;i++){var n=lu[i][1],r=lu[i][0];null!=e[n]&&(e[r]=e[n])}}function cu(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hu(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function du(t,e){ru(t,e),t.series=Ki(t.series),Object(s.k)(t.series,(function(t){if(Object(s.A)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),cu(t.label),(r=t.data)&&!Object(s.E)(r))for(var i=0;i<r.length;i++)cu(r[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var n=function(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}(t,"pointer.color");null!=n&&function(t,e,i,n){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(n||null==a[o[s]])&&(a[o[s]]=i)}(t,"itemStyle.color",n)}else if("bar"===e){var r;if(uu(t),uu(t.backgroundStyle),uu(t.emphasis),(r=t.data)&&!Object(s.E)(r))for(i=0;i<r.length;i++)"object"==typeof r[i]&&(uu(r[i]),uu(r[i]&&r[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hu(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,hu)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(s.i)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ou(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(s.k)(su,(function(e){var i=t[e];i&&(Object(s.t)(i)||(i=[i]),Object(s.k)(i,(function(t){ou(t)})))}))}function pu(t){Object(s.k)(t,(function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=i-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Ri(p,y),f=y;break}}}return n[0]=p,n[1]=f,n}))}))}var fu,gu,mu,yu,vu,bu=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Sl(this,i)===ml&&(n.type="ordinal")}};function xu(t){return t instanceof bu}function _u(t,e,i){i=i||Su(t);var n=e.seriesLayoutBy,r=function(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:Cu(r),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===e){var l=t;"auto"===n||null==n?Mu((function(t){null!=t&&"-"!==t&&(Object(s.C)(t)?null==a&&(a=1):a=0)}),i,l,10):a=Object(s.z)(n)?n:n?1:0,r||1!==a||(r=[],Mu((function(t,e){r[e]=null!=t?t+"":""}),i,l,1/0)),o=r?r.length:"row"===i?l.length:l[0]?l[0].length:null}else if("objectRows"===e)r||(r=function(t){var e,i=0;for(;i<t.length&&!(e=t[i++]););if(e)return Object(s.F)(e)}(t));else if("keyedColumns"===e)r||(r=[],Object(s.k)(t,(function(t,e){r.push(e)})));else if("original"===e){var u=tn(t[0]);o=Object(s.t)(u)&&u.length||1}return{startIndex:a,dimensionsDefine:Cu(r),dimensionsDetectedCount:o}}(t,i,n,e.sourceHeader,e.dimensions);return new bu({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(s.d)(e)})}function wu(t){return new bu({data:t,sourceFormat:Object(s.E)(t)?"typedArray":"original"})}function Su(t){var e="unknown";if(Object(s.E)(t))e="typedArray";else if(Object(s.t)(t)){0===t.length&&(e="arrayRows");for(var i=0,n=t.length;i<n;i++){var r=t[i];if(null!=r){if(Object(s.t)(r)||Object(s.E)(r)){e="arrayRows";break}if(Object(s.A)(r)){e="objectRows";break}}}}else if(Object(s.A)(t))for(var o in t)if(Object(s.q)(t,o)&&Object(s.u)(t[o])){e="keyedColumns";break}return e}function Cu(t){if(t){var e=Object(s.f)();return Object(s.H)(t,(function(t,i){var n={name:(t=Object(s.A)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n}))}}function Mu(t,e,i,n){if("row"===e)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else{var o=i[0]||[];for(r=0;r<o.length&&r<n;r++)t(o[r],r)}}function ku(t){var e=t.sourceFormat;return"objectRows"===e||"keyedColumns"===e}var Ou=function(){function t(t,e){var i=xu(t)?t:wu(t);this._source=i;var n=this._data=i.data;"typedArray"===i.sourceFormat&&(this._offset=0,this._dimSize=e,this._data=n),vu(this,n,i)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;vu=function(t,r,o){var a=o.sourceFormat,l=o.seriesLayoutBy,u=o.startIndex,c=o.dimensionsDefine,h=yu[Ru(a,l)];if(Object(s.m)(t,h),"typedArray"===a)t.getItem=e,t.count=n,t.fillStorage=i;else{var d=Tu(a,l);t.getItem=Object(s.c)(d,null,r,u,c);var p=Pu(a,l);t.count=Object(s.c)(p,null,r,u,c)}};var e=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},i=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=i[a],d=0;d<c;d++){var p=r[d*o+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},n=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={}).arrayRows_column={pure:!0,appendData:r},t.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t.objectRows={pure:!0,appendData:r},t.keyedColumns={pure:!0,appendData:function(t){var e=this._data;Object(s.k)(t,(function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])}))}},t.original={appendData:r},t.typedArray={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},yu=t}(),t}(),Au=function(t,e,i,n){return t[n]},Iu=((fu={}).arrayRows_column=function(t,e,i,n){return t[n+e]},fu.arrayRows_row=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},fu.objectRows=Au,fu.keyedColumns=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){0;var s=t[i[a].name];o[a]=s?s[n]:null}return o},fu.original=Au,fu);function Tu(t,e){return Iu[Ru(t,e)]}var Du=function(t,e,i){return t.length},Lu=((gu={}).arrayRows_column=function(t,e,i){return Math.max(0,t.length-e)},gu.arrayRows_row=function(t,e,i){var n=t[0];return n?Math.max(0,n.length-e):0},gu.objectRows=Du,gu.keyedColumns=function(t,e,i){var n=t[i[0].name];return n?n.length:0},gu.original=Du,gu);function Pu(t,e){return Lu[Ru(t,e)]}var ju=function(t,e,i){return t[e]},Nu=((mu={}).arrayRows=ju,mu.objectRows=function(t,e,i){return t[i]},mu.keyedColumns=ju,mu.original=function(t,e,i){var n=tn(t);return n instanceof Array?n[e]:n},mu.typedArray=ju,mu);function Eu(t){return Nu[t]}function Ru(t,e){return"arrayRows"===t?t+"_"+e:t}function zu(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return Eu(o)(n,a,s)}var l=n;return"original"===o&&(l=tn(n)),l}}}var Bu=/\{@(.+?)\}/g,Vu=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),l=this.getDataParams(t,i);(o&&(l.value=o.interpolatedValue),null!=n&&s.t(l.value)&&(l.value=l.value[n]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return s.w(r)?(l.status=e,l.dimensionIndex=n,r(l)):s.C(r)?Xs(r,l).replace(Bu,(function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var l=zu(a,t,r);if(o&&s.t(o.interpolatedValue)){var u=a.getDimensionIndex(r);u>=0&&(l=o.interpolatedValue[u])}return null!=l?l+"":""})):void 0},t.prototype.getRawValue=function(t,e){return zu(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,i){},t}();function Fu(t){var e,i;return s.A(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function Hu(t){return new $u(t)}var $u=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,a=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(n)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(o||p<f)){var g=this._progress;if(Object(s.t)(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var y=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){Gu.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Gu.next},this.context)},t.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),Object(s.t)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Gu=function(){var t,e,i,n,r,o={reset:function(l,u,c,h){e=l,t=u,i=c,n=h,r=Math.ceil(n/i),o.next=i>1&&n>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*i+Math.ceil(e/r),a=e>=t?null:o<n?o:e;return e++,a}}();function Wu(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||Object(s.z)(t)||null==t||"-"===t||(t=+Fi(t)),null==t||""===t?NaN:Number(t))}var Uu=Object(s.f)({number:function(t){return parseFloat(t)},time:function(t){return+Fi(t)},trim:function(t){return Object(s.C)(t)?Object(s.T)(t):t}});function Yu(t){return Uu.get(t)}var qu={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Xu=function(){function t(t,e){if(!Object(s.z)(e)){0,Nl("")}this._opFn=qu[t],this._rvalFloat=Ui(e)}return t.prototype.evaluate=function(t){return Object(s.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(Ui(t),this._rvalFloat)},t}(),Zu=function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=Object(s.z)(t)?t:Ui(t),n=Object(s.z)(e)?e:Ui(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=Object(s.C)(t),l=Object(s.C)(e);a&&(i=l?t:0),l&&(n=a?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t}(),Ku=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ui(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=Ui(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Qu(t,e){return"eq"===t||"ne"===t?new Ku("eq"===t,e):Object(s.q)(qu,t)?new Xu(t,e):null}var Ju=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Wu(t,e)},t}();function tc(t){if(!ac(t.sourceFormat)){0,Nl("")}return t.data}function ec(t){var e=t.sourceFormat,i=t.data;if(!ac(e)){0,Nl("")}if("arrayRows"===e){for(var n=[],r=0,o=i.length;r<o;r++)n.push(i[r].slice());return n}if("objectRows"===e){for(n=[],r=0,o=i.length;r<o;r++)n.push(Object(s.m)({},i[r]));return n}}function ic(t,e,i){if(null!=i)return Object(s.z)(i)||!isNaN(i)&&!Object(s.q)(e,i)?t[i]:Object(s.q)(e,i)?e[i]:void 0}function nc(t){return Object(s.d)(t)}var rc=Object(s.f)();function oc(t,e,i,n){e.length||Nl(""),Object(s.A)(t)||Nl("");var r=t.type,o=rc.get(r);o||Nl("");var a=Object(s.H)(e,(function(t){return function(t,e){var i=new Ju,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;"column"!==t.seriesLayoutBy&&Nl("");var a=[],l={},u=t.dimensionsDefine;if(u)Object(s.k)(u,(function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(a.push(n),null!=i){Object(s.q)(l,i)&&Nl(""),l[i]=n}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)a.push({index:c});var h=Tu(r,"column");e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,a,t)},i.getRawData=Object(s.c)(tc,null,t)),i.cloneRawData=Object(s.c)(ec,null,t);var d=Pu(r,"column");i.count=Object(s.c)(d,null,n,o,a);var p=Eu(r);i.retrieveValue=function(t,e){var i=h(n,o,a,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=Object(s.c)(ic,null,a,l),i.cloneAllDimensionInfo=Object(s.c)(nc,null,a),i}(t,o)})),l=Ki(o.transform({upstream:a[0],upstreamList:a,config:Object(s.d)(t.config)}));return Object(s.H)(l,(function(t,i){var n;Object(s.A)(t)||Nl(""),t.data||Nl(""),ac(Su(t.data))||Nl("");var r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:"column",sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:"column",sourceHeader:0,dimensions:t.dimensions};return _u(t.data,n,null)}))}function ac(t){return"arrayRows"===t||"objectRows"===t}var sc,lc="undefined"==typeof Uint32Array?Array:Uint32Array,uc="undefined"==typeof Uint16Array?Array:Uint16Array,cc="undefined"==typeof Int32Array?Array:Int32Array,hc="undefined"==typeof Float64Array?Array:Float64Array,dc={float:hc,int:cc,ordinal:Array,number:Array,time:hc};function pc(t){return t>65535?lc:uc}function fc(t,e,i,n,r){var o=dc[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}var gc=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(s.f)()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=sc[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[];ku(n);this._dimensions=Object(s.H)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new dc[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=i[l]=e.parseAndCollect(i[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){fc(i,l,(p=n[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var p=n[d],f=sc.arrayRows.call(this,t[h]||u,p.property,h,d);i[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,l=this._rawExtent,u=Object(s.H)(o,(function(t){return t.property})),c=0;c<a;c++){var h=o[c];l[c]||(l[c]=[1/0,-1/0]),fc(r,c,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,l);else for(var d=[],p=t;p<e;p++){d=n.getItem(p,d);for(var f=0;f<a;f++){var g=r[f],m=this._dimValueGetter(d,u[f],p,f);g[p]=m;var y=l[f];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;r=0;for(var o=n.length;r<o;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var r=this.get(t,i);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var i=e.sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],r=[];if(!n)return r;null==i&&(i=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-n[this.getRawIndex(l)],h=Math.abs(c);h<=i&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;r<n;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{t=new(i=pc(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=new(pc(i._rawCount))(n),o=[],a=t.length,s=0,l=t[0],u=i._chunks,c=0;c<n;c++){var h=void 0,d=i.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][d],c)}else{for(var p=0;p<a;p++)o[p]=u[t[p]][d];o[p]=c,h=e.apply(null,o)}h&&(r[s++]=d)}return s<n&&(i._indices=r),i._count=s,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=Object(s.F)(t),r=n.length;if(!r)return this;var o=e.count(),a=new(pc(e._rawCount))(o),l=0,u=n[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var f=0;if(1===r){for(var g=d[n[0]],m=0;m<i;m++){((x=g[m])>=c&&x<=h||isNaN(x))&&(a[l++]=f),f++}p=!0}else if(2===r){g=d[n[0]];var y=d[n[1]],v=t[n[1]][0],b=t[n[1]][1];for(m=0;m<i;m++){var x=g[m],_=y[m];(x>=c&&x<=h||isNaN(x))&&(_>=v&&_<=b||isNaN(_))&&(a[l++]=f),f++}p=!0}}if(!p)if(1===r)for(m=0;m<o;m++){var w=e.getRawIndex(m);((x=d[n[0]][w])>=c&&x<=h||isNaN(x))&&(a[l++]=w)}else for(m=0;m<o;m++){for(var S=!0,C=(w=e.getRawIndex(m),0);C<r;C++){var M=n[C];((x=d[M][w])<t[M][0]||x>t[M][1])&&(S=!1)}S&&(a[l++]=e.getRawIndex(m))}return l<o&&(e._indices=a),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=n[e[d]][h];s[o]=c;var p=i&&i.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var f=e[u],g=p[u],m=l[f],y=n[f];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(pc(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[M=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var b=d,x=Math.min(d+u,s),_=d-1,w=a[c];i=-1,r=b;var S=-1,C=0;for(y=b;y<x;y++){var M;v=a[M=this.getRawIndex(y)];isNaN(v)?(C++,S<0&&(S=M)):(n=Math.abs((_-g)*(v-w)-(_-y)*(m-w)))>i&&(i=n,r=M)}C>0&&C<x-b&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,r=Math.floor(1/e),o=n[t],a=this.count(),s=new(pc(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,p=o[this.getRawIndex(d)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<h&&(h=m,c=u+g),m>p&&(p=m,d=u+g)}var y=this.getRawIndex(c),v=this.getRawIndex(d);c<d?(s[l++]=y,s[l++]=v):(s[l++]=v,s[l++]=y)}return i._count=l,i._indices=s,i._updateGetRawIdx(),i},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(pc(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=i(a),y=this.getRawIndex(Math.min(p+n(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=y}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=[1/0,-1/0];if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();for(var o=(n=i)[0],a=n[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return n=[o,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n,r,o=new t,a=this._chunks,l=e&&Object(s.N)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var u=0;u<a.length;u++)o._chunks[u]=l[u]?(n=a[u],r=void 0,(r=n.constructor)===Array?n.slice():new r(n)):a[u];else o._chunks=a;return this._copyCommonProps(o),i||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(s.d)(this._extent),t._rawExtent=Object(s.d)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return Wu(t[n],this._dimensions[n])}sc={arrayRows:t,objectRows:function(t,e,i,n){return Wu(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return Wu(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),mc=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(vc(i)){var o=i,a=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),a=(u=c.getSource()).data,l=u.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),l=Object(s.E)(a)?"typedArray":"original",e=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Object(s.P)(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(s.P)(h.sourceHeader,d.sourceHeader),g=Object(s.P)(h.dimensions,d.dimensions);t=p!==d.seriesLayoutBy||!!f!=!!d.sourceHeader||g?[_u(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var m=i;if(r){var y=this._applyTransform(n);t=y.sourceList,e=y.upstreamSignList}else{t=[_u(m.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),r=i.get("fromTransformResult",!0);if(null!=r){1!==t.length&&bc("")}var o,a=[],l=[];return Object(s.k)(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||bc(""),a.push(e),l.push(t._getVersionSign())})),n?e=function(t,e,i){var n=Ki(t),r=n.length;r||Nl("");for(var o=0,a=r;o<a;o++){e=oc(n[o],e,i,1===r?null:o),o!==a-1&&(e.length=Math.max(e.length,1))}return e}(n,a,{datasetIndex:i.componentIndex}):null!=r&&(e=[(o=a[0],new bu({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Object(s.d)(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];vc(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new gc).initData(new Ou(e,t.length),t),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(vc(t)){var e=wl(t);return e?[e.getSourceManager()]:[]}return Object(s.H)(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?mn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},fn).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(vc(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}();function yc(t){t.option.transform&&Object(s.R)(t.option.transform)}function vc(t){return"series"===t.mainType}function bc(t){throw new Error(t)}function xc(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+z(e+"")+"px"}function _c(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+z(n+"")+"px;color:"+z(i)+";font-weight:"+z(r+""),valueStyle:"font-size:"+z(a+"")+"px;color:"+z(o)+";font-weight:"+z(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var wc=[0,10,20,30],Sc=["","\n","\n\n","\n\n\n"];function Cc(t,e){return e.type=t,e}function Mc(t){return"section"===t.type}function kc(t){return Mc(t)?Oc:Ac}function Oc(t,e,i,n){var r,o=e.noHeader,a=(r=function t(e){if(Mc(e)){var i=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(s.k)(e.blocks,(function(e){var n=t(e);n>=i&&(i=n+ +(r&&(!n||Mc(e)&&!e.noHeader)))})),i}return 0}(e),{html:wc[r],richText:Sc[r]}),l=[],u=e.blocks||[];Object(s.b)(!u||Object(s.t)(u)),u=u||[];var c=t.orderMode;if(e.sortBlocks&&c){u=u.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Object(s.q)(h,c)){var d=new Zu(h[c],null);u.sort((function(t,e){return d.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===c&&u.reverse()}Object(s.k)(u,(function(i,r){var o=e.valueFormatter,u=kc(i)(o?Object(s.m)(Object(s.m)({},t),{valueFormatter:o}):t,i,r>0?a.html:0,n);null!=u&&l.push(u)}));var p="richText"===t.renderMode?l.join(a.richText):Tc(n,l.join(""),o?i:a.html);if(o)return p;var f=Us(e.header,"ordinal",t.useUTC),g=_c(n,t.renderMode).nameStyle,m=xc(n);return"richText"===t.renderMode?Dc(t,f,g)+a.richText+p:Tc(n,'<div style="'+g+";"+m+';">'+z(f)+"</div>"+p,i)}function Ac(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,l=!e.markerType,u=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(s.t)(t)?t:[t],Object(s.H)(t,(function(t,e){return Us(t,Object(s.t)(f)?f[e]:f,c)}))};if(!o||!a){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Us(u,"ordinal",c),f=e.valueType,g=a?[]:h(e.value,e.dataIndex),m=!l||!o,y=!l&&o,v=_c(n,r),b=v.nameStyle,x=v.valueStyle;return"richText"===r?(l?"":d)+(o?"":Dc(t,p,b))+(a?"":function(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(s.t)(e)?e.join(" "):e,o)}(t,g,m,y,x)):Tc(n,(l?"":d)+(o?"":function(t,e,i){return'<span style="'+i+";"+(e?"margin-left:2px":"")+'">'+z(t)+"</span>"}(p,!l,b))+(a?"":function(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(s.t)(t)?t:[t],'<span style="'+o+";"+n+'">'+Object(s.H)(t,(function(t){return z(t)})).join("&nbsp;&nbsp;")+"</span>"}(g,m,y,x)),i)}}function Ic(t,e,i,n,r,o){if(t)return kc(t)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Tc(t,e,i){return'<div style="'+("margin: "+i+"px 0 0")+";"+xc(t)+';">'+e+'<div style="clear:both"></div></div>'}function Dc(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Lc(t,e){return Zs(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Pc(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var jc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=qi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=function(t,e){var i=s.C(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";return n?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+z(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+z(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}({color:e,type:t,renderMode:i,markerId:n});return Object(s.C)(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};Object(s.t)(e)?Object(s.k)(e,(function(t){return Object(s.m)(i,t)})):Object(s.m)(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}();function Nc(t){var e,i,n,r,o=t.series,a=t.dataIndex,l=t.multipleSeries,u=o.getData(),c=u.mapDimensionsAll("defaultedTooltip"),h=c.length,d=o.getRawValue(a),p=Object(s.t)(d),f=Lc(o,a);if(h>1||p&&!h){var g=function(t,e,i,n,r){var o=e.getData(),a=Object(s.N)(t,(function(t,e,i){var n=o.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),l=[],u=[],c=[];function h(t,e){var i=o.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(a?c.push(Cc("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}return n.length?Object(s.k)(n,(function(t){h(zu(o,i,t),t)})):Object(s.k)(t,h),{inlineValues:l,inlineValueTypes:u,blocks:c}}(d,o,a,c,f);e=g.inlineValues,i=g.inlineValueTypes,n=g.blocks,r=g.inlineValues[0]}else if(h){var m=u.getDimensionInfo(c[0]);r=e=zu(u,a,c[0]),i=m.type}else r=e=p?d[0]:d;var y=sn(o),v=y&&o.name||"",b=u.getName(a),x=l?v:b;return Cc("section",{header:v,noHeader:l||!y,sortParam:r,blocks:[Cc("nameValue",{markerType:"item",markerColor:f,name:x,noName:!Object(s.T)(x),value:e,valueType:i,dataIndex:a})].concat(n||[])})}var Ec=cn();function Rc(t,e){return t.getName(e)||t.getId(e)}var zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var i;return o(e,t),e.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Hu({count:Vc,reset:Fc}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(Ec(this).sourceManager=new mc(this)).prepareSource();var n=this.getInitialData(t,i);$c(n,this),this.dataTask.context.data=n,Ec(this).dataBeforeProcessed=n,Bc(this),this._initSelectedMapFromData(n)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=ol(this),n=i?sl(t):{},r=this.subType;hl.hasClass(r)&&(r+="Series"),s.I(t,e.getTheme().get(this.subType)),s.I(t,this.getDefaultOption()),Qi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&al(t,n,i)},e.prototype.mergeOption=function(t,e){t=s.I(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ol(this);i&&al(this.option,t,i);var n=Ec(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);$c(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Ec(this).dataBeforeProcessed=r,Bc(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!s.E(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Qi(t[i],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Wc(this);if(e){var i=e.context.data;return null!=t&&i.getLinkedData?i.getLinkedData(t):i}return Ec(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Wc(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}Ec(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return s.f(t)},e.prototype.getSourceManager=function(){return Ec(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ec(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,i){return Nc({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(a.a.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=Al.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Rc(r,t[o]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=s.F(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},e.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[Rc(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){s.A(r.selectedMap)||(r.selectedMap={});for(var l=r.selectedMap,u=0;u<a;u++){var c=e[u];l[d=Rc(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===o||!0===o){var h=e[a-1],d=Rc(t,h);r.selectedMap=((i={})[d]=!0,i),this._selectedDataIndicesMap=((n={})[d]=t.getRawIndex(h),n)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return hl.registerClass(t)},e.protoInitialize=((i=e.prototype).type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",void(i.visualDrawType="fill")),e}(hl);function Bc(t){var e=t.name;sn(t)||(t.name=function(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return s.k(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}(t)||e)}function Vc(t){return t.model.getRawData().count()}function Fc(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hc}function Hc(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function $c(t,e){s.k(s.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(i){t.wrapMethod(i,s.h(Gc,e))}))}function Gc(t,e){var i=Wc(t);return i&&i.setOutputEnd((e||this).count()),e}function Wc(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}s.K(zc,Vu),s.K(zc,Al),Sn(zc,hl);var Uc=zc,Yc=function(){function t(){this.group=new Ci,this.uid=ps("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){},t.prototype.updateLayout=function(t,e,i,n){},t.prototype.updateVisual=function(t,e,i,n){},t.prototype.toggleBlurSeries=function(t,e,i){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();wn(Yc),On(Yc);var qc=Yc;function Xc(){var t=cn();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Zc=Er.CMD,Kc=[[],[],[]],Qc=Math.sqrt,Jc=Math.atan2;function th(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),c=Zc.M,h=Zc.C,d=Zc.L,p=Zc.R,f=Zc.A,g=Zc.Q;for(r=0,o=0;r<u;){switch(i=l[r++],o=r,n=0,i){case c:case d:n=1;break;case h:n=3;break;case g:n=2;break;case f:var m=e[4],y=e[5],v=Qc(e[0]*e[0]+e[1]*e[1]),b=Qc(e[2]*e[2]+e[3]*e[3]),x=Jc(-e[1]/b,e[0]/v);l[r]*=v,l[r++]+=m,l[r]*=b,l[r++]+=y,l[r++]*=v,l[r++]*=b,l[r++]+=x,l[r++]+=x,o=r+=2;break;case p:s[0]=l[r++],s[1]=l[r++],C(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],C(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<n;a++){var _=Kc[a];_[0]=l[r++],_[1]=l[r++],C(_,_,e),l[o++]=_[0],l[o++]=_[1]}}t.increaseVersion()}}var eh=Math.sqrt,ih=Math.sin,nh=Math.cos,rh=Math.PI;function oh(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ah(t,e){return(t[0]*e[0]+t[1]*e[1])/(oh(t)*oh(e))}function sh(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ah(t,e))}function lh(t,e,i,n,r,o,a,s,l,u,c){var h=l*(rh/180),d=nh(h)*(t-i)/2+ih(h)*(e-n)/2,p=-1*ih(h)*(t-i)/2+nh(h)*(e-n)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=eh(f),s*=eh(f));var g=(r===o?-1:1)*eh((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=g*-s*d/a,v=(t+i)/2+nh(h)*m-ih(h)*y,b=(e+n)/2+ih(h)*m+nh(h)*y,x=sh([1,0],[(d-m)/a,(p-y)/s]),_=[(d-m)/a,(p-y)/s],w=[(-1*d-m)/a,(-1*p-y)/s],S=sh(_,w);if(ah(_,w)<=-1&&(S=rh),ah(_,w)>=1&&(S=0),S<0){var C=Math.round(S/rh*1e6)/1e6;S=2*rh+C%2*rh}c.addData(u,v,b,a,s,x,S,h,o)}var uh=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ch=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.applyTransform=function(t){},e}(io);function dh(t){return null!=t.setData}function ph(t,e){var i=function(t){var e=new Er;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=Er.CMD,l=t.match(uh);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(ch)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,C=n,M=r,k=void 0,O=void 0;switch(h){case"l":n+=p[m++],r+=p[m++],d=s.L,e.addData(d,n,r);break;case"L":n=p[m++],r=p[m++],d=s.L,e.addData(d,n,r);break;case"m":n+=p[m++],r+=p[m++],d=s.M,e.addData(d,n,r),o=n,a=r,h="l";break;case"M":n=p[m++],r=p[m++],d=s.M,e.addData(d,n,r),o=n,a=r,h="L";break;case"h":n+=p[m++],d=s.L,e.addData(d,n,r);break;case"H":n=p[m++],d=s.L,e.addData(d,n,r);break;case"v":r+=p[m++],d=s.L,e.addData(d,n,r);break;case"V":r=p[m++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),n=p[m-2],r=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r),n+=p[m-2],r+=p[m-1];break;case"S":y=n,v=r,k=e.len(),O=e.data,i===s.C&&(y+=n-O[k-4],v+=r-O[k-3]),d=s.C,C=p[m++],M=p[m++],n=p[m++],r=p[m++],e.addData(d,y,v,C,M,n,r);break;case"s":y=n,v=r,k=e.len(),O=e.data,i===s.C&&(y+=n-O[k-4],v+=r-O[k-3]),d=s.C,C=n+p[m++],M=r+p[m++],n+=p[m++],r+=p[m++],e.addData(d,y,v,C,M,n,r);break;case"Q":C=p[m++],M=p[m++],n=p[m++],r=p[m++],d=s.Q,e.addData(d,C,M,n,r);break;case"q":C=p[m++]+n,M=p[m++]+r,n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,C,M,n,r);break;case"T":y=n,v=r,k=e.len(),O=e.data,i===s.Q&&(y+=n-O[k-4],v+=r-O[k-3]),n=p[m++],r=p[m++],d=s.Q,e.addData(d,y,v,n,r);break;case"t":y=n,v=r,k=e.len(),O=e.data,i===s.Q&&(y+=n-O[k-4],v+=r-O[k-3]),n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,y,v,n,r);break;case"A":b=p[m++],x=p[m++],_=p[m++],w=p[m++],S=p[m++],lh(C=n,M=r,n=p[m++],r=p[m++],w,S,b,x,_,d=s.A,e);break;case"a":b=p[m++],x=p[m++],_=p[m++],w=p[m++],S=p[m++],lh(C=n,M=r,n+=p[m++],r+=p[m++],w,S,b,x,_,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),n=o,r=a),i=d}return e.toStatic(),e}(t),n=Object(s.m)({},e);return n.buildPath=function(t){if(dh(t)){t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){th(i,t),this.dirtyShape()},n}function fh(t,e){return new hh(ph(t,e))}function gh(t,e){e=e||{};var i=new io;return t.shape&&i.setShape(t.shape),i.setStyle(t.style),e.bakeTransform?th(i.path,t.getComputedTransform()):e.toLocal?i.setLocalTransform(t.getComputedTransform()):i.copyTransform(t),i.buildPath=t.buildPath,i.applyTransform=i.applyTransform,i.z=t.z,i.z2=t.z2,i.zlevel=t.zlevel,i}var mh=function(){this.cx=0,this.cy=0,this.r=0},yh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new mh},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(io);yh.prototype.type="circle";var vh=yh,bh=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},xh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new bh},e.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},e}(io);xh.prototype.type="ellipse";var _h=xh,wh=Math.PI,Sh=2*wh,Ch=Math.sin,Mh=Math.cos,kh=Math.acos,Oh=Math.atan2,Ah=Math.abs,Ih=Math.sqrt,Th=Math.max,Dh=Math.min;function Lh(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/Ih(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=i+c,g=n+h,m=(d+f)/2,y=(p+g)/2,v=f-d,b=g-p,x=v*v+b*b,_=r-o,w=d*g-f*p,S=(b<0?-1:1)*Ih(Th(0,_*_*x-w*w)),C=(w*b-v*S)/x,M=(-w*v-b*S)/x,k=(w*b+v*S)/x,O=(-w*v+b*S)/x,A=C-m,I=M-y,T=k-m,D=O-y;return A*A+I*I>T*T+D*D&&(C=k,M=O),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/_-1),y1:M*(r/_-1)}}function Ph(t,e){var i,n=Th(e.r,0),r=Th(e.r0||0,0),o=n>0;if(o||r>0){if(o||(n=r,r=0),r>n){var a=n;n=r,r=a}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,p=Ah(u-l),f=p>Sh&&p%Sh;if(f>1e-4&&(p=f),n>1e-4)if(p>Sh-1e-4)t.moveTo(c+n*Mh(l),h+n*Ch(l)),t.arc(c,h,n,l,u,!d),r>1e-4&&(t.moveTo(c+r*Mh(u),h+r*Ch(u)),t.arc(c,h,r,u,l,d));else{var g=void 0,m=void 0,y=void 0,v=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,C=void 0,M=void 0,k=void 0,O=void 0,A=void 0,I=void 0,T=void 0,D=n*Mh(l),L=n*Ch(l),P=r*Mh(u),j=r*Ch(u),N=p>1e-4;if(N){var E=e.cornerRadius;E&&(g=(i=function(t){var e;if(Object(s.t)(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E))[0],m=i[1],y=i[2],v=i[3]);var R=Ah(n-r)/2;if(b=Dh(R,y),x=Dh(R,v),_=Dh(R,g),w=Dh(R,m),M=S=Th(b,x),k=C=Th(_,w),(S>1e-4||C>1e-4)&&(O=n*Mh(u),A=n*Ch(u),I=r*Mh(l),T=r*Ch(l),p<wh)){var z=function(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<1e-4))return[t+(d=(c*(e-o)-h*(t-r))/d)*l,e+d*u]}(D,L,I,T,O,A,P,j);if(z){var B=D-z[0],V=L-z[1],F=O-z[0],H=A-z[1],$=1/Ch(kh((B*F+V*H)/(Ih(B*B+V*V)*Ih(F*F+H*H)))/2),G=Ih(z[0]*z[0]+z[1]*z[1]);M=Dh(S,(n-G)/($+1)),k=Dh(C,(r-G)/($-1))}}}if(N)if(M>1e-4){var W=Dh(y,M),U=Dh(v,M),Y=Lh(I,T,D,L,n,W,d),q=Lh(O,A,P,j,n,U,d);t.moveTo(c+Y.cx+Y.x0,h+Y.cy+Y.y0),M<S&&W===U?t.arc(c+Y.cx,h+Y.cy,M,Oh(Y.y0,Y.x0),Oh(q.y0,q.x0),!d):(W>0&&t.arc(c+Y.cx,h+Y.cy,W,Oh(Y.y0,Y.x0),Oh(Y.y1,Y.x1),!d),t.arc(c,h,n,Oh(Y.cy+Y.y1,Y.cx+Y.x1),Oh(q.cy+q.y1,q.cx+q.x1),!d),U>0&&t.arc(c+q.cx,h+q.cy,U,Oh(q.y1,q.x1),Oh(q.y0,q.x0),!d))}else t.moveTo(c+D,h+L),t.arc(c,h,n,l,u,!d);else t.moveTo(c+D,h+L);if(r>1e-4&&N)if(k>1e-4){W=Dh(g,k),Y=Lh(P,j,O,A,r,-(U=Dh(m,k)),d),q=Lh(D,L,I,T,r,-W,d);t.lineTo(c+Y.cx+Y.x0,h+Y.cy+Y.y0),k<C&&W===U?t.arc(c+Y.cx,h+Y.cy,k,Oh(Y.y0,Y.x0),Oh(q.y0,q.x0),!d):(U>0&&t.arc(c+Y.cx,h+Y.cy,U,Oh(Y.y0,Y.x0),Oh(Y.y1,Y.x1),!d),t.arc(c,h,r,Oh(Y.cy+Y.y1,Y.cx+Y.x1),Oh(q.cy+q.y1,q.cx+q.x1),d),W>0&&t.arc(c+q.cx,h+q.cy,W,Oh(q.y1,q.x1),Oh(q.y0,q.x0),!d))}else t.lineTo(c+P,h+j),t.arc(c,h,r,u,l,d);else t.lineTo(c+P,h+j)}else t.moveTo(c,h);t.closePath()}}}var jh=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Nh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new jh},e.prototype.buildPath=function(t,e){Ph(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(io);Nh.prototype.type="sector";var Eh=Nh,Rh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},zh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new Rh},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(io);zh.prototype.type="ring";var Bh=zh;function Vh(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=function(t,e,i,n){var r,o,a,s,l=[],u=[],c=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,m=t.length;f<m;f++)M(a,a,t[f]),k(s,s,t[f]);M(a,a,n[0]),k(s,s,n[1])}for(f=0,m=t.length;f<m;f++){var y=t[f];if(i)r=t[f?f-1:m-1],o=t[(f+1)%m];else{if(0===f||f===m-1){l.push(d(t[f]));continue}r=t[f-1],o=t[f+1]}g(u,o,r),v(u,u,e);var b=x(y,r),_=x(y,o),w=b+_;0!==w&&(b/=w,_/=w),v(c,u,-b),v(h,u,_);var S=p([],y,c),C=p([],y,h);n&&(k(S,S,a),M(S,S,s),k(C,C,a),M(C,C,s)),l.push(S),l.push(C)}return i&&l.push(l.shift()),l}(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}var Fh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Hh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultShape=function(){return new Fh},e.prototype.buildPath=function(t,e){Vh(t,e,!0)},e}(io);Hh.prototype.type="polygon";var $h=Hh,Gh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Wh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Gh},e.prototype.buildPath=function(t,e){Vh(t,e,!1)},e}(io);Wh.prototype.type="polyline";var Uh=Wh,Yh={},qh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Xh=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qh},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=ho(Yh,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),s<1&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(io);Xh.prototype.type="line";var Zh=Xh,Kh=[],Qh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Jh(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?Yt:Ut)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Yt:Ut)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?te:Jt)(t.x1,t.cpx1,t.x2,e),(i?te:Jt)(t.y1,t.cpy1,t.y2,e)]}var td=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Qh},e.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(i,n),null==l||null==u?(c<1&&(ie(i,a,r,c,Kh),a=Kh[1],r=Kh[2],ie(n,s,o,c,Kh),s=Kh[1],o=Kh[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Zt(i,a,l,r,c,Kh),a=Kh[1],l=Kh[2],r=Kh[3],Zt(n,s,u,o,c,Kh),s=Kh[1],u=Kh[2],o=Kh[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Jh(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Jh(this.shape,t,!0);return b(e,e)},e}(io);td.prototype.type="bezier-curve";var ed=td,id=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},nd=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new id},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)},e}(io);nd.prototype.type="arc";var rd=nd,od=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return u(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),io.prototype.getBoundingRect.call(this)},e}(io),ad=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),sd=function(t){function e(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return u(e,t),e}(ad),ld=function(t){function e(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return u(e,t),e}(ad),ud=[0,0],cd=[0,0],hd=new ot,dd=new ot,pd=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ot;for(i=0;i<2;i++)this._axes[i]=new ot;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;l<4;l++)i[l].transform(e);ot.sub(n[0],i[1],i[0]),ot.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return hd.set(1/0,1/0),dd.set(0,0),!this._intersectCheckOneSide(this,t,hd,dd,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,hd,dd,n,-1)&&(i=!1,n)||n||ot.copy(e,i?hd:dd),i},t.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,ud),this._getProjMinMaxOnAxis(s,e._corners,cd),ud[1]<cd[0]||ud[0]>cd[1]){if(a=!1,r)return a;var u=Math.abs(cd[0]-ud[1]),c=Math.abs(ud[0]-cd[1]);Math.min(u,c)>n.len()&&(u<c?ot.scale(n,l,-u*o):ot.scale(n,l,c*o))}else if(i){u=Math.abs(cd[0]-ud[1]),c=Math.abs(ud[0]-cd[1]);Math.min(u,c)<i.len()&&(u<c?ot.scale(i,l,u*o):ot.scale(i,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),fd=[],gd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return u(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ft(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(fd)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){if(this._displayables[n].contain(t,e))return!0}return!1},e}(ir),md=Math.max,yd=Math.min,vd={};function bd(t){return io.extend(t)}var xd=function(t,e){var i=ph(t,e);return function(t){function e(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return u(e,t),e}(hh)};function _d(t,e){return xd(t,e)}function wd(t,e){vd[t]=e}function Sd(t){if(vd.hasOwnProperty(t))return vd[t]}function Cd(t,e,i,n){var r=fh(t,e);return i&&("center"===n&&(i=kd(i,r.getBoundingRect())),Ad(r,i)),r}function Md(t,e,i){var n=new uo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(kd(e,r))}}});return n}function kd(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}var Od=function(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new io(e);return a.createPathProxy(),a.buildPath=function(t){if(dh(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Ad(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function Id(t,e){return ho(t,t,{lineWidth:e}),t}function Td(t){return po(t.shape,t.shape,t.style),t}var Dd=fo;function Ld(t,e){for(var i=Q([]);t&&t!==e;)tt(i,t.getLocalTransform(),i),t=t.parent;return i}function Pd(t,e,i){return e&&!Object(s.u)(e)&&(e=ii.getLocalTransform(e)),i&&(e=rt([],e)),C([],t,e)}function jd(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=Pd(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Nd(t){return!t.isGroup}function Ed(t,e,i){if(t&&e){var n,r=(n={},t.traverse((function(t){Nd(t)&&t.anid&&(n[t.anid]=t)})),n);e.traverse((function(t){if(Nd(t)&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),Ta(t,n,i,No(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(s.m)({},t.shape)),e}}function Rd(t,e){return Object(s.H)(t,(function(t){var i=t[0];i=md(i,e.x),i=yd(i,e.x+e.width);var n=t[1];return n=md(n,e.y),[i,n=yd(n,e.y+e.height)]}))}function zd(t,e){var i=md(t.x,e.x),n=yd(t.x+t.width,e.x+e.width),r=md(t.y,e.y),o=yd(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function Bd(t,e,i){var n=Object(s.m)({rectHover:!0},e),r=n.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(s.i)(r,i),new uo(n)):Cd(t.replace("path://",""),n,i,"center")}function Vd(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Fd(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function Fd(t,e,i,n,r,o,a,s){var l,u=i-t,c=n-e,h=a-r,d=s-o,p=Hd(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=Hd(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Hd(f,g,h,d)/p;return!(y<0||y>1)}function Hd(t,e,i,n){return t*n-i*e}function $d(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=Object(s.C)(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,l={componentType:o,name:n,$vars:["name"]};l[o+"Index"]=a;var u=t.formatterParamsExtra;u&&Object(s.k)(Object(s.F)(u),(function(t){Object(s.q)(l,t)||(l[t]=u[t],l.$vars.push(t))}));var c=No(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:n,option:Object(s.i)({content:n,encodeHTMLContent:!0,formatterParams:l},r)}}function Gd(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function Wd(t,e){if(t)if(Object(s.t)(t))for(var i=0;i<t.length;i++)Gd(t[i],e);else Gd(t,e)}wd("circle",vh),wd("ellipse",_h),wd("sector",Eh),wd("ring",Bh),wd("polygon",$h),wd("polyline",Uh),wd("rect",vo),wd("line",Zh),wd("bezierCurve",ed),wd("arc",rd);var Ud=cn(),Yd=Xc(),qd=function(){function t(){this.group=new Ci,this.uid=ps("viewChart"),this.renderTask=Hu({plan:Kd,reset:Qd}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){0},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Zd(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&Zd(r,n,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){Wd(this.group,t)},t.markUpdateMethod=function(t,e){Ud(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Xd(t,e,i){t&&Ca(t)&&("emphasis"===e?ra:oa)(t,i)}function Zd(t,e,i){var n=un(t,e),r=e&&null!=e.highlightKey?function(t){var e=zo[t];return null==e&&Ro<=32&&(e=zo[t]=Ro++),e}(e.highlightKey):null;null!=n?Object(s.k)(Ki(n),(function(e){Xd(t.getItemGraphicEl(e),i,r)})):t.eachItemGraphicEl((function(t){Xd(t,i,r)}))}function Kd(t){return Yd(t.model)}function Qd(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Ud(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),Jd[l]}wn(qd),On(qd);var Jd={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},tp=qd,ep="\0__throttleOriginMethod",ip="\0__throttleRate";function np(t,e,i){var n,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];n=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||i;s=null,r=n-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function rp(t,e,i,n){var r=t[e];if(r){var o=r[ep]||r,a=r["\0__throttleType"];if(r[ip]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=np(o,i,"debounce"===n))[ep]=o,r["\0__throttleType"]=n,r[ip]=i}return r}}function op(t,e){var i=t[e];i&&i[ep]&&(i.clear&&i.clear(),t[e]=i[ep])}var ap=cn(),sp={itemStyle:An(ss,!0),lineStyle:An(rs,!0)},lp={lineStyle:"stroke",itemStyle:"fill"};function up(t,e){var i=t.visualStyleMapper||sp[e];return i||sp.itemStyle}function cp(t,e){var i=t.visualDrawType||lp[e];return i||"fill"}var hp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=up(t,n)(r),a=r.getShallow("decal");a&&(i.setVisual("decal",a),a.dirty=!0);var l=cp(t,n),u=o[l],c=Object(s.w)(u)?u:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,i.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(s.w)(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||Object(s.w)(o.stroke)?d:o.stroke}if(i.setVisual("style",o),i.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=Object(s.m)({},o);r[l]=c(n),e.setItemVisual(i,"style",r)}}}},dp=new hs,pp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=up(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){dp.option=i[n];var a=r(dp),l=t.ensureUniqueItemVisual(e,"style");Object(s.m)(l,a),dp.option.decal&&(t.setItemVisual(e,"decal",dp.option.decal),dp.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},fp={performRawSeries:!0,overallReset:function(t){var e=Object(s.f)();t.eachSeries((function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),ap(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=ap(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=cp(e,a);r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(t){var a=n[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",c=i.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},gp=Math.PI;var mp=function(){function t(t,e,i,n){this._stageTaskMap=Object(s.f)(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,o=n&&n.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),r=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Object(s.f)();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;Object(s.k)(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,{});Object(s.b)(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)}),this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){n=n||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(s.k)(t,(function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(n,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,i);var p=o.getPerformArgs(c,n.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(n,s)&&s.dirty();var u=o.getPerformArgs(s,n.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,i),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,i,n){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(s.f)(),l=t.seriesType,u=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Hu({plan:_p,reset:wp,count:Mp}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,n).each(c)},t.prototype._createOverallStageTask=function(t,e,i,n){var r=this,o=e.overallTask=e.overallTask||Hu({reset:yp});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=Object(s.f)(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1;function p(t){var e=t.uid,i=l.set(e,a&&a.get(e)||(d=!0,Hu({reset:vp,onDirty:xp})));i.context={model:t,overallProgress:h},i.agent=o,i.__block=h,r._pipe(t,i)}Object(s.b)(!t.createOnAllSeries,""),u?i.eachRawSeriesByType(u,p):c?c(i,n).each(p):(h=!1,Object(s.k)(i.getSeries(),p)),d&&o.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return Object(s.w)(t)&&(t={overallReset:t,seriesType:kp(t)}),t.uid=ps("stageHandler"),e&&(t.visualType=e),t},t}();function yp(t){t.overallReset(t.ecModel,t.api,t.payload)}function vp(t){return t.overallProgress&&bp}function bp(){this.agent.dirty(),this.getDownstream().dirty()}function xp(){this.agent&&this.agent.dirty()}function _p(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wp(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ki(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(s.H)(e,(function(t,e){return Cp(e)})):Sp}var Sp=Cp(0);function Cp(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Mp(t){return t.data.count()}function kp(t){Op=null;try{t(Ap,Ip)}catch(t){}return Op}var Op,Ap={},Ip={};function Tp(t,e){for(var i in e.prototype)t[i]=s.L}Tp(Ap,Vl),Tp(Ip,Hl),Ap.eachSeriesByType=Ap.eachRawSeriesByType=function(t){Op=t},Ap.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Op=t.subType)};var Dp=mp,Lp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Pp={color:Lp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Lp]},jp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Np={darkMode:!0,color:jp,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"},pageTextStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:jp},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Np.categoryAxis.splitLine.show=!1;var Ep=Np,Rp=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(s.C(t)){var r=_n(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};s.k(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,r=i.packedEvent,o=i.model,a=i.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,r));function u(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zp=["symbol","symbolSize","symbolRotate","symbolOffset"],Bp=zp.concat(["symbolKeepAspect"]),Vp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},r={},o=!1,a=0;a<zp.length;a++){var l=zp[a],u=t.get(l);Object(s.w)(u)?(o=!0,r[l]=u):n[l]=u}if(n.symbol=n.symbol||t.defaultSymbol,i.setVisual(Object(s.m)({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var c=Object(s.F)(r);return{dataEach:o?function(e,i){for(var n=t.getRawValue(i),o=t.getDataParams(i),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(i,s,r[s](n,o))}}:null}}}}},Fp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<Bp.length;n++){var r=Bp[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Hp(t,e,i){switch(i){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i);default:0}}function $p(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function Gp(t,e,i,n){switch(i){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,i,n);break;default:0}}function Wp(t,e){function i(e,i){var n=[];return e.eachComponent({mainType:"series",subType:t,query:i},(function(t){n.push(t.seriesIndex)})),n}Object(s.k)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,n,r){e=Object(s.m)({},e),r.dispatchAction(Object(s.m)(e,{type:t[1],seriesIndex:i(n,e)}))}))}))}function Up(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,l=0;l<a.length;l++)if(a[l].seriesIndex===e){var u=t.getData(),c=un(u,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:Object(s.t)(c)?u.getName(c[0]):u.getName(c),selected:Object(s.C)(n)?n:Object(s.m)({},n)})}}))}function Yp(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}var qp=Math.round(9*Math.random()),Xp="function"==typeof Object.defineProperty,Zp=function(){function t(){this._id="__ec_inner_"+qp++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return Xp?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Kp=io.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),Qp=io.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),Jp=io.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(i-c,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-c+h*p,l+s+d*p,i-c,l+s),t.closePath()}}),tf=io.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),ef={line:Zh,rect:vo,roundRect:vo,square:vo,circle:vh,diamond:Qp,pin:Jp,arrow:tf,triangle:Kp},nf={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},rf={};Object(s.k)(ef,(function(t,e){rf[e]=new t}));var of=io.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=pi(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=rf[n];r||(r=rf[n="rect"]),nf[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function af(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function sf(t,e,i,n,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Md(t.slice(8),new ft(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?Cd(t.slice(7),{},new ft(e,i,n,r),a?"center":"cover"):new of({shape:{symbolType:t,x:e,y:i,width:n,height:r}})).__isEmptyBrush=l,s.setColor=af,o&&s.setColor(o),s}function lf(t){return Object(s.t)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function uf(t,e){if(null!=t)return Object(s.t)(t)||(t=[t,t]),[Di(t[0],e[0])||0,Di(Object(s.P)(t[1],t[0]),e[1])||0]}function cf(t){return isFinite(t)}function hf(t,e,i){for(var n="radial"===e.type?function(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=cf(a)?a:.5,s=cf(s)?s:.5,l=l>=0&&cf(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,i):function(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=cf(n)?n:0,r=cf(r)?r:1,o=cf(o)?o:0,a=cf(a)?a:0,t.createLinearGradient(n,o,r,a)}(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function df(t){return parseInt(t,10)}function pf(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||df(s[n])||df(t.style[n]))-(df(s[o])||0)-(df(s[a])||0)|0}function ff(t){var e,i,n=t.style,r=n.lineDash&&n.lineWidth>0&&(e=n.lineDash,i=n.lineWidth,e&&"solid"!==e&&i>0?"dashed"===e?[4*i,2*i]:"dotted"===e?[i]:Object(s.z)(e)?[e]:Object(s.t)(e)?e:null:null),o=n.lineDashOffset;if(r){var a=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Object(s.H)(r,(function(t){return t/a})),o/=a)}return[r,o]}var gf=new Er(!0);function mf(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yf(t){return"string"==typeof t&&"none"!==t}function vf(t){var e=t.fill;return null!=e&&"none"!==e}function bf(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function xf(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function _f(t,e,i){var n=Pn(e.image,e.__image,i);if(Nn(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*s.a),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var wf=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sf=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Cf(t,e,i,n,r){var o=!1;if(!n&&e===(i=i||{}))return!1;if(n||e.opacity!==i.opacity){Of(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Xn.opacity:a}(n||e.blend!==i.blend)&&(o||(Of(t,r),o=!0),t.globalCompositeOperation=e.blend||Xn.blend);for(var s=0;s<wf.length;s++){var l=wf[s];(n||e[l]!==i[l])&&(o||(Of(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(Of(t,r),o=!0),t.shadowColor=e.shadowColor||Xn.shadowColor),o}function Mf(t,e,i,n,r){var o=Af(e,r.inHover),a=n?null:i&&Af(i,r.inHover)||{};if(o===a)return!1;var s=Cf(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(Of(t,r),s=!0),yf(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(Of(t,r),s=!0),yf(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(Of(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Of(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<Sf.length;u++){var c=Sf[u],h=c[0];(n||o[h]!==a[h])&&(s||(Of(t,r),s=!0),t[h]=o[h]||c[1])}return s}function kf(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function Of(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Af(t,e){return e&&t.__hoverStyle||t.style}function If(t,e){Tf(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Tf(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}(o,a)||(a&&a.length&&(Of(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(Of(t,i),t.save(),function(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),kf(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var c,h,d=e instanceof io&&e.autoBatch&&function(t){var e=vf(t),i=mf(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Of(t,i),kf(t,e)):d||Of(t,i);var p=Af(e,i.inHover);e instanceof io?(1!==i.lastDrawType&&(l=!0,i.lastDrawType=1),Mf(t,e,u,l,i),d&&(i.batchFill||i.batchStroke)||t.beginPath(),function(t,e,i,n){var r,o=mf(i),a=vf(i),s=i.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||gf,h=e.__dirty;if(!n){var d=i.fill,p=i.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,v=void 0,b=void 0,x=void 0,_=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(v=h?hf(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=v),g&&(b=h?hf(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(x=h||!e.__canvasFillPattern?_f(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(_=h||!e.__canvasStrokePattern?_f(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=v:m&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=b:y&&(_?t.strokeStyle=_:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(S=(r=ff(e))[0],C=r[1]);var k=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),n||(i.strokeFirst?(o&&xf(t,i),a&&bf(t,i)):(a&&bf(t,i),o&&xf(t,i))),S&&t.setLineDash([])}(t,e,p,d),d&&(i.batchFill=p.fill||"",i.batchStroke=p.stroke||"")):e instanceof oo?(3!==i.lastDrawType&&(l=!0,i.lastDrawType=3),Mf(t,e,u,l,i),function(t,e,i){var n,r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||ri.a,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var o=void 0,a=void 0;t.setLineDash&&i.lineDash&&(o=(n=ff(e))[0],a=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),i.strokeFirst?(mf(i)&&t.strokeText(r,i.x,i.y),vf(i)&&t.fillText(r,i.x,i.y)):(vf(i)&&t.fillText(r,i.x,i.y),mf(i)&&t.strokeText(r,i.x,i.y)),o&&t.setLineDash([])}}(t,e,p)):e instanceof uo?(2!==i.lastDrawType&&(l=!0,i.lastDrawType=2),function(t,e,i,n,r){Cf(t,Af(e,r.inHover),i&&Af(i,r.inHover),n,r)}(t,e,u,l,i),function(t,e,i){var n=e.__image=Pn(i.image,e.__image,e,e.onload);if(n&&Nn(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,c=i.sy||0;t.drawImage(n,u,c,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var h=a-(u=i.sx),d=s-(c=i.sy);t.drawImage(n,u,c,h,d,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}(t,e,p)):e.getTemporalDisplayables&&(4!==i.lastDrawType&&(l=!0,i.lastDrawType=4),function(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;o<a;o++){(c=n[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Tf(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Tf(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,i)),d&&n&&Of(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Df=new Zp,Lf=new ni.a(100),Pf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jf(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&Df.delete(t);var o=Df.get(t);if(o)return o;var a=Object(s.i)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var l={repeat:"repeat"};return function(t){for(var e,o=[i],l=!0,u=0;u<Pf.length;++u){var c=a[Pf[u]];if(null!=c&&!Object(s.t)(c)&&!Object(s.C)(c)&&!Object(s.z)(c)&&"boolean"!=typeof c){l=!1;break}o.push(c)}if(l){e=o.join(",")+(r?"-svg":"");var h=Lf.get(e);h&&(r?t.svgElement=h:t.image=h)}var d,p=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(s.z)(e)){return[[o=Math.ceil(e),o]]}for(var i=!0,n=0;n<e.length;++n)if(!Object(s.z)(e[n])){i=!1;break}if(i)return t([e]);var r=[];for(n=0;n<e.length;++n)if(Object(s.z)(e[n])){var o=Math.ceil(e[n]);r.push([o,o])}else{(o=Object(s.H)(e[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(s.z)(t)){var e=Math.ceil(t);return[e,e]}var i=Object(s.H)(t,(function(t){return Math.ceil(t)}));return t.length%2?i.concat(i):i}(a.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(s.C)(e))return[[e]];for(var i=!0,n=0;n<e.length;++n)if(!Object(s.C)(e[n])){i=!1;break}if(i)return t([e]);var r=[];for(n=0;n<e.length;++n)Object(s.C)(e[n])?r.push([e[n]]):r.push(e[n]);return r}(a.symbol),m=(_=p,Object(s.H)(_,(function(t){return Nf(t)}))),y=Nf(f),v=!r&&ri.d.createCanvas(),b=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,i=m.length;e<i;++e)t=Xi(t,m[e]);var n=1;for(e=0,i=g.length;e<i;++e)n=Xi(n,g[e].length);t*=n;var r=y*m.length*g.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var _;v&&(v.width=x.width*i,v.height=x.height*i,d=v.getContext("2d"));(function(){d&&(d.clearRect(0,0,v.width,v.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(t<=0)return;var o=-y,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%g.length,h=0,m=0,_=0;h<2*x.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(m%2==0){var S=.5*(1-a.symbolSize),C=h+p[u][m]*S,M=o+f[s]*S,k=p[u][m]*a.symbolSize,O=f[s]*a.symbolSize,A=_/2%g[c].length;I(C,M,k,O,g[c][A])}h+=p[u][m],++_,++m===p[u].length&&(m=0)}++u===p.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function I(t,e,o,s,l){var u=r?1:i,c=sf(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var h=n.painter.renderOneToVNode(c);h&&b.children.push(h)}else If(d,c)}})(),l&&Lf.put(e,v||b);t.image=v,t.svgElement=b,t.svgWidth=x.width,t.svgHeight=x.height}(l),l.rotation=a.rotation,l.scaleX=l.scaleY=r?1:1/i,Df.set(t,l),t.dirty=!1,l}function Nf(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}var Ef=new I,Rf={};function zf(t){return Rf[t]}var Bf={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vf="__pendingUpdate",Ff=/^[a-zA-Z0-9_]+$/;function Hf(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return Gf(this,t,e);fg(this.id)}}function $f(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return Gf(this,t,e)}}function Gf(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),I.prototype[e].apply(t,i)}var Wf,Uf,Yf,qf,Xf,Zf,Kf,Qf,Jf,tg,eg,ig,ng,rg,og,ag,sg,lg,ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(I),cg=ug.prototype;cg.on=$f("on"),cg.off=$f("off");var hg=function(t){function e(e,i,n){var r=t.call(this,new Rp)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},Object(s.C)(i)&&(i=xg[i]),r._dom=e;n.ssr&&(Oi=function(t){var e=No(t),i=e.dataIndex;if(null!=i){var n=Object(s.f)();return n.set("series_index",e.seriesIndex),n.set("data_index",i),e.ssrType&&n.set("ssr_type",e.ssrType),n}});var o=r._zr=Ii(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Object(s.P)(n.useDirtyRect,!1),useCoarsePointer:Object(s.P)(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});r._ssr=n.ssr,r._throttledZrFlush=np(Object(s.c)(o.flush,o),17),(i=Object(s.d)(i))&&du(i,!0),r._theme=i,r._locale=function(t){if(Object(s.C)(t)){var e=gs[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(s.d)(e):Object(s.I)(Object(s.d)(e),Object(s.d)(gs.EN),!1)}return Object(s.I)(Object(s.d)(t),Object(s.d)(gs.EN),!1)}(n.locale||ys),r._coordSysMgr=new Gl;var a=r._api=og(r);function l(t,e){return t.__prio-e.__prio}return Tt(bg,l),Tt(yg,l),r._scheduler=new Dp(r,a,yg,bg),r._messageCenter=new ug,r._initEvents(),r.resize=Object(s.c)(r.resize,r),o.animation.on("frame",r._onframe,r),tg(o,r),eg(o,r),Object(s.R)(r),r}return o(e,t),e.prototype._onframe=function(){if(!this._disposed){lg(this);var t=this._scheduler;if(this[Vf]){var e=this[Vf].silent;this.__flagInMainProcess=!0;try{Wf(this),qf.update.call(this,null,this[Vf].updateParams)}catch(t){throw this.__flagInMainProcess=!1,this[Vf]=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this[Vf]=null,Qf.call(this,e),Jf.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),Zf(this,n),t.performVisualTasks(n),rg(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,i){if(!this.__flagInMainProcess)if(this._disposed)fg(this.id);else{var n,r,o;if(Object(s.A)(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new Yl(this._api),l=this._theme,u=this._model=new Vl;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},vg);var c={seriesTransition:o,optionChanged:!0};if(i)this[Vf]={silent:n,updateParams:c},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Wf(this),qf.update.call(this,null,c)}catch(t){throw this[Vf]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[Vf]=null,this.__flagInMainProcess=!1,Qf.call(this,n),Jf.call(this,n)}}},e.prototype.setTheme=function(){jl()},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.a.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.a.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(s.k)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;Object(s.k)(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(s.k)(n,(function(t){t.group.ignore=!1})),o}fg(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max;if(Sg[i]){var o=1/0,a=1/0,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(s.k)(wg,(function(h,d){if(h.group===i){var p=e?h.getZr().painter.getSvgDom().innerHTML:h.renderToCanvas(Object(s.d)(t)),f=h.getDom().getBoundingClientRect();o=n(f.left,o),a=n(f.top,a),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:p,left:f.left,top:f.top})}}));var d=(l*=h)-(o*=h),p=(u*=h)-(a*=h),f=ri.d.createCanvas(),g=Ii(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var m="";return Object(s.k)(c,(function(t){var e=t.left-o,i=t.top-a;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new vo({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(s.k)(c,(function(t){var e=new uo({style:{x:t.left*h-o,y:t.top*h-a,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}fg(this.id)},e.prototype.convertToPixel=function(t,e){return Xf(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Xf(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var i,n=dn(this._model,t);return Object(s.k)(n,(function(t,n){n.indexOf("Models")>=0&&Object(s.k)(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}else 0}),this)}),this),!!i}fg(this.id)},e.prototype.getVisual=function(t,e){var i=dn(this._model,t,{defaultMainType:"series"});var n=i.seriesModel.getData(),r=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?n.indexOfRawIndex(i.dataIndex):null;return null!=r?Hp(n,r,e):$p(n,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,i,n=this;Object(s.k)(pg,(function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&Yp(o,(function(t){var e=No(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=Object(s.m)({},e.eventData),!0}),!0),i){var a=i.componentType,l=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",l=i.seriesIndex);var u=a&&null!=l&&r.getComponent(a,l),c=u&&n["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)})),Object(s.k)(mg,(function(t,e){n._messageCenter.on(e,(function(t){this.trigger(e,t)}),n)})),Object(s.k)(["selectchanged"],(function(t){n._messageCenter.on(t,(function(e){this.trigger(t,e)}),n)})),t=this._messageCenter,e=this,i=this._api,t.on("selectchanged",(function(t){var n=i.getModel();t.isFromClick?(Up("map","selectchanged",e,n,t),Up("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Up("map","selected",e,n,t),Up("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Up("map","unselected",e,n,t),Up("pie","unselected",e,n,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?fg(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)fg(this.id);else{this._disposed=!0,this.getDom()&&yn(this.getDom(),Mg,"");var t=this._api,e=this._model;Object(s.k)(this._componentsViews,(function(i){i.dispose(e,t)})),Object(s.k)(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete wg[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)fg(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[Vf]&&(null==n&&(n=this[Vf].silent),i=!0,this[Vf]=null),this.__flagInMainProcess=!0;try{i&&Wf(this),qf.update.call(this,{type:"resize",animation:Object(s.m)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,Qf.call(this,n),Jf.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)fg(this.id);else if(Object(s.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),_g[t]){var i=_g[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){this._disposed?fg(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(s.m)({},t);return e.type=mg[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)fg(this.id);else if(Object(s.A)(e)||(e={silent:!!e}),gg[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var i=e.silent;Kf.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&a.a.browser.weChat&&this._throttledZrFlush(),Qf.call(this,i),Jf.call(this,i)}},e.prototype.updateLabelLayout=function(){Ef.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)fg(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){if(!t.preventAutoZ){var i=t.get("z")||0,n=t.get("zlevel")||0;e.eachRendered((function(t){return function t(e,i,n,r){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(t(s[l],i,n,r),r);else e.z=i,e.zlevel=n,r=Math.max(e.z2,r);o&&(o.z=i,o.zlevel=n,isFinite(r)&&(o.z2=r+2));if(a){var u=e.textGuideLineConfig;a.z=i,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,i,n,-1/0),!0}))}}function n(t,e){e.eachRendered((function(t){if(!La(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function r(t,i){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.eachRendered((function(t){if(t.states&&t.states.emphasis){if(La(t))return;if(t instanceof io&&function(t){var e=Bo(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}(t),t.__dirty){var i=t.prevStates;i&&t.useStates(i)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Wf=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Uf(t,!0),Uf(t,!1),e.plan()},Uf=function(t,e){for(var i=t._model,n=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=_n(t.type);0,(c=new(e?qc.getClass(h.main,h.sub):tp.getClass(h.sub))).init(i,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&n.prepareView(c,t,i,s)}e?i.eachComponent((function(t,e){"series"!==t&&u(e)})):i.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(i,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Yf=function(t,e,i,n,r){var o=t._model;if(o.setUpdatePayload(i),n){var a={};a[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"];var l={mainType:n,query:a};r&&(l.subType=r);var u,c=i.excludeSeriesId;null!=c&&(u=Object(s.f)(),Object(s.k)(Ki(c),(function(t){var e=an(t,null);null!=e&&u.set(e,!0)}))),o&&o.eachComponent(l,(function(e){if(!(u&&null!=u.get(e.id)))if(ka(i))if(e instanceof Uc)"highlight"!==i.type||i.notBlur||e.get(["emphasis","disabled"])||function(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=un(r,e);o=(Object(s.t)(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var l=r.count(),u=0;!a&&u<l;)a=r.getItemGraphicEl(u++);if(a){var c=No(a);da(n,c.focus,c.blurScope,i)}else{var h=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=h&&da(n,h,d,i)}}}(e,i,t._api);else{var n=fa(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;"highlight"===i.type&&r&&!i.notBlur&&pa(e.mainType,e.componentIndex,t._api),o&&Object(s.k)(o,(function(t){"highlight"===i.type?ra(t):oa(t)}))}else Ma(i)&&e instanceof Uc&&(!function(t,e,i){if(Ma(e)){var n=e.dataType,r=un(t.getData(n),e);Object(s.t)(r)||(r=[r]),t["toggleSelect"===e.type?"toggleSelect":"select"===e.type?"select":"unselect"](r,n)}}(e,i,t._api),ga(e),sg(t))}),t),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(s.k)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}},qf={prepareAndUpdate:function(t){Wf(this),qf.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),s.performDataProcessorTasks(n,e),Zf(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e),ig(this,n,r,e,i);var l=n.get("backgroundColor")||"transparent",u=n.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Ef.trigger("afterupdate",n,r)}},updateTransform:function(e){var i=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var o=[];n.eachComponent((function(t,a){if("series"!==t){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(s.f)();n.eachSeries((function(t){var o=i._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,n,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),rg(this,n,r,e,{},a),Ef.trigger("afterupdate",n,r)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),tp.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),ig(this,i,this._api,e,{}),Ef.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries((function(t){t.getData().clearAllVisual()})),tp.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent((function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}})),n.eachSeries((function(t){i._chartsMap[t.__viewId].updateVisual(t,n,i._api,e)})),Ef.trigger("afterupdate",n,this._api))},updateLayout:function(t){qf.update.call(this,t)}},Xf=function(t,e,i,n){if(t._disposed)fg(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=dn(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}0}},Zf=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))},Kf=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=gg[r],l=a.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&_n(u[0]);this.__flagInMainProcess=!0;var d=[t],p=!1;t.batch&&(p=!0,d=Object(s.H)(t.batch,(function(e){return(e=Object(s.i)(Object(s.m)({},e),t)).batch=null,e})));var f,g=[],m=Ma(t),y=ka(t);if(y&&ha(this._api),Object(s.k)(d,(function(e){if((f=(f=a.action(e,i._model,i._api))||Object(s.m)({},e)).type=l.event||f.type,g.push(f),y){var n=pn(t),r=n.queryOptionMap,o=n.mainTypeSpecified?r.keys()[0]:"series";Yf(i,c,e,o),sg(i)}else m?(Yf(i,c,e,"series"),sg(i)):h&&Yf(i,c,e,h.main,h.sub)})),"none"!==c&&!y&&!m&&!h)try{this[Vf]?(Wf(this),qf.update.call(this,t),this[Vf]=null):qf[c].call(this,t)}catch(t){throw this.__flagInMainProcess=!1,t}if(f=p?{type:l.event||r,escapeConnect:o,batch:g}:g[0],this.__flagInMainProcess=!1,!e){var v=this._messageCenter;if(v.trigger(f.type,f),m){var b={type:"selectchanged",escapeConnect:o,selected:ma(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(b.type,b)}}},Qf=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();Kf.call(this,i,t)}},Jf=function(t){!t&&this.trigger("updated")},tg=function(t,e){t.on("rendered",(function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[Vf]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},eg=function(t,e){t.on("mouseover",(function(t){var i=Yp(t.target,Ca);i&&(!function(t,e,i){var n=No(t),r=fa(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&pa(n.componentMainType,n.componentIndex,i),Object(s.k)(o,(function(t){return ia(t,e)}))):(da(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&pa(n.componentMainType,n.componentIndex,i),ia(t,e))}(i,t,e._api),sg(e))})).on("mouseout",(function(t){var i=Yp(t.target,Ca);i&&(!function(t,e,i){ha(i);var n=No(t),r=fa(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?Object(s.k)(r,(function(t){return na(t,e)})):na(t,e)}(i,t,e._api),sg(e))})).on("click",(function(t){var i=Yp(t.target,(function(t){return null!=No(t).dataIndex}),!0);if(i){var n=i.selected?"unselect":"select",r=No(i);e._api.dispatchAction({type:n,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},ig=function(t,e,i,n,r){!function(t){var e=[],i=[],n=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),n){var r,o,a=e.concat(i);Tt(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(s.k)(a,(function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)}))}}(e),ng(t,e,i,n,r),Object(s.k)(t._chartsViews,(function(t){t.__alive=!1})),rg(t,e,i,n,r),Object(s.k)(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))},ng=function(t,e,o,a,l,u){Object(s.k)(u||t._componentsViews,(function(t){var s=t.__model;n(s,t),t.render(s,e,o,a),i(s,t),r(s,t)}))},rg=function(t,e,o,l,u,c){var h=t._scheduler;u=Object(s.m)(u||{},{updatedSeries:e.getSeries()}),Ef.trigger("series:beforeupdate",e,o,u);var d=!1;e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;h.updatePayload(r,l),n(e,i),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(d=!0),i.group.silent=!!e.get("silent"),function(t,e){var i=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=i)}))}(e,i),ga(e)})),h.unfinished=d||h.unfinished,Ef.trigger("series:layoutlabels",e,o,u),Ef.trigger("series:transition",e,o,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];i(e,n),r(e,n)})),function(t,e){var i=t._zr.storage,n=0;i.traverse((function(t){t.isGroup||n++})),n>e.get("hoverLayerThreshold")&&!a.a.node&&!a.a.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Ef.trigger("series:afterupdate",e,o,u)},sg=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},lg=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){La(t)||e(t)})),t.__needsUpdateStatus=!1)},og=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return o(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},i.prototype.enterEmphasis=function(e,i){ra(e,i),sg(t)},i.prototype.leaveEmphasis=function(e,i){oa(e,i),sg(t)},i.prototype.enterBlur=function(e){aa(e),sg(t)},i.prototype.leaveBlur=function(e){sa(e),sg(t)},i.prototype.enterSelect=function(e){la(e),sg(t)},i.prototype.leaveSelect=function(e){ua(e),sg(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(Hl))(t)},ag=function(t){function e(t,e){for(var i=0;i<t.length;i++){t[i].__connectUpdateStatus=e}}Object(s.k)(mg,(function(i,n){t._messageCenter.on(n,(function(i){if(Sg[t.group]&&0!==t.__connectUpdateStatus){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];Object(s.k)(wg,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),Object(s.k)(r,(function(t){1!==t.__connectUpdateStatus&&t.dispatchAction(n)})),e(r,2)}}))}))}}(),e}(I),dg=hg.prototype;dg.on=Hf("on"),dg.off=Hf("off"),dg.one=function(t,e,i){var n=this;jl(),this.on.call(this,t,(function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),n.off(t,i)}),i)};var pg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function fg(t){0}var gg={},mg={},yg=[],vg=[],bg=[],xg={},_g={},wg={},Sg={},Cg=+new Date-0,Mg=(new Date,"_echarts_instance_");function kg(t,e,i){var n=!(i&&i.ssr);if(n){0;var r=Og(t);if(r)return r;0}var o=new hg(t,e,i);return o.id="ec_"+Cg++,wg[o.id]=o,n&&yn(t,Mg,o.id),ag(o),Ef.trigger("afterinit",o),o}function Og(t){return wg[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,Mg)]}function Ag(t,e){xg[t]=e}function Ig(t){Object(s.r)(vg,t)<0&&vg.push(t)}function Tg(t,e){Ng(yg,t,e,2e3)}function Dg(t,e){Ef.on(t,e)}function Lg(t,e,i){Object(s.w)(e)&&(i=e,e="");var n=Object(s.A)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,mg[e]||(Object(s.b)(Ff.test(n)&&Ff.test(e)),gg[n]||(gg[n]={action:i,actionInfo:t}),mg[e]=n)}function Pg(t,e){Ng(bg,t,e,3e3,"visual")}var jg=[];function Ng(t,e,i,n,r){if((Object(s.w)(e)||Object(s.A)(e))&&(i=e,e=n),!(Object(s.r)(jg,i)>=0)){jg.push(i);var o=Dp.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function Eg(t,e){_g[t]=e}var Rg=function(t){var e=(t=Object(s.d)(t)).type;e||Nl("");var i=e.split(":");2!==i.length&&Nl("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,rc.set(e,t)};Pg(2e3,hp),Pg(4500,pp),Pg(4500,fp),Pg(2e3,Vp),Pg(4500,Fp),Pg(7e3,(function(t,e){t.eachRawSeries((function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each((function(t){var i=n.getItemVisual(t,"decal");i&&(n.ensureUniqueItemVisual(t,"style").decal=jf(i,e))}));var r=n.getVisual("decal");if(r)n.getVisual("style").decal=jf(r,e)}}))})),Ig(du),Tg(900,(function(t){var e=Object(s.f)();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}})),e.each(pu)})),Eg("default",(function(t,e){e=e||{},s.i(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new Ci,n=new vo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r,o=new jo({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new vo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((r=new rd({shape:{startAngle:-gp/2,endAngle:-gp/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*gp/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*gp/2}).delay(300).start("circularInOut"),i.add(r)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i})),Lg({type:"highlight",event:"highlight",update:"highlight"},s.L),Lg({type:"downplay",event:"downplay",update:"downplay"},s.L),Lg({type:"select",event:"select",update:"select"},s.L),Lg({type:"unselect",event:"unselect",update:"unselect"},s.L),Lg({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},s.L),Ag("light",Pp),Ag("dark",Ep);var zg=[],Bg={registerPreprocessor:Ig,registerProcessor:Tg,registerPostInit:function(t){Dg("afterinit",t)},registerPostUpdate:function(t){Dg("afterupdate",t)},registerUpdateLifecycle:Dg,registerAction:Lg,registerCoordinateSystem:function(t,e){Gl.register(t,e)},registerLayout:function(t,e){Ng(bg,t,e,1e3,"layout")},registerVisual:Pg,registerTransform:Rg,registerLoading:Eg,registerMap:function(t,e,i){var n=zf("registerMap");n&&n(t,e,i)},registerImpl:function(t,e){Rf[t]=e},PRIORITY:Bf,ComponentModel:hl,ComponentView:qc,SeriesModel:Uc,ChartView:tp,registerComponentModel:function(t){hl.registerClass(t)},registerComponentView:function(t){qc.registerClass(t)},registerSeriesModel:function(t){Uc.registerClass(t)},registerChartView:function(t){tp.registerClass(t)},registerSubTypeDefaulter:function(t,e){hl.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var i;i=e,Mi[t]=i}};function Vg(t){Object(s.t)(t)?Object(s.k)(t,(function(t){Vg(t)})):Object(s.r)(zg,t)>=0||(zg.push(t),Object(s.w)(t)&&(t={install:t}),t.install(Bg))}var Fg=2*Math.PI,Hg=Er.CMD,$g=["top","right","bottom","left"];function Gg(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function Wg(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*i+t,h=(s/=u)*i+e;if(Math.abs(n-r)%Fg<1e-4)return l[0]=c,l[1]=h,u-i;if(o){var d=n;n=Fr(r),r=Fr(d)}else n=Fr(n),r=Fr(r);n>r&&(r+=Fg);var p=Math.atan2(s,a);if(p<0&&(p+=Fg),p>=n&&p<=r||p+Fg>=n&&p+Fg<=r)return l[0]=c,l[1]=h,u-i;var f=i*Math.cos(n)+t,g=i*Math.sin(n)+e,m=i*Math.cos(r)+t,y=i*Math.sin(r)+e,v=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(y-s)*(y-s);return v<b?(l[0]=f,l[1]=g,Math.sqrt(v)):(l[0]=m,l[1]=y,Math.sqrt(b))}function Ug(t,e,i,n,r,o,a,s){var l=r-t,u=o-e,c=i-t,h=n-e,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function Yg(t,e,i,n,r,o,a){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var qg=[];function Xg(t,e,i){var n=Yg(e.x,e.y,e.width,e.height,t.x,t.y,qg);return i.set(qg[0],qg[1]),n}function Zg(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(s=o=c[p],l=a=c[p+1]);var g=u;switch(f){case Hg.M:o=s=c[p++],a=l=c[p++];break;case Hg.L:g=Ug(o,a,c[p],c[p+1],h,d,qg,!0),o=c[p++],a=c[p++];break;case Hg.C:g=Kt(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,qg),o=c[p++],a=c[p++];break;case Hg.Q:g=ne(o,a,c[p++],c[p++],c[p],c[p+1],h,d,qg),o=c[p++],a=c[p++];break;case Hg.A:var m=c[p++],y=c[p++],v=c[p++],b=c[p++],x=c[p++],_=c[p++];p+=1;var w=!!(1-c[p++]);n=Math.cos(x)*v+m,r=Math.sin(x)*b+y,p<=1&&(s=n,l=r),g=Wg(m,y,b,x,x+_,w,(h-m)*b/v+m,d,qg),o=Math.cos(x+_)*v+m,a=Math.sin(x+_)*b+y;break;case Hg.R:g=Yg(s=o=c[p++],l=a=c[p++],c[p++],c[p++],h,d,qg);break;case Hg.Z:g=Ug(o,a,s,l,h,d,qg,!0),o=s,a=l}g<u&&(u=g,i.set(qg[0],qg[1]))}return u}var Kg=new ot,Qg=new ot,Jg=new ot,tm=new ot,em=new ot;function im(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||$g,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&rt([],c),d=e.get("length2")||0;u&&Jg.copy(u);for(var p=0;p<a.length;p++){Gg(a[p],0,s,Kg,tm),ot.scaleAndAdd(Qg,Kg,tm,d),Qg.transform(h);var f=t.getBoundingRect(),g=u?u.distance(Qg):t instanceof io?Zg(Qg,t.path,Jg):Xg(Qg,f,Jg);g<l&&(l=g,Qg.transform(c),Jg.transform(c),Jg.toArray(o[0]),Qg.toArray(o[1]),Kg.toArray(o[2]))}om(o,e.get("minTurnAngle")),i.setShape({points:o})}}}var nm=[],rm=new ot;function om(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Kg.fromArray(t[0]),Qg.fromArray(t[1]),Jg.fromArray(t[2]),ot.sub(tm,Kg,Qg),ot.sub(em,Jg,Qg);var i=tm.len(),n=em.len();if(!(i<.001||n<.001)){tm.scale(1/i),em.scale(1/n);var r=tm.dot(em);if(Math.cos(e)<r){var o=Ug(Qg.x,Qg.y,Jg.x,Jg.y,Kg.x,Kg.y,nm,!1);rm.fromArray(nm),rm.scaleAndAdd(em,o/Math.tan(Math.PI-e));var a=Jg.x!==Qg.x?(rm.x-Qg.x)/(Jg.x-Qg.x):(rm.y-Qg.y)/(Jg.y-Qg.y);if(isNaN(a))return;a<0?ot.copy(rm,Qg):a>1&&ot.copy(rm,Jg),rm.toArray(t[1])}}}}function am(t,e,i){if(i<=180&&i>0){i=i/180*Math.PI,Kg.fromArray(t[0]),Qg.fromArray(t[1]),Jg.fromArray(t[2]),ot.sub(tm,Qg,Kg),ot.sub(em,Jg,Qg);var n=tm.len(),r=em.len();if(!(n<.001||r<.001))if(tm.scale(1/n),em.scale(1/r),tm.dot(e)<Math.cos(i)){var o=Ug(Qg.x,Qg.y,Jg.x,Jg.y,Kg.x,Kg.y,nm,!1);rm.fromArray(nm);var a=Math.PI/2,s=a+Math.acos(em.dot(e))-i;if(s>=a)ot.copy(rm,Jg);else{rm.scaleAndAdd(em,o/Math.tan(Math.PI/2-s));var l=Jg.x!==Qg.x?(rm.x-Qg.x)/(Jg.x-Qg.x):(rm.y-Qg.y)/(Jg.y-Qg.y);if(isNaN(l))return;l<0?ot.copy(rm,Qg):l>1&&ot.copy(rm,Jg)}rm.toArray(t[1])}}}function sm(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function lm(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=_(n[0],n[1]),o=_(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=S([],n[1],n[0],a/r),l=S([],n[1],n[2],a/o),u=S([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function um(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),l=r.ignore,u=0;u<Ho.length;u++){var c=Ho[u],h=e[c],d="normal"===c;if(h){var p=h.get("show");if((d?l:Object(s.P)(r.states[c]&&r.states[c].ignore,l))||!Object(s.P)(p,a)){var f=d?n:n&&n.states[c];f&&(f.ignore=!0),n&&sm(n,!0,c,h);continue}n||(n=new Uh,t.setTextGuideLine(n),d||!l&&a||sm(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),sm(n,!1,c,h)}}if(n){Object(s.i)(n.style,i),n.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=lm}}else n&&t.removeTextGuideLine()}function cm(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<Fo.length;n++){var r=Fo[n];i[r]=t.getModel([r,e])}return i}function hm(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new pd(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function dm(t,e,i,n,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,i){return t.rect[e]-i.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[i]}h>0&&o&&w(-h/a,0,a);var m,y,v=t[0],b=t[a-1];return x(),m<0&&S(-m,.8),y<0&&S(y,.8),x(),_(m,y,1),_(y,m,-1),x(),m<0&&C(-m),y<0&&C(y),u}function x(){m=v.rect[e]-n,y=r-b.rect[e]-b.rect[i]}function _(t,e,i){if(t<0){var n=Math.min(e,-t);if(n>0){w(n*i,0,a);var r=n+t;r<0&&S(-r*i,1)}else S(-t*i,1)}}function w(i,n,r){0!==i&&(u=!0);for(var o=n;o<r;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function S(n,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[i],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(n)/s,r);if(n>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*h),l,a)}}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(a-1)),n=0;n<a-1;n++)if(e>0?w(i,0,n+1):w(-i,a-n-1,a),(t-=i)<=0)return}}function pm(t,e,i,n){return dm(t,"y","height",e,i,n)}function fm(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var i=new ft(0,0,0,0);function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var h=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(i.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new pd(f.localRect,f.transform)),h||(h=new pd(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function gm(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function mm(t,e){var i=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:gm(n&&n.shape.points)}}var ym=["align","verticalAlign","width","height","fontSize"],vm=new ii,bm=cn(),xm=cn();function _m(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}var wm=["x","y","rotation"],Sm=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget.textConfig||{},s=n.getComputedTransform(),l=n.getBoundingRect().plain();ft.applyTransform(l,l,s),s?vm.setLocalTransform(s):(vm.x=vm.y=vm.rotation=vm.originX=vm.originY=0,vm.scaleX=vm.scaleY=1),vm.rotation=Fr(vm.rotation);var u,c=n.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();ft.applyTransform(u,u,h)}var d=u&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:vm.x,y:vm.y,scaleX:vm.scaleX,scaleY:vm.scaleY,rotation:vm.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(Object(s.w)(n)||Object(s.F)(n).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=No(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,i,r,n)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function n(t,e){return function(){im(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,u=o.defaultAttr,c=void 0;c=(c=Object(s.w)(o.layoutOption)?o.layoutOption(mm(o,l)):o.layoutOption)||{},o.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(null!=c.x?(a.x=Di(c.x,e),a.setStyle("x",0),d=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=c.y?(a.y=Di(c.y,i),a.setStyle("y",0),d=!0):(a.y=u.y,a.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}bm(a).needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*h:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var f=0;f<ym.length;f++){var g=ym[f];a.setStyle(g,null!=c[g]?c[g]:u.style[g])}if(c.draggable){if(a.draggable=!0,a.cursor="move",l){var m=o.seriesModel;if(null!=o.dataIndex)m=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",n(l,m.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},t.prototype.layout=function(t){var e,i=t.getWidth(),n=t.getHeight(),r=hm(this._labelList),o=Object(s.n)(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=Object(s.n)(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));dm(o,"x","width",0,i,e),pm(a,0,n),fm(Object(s.n)(r,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;Object(s.k)(this._chartViewList,(function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=bm(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)}))}))},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=No(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");um(t,cm(a),s),im(t,c)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!La(t))){var r=(f=bm(i)).oldLayout,o=No(t),a=o.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(o.dataType);if(r){i.attr(r);var c=t.prevStates;c&&(Object(s.r)(c,"select")>=0&&i.attr(f.oldLayoutSelect),Object(s.r)(c,"emphasis")>=0&&i.attr(f.oldLayoutEmphasis)),Ta(i,l,e,a)}else if(i.attr(l),!Xa(i).valueAnimation){var h=Object(s.P)(i.style.opacity,1);i.style.opacity=0,Da(i,{style:{opacity:h}},e,a)}if(f.oldLayout=l,i.states.select){var d=f.oldLayoutSelect={};_m(d,l,wm),_m(d,i.states.select,wm)}if(i.states.emphasis){var p=f.oldLayoutEmphasis={};_m(p,l,wm),_m(p,i.states.emphasis,wm)}Ka(i,a,u,e,e)}if(n&&!n.ignore&&!n.invisible){r=(f=xm(n)).oldLayout;var f,g={points:n.shape.points};r?(n.attr({shape:r}),Ta(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,Da(n,{style:{strokePercent:1}},e)),f.oldLayout=g}},t}(),Cm=cn();function Mm(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,i){var n=Cm(e).labelManager;n||(n=Cm(e).labelManager=new Sm),n.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,i){var n=Cm(e).labelManager;i.updatedSeries.forEach((function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()}))}function km(t,e,i){var n=ri.d.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}Vg(Mm);var Om=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||Ue,"string"==typeof e?r=km(e,i,n):s.A(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(s.j(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=i,o.dpr=n,o}return u(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=km("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new ft(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new ft(0,0,0,0)).copy(t),o.push(e)}else{for(var e,i=!1,n=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new ft(0,0,0,0);h.copy(c),h.union(t),o[u]=h,i=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height-d-p;f<n&&(n=f,r=u)}}if(s&&(o[r].union(t),i=!0),!i)(e=new ft(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(p=t[c]){var h=p.shouldBePainted(i,n,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!h)?p.getPrevPaintRect():null)&&u(f);var d=h&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;h=(p=e[c])&&p.shouldBePainted(i,n,!0,!0);if(p&&(!h||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){var n=this.dom,r=this.ctx,o=n.width,a=n.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/c,a/c));var d=this.domBack;function p(t,i,n,o){if(r.clearRect(t,i,n,o),e&&"transparent"!==e){var a=void 0;if(s.x(e))a=(e.global||e.__width===n&&e.__height===o)&&e.__canvasGradient||hf(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o;else s.y(e)&&(e.scaleX=e.scaleX||c,e.scaleY=e.scaleY||c,a=_f(r,e,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()}l&&(r.save(),r.globalAlpha=u,r.drawImage(d,t,i,n,o),r.restore())}!i||l?p(0,0,o,a):i.length&&s.k(i,(function(t){p(t.x*c,t.y*c,t.width*c,t.height*c)}))},e}(I);var Am=function(){function t(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=s.m({},i||{}),this.dpr=i.devicePixelRatio||Ue,this._singleCanvas=r,this.root=t,t.style&&(s.j(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var l=t,u=l.width,c=l.height;null!=i.width&&(u=i.width),null!=i.height&&(c=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new Om(l,this,this.dpr);h.__builtin__=!0,h.initContext(),a[314159]=h,h.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=pf(t,0,i),this._height=pf(t,1,i);var d=this._domRoot=function(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}(this._width,this._height);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),Tf(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){If(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Nt((function(){s._paintList(t,e,i,n)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)}))},t.prototype._doPaintList=function(t,e,i){for(var n=this,r=[],o=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&r.push(c)}for(var h=!0,d=!1,p=function(a){var s,l=r[a],u=l.ctx,c=o&&l.createRepaintRects(t,e,f._width,f._height),p=i?l.__startIndex:l.__drawIndex,g=!i&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,c);else if(p===l.__startIndex){var v=t[p];v.incremental&&v.notClear&&!i||l.clear(!1,y,c)}-1===p&&(p=l.__startIndex);var b=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(d=!0),n._doPaintEl(r,l,o,e,i,s===l.__endIndex-1),g)if(Date.now()-m>15)break}i.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var x=f.dpr,_=0;_<c.length;++_){var w=c[_];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),b(w),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},f=this,g=0;g<r.length;g++)p(g);return a.a.wxa&&s.k(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:d}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(Tf(a,t,r,o),t.setPrevPaintRect(s))}else Tf(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var i=this._layers[t];return i||((i=new Om("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?s.I(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s.I(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=this._domRoot,a=null,s=-1;if(!i[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>n[0]){for(s=0;s<r-1&&!(n[s]<t&&n[s+1]>t);s++);a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var n,r,o=null,a=0;for(r=0;r<t.length;r++){var l,u=(l=t[r]).zlevel,c=void 0;n!==u&&(n=u,a=0),l.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(u+(a>0?.01:0),this._needsManuallyCompositing),c.__builtin__||s.G("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.incremental?c.__drawIndex=-1:c.__drawIndex=r,e(r),o=c),1&l.__dirty&&!l.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,s.k(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s.I(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+.01){var o=this._layers[r];s.I(o,i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(s.r(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=pf(r,0,n),e=pf(r,1,n),i.style.display="",this._width!==t||e!==this._height){for(var o in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new Om("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Tf(i,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();var Im=Math.sin,Tm=Math.cos,Dm=Math.PI,Lm=2*Math.PI,Pm=180/Dm,jm=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){this._add("C",t,e,i,n,r,o)},t.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},t.prototype.arc=function(t,e,i,n,r,o){this.ellipse(t,e,i,i,0,n,r,o)},t.prototype.ellipse=function(t,e,i,n,r,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Object(ue.j)(c-Lm)||(u?l>=Lm:-l>=Lm),d=l>0?l%Lm:l%Lm+Lm,p=!1;p=!!h||!Object(ue.j)(c)&&d>=Dm==!!u;var f=t+i*Tm(o),g=e+n*Im(o);this._start&&this._add("M",f,g);var m=Math.round(r*Pm);if(h){var y=1/this._p,v=(u?1:-1)*(Lm-y);this._add("A",i,n,m,1,+u,t+i*Tm(o+v),e+n*Im(o+v)),y>.01&&this._add("A",i,n,m,0,+u,f,g)}else{var b=t+i*Tm(a),x=e+n*Im(a);this._add("A",i,n,m,+p,+u,b,x)}},t.prototype.rect=function(t,e,i,n){this._add("M",t,e),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,i,n,r,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Nm=Math.round;var Em=["lineCap","miterLimit","lineJoin"],Rm=Object(s.H)(Em,(function(t){return"stroke-"+t.toLowerCase()}));var zm="http://www.w3.org/2000/svg",Bm="http://www.w3.org/1999/xlink";function Vm(t){return document.createElementNS(zm,t)}function Fm(t,e,i,n,r){return{tag:t,attrs:i||{},children:n,text:r,key:e}}function Hm(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var i=[];if(e)for(var n in e){var r=e[n],o=n;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),i.push(o))}return"<"+t+" "+i.join(" ")+">"}(r,o)+("style"!==r?z(a):a||"")+(n?""+i+Object(s.H)(n,(function(e){return t(e)})).join(i)+i:"")+("</"+r+">")}(t)}function $m(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Gm(t,e,i,n){return Fm("svg","root",{width:t,height:e,xmlns:zm,"xmlns:xlink":Bm,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}var Wm=0;function Um(){return Wm++}var Ym={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function qm(t,e,i){var n=Object(s.m)({},t.shape);Object(s.m)(n,e),t.buildPath(i,n);var r=new jm;return r.reset(Object(ue.f)(t)),i.rebuildPath(r,1),r.generateStr(),r.getStr()}function Xm(t,e){var i=e.originX,n=e.originY;(i||n)&&(t["transform-origin"]=i+"px "+n+"px")}var Zm={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Km(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function Qm(t){return Object(s.C)(t)?Ym[t]?"cubic-bezier("+Ym[t]+")":ae(t)?t:"":""}function Jm(t,e,i,n){var r=t.animators,o=r.length,a=[];if(t instanceof od){if(y=function(t,e,i){var n,r,o=t.shape.paths,a={};if(Object(s.k)(o,(function(t){var e=$m(i.zrId);e.animation=!0,Jm(t,{},e,!0);var o=e.cssAnims,l=e.cssNodes,u=Object(s.F)(o),c=u.length;if(c){var h=o[r=u[c-1]];for(var d in h){var p=h[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var f in l){var g=l[f].animation;g.indexOf(r)>=0&&(n=g)}}})),n){e.d=!1;var l=Km(a,i);return n.replace(r,l)}}(t,e,i))a.push(y);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=Qm(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(r){var o,a=r[1],l=a.length,u={},c={},h={};function d(t,e,i){for(var n=t.getTracks(),r=t.getMaxTime(),o=0;o<n.length;o++){var a=n[o];if(a.needsAnimate()){var l=a.keyframes,u=a.propName;if(i&&(u=i(u)),u)for(var c=0;c<l.length;c++){var h=l[c],d=Math.round(h.time/r*100)+"%",p=Qm(h.easing),f=h.rawValue;(Object(s.C)(f)||Object(s.z)(f))&&(e[d]=e[d]||{},e[d][u]=h.rawValue,p&&(e[d]["animation-timing-function"]=p))}}}}for(var p=0;p<l;p++){(S=(w=a[p]).targetName)?"shape"===S&&d(w,c):!n&&d(w,u)}for(var f in u){var g={};ei(g,t),Object(s.m)(g,u[f]);var m=Object(ue.g)(g),y=u[f]["animation-timing-function"];h[f]=m?{transform:m}:{},Xm(h[f],g),y&&(h[f]["animation-timing-function"]=y)}var v=!0;for(var f in c){h[f]=h[f]||{};var b=!o;y=c[f]["animation-timing-function"];b&&(o=new Er);var x=o.len();o.reset(),h[f].d=qm(t,c[f],o);var _=o.len();if(!b&&x!==_){v=!1;break}y&&(h[f]["animation-timing-function"]=y)}if(!v)for(var f in h)delete h[f].d;if(!n)for(p=0;p<l;p++){var w,S;"style"===(S=(w=a[p]).targetName)&&d(w,h,(function(t){return Zm[t]}))}var C,M=Object(s.F)(h),k=!0;for(p=1;p<M.length;p++){var O=M[p-1],A=M[p];if(h[O]["transform-origin"]!==h[A]["transform-origin"]){k=!1;break}C=h[O]["transform-origin"]}if(k&&C){for(var f in h)h[f]["transform-origin"]&&delete h[f]["transform-origin"];e["transform-origin"]=C}if(Object(s.n)(M,(function(t){return Object(s.F)(h[t]).length>0})).length)return Km(h,i)+" "+r[0]+" both"}for(var m in l){var y;(y=g(l[m]))&&a.push(y)}if(a.length){var v=i.zrId+"-cls-"+Um();i.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function ty(t,e,i,n){var r=JSON.stringify(t),o=i.cssStyleCache[r];o||(o=i.zrId+"-cls-"+Um(),i.cssStyleCache[r]=o,i.cssNodes["."+o+(n?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var ey=Math.round;function iy(t){return t&&Object(s.C)(t.src)}function ny(t){return t&&Object(s.w)(t.toDataURL)}function ry(t,e,i,n){!function(t,e,i,n){var r=null==e.opacity?1:e.opacity;if(i instanceof uo)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var o=Object(ue.p)(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(n||a<1)&&t("fill-opacity",a)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=Object(ue.p)(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?i.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if((n||1!==u)&&t("stroke-width",u),(n||h)&&t("paint-order",h?"stroke":"fill"),(n||c<1)&&t("stroke-opacity",c),e.lineDash){var d=ff(i),p=d[0],f=d[1];p&&(f=Nm(f||0),t("stroke-dasharray",p.join(",")),(f||n)&&t("stroke-dashoffset",f))}else n&&t("stroke-dasharray","none");for(var g=0;g<Em.length;g++){var m=Em[g];if(n||e[m]!==Jr[m]){var y=e[m]||Jr[m];y&&t(Rm[g],y)}}}else n&&t("stroke","none")}}((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(ue.k)(o)?gy(e,t,r,n):a&&Object(ue.n)(o)?my(i,t,r,n):t[r]=o,a&&n.ssr&&"none"===o&&(t["pointer-events"]="visible")}),e,i,!1),function(t,e,i){var n=t.style;if(Object(ue.i)(n)){var r=Object(ue.h)(t),o=i.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,h=n.shadowOffsetY||0,d=n.shadowBlur,p=Object(ue.p)(n.shadowColor),f=p.opacity,g=p.color,m=d/2/l+" "+d/2/u;a=i.zrId+"-s"+i.shadowIdx++,i.defs[a]=Fm("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Fm("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=Object(ue.d)(a)}}(i,t,n)}function oy(t,e){var i=function(t){if("function"==typeof Oi)return Oi(t)}(e);i&&(i.each((function(e,i){null!=e&&(t[("ecmeta_"+i).toLowerCase()]=e+"")})),e.isSilent()&&(t.ecmeta_silent="true"))}function ay(t){return Object(ue.j)(t[0]-1)&&Object(ue.j)(t[1])&&Object(ue.j)(t[2])&&Object(ue.j)(t[3]-1)}function sy(t,e,i){if(e&&(!function(t){return Object(ue.j)(t[4])&&Object(ue.j)(t[5])}(e)||!ay(e))){var n=i?10:1e4;t.transform=ay(e)?"translate("+ey(e[4]*n)/n+" "+ey(e[5]*n)/n+")":Object(ue.e)(e)}}function ly(t,e,i){for(var n=t.points,r=[],o=0;o<n.length;o++)r.push(ey(n[o][0]*i)/i),r.push(ey(n[o][1]*i)/i);e.points=r.join(" ")}function uy(t){return!t.smooth}var cy,hy,dy={circle:[(cy=["cx","cy","r"],hy=Object(s.H)(cy,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,i){for(var n=0;n<hy.length;n++){var r=hy[n],o=t[r[0]];null!=o&&(e[r[1]]=ey(o*i)/i)}})],polyline:[ly,uy],polygon:[ly,uy]};function py(t,e){var i=t.style,n=t.shape,r=dy[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(ue.f)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](n)||a&&function(t){for(var e=t.animators,i=0;i<e.length;i++)if("shape"===e[i].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new jm),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](n,o,g)}return sy(o,t.transform),ry(o,i,t,e),oy(o,t),e.animation&&Jm(t,o,e),e.emphasis&&function(t,e,i){if(!t.ignore)if(t.isSilent()){ty(u={"pointer-events":"none"},e,i,!0)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=n.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=Object(le.d)(s))}var l=n.lineWidth;if(l)l/=!n.strokeNoScale&&t.transform?t.transform[0]:1;var u={cursor:"pointer"};r&&(u.fill=r),n.stroke&&(u.stroke=n.stroke),l&&(u["stroke-width"]=l),ty(u,e,i,!0)}}(t,o,e),Fm(s,t.id+"",o)}function fy(t,e){return t instanceof io?py(t,e):t instanceof uo?function(t,e){var i=t.style,n=i.image;if(n&&!Object(s.C)(n)&&(iy(n)?n=n.src:ny(n)&&(n=n.toDataURL())),n){var r=i.x||0,o=i.y||0,a={href:n,width:i.width,height:i.height};return r&&(a.x=r),o&&(a.y=o),sy(a,t.transform),ry(a,i,t,e),oy(a,t),e.animation&&Jm(t,a,e),Fm("image",t.id+"",a)}}(t,e):t instanceof oo?function(t,e){var i=t.style,n=i.text;if(null!=n&&(n+=""),n&&!isNaN(i.x)&&!isNaN(i.y)){var r=i.font||ri.a,o=i.x||0,a=Object(ue.b)(i.y||0,hi(r),i.textBaseline),s={"dominant-baseline":"central","text-anchor":ue.a[i.textAlign]||i.textAlign};if(Oo(i)){var l="",u=i.fontStyle,c=Mo(i.fontSize);if(!parseFloat(c))return;var h=i.fontFamily||ri.b,d=i.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+r;return n.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),sy(s,t.transform),ry(s,i,t,e),oy(s,t),e.animation&&Jm(t,s,e),Fm("text",t.id+"",s,void 0,n)}}(t,e):void 0}function gy(t,e,i,n){var r,o=t[i],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(ue.m)(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(ue.o)(o))return void 0;r="radialGradient",a.cx=Object(s.P)(o.x,.5),a.cy=Object(s.P)(o.y,.5),a.r=Object(s.P)(o.r,.5)}for(var l=o.colorStops,u=[],c=0,h=l.length;c<h;++c){var d=100*Object(ue.q)(l[c].offset)+"%",p=l[c].color,f=Object(ue.p)(p),g=f.color,m=f.opacity,y={offset:d};y["stop-color"]=g,m<1&&(y["stop-opacity"]=m),u.push(Fm("stop",c+"",y))}var v=Hm(Fm(r,"",a,u)),b=n.gradientCache,x=b[v];x||(x=n.zrId+"-g"+n.gradientIdx++,b[v]=x,a.id=x,n.defs[x]=Fm(r,x,a,u)),e[i]=Object(ue.d)(x)}function my(t,e,i,n){var r,o=t.style[i],a=t.getBoundingRect(),l={},u=o.repeat,c="no-repeat"===u,h="repeat-x"===u,d="repeat-y"===u;if(Object(ue.l)(o)){var p=o.imageWidth,f=o.imageHeight,g=void 0,m=o.image;if(Object(s.C)(m)?g=m:iy(m)?g=m.src:ny(m)&&(g=m.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Object(s.b)(p,y),Object(s.b)(f,y)}else if(null==p||null==f){var v=function(t,e){if(t){var i=t.elm,n=p||e.width,r=f||e.height;"pattern"===t.tag&&(h?(r=1,n/=a.width):d&&(n=1,r/=a.height)),t.attrs.width=n,t.attrs.height=r,i&&(i.setAttribute("width",n),i.setAttribute("height",r))}},b=Pn(g,null,t,(function(t){c||v(S,t),v(r,t)}));b&&b.width&&b.height&&(p=p||b.width,f=f||b.height)}r=Fm("image","img",{href:g,width:p,height:f}),l.width=p,l.height=f}else o.svgElement&&(r=Object(s.d)(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var x,_;c?x=_=1:h?(_=1,x=l.width/a.width):d?(x=1,_=l.height/a.height):l.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(l.width=x),null==_||isNaN(_)||(l.height=_);var w=Object(ue.g)(o);w&&(l.patternTransform=w);var S=Fm("pattern","",l,[r]),C=Hm(S),M=n.patternCache,k=M[C];k||(k=n.zrId+"-p"+n.patternIdx++,M[C]=k,l.id=k,S=n.defs[k]=Fm("pattern",k,l,[r])),e[i]=Object(ue.d)(k)}}function yy(t,e,i){var n=i.clipPathCache,r=i.defs,o=n[t.id];if(!o){var a={id:o=i.zrId+"-c"+i.clipPathIdx++};n[t.id]=o,r[o]=Fm("clipPath",o,a,[py(t,i)])}e["clip-path"]=Object(ue.d)(o)}function vy(t){return document.createTextNode(t)}function by(t,e,i){t.insertBefore(e,i)}function xy(t,e){t.removeChild(e)}function _y(t,e){t.appendChild(e)}function wy(t){return t.parentNode}function Sy(t){return t.nextSibling}function Cy(t,e){t.textContent=e}var My=Fm("","");function ky(t){return void 0===t}function Oy(t){return void 0!==t}function Ay(t,e,i){for(var n={},r=e;r<=i;++r){var o=t[r].key;void 0!==o&&(n[o]=r)}return n}function Iy(t,e){var i=t.key===e.key;return t.tag===e.tag&&i}function Ty(t){var e,i=t.children,n=t.tag;if(Oy(n)){var r=t.elm=Vm(n);if(Py(My,t),Object(s.t)(i))for(e=0;e<i.length;++e){var o=i[e];null!=o&&_y(r,Ty(o))}else Oy(t.text)&&!Object(s.A)(t.text)&&_y(r,vy(t.text))}else t.elm=vy(t.text);return t.elm}function Dy(t,e,i,n,r){for(;n<=r;++n){var o=i[n];null!=o&&by(t,Ty(o),e)}}function Ly(t,e,i,n){for(;i<=n;++i){var r=e[i];if(null!=r)if(Oy(r.tag))xy(wy(r.elm),r.elm);else xy(t,r.elm)}}function Py(t,e){var i,n=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(i in o){var a=o[i];r[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):"style"===i?n.style.cssText=a:120!==i.charCodeAt(0)?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS("http://www.w3.org/2000/xmlns/",i,a):58===i.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",i,a):58===i.charCodeAt(5)?n.setAttributeNS(Bm,i,a):n.setAttribute(i,a))}for(i in r)i in o||n.removeAttribute(i)}}function jy(t,e){var i=e.elm=t.elm,n=t.children,r=e.children;t!==e&&(Py(t,e),ky(e.text)?Oy(n)&&Oy(r)?n!==r&&function(t,e,i){for(var n,r,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=i.length-1,d=i[0],p=i[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==d?d=i[++s]:null==p?p=i[--h]:Iy(u,d)?(jy(u,d),u=e[++a],d=i[++s]):Iy(c,p)?(jy(c,p),c=e[--l],p=i[--h]):Iy(u,p)?(jy(u,p),by(t,u.elm,Sy(c.elm)),u=e[++a],p=i[--h]):Iy(c,d)?(jy(c,d),by(t,c.elm,u.elm),c=e[--l],d=i[++s]):(ky(n)&&(n=Ay(e,a,l)),ky(r=n[d.key])||(o=e[r]).tag!==d.tag?by(t,Ty(d),u.elm):(jy(o,d),e[r]=void 0,by(t,o.elm,u.elm)),d=i[++s]);(a<=l||s<=h)&&(a>l?Dy(t,null==i[h+1]?null:i[h+1].elm,i,s,h):Ly(t,e,a,l))}(i,n,r):Oy(r)?(Oy(t.text)&&Cy(i,""),Dy(i,null,r,0,r.length-1)):Oy(n)?Ly(i,n,0,n.length-1):Oy(t.text)&&Cy(i,""):t.text!==e.text&&(Oy(n)&&Ly(i,n,0,n.length-1),Cy(i,e.text)))}var Ny=0;var Ey=function(){function t(t,e,i){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=i=Object(s.m)({},i),this.root=t,this._id="zr"+Ny++,this._oldVNode=Gm(i.width,i.height),t&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Vm("svg");Py(null,this._oldVNode),n.appendChild(r),t.appendChild(n)}this.resize(i.width,i.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Iy(t,e))jy(t,e);else{var i=t.elm,n=wy(i);Ty(e),null!==n&&(by(n,e.elm,Sy(i)),Ly(n,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return fy(t,$m(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._width,n=this._height,r=$m(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,i,n){var r;if(i&&"none"!==i)if(r=Fm("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(ue.k)(i))gy({fill:i},r.attrs,"fill",n);else if(Object(ue.n)(i))my({style:{fill:i},dirty:s.L,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",n);else{var o=Object(ue.p)(i),a=o.color,l=o.opacity;r.attrs.fill=a,l<1&&(r.attrs["fill-opacity"]=l)}return r}(i,n,this._backgroundColor,r);a&&o.push(a);var l=t.compress?null:this._mainVNode=Fm("g","main",{},[]);this._paintList(e,r,l?l.children:o),l&&o.push(l);var u=Object(s.H)(Object(s.F)(r.defs),(function(t){return r.defs[t]}));if(u.length&&o.push(Fm("defs","defs",{},u)),t.animation){var c=function(t,e,i){var n=(i=i||{}).newline?"\n":"",r=" {"+n,o=n+"}",a=Object(s.H)(Object(s.F)(t),(function(e){return e+r+Object(s.H)(Object(s.F)(t[e]),(function(i){return i+":"+t[e][i]+";"})).join(n)+o})).join(n),l=Object(s.H)(Object(s.F)(e),(function(t){return"@keyframes "+t+r+Object(s.H)(Object(s.F)(e[t]),(function(i){return i+r+Object(s.H)(Object(s.F)(e[t][i]),(function(n){var r=e[t][i][n];return"d"===n&&(r='path("'+r+'")'),n+":"+r+";"})).join(n)+o})).join(n)+o})).join(n);return a||l?["<![CDATA[",a,l,"]]>"].join(n):""}(r.cssNodes,r.cssAnims,{newline:!0});if(c){var h=Fm("style","stl",{},[],c);o.push(h)}}return Gm(i,n,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Hm(this.renderToVNode({animation:Object(s.P)(t.cssAnimation,!0),emphasis:Object(s.P)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(s.P)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,i){for(var n,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=p-1;g>f;g--)n=a[--s-1];for(var m=f+1;m<d;m++){var y={};yy(h[m],y,e);var v=Fm("g","clip-g-"+l++,y,[]);(n?n.children:i).push(v),a[s++]=v,n=v}r=h;var b=fy(c,e);b&&(n?n.children:i).push(b)}}},t.prototype.resize=function(t,e){var i=this._opts,n=this.root,r=this._viewport;if(null!=t&&(i.width=t),null!=e&&(i.height=e),n&&r&&(r.style.display="none",t=pf(n,0,i),e=pf(n,1,i),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(Object(ue.n)(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=Object(ue.c)(e))&&i+"base64,"+e:i+"charset=UTF-8,"+encodeURIComponent(e)},t}();function Ry(t){return null==t?0:t.length||1}function zy(t){return t}var By=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||zy,this._newKeyGetter=n||zy,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=Ry(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],c=Ry(l),h=Ry(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),n[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=Ry(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=Ry(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Vy=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Fy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Hy(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var $y=function(t){this.otherDims={},null!=t&&s.m(this,t)},Gy=cn(),Wy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Uy=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Xy(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(s.P)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ku(this.source),i=!Zy(t),n="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=Wy[l]||"f",u&&(n+=u.uid),n+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Yy(t){return t instanceof Uy}function qy(t){for(var e=Object(s.f)(),i=0;i<(t||[]).length;i++){var n=t[i],r=Object(s.A)(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function Xy(t){var e=Gy(t);return e.dimNameMap||(e.dimNameMap=qy(t.dimensionsDefine))}function Zy(t){return t>30}var Ky,Qy,Jy,tv,ev,iv,nv,rv=s.A,ov=s.H,av="undefined"==typeof Int32Array?Array:Int32Array,sv=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lv=["_approximateExtent"],uv=function(){function t(t,e){var i;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n=!1;Yy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],d=s.C(h)?new $y({name:h}):h instanceof $y?h:new $y(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=u[p]&&(l=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),n&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=s.f();s.k(o,(function(t){g.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(s.z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r=this;if(t instanceof gc&&(n=t),!n){var o=this.dimensions,a=xu(t)||s.u(t)?new Ou(t,o.length):t;n=new gc;var l=ov(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));n.initData(a,l,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=function(t,e){var i={},n=i.encode={},r=Object(s.f)(),o=[],a=[],l={};Object(s.k)(t.dimensions,(function(e){var i,s=t.getDimensionInfo(e),u=s.coordDim;if(u){0;var c=s.coordDimIndex;Fy(n,u)[c]=e,s.isExtraCoord||(r.set(u,1),"ordinal"!==(i=s.type)&&"time"!==i&&(o[0]=e),Fy(l,u)[c]=t.getDimensionIndex(s.name)),s.defaultTooltip&&a.push(e)}gl.each((function(t,e){var i=Fy(n,e),r=s.otherDims[e];null!=r&&!1!==r&&(i[r]=s.name)}))}));var u=[],c={};r.each((function(t,e){var i=n[e];c[e]=i[0],u=u.concat(i)})),i.dataDimsOnCoord=u,i.dataDimIndicesOnCoord=Object(s.H)(u,(function(e){return t.getDimensionInfo(e).storeDimIndex})),i.encodeFirstDimNotExtra=c;var h=n.label;h&&h.length&&(o=h.slice());var d=n.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new Vy(l,e),i}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;a<r;a++){var s=a-n;this._nameList[a]=e[s],o&&nv(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&"typedArray"!==t.getSource().sourceFormat&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var n=this._nameList,r=this._idList;if("original"===i.getSource().sourceFormat&&!i.pure)for(var o=[],a=t;a<e;a++){var s=i.getItem(a,o);if(!this.hasItemOption&&en(s)&&(this.hasItemOption=!0),s){var l=s.name;null==n[a]&&null!=l&&(n[a]=an(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=an(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)nv(this,a);Ky(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){rv(t)?s.m(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=Jy(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return Qy(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return s.t(t)?n.getValues(ov(t,(function(t){return i._getStoreDimIndex(t)})),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];var n=i&&i[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){s.w(t)&&(i=e,e=t,t=[]);var n=i||this,r=ov(tv(t),this._getStoreDimIndex,this);this._store.each(r,n?s.c(e,n):e)},t.prototype.filterSelf=function(t,e,i){s.w(t)&&(i=e,e=t,t=[]);var n=i||this,r=ov(tv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?s.c(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=s.F(t),r=[];return s.k(n,(function(n){var o=e._getStoreDimIndex(n);i[o]=t[n],r.push(o)})),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){s.w(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,(function(){n.push(e&&e.apply(this,arguments))}),i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=ov(tv(t),this._getStoreDimIndex,this),a=iv(this);return a._store=this._store.map(o,r?s.c(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this;var o=ov(tv(t),this._getStoreDimIndex,this);this._store.modify(o,r?s.c(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=iv(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.minmaxDownSample=function(t,e){var i=iv(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},t.prototype.lttbDownSample=function(t,e){var i=iv(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new hs(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new By(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Qy(t,e)}),(function(t){return Qy(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},rv(t)?s.m(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),s.t(r)?r=r.slice():rv(r)&&(r=s.m({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,rv(e)?s.m(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){rv(t)?s.m(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?s.m(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Eo(i,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){s.k(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ov(this.dimensions,this._getDimInfo,this),this.hostModel)),ev(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];s.w(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(s.S(arguments)))})},t.internalField=(Ky=function(t){var e=t._invertedIndicesMap;s.k(e,(function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new av(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}}))},Jy=function(t,e,i){return an(t._getCategory(e,i),null)},Qy=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=Jy(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},tv=function(t){return s.t(t)||(t=null!=t?[t]:[]),t},iv=function(e){var i=new t(e._schema?e._schema:ov(e.dimensions,e._getDimInfo,e),e.hostModel);return ev(i,e),i},ev=function(t,e){s.k(sv.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,s.k(lv,(function(i){t[i]=s.d(e[i])})),t._calculationInfo=s.m({},e._calculationInfo)},void(nv=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=Jy(t,r,e)),null==s&&null!=o&&(n[e]=s=Jy(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),n[e]=s}})),t}();function cv(t,e){xu(t)||(t=wu(t));var i=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(s.f)(),o=[],a=function(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return Object(s.k)(e,(function(t){var e;Object(s.A)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,i,n,e.dimensionsCount),l=e.canOmitUnusedDimensions&&Zy(a),u=n===t.dimensionsDefine,c=u?Xy(t):qy(n),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var d=Object(s.f)(h),p=new cc(a),f=0;f<p.length;f++)p[f]=-1;function g(t){var e=p[t];if(e<0){var i=n[t],r=Object(s.A)(i)?i:{name:i},a=new $y,l=r.name;null!=l&&null!=c.get(l)&&(a.name=a.displayName=l),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var u=o.length;return p[t]=u,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!l)for(f=0;f<a;f++)g(f);d.each((function(t,e){var i=Ki(t).slice();if(1===i.length&&!Object(s.C)(i[0])&&i[0]<0)d.set(e,!1);else{var n=d.set(e,[]);Object(s.k)(i,(function(t,i){var r=Object(s.C)(t)?c.get(t):t;null!=r&&r<a&&(n[i]=r,y(g(r),e,i))}))}}));var m=0;function y(t,e,i){null!=gl.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,r.set(e,!0))}Object(s.k)(i,(function(t){var e,i,n,r;if(Object(s.C)(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=Object(s.m)({},r)).ordinalMeta=o,i=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var l=d.get(e);if(!1!==l){if(!(l=Ki(l)).length)for(var c=0;c<(i&&i.length||1);c++){for(;m<a&&null!=g(m).coordDim;)m++;m<a&&l.push(m++)}Object(s.k)(l,(function(t,o){var a=g(t);if(u&&null!=r.type&&(a.type=r.type),y(Object(s.i)(a,r),e,o),null==a.name&&i){var l=i[o];!Object(s.A)(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}n&&Object(s.i)(a.otherDims,n)}))}}));var v=e.generateCoord,b=e.generateCoordCount,x=null!=b;b=v?b||1:0;var _=v||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(l)Object(s.k)(o,(function(t){w(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<a;S++){var C=g(S);null==C.coordDim&&(C.coordDim=hv(_,r,x),C.coordDimIndex=0,(!v||b<=0)&&(C.isExtraCoord=!0),b--),w(C),null!=C.type||Sl(t,S)!==ml&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return function(t){for(var e=Object(s.f)(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}(o),new Uy({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:l})}function hv(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var dv=function(t){this.coordSysDims=[],this.axisMap=Object(s.f)(),this.categoryAxisMap=Object(s.f)(),this.coordSysName=t};var pv={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",fn).models[0],o=t.getReferringComponents("yAxis",fn).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),fv(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),fv(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",fn).models[0];e.coordSysDims=["single"],i.set("single",r),fv(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",fn).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),fv(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),fv(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(s.k)(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),fv(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function fv(t){return"category"===t.get("type")}function gv(t,e,i){var n,r,o,a=(i=i||{}).byIndex,l=i.stackedCoordDimension;!function(t){return!Yy(t.schema)}(e)?(r=e.schema,n=r.dimensions,o=e.store):n=e;var u,c,h,d,p=!(!t||!t.get("stack"));if(Object(s.k)(n,(function(t,e){Object(s.C)(t)&&(n[e]=t={name:t}),p&&!t.isExtraCoord&&(a||u||!t.ordinalMeta||(u=t),c||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(c=t))})),!c||a||u||(a=!0),c){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,g=c.type,m=0;Object(s.k)(n,(function(t){t.coordDim===f&&m++}));var y={name:h,coordDim:f,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},v={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(d,g),v.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(n.push(y),n.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function mv(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function yv(t,e){return mv(t,e)?t.getCalculationInfo("stackResultDimension"):e}var vv=function(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=wu(t)):o="original"===(n=r.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),i=new dv(e),n=pv[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}(e),l=function(t,e){var i,n=t.get("coordinateSystem"),r=Gl.get(n);return e&&e.coordSysDims&&(i=s.H(e.coordSysDims,(function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=Hy(r)}return i}))),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}(e,a),u=i.useEncodeDefaulter,c=s.w(u)?u:u?s.h(xl,l,e):null,h=cv(n,{coordDimensions:l,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),d=function(t,e,i){var n,r;return i&&s.k(t,(function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==n||(t[n].otherDims.itemName=0),n}(h.dimensions,i.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),f=gv(e,{schema:h,store:p}),g=new uv(h,e);g.setCalculationInfo(f);var m=null!=d&&function(t){if("original"===t.sourceFormat){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!s.t(tn(e))}}(n)?function(t,e,i,n){return n===d?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:p,null,m),g},bv=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.getInitialData=function(t){return vv(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ci,i=sf("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=sf(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Uc);function xv(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=zu(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(zu(t,e,i[a]));return o.join(" ")}}function _v(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!Object(s.t)(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}function wv(t,e){this.parent.drift(t,e)}var Sv=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=sf(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=wv,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ra(this.childAt(0))},e.prototype.downplay=function(){oa(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Ta(d,h,a,i),Ea(d)}if(this._updateCommon(t,i,s,n,r),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Da(d,h,a,i)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,i,n,r){var o,a,l,u,c,h,d,p,f,g=this.childAt(0),m=t.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,l=n.selectItemStyle,u=n.focus,c=n.blurScope,d=n.labelStatesModels,p=n.hoverScale,f=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),l=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),u=v.get("focus"),c=v.get("blurScope"),h=v.get("disabled"),d=Fa(y),p=v.getShallow("scale"),f=y.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var x=uf(t.getItemVisual(e,"symbolOffset"),i);x&&(g.x=x[0],g.y=x[1]),f&&g.attr("cursor",f);var _=t.getItemVisual(e,"style"),w=_.fill;if(g instanceof uo){var S=g.style;g.useStyle(Object(s.m)({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else g.__isEmptyBrush?g.useStyle(Object(s.m)({},_)):g.useStyle(_),g.style.decal=null,g.setColor(w,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var C=t.getItemVisual(e,"liftZ"),M=this._z2;null!=C?null==M&&(this._z2=g.z2,g.z2+=C):null!=M&&(g.z2=M,this._z2=null);var k=r&&r.useNameLabel;Va(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:function(e){return k?t.getName(e):xv(t,e)},inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=g.ensureState("emphasis");O.style=o,g.ensureState("select").style=l,g.ensureState("blur").style=a;var A=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;O.scaleX=this._sizeX*A,O.scaleY=this._sizeY*A,this.setSymbolScale(1),va(this,u,c,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=No(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&Pa(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Pa(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return lf(t.getItemVisual(e,"symbolSize"))},e}(Ci);function Cv(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function Mv(t){return null==t||Object(s.A)(t)||(t={isIgnore:t}),t||{}}function kv(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:Fa(e),cursorStyle:e.get("cursor")}}var Ov=function(){function t(t){this.group=new Ci,this._SymbolCtor=t||Sv}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Mv(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=kv(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add((function(n){var r=u(n);if(Cv(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(Cv(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)i.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Ta(d,m,n)}i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}),n)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kv(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=Mv(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Cv(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),i.hostModel)})):e.removeAll()},t}();function Av(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=function(t,e){var i=0,n=t.scale.getExtent();"start"===e?i=n[0]:"end"===e?i=n[1]:Object(s.z)(e)&&!isNaN(e)?i=e:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]);return i}(r,i),a=n.dim,l=r.dim,u=e.mapDimension(l),c=e.mapDimension(a),h="x"===l||"radius"===l?1:0,d=Object(s.H)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,f=e.getCalculationInfo("stackResultDimension");return mv(e,d[0])&&(p=!0,d[0]=f),mv(e,d[1])&&(p=!0,d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:a,stacked:!!p,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Iv(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}var Tv="undefined"!=typeof Float32Array,Dv=Tv?Float32Array:Array;function Lv(t){return Object(s.t)(t)?Tv?new Float32Array(t):t:new Dv(t)}var Pv=Math.min,jv=Math.max;function Nv(t,e){return isNaN(t)||isNaN(e)}function Ev(t,e,i,n,r,o,a,s,l){for(var u,c,h,d,p,f,g=i,m=0;m<n;m++){var y=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(Nv(y,v)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](y,v),h=y,d=v;else{var b=y-u,x=v-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){for(var _=g+o,w=e[2*_],S=e[2*_+1];w===y&&S===v&&m<n;)m++,g+=o,w=e[2*(_+=o)],S=e[2*_+1],b=(y=e[2*g])-u,x=(v=e[2*g+1])-c;var C=m+1;if(l)for(;Nv(w,S)&&C<n;)C++,w=e[2*(_+=o)],S=e[2*_+1];var M=.5,k=0,O=0,A=void 0,I=void 0;if(C>=n||Nv(w,S))p=y,f=v;else{k=w-u,O=S-c;var T=y-u,D=w-y,L=v-c,P=S-v,j=void 0,N=void 0;if("x"===s){var E=k>0?1:-1;p=y-E*(j=Math.abs(T))*a,f=v,A=y+E*(N=Math.abs(D))*a,I=v}else if("y"===s){var R=O>0?1:-1;p=y,f=v-R*(j=Math.abs(L))*a,A=y,I=v+R*(N=Math.abs(P))*a}else j=Math.sqrt(T*T+L*L),p=y-k*a*(1-(M=(N=Math.sqrt(D*D+P*P))/(N+j))),f=v-O*a*(1-M),I=v+O*a*M,A=Pv(A=y+k*a*M,jv(w,y)),I=Pv(I,jv(S,v)),A=jv(A,Pv(w,y)),f=v-(O=(I=jv(I,Pv(S,v)))-v)*j/N,p=Pv(p=y-(k=A-y)*j/N,jv(u,y)),f=Pv(f,jv(c,v)),A=y+(k=y-(p=jv(p,Pv(u,y))))*N/j,I=v+(O=v-(f=jv(f,Pv(c,v))))*N/j}t.bezierCurveTo(h,d,p,f,y,v),h=A,d=I}else t.lineTo(y,v)}u=y,c=v,g+=o}return m}var Rv=function(){this.smooth=0,this.smoothConstraint=!0},zv=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rv},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Nv(i[2*r-2],i[2*r-1]);r--);for(;n<r&&Nv(i[2*n],i[2*n+1]);n++);}for(;n<r;)n+=Ev(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path.data,o=Er.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:i=r[l++],n=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-i)/(u-i):(t-n)/(c-n))<=1&&g>=0){var m=a?(c-n)*g+n:(u-i)*g+i;return a?[t,m]:[m,t]}i=u,n=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],p=r[l++],f=r[l++];var y=a?qt(i,u,h,p,t,s):qt(n,c,d,f,t,s);if(y>0)for(var v=0;v<y;v++){var b=s[v];if(b<=1&&b>=0){m=a?Ut(n,c,d,f,b):Ut(i,u,h,p,b);return a?[t,m]:[m,t]}}i=p,n=f}}},e}(io),Bv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(Rv),Vv=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return o(e,t),e.prototype.getDefaultShape=function(){return new Bv},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Nv(i[2*o-2],i[2*o-1]);o--);for(;r<o&&Nv(i[2*r],i[2*r+1]);r++);}for(;r<o;){var s=Ev(t,i,r,o,o,1,e.smooth,a,e.connectNulls);Ev(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(io);function Fv(t,e,i,n,r){var o=t.getArea(),a=o.x,l=o.y,u=o.width,c=o.height,h=i.get(["lineStyle","width"])||0;a-=h/2,l-=h/2,u+=h,c+=h,u=Math.ceil(u),a!==Math.floor(a)&&(a=Math.floor(a),u++);var d=new vo({shape:{x:a,y:l,width:u,height:c}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),g=p.inverse;f?(g&&(d.shape.x+=u),d.shape.width=0):(g||(d.shape.y+=c),d.shape.height=0);var m=Object(s.w)(r)?function(t){r(t,d)}:null;Da(d,{shape:{width:u,height:c,x:a,y:l}},i,null,n,m)}return d}function Hv(t,e,i){var n=t.getArea(),r=Li(n.r0,1),o=Li(n.r,1),a=new Eh({shape:{cx:Li(t.cx,1),cy:Li(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=n.startAngle:a.shape.r=r,Da(a,{shape:{endAngle:n.endAngle,r:o}},i));return a}function $v(t,e,i,n,r){return t?"polar"===t.type?Hv(t,e,i):"cartesian2d"===t.type?Fv(t,e,i,n,r):null:null}function Gv(t,e){return t.type===e}function Wv(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function Uv(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function Yv(t,e){var i=Uv(t),n=i[0],r=i[1],o=Uv(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function qv(t){return s.z(t)?t:t?.5:0}function Xv(t,e,i,n,r){var o=i.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),n){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Zv(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=n.length-1;a>=0;a--){var l=t.getDimensionInfo(n[a].dimension);if("x"===(r=l&&l.coordDim)||"y"===r){o=n[a];break}}if(o){var u=e.getAxis(r),c=s.H(o.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=c.length,d=o.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=function(t,e){var i,n,r=[],o=t.length;function a(t,e,i){var n=t.coord,r=(i-n)/(e.coord-n);return{coord:i,color:Object(le.b)(r,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(u>e){n?r.push(a(n,l,e)):i&&r.push(a(i,l,0),a(i,l,e));break}i&&(r.push(a(i,l,0)),i=null),r.push(l),n=l}}return r}(c,"x"===r?i.getWidth():i.getHeight()),f=p.length;if(!f&&h)return c[0].coord<0?d[1]?d[1]:c[h-1].color:d[0]?d[0]:c[0].color;var g=p[0].coord-10,m=p[f-1].coord+10,y=m-g;if(y<.001)return"transparent";s.k(p,(function(t){t.offset=(t.coord-g)/y})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var v=new sd(0,0,0,0,p,!0);return v[r]=g,v[r+"2"]=m,v}}}function Kv(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Sv.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),l={};return s.k(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);l[e]=1})),function(t){return!l.hasOwnProperty(e.get(a,t))}}}}function Qv(t,e){return[t[2*e],t[2*e+1]]}function Jv(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Fo.length;e++)if(t.get([Fo[e],"endLabel","show"]))return!0;return!1}function tb(t,e,i,n){if(Gv(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=Jv(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Fv(e,i,n,(function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!n.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return Hv(e,i,n)}var eb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){var t=new Ci,e=new Ov;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=s.c(this._changePolyState,this)},e.prototype.render=function(t,e,i){var n=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.getLayout("points")||[],c="polar"===n.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!e.ssr&&t.get("animation"),y=!l.isEmpty(),v=l.get("origin"),b=Av(n,o,v),x=y&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=Lv(2*n),o=0;o<n;o++){var a=Iv(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(n,o,b),_=t.get("showSymbol"),w=t.get("connectNulls"),S=_&&!c&&Kv(t,o,n),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),C.setItemGraphicEl(e,null))})),_||d.remove(),r.add(g);var M,k=!c&&t.get("step");n&&n.getArea&&t.get("clip",!0)&&(null!=(M=n.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var O=Zv(o,n,i)||o.getVisual("style")[o.getVisual("drawType")];if(p&&h.type===n.type&&k===this._step){y&&!f?f=this._newPolygon(u,x):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,n,Zs(O));var A=g.getClipPath();if(A)Da(A,{shape:tb(this,n,!1,t).shape},t);else g.setClipPath(tb(this,n,!0,t));_&&d.updateData(o,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Wv(this._stackedOnPoints,x)&&Wv(this._points,u)||(m?this._doUpdateAnimation(o,x,n,i,k,v,w):(k&&(x&&(x=Xv(x,u,n,k,w)),u=Xv(u,null,n,k,w)),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))}else _&&d.updateData(o,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(o,n,M),k&&(x&&(x=Xv(x,u,n,k,w)),u=Xv(u,null,n,k,w)),p=this._newPolyline(u),y?f=this._newPolygon(u,x):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,n,Zs(O)),g.setClipPath(tb(this,n,!0,t));var I=t.getModel("emphasis"),T=I.get("focus"),D=I.get("blurScope"),L=I.get("disabled");(p.useStyle(s.i(a.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),wa(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);No(p).seriesIndex=t.seriesIndex,va(p,T,D,L);var P=qv(t.get("smooth")),j=t.get("smoothMonotone");if(p.setShape({smooth:P,smoothMonotone:j,connectNulls:w}),f){var N=o.getCalculationInfo("stackedOnSeries"),E=0;f.useStyle(s.i(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(E=qv(N.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:E,smoothMonotone:j,connectNulls:w}),wa(f,t,"areaStyle"),No(f).seriesIndex=t.seriesIndex,va(f,T,D,L)}var R=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=R)})),this._polyline.onHoverStateChange=R,this._data=o,this._coordSys=n,this._stackedOnPoints=x,this._points=u,this._step=k,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){No(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=un(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Sv(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else tp.prototype.highlight.call(this,t,e,i,n)},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=un(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else tp.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;Jo(this._polyline,t),e&&Jo(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new zv({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Vv({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var l=t.hostModel,u=l.get("animationDuration");s.w(u)&&(u=u(null));var c=l.get("animationDelay")||0,h=s.w(c)?c(null):c;t.eachItemGraphicEl((function(t,o){var l=t;if(l){var d=[t.x,t.y],p=void 0,f=void 0,g=void 0;if(i)if(r){var m=i,y=e.pointToCoord(d);n?(p=m.startAngle,f=m.endAngle,g=-y[1]/180*Math.PI):(p=m.r0,f=m.r,g=y[0])}else{var v=i;n?(p=v.x,f=v.x+v.width,g=t.x):(p=v.y+v.height,f=v.y,g=t.y)}var b=f===p?0:(g-p)/(f-p);a&&(b=1-b);var x=s.w(c)?c(o):u*b+h,_=l.getSymbolPath(),w=_.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(Jv(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new jo({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,i,n=t.length/2;n>0&&(e=t[2*n-2],i=t[2*n-1],isNaN(e)||isNaN(i));n--);return n-1}(a);l>=0&&(Va(o,Fa(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,i){return null!=i?_v(r,i):xv(r,t)},enableTextSetter:!0},function(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),c=i.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=e.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),_=g?"x":"y",w=function(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(n<=e&&r>=e||n>=e&&r<=e){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}(u,v,_),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var k=Qv(u,S[0]);s.attr({x:k[0]+b,y:k[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(k=l.getPointOn(v,_))&&s.attr({x:k[0]+b,y:k[1]+x});var O=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(M=bn(i,d,O,A,w.t))}n.lastFrameIndex=S[0]}else{var I=1===t||n.lastFrameIndex>0?S[0]:0;k=Qv(u,I);r&&(M=c.getRawValue(I)),s.attr({x:k[0]+b,y:k[1]+x})}if(r){var T=Xa(s);"function"==typeof T.setLabelText&&T.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,i,n,r,o,a,s){for(var l=function(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],m=Av(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var C=y[w],M=y[w+1],k=v[S],O=v[S+1];(isNaN(C)||isNaN(M))&&(C=k,M=O),u.push(C,M),c.push(k,O),h.push(i[w],i[w+1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var A=x.idx,I=m.dataDimsForPoint,T=r.dataToPoint([e.get(I[0],A),e.get(I[1],A)]);S=2*A,u.push(T[0],T[1]),c.push(v[S],v[S+1]);var D=Iv(m,r,e,A);h.push(D[0],D[1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(A));break;case"-":_=!1}_&&(p.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var L=u.length,P=Lv(L),j=Lv(L),N=Lv(L),E=Lv(L),R=[];for(b=0;b<f.length;b++){var z=f[b],B=2*b,V=2*z;P[B]=u[V],P[B+1]=u[V+1],j[B]=c[V],j[B+1]=c[V+1],N[B]=h[V],N[B+1]=h[V+1],E[B]=d[V],E[B+1]=d[V+1],R[b]=p[z]}return{current:P,next:j,stackedOnCurrent:N,stackedOnNext:E,status:R}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=Xv(c.stackedOnCurrent,c.current,i,r,a),h=Xv(c.current,null,i,r,a),f=Xv(c.stackedOnNext,c.next,i,r,a),p=Xv(c.next,null,i,r,a)),Yv(h,p)>3e3||l&&Yv(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Ta(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Ta(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++){if("="===y[v].cmd){var b=t.getItemGraphicEl(y[v].idx1);b&&m.push({el:b,ptIdx:v})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var i=m[e].el,n=2*m[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(tp);function ib(t,e){return{seriesType:t,plan:Xc(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=Object(s.H)(n.dimensions,(function(t){return i.mapDimension(t)})).slice(0,2),l=a.length,u=i.getCalculationInfo("stackResultDimension");mv(i,a[0])&&(a[0]=u),mv(i,a[1])&&(a[1]=u);var c=i.getStore(),h=i.getDimensionIndex(a[0]),d=i.getDimensionIndex(a[1]);return l&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&Lv(i*l),a=[],s=[],u=t.start,p=0;u<t.end;u++){var f=void 0;if(1===l){var g=c.get(h,u);f=n.dataToPoint(g,null,s)}else a[0]=c.get(h,u),a[1]=c.get(d,u),f=n.dataToPoint(a,null,s);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(u,f.slice())}o&&e.setLayout("points",r)}}}}}}var nb={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},rb=function(t){return Math.round(t.length/2)};function ob(t){return{seriesType:t,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p)):"minmax"===r&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/p));var f=void 0;Object(s.C)(r)?f=nb[r]:Object(s.w)(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(u.dim),1/p,f,rb))}}}}}function ab(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function sb(t){return t.dim+t.index}function lb(t,e){var i=[];return e.eachSeriesByType(t,(function(t){pb(t)&&i.push(t)})),i}function ub(t){var e=function(t){var e={};Object(s.k)(t,(function(t){var i=t.coordinateSystem.getBaseAxis();if("time"===i.type||"value"===i.type)for(var n=t.getData(),r=i.dim+"_"+i.index,o=n.getDimensionIndex(n.mapDimension(i.dim)),a=n.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var l=r[a]-r[a-1];l>0&&(o=null===o?l:Math.min(o,l))}i[n]=o}}return i}(t),i=[];return Object(s.k)(t,(function(t){var n,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)n=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);n=s?l/c*s:l}else{var h=t.getData();n=Math.abs(o[1]-o[0])/h.count()}var d=Di(t.get("barWidth"),n),p=Di(t.get("barMaxWidth"),n),f=Di(t.get("barMinWidth")||(fb(t)?.5:1),n),g=t.get("barGap"),m=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:sb(r),stackId:ab(t)})})),cb(i)}function cb(t){var e={};Object(s.k)(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,o=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[n]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var i={};return Object(s.k)(e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(s.F)(n).length;o=Math.max(35-4*a,15)+"%"}var l=Di(o,r),u=Di(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-l)/(h+(h-1)*u);d=Math.max(d,0),Object(s.k)(n,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,c-=n+u*n,h--}else{var n=d;e&&e<n&&(n=Math.min(e,c)),i&&i>n&&(n=i),n!==d&&(t.width=n,c-=n+u*n,h--)}})),d=(c-l)/(h+(h-1)*u),d=Math.max(d,0);var p,f=0;Object(s.k)(n,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+u)})),p&&(f-=p.width*u);var g=-f/2;Object(s.k)(n,(function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+u)}))})),i}function hb(t,e){var i=lb(t,e),n=ub(i);Object(s.k)(i,(function(t){var e=t.getData(),i=t.coordinateSystem.getBaseAxis(),r=ab(t),o=n[sb(i)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function db(t){return{seriesType:t,plan:Xc(),reset:function(t){if(pb(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),r=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(n.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=mv(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=function(t,e){var i=e.model.get("startValue");i||(i=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?i>0?i:1:i))}(0,r),p=fb(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var n,r=t.count,l=p&&Lv(3*r),u=p&&s&&Lv(3*r),v=p&&Lv(r),b=i.master.getRect(),x=h?b.width:b.height,_=e.getStore(),w=0;null!=(n=t.next());){var S=_.get(c?g:o,n),C=_.get(a,n),M=d,k=void 0;c&&(k=+S-_.get(o,n));var O=void 0,A=void 0,I=void 0,T=void 0;if(h){var D=i.dataToPoint([S,C]);if(c)M=i.dataToPoint([k,C])[0];O=M,A=D[1]+y,I=D[0]-M,T=m,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else{D=i.dataToPoint([C,S]);if(c)M=i.dataToPoint([C,k])[1];O=D[0]+y,A=M,I=m,T=D[1]-M,Math.abs(T)<f&&(T=(T<=0?-1:1)*f)}p?(l[w]=O,l[w+1]=A,l[w+2]=h?I:T,u&&(u[w]=h?b.x:O,u[w+1]=h?A:b.y,u[w+2]=x),v[n]=n):e.setItemLayout(n,{x:O,y:A,width:I,height:T}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function pb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function fb(t){return t.pipelineContext&&t.pipelineContext.large}var gb=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(t,e){return vv(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,i){var n=this.coordinateSystem;if(n&&n.clampData){var r=n.clampData(t),o=n.dataToPoint(r);if(i)Object(s.k)(n.getAxes(),(function(t,i){if("category"===t.type&&null!=e){var n=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[i],l="x1"===e[i]||"y1"===e[i];if(l&&!a&&(s+=1),n.length<2)return;if(2===n.length)return void(o[i]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<n.length;d++){var p=n[d].coord,f=d===n.length-1?n[d-1].tickValue+h:n[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-n[0].tickValue)}null==c&&(u?u&&(c=n[n.length-1].coord):c=n[0].coord),o[i]=t.toGlobalCoord(c)}}));else{var a=this.getData(),l=a.getLayout("offset"),u=a.getLayout("size"),c=n.getBaseAxis().isHorizontal()?0:1;o[c]+=l+u/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Uc);Uc.registerClass(gb);var mb=gb,yb=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(){return vv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,i){return i.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=fs(mb.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(mb),vb=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},bb=function(t){function e(e){var i=t.call(this,e)||this;return i.type="sausage",i}return o(e,t),e.prototype.getDefaultShape=function(){return new vb},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(t.moveTo(p*r+i,f*r+n),t.arc(p*s+i,f*s+n,a,-Math.PI+l,l,!c)):t.moveTo(p*o+i,f*o+n),t.arc(i,n,o,l,u,!c),t.arc(g*s+i,m*s+n,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(i,n,r,u,l,c)},e}(io);function xb(t,e,i){return e*Math.sin(t)*(i?-1:1)}function _b(t,e,i){return e*Math.cos(t)*(i?1:-1)}function wb(t,e,i){var n=t.get("borderRadius");if(null==n)return i?{cornerRadius:0}:null;Object(s.t)(n)||(n=[n,n,n,n]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(s.H)(n,(function(t){return di(t,r)}))}}var Sb=Math.max,Cb=Math.min;var Mb=function(t){function e(){var i=t.call(this)||this;return i.type=e.type,i._isFirstFrame=!0,i}return o(e,t),e.prototype.render=function(t,e,i,n){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,i,n){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var i=t.get("realtimeSort",!0),n=e.getBaseAxis();0;if(i&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(t,l);h&&this._enableRealtimeSort(h,a,i);var d=t.get("clip",!0)||h,p=function(t,e){var i=t.getArea&&t.getArea();if(Gv(t,"cartesian2d")){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),y=m.get("borderRadius")||0,v=[],b=this._backgroundEls,x=n&&n.isInitSort,_=n&&"changeAxisOrder"===n.type;function w(t){var e=Pb[l.type](a,t),i=function(t,e,i){return new("polar"===t.type?Eh:vo)({shape:Vb(e,i,t),silent:!0,z2:0})}(l,r,e);return i.useStyle(m.getItemStyle()),"cartesian2d"===l.type?i.setShape("r",y):i.setShape("cornerRadius",y),v[t]=i,i}a.diff(s).add((function(e){var i=a.getItemModel(e),n=Pb[l.type](a,e,i);if(g&&w(e),a.hasValue(e)&&Lb[l.type](n)){var s=!1;d&&(s=kb[l.type](p,n));var m=Ob[l.type](t,a,e,n,r,c,u.model,!1,f);h&&(m.forceLabelAnimation=!0),Nb(m,a,e,i,n,t,r,"polar"===l.type),x?m.attr({shape:n}):h?Ab(h,c,m,n,e,r,!1,!1):Da(m,{shape:n},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,i){var n=a.getItemModel(e),S=Pb[l.type](a,e,n);if(g){var C=void 0;0===b.length?C=w(i):((C=b[i]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?C.setShape("r",y):C.setShape("cornerRadius",y),v[e]=C);var M=Pb[l.type](a,e);Ta(C,{shape:Vb(r,M,l)},c,e)}var k=s.getItemGraphicEl(i);if(a.hasValue(e)&&Lb[l.type](S)){var O=!1;if(d&&(O=kb[l.type](p,S))&&o.remove(k),k?Ea(k):k=Ob[l.type](t,a,e,S,r,c,u.model,!!k,f),h&&(k.forceLabelAnimation=!0),_){var A=k.getTextContent();if(A){var I=Xa(A);null!=I.prevValue&&(I.prevValue=I.value)}}else Nb(k,a,e,n,S,t,r,"polar"===l.type);x?k.attr({shape:S}):h?Ab(h,c,k,S,e,r,!0,_):Ta(k,{shape:S},t,e,null),a.setItemGraphicEl(e,k),k.ignore=O,o.add(k)}else o.remove(k)})).remove((function(e){var i=s.getItemGraphicEl(e);i&&Na(i,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ci);S.removeAll();for(var C=0;C<v.length;++C)S.add(v[C]);o.add(S),this._backgroundEls=v,this._data=a},e.prototype._renderLarge=function(t,e,i){this._clear(),zb(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),zb(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&$v(t.coordinateSystem,!1,t),i=this.group;e?i.setClipPath(e):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,i){var n=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,i),this._isFirstFrame=!1;else{var o=function(t){var i=e.getItemGraphicEl(t),n=i&&i.shape;return n&&Math.abs(r.isHorizontal()?n.height:n.width)||0};this._onRendered=function(){n._updateSortWithinSameData(e,o,r,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,i){var n=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=i(e);r=null==r?NaN:r,n.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),n.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(s.H)(n,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,i){for(var n=i.scale,r=t.mapDimension(i.dim),o=Number.MAX_VALUE,a=0,s=n.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,n.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var i=e.scale,n=i.getExtent(),r=Math.max(0,n[0]),o=Math.min(n[1],i.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==i.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,i,n){if(this._isOrderChangedWithinSameData(t,e,i)){var r=this._dataSort(t,i,e);this._isOrderDifferentInView(r,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,i){var n=e.baseAxis,r=this._dataSort(t,n,(function(i){return t.get(t.mapDimension(e.otherAxis.dim),i)}));i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(e){Na(e,t,No(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(tp),kb={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Sb(e.x,t.x),s=Cb(e.x+e.width,r),l=Sb(e.y,t.y),u=Cb(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(i<0){var n=e.r;e.r=e.r0,e.r0=n}var r=Cb(e.r,t.r),o=Sb(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(i<0){n=e.r;e.r=e.r0,e.r0=n}return a}},Ob={cartesian2d:function(t,e,i,n,r,o,a,l,u){var c=new vo({shape:Object(s.m)({},n),z2:1});(c.__dataIndex=i,c.name="item",o)&&(c.shape[r?"height":"width"]=0);return c},polar:function(t,e,i,n,r,o,a,s,l){var u=!r&&l?bb:Eh,c=new u({shape:n,z2:1});c.name="item";var h,d,p=jb(r);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===bb}||{}).isRoundCap,function(t,e,i){var n=e.position;if(!n||n instanceof Array)return pi(t,e,i);var r=h(n),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,y=d?Math.abs(u-c)/2:0,v=Math.cos,b=Math.sin,x=s+u*v(f),_=l+u*b(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*v(m),_=l+(c-o)*b(m),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*v(m),_=l+(c+o)*b(m),w="center",S="bottom";break;case"startAngle":x=s+p*v(f)+xb(f,o+y,!1),_=l+p*b(f)+_b(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+p*v(f)+xb(f,-o+y,!1),_=l+p*b(f)+_b(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+p*v(m),_=l+p*b(m),w="center",S="middle";break;case"endArc":x=s+(u+o)*v(m),_=l+(u+o)*b(m),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*v(m),_=l+(u-o)*b(m),w="center",S="top";break;case"endAngle":x=s+p*v(g)+xb(g,o+y,!0),_=l+p*b(g)+_b(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+p*v(g)+xb(g,-o+y,!0),_=l+p*b(g)+_b(g,-o+y,!0),w="right",S="middle";break;default:return pi(t,e,i)}return(t=t||{}).x=x,t.y=_,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?n.r0:n.startAngle,g[f]=n[f],(s?Ta:Da)(c,{shape:g},o)}return c}};function Ab(t,e,i,n,r,o,a,s){var l,u;o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?Ta:Da)(i,{shape:l},e,r,null),(a?Ta:Da)(i,{shape:u},e?t.baseAxis.model:null,r)}function Ib(t,e){for(var i=0;i<e.length;i++)if(!isFinite(t[e[i]]))return!0;return!1}var Tb=["x","y","width","height"],Db=["cx","cy","r","startAngle","endAngle"],Lb={cartesian2d:function(t){return!Ib(t,Tb)},polar:function(t){return!Ib(t,Db)}},Pb={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=i?function(t,e){var i=t.get(["itemStyle","borderColor"]);if(!i||"none"===i)return 0;var n=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,r,o)}(i,n):0,o=n.width>0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+a*r/2,width:n.width-o*r,height:n.height-a*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function jb(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function Nb(t,e,i,n,r,o,a,l){var u=e.getItemVisual(i,"style");if(l){if(!o.get("roundCap")){var c=t.shape,h=wb(n.getModel("itemStyle"),c,!0);Object(s.m)(c,h),t.setShape(c)}}else{var d=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(u);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var f=l?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=Fa(n);Va(t,g,{labelFetcher:o,labelDataIndex:i,defaultText:xv(o.getData(),i),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var m=t.getTextContent();if(l&&m){var y=n.get(["label","position"]);t.textConfig.inside="middle"===y||null,function(t,e,i,n){if(Object(s.z)(n))t.setTextConfig({rotation:n});else if(Object(s.t)(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,l=o.clockwise?o.endAngle:o.startAngle,u=(a+l)/2,c=i(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=u;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=l;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===y?f:y,jb(a),n.get(["label","rotate"]))}Za(m,g,o.getRawValue(i),(function(t){return _v(e,t)}));var v=n.getModel(["emphasis"]);va(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),wa(t,n),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",Object(s.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var Eb=function(){},Rb=function(t){function e(e){var i=t.call(this,e)||this;return i.type="largeBar",i}return o(e,t),e.prototype.getDefaultShape=function(){return new Eb},e.prototype.buildPath=function(t,e){for(var i=e.points,n=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<i.length;l+=3)a[n]=s,a[r]=i[l+2],o[n]=i[l+n],o[r]=i[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(io);function zb(t,e,i,n){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new Rb({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),i&&i.push(c)}var h=new Rb({shape:{points:r.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,No(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Bb),h.on("mousemove",Bb)),i&&i.push(h)}var Bb=np((function(t){var e=function(t,e,i){for(var n=t.baseDimIdx,r=1-n,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[n]=u,l[r]=o[d+2],s[n]=o[d+n],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&i>=s[1]&&i<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);No(this).dataIndex=e>=0?e:null}),30,!1);function Vb(t,e,i){if(Gv(i,"cartesian2d")){var n=e,r=i.getArea();return{x:t?n.x:r.x,y:t?r.y:n.y,width:t?n.width:r.width,height:t?r.height:n.height}}var o=e;return{cx:(r=i.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var Fb=Mb;var Hb=2*Math.PI,$b=Math.PI/180;function Gb(t,e){return nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wb(t,e){var i=Gb(t,e),n=t.get("center"),r=t.get("radius");s.t(r)||(r=[0,r]);var o,a,l=Di(i.width,e.getWidth()),u=Di(i.height,e.getHeight()),c=Math.min(l,u),h=Di(r[0],c/2),d=Di(r[1],c/2),p=t.coordinateSystem;if(p){var f=p.dataToPoint(n);o=f[0]||0,a=f[1]||0}else s.t(n)||(n=[n,n]),o=Di(n[0],l)+i.x,a=Di(n[1],u)+i.y;return{cx:o,cy:a,r0:h,r:d}}function Ub(t,e,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),r=Gb(t,i),o=Wb(t,i),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*$b,h=t.get("endAngle"),d=t.get("padAngle")*$b;h="auto"===h?c-Hb:-h*$b;var p=t.get("minAngle")*$b+d,f=0;e.each(n,(function(t){!isNaN(t)&&f++}));var g=e.getSum(n),m=Math.PI/(g||f)*2,y=t.get("clockwise"),v=t.get("roseType"),b=t.get("stillShowZeroSum"),x=e.getDataExtent(n);x[0]=0;var _=y?1:-1,w=[c,h],S=_*d/2;Nr(w,!y),c=w[0],h=w[1];var C=Yb(t);C.startAngle=c,C.endAngle=h,C.clockwise=y;var M=Math.abs(h-c),k=M,O=0,A=c;if(e.setLayout({viewRect:r,r:l}),e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:v?NaN:l});else{(n="area"!==v?0===g&&b?m:t*m:M/f)<p?(n=p,k-=p):O+=t;var r=A+_*n,o=0,c=0;d>n?c=o=A+_*n/2:(o=A+S,c=r-S),e.setItemLayout(i,{angle:n,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:v?Ti(t,x,[u,l]):l}),A=r}})),k<Hb&&f)if(k<=.001){var I=M/f;e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=I;var r=0,o=0;I<d?o=r=c+_*(i+.5)*I:(r=c+_*i*I+S,o=c+_*(i+1)*I-S),n.startAngle=r,n.endAngle=o}}))}else m=k/O,A=c,e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===p?p:t*m,o=0,a=0;r<d?a=o=A+_*r/2:(o=A+S,a=A+_*r-S),n.startAngle=o,n.endAngle=a,A+=_*r}}))}))}var Yb=cn();function qb(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0}))}}}}var Xb=Math.PI/180;function Zb(t,e,i,n,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}pm(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>i?a:o,c=Math.abs(l.label.y-i);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=n+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-i),c=n+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/a)*h)),p=e+(d+l.len2)*r,f=p-l.label.x;Kb(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function Kb(t,e,i){if(void 0===i&&(i=!1),null==t.labelStyleWidth){var n=t.label,r=n.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||i){var h=o.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:i?p>t.unconstrainedWidth?null:p:null;n.setStyle("width",f)}var g=n.getBoundingRect();o.width=g.width;var m=(n.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function Qb(t){return"center"===t.position}function Jb(t){var e,i,n=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Xb,l=n.getLayout("viewRect"),u=n.getLayout("r"),c=l.width,h=l.x,d=l.y,p=l.height;function f(t){t.ignore=!0}n.each((function(t){var l=n.getItemGraphicEl(t),d=l.shape,p=l.getTextContent(),g=l.getTextGuideLine(),m=n.getItemModel(t),y=m.getModel("label"),v=y.get("position")||m.get(["emphasis","label","position"]),b=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Di(y.get("edgeDistance"),c),w=y.get("bleedMargin"),S=m.getModel("labelLine"),C=S.get("length");C=Di(C,c);var M=S.get("length2");if(M=Di(M,c),Math.abs(d.endAngle-d.startAngle)<a)return Object(s.k)(p.states,f),p.ignore=!0,void(g&&(Object(s.k)(g.states,f),g.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(p)){var k,O,A,I,T=(d.startAngle+d.endAngle)/2,D=Math.cos(T),L=Math.sin(T);e=d.cx,i=d.cy;var P="inside"===v||"inner"===v;if("center"===v)k=d.cx,O=d.cy,I="center";else{var j=(P?(d.r+d.r0)/2*D:d.r*D)+e,N=(P?(d.r+d.r0)/2*L:d.r*L)+i;if(k=j+3*D,O=N+3*L,!P){var E=j+D*(C+u-d.r),R=N+L*(C+u-d.r),z=E+(D<0?-1:1)*M;k="edge"===x?D<0?h+_:h+c-_:z+(D<0?-b:b),O=R,A=[[j,N],[E,R],[z,R]]}I=P?"center":"edge"===x?D>0?"right":"left":D>0?"left":"right"}var B=Math.PI,V=0,F=y.get("rotate");if(Object(s.z)(F))V=F*(B/180);else if("center"===v)V=0;else if("radial"===F||!0===F){V=D<0?-T+B:-T}else if("tangential"===F&&"outside"!==v&&"outer"!==v){var H=Math.atan2(D,L);H<0&&(H=2*B+H),L>0&&(H=B+H),V=H-B}if(o=!!V,p.x=k,p.y=O,p.rotation=V,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:I});var $=p.states.select;$&&($.x+=p.x,$.y+=p.y)}else{var G=p.getBoundingRect().clone();G.applyTransform(p.getComputedTransform());var W=(p.style.margin||0)+2.1;G.y-=W/2,G.height+=W,r.push({label:p,labelLine:g,position:v,len:C,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new ot(D,L),linePoints:A,textAlign:I,labelDistance:b,labelAlignTo:x,edgeDistance:_,bleedMargin:w,rect:G,unconstrainedWidth:G.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,i,n,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;Qb(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++){if(!Qb(m=t[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?p.x<e?f[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?c-a-m.bleedMargin:a+r-h-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+r-p.x-m.bleedMargin,m.targetTextWidth=g,Kb(m,g)}}for(Zb(u,e,i,n,1,0,o,0,s,h),Zb(l,e,i,n,-1,0,o,0,s,c),d=0;d<t.length;d++){var m;if(!Qb(m=t[d])&&m.linePoints){p=m.label,f=m.linePoints;var y="edge"===m.labelAlignTo,v=p.style.padding,b=v?v[1]+v[3]:0,x=p.style.backgroundColor?0:b,_=m.rect.width+x,w=f[1][0]-f[2][0];y?p.x<e?f[2][0]=a+m.edgeDistance+_+m.labelDistance:f[2][0]=a+r-m.edgeDistance-_-m.labelDistance:(p.x<e?f[2][0]=p.x+m.labelDistance:f[2][0]=p.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(r,e,i,u,c,p,h,d);for(var g=0;g<r.length;g++){var m=r[g],y=m.label,v=m.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),b&&(Object(s.k)(y.states,f),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var _=m.linePoints;b||!_?(Object(s.k)(v.states,f),v.ignore=!0):(om(_,m.minTurnAngle),am(_,m.surfaceNormal,m.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new ot(_[0][0],_[0][1])})}}}var tx=function(t){function e(e,i,n){var r=t.call(this)||this;r.z2=2;var o=new jo;return r.setTextContent(o),r.updateData(e,i,n,!0),r}return o(e,t),e.prototype.updateData=function(t,e,i,n){var r=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),l=t.getItemLayout(e),u=Object(s.m)(wb(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))this.setShape(u);else{if(n){this.setShape(u);var c=r.getShallow("animationType");r.ecModel.ssr?(Da(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=l.r0,Da(this,{shape:{r:l.r}},r,e)):null!=i?(this.setShape({startAngle:i,endAngle:i}),Da(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(this.shape.endAngle=l.startAngle,Ta(this,{shape:{endAngle:l.endAngle}},r,e))}else Ea(this),Ta(this,{shape:u},r,e);this.useStyle(t.getItemVisual(e,"style")),wa(this,o);var h=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=o.getShallow("cursor");g&&this.attr("cursor",g),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=Object(s.m)({r:l.r+(a.get("scale")&&a.get("scaleSize")||0)},wb(a.getModel("itemStyle"),l)),Object(s.m)(this.ensureState("select"),{x:p,y:f,shape:wb(o.getModel(["select","itemStyle"]),l)}),Object(s.m)(this.ensureState("blur"),{shape:wb(o.getModel(["blur","itemStyle"]),l)});var m=this.getTextGuideLine(),y=this.getTextContent();m&&Object(s.m)(m.ensureState("select"),{x:p,y:f}),Object(s.m)(y.ensureState("select"),{x:p,y:f}),va(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},e.prototype._updateLabel=function(t,e,i){var n=e.getItemModel(i),r=n.getModel("labelLine"),o=e.getItemVisual(i,"style"),a=o&&o.fill,l=o&&o.opacity;Va(this,Fa(n),{labelFetcher:e.hostModel,labelDataIndex:i,inheritColor:a,defaultOpacity:l,defaultText:t.getFormattedLabel(i,"normal")||e.getName(i)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Uh,this.setTextGuideLine(h)),um(this,cm(n),{stroke:a,opacity:Object(s.Q)(r.get(["lineStyle","opacity"]),l,1)})}},e}(Eh),ex=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return o(e,t),e.prototype.render=function(t,e,i,n){var r,o=t.getData(),a=this._data,l=this.group;if(!a&&o.count()>0){for(var u=o.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c<o.count();++c)u=o.getItemLayout(c);u&&(r=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var h=Yb(t),d=new Eh({shape:Object(s.m)(Wb(t,i),h)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(a).add((function(t){var e=new tx(o,t,r);o.setItemGraphicEl(t,e),l.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(o,t,r),i.off("click"),l.add(i),o.setItemGraphicEl(t,i)})).remove((function(e){Na(a.getItemGraphicEl(e),t,e)})).execute(),Jb(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,r=t[1]-i.cy,o=Math.sqrt(n*n+r*r);return o<=i.r&&o>=i.r0}},e.type="pie",e}(tp);function ix(t,e,i){e=Object(s.t)(e)&&{coordDimensions:e}||Object(s.m)({encodeDefine:t.getEncode()},e);var n=t.getSource(),r=cv(n,e).dimensions,o=new uv(r,t);return o.initData(n,i),o}var nx=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),rx=cn(),ox=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new nx(s.c(this.getData,this),s.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ix(this,{coordDimensions:["value"],encodeDefaulter:s.h(_l,this)})},e.prototype.getDataParams=function(e){var i=this.getData(),n=rx(i),r=n.seats;if(!r){var o=[];i.each(i.mapDimension("value"),(function(t){o.push(t)})),r=n.seats=Ei(o,i.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Qi(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Uc);var ax=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){return vv(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,i){return i.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Uc),sx=function(){},lx=function(t){function e(e){var i=t.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return o(e,t),e.prototype.getDefaultShape=function(){return new sx},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var i,n=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,i=this._off;i<n.length;){var c=n[i++],h=n[i++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=i,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,i=e.points,n=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<i.length;){var a=i[t++],s=i[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-n[0]/2,s-n[1]/2,n[0],n[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var i=this.shape,n=i.points,r=i.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-o/2,c=n[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return t=i[0],e=i[1],n.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,i=e.points,n=e.size,r=n[0],o=n[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<i.length;){var h=i[c++],d=i[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new ft(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(io),ux=function(){function t(){this.group=new Ci}return t.prototype.updateData=function(t,e){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,i){var n=this._newAdded[0],r=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),n.endIndex=t.end,n.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,i)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new lx({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,i){var n=e.hostModel;i=i||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=i.clipShape||null,t.symbolProxy=sf(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=No(t);l.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var i=t.hoverDataIdx;i>=0&&(l.dataIndex=i+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),cx=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var r=ib("").reset(t,e,i);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new ux:new Ov,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(tp),hx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(hl),dx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),px=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fn).models[0]},e.type="cartesian2dAxis",e}(hl);s.K(px,dx);var fx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gx=s.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fx),mx=s.I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},fx),yx={category:gx,value:mx,time:s.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mx),log:s.i({logBase:10},mx)},vx=0;function bx(t){return Object(s.A)(t)&&null!=t.value?t.value:t+""}var xx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vx}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&Object(s.H)(n,bx);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!Object(s.C)(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(s.f)(this.categories))},t}(),_x={value:1,category:1,time:1,log:1};function wx(t,e,i,n){Object(s.k)(_x,(function(r,a){var l=Object(s.I)(Object(s.I)({},yx[a],!0),n,!0),u=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e+"Axis."+a,i}return o(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var i=ol(this),n=i?sl(t):{},r=e.getTheme();Object(s.I)(t,r.get(a+"Axis")),Object(s.I)(t,this.getDefaultOption()),t.type=Sx(t),i&&al(t,n,i)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xx.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=e+"Axis."+a,i.defaultOption=l,i}(i);t.registerComponentModel(u)})),t.registerSubTypeDefaulter(e+"Axis",Sx)}function Sx(t){return t.type||(t.data?"category":"value")}var Cx=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();On(Cx);var Mx=Cx;function kx(t){return"interval"===t.type||"log"===t.type}function Ox(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=$i(o/e,!0);null!=i&&a<i&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Ix(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Tx(t,0,e),Tx(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Li(Math.ceil(t[0]/a)*a,s),Li(Math.floor(t[1]/a)*a,s)],t),r}function Ax(t){var e=Math.pow(10,Hi(t)),i=t/e;return i?2===i?i=3:3===i?i=5:i*=2:i=1,Li(i*e)}function Ix(t){return ji(t)+2}function Tx(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Dx(t,e){return t>=e[0]&&t<=e[1]}function Lx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Px(t,e){return t*(e[1]-e[0])+e[0]}var jx=function(t){function e(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new xx({})),Object(s.t)(n)&&(n=new xx({categories:Object(s.H)(n,(function(t){return Object(s.A)(t)?t.value:t}))})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return o(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Dx(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Lx(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Px(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;r<o;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Mx);Mx.registerClass(jx);var Nx=jx,Ex=Li,Rx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return o(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Dx(t,this._extent)},e.prototype.normalize=function(t){return Lx(t,this._extent)},e.prototype.scale=function(t){return Px(t,this._extent)},e.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ix(t)},e.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;i[0]<n[0]&&(t?o.push({value:Ex(n[0]-e,r)}):o.push({value:i[0]}));for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=Ex(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:n[1];return i[1]>s&&(t?o.push({value:Ex(s+e,r)}):o.push({value:i[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Ex(a.value+(s+1)*u);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},e.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=ji(t.value)||0:"auto"===i&&(i=this._intervalPrecision),$s(Ex(t.value,i,!0))},e.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var o=Ox(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=Math.abs(e[0]);t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=Ex(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=Ex(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Mx);Mx.registerClass(Rx);var zx=Rx,Bx=function(t){function e(e){var i=t.call(this,e)||this;return i.type="time",i}return o(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return ks(t.value,_s[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ms(this._minLevelUnit))]||_s.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC");return function(t,e,i,n,r){var o=null;if(s.C(i))o=i;else if(s.w(i))o=i(t.value,e,{level:t.level});else{var a=s.m({},xs);if(t.level>0)for(var l=0;l<ws.length;++l)a[ws[l]]="{primary|"+a[ws[l]]+"}";var u=i?!1===i.inherit?i:s.i(i,a):a,c=Os(t.value,r);if(u[c])o=u[c];else if(u.inherit){for(l=Ss.indexOf(c)-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||a.none}if(s.t(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return ks(new Date(t.value),o,r,n)}(t,e,i,this.getSetting("locale"),n)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=function(t,e,i,n){var r=Ss,o=0;function a(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u<i&&u<=n[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var s=[],l=!r.length;if(!function(t,e,i,n){var r=Fi(e),o=Fi(i),a=function(t){return As(r,t,n)===As(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(Ms(t),n[0],n[1],i)){l&&(r=[{value:Ux(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/864e5/365)),p=Is(i),f=Es(i);break;case"half-year":case"quarter":case"month":d=Hx(e),p=Ts(i),f=Rs(i);break;case"week":case"half-week":case"day":d=Fx(e,31),p=Ds(i),f=zs(i),!0;break;case"half-day":case"quarter-day":case"hour":d=$x(e),p=Ls(i),f=Bs(i);break;case"minute":d=Gx(e,!0),p=Ps(i),f=Vs(i);break;case"second":d=Gx(e,!1),p=js(i),f=Fs(i);break;case"millisecond":d=Wx(e),p=Ns(i),f=Hs(i)}a(d,c,h,p,f,0,s),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<s.length;u++)o.push(s[u]);return s}}for(var u=[],c=[],h=0,d=0,p=0;p<r.length&&o++<1e4;++p){var f=Ms(r[p]);if((x=r[p])===Ms(x)){l(r[p],u[u.length-1]||[],c);var g=r[p+1]?Ms(r[p+1]):null;if(f!==g){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var m=[],y=0;y<c.length;++y){var v=c[y].value;0!==y&&c[y-1].value===v||(m.push(c[y]),v>=n[0]&&v<=n[1]&&h++)}var b=(n[1]-n[0])/e;if(h>1.5*b&&d>b/1.5)break;if(u.push(m),h>b||t===r[p])break}c=[]}}}var x;0;var _=Object(s.n)(Object(s.H)(u,(function(t){return Object(s.n)(t,(function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=_.length-1;for(p=0;p<_.length;++p)for(var C=_[p],M=0;M<C.length;++M)w.push({value:C[M].value,level:S-p});w.sort((function(t,e){return t.value-e.value}));var k=[];for(p=0;p<w.length;++p)0!==p&&w[p].value===w[p-1].value||k.push(w[p]);return k}(this._minLevelUnit,this._approxInterval,n,e);return(i=i.concat(r)).push({value:e[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-864e5}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=Vx.length,a=Math.min(function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i}(Vx,this._approxInterval,0,o),o-1);this._interval=Vx[a][1],this._minLevelUnit=Vx[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(s.z)(t)?t:+Fi(t)},e.prototype.contain=function(t){return Dx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Lx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Px(t,this._extent)},e.type="time",e}(zx),Vx=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function Fx(t,e){return(t/=864e5)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Hx(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function $x(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Gx(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Wx(t){return $i(t,!0)}function Ux(t,e,i){var n=new Date(t);switch(Ms(e)){case"year":case"month":n[Rs(i)](0);case"day":n[zs(i)](1);case"hour":n[Bs(i)](0);case"minute":n[Vs(i)](0);case"second":n[Fs(i)](0),n[Hs(i)](0)}return n.getTime()}Mx.registerClass(Bx);var Yx=Bx,qx=Mx.prototype,Xx=zx.prototype,Zx=Li,Kx=Math.floor,Qx=Math.ceil,Jx=Math.pow,t_=Math.log,e_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new zx,e._interval=0,e}return o(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent(),r=Xx.getTicks.call(this,t);return s.H(r,(function(t){var e=t.value,r=Li(Jx(this.base,e));return r=e===i[0]&&this._fixMin?n_(r,n[0]):r,{value:r=e===i[1]&&this._fixMax?n_(r,n[1]):r}}),this)},e.prototype.setExtent=function(t,e){var i=t_(this.base);t=t_(Math.max(0,t))/i,e=t_(Math.max(0,e))/i,Xx.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=qx.getExtent.call(this);e[0]=Jx(t,e[0]),e[1]=Jx(t,e[1]);var i=this._originalScale.getExtent();return this._fixMin&&(e[0]=n_(e[0],i[0])),this._fixMax&&(e[1]=n_(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=t_(t[0])/t_(e),t[1]=t_(t[1])/t_(e),qx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n,r=(n=i,Math.pow(10,Hi(n)));for(t/i*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Li(Qx(e[0]/r)*r),Li(Kx(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Xx.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Dx(t=t_(t)/t_(this.base),this._extent)},e.prototype.normalize=function(t){return Lx(t=t_(t)/t_(this.base),this._extent)},e.prototype.scale=function(t){return t=Px(t,this._extent),Jx(this.base,t)},e.type="log",e}(Mx),i_=e_.prototype;function n_(t,e){return Zx(t,ji(e))}i_.getMinorTicks=Xx.getMinorTicks,i_.getLabel=Xx.getLabel,Mx.registerClass(e_);var r_=e_,o_=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;Object(s.w)(o)?this._modelMinNum=u_(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=u_(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Object(s.w)(a)?this._modelMaxNum=u_(t,a({min:i[0],max:i[1]})):"dataMax"!==a&&(this._modelMaxNum=u_(t,a)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=Object(s.t)(l)?l:[l||0,l||0];"boolean"==typeof u[0]||"boolean"==typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[di(u[0],1),di(u[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,u=null!=a,c=null!=l;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==l&&(l=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Object(s.l)(a)||Object(s.l)(l)||t&&!n;this._needCrossZero&&(a>0&&l>0&&!u&&(a=0),a<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,u=!0),null!=p&&(l=p,c=!0),{min:a,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s_[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a_[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a_={min:"_determinedMin",max:"_determinedMax"},s_={min:"_dataMin",max:"_dataMax"};function l_(t,e,i){var n=t.rawExtentInfo;return n||(n=new o_(t,e,i),t.rawExtentInfo=n,n)}function u_(t,e){return null==e?null:Object(s.l)(e)?NaN:t.parse(e)}function c_(t,e){var i=t.type,n=l_(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var l=lb("bar",a),u=!1;if(s.k(l,(function(t){u=u||t.getBaseAxis()===e.axis})),u){var c=ub(l),h=function(t,e,i,n){var r=i.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e,i){if(t&&e){var n=t[sb(e)];return null!=n&&null!=i?n[ab(i)]:n}}(n,i.axis);if(void 0===a)return{min:t,max:e};var l=1/0;s.k(a,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;s.k(a,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,d=h/(1-(l+u)/o)-h;return{min:t-=d*(l/c),max:e+=d*(u/c)}}(r,o,e,c);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function h_(t,e){var i=e,n=c_(t,i),r=n.extent,o=i.get("splitNumber");t instanceof r_&&(t.base=i.get("logBase"));var a=t.type,s=i.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function d_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Nx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Mx.getClass(e)||zx)}}function p_(t){var e,i,n=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=n,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):s.C(n)?function(e){return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")}}(n):s.w(n)?(e=n,function(i,n){return null!=r&&(n=i.value-r),e(f_(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function f_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function g_(t){var e=t.get("interval");return null==e?"auto":e}function m_(t){return"category"===t.type&&0===g_(t.getLabelModel())}function y_(t,e){var i={};return s.k(t.mapDimensionsAll(e),(function(e){i[yv(t,e)]=!0})),s.F(i)}var v_=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return s.H(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),s.n(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),b_=["x","y"];function x_(t){return"interval"===t.type||"time"===t.type}var __=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=b_,e}return o(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(x_(t)&&x_(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-i[0]*l,h=r[1]-n[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=rt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new ft(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return C(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return C(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,r=Math.min(i[0],i[1])-t,o=Math.max(e[0],e[1])-n+t,a=Math.max(i[0],i[1])-r+t;return new ft(n,r,o,a)},e}(v_),w_=cn();function S_(t,e){var i=s.H(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&i.length>0&&(i.sort(),i.unshift(i[0]),i.push(i[i.length-1])),i}function C_(t){var e=t.getLabelModel().get("customValues");if(e){var i=p_(t),n=t.scale.getExtent(),r=S_(t,e),o=s.n(r,(function(t){return t>=n[0]&&t<=n[1]}));return{labels:s.H(o,(function(e){var n={value:e};return{formattedLabel:i(n),rawLabel:t.scale.getLabel(n),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),i=k_(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=p_(t);return{labels:s.H(e,(function(e,n){return{level:e.level,formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function M_(t,e){var i=t.getTickModel().get("customValues");if(i){var n=t.scale.getExtent(),r=S_(t,i);return{ticks:s.n(r,(function(t){return t>=n[0]&&t<=n[1]}))}}return"category"===t.type?function(t,e){var i,n,r=O_(t,"ticks"),o=g_(e),a=A_(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(i=[]);if(s.w(o))i=D_(t,o,!0);else if("auto"===o){var l=k_(t,t.getLabelModel());n=l.labelCategoryInterval,i=s.H(l.labels,(function(t){return t.tickValue}))}else i=T_(t,n=o,!0);return I_(r,o,{ticks:i,tickCategoryInterval:n})}(t,e):{ticks:s.H(t.scale.getTicks(),(function(t){return t.value}))}}function k_(t,e){var i,n,r=O_(t,"labels"),o=g_(e),a=A_(r,o);return a||(s.w(o)?i=D_(t,o):(n="auto"===o?function(t){var e=w_(t).autoInterval;return null!=e?e:w_(t).autoInterval=t.calculateCategoryInterval()}(t):o,i=T_(t,n)),I_(r,o,{labels:i,labelCategoryInterval:n}))}function O_(t,e){return w_(t)[e]||(w_(t)[e]=[])}function A_(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function I_(t,e,i){return t.push({key:e,value:i}),i}function T_(t,e,i){var n=p_(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=m_(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(i?t:{formattedLabel:n(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function D_(t,e,i){var n=t.scale,r=p_(t),o=[];return s.k(n.getTicks(),(function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var L_=[0,1];function P_(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}var j_=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Ni(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&P_(i=i.slice(),n.count()),Ti(t,L_,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&P_(i=i.slice(),n.count());var r=Ti(t,i,L_,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=M_(this,e).ticks,n=Object(s.H)(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,i,n){var r=e.length;if(!t.onBand||i||!r)return;var o,a,l=t.getExtent();if(1===r)e[0].coord=l[0],o=e[1]={coord:l[1],tickValue:e[0].tickValue};else{var u=e[r-1].tickValue-e[0].tickValue,c=(e[r-1].coord-e[0].coord)/u;Object(s.k)(e,(function(t){t.coord-=c/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+c*a,tickValue:h[1]+1},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift());n&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],o.coord)&&(n?o.coord=l[1]:e.pop());n&&p(o.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=Li(t),e=Li(e),d?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(s.H)(e,(function(t){return Object(s.H)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return C_(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=p_(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),d=0,p=0;l<=o[1];l+=s){var f,g,m=li(i({value:l}),e.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/c,v=p/h;isNaN(y)&&(y=1/0),isNaN(v)&&(v=1/0);var b=Math.max(0,Math.floor(Math.min(y,v))),x=w_(t.model),_=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&x.axisExtent0===_[0]&&x.axisExtent1===_[1]?b=w:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=_[0],x.axisExtent1=_[1]),b}(this)},t}(),N_=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return o(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(j_);function E_(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],l=r.position,u=a?"onZero":l,c=r.dim,h=n.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],o.rotation=Math.PI/2*("x"===c?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],o.labelOffset=a?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),s.O(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-y:y,o.z2=1,o}function R_(t){return"cartesian2d"===t.get("coordinateSystem")}function z_(t){var e={xAxisModel:null,yAxisModel:null};return s.k(e,(function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,fn).models[0];e[n]=o})),e}var B_=Math.log;function V_(t,e,i){var n=zx.prototype,r=n.getTicks.call(i),o=n.getTicks.call(i,!0),a=r.length-1,s=n.getInterval.call(i),l=c_(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=B_(t.base);u=[B_(u[0])/d,B_(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=n.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=n.getInterval.call(t),g=u[0],m=u[1];if(c&&h)f=(m-g)/a;else if(c)for(m=u[0]+f*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)f=Ax(f),m=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Ax(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Ax(f));var y=f*a;(g=Li((m=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,m=Li(y)):m>0&&u[1]<=0&&(m=0,g=-Li(y))}var v=(r[0].value-o[0].value)/s,b=(r[a].value-o[a].value)/s;n.setExtent.call(t,g+f*v,m+f*b),n.setInterval.call(t,f),(v||b)&&n.setNiceExtent.call(t,g+f,m-f)}function F_(t,e){return t.getCoordSysModel()===e}function H_(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=i.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)$_(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&$_(o[u])&&!n[c(o[u])]){r=o[u];break}r&&(n[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function $_(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}(t)}var G_=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=b_,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;function n(t){var e,i=Object(s.F)(t),n=i.length;if(n){for(var r=[],o=n-1;o>=0;o--){var a=t[+i[o]],l=a.model,u=a.scale;kx(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(a):(h_(u,l),kx(u)&&(e=a))}r.length&&(e||h_((e=r.pop()).scale,e.model),Object(s.k)(r,(function(t){V_(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),n(i.x),n(i.y);var r={};Object(s.k)(i.x,(function(t){H_(i,"y",t,r)})),Object(s.k)(i.y,(function(t){H_(i,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),r=!i&&t.get("containLabel"),o=nl(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function l(){Object(s.k)(a,(function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?o.x:o.y)}))}l(),r&&(Object(s.k)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();r=i instanceof Nx?i.count():(n=i.getTicks()).length;var a,s,l,u,c,h,d,p,f=t.getLabelModel(),g=p_(t),m=1;r>40&&(m=Math.ceil(r/40));for(var y=0;y<r;y+=m){var v=g(n?n[y]:{value:o[0]+y},y),b=f.getTextRect(v),x=(s=b,l=f.get("rotate")||0,u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,void 0,u=l*Math.PI/180,c=s.width,h=s.height,d=c*Math.abs(Math.cos(u))+Math.abs(h*Math.sin(u)),p=c*Math.abs(Math.sin(u))+Math.abs(h*Math.cos(u)),new ft(s.x,s.y,d,p));a?a.union(x):a=x}return a}}(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.x+=e.width+n)}}})),l()),Object(s.k)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i)return i[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}Object(s.A)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",fn).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",fn).models[0],a=t.gridModel,l=this._coordsList;if(n)e=n.coordinateSystem,Object(s.r)(l,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,i){var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(e){return function(i,n){if(F_(i,t)){var s=i.get("position");"x"===e?"top"!==s&&"bottom"!==s&&(s=o.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=o.left?"right":"left"),o[s]=!0;var u=new N_(e,d_(i),[0,0],i.get("type"),s),c="category"===u.type;u.onBand=c&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,l[e]++}}}this._axesMap=a,Object(s.k)(a.x,(function(e,i){Object(s.k)(a.y,(function(r,o){var a="x"+i+"y"+o,s=new __(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function i(t,e){Object(s.k)(y_(t,e.dim),(function(i){e.scale.unionExtentFromData(t,i)}))}Object(s.k)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(R_(t)){var n=z_(t),r=n.xAxisModel,o=n.yAxisModel;if(!F_(r,e)||!F_(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");i(s,l),i(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return Object(s.k)(this.getCartesians(),(function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);Object(s.r)(e,r)<0&&e.push(r),Object(s.r)(i,o)<0&&i.push(o)})),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if(R_(t)){var e=z_(t),i=e.xAxisModel,n=e.yAxisModel;0;var r=i.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(i.componentIndex,n.componentIndex)}})),n},t.dimensions=b_,t}(),W_=Math.PI,U_=function(){function t(t,e){this.group=new Ci,this.opt=e,this.axisModel=t,Object(s.i)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Ci({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!Y_[t]},t.prototype.add=function(t){Y_[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=zi(e-t);return Bi(o)?(r=i>0?"top":"bottom",n="center"):Bi(o-W_)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<W_?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Y_={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,l=[o[0],0],u=[o[1],0],c=l[0]>u[0];a&&(C(l,l,a),C(u,u,a));var h=Object(s.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Zh({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Id(d.shape,d.style.lineWidth),d.anid="line",i.add(d);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);Object(s.C)(p)&&(p=[p,p]),(Object(s.C)(f)||Object(s.z)(f))&&(f=[f,f]);var g=uf(e.get(["axisLine","symbolOffset"])||0,f),m=f[0],y=f[1];Object(s.k)([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],(function(e,n){if("none"!==p[n]&&null!=p[n]){var r=sf(p[n],-m/2,-y/2,m,y,h.stroke,!0),o=e.r+e.offset,a=c?u:l;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}}))}}},axisTickLabel:function(t,e,i,n){var r=function(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");"auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var l=o.getModel("lineStyle"),u=n.tickDirection*o.get("length"),c=K_(r.getTicksCoords(),e.transform,u,Object(s.i)(l.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}(i,n,e,t),o=function(t,e,i,n){var r=i.axis;if(!Object(s.O)(n.axisLabelShow,i.get(["axisLabel","show"]))||r.scale.isBlank())return;var o=i.getModel("axisLabel"),a=o.get("margin"),l=r.getViewLabels(),u=(Object(s.O)(n.labelRotate,o.get("rotate"))||0)*W_/180,c=U_.innerTextLayout(n.rotation,u,n.labelDirection),h=i.getCategories&&i.getCategories(!0),d=[],p=U_.isLabelSilent(i),f=i.get("triggerEvent");return Object(s.k)(l,(function(u,g){var m="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(u.tickValue):u.tickValue,y=u.formattedLabel,v=u.rawLabel,b=o;if(h&&h[m]){var x=h[m];Object(s.A)(x)&&x.textStyle&&(b=new hs(x.textStyle,o,i.ecModel))}var _=b.getTextColor()||i.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(m),S=b.getShallow("align",!0)||c.textAlign,C=Object(s.P)(b.getShallow("alignMinLabel",!0),S),M=Object(s.P)(b.getShallow("alignMaxLabel",!0),S),k=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,O=Object(s.P)(b.getShallow("verticalAlignMinLabel",!0),k),A=Object(s.P)(b.getShallow("verticalAlignMaxLabel",!0),k),I=new jo({x:w,y:n.labelOffset+n.labelDirection*a,rotation:c.rotation,silent:p,z2:10+(u.level||0),style:Ha(b,{text:y,align:0===g?C:g===l.length-1?M:S,verticalAlign:0===g?O:g===l.length-1?A:k,fill:Object(s.w)(_)?_("category"===r.type?v:"value"===r.type?m+"":m,g):_})});if(I.anid="label_"+m,$d({el:I,componentModel:i,itemName:y,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:v,tickIndex:g}}),f){var T=U_.makeAxisEventDataBase(i);T.targetType="axisLabel",T.value=v,T.tickIndex=g,"category"===r.type&&(T.dataIndex=m),No(I).eventData=T}e.add(I),I.updateTransform(),d.push(I),t.add(I),I.decomposeTransform()})),d}(i,n,e,t);(function(t,e,i){if(m_(t.axis))return;var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);i=i||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(q_(o),q_(u)):X_(o,a)&&(n?(q_(a),q_(c)):(q_(o),q_(u)));!1===r?(q_(s),q_(h)):X_(l,s)&&(r?(q_(l),q_(d)):(q_(s),q_(h)))}(e,o,r),function(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var l=o.getModel("lineStyle"),u=n*o.get("length"),c=Object(s.i)(l.getLineStyle(),Object(s.i)(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var d=K_(a[h],e.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)t.add(d[p])}(i,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&fm(hm(Object(s.H)(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,i,n){var r=Object(s.O)(t.axisName,e.get("name"));if(r){var o,a,l=e.get("nameLocation"),u=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,d=e.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*h:"end"===l?d[1]+p*h:(d[0]+d[1])/2,Z_(l)?t.labelOffset+u*h:0],g=e.get("nameRotate");null!=g&&(g=g*W_/180),Z_(l)?o=U_.innerTextLayout(t.rotation,null!=g?g:t.rotation,u):(o=function(t,e,i,n){var r,o,a=zi(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;Bi(a-W_/2)?(o=l?"bottom":"top",r="center"):Bi(a-1.5*W_)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*W_&&a>W_/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,l,g||0,d),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=c.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,b=Object(s.O)(t.nameTruncateMaxWidth,y.maxWidth,a),x=new jo({x:f[0],y:f[1],rotation:o.rotation,silent:U_.isLabelSilent(e),style:Ha(c,{text:r,font:m,overflow:"truncate",width:b,ellipsis:v,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if($d({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=U_.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,No(x).eventData=_}n.add(x),x.updateTransform(),i.add(x),x.decomposeTransform()}}};function q_(t){t&&(t.ignore=!0)}function X_(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Q([]);return it(r,r,-t.rotation),i.applyTransform(tt([],r,t.getLocalTransform())),n.applyTransform(tt([],r,e.getLocalTransform())),i.intersect(n)}}function Z_(t){return"middle"===t||"center"===t}function K_(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(C(a,a,e),C(s,s,e));var c=new Zh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Id(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}var Q_=U_;function J_(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(s.k)(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var l=rw(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var c=i.model.getModel("tooltip",n);if(Object(s.k)(i.getAxes(),Object(s.h)(f,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=i.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(s.k)(p.baseAxes,Object(s.h)(f,!d||"cross",h)),d&&Object(s.k)(p.otherAxes,Object(s.h)(f,"cross",!1))}}function f(n,l,h){var d=h.model.getModel("axisPointer",r),p=d.get("show");if(p&&("auto"!==p||n||nw(d))){null==l&&(l=d.get("triggerTooltip"));var f=(d=n?function(t,e,i,n,r,o){var a=e.getModel("axisPointer"),l={};Object(s.k)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){l[t]=Object(s.d)(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(s.i)(u,h.textStyle)}}return t.model.getModel("axisPointer",new hs(l,i,n))}(h,c,r,e,n,l):d).get("snap"),g=d.get("triggerEmphasis"),m=rw(h.model),y=l||f||"category"===h.type,v=t.axesInfo[m]={key:m,axis:h,coordSys:i,axisPointerModel:d,triggerTooltip:l,triggerEmphasis:g,involveSeries:y,snap:f,useHandle:nw(d),seriesModels:[],linkGroup:null};u[m]=v,t.seriesInvolved=t.seriesInvolved||y;var b=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(tw(o[n+"AxisId"],i.id)||tw(o[n+"AxisIndex"],i.componentIndex)||tw(o[n+"AxisName"],i.name))return r}}(o,h);if(null!=b){var x=a[b]||(a[b]={axesInfo:{}});x.axesInfo[m]=v,x.mapper=o[b].mapper,v.linkGroup=x}}}}))}(i,t,e),i.seriesInvolved&&function(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(s.k)(t.coordSysAxesInfo[rw(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(i,t),i}function tw(t,e){return"all"===t||Object(s.t)(t)&&Object(s.r)(t,e)>=0||t===e}function ew(t){var e=iw(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=nw(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function iw(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[rw(t)]}function nw(t){return!!t.get(["handle","show"])}function rw(t){return t.type+"||"+t.id}var ow={},aw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(e,i,n,r){this.axisPointerClass&&ew(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},e.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},e.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=iw(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){ow[t]=e},e.getAxisPointerClass=function(t){return t&&ow[t]},e.type="axis",e}(qc),sw=cn();function lw(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),l=a.get("color"),u=n.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var h=l.length,d=sw(t).splitAreaColors,p=s.f(),f=0;if(d)for(var g=0;g<c.length;g++){var m=d.get(c[g].tickValue);if(null!=m){f=(m+(h-1)*g)%h;break}}var y=r.toGlobalCoord(c[0].coord),v=a.getAreaStyle();l=s.t(l)?l:[l];for(g=1;g<c.length;g++){var b=r.toGlobalCoord(c[g].coord),x=void 0,_=void 0,w=void 0,S=void 0;r.isHorizontal()?(x=y,_=u.y,w=b-x,S=u.height,y=x+w):(x=u.x,_=y,w=u.width,y=_+(S=b-_));var C=c[g-1].tickValue;null!=C&&p.set(C,f),e.add(new vo({anid:null!=C?"area_"+C:null,shape:{x:x,y:_,width:w,height:S},style:s.i({fill:l[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%h}sw(t).splitAreaColors=p}}}function uw(t){sw(t).splitAreaColors=null}var cw=["axisLine","axisTickLabel","axisName"],hw=["splitArea","splitLine","minorSplitLine"],dw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="CartesianAxisPointer",i}return o(e,t),e.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ci,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),l=E_(a,e),u=new Q_(e,s.m({handleAutoShown:function(t){for(var i=a.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(kx(i[n].getOtherAxis(e.axis).scale))return!0;return!1}},l));s.k(cw,u.add,u),this._axisGroup.add(u.getGroup()),s.k(hw,(function(t){e.get([t,"show"])&&pw[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||Ed(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},e.prototype.remove=function(){uw(this)},e.type="cartesianAxis",e}(aw),pw={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),l=a.get("color"),u=!1!==o.get("showMinLine"),c=!1!==o.get("showMaxLine");l=s.t(l)?l:[l];for(var h=n.coordinateSystem.getRect(),d=r.isHorizontal(),p=0,f=r.getTicksCoords({tickModel:o}),g=[],m=[],y=a.getLineStyle(),v=0;v<f.length;v++){var b=r.toGlobalCoord(f[v].coord);if((0!==v||u)&&(v!==f.length-1||c)){var x=f[v].tickValue;d?(g[0]=b,g[1]=h.y,m[0]=b,m[1]=h.y+h.height):(g[0]=h.x,g[1]=b,m[0]=h.x+h.width,m[1]=b);var _=p++%l.length,w=new Zh({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:s.i({stroke:l[_]},y),silent:!0});Id(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine").getModel("lineStyle"),a=n.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new Zh({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});Id(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,i,n){lw(t,e,i,n)}},fw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="xAxis",e}(dw),gw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fw.type,e}return o(e,t),e.type="yAxis",e}(dw),mw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return o(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new vo({shape:t.coordinateSystem.getRect(),style:Object(s.i)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(qc),yw={offset:0};function vw(t){t.registerComponentView(mw),t.registerComponentModel(hx),t.registerCoordinateSystem("cartesian2d",G_),wx(t,"x",px,yw),wx(t,"y",px,yw),t.registerComponentView(fw),t.registerComponentView(gw),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function bw(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),i=[],n=t.coordinateSystem;if(n){var r=n.getIndicatorAxes();s.k(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){i[e]=i[e]||[];var r=n.dataToPoint(t,o);i[e][o]=xw(r)?r:_w(n)}))})),e.each((function(t){var r=s.o(i[t],(function(t){return xw(t)}))||_w(n);i[t].push(r.slice()),e.setItemLayout(t,i[t])}))}}))}function xw(t){return!isNaN(t[0])&&!isNaN(t[1])}function _w(t){return[t.cx,t.cy]}function ww(t){var e=t.polar;if(e){s.t(e)||(e=[e]);var i=[];s.k(e,(function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],s.t(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):i.push(e)})),t.polar=i}s.k(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var Sw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var r=t.coordinateSystem,o=this.group,a=t.getData(),l=this._data;function u(t,e){var i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i){var n=lf(t.getItemVisual(e,"symbolSize")),r=sf(i,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:o*Math.PI/180||0}),r}}function c(e,i,r,o,a,s){r.removeAll();for(var l=0;l<i.length-1;l++){var c=u(o,a);c&&(c.__dimIdx=l,e[l]?(c.setPosition(e[l]),n[s?"initProps":"updateProps"](c,{x:i[l][0],y:i[l][1]},t,a)):c.setPosition(i[l]),r.add(c))}}function h(t){return s.H(t,(function(t){return[r.cx,r.cy]}))}a.diff(l).add((function(e){var i=a.getItemLayout(e);if(i){var n=new $h,r=new Uh,o={shape:{points:i}};n.shape.points=h(i),r.shape.points=h(i),Da(n,o,t,e),Da(r,o,t,e);var s=new Ci,l=new Ci;s.add(r),s.add(n),s.add(l),c(r.shape.points,i,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,i){var n=l.getItemGraphicEl(i),r=n.childAt(0),o=n.childAt(1),s=n.childAt(2),u={shape:{points:a.getItemLayout(e)}};u.shape.points&&(c(r.shape.points,u.shape.points,s,a,e,!1),Ea(o),Ea(r),Ta(r,u,t),Ta(o,u,t),a.setItemGraphicEl(e,n))})).remove((function(t){o.remove(l.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var i=a.getItemModel(e),n=t.childAt(0),r=t.childAt(1),l=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill;o.add(t),n.useStyle(s.i(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),wa(n,i,"lineStyle"),wa(r,i,"areaStyle");var h=i.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();r.ignore=d,s.k(["emphasis","select","blur"],(function(t){var e=i.getModel([t,"areaStyle"]),n=e.isEmpty()&&e.parentModel.isEmpty();r.ensureState(t).ignore=n&&d})),r.useStyle(s.i(h.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var p=i.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild((function(t){if(t instanceof uo){var n=t.style;t.useStyle(s.m({image:n.image,x:n.x,y:n.y,width:n.width,height:n.height},u))}else t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=s.d(f);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),Va(t,Fa(i),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:u.opacity})})),va(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(tp),Cw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new nx(s.c(this.getData,this),s.c(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return ix(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,l=Lc(this,t);return Cc("section",{header:a,sortBlocks:!0,blocks:s.H(r,(function(e){var i=n.get(n.mapDimension(e.dim),t);return Cc("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:i,sortParam:i})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(s.H(i.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=n.length;r<o;r++)if(!isNaN(n[r])){var a=i.getIndicatorAxes();return i.coordToPoint(a[r].dataToCoord(n[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Uc),Mw=yx.value;function kw(t,e){return s.i({show:e},t)}var Ow=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=s.H(this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=s.i({color:d.color},a));var f=s.I(s.d(d),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:r,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(s.C(u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else s.w(u)&&(f.name=u(f.name,f));var m=new hs(f,null,this.ecModel);return s.K(m,dx.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s.I({lineStyle:{color:"#bbb"}},Mw.axisLine),axisLabel:kw(Mw.axisLabel,!1),axisTick:kw(Mw.axisTick,!1),splitLine:kw(Mw.splitLine,!0),splitArea:kw(Mw.splitArea,!0),indicator:[]},e}(hl),Aw=["axisLine","axisTickLabel","axisName"],Iw=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=s.H(i,(function(t){var i=t.model.get("showName")?t.name:"";return new Q_(t.model,{axisName:i,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));s.k(n,(function(t){s.k(Aw,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),l=o.getModel("areaStyle"),u=r.get("show"),c=o.get("show"),h=a.get("color"),d=l.get("color"),p=s.t(h)?h:[h],f=s.t(d)?d:[d],g=[],m=[];if("circle"===n)for(var y=i[0].getTicksCoords(),v=e.cx,b=e.cy,x=0;x<y.length;x++){if(u)g[A(g,p,x)].push(new vh({shape:{cx:v,cy:b,r:y[x].coord}}));if(c&&x<y.length-1)m[A(m,f,x)].push(new Bh({shape:{cx:v,cy:b,r0:y[x].coord,r:y[x+1].coord}}))}else{var _,w=s.H(i,(function(t,i){var n=t.getTicksCoords();return _=null==_?n.length-1:Math.min(n.length-1,_),s.H(n,(function(t){return e.coordToPoint(t.coord,i)}))})),S=[];for(x=0;x<=_;x++){for(var C=[],M=0;M<i.length;M++)C.push(w[M][x]);if(C[0]&&C.push(C[0].slice()),u)g[A(g,p,x)].push(new Uh({shape:{points:C}}));if(c&&S)m[A(m,f,x-1)].push(new $h({shape:{points:C.concat(S)}}));S=C.slice().reverse()}}var k=a.getLineStyle(),O=l.getAreaStyle();s.k(m,(function(t,e){this.group.add(Od(t,{style:s.i({stroke:"none",fill:f[e%f.length]},O),silent:!0}))}),this),s.k(g,(function(t,e){this.group.add(Od(t,{style:s.i({fill:"none",stroke:p[e%p.length]},k),silent:!0}))}),this)}function A(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}},e.type="radar",e}(qc),Tw=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.type="value",r.angle=0,r.name="",r}return o(e,t),e}(j_),Dw=function(){function t(t,e,i){this.dimensions=[],this._model=t,this._indicatorAxes=Object(s.H)(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new Tw(i,new zx);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var r,o=Math.atan2(-i,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(n))]},t.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r)/2;this.cx=Di(i[0],n),this.cy=Di(i[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(s.C)(a)||Object(s.z)(a))&&(a=[0,a]),this.r0=Di(a[0],o),this.r=Di(a[1],o),Object(s.k)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i}),this)},t.prototype.update=function(t,e){var i=this._indicatorAxes,n=this._model;Object(s.k)(i,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var o=e.getData();Object(s.k)(i,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=n.get("splitNumber"),o=new zx;o.setExtent(0,r),o.setInterval(1),Object(s.k)(i,(function(t,e){V_(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,i){return null},t.prototype.convertFromPixel=function(t,e,i){return null},t.prototype.containPoint=function(t){return!1},t.create=function(e,i){var n=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,i);n.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},t.dimensions=[],t}();function Lw(t){t.registerCoordinateSystem("radar",Dw),t.registerComponentModel(Ow),t.registerComponentView(Iw),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var Pw="\0_ec_interaction_mutex";function jw(t,e){return!!Nw(t)[e]}function Nw(t){return t[Pw]||(t[Pw]={})}function Ew(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(Y(n.event),Rw(t,e,i,n,r))}function Rw(t,e,i,n,r){r.isAvailableBehavior=Object(s.c)(zw,null,i,n),t.trigger(e,r)}function zw(t,e,i){var n=i[t];return!t||n&&(!Object(s.C)(n)||e.event[n+"Key"])}Lg({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},s.L);var Bw=function(t){function e(e){var i=t.call(this)||this;i._zr=e;var n=Object(s.c)(i._mousedownHandler,i),r=Object(s.c)(i._mousemoveHandler,i),o=Object(s.c)(i._mouseupHandler,i),a=Object(s.c)(i._mousewheelHandler,i),l=Object(s.c)(i._pinchHandler,i);return i.enable=function(t,i){this.disable(),this._opt=Object(s.i)(Object(s.d)(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",l))},i.disable=function(){e.off("mousedown",n),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},i}return o(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!q(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var i=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&zw("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!jw(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,o=e-n,a=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&Y(t.event),Rw(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:n,oldY:r,newX:e,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){q(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=zw("zoomOnMouseWheel",t,this._opt),i=zw("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1;Ew(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(i){var l=Math.abs(n);Ew(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){jw(this._zr,"globalPan")||Ew(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(I);function Vw(t,e,i){var n=t.target;n.x+=e,n.y+=i,n.dirty()}function Fw(t,e,i,n){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(i-r.x)*(u-1),r.y-=(n-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var Hw,$w={axisPointer:1,tooltip:1,brush:1};function Gw(t,e,i){var n=e.getComponentByElement(t.topTarget),r=n&&n.coordinateSystem;return n&&n!==i&&!$w.hasOwnProperty(n.mainType)&&r&&r.model!==i}function Ww(t){Object(s.C)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Uw={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Yw=Object(s.F)(Uw),qw={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Xw=Object(s.F)(qw),Zw=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var i=Ww(t);this._defsUsePending=[];var n=new Ci;this._root=n;var r=[],o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),s=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),iS(i,n,null,!0,!1);for(var l,u,c=i.firstChild;c;)this._parseNode(c,n,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n[0].style[n[1]]=t[n[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=aS(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=hS(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=n;(n=new Ci).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||n.setClipPath(new vo({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,i,n,r,o){var a,l=t.nodeName.toLowerCase(),u=n;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)a=e;else{if(!r){var c=Hw[l];if(c&&Object(s.q)(Hw,l)){a=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:a};i.push(d),"g"===l&&(u=d)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:l,el:a});e.add(a)}}var p=Kw[l];if(p&&Object(s.q)(Kw,l)){var f=p.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(a&&a.isGroup)for(var m=t.firstChild;m;)1===m.nodeType?this._parseNode(m,a,i,u,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling},t.prototype._parseText=function(t,e){var i=new oo({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});tS(e,i),iS(t,i,this._defsUsePending,!1,!1),function(t,e){var i=e.__selfStyle;if(i){var n=i.textBaseline,r=n;n&&"auto"!==n?"baseline"===n?r="alphabetic":"before-edge"===n||"text-before-edge"===n?r="top":"after-edge"===n||"text-after-edge"===n?r="bottom":"central"!==n&&"mathematical"!==n||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(i,e);var n=i.style,r=n.fontSize;r&&r<9&&(n.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var a=i.getBoundingRect();return this._textX+=a.width,e.add(i),i},t.internalField=void(Hw={g:function(t,e){var i=new Ci;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new vo;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new vh;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new Zh;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new _h;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,n=t.getAttribute("points");n&&(i=eS(n));var r=new $h({shape:{points:i||[]},silent:!0});return tS(e,r),iS(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var i,n=t.getAttribute("points");n&&(i=eS(n));var r=new Uh({shape:{points:i||[]},silent:!0});return tS(e,r),iS(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var i=new uo;return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new Ci;return tS(e,a),iS(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Ci;return tS(e,a),iS(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var i=fh(t.getAttribute("d")||"");return tS(e,i),iS(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),t}(),Kw={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),i=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new sd(e,i,n,r);return Qw(t,o),Jw(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),i=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),r=new ld(e,i,n);return Qw(t,r),Jw(t,r),r}};function Qw(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Jw(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType&&"stop"===i.nodeName.toLocaleLowerCase()){var n=i.getAttribute("offset"),r=void 0;r=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};cS(i,o,o);var a=o.stopColor||i.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}i=i.nextSibling}}function tS(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(s.i)(e.__inheritedStyle,t.__inheritedStyle))}function eS(t){for(var e=aS(t),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([r,o])}return i}function iS(t,e,i,n,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},l={};1===t.nodeType&&(function(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=[],r=null;i.replace(sS,(function(t,e,i){return n.push(e,i),""}));for(var o=n.length-1;o>0;o-=2){var a=n[o],s=n[o-1],l=aS(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":et(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":nt(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":it(r,r,-parseFloat(l[0])*lS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*lS);tt(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*lS);tt(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),cS(t,a,l),n||function(t,e,i){for(var n=0;n<Yw.length;n++){var r=Yw[n];null!=(o=t.getAttribute(r))&&(e[Uw[r]]=o)}for(n=0;n<Xw.length;n++){var o;r=Xw[n];null!=(o=t.getAttribute(r))&&(i[qw[r]]=o)}}(t,a,l)),o.style=o.style||{},null!=a.fill&&(o.style.fill=rS(o,"fill",a.fill,i)),null!=a.stroke&&(o.style.stroke=rS(o,"stroke",a.stroke,i)),Object(s.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Object(s.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=l),a.lineDash&&(o.style.lineDash=Object(s.H)(aS(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var nS=/^url\(\s*#(.*?)\)/;function rS(t,e,i,n){var r=i&&i.match(nS);if(!r)return"none"===i&&(i=null),i;var o=Object(s.T)(r[1]);n.push([t,e,o])}var oS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function aS(t){return t.match(oS)||[]}var sS=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,lS=Math.PI/180;var uS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function cS(t,e,i){var n,r=t.getAttribute("style");if(r)for(uS.lastIndex=0;null!=(n=uS.exec(r));){var o=n[1],a=Object(s.q)(Uw,o)?Uw[o]:null;a&&(e[a]=n[2]);var l=Object(s.q)(qw,o)?qw[o]:null;l&&(i[l]=n[2])}}function hS(t,e){var i=e.width/t.width,n=e.height/t.height,r=Math.min(i,n);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function dS(t,e){return Math.abs(t-e)<1e-8}function pS(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=Gr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return dS(r[0],s[0])&&dS(r[1],s[1])||(n+=Gr(r[0],r[1],s[0],s[1],e,i)),0!==n}var fS=[];function gS(t,e){for(var i=0;i<t.length;i++)C(t[i],t[i],e)}function mS(t,e,i,n){for(var r=0;r<t.length;r++){var o=t[r];n&&(o=n.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(M(e,e,o),k(i,i,o))}}var yS=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),vS=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},bS=function(t){this.type="linestring",this.points=t},xS=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=i,r._center=n&&[n[0],n[1]],r}return o(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var r=e[n],o=r.exterior,a=o&&o.length;a>i&&(t=r,i=a)}if(t)return function(t){for(var e=0,i=0,n=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,i+=(o+l)*c,n+=(a+u)*c,o=l,a=u}return e?[i/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var i=[1/0,1/0],n=[-1/0,-1/0],r=this.geometries;return Object(s.k)(r,(function(e){"polygon"===e.type?mS(e.exterior,i,n,t):Object(s.k)(e.points,(function(e){mS(e,i,n,t)}))})),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),e=new ft(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n<r;n++){var o=i[n];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(pS(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(pS(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new ft(t,e,i,n),l=r.calculateTransform(a),u=this.geometries,c=0;c<u.length;c++){var h=u[c];"polygon"===h.type?(gS(h.exterior,l),Object(s.k)(h.interiors,(function(t){gS(t,l)}))):Object(s.k)(h.points,(function(t){gS(t,l)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(yS),_S=function(t){function e(e,i){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return o(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),i=[e.x+e.width/2,e.y+e.height/2],n=Q(fS),r=t;r&&!r.isGeoSVGGraphicRoot;)tt(n,r.getLocalTransform(),n),r=r.parent;return rt(n,n),C(i,i,n),i},e}(yS),wS=Object(s.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),SS=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(s.f)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Ww(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],i=Object(s.f)();return Object(s.k)(t,(function(t){if(null==t.namedFrom){var n=new _S(t.name,t.el);e.push(n),i.set(t.name,n)}})),{regions:e,regionsMap:i}}(t.named),i=e.regions,n=e.regionsMap;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,i,n,r;try{i=(e=t&&(n=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new Zw).parse(n,r))||{}).root,Object(s.b)(null!=i)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Ci;o.add(i),o.isGeoSVGGraphicRoot=!0;var a=e.width,l=e.height,u=e.viewBoxRect,c=this._boundingRect;if(!c){var h=void 0,d=void 0,p=void 0,f=void 0;if(null!=a?(h=0,p=a):u&&(h=u.x,p=u.width),null!=l?(d=0,f=l):u&&(d=u.y,f=u.height),null==h||null==d){var g=i.getBoundingRect();null==h&&(h=g.x,p=g.width),null==d&&(d=g.y,f=g.height)}c=this._boundingRect=new ft(h,d,p,f)}if(u){var m=hS(u,c);i.scaleX=i.scaleY=m.scale,i.x=m.x,i.y=m.y}o.setClipPath(new vo({shape:c.plain()}));var y=[];return Object(s.k)(e.named,(function(t){var e;null!=wS.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:c,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},t}();function CS(t,e,i){for(var n=0;n<t.length;n++)t[n]=MS(t[n],e[n],i)}function MS(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,n.push([s/i,l/i])}return n}function kS(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;null==i&&(i=1024);var n=e.features;return s.k(n,(function(t){var e=t.geometry,n=e.encodeOffsets,r=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=MS(r,n,i);break;case"Polygon":case"MultiLineString":CS(r,n,i);break;case"MultiPolygon":s.k(r,(function(t,e){return CS(t,n[e],i)}))}})),e.UTF8Encoding=!1,e}(t),s.H(s.n(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var i=t.properties,n=t.geometry,r=[];switch(n.type){case"Polygon":var o=n.coordinates;r.push(new vS(o[0],o.slice(1)));break;case"MultiPolygon":s.k(n.coordinates,(function(t){t[0]&&r.push(new vS(t[0],t.slice(1)))}));break;case"LineString":r.push(new bS([n.coordinates]));break;case"MultiLineString":r.push(new bS(n.coordinates))}var a=new xS(i[e||"name"],r,i.cp);return a.properties=i,a}))}for(var OS=[126,25],AS=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],IS=0;IS<AS.length;IS++)for(var TS=0;TS<AS[IS].length;TS++)AS[IS][TS][0]/=10.5,AS[IS][TS][1]/=-14,AS[IS][TS][0]+=OS[0],AS[IS][TS][1]+=OS[1];var DS={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var LS=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var PS=function(){function t(t,e,i){var n;this.type="geoJSON",this._parsedMap=Object(s.f)(),this._mapName=t,this._specialAreas=i,this._geoJSON=(n=e,Object(s.C)(n)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n)}return t.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var n=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:n,boundingRect:jS(n)})}var r=Object(s.f)(),o=[];return Object(s.k)(i.regions,(function(e){var i=e.name;t&&Object(s.q)(t,i)&&(e=e.cloneShallow(i=t[i])),o.push(e),r.set(i,e)})),{regions:o,boundingRect:i.boundingRect||new ft(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,i=this._mapName,n=this._geoJSON;try{e=n?kS(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var i=0;i<e.length;i++)if("南海诸岛"===e[i].name)return;e.push(new xS("南海诸岛",s.H(AS,(function(t){return{type:"polygon",exterior:t}})),OS))}}(i,e),Object(s.k)(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var i=DS[e.name];if(i){var n=e.getCenter();n[0]+=i[0]/10.5,n[1]+=-i[1]/14,e.setCenter(n)}}}(i,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:LS[0]})}(i,t);var n=this._specialAreas&&this._specialAreas[e];n&&t.transformTo(n.left,n.top,n.width,n.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function jS(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();(e=e||n.clone()).union(n)}return e}var NS=Object(s.f)(),ES=function(t,e,i){if(e.svg){var n=new SS(t,e.svg);NS.set(t,n)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?i=e.specialAreas:r=e;n=new PS(t,r,i);NS.set(t,n)}},RS=function(t){return NS.get(t)},zS=function(t){var e=NS.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},BS=function(t,e,i){var n=NS.get(t);if(n)return n.load(e,i)},VS=["rect","circle","line","ellipse","polygon","polyline","path"],FS=s.f(VS),HS=s.f(VS.concat(["g"])),$S=s.f(VS.concat(["g"])),GS=cn();function WS(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function US(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}function YS(t,e,i,n){var r=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),a=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=WS(r),u=WS(o),c=WS(s),h=WS(a),d=t.data;if(d){var p=d.getItemVisual(i,"style"),f=d.getItemVisual(i,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=jf(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,ea(e)}function qS(t,e,i,n,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?i:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Va(e,Fa(n),{labelFetcher:d,labelDataIndex:h,defaultText:i},p);var f=e.getTextContent();if(f&&(GS(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function XS(t,e,i,n,r,o){t.data?t.data.setItemGraphicEl(o,e):No(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:n&&n.option||{}}}function ZS(t,e,i,n,r){t.data||$d({el:e,componentModel:r,itemName:i,itemTooltipOption:n.get("tooltip")})}function KS(t,e,i,n,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=n.getModel("emphasis"),a=o.get("focus");return va(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,i){var n=No(t);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=i}(e,r,i),a}function QS(t,e,i){var n,r=[];function o(){n=[]}function a(){n.length&&(r.push(n),n=[])}var l=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&n.push([t,e])},sphere:function(){}});return!i&&l.polygonStart(),s.k(t,(function(t){l.lineStart();for(var e=0;e<t.length;e++)l.point(t[e][0],t[e][1]);l.lineEnd()})),!i&&l.polygonEnd(),r}var JS=function(){function t(t){var e=new Ci;this.uid=ps("ec_map_draw"),this._controller=new Bw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Ci),e.add(this._svgGroup=new Ci)}return t.prototype.draw=function(t,e,i,n,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Ta(u,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:i,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,i),this._updateMapSelectHandler(t,l,i,n)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=s.f(),i=s.f(),n=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,l=t.geo.projection,u=l&&l.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],i=!u&&l&&l.project,n=0;n<t.length;++n){var r=c(t[n],i);r&&e.push(r)}return e}function d(t){return{shape:{points:h(t)}}}n.removeAll(),s.k(t.geo.regions,(function(r){var h=r.name,p=e.get(h),f=i.get(h)||{},g=f.dataIdx,m=f.regionModel;if(!p){p=e.set(h,new Ci),n.add(p),g=a?a.indexOfName(h):null;var y=(m=t.isGeo?o.getRegionModel(h):a?a.getItemModel(g):null).get("silent",!0);null!=y&&(p.silent=y),i.set(h,{dataIdx:g,regionModel:m})}var v=[],b=[];s.k(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);u&&(e=QS(e,u)),s.k(e,(function(t){v.push(new $h(d(t)))}))}else{var i=t.points;u&&(i=QS(i,u,!0)),s.k(i,(function(t){b.push(new Uh(d(t)))}))}}));var x=c(r.getCenter(),l&&l.project);function _(e,i){if(e.length){var n=new od({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(n),YS(t,n,g,m),qS(t,n,h,m,o,g,x),i&&(US(n),s.k(n.states,US))}}_(v),_(b,!0)})),e.each((function(e,n){var r=i.get(n),a=r.dataIdx,s=r.regionModel;XS(t,e,n,s,o,a),ZS(t,e,n,s,o),KS(t,e,n,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,i=t.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=s.f(),r=!1;s.k(this._svgGraphicRecord.named,(function(e){var i=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(i):null,c=o.getRegionModel(i);null!=FS.get(s)&&l instanceof ir&&YS(t,l,u,c),l instanceof ir&&(l.culling=!0);var h=c.get("silent",!0);(null!=h&&(l.silent=h),l.z2EmphasisLift=0,e.namedFrom)||(null!=$S.get(s)&&qS(t,l,i,c,o,u,null),XS(t,l,i,c,o,u),ZS(t,l,i,c,o),null!=HS.get(s)&&("self"===KS(t,l,i,c,o)&&(r=!0),(n.get(i)||n.set(i,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var i=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){ea(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var i=e.coordinateSystem;if("geoJSON"===i.resourceType){var n=this._regionsGroupByName;if(n){var r=n.get(t);return r?[r]:[]}}else if("geoSVG"===i.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=RS(t);if(e&&"geoSVG"===e.type){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=RS(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,i){var n=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function l(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Vw(o,t.dx,t.dy),i.dispatchAction(s.m(l(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Fw(o,t.scale,t.originX,t.originY),i.dispatchAction(s.m(l(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return n.containPoint([r,o])&&!Gw(e,i,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=GS(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,i,n){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}(),tC=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&"geoRoam"===n.type&&this._mapDraw.resetForLabelLayout(),n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new JS(i);r.add(o.group),o.draw(t,e,i,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,i){var n=t.originalData,r=this.group;n.each(n.mapDimension("value"),(function(e,i){if(!isNaN(e)){var o=n.getItemLayout(i);if(o&&o.point){var a=o.point,s=o.offset,l=new vh({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=t.mainSeries.getData(),c=n.getName(i),h=u.indexOfName(c),d=n.getItemModel(i),p=d.getModel("label"),f=u.getItemGraphicEl(h);Va(l,Fa(d),{labelFetcher:{getFormattedLabel:function(e,i){return t.getFormattedLabel(h,i)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Jo(l,t)}}r.add(l)}}}))},e.type="map",e}(tp),eC=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.needsDrawMap=!1,i.seriesGroup=[],i.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.getCenter())}},i}return o(e,t),e.prototype.getInitialData=function(t){for(var e=ix(this,{coordDimensions:["value"],encodeDefaulter:s.h(_l,this)}),i=s.f(),n=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);i.set(a,r)}var l=BS(this.getMapType(),this.option.nameMap,this.option.nameProperty);return s.k(l.regions,(function(t){var r,o=t.name,a=i.get(o),l=t.properties&&t.properties.echartsStyle;null==a?(r={name:o},n.push(r)):r=e.getRawDataItem(a),l&&s.I(r,l)})),e.appendData(n),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,i){for(var n=this.getData(),r=this.getRawValue(t),o=n.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=n.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Cc("section",{header:s.join(", "),noHeader:!s.length,blocks:[Cc("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",i=sf(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Uc);function iC(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),s.k(e,(function(t,e){for(var i,n,r,o=(i=s.H(t,(function(t){return t.getData()})),n=t[0].get("mapValueCalculation"),r={},s.k(i,(function(t){t.each(t.mapDimension("value"),(function(e,i){var n="ec-"+t.getName(i);r[n]=r[n]||[],isNaN(e)||r[n].push(e)}))})),i[0].map(i[0].mapDimension("value"),(function(t,e){for(var o,a="ec-"+i[0].getName(e),s=0,l=1/0,u=-1/0,c=r[a].length,h=0;h<c;h++)l=Math.min(l,r[a][h]),u=Math.max(u,r[a][h]),s+=r[a][h];return o="min"===n?l:"max"===n?u:"average"===n?s/c:s,0===c?NaN:o}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function nC(t){var e={};t.eachSeriesByType("map",(function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var r={};s.k(i.seriesGroup,(function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),(function(t,e){var o=n.getName(e),a=i.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=i.dataToPoint(a.getCenter());r[o]=s+1,n.setItemLayout(e,{point:l,offset:s})}}))}));var o=i.getData();o.each((function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!r[e],o.setItemLayout(t,i)})),e[n]=!0}}))}var rC=C;function oC(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var aC=function(t){function e(e){var i=t.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new ii,i._rawTransformable=new ii,i.name=e,i}return o(e,t),e.prototype.setBoundingRect=function(t,e,i,n){return this._rect=new ft(t,e,i,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,i,n){this._transformTo(t,e,i,n),this._viewRect=new ft(t,e,i,n)},e.prototype._transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new ft(t,e,i,n));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Di(t[0],e.getWidth()),Di(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=C([],n,t),i=C([],i,t),e.originX=n[0],e.originY=n[1],e.x=i[0]-n[0],e.y=i[1]-n[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),J(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],rt(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,i=new ii;return i.transform=e.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?rC(i,t,n):h(i,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?rC([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,i){var n=oC(e);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,e,i){var n=oC(e);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ii),sC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},lC=["lng","lat"],uC=function(t){function e(e,i,n){var r=t.call(this,e)||this;r.dimensions=lC,r.type="geo",r._nameCoordMap=s.f(),r.map=i;var o,a=n.projection,l=BS(i,n.nameMap,n.nameProperty),u=RS(i),c=(r.resourceType=u?u.type:null,r.regions=l.regions),h=sC[u.type];if(r._regionsMap=l.regionsMap,r.regions=l.regions,r.projection=a,a)for(var d=0;d<c.length;d++){var p=c[d].getBoundingRect(a);(o=o||p.clone()).union(p)}else o=l.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:s.P(n.aspectScale,h.aspectScale),r._invertLongitute=!a&&h.invertLongitute,r}return o(e,t),e.prototype._transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new ft(t,e,i,n));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,i=0;i<e.length;i++){var n=e[i];if("geoJSON"===n.type&&n.contain(t))return e[i]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,i){if(s.C(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t,e,i)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,i,n){return t.prototype.dataToPoint.call(this,e,i,n)},e.prototype.convertToPixel=function(t,e,i){var n=cC(e);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,e,i){var n=cC(e);return n===this?n.pointToData(i):null},e}(aC);function cC(t){var e=t.geoModel,i=t.seriesModel;return e?e.coordinateSystem:i?i.coordinateSystem||(i.getReferringComponents("geo",fn).models[0]||{}).coordinateSystem:null}s.K(uC,aC);var hC=uC;function dC(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],r=i[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=n[0],s=n[1],l=r[0],u=r[1];n=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,i,a){for(var s=i-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);M(n,n,h),k(r,r,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),y=e.getWidth(),v=e.getHeight(),b=f.width/f.height*this.aspectScale,x=!1;if(g&&m&&(h=[Di(g[0],y),Di(g[1],v)],d=Di(m,Math.min(y,v)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,p=nl(_,{width:y,height:v})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var pC=new(function(){function t(){this.dimensions=lC}return t.prototype.create=function(t,e){var i=[];function n(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new hC(o+r,o,s.m({nameMap:t.get("nameMap")},n(t)));a.zoomLimit=t.get("scaleLimit"),i.push(a),t.coordinateSystem=a,a.model=t,a.resize=dC,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),s.k(r,(function(t,r){var o=s.H(t,(function(t){return t.get("nameMap")})),a=new hC(r,r,s.m({nameMap:s.J(o)},n(t[0])));a.zoomLimit=s.O.apply(null,s.H(t,(function(t){return t.get("scaleLimit")}))),i.push(a),a.resize=dC,a.resize(t[0],e),s.k(t,(function(t){t.coordinateSystem=a,function(t,e){s.k(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}(a,t)}))})),i},t.prototype.getFilledRegions=function(t,e,i,n){for(var r=(t||[]).slice(),o=s.f(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var l=BS(e,i,n);return s.k(l.regions,(function(t){var e=t.name,i=o.get(e),n=t.properties&&t.properties.echartsStyle;i||(i={name:e},r.push(i)),n&&s.I(i,n)})),r},t}()),fC=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e,i){var n=RS(t.map);if(n&&"geoJSON"===n.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,i),Qi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=pC.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var i={};this._optionModelMap=s.N(e.regions||[],(function(e,n){var r=n.name;return r&&(e.set(r,new hs(n,t,t.ecModel)),n.selected&&(i[r]=!0)),e}),s.f()),e.selectedMap||(e.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new hs(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var i=this.getRegionModel(t),n="normal"===e?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),r={name:t};return s.w(n)?(r.status=e,n(r)):s.C(n)?n.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,i=e.selectedMode;i&&("multiple"!==i&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(hl);function gC(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function mC(t,e,i,n){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(gC(t,s),n)),null!=a){if(i){var l=i.min||0,u=i.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(gC(t,s),n),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var yC=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.focusBlurEnabled=!0,i}return o(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,i,n){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new JS(i));var r=this._mapDraw;r.draw(t,e,i,this,n),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,i)},e.prototype._handleRegionClick=function(t){var e;Yp(t.target,(function(t){return null!=(e=No(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,i){var n=this;this._mapDraw.group.traverse((function(t){var e=No(t).eventData;if(e)return n._model.isSelected(e.name)?i.enterSelect(t):i.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(qc);function vC(t,e,i){ES(t,e,i)}function bC(t){function e(e,i){i.update="geo:updateSelectStatus",t.registerAction(i,(function(t,i){var n={},r=[];return i.eachComponent({mainType:"geo",query:t},(function(i){i[e](t.name);var o=i.coordinateSystem;Object(s.k)(o.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}));var a=[];Object(s.k)(n,(function(t,e){n[e]&&a.push(e)})),r.push({geoIndex:i.componentIndex,name:a})})),{selected:n,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",pC),t.registerComponentModel(fC),t.registerComponentView(yC),t.registerImpl("registerMap",vC),t.registerImpl("getMap",(function(t){return zS(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,i){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=mC(r,t,e.get("scaleLimit"),i);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===n&&Object(s.k)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function xC(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,r=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){var e=t.children,i=e.length,n=0,r=0;for(;--i>=0;){var o=e[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,r+=o.hierNode.change,n+=o.hierNode.shift+r}}(t);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=CC(s),o=MC(o),s&&o;){r=CC(r),a=MC(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+n(s,o);d>0&&(OC(kC(s,t,i),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!CC(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!MC(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,i=t)}return i}(t,r,t.parentNode.hierNode.defaultAncestor||n[0],e)}function _C(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function wC(t){return arguments.length?t:AC}function SC(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function CC(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function MC(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function kC(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function OC(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function AC(t,e){return t.parentNode===e.parentNode?1:2}var IC=function(){this.parentPoint=[],this.childPoints=[]},TC=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new IC},e.prototype.buildPath=function(t,e){var i=e.childPoints,n=i.length,r=e.parentPoint,o=i[0],a=i[n-1];if(1===n)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Di(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<n-1;d++){var p=i[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(io);function DC(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)}function LC(t,e,i,n,r){var o=!i,a=t.tree.getNodeByDataIndex(e),l=a.getModel(),u=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?u:"#fff",h=t.tree.root,d=a.parentNode===h?a:a.parentNode||a,p=t.getItemGraphicEl(d.dataIndex),f=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,m=a.getLayout();o?((i=new Sv(t,e,null,{symbolInnerColor:c,useNameLabel:!0})).x=g.x,i.y=g.y):i.updateData(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=m.rawX,i.__radialRawY=m.rawY,n.add(i),t.setItemGraphicEl(e,i),i.__oldX=i.x,i.__oldY=i.y,Ta(i,{x:m.x,y:m.y},r);var y=i.getSymbolPath();if("radial"===r.get("layout")){var v=h.children[0],b=v.getLayout(),x=v.children.length,_=void 0,w=void 0;if(m.x===b.x&&!0===a.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(S.y-b.y,S.x-b.x))<0&&(_=2*Math.PI+_),(w=S.x<b.x)&&(_-=Math.PI)}else(_=Math.atan2(m.y-b.y,m.x-b.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=m.x<b.x)&&(_-=Math.PI):(w=m.x>b.x)||(_-=Math.PI);var C=w?"left":"right",M=l.getModel("label"),k=M.get("rotate"),O=k*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||C,rotation:null==k?-_:O,origin:"center"}),A.setStyle("verticalAlign","middle"))}var I=l.get(["emphasis","focus"]),T="relative"===I?s.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;T&&(No(i).focus=T),function(t,e,i,n,r,o,a,l){var u=e.getModel(),c=t.get("edgeShape"),h=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),m=n.__edge;if("curve"===c)e.parentNode&&e.parentNode!==i&&(m||(m=n.__edge=new ed({shape:EC(h,d,p,r,r)})),Ta(m,{shape:EC(h,d,p,o,a)},t));else if("polyline"===c)if("orthogonal"===h){if(e!==i&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],b=0;b<y.length;b++){var x=y[b].getLayout();v.push([x.x,x.y])}m||(m=n.__edge=new TC({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:f}})),Ta(m,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else 0;m&&("polyline"!==c||e.isExpand)&&(m.useStyle(s.i({strokeNoScale:!0,fill:null},g)),wa(m,u,"lineStyle"),ea(m),l.add(m))}(r,a,h,i,g,f,m,n),i.__edge&&(i.onHoverStateChange=function(e){if("blur"!==e){var n=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);n&&1===n.hoverState||Jo(i.__edge,e)}})}function PC(t,e,i,n,r){var o=jC(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),f=n.get(["lineStyle","curveness"]);c&&("curve"===h?Pa(c,{shape:EC(d,p,f,s,s),style:{opacity:0}},n,{cb:function(){i.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===n.get("layout")&&Pa(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},n,{cb:function(){i.remove(c)},removeOpt:r}))}}function jC(t,e){for(var i,n=e.parentNode===t?e:e.parentNode||e;null==(i=n.getLayout());)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:i}}function NC(t,e,i,n,r){var o=t.tree.getNodeByDataIndex(e),a=jC(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Pa(i,{x:a.x+1,y:a.y+1},r,{cb:function(){n.remove(i),t.setItemGraphicEl(e,null)},removeOpt:s}),i.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){PC(e,t,n,r,s)})),PC(o,t,n,r,s)}function EC(t,e,i,n,r){var o,a,s,l,u,c,h,d;if("radial"===t){u=n.rawX,h=n.rawY,c=r.rawX,d=r.rawY;var p=SC(u,h),f=SC(u,h+(d-h)*i),g=SC(c,d+(h-d)*i),m=SC(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=n.x,h=n.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*i,a=h,s=c+(u-c)*i,l=d),"TB"!==e&&"BT"!==e||(o=u,a=h+(d-h)*i,s=c,l=d+(h-d)*i),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var RC=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._mainGroup=new Ci,i}return o(e,t),e.prototype.init=function(t,e){this._controller=new Bw(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,i){var n=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,i),this._updateController(t,e,i);var a=this._data;n.diff(a).add((function(e){DC(n,e)&&LC(n,e,null,o,t)})).update((function(e,i){var r=a.getItemGraphicEl(i);DC(n,e)?LC(n,e,r,o,t):r&&NC(a,i,r,o,t)})).remove((function(e){var i=a.getItemGraphicEl(e);i&&NC(a,e,i,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&n.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=n},e.prototype._updateViewCoordSys=function(t,e){var i=t.getData(),n=[];i.each((function(t){var e=i.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||n.push([+e.x,+e.y])}));var r=[],o=[];hr(n,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new aC;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,i){var n=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,n,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,r)&&!Gw(e,i,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Vw(o,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Fw(o,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),n._updateNodeAndLinkScale(t),i.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),i=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(i)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scaleX||1;return((e.getZoom()-1)*i+1)/n},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(tp),zC=cn();function BC(t,e){if(zC(n=this).mainData===n){var i=Object(s.m)({},zC(this).datas);i[this.dataType]=e,GC(e,i,t)}else WC(e,this.dataType,zC(this).mainData,t);var n;return e}function VC(t,e){return t.struct&&t.struct.update(),e}function FC(t,e){return Object(s.k)(zC(e).datas,(function(i,n){i!==e&&WC(i.cloneShallow(),n,e,t)})),e}function HC(t){var e=zC(this).mainData;return null==t||null==e?e:zC(e).datas[t]}function $C(){var t=zC(this).mainData;return null==t?[{data:t}]:Object(s.H)(Object(s.F)(zC(t).datas),(function(e){return{type:e,data:zC(t).datas[e]}}))}function GC(t,e,i){zC(t).datas={},Object(s.k)(e,(function(e,n){WC(e,n,t,i)}))}function WC(t,e,i,n){zC(i).datas[e]=t,zC(t).mainData=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=HC,t.getLinkedDataAll=$C}var UC=function(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,GC(e,i,t),Object(s.k)(i,(function(i){Object(s.k)(e.TRANSFERABLE_METHODS,(function(e){i.wrapMethod(e,Object(s.h)(BC,t))}))})),e.wrapMethod("cloneShallow",Object(s.h)(FC,t)),Object(s.k)(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,Object(s.h)(VC,t))})),Object(s.b)(i[e.dataType]===e)},YC=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,i){s.w(t)&&(i=e,e=t,t=null),t=t||{},s.C(t)&&(t={order:t});var n,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(n=e.call(i,this));for(var a=0;!n&&a<o.length;a++)o[a].eachNode(t,e,i);"postorder"===r&&e.call(i,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}();var qC=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,i){this.root.eachNode(t,e,i)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i<n;i++)e[i].dataIndex=-1;for(i=0,n=t.count();i<n;i++)e[t.getRawIndex(i)].dataIndex=i},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,i,n){var r=new t(i),o=[],a=1;!function t(e,i){var n=e.value;a=Math.max(a,s.t(n)?n.length:1),o.push(e);var l=new YC(an(e.name,""),r);i?function(t,e){var i=e.children;if(t.parentNode===e)return;i.push(t),t.parentNode=e}(l,i):r.root=l,r._nodes.push(l);var u=e.children;if(u)for(var c=0;c<u.length;c++)t(u[c],l)}(e),r.root.updateDepthAndHeight(0);var l=cv(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new uv(l,i);return u.initData(o),n&&n(u),UC({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function XC(t,e,i){if(t&&s.r(e,t.type)>=0){var n=i.getData().tree.root,r=t.targetNode;if(s.C(r)&&(r=n.getNodeById(r)),r&&n.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=n.getNodeById(o)))return{node:r}}}function ZC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function KC(t,e){var i=ZC(t);return s.r(i,e)>=0}function QC(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}var JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return o(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n=new hs(i,this,this.ecModel),r=qC.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var i=r.getNodeByDataIndex(e);return i&&i.children.length&&i.isExpand||(t.parentModel=n),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,i){for(var n=this.getData().tree,r=n.root.children[0],o=n.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return Cc("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=QC(n,this),i.collapsed=!n.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Uc);function tM(t,e){for(var i,n=[t];i=n.pop();)if(e(i),i.isExpand){var r=i.children;if(r.length)for(var o=r.length-1;o>=0;o--)n.push(r[o])}}function eM(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var i=function(t,e){return nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var n=t.get("layout"),r=0,o=0,a=null;"radial"===n?(r=2*Math.PI,o=Math.min(i.height,i.width)/2,a=wC((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=i.width,o=i.height,a=wC());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var i,n,r=[e];i=r.pop();)if(n=i.children,i.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,i){for(var n,r=[t],o=[];n=r.pop();)if(o.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;n=o.pop();)e(n,i)}(l,xC,a),s.hierNode.modifier=-l.hierNode.prelim,tM(l,_C);var u=l,c=l,h=l;tM(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,m=0,y=0;if("radial"===n)f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),tM(l,(function(t){m=(t.getLayout().x+p)*f,y=(t.depth-1)*g;var e=SC(m,y);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:y},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+d+p),f=r/(h.depth-1||1),tM(l,(function(t){y=(t.getLayout().x+p)*g,m="LR"===v?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:y},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+d+p),g=o/(h.depth-1||1),tM(l,(function(t){m=(t.getLayout().x+p)*f,y="TB"===v?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:y},!0)})))}}}(t,e)}))}function iM(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var i=t.getModel().getModel("itemStyle").getItemStyle(),n=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(s.m)(n,i)}))}))}var nM=["treemapZoomToNode","treemapRender","treemapMove"];function rM(t){var e=t.getData().tree,i={};e.eachNode((function(e){for(var n=e;n&&n.depth>1;)n=n.parentNode;var r=Il(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var oM=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.preventUsingHoverLayer=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i={name:t.name,children:t.data};!function t(e){var i=0;s.k(e.children,(function(e){t(e);var n=e.value;s.t(n)&&(n=n[0]),i+=n}));var n=e.value;s.t(n)&&(n=n[0]);(null==n||isNaN(n))&&(n=i);n<0&&(n=0);s.t(e.value)?e.value[0]=n:e.value=n}(i);var n=t.levels||[],r=this.designatedVisualItemStyle={},o=new hs({itemStyle:r},this,e);n=t.levels=function(t,e){var i,n,r=Ki(e.get("color")),o=Ki(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],s.k(t,(function(t){var e=new hs(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(i=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(n=!0)}));var a=t[0]||(t[0]={});i||(a.color=r.slice());!n&&o&&(a.decal=o.slice());return t}(n,e);var a=s.H(n||[],(function(t){return new hs(t,o,e)}),this),l=qC.createTree(i,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var i=l.getNodeByDataIndex(e),n=i?a[i.depth]:null;return t.parentModel=n||o,t}))}));return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.getRawValue(t);return Cc("nameValue",{name:n.getName(t),value:r})},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=QC(n,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},s.m(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s.f(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){rM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Uc);function aM(t,e,i,n,r,o){var a=[[r?t:t-5,e],[t+i,e],[t+i,e+n],[r?t:t-5,e+n]];return!o&&a.splice(2,0,[t+i+5,e+n/2]),!r&&a.push([t,e+n/2]),a}function sM(t,e,i){No(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&QC(i,e)}}var lM=function(){function t(t){this.group=new Ci,t.add(this.group)}return t.prototype.render=function(t,e,i,n){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&i){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,c,l),this._renderContent(t,c,a,s,l,u,n),rl(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,i){for(var n=t;n;n=n.parentNode){var r=an(n.getModel().get("name"),""),o=i.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:n,text:r,width:a})}},t.prototype._renderContent=function(t,e,i,n,r,o,a){for(var l,u,c,h,d,p,f,g,m,y=0,v=e.emptyItemWidth,b=t.get(["breadcrumb","height"]),x=(l=e.pos,u=e.box,h=u.width,d=u.height,p=Di(l.left,h),f=Di(l.top,d),g=Di(l.right,h),m=Di(l.bottom,d),(isNaN(p)||isNaN(parseFloat(l.left)))&&(p=0),(isNaN(g)||isNaN(parseFloat(l.right)))&&(g=h),(isNaN(f)||isNaN(parseFloat(l.top)))&&(f=0),(isNaN(m)||isNaN(parseFloat(l.bottom)))&&(m=d),c=Ws(c||0),{width:Math.max(g-p-c[1]-c[3],0),height:Math.max(m-f-c[0]-c[2],0)}),_=e.totalWidth,w=e.renderList,S=n.getModel("itemStyle").getItemStyle(),C=w.length-1;C>=0;C--){var M=w[C],k=M.node,O=M.width,A=M.text;_>x.width&&(_-=O-v,O=v,A=null);var I=new $h({shape:{points:aM(y,0,O,b,C===w.length-1,0===C)},style:Object(s.i)(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new jo({style:Ha(r,{text:A})}),textConfig:{position:"inside"},z2:1e5,onclick:Object(s.h)(a,k)});I.disableLabelAnimation=!0,I.getTextContent().ensureState("emphasis").style=Ha(o,{text:A}),I.ensureState("emphasis").style=S,va(I,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(I),sM(I,t,k),y+=O+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),uM=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,i,n,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:i,delay:n,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,i=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,r=this._storage.length;n<r;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},t}();var cM=Ci,hM=vo,dM=An([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),pM=function(t){var e=dM(t);return e.stroke=e.fill=e.lineWidth=null,e},fM=cn();var gM=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._state="ready",i._storage={nodeGroup:[],background:[],content:[]},i}return o(e,t),e.prototype.render=function(t,e,i,n){var r=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(Object(s.r)(r,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var o=XC(n,["treemapZoomToNode","treemapRootToNode"],t),a=n&&n.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===a&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:n.direction}:null,d=this._giveContainerGroup(l),p=t.get("animation"),f=this._doRender(d,t,h);!p||u||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?f.renderFinally():this._doAnimation(d,f,t,h),this._resetController(i),this._renderBreadcrumb(t,i,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new cM,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,i){var n=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},l=this._storage,u=[];function c(t,n,r,c){return function(t,e,i,n,r,o,a,l,u,c){if(!a)return;var h=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),!h||!h.isInView)return;var f=h.width,g=h.height,m=h.borderWidth,y=h.invisible,v=a.getRawIndex(),b=l&&l.getRawIndex(),x=a.viewChildren,_=h.upperHeight,w=x&&x.length,S=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),k=p.getModel(["select","itemStyle"]),O=S.get("borderRadius")||0,A=V("nodeGroup",cM);if(!A)return;if(u.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),fM(A).nodeWidth=f,fM(A).nodeHeight=g,h.isAboveViewRoot)return A;var I=V("background",hM,c,20);I&&function(e,i,n){var r=No(i);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:f,height:g,r:O}),y)R(i);else{i.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=pM(S);l.fill=s;var u=dM(C);u.fill=C.get("borderColor");var c=dM(M);c.fill=M.get("borderColor");var h=dM(k);if(h.fill=k.get("borderColor"),n){var d=f-2*m;z(i,s,o.opacity,{x:m,y:0,width:d,height:_})}else i.removeTextContent();i.setStyle(l),i.ensureState("emphasis").style=u,i.ensureState("blur").style=c,i.ensureState("select").style=h,ea(i)}e.add(i)}(A,I,w&&h.upperLabelHeight);var T=p.getModel("emphasis"),D=T.get("focus"),L=T.get("blurScope"),P=T.get("disabled"),j="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(w)Ca(A)&&Sa(A,!1),I&&(Sa(I,!P),d.setItemGraphicEl(a.dataIndex,I),ba(I,j,L));else{var N=V("content",hM,c,30);N&&function(e,i){var n=No(i);n.dataIndex=a.dataIndex,n.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(g-2*m,0);if(i.culling=!0,i.setShape({x:m,y:m,width:r,height:o,r:O}),y)R(i);else{i.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=pM(S);u.fill=l,u.decal=s.decal;var c=dM(C),h=dM(M),d=dM(k);z(i,l,s.opacity,null),i.setStyle(u),i.ensureState("emphasis").style=c,i.ensureState("blur").style=h,i.ensureState("select").style=d,ea(i)}e.add(i)}(A,N),I.disableMorphing=!0,I&&Ca(I)&&Sa(I,!1),Sa(A,!P),d.setItemGraphicEl(a.dataIndex,A);var E=p.getShallow("cursor");E&&N.attr("cursor",E),ba(A,j,L)}return A;function R(t){!t.invisible&&o.push(t)}function z(e,i,n,r){var o=p.getModel(r?"upperLabel":"label"),l=an(p.get("name"),null),u=o.getShallow("show");Va(e,Fa(p,r?"upperLabel":"label"),{defaultText:u?l:null,inheritColor:i,defaultOpacity:n,labelFetcher:t,labelDataIndex:a.dataIndex});var c=e.getTextContent();if(c){var d=c.style,f=Object(s.M)(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-f[1]-f[3],0),i=Math.max((r?r.height:e.shape.height)-f[0]-f[2],0);d.width===t&&d.height===i||c.setStyle({width:t,height:i})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,r,h);var g=c.getState("emphasis");B(g?g.style:null,r,h)}}function B(e,i,n){var r=e?e.text:null;if(!i&&n.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,o,l,u){var c=null!=b&&i[t][b],h=r[t];return c?(i[t][b]=null,function(t,e){var i=t[v]={};e instanceof cM?(i.oldX=e.x,i.oldY=e.y):i.oldShape=Object(s.m)({},e.shape)}(h,c)):y||((c=new o)instanceof ir&&(c.z2=function(t,e){return 100*t+e}(l,u)),function(t,e){var i=t[v]={},o=a.parentNode,s=e instanceof Ci;if(o&&(!n||"drillDown"===n.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!n&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(i.oldX=0,i.oldY=u):i.oldShape={x:l,y:u,width:0,height:0}}i.fadein=!s}(h,c)),e[t][v]=c}}(e,a,l,i,o,u,t,n,r,c)}!function t(e,i,n,r,o){r?(i=e,Object(s.k)(e,(function(t,e){!t.isRemoved()&&l(e,e)}))):new By(i,e,a,a).add(l).update(l).remove(Object(s.h)(l,null)).execute();function a(t){return t.getId()}function l(a,s){var l=null!=a?e[a]:null,u=null!=s?i[s]:null,h=c(l,u,n,o);h&&t(l&&l.viewChildren||[],u&&u.viewChildren||[],h,r,o+1)}}(n.root?[n.root]:[],r&&r.root?[r.root]:[],t,n===r||!r,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Object(s.k)(t,(function(t,i){var n=e[i];Object(s.k)(t,(function(t){t&&(n.push(t),fM(t).willDelete=!0)}))})),e}(l);if(this._oldTree=n,this._storage=a,this._controllerHost){var d=this.seriesModel.layoutInfo,p=n.root.getLayout();p.width===d.width&&p.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:h,renderFinally:function(){Object(s.k)(h,(function(t){Object(s.k)(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(s.k)(u,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,i,n){var r=i.get("animationDurationUpdate"),o=i.get("animationEasing"),a=(Object(s.w)(r)?0:r)||0,l=(Object(s.w)(o)?null:o)||"cubicOut",u=new uM;Object(s.k)(e.willDeleteEls,(function(t,e){Object(s.k)(t,(function(t,i){if(!t.invisible){var r,o=t.parent,s=fM(o);if(n&&"drillDown"===n.direction)r=o===n.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;s.willDelete||(c=s.nodeWidth/2,h=s.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&u.add(t,r,a,0,l)}}))})),Object(s.k)(this._storage,(function(t,i){Object(s.k)(t,(function(t,n){var r=e.lastsForAnimation[i][n],o={};r&&(t instanceof Ci?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=Object(s.m)({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),u.add(t,o,a,0,l))}))}),this),this._state="animating",u.finished(Object(s.c)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),e||((e=this._controller=new Bw(t.getZr())).enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),e.on("pan",Object(s.c)(this._onPan,this)),e.on("zoom",Object(s.c)(this._onZoom,this)));var n=new ft(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var e=t.originX,i=t.originY,n=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new ft(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=n,a){var c=a.min||0,h=a.max||1/0;u=Math.max(Math.min(h,u),c)}var d=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];et(f,f,[-(e-=p.x),-(i-=p.y)]),nt(f,f,[d,d]),et(f,f,[e,i]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var i=e.seriesModel.get("nodeClick",!0);if(i){var n=e.findTarget(t.offsetX,t.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)e._rootToNode(n);else if("zoomToNode"===i)e._zoomToNode(n);else if("link"===i){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ks(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,i){var n=this;i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new lM(this.group))).render(t,e,i.node,(function(e){"animating"!==n._state&&(KC(t.getViewRoot(),e)?n._rootToNode({node:e}):n._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var r=this._storage.background[n.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}}),this),i},e.type="treemap",e}(tp),mM=s.k,yM=s.A,vM=function(){function t(e){var i=e.mappingMethod,n=e.type,r=this.option=s.d(e);this.type=n,this.mappingMethod=i,this._normalizeData=AM[i];var o=t.visualHandlers[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[i],"piecewise"===i?(bM(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,s.k(e,(function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===i?r.categories?function(t){var e=t.categories,i=t.categoryMap={},n=t.visual;if(mM(e,(function(t,e){i[t]=e})),!s.t(n)){var r=[];s.A(n)?mM(n,(function(t,e){var n=i[e];r[null!=n?n:-1]=t})):r[-1]=n,n=OM(t,r)}for(var o=e.length-1;o>=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}(r):bM(r,!0):(s.b("linear"!==i||r.dataExtent),bM(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return s.c(this._normalizeData,this)},t.listVisualTypes=function(){return s.F(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,i){s.A(t)?s.k(t,e,i):e.call(i,t)},t.mapVisual=function(e,i,n){var r,o=s.t(e)?[]:s.A(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=i.call(n,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var i,n={};return e&&mM(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(n[r]=e[r],i=!0)})),i?n:null},t.prepareVisualTypes=function(t){if(s.t(t))t=t.slice();else{if(!yM(t))return[];var e=[];mM(t,(function(t,i){e.push(i)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,i){for(var n,r=1/0,o=0,a=e.length;o<a;o++){var l=e[o].value;if(null!=l){if(l===t||s.C(l)&&l===t+"")return o;i&&d(l,o)}}for(o=0,a=e.length;o<a;o++){var u=e[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(IM(h[1],t,c[1]))return o}else if(c[1]===1/0){if(IM(h[0],c[0],t))return o}else if(IM(h[0],c[0],t)&&IM(h[1],t,c[1]))return o;i&&d(c[0],o),i&&d(c[1],o)}}if(i)return t===1/0?e.length-1:t===-1/0?0:n;function d(e,i){var o=Math.abs(e-t);o<r&&(r=o,n=i)}},t.visualHandlers={color:{applyVisual:wM("color"),getColorMapper:function(){var t=this.option;return s.c("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),SM.call(this,t)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=le.a(e,t.parsedVisual,n),r?n:le.i(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return le.i(le.a(t,this.option.parsedVisual),"rgba")},category:SM,piecewise:function(t,e){var i=kM.call(this,e);return null==i&&(i=le.i(le.a(t,this.option.parsedVisual),"rgba")),i},fixed:CM}},colorHue:xM((function(t,e){return le.g(t,e)})),colorSaturation:xM((function(t,e){return le.g(t,null,e)})),colorLightness:xM((function(t,e){return le.g(t,null,null,e)})),colorAlpha:xM((function(t,e){return le.f(t,e)})),decal:{applyVisual:wM("decal"),_normalizedToVisual:{linear:null,category:SM,piecewise:null,fixed:null}},opacity:{applyVisual:wM("opacity"),_normalizedToVisual:MM([0,1])},liftZ:{applyVisual:wM("liftZ"),_normalizedToVisual:{linear:CM,category:CM,piecewise:CM,fixed:CM}},symbol:{applyVisual:function(t,e,i){i("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:_M,category:SM,piecewise:function(t,e){var i=kM.call(this,e);return null==i&&(i=_M.call(this,t)),i},fixed:CM}},symbolSize:{applyVisual:wM("symbolSize"),_normalizedToVisual:MM([0,1])}},t}();function bM(t,e){var i=t.visual,n=[];s.A(i)?mM(i,(function(t){n.push(t)})):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),OM(t,n)}function xM(t){return{applyVisual:function(e,i,n){var r=this.mapValueToVisual(e);n("color",t(i("color"),r))},_normalizedToVisual:MM([0,1])}}function _M(t){var e=this.option.visual;return e[Math.round(Ti(t,[0,1],[0,e.length-1],!0))]||{}}function wM(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function SM(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function CM(){return this.option.visual[0]}function MM(t){return{linear:function(e){return Ti(e,t,this.option.visual,!0)},category:SM,piecewise:function(e,i){var n=kM.call(this,i);return null==n&&(n=Ti(e,t,this.option.visual,!0)),n},fixed:CM}}function kM(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[vM.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function OM(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=s.H(e,(function(t){var e=le.h(t);return e||[0,0,0,1]}))),e}var AM={linear:function(t){return Ti(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=vM.findPieceIndex(t,e,!0);if(null!=i)return Ti(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:s.L};function IM(t,e,i){return t?e<=i:e<i}var TM=vM,DM=cn(),LM={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,i,n,r){var o=e.getModel(),a=e.getLayout(),l=e.hostTree.data;if(!a||a.invisible||!a.isInView)return;var u,c=o.getModel("itemStyle"),h=function(t,e,i){var n=Object(s.m)({},e),r=i.designatedVisualItemStyle;return Object(s.k)(["color","colorAlpha","colorSaturation"],(function(i){r[i]=e[i];var o=t.get(i);r[i]=null,null!=o&&(n[i]=o)})),n}(c,i,r),d=l.ensureUniqueItemVisual(e.dataIndex,"style"),p=c.get("borderColor"),f=c.get("borderColorSaturation");null!=f&&(u=PM(h),p=function(t,e){return null!=e?Object(le.g)(e,null,null,t):null}(f,u));d.stroke=p;var g=e.viewChildren;if(g&&g.length){var m=function(t,e,i,n,r,o){if(!o||!o.length)return;var a=NM(e,"color")||null!=r.color&&"none"!==r.color&&(NM(e,"colorAlpha")||NM(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new TM(h);return DM(d).drColorMappingBy=c,d}(0,o,a,0,h,g);Object(s.k)(g,(function(e,i){if(e.depth>=n.length||e===n[e.depth]){var a=function(t,e,i,n,r,o){var a=Object(s.m)({},e);if(r){var l=r.type,u="color"===l&&DM(r).drColorMappingBy,c="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));a[l]=r.mapValueToVisual(c)}return a}(o,h,e,i,m,r);t(e,a,n,r)}}))}else u=PM(h),d.fill=u}(e,{},t.getViewRoot().getAncestors(),t)}};function PM(t){var e=jM(t,"color");if(e){var i=jM(t,"colorAlpha"),n=jM(t,"colorSaturation");return n&&(e=Object(le.g)(e,null,null,n)),i&&(e=Object(le.f)(e,i)),e}}function jM(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function NM(t,e){var i=t.get(e);return Object(s.t)(i)&&i.length?{name:e,range:i}:null}var EM=Math.max,RM=Math.min,zM=s.O,BM=s.k,VM=["itemStyle","borderWidth"],FM=["itemStyle","gapWidth"],HM=["upperLabel","show"],$M=["upperLabel","height"],GM={seriesType:"treemap",reset:function(t,e,i,n){var r=i.getWidth(),o=i.getHeight(),a=t.option,l=nl(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),u=a.size||[],c=Di(zM(l.width,u[0]),r),h=Di(zM(l.height,u[1]),o),d=n&&n.type,p=XC(n,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===d||"treemapMove"===d?n.rootRect:null,g=t.getViewRoot(),m=ZC(g);if("treemapMove"!==d){var y="treemapZoomToNode"===d?function(t,e,i,n,r){var o,a=(e||{}).node,s=[n,r];if(!a||a===i)return s;var l=n*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),m=g.get(VM),y=Math.max(m,YM(g));(u+=4*m*m+(3*m+y)*Math.pow(u,.5))>9007199254740991&&(u=9007199254740991),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[n*v,r*v]}(t,p,g,c,h):f?[f.width,f.height]:[c,h],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var b={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),function t(e,i,n,r){var o,a;if(e.isRemoved())return;var l=e.getLayout();o=l.width,a=l.height;var u=e.getModel(),c=u.get(VM),h=u.get(FM)/2,d=YM(u),p=Math.max(c,d),f=c-h,g=p-h;e.setLayout({borderWidth:c,upperHeight:p,upperLabelHeight:d},!0),o=EM(o-2*f,0),a=EM(a-f-g,0);var m=o*a,y=function(t,e,i,n,r,o){var a=t.children||[],l=n.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=n.leafDepth&&n.leafDepth<=o;if(r&&!u)return t.viewChildren=[];!function(t,e){e&&t.sort((function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}))}(a=s.n(a,(function(t){return!t.isRemoved()})),l);var c=function(t,e,i){for(var n=0,r=0,o=e.length;r<o;r++)n+=e[r].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&i?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&a.reverse()):(a=[1/0,-1/0],BM(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:n,dataExtent:a}}(e,a,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,i,n,r){if(!n)return i;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===n?a-l-1:l].getValue();u/i*e<o&&(s=l,i-=u)}return"asc"===n?r.splice(0,a-s):r.splice(s,a-s),i}(e,i,c.sum,l,a),0===c.sum)return t.viewChildren=[];for(var h=0,d=a.length;h<d;h++){var p=a[h].getValue()/c.sum*i;a[h].setLayout({area:p})}u&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:c.dataExtent},!0),a}(e,u,m,i,n,r);if(!y.length)return;var v={x:f,y:g,width:o,height:a},b=RM(o,a),x=1/0,_=[];_.area=0;for(var w=0,S=y.length;w<S;){var C=y[w];_.push(C),_.area+=C.getLayout().area;var M=WM(_,b,i.squareRatio);M<=x?(w++,x=M):(_.area-=_.pop().getLayout().area,UM(_,b,v,h,!1),b=RM(v.width,v.height),_.length=_.area=0,x=1/0)}_.length&&UM(_,b,v,h,!0);if(!n){var k=u.get("childrenVisibleMin");null!=k&&m<k&&(n=!0)}for(w=0,S=y.length;w<S;w++)t(y[w],i,n,r+1)}(g,b,!1,0),x=g.getLayout(),BM(m,(function(t,e){var i=(m[e+1]||g).getValue();t.setLayout(s.m({dataExtent:[i,i],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,o=r.getLayout();if(!o)return n;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(l,f,p),!0),t.setLayoutInfo(l),function t(e,i,n,r,o){var a=e.getLayout(),s=n[o],l=s&&s===e;if(s&&!l||o===n.length&&e!==r)return;e.setLayout({isInView:!0,invisible:!l&&!i.intersect(a),isAboveViewRoot:l},!0);var u=new ft(i.x-a.x,i.y-a.y,i.width,i.height);BM(e.viewChildren||[],(function(e){t(e,u,n,r,o+1)}))}(_,new ft(-l.x,-l.y,r,o),m,g,0)}};function WM(t,e,i){for(var n=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>n&&(n=a));var l=t.area*t.area,u=e*e*i;return l?EM(u*n/l,l/(u*r)):1/0}function UM(t,e,i,n,r){var o=e===i.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=i[s[o]],c=e?t.area/e:0;(r||c>i[l[a]])&&(c=i[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=EM(c-2*n,0),y=i[s[o]]+i[l[o]]-u,v=h===d-1||y<g?y:g,b=f[l[o]]=EM(v-2*n,0);f[s[a]]=i[s[a]]+RM(n,m/2),f[s[o]]=u+RM(n,b/2),u+=v,p.setLayout(f,!0)}i[s[a]]+=c,i[l[a]]-=c}function YM(t){return t.get(HM)?t.get($M):0}function qM(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getGraph().data,r=i.mapArray(i.getName);n.filterSelf((function(t){var i=n.getItemModel(t).getShallow("category");if(null!=i){Object(s.z)(i)&&(i=r[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0}))}))}function XM(t){var e={};t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getData(),r={};i.each((function(n){var o=i.getName(n);r["ec-"+o]=n;var a=i.getItemModel(n),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),i.setItemVisual(n,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&i.setItemVisual(n,l[u],c)}})),i.count()&&n.each((function(t){var e=n.getItemModel(t).getShallow("category");if(null!=e){Object(s.C)(e)&&(e=r["ec-"+e]);var o=i.getItemVisual(e,"style"),a=n.ensureUniqueItemVisual(t,"style");Object(s.m)(a,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)n.setItemVisual(t,l[u],i.getItemVisual(e,l[u]))}}))}))}function ZM(t){return t instanceof Array||(t=[t,t]),t}function KM(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),i=t.getEdgeData(),n=ZM(t.get("edgeSymbol")),r=ZM(t.get("edgeSymbolSize"));i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("style",t.getModel("lineStyle").getLineStyle()),i.each((function(t){var n=i.getItemModel(t),r=e.getEdgeByIndex(t),o=ZM(n.getShallow("symbol",!0)),a=ZM(n.getShallow("symbolSize",!0)),l=n.getModel("lineStyle").getLineStyle(),u=i.ensureUniqueItemVisual(t,"style");switch(Object(s.m)(u,l),u.stroke){case"source":var c=r.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=r.node2.getVisual("style");u.stroke=c&&c.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var QM=function(t){return t.get("autoCurveness")||null},JM=function(t,e){var i=QM(t),n=20,r=[];if(s.z(i))n=i;else if(s.t(i))return void(t.__curvenessList=i);e>n&&(n=e);var o=n%2?n+2:n+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},tk=function(t,e,i){var n=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[i.uid,n,r].join("--\x3e")},ek=function(t){var e=t.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},ik=function(t,e){var i=e.__edgeMap;return i[t]?i[t].length:0};function nk(t,e,i,n){var r=QM(e),o=s.t(r);if(!r)return null;var a=function(t,e){var i=tk(t.node1,t.node2,e);return e.__edgeMap[i]}(t,e);if(!a)return null;for(var l=-1,u=0;u<a.length;u++)if(a[u]===i){l=u;break}var c=function(t,e){return ik(tk(t.node1,t.node2,e),e)+ik(tk(t.node2,t.node1,e),e)}(t,e);JM(e,c),t.lineStyle=t.lineStyle||{};var h=tk(t.node1,t.node2,e),d=e.__curvenessList,p=o||c%2?0:1;if(a.isForward)return d[p+l];var f=ek(h),g=ik(f,e),m=d[l+g+p];return n?o?r&&0===r[0]?(g+p)%2?m:-m:((g%2?0:1)+p)%2?m:-m:(g+p)%2?m:-m:d[l+g+p]}function rk(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),ok(i,t)}}function ok(t,e){t.eachEdge((function(t,i){var n=s.Q(t.getModel().get(["lineStyle","curveness"]),-nk(t,e,i,!0),0),r=d(t.node1.getLayout()),o=d(t.node2.getLayout()),a=[r,o];+n&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*n,(r[1]+o[1])/2-(o[0]-r[0])*n]),t.setLayout(a)}))}function ak(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),r=[];Object(s.k)(i.dimensions,(function(t){r=r.concat(n.mapDimensionsAll(t))}));for(var o=0;o<n.count();o++){for(var a=[],l=!1,u=0;u<r.length;u++){var c=n.get(r[u],o);isNaN(c)||(l=!0),a.push(c)}l?n.setItemLayout(o,i.dataToPoint(a)):n.setItemLayout(o,[NaN,NaN])}ok(n.graph,t)}else e&&"none"!==e||rk(t)}))}function sk(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=t.option.nodeScaleRatio,n=e.scaleX;return((e.getZoom()-1)*i+1)/n}function lk(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var uk=Math.PI,ck=[];function hk(t,e,i,n){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),l=a.graph,u=o.width/2+o.x,c=o.height/2+o.y,h=Math.min(o.width,o.height)/2,p=a.count();if(a.setLayout({cx:u,cy:c}),p){if(i){var f=r.pointToData(n),g=f[0],m=f[1],y=[g-u,m-c];b(y,y),v(y,y,h),i.setLayout([u+y[0],c+y[1]],!0),pk(i,t.get(["circular","rotateLabel"]),u,c)}dk[e](t,l,a,h,u,c,p),l.eachEdge((function(e,i){var n,r=s.Q(e.getModel().get(["lineStyle","curveness"]),nk(e,t,i),0),o=d(e.node1.getLayout()),a=d(e.node2.getLayout()),l=(o[0]+a[0])/2,h=(o[1]+a[1])/2;+r&&(n=[u*(r*=3)+l*(1-r),c*r+h*(1-r)]),e.setLayout([o,a,n])}))}}}var dk={value:function(t,e,i,n,r,o,a){var s=0,l=i.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),i=u*(l?e:1)/2;s+=i,t.setLayout([n*Math.cos(s)+r,n*Math.sin(s)+o]),s+=i}))},symbolSize:function(t,e,i,n,r,o,a){var s=0;ck.length=a;var l=sk(t);e.eachNode((function(t){var e=lk(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var i=Math.asin(e/2/n);isNaN(i)&&(i=uk/2),ck[t.dataIndex]=i,s+=2*i}));var u=(2*uk-s)/a/2,c=0;e.eachNode((function(t){var e=u+ck[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([n*Math.cos(c)+r,n*Math.sin(c)+o]),c+=e}))}};function pk(t,e,i,n){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-i);u<0&&(u=2*Math.PI+u);var c=l[0]<i;c&&(u-=Math.PI);var h=c?"left":"right";a.setTextConfig({rotation:-u,position:h,origin:"center"});var d=a.ensureState("emphasis");s.m(d.textConfig||(d.textConfig={}),{position:h})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function fk(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&hk(t,"symbolSize")}))}var gk=f;function mk(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),r=n.data,o=n.edgeData,a=t.getModel("force"),l=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,i[e]||[NaN,NaN])})):l&&"none"!==l?"circular"===l&&hk(t,"value"):rk(t);var u=r.getDataExtent("value"),p=o.getDataExtent("value"),f=a.get("repulsion"),y=a.get("edgeLength"),v=s.t(f)?f:[f,f],x=s.t(y)?y:[y,y];x=[x[1],x[0]];var _=r.mapArray("value",(function(t,e){var i=r.getItemLayout(e),n=Ti(t,u,v);return isNaN(n)&&(n=(v[0]+v[1])/2),{w:n,rep:n,fixed:r.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),w=o.mapArray("value",(function(e,i){var r=n.getEdgeByIndex(i),o=Ti(e,p,x);isNaN(o)&&(o=(x[0]+x[1])/2);var a=r.getModel(),l=s.Q(r.getModel().get(["lineStyle","curveness"]),-nk(r,t,i,!0),0);return{n1:_[r.node1.dataIndex],n2:_[r.node2.dataIndex],d:o,curveness:l,ignoreForceLayout:a.get("ignoreForceLayout")}})),S=e.getBoundingRect(),C=function(t,e,i){for(var n=t,r=e,o=i.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==i.gravity?.1:i.gravity,p=0;p<n.length;p++){var f=n[p];f.p||(f.p=c(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=d(f.p),f.edges=null}var y,v,x=null==i.friction?.6:i.friction,_=x;return{warmUp:function(){_=.8*x},setFixed:function(t){n[t].fixed=!0},setUnfixed:function(t){n[t].fixed=!1},beforeStep:function(t){y=t},afterStep:function(t){v=t},step:function(t){y&&y(n,r);for(var e,i,o,a=[],s=n.length,c=0;c<r.length;c++){var d=r[c];if(!d.ignoreForceLayout){var p=d.n1;g(a,(S=d.n2).p,p.p);var f=m(a)-d.d,x=S.w/(p.w+S.w);isNaN(x)&&(x=0),b(a,a),!p.fixed&&gk(p.p,p.p,a,x*f*_),!S.fixed&&gk(S.p,S.p,a,-(1-x)*f*_)}}for(c=0;c<s;c++){(k=n[c]).fixed||(g(a,l,k.p),gk(k.p,k.p,a,u*_))}for(c=0;c<s;c++){p=n[c];for(var w=c+1;w<s;w++){var S;g(a,(S=n[w]).p,p.p),0===(f=m(a))&&(e=a,i=Math.random()-.5,o=Math.random()-.5,e[0]=i,e[1]=o,f=1);var C=(p.rep+S.rep)/f/f;!p.fixed&&gk(p.pp,p.pp,a,C),!S.fixed&&gk(S.pp,S.pp,a,-C)}}var M=[];for(c=0;c<s;c++){var k;(k=n[c]).fixed||(g(M,k.p,k.pp),gk(k.p,k.p,M,_),h(k.pp,k.p))}var O=(_*=.992)<.01;v&&v(n,r,O),t&&t(O)}}}(_,w,{rect:S,gravity:a.get("gravity"),friction:a.get("friction")});C.beforeStep((function(t,e){for(var i=0,r=t.length;i<r;i++)t[i].fixed&&h(t[i].p,n.getNodeByIndex(i).getLayout())})),C.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||n.getNodeByIndex(a).setLayout(t[a].p),i[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=n.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],h(p[0],c),h(p[1],d),+l.curveness&&(p[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(p)}})),t.forceLayout=C,t.preservedPoints=i,C.step()}else t.forceLayout=null}))}function yk(t,e){var i=[];return t.eachSeriesByType("graph",(function(t){var n=t.get("coordinateSystem");if(!n||"view"===n){var r=t.getData(),o=[],a=[];hr(r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var l=(a[0]-o[0])/(a[1]-o[1]),u=function(t,e,i){return nl(Object(s.m)(t.getBoxLayoutParams(),{aspect:i}),{width:e.getWidth(),height:e.getHeight()})}(t,e,l);isNaN(l)&&(o=[u.x,u.y],a=[u.x+u.width,u.y+u.height]);var c=a[0]-o[0],h=a[1]-o[1],d=u.width,p=u.height,f=t.coordinateSystem=new aC;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),i.push(f)}})),i}var vk=Zh.prototype,bk=ed.prototype,xk=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t)}(xk);function _k(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var wk=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-line",i}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xk},e.prototype.buildPath=function(t,e){_k(e)?vk.buildPath.call(this,t,e):bk.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return _k(this.shape)?vk.pointAt.call(this,t):bk.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,i=_k(e)?[e.x2-e.x1,e.y2-e.y1]:bk.tangentAt.call(this,t);return b(i,i)},e}(io),Sk=["fromSymbol","toSymbol"];function Ck(t){return"_"+t+"Type"}function Mk(t,e,i){var n=e.getItemVisual(i,t);if(!n||"none"===n)return n;var r=e.getItemVisual(i,t+"Size"),o=e.getItemVisual(i,t+"Rotate"),a=e.getItemVisual(i,t+"Offset"),s=e.getItemVisual(i,t+"KeepAspect"),l=lf(r);return n+l+uf(a||0,l)+(o||"")+(s||"")}function kk(t,e,i){var n=e.getItemVisual(i,t);if(n&&"none"!==n){var r=e.getItemVisual(i,t+"Size"),o=e.getItemVisual(i,t+"Rotate"),a=e.getItemVisual(i,t+"Offset"),s=e.getItemVisual(i,t+"KeepAspect"),l=lf(r),u=uf(a||0,l),c=sf(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function Ok(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Ak=function(t){function e(e,i,n){var r=t.call(this)||this;return r._createLine(e,i,n),r}return o(e,t),e.prototype._createLine=function(t,e,i){var n=t.hostModel,r=function(t){var e=new wk({name:"line",subPixelOptimize:!0});return Ok(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,Da(r,{shape:{percent:1}},n,e),this.add(r),Object(s.k)(Sk,(function(i){var n=kk(i,t,e);this.add(n),this[Ck(i)]=Mk(i,t,e)}),this),this._updateCommonStl(t,e,i)},e.prototype.updateData=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};Ok(a.shape,o),Ta(r,a,n,e),Object(s.k)(Sk,(function(i){var n=Mk(i,t,e),r=Ck(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=kk(i,t,e);this.add(o)}this[r]=n}),this),this._updateCommonStl(t,e,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=i&&i.emphasisLineStyle,a=i&&i.blurLineStyle,l=i&&i.selectLineStyle,u=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||t.hasItemOption){var p=t.getItemModel(e),f=p.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),c=f.get("disabled"),h=f.get("focus"),d=f.get("blurScope"),u=Fa(p)}var g=t.getItemVisual(e,"style"),m=g.stroke;r.useStyle(g),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=l,Object(s.k)(Sk,(function(t){var e=this.childOfName(t);if(e){e.setColor(m),e.style.opacity=g.opacity;for(var i=0;i<Fo.length;i++){var n=Fo[i],o=r.getState(n);if(o){var a=o.style||{},s=e.ensureState(n),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=n.getRawValue(e);Va(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,i){return n.getFormattedLabel(e,i,t.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Li(y):y)+""});var v=this.getTextContent();if(v){var b=u.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=b.get("position")||"middle";var x=b.get("distance");Object(s.t)(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),va(this,h,d,c)},e.prototype.highlight=function(){ra(this)},e.prototype.downplay=function(){oa(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");Ok(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),i=this.getTextContent();if(t||e||i&&!i.ignore){for(var n=1,r=this.parent;r;)r.scaleX&&(n/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=g([],l,s);if(b(u,u),t&&(t.setPosition(s),C(t,0),t.scaleX=t.scaleY=n*a,t.markRedraw()),e&&(e.setPosition(l),C(e,1),e.scaleX=e.scaleY=n*a,e.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var c=void 0,h=void 0,d=i.__labelDistance,p=d[0]*n,f=d[1]*n,m=a/2,y=o.tangentAt(m),v=[y[1],-y[0]],x=o.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(y[1],y[0]);l[0]<s[0]&&(w=Math.PI+w),i.rotation=w}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-f,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=f,h="top";break;default:S=0,h="middle"}switch(i.__position){case"end":i.x=u[0]*p+l[0],i.y=u[1]*f+l[1],c=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*p+s[0],i.y=-u[1]*f+s[1],c=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*_+s[0],i.y=s[1]+S,c=y[0]<0?"right":"left",i.originX=-p*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,c="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*_+l[0],i.y=l[1]+S,c=y[0]>=0?"right":"left",i.originX=p*_,i.originY=-S}i.scaleX=i.scaleY=n,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||c})}}}function C(t,e){var i=t.__specifiedRotation;if(null==i){var n=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else t.attr("rotation",i)}},e}(Ci);function Ik(t){var e=t.hostModel,i=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:Fa(e)}}function Tk(t){return isNaN(t[0])||isNaN(t[1])}function Dk(t){return t&&!Tk(t[0])&&!Tk(t[1])}var Lk=function(){function t(t){this.group=new Ci,this._LineCtor=t||Ak}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this.group,n=this._lineData;this._lineData=t,n||i.removeAll();var r=Ik(t);t.diff(n).add((function(i){e._doAdd(t,i,r)})).update((function(i,o){e._doUpdate(n,t,o,i,r)})).remove((function(t){i.remove(n.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ik(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function i(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=t.start;n<t.end;n++){if(Dk(e.getItemLayout(n))){var r=new this._LineCtor(e,n,this._seriesScope);r.traverse(i),this.group.add(r),e.setItemGraphicEl(n,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,i){if(Dk(t.getItemLayout(e))){var n=new this._LineCtor(t,e,i);t.setItemGraphicEl(e,n),this.group.add(n)}},t.prototype._doUpdate=function(t,e,i,n,r){var o=t.getItemGraphicEl(i);Dk(e.getItemLayout(n))?(o?o.updateData(e,n,r):o=new this._LineCtor(e,n,r),e.setItemGraphicEl(n,o),this.group.add(o)):this.group.remove(o)},t}(),Pk=[],jk=[],Nk=[],Ek=Jt,Rk=w,zk=Math.abs;function Bk(t,e,i){for(var n,r=t[0],o=t[1],a=t[2],s=1/0,l=i*i,u=.1,c=.1;c<=.9;c+=.1){Pk[0]=Ek(r[0],o[0],a[0],c),Pk[1]=Ek(r[1],o[1],a[1],c),(p=zk(Rk(Pk,e)-l))<s&&(s=p,n=c)}for(var h=0;h<32;h++){var d=n+u;jk[0]=Ek(r[0],o[0],a[0],n),jk[1]=Ek(r[1],o[1],a[1],n),Nk[0]=Ek(r[0],o[0],a[0],d),Nk[1]=Ek(r[1],o[1],a[1],d);var p=Rk(jk,e)-l;if(zk(p)<.01)break;var f=Rk(Nk,e)-l;u/=2,p<0?f>=0?n+=u:n-=u:f>=0?n-=u:n+=u}return n}function Vk(t,e){var i=[],n=ie,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[d(l[0]),d(l[1])],l[2]&&l.__original.push(d(l[2])));var p=l.__original;if(null!=l[2]){if(h(r[0],p[0]),h(r[1],p[2]),h(r[2],p[1]),u&&"none"!==u){var m=lk(t.node1),y=Bk(r,p[0],m*e);n(r[0][0],r[1][0],r[2][0],y,i),r[0][0]=i[3],r[1][0]=i[4],n(r[0][1],r[1][1],r[2][1],y,i),r[0][1]=i[3],r[1][1]=i[4]}if(c&&"none"!==c){m=lk(t.node2),y=Bk(r,p[1],m*e);n(r[0][0],r[1][0],r[2][0],y,i),r[1][0]=i[1],r[2][0]=i[2],n(r[0][1],r[1][1],r[2][1],y,i),r[1][1]=i[1],r[2][1]=i[2]}h(l[0],r[0]),h(l[1],r[2]),h(l[2],r[1])}else{if(h(o[0],p[0]),h(o[1],p[1]),g(a,o[1],o[0]),b(a,a),u&&"none"!==u){m=lk(t.node1);f(o[0],o[0],a,m*e)}if(c&&"none"!==c){m=lk(t.node2);f(o[1],o[1],a,-m*e)}h(l[0],o[0]),h(l[1],o[1])}}))}function Fk(t){return"view"===t.type}var Hk=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){var i=new Ov,n=new Lk,r=this.group;this._controller=new Bw(e.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Fk(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Ta(s,l,t)}Vk(t.getGraph(),sk(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var i=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,d),h.setFixed(i),u.setItemLayout(i,[r.x,r.y]);break;case"circular":u.setItemLayout(i,[r.x,r.y]),e.setLayout({fixed:!0},!0),hk(t,"symbolSize",e,[o.offsetX,o.offsetY]),n.updateLayout(t);break;case"none":default:u.setItemLayout(i,[r.x,r.y]),ok(t.getGraph(),t),n.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(i)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(No(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),i=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===i&&(No(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(t){pk(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var i=this;!function n(){t.step((function(t){i.updateLayout(i._model),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())}))}()},e.prototype._updateController=function(t,e,i){var n=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,n,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(n,r)&&!Gw(e,i,t)})),Fk(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Vw(o,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Fw(o,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),n._updateNodeAndLinkScale(),Vk(t.getGraph(),sk(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),i=sk(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(i)}))},e.prototype.updateLayout=function(t){Vk(t.getGraph(),sk(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(tp);function $k(t){return"_EC_"+t}var Gk=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var i=this._nodesMap;if(!i[$k(t)]){var n=new Wk(t,e);return n.hostGraph=this,this.nodes.push(n),i[$k(t)]=n,n}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[$k(t)]},t.prototype.addEdge=function(t,e,i){var n=this._nodesMap,r=this._edgesMap;if(s.z(t)&&(t=this.nodes[t]),s.z(e)&&(e=this.nodes[e]),t instanceof Wk||(t=n[$k(t)]),e instanceof Wk||(e=n[$k(e)]),t&&e){var o=t.id+"-"+e.id,a=new Uk(t,e,i);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof Wk&&(t=t.id),e instanceof Wk&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var i=this.nodes,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&t.call(e,i[r],r)},t.prototype.eachEdge=function(t,e){for(var i=this.edges,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&t.call(e,i[r],r)},t.prototype.breadthFirstTraverse=function(t,e,i,n){if(e instanceof Wk||(e=this._nodesMap[$k(e)]),e){for(var r="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(n,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0}));for(r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),i=this.nodes,n=this.edges,r=0;r<i.length;r++)e.addNode(i[r].id,i[r].dataIndex);for(r=0;r<n.length;r++){var o=n[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),Wk=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var i=this.edges[e];i.dataIndex<0||(t.edge.push(i.dataIndex),t.node.push(i.node1.dataIndex,i.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=s.f(),e=s.f(),i=0;i<this.edges.length;i++){var n=this.edges[i];if(!(n.dataIndex<0)){t.set(n.dataIndex,!0);for(var r=[n.node1],o=[n.node2],a=0;a<r.length;){var l=r[a];a++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),r.push(l.inEdges[u].node1)}for(a=0;a<o.length;){var c=o[a];a++,e.set(c.dataIndex,!0);for(u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),Uk=function(){function t(t,e,i){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=s.f(),e=s.f();t.set(this.dataIndex,!0);for(var i=[this.node1],n=[this.node2],r=0;r<i.length;){var o=i[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),i.push(o.inEdges[a].node1)}for(r=0;r<n.length;){var l=n[r];r++,e.set(l.dataIndex,!0);for(a=0;a<l.outEdges.length;a++)t.set(l.outEdges[a].dataIndex,!0),n.push(l.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function Yk(t,e){return{getValue:function(i){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i){return this[t][e].getItemVisual(this.dataIndex,i)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}s.K(Wk,Yk("hostGraph","data")),s.K(Uk,Yk("hostGraph","edgeData"));var qk=Gk;function Xk(t,e,i,n,r){for(var o=new qk(n),a=0;a<t.length;a++)o.addNode(s.O(t[a].id,t[a].name,a),a);var l=[],u=[],c=0;for(a=0;a<e.length;a++){var h=e[a],d=h.source,p=h.target;o.addEdge(d,p,c)&&(u.push(h),l.push(s.O(an(h.id,null),d+" > "+p)),c++)}var f,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=vv(t,i);else{var m=Gl.get(g),y=m&&m.dimensions||[];s.r(y,"value")<0&&y.concat(["value"]);var v=cv(t,{coordDimensions:y,encodeDefine:i.getEncode()}).dimensions;(f=new uv(v,i)).initData(t)}var b=new uv(["value"],i);return b.initData(u,l),r&&r(f,b),UC({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Zk=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var i=this;function n(){return i._categoriesData}this.legendVisualProvider=new nx(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Qi(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var i,n=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&n){QM(i=this)&&(i.__curvenessList=[],i.__edgeMap={},JM(i));var a=Xk(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var i=hs.prototype.getModel;function n(t,e){var n=i.call(this,t,e);return n.resolveParentPath=r,n}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=n,t}))}));return s.k(a.edges,(function(t){!function(t,e,i,n){if(QM(i)){var r=tk(t,e,i),o=i.__edgeMap,a=o[ek(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(n)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(t,i),o=n.graph.getEdgeByIndex(t),a=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Cc("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Nc({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=s.H(this.option.categories||[],(function(t){return null!=t.value?t:s.m({value:0},t)})),e=new uv(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Uc),Kk={type:"graphRoam",event:"graphRoam",update:"none"};var Qk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Jk=function(t){function e(e){var i=t.call(this,e)||this;return i.type="pointer",i}return o(e,t),e.prototype.getDefaultShape=function(){return new Qk},e.prototype.buildPath=function(t,e){var i=Math.cos,n=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-i(a)*o*(o>=r/3?1:2),l=e.y-n(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(a)*o,e.y+n(a)*o),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(a)*o,e.y-n(a)*o),t.lineTo(s,l)},e}(io);function tO(t,e){var i=null==t?"":t+"";return e&&(Object(s.C)(e)?i=e.replace("{value}",i):Object(s.w)(e)&&(i=e(t))),i}var eO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r);return{cx:Di(i[0],e.getWidth()),cy:Di(i[1],e.getHeight()),r:Di(t.get("radius"),o/2)}}(t,i);this._renderMain(t,e,i,n,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,i,n,r){var o=this.group,a=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?bb:Eh,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),g=[l,u];Nr(g,!a);for(var m=(u=g[1])-(l=g[0]),y=l,v=[],b=0;d&&b<n.length;b++){var x=new h({shape:{startAngle:y,endAngle:u=l+m*Math.min(Math.max(n[b][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});x.setStyle({fill:n[b][1]}),x.setStyle(p.getLineStyle(["color","width"])),v.push(x),y=u}v.reverse(),Object(s.k)(v,(function(t){return o.add(t)}));var _=function(t){if(t<=0)return n[0][1];var e;for(e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};this._renderTicks(t,e,i,_,r,l,u,a,f),this._renderTitleAndDetail(t,e,i,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,i,_,r,l,u,a,f)},e.prototype._renderTicks=function(t,e,i,n,r,o,a,l,u){for(var c,h,d=this.group,p=r.cx,f=r.cy,g=r.r,m=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),b=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=b.get("splitNumber"),S=Di(v.get("length"),g),C=Di(b.get("length"),g),M=o,k=(a-o)/_,O=k/w,A=v.getModel("lineStyle").getLineStyle(),I=b.getModel("lineStyle").getLineStyle(),T=v.get("distance"),D=0;D<=_;D++){if(c=Math.cos(M),h=Math.sin(M),v.get("show")){var L=new Zh({shape:{x1:c*(g-(P=T?T+u:u))+p,y1:h*(g-P)+f,x2:c*(g-S-P)+p,y2:h*(g-S-P)+f},style:A,silent:!0});"auto"===A.stroke&&L.setStyle({stroke:n(D/_)}),d.add(L)}if(x.get("show")){var P=x.get("distance")+T,j=tO(Li(D/_*(y-m)+m),x.get("formatter")),N=n(D/_),E=c*(g-S-P)+p,R=h*(g-S-P)+f,z=x.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:Object(s.z)(z)&&(B=z*Math.PI/180),0===B?d.add(new jo({style:Ha(x,{text:j,x:E,y:R,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):d.add(new jo({style:Ha(x,{text:j,x:E,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:E,originY:R,rotation:B}))}if(b.get("show")&&D!==_){P=(P=b.get("distance"))?P+u:u;for(var V=0;V<=w;V++){c=Math.cos(M),h=Math.sin(M);var F=new Zh({shape:{x1:c*(g-P)+p,y1:h*(g-P)+f,x2:c*(g-C-P)+p,y2:h*(g-C-P)+f},silent:!0,style:I});"auto"===I.stroke&&F.setStyle({stroke:n((D+V/w)/_)}),d.add(F),M+=O}M-=O}else M+=k}},e.prototype._renderPointer=function(t,e,i,n,r,o,a,l,u){var c=this.group,h=this._data,d=this._progressEls,p=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),y=t.getData(),v=y.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),_=[b,x],w=[o,a];function S(e,i){var n,o=y.getItemModel(e).getModel("pointer"),a=Di(o.get("width"),r.r),s=Di(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Di(u[0],r.r),h=Di(u[1],r.r),d=o.get("keepAspect");return(n=l?sf(l,c-a/2,h-s,a,s,null,d):new Jk({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(i+Math.PI/2),n.x=r.cx,n.y=r.cy,n}function C(t,e){var i=g.get("roundCap")?bb:Eh,n=g.get("overlap"),a=n?g.get("width"):u/y.count(),s=n?r.r-a:r.r-(t+1)*a,c=n?r.r:r.r-t*a,h=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:l,r0:s,r:c}});return n&&(h.z2=Ti(y.get(v,t),[b,x],[100,0],!0)),h}(m||f)&&(y.diff(h).add((function(e){var i=y.get(v,e);if(f){var n=S(e,o);Da(n,{rotation:-((isNaN(+i)?w[0]:Ti(i,_,w,!0))+Math.PI/2)},t),c.add(n),y.setItemGraphicEl(e,n)}if(m){var r=C(e,o),a=g.get("clip");Da(r,{shape:{endAngle:Ti(i,_,w,a)}},t),c.add(r),Eo(t.seriesIndex,y.dataType,e,r),p[e]=r}})).update((function(e,i){var n=y.get(v,e);if(f){var r=h.getItemGraphicEl(i),a=r?r.rotation:o,s=S(e,a);s.rotation=a,Ta(s,{rotation:-((isNaN(+n)?w[0]:Ti(n,_,w,!0))+Math.PI/2)},t),c.add(s),y.setItemGraphicEl(e,s)}if(m){var l=d[i],u=C(e,l?l.shape.endAngle:o),b=g.get("clip");Ta(u,{shape:{endAngle:Ti(n,_,w,b)}},t),c.add(u),Eo(t.seriesIndex,y.dataType,e,u),p[e]=u}})).execute(),y.each((function(t){var e=y.getItemModel(t),i=e.getModel("emphasis"),r=i.get("focus"),o=i.get("blurScope"),a=i.get("disabled");if(f){var l=y.getItemGraphicEl(t),u=y.getItemVisual(t,"style"),c=u.fill;if(l instanceof uo){var h=l.style;l.useStyle(Object(s.m)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",n(Ti(y.get(v,t),_,[0,1],!0))),l.z2EmphasisLift=0,wa(l,e),va(l,r,o,a)}if(m){var d=p[t];d.useStyle(y.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,wa(d,e),va(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var i=t.getModel("anchor");if(i.get("show")){var n=i.get("size"),r=i.get("icon"),o=i.get("offsetCenter"),a=i.get("keepAspect"),s=sf(r,e.cx-n/2+Di(o[0],e.r),e.cy-n/2+Di(o[1],e.r),n,n,null,a);s.z2=i.get("showAbove")?1:0,s.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,i,n,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Ci,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new jo({silent:!0}),d[t]=new jo({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var i=a.getItemModel(e),o=a.get(s,e),g=new Ci,m=n(Ti(o,[l,u],[0,1],!0)),y=i.getModel("title");if(y.get("show")){var v=y.get("offsetCenter"),b=r.cx+Di(v[0],r.r),x=r.cy+Di(v[1],r.r);(A=h[e]).attr({z2:f?0:2,style:Ha(y,{x:b,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(A)}var _=i.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=r.cx+Di(w[0],r.r),C=r.cy+Di(w[1],r.r),M=Di(_.get("width"),r.r),k=Di(_.get("height"),r.r),O=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,A=d[e],I=_.get("formatter");A.attr({z2:f?0:2,style:Ha(_,{x:S,y:C,text:tO(o,I),width:isNaN(M)?null:M,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Za(A,{normal:_},o,(function(t){return tO(t,I)})),p&&Ka(A,e,a,t,{getFormattedLabel:function(t,e,i,n,r,a){return tO(a?a.interpolatedValue:o,I)}}),g.add(A)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(tp),iO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.visualStyleAccessPath="itemStyle",i}return o(e,t),e.prototype.getInitialData=function(t,e){return ix(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Uc);var nO=["itemStyle","opacity"],rO=function(t){function e(e,i){var n=t.call(this)||this,r=n,o=new Uh,a=new jo;return r.setTextContent(a),n.setTextGuideLine(o),n.updateData(e,i,!0),n}return o(e,t),e.prototype.updateData=function(t,e,i){var n=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),a=r.getModel("emphasis"),s=r.get(nO);s=null==s?1:s,i||Ea(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",i?(this.setShape({points:o.points}),this.style.opacity=0,Da(this,{style:{opacity:s}},n,e)):Ta(this,{style:{opacity:s},shape:{points:o.points}},n,e),wa(this,r),this._updateLabel(t,e),va(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var i=this.getTextGuideLine(),n=this.getTextContent(),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;Va(n,Fa(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;i.setShape({points:u}),this.textGuideLineConfig={anchor:u?new ot(u[0][0],u[0][1]):null},Ta(n,{style:{x:a.x,y:a.y}},r,e),n.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),um(this,cm(o),{stroke:l})},e}($h),oO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.ignoreLabelLineUpdate=!0,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this._data,o=this.group;n.diff(r).add((function(t){var e=new rO(n,t);n.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var i=r.getItemGraphicEl(e);i.updateData(n,t),o.add(i),n.setItemGraphicEl(t,i)})).remove((function(e){Na(r.getItemGraphicEl(e),t,e)})).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(tp),aO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new nx(s.c(this.getData,this),s.c(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return ix(this,{coordDimensions:["value"],encodeDefaulter:s.h(_l,this)})},e.prototype._defaultLabelLine=function(t){Qi(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var i=this.getData(),n=t.prototype.getDataParams.call(this,e),r=i.mapDimension("value"),o=i.getSum(r);return n.percent=o?+(i.get(r,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Uc);function sO(t,e){t.eachSeriesByType("funnel",(function(t){var i=t.getData(),n=i.mapDimension("value"),r=t.get("sort"),o=function(t,e){return nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),l=o.width,u=o.height,c=function(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,(function(t){return t})),r=[],o="ascending"===e,a=0,l=t.count();a<l;a++)r[a]=a;return Object(s.w)(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?n[t]-n[e]:n[e]-n[t]})),r}(i,r),h=o.x,d=o.y,p="horizontal"===a?[Di(t.get("minSize"),u),Di(t.get("maxSize"),u)]:[Di(t.get("minSize"),l),Di(t.get("maxSize"),l)],f=i.getDataExtent(n),g=t.get("min"),m=t.get("max");null==g&&(g=Math.min(f[0],0)),null==m&&(m=f[1]);var y=t.get("funnelAlign"),v=t.get("gap"),b=(("horizontal"===a?l:u)-v*(i.count()-1))/i.count(),x=function(t,e){if("horizontal"===a){var r=Ti(i.get(n,t)||0,[g,m],p,!0),o=void 0;switch(y){case"top":o=d;break;case"center":o=d+(u-r)/2;break;case"bottom":o=d+(u-r)}return[[e,o],[e,o+r]]}var s,c=Ti(i.get(n,t)||0,[g,m],p,!0);switch(y){case"left":s=h;break;case"center":s=h+(l-c)/2;break;case"right":s=h+l-c}return[[s,e],[s+c,e]]};"ascending"===r&&(b=-b,v=-v,"horizontal"===a?h+=l:d+=u,c=c.reverse());for(var _=0;_<c.length;_++){var w=c[_],S=c[_+1],C=i.getItemModel(w);if("horizontal"===a){var M=C.get(["itemStyle","width"]);null==M?M=b:(M=Di(M,l),"ascending"===r&&(M=-M));var k=x(w,h),O=x(S,h+M);h+=M+v,i.setItemLayout(w,{points:k.concat(O.slice().reverse())})}else{var A=C.get(["itemStyle","height"]);null==A?A=b:(A=Di(A,u),"ascending"===r&&(A=-A));k=x(w,d),O=x(S,d+A);d+=A+v,i.setItemLayout(w,{points:k.concat(O.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(i){var n,r,o,a,s=t.getItemModel(i),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(i),h=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,n="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,n="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,m=void 0,y=u.get("length");0,"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=p-y)-5,n="right"):"right"===l?(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=p+y)+5,n="left"):"top"===l?(p=(h[3][0]+h[0][0])/2,o=(m=(f=(h[3][1]+h[0][1])/2)-y)-5,n="center"):"bottom"===l?(p=(h[1][0]+h[2][0])/2,o=(m=(f=(h[1][1]+h[2][1])/2)+y)+5,n="center"):"rightTop"===l?(p="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(m=f-y)-5,n="center"):(r=(g=p+y)+5,n="top")):"rightBottom"===l?(p=h[2][0],f=h[2][1],"horizontal"===e?(o=(m=f+y)+5,n="center"):(r=(g=p+y)+5,n="bottom")):"leftTop"===l?(p=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(m=f-y)-5,n="center"):(r=(g=p-y)-5,n="right")):"leftBottom"===l?(p="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(m=f+y)+5,n="center"):(r=(g=p-y)-5,n="right")):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(m=f+y)+5,n="center"):(r=(g=p+y)+5,n="left")),"horizontal"===e?r=g=p:o=m=f,a=[[p,f],[g,m]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:n,inside:d}}))}(i)}))}function lO(t,e,i,n){for(var r,o=[],a=0;a<i.length;a++){var s=i[a],l=t.get(t.mapDimension(s),e);r=l,("category"===n.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(n.dataToPoint(l,s))}return o}function uO(t,e,i,n,r){var o=lO(t,i,n,r),a=new Uh({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(i,a),a}function cO(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=Ui(e),Object(s.l)(e)&&(e=0),{smooth:e}}function hO(t,e,i,n){t.useStyle(e.getItemVisual(i,"style")),t.style.fill=null,t.setShape("smooth",n.smooth);var r=e.getItemModel(i),o=r.getModel("emphasis");wa(t,r,"lineStyle"),va(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var dO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._dataGroup=new Ci,i._initialized=!1,i}return o(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,i,n){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=cO(t);if(o.diff(a).add((function(t){hO(uO(o,r,t,l,s),o,t,u)})).update((function(e,i){var n=a.getItemGraphicEl(i),r=lO(o,e,l,s);o.setItemGraphicEl(e,n),Ta(n,{shape:{points:r}},t,e),Ea(n),hO(n,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,i){var n=t.model,r=t.getRect(),o=new vo({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===n.get("layout")?"width":"height";return o.setShape(a,0),Da(o,{shape:{width:r.width,height:r.height}},e,i),o}(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,i){for(var n=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=cO(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=uO(n,this._dataGroup,l,o,r);u.incremental=!0,hO(u,n,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(tp);function pO(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var i={};return Object(s.k)(e.dimensions,(function(t){var e=+t.replace("dim","");i[t]=e})),i}}var fO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return o(e,t),e.prototype.getInitialData=function(t,e){return vv(null,this,{useEncodeDefaulter:Object(s.c)(pO,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,r){t===e&&n.push(i.getRawIndex(r))})),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Uc),gO=["lineStyle","opacity"],mO={seriesType:"parallel",reset:function(t,e){var i=t.coordinateSystem,n={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){i.eachActiveState(e,(function(t,i){var r=n[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(i).get(gO,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(i,"style").opacity=r}),t.start,t.end)}}}};function yO(t){!function(t){if(t.parallel)return;var e=!1;s.k(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=Ki(t.parallelAxis);s.k(e,(function(e){if(s.A(e)){var i=e.parallelIndex||0,n=Ki(t.parallel)[i];n&&n.parallelAxisDefault&&s.I(e,n.parallelAxisDefault,!1)}}))}(t)}var vO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},Object(s.k)(bO,(function(t,e){i.getZr().on(e,this._handlers[e]=Object(s.c)(t,this))}),this)),rp(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){op(this,"_throttledDispatchExpand"),Object(s.k)(this._handlers,(function(t,i){e.getZr().off(i,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(s.m)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(qc),bO={mousedown:function(t){xO(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(xO(this,"click")&&e){var i=[t.offsetX,t.offsetY];if(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&xO(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n?null:{duration:0}})}}};function xO(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}var _O=vO,wO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&s.I(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){s.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=s.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);s.k(i,(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(hl),SO=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.type=r||"value",a.axisIndex=o,a}return o(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(j_);function CO(t,e,i,n,r,o){t=t||0;var a=i[1]-i[0];if(null!=r&&(r=kO(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var s=Math.abs(e[1]-e[0]);s=kO(s,[0,a]),r=o=kO(s,[r,o]),n=0}e[0]=kO(e[0],i),e[1]=kO(e[1],i);var l=MO(e,n);e[n]+=t;var u,c=r||0,h=i.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[n]=kO(e[n],h),u=MO(e,n),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-n]=e[n]+l.sign*r),u=MO(e,n),null!=o&&u.span>o&&(e[1-n]=e[n]+u.sign*o),e}function MO(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function kO(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var OO=s.k,AO=Math.min,IO=Math.max,TO=Math.floor,DO=Math.ceil,LO=Li,PO=Math.PI;function jO(t,e){return AO(IO(t,e[0]),e[1])}function NO(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function EO(t,e){var i,n,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(i=r-(a-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:n}}var RO=function(){function t(t,e,i){this.type="parallel",this._axesMap=s.f(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return t.prototype._init=function(t,e,i){var n=t.dimensions,r=t.parallelAxisIndex;OO(n,(function(t,i){var n=r[i],o=e.getComponent("parallelAxis",n),a=this._axesMap.set(t,new SO(t,d_(o),[0,0],o.get("type"),n)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=i&&o<=i+e.axisLength&&a>=n&&a<=n+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();OO(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),h_(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,n=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=i[r[a]],l=[0,s],u=this.dimensions.length,c=jO(e.get("axisExpandWidth"),l),h=jO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=jO(p[1]-p[0],l),p[1]=p[0]+t):(t=jO(c*(h-1),l),(p=[c*(e.get("axisExpandCenter")||TO(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[TO(LO(p[0]/c,1))+1,DO(LO(p[1]/c,1))-1],m=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:i[n[a]],layoutLength:s,axisBase:i[n[1-a]],axisLength:i[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),OO(i,(function(e,i){var o=(n.axisExpandable?EO:NO)(i,n),a={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:PO/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=[1,0,0,1,0,0];it(c,c,u),et(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var r=this._axesMap,o=this.dimensions,a=[],l=[];s.k(o,(function(e){a.push(t.mapDimension(e)),l.push(r.get(e).model)}));for(var u=this.hasAxisBrushed(),c=i;c<n;c++){var h=void 0;if(u){h="active";for(var d=t.getValues(a,c),p=0,f=o.length;p<f;p++){if("inactive"===l[p].getActiveState(d[p])){h="inactive";break}}}else h="normal";e(h,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,r=t.length;n<r;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},t.prototype.axisCoordToPoint=function(t,e){return Pd([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return s.d(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),r=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var a,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?CO(a,n,o,"all"):l="none";else{var d=n[1]-n[0];(n=[IO(0,o[1]*s/d-d/2)])[1]=AO(o[1],n[0]+d),n[0]=n[1]-d}return{axisExpandWindow:n,behavior:l}},t}();var zO={create:function(t,e){var i=[];return t.eachComponent("parallel",(function(n,r){var o=new RO(n,t,e);o.name="parallel_"+r,o.resize(n,e),n.coordinateSystem=o,o.model=n,i.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",fn).models[0];t.coordinateSystem=e.coordinateSystem}})),i}},BO=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.activeIntervals=[],i}return o(e,t),e.prototype.getAreaSelectStyle=function(){return An([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=s.d(t);if(e)for(var i=e.length-1;i>=0;i--)Pi(e[i])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,r=e.length;n<r;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"},e}(hl);s.K(BO,dx);var VO=BO,FO=Math.min,HO=Math.max,$O=Math.pow,GO={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},WO={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},UO={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},YO=0,qO=function(t){function e(e){var i=t.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new Ci,i._uid="brushController_"+YO++,Object(s.k)(_A,(function(t,e){this._handlers[e]=Object(s.c)(t,this)}),i),i}return o(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,i){Nw(t)[e]=i}(e,"globalPan",this._uid),Object(s.k)(this._handlers,(function(t,i){e.on(i,t)})),this._brushType=t.brushType,this._brushOption=Object(s.I)(Object(s.d)(UO),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,i){var n=Nw(t);n[e]===i&&(n[e]=null)}(t,"globalPan",this._uid),Object(s.k)(this._handlers,(function(e,i){t.off(i,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(s.k)(t,(function(t){e[t.panelId]=Object(s.d)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(s.H)(t,(function(t){return Object(s.I)(Object(s.d)(UO),t,!0)}));var e=this._covers,i=this._covers=[],n=this,r=this._creatingCover;return new By(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==r&&n.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)i[o]=e[a];else{var l=i[o]=null!=a?(e[a].__brushOption=s,e[a]):ZO(n,XO(n,s));JO(n,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),nA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(I);function XO(t,e){var i=SA[e.brushType].createCover(t,e);return i.__brushOption=e,QO(i,e),t.group.add(i),i}function ZO(t,e){var i=tA(e);return i.endCreating&&(i.endCreating(t,e),QO(e,e.__brushOption)),e}function KO(t,e){var i=e.__brushOption;tA(e).updateCoverShape(t,e,i.range,i)}function QO(t,e){var i=e.z;null==i&&(i=1e4),t.traverse((function(t){t.z=i,t.z2=i}))}function JO(t,e){tA(e).updateCommon(t,e),KO(t,e)}function tA(t){return SA[t.__brushOption.brushType]}function eA(t,e,i){var n,r=t._panels;if(!r)return!0;var o=t._transform;return Object(s.k)(r,(function(t){t.isTargetByCursor(e,i,o)&&(n=t)})),n}function iA(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function nA(t){var e=t._covers,i=e.length;return Object(s.k)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!i}function rA(t,e){var i=Object(s.H)(t._covers,(function(t){var e=t.__brushOption,i=Object(s.d)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}}));t.trigger("brush",{areas:i,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function oA(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function aA(t,e,i,n){var r=new Ci;return r.add(new vo({name:"main",style:cA(i),silent:!0,draggable:!0,cursor:"move",drift:Object(s.h)(pA,t,e,r,["n","s","w","e"]),ondragend:Object(s.h)(rA,e,{isEnd:!0})})),Object(s.k)(n,(function(i){r.add(new vo({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s.h)(pA,t,e,r,i),ondragend:Object(s.h)(rA,e,{isEnd:!0})}))})),r}function sA(t,e,i,n){var r=n.brushStyle.lineWidth||0,o=HO(r,6),a=i[0][0],s=i[1][0],l=a-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,m=f+r,y=g+r;uA(t,e,"main",a,s,f,g),n.transformable&&(uA(t,e,"w",l,u,o,y),uA(t,e,"e",d,u,o,y),uA(t,e,"n",l,u,m,o),uA(t,e,"s",l,p,m,o),uA(t,e,"nw",l,u,o,o),uA(t,e,"ne",d,u,o,o),uA(t,e,"sw",l,p,o,o),uA(t,e,"se",d,p,o,o))}function lA(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(cA(i)),r.attr({silent:!n,cursor:n?"move":"default"}),Object(s.k)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(i){var r=e.childOfName(i.join("")),o=1===i.length?dA(t,i[0]):function(t,e){var i=[dA(t,e[0]),dA(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?WO[o]+"-resize":null})}))}function uA(t,e,i,n,r,o,a){var s,l,u,c,h,d=e.childOfName(i);d&&d.setShape((s=mA(t,e,[[n,r],[n+o,r+a]]),l=FO(s[0][0],s[1][0]),u=FO(s[0][1],s[1][1]),c=HO(s[0][0],s[1][0]),h=HO(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function cA(t){return Object(s.i)({strokeNoScale:!0},t.brushStyle)}function hA(t,e,i,n){var r=[FO(t,i),FO(e,n)],o=[HO(t,i),HO(e,n)];return[[r[0],o[0]],[r[1],o[1]]]}function dA(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[jd({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return Ld(t.group)}(t))]}function pA(t,e,i,n,r,o){var a=i.__brushOption,l=t.toRectRange(a.range),u=gA(e,r,o);Object(s.k)(n,(function(t){var e=GO[t];l[e[0]][e[1]]+=u[e[0]]})),a.range=t.fromRectRange(hA(l[0][0],l[1][0],l[0][1],l[1][1])),JO(e,i),rA(e,{isEnd:!1})}function fA(t,e,i,n){var r=e.__brushOption.range,o=gA(t,i,n);Object(s.k)(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),JO(t,e),rA(t,{isEnd:!1})}function gA(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function mA(t,e,i){var n=iA(t,e);return n&&!0!==n?n.clipPath(i,t._transform):Object(s.d)(i)}function yA(t){var e=t.event;e.preventDefault&&e.preventDefault()}function vA(t,e,i){return t.childOfName("main").contain(e,i)}function bA(t,e,i,n){var r,o=t._creatingCover,a=t._creatingPanel,l=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],r=i[0]-n[0],o=i[1]-n[1];return $O(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===l.brushMode&&nA(t);var u=Object(s.d)(l);u.brushType=xA(u.brushType,a),u.panelId=!0===a?null:a.panelId,o=t._creatingCover=XO(t,u),t._covers.push(o)}if(o){var c=SA[xA(t._brushType,a)];o.__brushOption.range=c.getCreatingRange(mA(t,o,t._track)),n&&(ZO(t,o),c.updateCommon(t,o)),KO(t,o),r={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&eA(t,e,i)&&nA(t)&&(r={isEnd:n,removeOnClick:!0});return r}function xA(t,e){return"auto"===t?e.defaultBrushType:t}var _A={mousedown:function(t){if(this._dragging)wA(this,t);else if(!t.target||!t.target.draggable){yA(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=eA(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,i=t.offsetY,n=this.group.transformCoordToLocal(e,i);if(function(t,e,i){if(t._brushType&&!function(t,e,i){var n=t._zr;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}(t,e.offsetX,e.offsetY)){var n=t._zr,r=t._covers,o=eA(t,e,i);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&SA[s.brushType].contain(r[a],i[0],i[1]))return}o&&n.setCursorStyle("crosshair")}}(this,t,n),this._dragging){yA(t);var r=bA(this,t,n,!1);r&&rA(this,r)}},mouseup:function(t){wA(this,t)}};function wA(t,e){if(t._dragging){yA(e);var i=e.offsetX,n=e.offsetY,r=t.group.transformCoordToLocal(i,n),o=bA(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&rA(t,o)}}var SA={lineX:CA(0),lineY:CA(1),rect:{createCover:function(t,e){function i(t){return t}return aA({toRectRange:i,fromRectRange:i},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=oA(t);return hA(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){sA(t,e,i,n)},updateCommon:lA,contain:vA},polygon:{createCover:function(t,e){var i=new Ci;return i.add(new Uh({name:"main",style:cA(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new $h({name:"main",draggable:!0,drift:Object(s.h)(fA,t,e),ondragend:Object(s.h)(rA,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:mA(t,e,i)})},updateCommon:lA,contain:vA}};function CA(t){return{createCover:function(e,i){return aA({toRectRange:function(e){var i=[e,[0,100]];return t&&i.reverse(),i},fromRectRange:function(e){return e[t]}},e,i,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var i=oA(e);return[FO(i[0][t],i[1][t]),HO(i[0][t],i[1][t])]},updateCoverShape:function(e,i,n,r){var o,a=iA(e,i);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),sA(e,i,l,r)},updateCommon:lA,contain:vA}}var MA=qO;function kA(t){return t=IA(t),function(e){return Rd(e,t)}}function OA(t,e){return t=IA(t),function(i){var n=null!=e?e:i,r=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(r||0)]}}function AA(t,e,i){var n=IA(t);return function(t,r){return n.contain(r[0],r[1])&&!Gw(t,e,i)}}function IA(t){return ft.create(t)}var TA=["axisLine","axisTickLabel","axisName"];var DA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments),(this._brushController=new MA(i.getZr())).on("brush",s.c(this._onBrush,this))},e.prototype.render=function(t,e,i,n){if(!function(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Ci,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,h=a.getAxisLayout(c),d=s.m({strokeContainThreshold:u},h),p=new Q_(t,d);s.k(TA,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,o,u,i),Ed(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,i,n,r,o){var a=i.axis.getExtent(),l=a[1]-a[0],u=Math.min(30,.1*Math.abs(l)),c=ft.create({x:a[0],y:-r/2,width:l,height:r});c.x-=u,c.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:kA(c),isTargetByCursor:AA(c,o,n),getLinearBrushOtherExtent:OA(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return s.H(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(i))},e.prototype._onBrush=function(t){var e=t.areas,i=this.axisModel,n=i.axis,r=s.H(e,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(qc),LA={type:"axisAreaSelect",event:"axisAreaSelected"};var PA={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function jA(t){t.registerComponentView(_O),t.registerComponentModel(wO),t.registerCoordinateSystem("parallel",zO),t.registerPreprocessor(yO),t.registerComponentModel(VO),t.registerComponentView(DA),wx(t,"parallel",VO,PA),function(t){t.registerAction(LA,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var NA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},EA=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new NA},e.prototype.buildPath=function(t,e){var i=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()},e.prototype.highlight=function(){ra(this)},e.prototype.downplay=function(){oa(this)},e}(io);function RA(t,e,i){switch(t.fill){case"source":t.fill=i.node1.getVisual("color"),t.decal=i.node1.getVisual("style").decal;break;case"target":t.fill=i.node2.getVisual("color"),t.decal=i.node2.getVisual("style").decal;break;case"gradient":var n=i.node1.getVisual("color"),r=i.node2.getVisual("color");Object(s.C)(n)&&Object(s.C)(r)&&(t.fill=new sd(0,0,+("horizontal"===e),+("vertical"===e),[{color:n,offset:0},{color:r,offset:1}]))}}var zA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._focusAdjacencyDisabled=!1,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,l=a.width,u=a.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var i=new EA,n=No(i);n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var r,a,c,p,f,g,m,y,v=e.getModel(),b=v.getModel("lineStyle"),x=b.get("curveness"),_=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),C=w.get("localY"),M=e.node2.getLayout(),k=e.node2.getModel(),O=k.get("localX"),A=k.get("localY"),I=e.getLayout();i.shape.extent=Math.max(1,I.dy),i.shape.orient=d,"vertical"===d?(r=(null!=S?S*l:_.x)+I.sy,a=(null!=C?C*u:_.y)+_.dy,c=(null!=O?O*l:M.x)+I.ty,f=r,g=a*(1-x)+(p=null!=A?A*u:M.y)*x,m=c,y=a*x+p*(1-x)):(r=(null!=S?S*l:_.x)+_.dx,a=(null!=C?C*u:_.y)+I.sy,f=r*(1-x)+(c=null!=O?O*l:M.x)*x,g=a,m=r*x+c*(1-x),y=p=(null!=A?A*u:M.y)+I.ty),i.setShape({x1:r,y1:a,x2:c,y2:p,cpx1:f,cpy1:g,cpx2:m,cpy2:y}),i.useStyle(b.getItemStyle()),RA(i.style,d,e);var T=""+v.get("value"),D=Fa(v,"edgeLabel");Va(i,D,{labelFetcher:{getFormattedLabel:function(e,i,n,r,o,a){return t.getFormattedLabel(e,i,"edge",r,Object(s.Q)(o,D.normal&&D.normal.get("formatter"),T),a)}},labelDataIndex:e.dataIndex,defaultText:T}),i.setTextConfig({position:"inside"});var L=v.getModel("emphasis");wa(i,v,"lineStyle",(function(t){var i=t.getItemStyle();return RA(i,d,e),i})),o.add(i),h.setItemGraphicEl(e.dataIndex,i);var P=L.get("focus");va(i,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,L.get("blurScope"),L.get("disabled"))})),r.eachNode((function(e){var i=e.getLayout(),n=e.getModel(),r=n.get("localX"),a=n.get("localY"),s=n.getModel("emphasis"),h=n.get(["itemStyle","borderRadius"])||0,d=new vo({shape:{x:null!=r?r*l:i.x,y:null!=a?a*u:i.y,width:i.dx,height:i.dy,r:h},style:n.getModel("itemStyle").getItemStyle(),z2:10});Va(d,Fa(n),{labelFetcher:{getFormattedLabel:function(e,i){return t.getFormattedLabel(e,i,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),wa(d,n),o.add(d),c.setItemGraphicEl(e.dataIndex,d),No(d).dataType="node";var p=s.get("focus");va(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,s.get("blurScope"),s.get("disabled"))})),c.eachItemGraphicEl((function(e,r){c.getItemModel(r).get("draggable")&&(e.drift=function(e,o){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,i){var n=new vo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Da(n,{shape:{width:t.width+20}},e,i),n}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(tp),BA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new hs(r[a],this,e));return Xk(n,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var i=t.parentModel,n=i.getData().getItemLayout(e);if(n){var r=n.depth,o=i.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var i=t.parentModel,n=i.getGraph().getEdgeByIndex(e).node1.getLayout();if(n){var r=n.depth,o=i.levelModels[r];o&&(t.parentModel=o)}return t}))})).data},e.prototype.setNodePosition=function(t,e){var i=(this.option.data||this.option.nodes)[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,i){function n(t){return isNaN(t)||null==t}if("edge"===i){var r=this.getDataParams(t,i),o=r.data,a=r.value;return Cc("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:n(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,i).data.name;return Cc("nameValue",{name:null!=l?l+"":null,value:s,noValue:n(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,i){var n=t.prototype.getDataParams.call(this,e,i);if(null==n.value&&"node"===i){var r=this.getGraph().getNodeByIndex(e).getLayout().value;n.value=r}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Uc);function VA(t,e){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),r=function(t,e){return nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,l=t.getGraph(),u=l.nodes,c=l.edges;!function(t){s.k(t,(function(t){var e=ZA(t.outEdges,XA),i=ZA(t.inEdges,XA),n=t.getValue()||0,r=Math.max(e,i,n);t.setLayout({value:r},!0)}))}(u),function(t,e,i,n,r,o,a,l,u){(function(t,e,i,n,r,o,a){for(var l=[],u=[],c=[],h=[],d=0,p=0;p<e.length;p++)l[p]=1;for(p=0;p<t.length;p++)u[p]=t[p].inEdges.length,0===u[p]&&c.push(t[p]);var f=-1;for(;c.length;){for(var g=0;g<c.length;g++){var m=c[g],y=m.hostGraph.data.getRawDataItem(m.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>f&&(f=y.depth),m.setLayout({depth:v?y.depth:d},!0),"vertical"===o?m.setLayout({dy:i},!0):m.setLayout({dx:i},!0);for(var b=0;b<m.outEdges.length;b++){var x=m.outEdges[b],_=e.indexOf(x);l[_]=0;var w=x.node2,S=t.indexOf(w);0==--u[S]&&h.indexOf(w)<0&&h.push(w)}}++d,c=h,h=[]}for(p=0;p<l.length;p++)if(1===l[p])throw new Error("Sankey is a DAG, the original data has cycle!");var C=f>d-1?f:d-1;a&&"left"!==a&&function(t,e,i,n){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var l=0;l<o.length;l++){var u=o[l];u.setLayout({skNodeHeight:a},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];r.indexOf(h.node1)<0&&r.push(h.node1)}}o=r,r=[],++a}s.k(t,(function(t){FA(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){s.k(t,(function(t){FA(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,n)}(t,a,0,C);!function(t,e,i){s.k(t,(function(t){var n=t.getLayout().depth*e;"vertical"===i?t.setLayout({y:n},!0):t.setLayout({x:n},!0)}))}(t,"vertical"===o?(r-i)/C:(n-i)/C,o)})(t,e,i,r,o,l,u),function(t,e,i,n,r,o,a){var l=function(t,e){var i=[],n="vertical"===e?"y":"x",r=vn(t,(function(t){return t.getLayout()[n]}));return r.keys.sort((function(t,e){return t-e})),s.k(r.keys,(function(t){i.push(r.buckets.get(t))})),i}(t,a);(function(t,e,i,n,r,o){var a=1/0;s.k(t,(function(t){var e=t.length,l=0;s.k(t,(function(t){l+=t.getLayout().value}));var u="vertical"===o?(n-(e-1)*r)/l:(i-(e-1)*r)/l;u<a&&(a=u)})),s.k(t,(function(t){s.k(t,(function(t,e){var i=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))}))})),s.k(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(l,e,i,n,r,a),HA(l,r,i,n,a);for(var u=1;o>0;o--)$A(l,u*=.99,a),HA(l,r,i,n,a),KA(l,u,a),HA(l,r,i,n,a)}(t,e,o,r,n,a,l),function(t,e){var i="vertical"===e?"x":"y";s.k(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[i]-e.node2.getLayout()[i]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[i]-e.node1.getLayout()[i]}))})),s.k(t,(function(t){var e=0,i=0;s.k(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),s.k(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}(t,l)}(u,c,i,n,o,a,0!==s.n(u,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function FA(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function HA(t,e,i,n,r){var o="vertical"===r?"x":"y";s.k(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=u-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?n:i))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function $A(t,e,i){s.k(t.slice().reverse(),(function(t){s.k(t,(function(t){if(t.outEdges.length){var n=ZA(t.outEdges,GA,i)/ZA(t.outEdges,XA);if(isNaN(n)){var r=t.outEdges.length;n=r?ZA(t.outEdges,WA,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(n-qA(t,i))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(n-qA(t,i))*e;t.setLayout({y:a},!0)}}}))}))}function GA(t,e){return qA(t.node2,e)*t.getValue()}function WA(t,e){return qA(t.node2,e)}function UA(t,e){return qA(t.node1,e)*t.getValue()}function YA(t,e){return qA(t.node1,e)}function qA(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function XA(t){return t.getValue()}function ZA(t,e,i){for(var n=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],i);isNaN(a)||(n+=a)}return n}function KA(t,e,i){s.k(t,(function(t){s.k(t,(function(t){if(t.inEdges.length){var n=ZA(t.inEdges,UA,i)/ZA(t.inEdges,XA);if(isNaN(n)){var r=t.inEdges.length;n=r?ZA(t.inEdges,YA,i)/r:0}if("vertical"===i){var o=t.getLayout().x+(n-qA(t,i))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(n-qA(t,i))*e;t.setLayout({y:a},!0)}}}))}))}function QA(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),i=e.nodes,n=e.edges;if(i.length){var r=1/0,o=-1/0;s.k(i,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),s.k(i,(function(e){var i=new TM({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),n=e.getModel().get(["itemStyle","color"]);null!=n?(e.setVisual("color",n),e.setVisual("style",{fill:n})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}n.length&&s.k(n,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var JA=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var i,n,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),l=o.get("type");"category"===a?(t.layout="horizontal",i=r.getOrdinalMeta(),n=!this._hasEncodeRule("x")):"category"===l?(t.layout="vertical",i=o.getOrdinalMeta(),n=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c="horizontal"===t.layout?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[r,o],f=p[c].get("type"),g=p[1-c].get("type"),m=t.data;if(m&&n){var y=[];s.k(m,(function(t,e){var i;s.t(t)?(i=t.slice(),t.unshift(e)):s.t(t.value)?((i=s.m({},t)).value=i.value.slice(),t.value.unshift(e)):i=t,y.push(i)})),t.data=y}var v=this.defaultValueDimensions,b=[{name:h,type:Hy(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Hy(g),dimsDef:v.slice()}];return ix(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:s.h(xl,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),tI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],i.visualDrawType="stroke",i}return o(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Uc);Object(s.K)(tI,JA,!0);var eI=tI,iI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;n.diff(o).add((function(t){if(n.hasValue(t)){var e=oI(n.getItemLayout(t),n,t,a,!0);n.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?(Ea(i),aI(s,i,n,t)):i=oI(s,n,t,a),r.add(i),n.setItemGraphicEl(t,i)}else r.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=n},e.prototype.remove=function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(tp),nI=function(){},rI=function(t){function e(e){var i=t.call(this,e)||this;return i.type="boxplotBoxPath",i}return o(e,t),e.prototype.getDefaultShape=function(){return new nI},e.prototype.buildPath=function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])},e}(io);function oI(t,e,i,n,r){var o=t.ends,a=new rI({shape:{points:r?sI(o,n,t):o}});return aI(t,a,e,i,r),a}function aI(t,e,i,r,o){var a=i.hostModel;(0,n[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,r),e.useStyle(i.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=i.getItemModel(r),l=s.getModel("emphasis");wa(e,s),va(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function sI(t,e,i){return s.H(t,(function(t){return(t=t.slice())[e]=i.initBaseline,t}))}var lI=iI,uI=s.k;function cI(t){var e=function(t){var e=[],i=[];return t.eachSeriesByType("boxplot",(function(t){var n=t.getBaseAxis(),r=s.r(i,n);r<0&&(r=i.length,i[r]=n,e[r]={axis:n,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);uI(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,i=t.axis,n=t.seriesModels,r=n.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],l=[];if("category"===i.type)e=i.getBandWidth();else{var u=0;uI(n,(function(t){u=Math.max(u,t.getData().count())}));var c=i.getExtent();e=Math.abs(c[1]-c[0])/u}uI(n,(function(t){var i=t.get("boxWidth");s.t(i)||(i=[i,i]),l.push([Di(i[0],e)||0,Di(i[1],e)||0])}));var h=.8*e-2,d=h/r*.3,p=(h-d*(r-1))/r,f=p/2-h/2;uI(n,(function(t,e){a.push(f),f+=d+p,o.push(Math.min(Math.max(p,l[e][0]),l[e][1]))}))}(t),uI(e,(function(e,i){!function(t,e,i){var n=t.coordinateSystem,r=t.getData(),o=i/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<r.count();h++){var d=r.get(u,h),p=b(d,c[2],h),f=b(d,c[0],h),g=b(d,c[1],h),m=b(d,c[3],h),y=b(d,c[4],h),v=[];x(v,g,!1),x(v,m,!0),v.push(f,g,y,m),_(v,f),_(v,y),_(v,p),r.setItemLayout(h,{initBaseline:p[s],ends:v})}function b(t,i,o){var l,u=r.get(i,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=n.dataToPoint(c))[a]+=e,l}function x(t,e,i){var n=e.slice(),r=e.slice();n[a]+=o,r[a]-=o,i?t.push(n,r):t.push(r,n)}function _(t,e){var i=e.slice(),n=e.slice();i[a]-=o,n[a]+=o,t.push(i,n)}}(e,t.boxOffsetList[i],t.boxWidthList[i])})))}))}var hI={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if("arrayRows"!==e.sourceFormat){0,Nl("")}var i=function(t,e){for(var i=[],n=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var l=Pi(t[a].slice()),u=Gi(l,.25),c=Gi(l,.5),h=Gi(l,.75),d=l[0],p=l[l.length-1],f=(null==r?1.5:r)*(h-u),g=o?d:Math.max(d,u-f),m=o?p:Math.min(p,h+f),y=e.itemNameFormatter,v=Object(s.w)(y)?y({value:a}):Object(s.C)(y)?y.replace("{value}",a+""):a+"";i.push([v,g,u,c,h,m]);for(var b=0;b<l.length;b++){var x=l[b];if(x<g||x>m){var _=[v,x];n.push(_)}}}return{boxData:i,outliers:n}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};var dI=["itemStyle","borderColor"],pI=["itemStyle","borderColor0"],fI=["itemStyle","borderColorDoji"],gI=["itemStyle","color"],mI=["itemStyle","color0"];function yI(t,e){return e.get(t>0?gI:mI)}function vI(t,e){return e.get(0===t?fI:t>0?dI:pI)}var bI={seriesType:"candlestick",plan:Xc(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var n=e.getItemModel(i),r=e.getItemLayout(i).sign,o=n.getItemStyle();o.fill=yI(r,n),o.stroke=vI(r,n)||o.fill;var a=e.ensureUniqueItemVisual(i,"style");Object(s.m)(a,o)}}}}},xI=["color","borderColor"],_I=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),i=this._data,n=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||n.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var a=e.getItemLayout(i);if(o&&MI(s,a))return;var l=CI(a,i,!0);Da(l,{shape:{points:a.ends}},t,i),kI(l,e,i,r),n.add(l),e.setItemGraphicEl(i,l)}})).update((function(a,l){var u=i.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&MI(s,c)?n.remove(u):(u?(Ta(u,{shape:{points:c.ends}},t,a),Ea(u)):u=CI(c,a),kI(u,e,a,r),n.add(u),e.setItemGraphicEl(a,u))}else n.remove(u)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),TI(t,this.group);var e=t.get("clip",!0)?$v(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var i,n=e.getData(),r=n.getLayout("isSimpleBox");null!=(i=t.next());){var o=CI(n.getItemLayout(i),i);kI(o,n,i,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){TI(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(tp),wI=function(){},SI=function(t){function e(e){var i=t.call(this,e)||this;return i.type="normalCandlestickBox",i}return o(e,t),e.prototype.getDefaultShape=function(){return new wI},e.prototype.buildPath=function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(io);function CI(t,e,i){var n=t.ends;return new SI({shape:{points:i?OI(n,t):n},z2:100})}function MI(t,e){for(var i=!0,n=0;n<e.ends.length;n++)if(t.contain(e.ends[n][0],e.ends[n][1])){i=!1;break}return i}function kI(t,e,i,n){var r=e.getItemModel(i);t.useStyle(e.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.__simpleBox=n,wa(t,r);var o=e.getItemLayout(i).sign;s.k(t.states,(function(t,e){var i=r.getModel(e),n=yI(o,i),a=vI(o,i)||n,s=t.style||(t.style={});n&&(s.fill=n),a&&(s.stroke=a)}));var a=r.getModel("emphasis");va(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function OI(t,e){return s.H(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var AI=function(){},II=function(t){function e(e){var i=t.call(this,e)||this;return i.type="largeCandlestickBox",i}return o(e,t),e.prototype.getDefaultShape=function(){return new AI},e.prototype.buildPath=function(t,e){for(var i=e.points,n=0;n<i.length;)if(this.__sign===i[n++]){var r=i[n++];t.moveTo(r,i[n++]),t.lineTo(r,i[n++])}else n+=3},e}(io);function TI(t,e,i,n){var r=t.getData(),o=r.getLayout("largePoints"),a=new II({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new II({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new II({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),DI(1,a,t,r),DI(-1,s,t,r),DI(0,l,t,r),n&&(a.incremental=!0,s.incremental=!0),i&&i.push(a,s)}function DI(t,e,i,n){var r=vI(t,i)||yI(t,i),o=i.getModel("itemStyle").getItemStyle(xI);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var LI=_I,PI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],i}return o(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Uc);Object(s.K)(PI,JA,!0);var jI=PI;function NI(t){t&&s.t(t.series)&&s.k(t.series,(function(t){s.A(t)&&"k"===t.type&&(t.type="candlestick")}))}function EI(t,e,i,n,r,o){return i>n?-1:i<n?1:o?0:e>0?t.get(r,e-1)<=n?1:-1:1}var RI={seriesType:"candlestick",plan:Xc(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=function(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),o=Di(Object(s.P)(t.get("barMaxWidth"),r),r),a=Di(Object(s.P)(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?Di(l,r):Math.max(Math.min(r/2,o),a)}(t,i),r=["x","y"],o=i.getDimensionIndex(i.mapDimension(r[0])),a=Object(s.H)(i.mapDimensionsAll(r[1]),i.getDimensionIndex,i),l=a[0],u=a[1],c=a[2],h=a[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(i,n){var r,a,s=Lv(4*i.count),d=0,p=[],f=[],g=n.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=i.next());){var y=g.get(o,a),v=g.get(l,a),b=g.get(u,a),x=g.get(c,a),_=g.get(h,a);isNaN(y)||isNaN(x)||isNaN(_)?(s[d++]=NaN,d+=3):(s[d++]=EI(g,a,v,b,u,m),p[0]=y,p[1]=x,r=e.dataToPoint(p,null,f),s[d++]=r?r[0]:NaN,s[d++]=r?r[1]:NaN,p[1]=_,r=e.dataToPoint(p,null,f),s[d++]=r?r[1]:NaN)}n.setLayout("largePoints",s)}:function(t,i){var r,a=i.getStore();for(;null!=(r=t.next());){var s=a.get(o,r),d=a.get(l,r),p=a.get(u,r),f=a.get(c,r),g=a.get(h,r),m=Math.min(d,p),y=Math.max(d,p),v=C(m,s),b=C(y,s),x=C(f,s),_=C(g,s),w=[];M(w,b,0),M(w,v,1),w.push(O(_),O(b),O(x),O(v));var S=!!i.getItemModel(r).get(["itemStyle","borderColorDoji"]);i.setItemLayout(r,{sign:EI(a,r,d,p,u,S),initBaseline:d>p?b[1]:v[1],ends:w,brushRect:k(f,g,s)})}function C(t,i){var n=[];return n[0]=i,n[1]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function M(t,e,i){var r=e.slice(),o=e.slice();r[0]=Dd(r[0]+n/2,1,!1),o[0]=Dd(o[0]-n/2,1,!0),i?t.push(r,o):t.push(o,r)}function k(t,e,i){var r=C(t,i),o=C(e,i);return r[0]-=n/2,o[0]-=n/2,{x:r[0],y:r[1],width:n,height:o[1]-r[1]}}function O(t){return t[0]=Dd(t[0],1),t}}}}};function zI(t,e){var i=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?i:null,fill:"fill"===e.brushType?i:null}})}))}var BI=function(t){function e(e,i){var n=t.call(this)||this,r=new Sv(e,i),o=new Ci;return n.add(r),n.add(o),n.updateData(e,i),n}return o(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=t.rippleNumber,r=this.childAt(1),o=0;o<n;o++){var a=sf(e,-1,-1,2,2,i);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/n*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}zI(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}zI(i,t)},e.prototype.highlight=function(){ra(this)},e.prototype.downplay=function(){oa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var i=this,n=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=lf(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=uf(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=n.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=n.getShallow("z")||0,p.zlevel=n.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&i.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&i.stopEffectAnimation()}),this._effectCfg=p,va(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Ci),VI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){this._symbolDraw=new Ov(BI)},e.prototype.render=function(t,e,i){var n=t.getData(),r=this._symbolDraw;r.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,i=e&&e.getArea&&e.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,e,i){var n=t.getData();this.group.dirty();var r=ib("").reset(t,e,i);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,i,n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=(e=n.getRoamTransform(),J(i=[1,0,0,1,0,0],e),i),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(tp),FI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){return vv(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,i){return i.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Uc);var HI=function(t){function e(e,i,n){var r=t.call(this)||this;return r.add(r.createLine(e,i,n)),r._updateEffectSymbol(e,i),r}return o(e,t),e.prototype.createLine=function(t,e,i){return new Ak(t,e,i)},e.prototype._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),r=i.get("symbol");s.t(n)||(n=[n,n]);var o=t.getItemVisual(e,"style"),a=i.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==r&&(this.remove(l),(l=sf(r,-.5,-.5,1,1,a)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",a),l.setStyle(i.getItemStyle(["color"])),l.scaleX=n[0],l.scaleY=n[1],l.setColor(a),this._symbolType=r,this._symbolScale=n,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var r=t.getItemLayout(i),o=1e3*e.get("period"),a=e.get("loop"),l=e.get("roundTrip"),u=e.get("constantSpeed"),c=s.O(e.get("delay"),(function(e){return e/t.count()*o/3}));if(n.ignore=!0,this._updateAnimationPoints(n,r),u>0&&(o=this._getLineLength(n)/u*1e3),o!==this._period||a!==this._loop||l!==this._roundTrip){n.stopAnimation();var h=void 0;h=s.w(c)?c(i):c,n.__t>0&&(h=-o*n.__t),this._animateSymbol(n,o,h,a,l)}this._period=o,this._loop=a,this._roundTrip=l}},e.prototype._animateSymbol=function(t,e,i,n,r){if(e>0){t.__t=0;var o=this,a=t.animate("",n).when(r?2*e:e,{__t:r?2:1}).delay(i).during((function(){o._updateSymbolPosition(t)}));n||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return _(t.__p1,t.__cp1)+_(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Jt,l=te;o[0]=s(e[0],n[0],i[0],r),o[1]=s(e[1],n[1],i[1],r);var u=t.__t<1?l(e[0],n[0],i[0],r):l(i[0],n[0],e[0],1-r),c=t.__t<1?l(e[1],n[1],i[1],r):l(i[1],n[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*_(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*_(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},e}(Ci),$I=function(t){function e(e,i,n){var r=t.call(this)||this;return r._createPolyline(e,i,n),r}return o(e,t),e.prototype._createPolyline=function(t,e,i){var n=t.getItemLayout(e),r=new Uh({shape:{points:n}});this.add(r),this._updateCommonStl(t,e,i)},e.prototype.updateData=function(t,e,i){var n=t.hostModel;Ta(this.childAt(0),{shape:{points:t.getItemLayout(e)}},n,e),this._updateCommonStl(t,e,i)},e.prototype._updateCommonStl=function(t,e,i){var n=this.childAt(0),r=t.getItemModel(e),o=i&&i.emphasisLineStyle,a=i&&i.focus,s=i&&i.blurScope,l=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}n.useStyle(t.getItemVisual(e,"style")),n.style.fill=null,n.style.strokeNoScale=!0,n.ensureState("emphasis").style=o,va(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(Ci),GI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return o(e,t),e.prototype.createLine=function(t,e,i){return new $I(t,e,i)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];n+=_(o,a),i.push(n)}if(0!==n){for(r=0;r<i.length;r++)i[r]/=n;this._offsets=i,this._length=n}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,i=this._points,n=this._offsets,r=i.length;if(n){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(n[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(n[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-n[o])/(n[o+1]-n[o]),l=i[o],u=i[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(HI),WI=function(){this.polyline=!1,this.curveness=0,this.segs=[]},UI=function(t){function e(e){var i=t.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return o(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WI},e.prototype.buildPath=function(t,e){var i,n=e.segs,r=e.curveness;if(e.polyline)for(i=this._off;i<n.length;){var o=n[i++];if(o>0){t.moveTo(n[i++],n[i++]);for(var a=1;a<o;a++)t.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],l=n[i++],u=n[i++],c=n[i++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=i,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var i=this.shape,n=i.segs,r=i.curveness,o=this.style.lineWidth;if(i.polyline)for(var a=0,s=0;s<n.length;){var l=n[s++];if(l>0)for(var u=n[s++],c=n[s++],h=1;h<l;h++){if(Rr(u,c,d=n[s++],p=n[s++],o,t,e))return a}a++}else for(a=0,s=0;s<n.length;){u=n[s++],c=n[s++];var d=n[s++],p=n[s++];if(r>0){if(Br(u,c,(u+d)/2-(c-p)*r,(c+p)/2-(d-u)*r,d,p,o,t,e))return a}else if(Rr(u,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return t=i[0],e=i[1],n.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,i=1/0,n=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];i=Math.min(s,i),r=Math.max(s,r),n=Math.min(l,n),o=Math.max(l,o)}t=this._rect=new ft(i,n,r,o)}return t},e}(io),YI=function(){function t(){this.group=new Ci}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var i=this._newAdded[0],n=e.getLayout("linesPoints"),r=i&&i.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+n.length);a.set(r),a.set(n,o),i.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:n}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new UI({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=No(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var i=t.hoverDataIdx;i>0&&(o.dataIndex=i+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),qI={seriesType:"lines",plan:Xc(),reset:function(t){var e=t.coordinateSystem;if(e){var i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(n){var s=void 0,l=r.end-r.start;if(i){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);i&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(p=t.getLineCoords(c,a),[]);if(i)for(var y=0;y<p;y++)m.push(e.dataToPoint(a[y]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*v,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*v])}o.setItemLayout(c,m)}}}}}},XI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(n);var u=t.get("clip",!0)&&$v(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,i){var n=t.getData();this._updateLineDraw(n,t).incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=qI.reset(t,e,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return i&&n===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=o?new YI:new Lk(r?n?GI:$I:n?HI:Ak),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=o),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(tp),ZI="undefined"==typeof Uint32Array?Array:Uint32Array,KI="undefined"==typeof Float64Array?Array:Float64Array;function QI(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(s.H)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(s.J)([e,t[0],t[1]])})))}var JI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return o(e,t),e.prototype.init=function(e){e.data=e.data||[],QI(e);var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(QI(e),e.data){var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s.e)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(s.e)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;r<n;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[i+2*r],e[r][1]=this._flatCoords[i+2*r+1];return n}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(s.z)(t[0])){for(var i=t.length,n=new ZI(i),r=new KI(i),o=0,a=0,l=0,u=0;u<i;){l++;var c=t[u++];n[a++]=o+e,n[a++]=c;for(var h=0;h<c;h++){var d=t[u++],p=t[u++];r[o++]=d,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,a),flatCoords:r,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var i=new uv(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],(function(t,e,n,r){if(t instanceof Array)return NaN;i.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),i},e.prototype.formatTooltip=function(t,e,i){var n=this.getData().getItemModel(t),r=n.get("name");if(r)return r;var o=n.get("fromName"),a=n.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),Cc("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Uc);function tT(t){return t instanceof Array||(t=[t,t]),t}var eT={seriesType:"lines",reset:function(t){var e=tT(t.get("symbol")),i=tT(t.get("symbolSize")),n=t.getData();return n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),{dataEach:n.hasItemOption?function(t,e){var i=t.getItemModel(e),n=tT(i.getShallow("symbol",!0)),r=tT(i.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var iT=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ri.d.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,i,n,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=i;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],y=n(f[2]);h.globalAlpha=y,h.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),b=v.data,x=0,_=b.length,w=this.minOpacity,S=this.maxOpacity-w;x<_;){y=b[x+3]/256;var C=4*Math.floor(255*y);if(y>0){var M=o(y)?s:l;y>0&&(y=y*S+w),b[x++]=M[C],b[x++]=M[C+1],b[x++]=M[C+2],b[x++]=M[C+3]*y*256}else x+=4}return h.putImageData(v,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ri.d.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},t.prototype._getGradient=function(t,e){for(var i=this._gradientPixels,n=i[e]||(i[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),n[o++]=r[0],n[o++]=r[1],n[o++]=r[2],n[o++]=r[3];return n},t}();function nT(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var rT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):nT(r)&&this._renderOnGeo(r,t,n,i)},e.prototype.incrementalPrepareRender=function(t,e,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,i,n){var r=e.coordinateSystem;r&&(nT(r)?this.render(e,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,i,n,r){var o,a,s,l,u=t.coordinateSystem,c=Gv(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),b=Fa(t),x=t.getModel("emphasis"),_=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),C=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=i;M<n;M++){var k=void 0,O=f.getItemVisual(M,"style");if(c){var A=f.get(C[0],M),I=f.get(C[1],M);if(isNaN(f.get(C[2],M))||isNaN(A)||isNaN(I)||A<s[0]||A>s[1]||I<l[0]||I>l[1])continue;var T=u.dataToPoint([A,I]);k=new vo({shape:{x:T[0]-o/2,y:T[1]-a/2,width:o,height:a},style:O})}else{if(isNaN(f.get(C[1],M)))continue;k=new vo({z2:1,shape:u.dataToRect([f.get(C[0],M)]).contentShape,style:O})}if(f.hasItemOption){var D=f.getItemModel(M),L=D.getModel("emphasis");g=L.getModel("itemStyle").getItemStyle(),m=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),v=D.get(["itemStyle","borderRadius"]),_=L.get("focus"),w=L.get("blurScope"),S=L.get("disabled"),b=Fa(D)}k.shape.r=v;var P=t.getRawValue(M),j="-";P&&null!=P[2]&&(j=P[2]+""),Va(k,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:O.opacity,defaultText:j}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=m,k.ensureState("select").style=y,va(k,_,w,S),k.incremental=r,r&&(k.states.emphasis.hoverLayer=!0),p.add(k),f.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,e,i,n){var r=i.targetVisuals.inRange,o=i.targetVisuals.outOfRange,a=e.getData(),l=this._hmLayer||this._hmLayer||new iT;l.blurSize=e.get("blurSize"),l.pointSize=e.get("pointSize"),l.minOpacity=e.get("minOpacity"),l.maxOpacity=e.get("maxOpacity");var u=t.getViewRect().clone(),c=t.getRoamTransform();u.applyTransform(c);var h=Math.max(u.x,0),d=Math.max(u.y,0),p=Math.min(u.width+u.x,n.getWidth()),f=Math.min(u.height+u.y,n.getHeight()),g=p-h,m=f-d,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,i,n){var r=t.dataToPoint([e,i]);return r[0]-=h,r[1]-=d,r.push(n),r})),b=i.getExtent(),x="visualMap.continuous"===i.type?function(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}(b,i.option.range):function(t,e,i){var n=t[1]-t[0],r=(e=s.H(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,o=0;return function(t){var n;for(n=o;n<r;n++){if((a=e[n].interval)[0]<=t&&t<=a[1]){o=n;break}}if(n===r)for(n=o-1;n>=0;n--){var a;if((a=e[n].interval)[0]<=t&&t<=a[1]){o=n;break}}return n>=0&&n<r&&i[n]}}(b,i.getPieceList(),i.option.selected);l.update(v,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new uo({style:{width:g,height:m,x:h,y:d,image:l.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(tp),oT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getInitialData=function(t,e){return vv(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Gl.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Uc);var aT=["itemStyle","borderWidth"],sT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],lT=new vh;function uT(t,e,i,n){var r=t.getItemLayout(e),o=i.get("symbolRepeat"),a=i.get("symbolClip"),l=i.get("symbolPosition")||"start",u=(i.get("symbolRotate")||0)*Math.PI/180||0,c=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?i:null,hoverScale:h&&i.get(["emphasis","scale"]),z2:i.getShallow("z",!0)||0};!function(t,e,i,n,r){var o,a=n.valueDim,l=t.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(i[a.wh]<=0);if(s.t(l)){var d=[cT(u,l[0])-c,cT(u,l[1])-c];d[1]<d[0]&&d.reverse(),o=d[h]}else o=null!=l?cT(u,l)-c:e?n.coordSysExtent[a.index][h]-c:i[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=i[a.wh]);var p="x"===a.xy,f=u.inverse;r.pxSign=p&&!f||!p&&f?o>=0?1:-1:o>0?1:-1}(i,o,r,n,d),function(t,e,i,n,r,o,a,l,u,c){var h,d=u.valueDim,p=u.categoryDim,f=Math.abs(i[p.wh]),g=t.getItemVisual(e,"symbolSize");h=s.t(g)?g.slice():null==g?["100%","100%"]:[g,g];h[p.index]=Di(h[p.index],f),h[d.index]=Di(h[d.index],n?f:Math.abs(o)),c.symbolSize=h,(c.symbolScale=[h[0]/l,h[1]/l])[d.index]*=(u.isHorizontal?-1:1)*a}(t,e,r,o,0,d.boundingLength,d.pxSign,c,n,d),function(t,e,i,n,r){var o=t.get(aT)||0;o&&(lT.attr({scaleX:e[0],scaleY:e[1],rotation:i}),lT.updateTransform(),o/=lT.getLineScale(),o*=e[n.valueDim.index]);r.valueLineWidth=o||0}(i,d.symbolScale,u,n,d);var p=d.symbolSize,f=uf(i.get("symbolOffset"),p);return function(t,e,i,n,r,o,a,l,u,c,h,d){var p=h.categoryDim,f=h.valueDim,g=d.pxSign,m=Math.max(e[f.index]+l,0),y=m;if(n){var v=Math.abs(u),b=s.O(t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Di(b,e[f.index]),w=Math.max(m+2*_,0),S=x?0:2*_,C=Yi(n),M=C?n:MT((v+S)/w);_=(v-M*m)/2/(x?M:Math.max(M-1,1)),w=m+2*_,S=x?0:2*_,C||"fixed"===n||(M=c?MT((Math.abs(c)+S)/w):0),y=M*w-S,d.repeatTimes=M,d.symbolMargin=_}var k=g*(y/2),O=d.pathPosition=[];O[p.index]=i[p.wh]/2,O[f.index]="start"===a?k:"end"===a?u-k:u/2,o&&(O[0]+=o[0],O[1]+=o[1]);var A=d.bundlePosition=[];A[p.index]=i[p.xy],A[f.index]=i[f.xy];var I=d.barRectShape=s.m({},i);I[f.wh]=g*Math.max(Math.abs(i[f.wh]),Math.abs(O[f.index]+k)),I[p.wh]=i[p.wh];var T=d.clipShape={};T[p.xy]=-i[p.xy],T[p.wh]=h.ecSize[p.wh],T[f.xy]=0,T[f.wh]=i[f.wh]}(i,p,r,o,0,f,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function cT(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function hT(t){var e=t.symbolPatternSize,i=sf(t.symbolType,-e/2,-e/2,e,e);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function dT(t,e,i,n){var r=t.__pictorialBundle,o=i.symbolSize,a=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,u=i.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*i.symbolMargin;for(wT(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?ST(t,null,f(c),i,n):ST(t,null,{scaleX:0,scaleY:0},i,n,(function(){r.remove(t)})),c++}));c<u;c++){var d=hT(i);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);ST(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},i,n)}function f(t){var e=s.slice(),n=i.pxSign,r=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation}}}function pT(t,e,i,n){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?ST(o,null,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation},i,n):(o=t.__pictorialMainPath=hT(i),r.add(o),ST(o,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:0,scaleY:0,rotation:i.rotation},{scaleX:i.symbolScale[0],scaleY:i.symbolScale[1]},i,n))}function fT(t,e,i){var n=s.m({},e.barRectShape),r=t.__pictorialBarRect;r?ST(r,null,{shape:n},e,i):((r=t.__pictorialBarRect=new vo({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function gT(t,e,i,r){if(i.symbolClip){var o=t.__pictorialClipPath,a=s.m({},i.clipShape),l=e.valueDim,u=i.animationModel,c=i.dataIndex;if(o)Ta(o,{shape:a},u,c);else{a[l.wh]=0,o=new vo({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=i.clipShape[l.wh],n[r?"updateProps":"initProps"](o,{shape:h},u,c)}}}function mT(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=yT,i.isAnimationEnabled=vT,i}function yT(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function vT(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function bT(t,e,i,n){var r=new Ci,o=new Ci;return r.add(o),r.__pictorialBundle=o,o.x=i.bundlePosition[0],o.y=i.bundlePosition[1],i.symbolRepeat?dT(r,e,i):pT(r,0,i),fT(r,i,n),gT(r,e,i,n),r.__pictorialShapeStr=_T(t,i),r.__pictorialSymbolMeta=i,r}function xT(t,e,i,n){var r=n.__pictorialBarRect;r&&r.removeTextContent();var o=[];wT(n,(function(t){o.push(t)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),s.k(o,(function(t){Pa(t,{scaleX:0,scaleY:0},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function _T(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function wT(t,e,i){s.k(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function ST(t,e,i,r,o,a){e&&t.attr(e),r.symbolClip&&!o?i&&t.attr(i):i&&n[o?"updateProps":"initProps"](t,i,r.animationModel,r.dataIndex,a)}function CT(t,e,i){var n=i.dataIndex,r=i.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),u=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");wT(t,(function(t){if(t instanceof uo){var e=t.style;t.useStyle(s.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},i.style))}else t.useStyle(i.style);var n=t.ensureState("emphasis");n.style=a,p&&(n.scaleX=1.1*t.scaleX,n.scaleY=1.1*t.scaleY),t.ensureState("blur").style=l,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=i.z2}));var f=e.valueDim.posDesc[+(i.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,Va(g,Fa(r),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:xv(e.seriesModel.getData(),n),inheritColor:i.style.fill,defaultOpacity:i.style.opacity,defaultOutsidePosition:f}),va(t,h,d,o.get("disabled"))}function MT(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var kT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:sT[+s],categoryDim:sT[1-+s]};r.diff(o).add((function(t){if(r.hasValue(t)){var e=mT(r,t),i=uT(r,t,e,u),o=bT(r,u,i);r.setItemGraphicEl(t,o),n.add(o),CT(o,u,i)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=mT(r,t),s=uT(r,t,a,u),l=_T(r,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),r.setItemGraphicEl(t,null),i=null),i?function(t,e,i){var n=i.animationModel,r=i.dataIndex;Ta(t.__pictorialBundle,{x:i.bundlePosition[0],y:i.bundlePosition[1]},n,r),i.symbolRepeat?dT(t,e,i,!0):pT(t,e,i,!0);fT(t,i,!0),gT(t,e,i,!0)}(i,u,s):i=bT(r,u,s,!0),r.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),CT(i,u,s)}else n.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&xT(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?$v(t.coordinateSystem,!1,t):null;return c?n.setClipPath(c):n.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){xT(n,No(e).dataIndex,t,e)})):i.removeAll()},e.type="pictorialBar",e}(tp),OT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i.defaultSymbol="roundRect",i}return o(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=fs(mb.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(mb);var AT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._layers=[],i}return o(e,t),e.prototype.render=function(t,e,i){var n=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),l=n.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;function h(t){return t.name}o.x=0,o.y=u.y+c[0];var d=new By(this._layersSeries||[],a,h,h),p=[];function f(e,i,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],d=[],f=a[i].indices,g=0;g<f.length;g++){var m=n.getItemLayout(f[g]),y=m.x,v=m.y0,b=m.y;h.push(y,v),d.push(y,v+b),u=n.getItemVisual(f[g],"style")}var x=n.getItemLayout(f[0]),_=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=p[i]=new Ci;c=new Vv({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,i){var n=new vo({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Da(n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,i),n}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),p[i]=S,Ta(c,{shape:{points:h,stackedOnPoints:d}},t),Ea(c)}Va(c,Fa(t),{labelDataIndex:f[g-1],defaultText:n.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=x.x-_,C.y=x.y0+x.y/2),c.useStyle(u),n.setItemGraphicEl(i,c),wa(c,t),va(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[i])}d.add(Object(s.c)(f,this,"add")).update(Object(s.c)(f,this,"update")).remove(Object(s.c)(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(tp),IT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new nx(s.c(this.getData,this),s.c(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,i={},n=vn(t,(function(t){return i.hasOwnProperty(t[0]+"")||(i[t[0]+""]=-1),t[2]})),r=[];n.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";i[u]=a}for(var u in i)i.hasOwnProperty(u)&&i[u]!==a&&(i[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var i=this.getReferringComponents("singleAxis",fn).models[0].get("type"),n=s.n(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(n||[]),o=[],a=this.nameMap=s.f(),l=0,u=0;u<r.length;++u)o.push(r[u][2]),a.get(r[u][2])||(a.set(r[u][2],l),l++);var c=cv(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Hy(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new uv(c,this);return h.initData(r),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),i=[],n=0;n<e;++n)i[n]=n;var r=t.mapDimension("single"),o=vn(i,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,i){e.sort((function(e,i){return t.get(r,e)-t.get(r,i)})),a.push({name:i,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,i){s.t(t)||(t=t?[t]:[]);for(var n,r=this.getData(),o=this.getLayerSeries(),a=[],l=o.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=o[u].indices.length,p=0;p<d;++p){var f=r.get(t[0],o[u].indices[p]),g=Math.abs(f-e);g<=c&&(n=f,c=g,h=o[u].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:n}},e.prototype.formatTooltip=function(t,e,i){var n=this.getData();return Cc("nameValue",{name:n.getName(t),value:n.get(n.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Uc);function TT(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.coordinateSystem,n={},r=i.getRect();n.rect=r;var o=t.get("boundaryGap"),a=i.getAxis();(n.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Di(o[0],r.height),o[1]=Di(o[1],r.height),DT(e,t,r.height-o[0]-o[1])):(o[0]=Di(o[0],r.width),o[1]=Di(o[1],r.width),DT(e,t,r.width-o[0]-o[1]));e.setLayout("layoutInfo",n)}))}function DT(t,e,i){if(t.count())for(var n,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),l=t.mapDimension("value"),u=s.H(o,(function(e){return s.H(e.indices,(function(e){var i=r.dataToPoint(t.get(a,e));return i[1]=t.get(l,e),i}))})),c=function(t){for(var e=t.length,i=t[0].length,n=[],r=[],o=0,a=0;a<i;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),n.push(s)}for(var u=0;u<i;++u)r[u]=(o-n[u])/2;o=0;for(var c=0;c<i;++c){var h=n[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}(u),h=c.y0,d=i/c.max,p=o.length,f=o[0].indices.length,g=0;g<f;++g){n=h[g]*d,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:n,y:u[0][g][1]*d});for(var m=1;m<p;++m)n+=u[m-1][g][1]*d,t.setItemLayout(o[m].indices[g],{layerIndex:m,x:u[m][g][0],y0:n,y:u[m][g][1]*d})}}var LT=function(t){function e(e,i,n,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},No(o).seriesIndex=i.seriesIndex;var a=new jo({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,i,n,r),o}return o(e,t),e.prototype.updateData=function(t,e,i,n,r){this.node=e,e.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var o=this;No(o).dataIndex=e.dataIndex;var a=e.getModel(),l=a.getModel("emphasis"),u=e.getLayout(),c=s.m({},u);c.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var d=e.getVisual("decal");d&&(h.decal=jf(d,r));var p=wb(a.getModel("itemStyle"),c,!0);s.m(c,p),s.k(Fo,(function(t){var e=o.ensureState(t),i=a.getModel([t,"itemStyle"]);e.style=i.getItemStyle();var n=wb(i,c);n&&(e.shape=n)})),t?(o.setShape(c),o.shape.r=u.r0,Da(o,{shape:{r:u.r}},i,e.dataIndex)):(Ta(o,{shape:c},i),Ea(o)),o.useStyle(h),this._updateLabel(i);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=l.get("focus");va(this,"relative"===g?s.e(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,i=this.node.getModel(),n=i.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,l=Math.cos(a),u=Math.sin(a),c=this,h=c.getTextContent(),d=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,f=n.get("show")&&!(null!=p&&Math.abs(o)<p);function g(t,e){var i=t.get(e);return null==i?n.get(e):i}h.ignore=!f,s.k(Ho,(function(n){var p="normal"===n?i.getModel("label"):i.getModel([n,"label"]),f="normal"===n,m=f?h:h.ensureState(n),y=t.getFormattedLabel(d,n);f&&(y=y||e.node.name),m.style=Ha(p,{},null,"normal"!==n,!0),y&&(m.style.text=y);var v=p.get("show");null==v||f||(m.ignore=!v);var b,x=g(p,"position"),_=f?c:c.states[n],w=_.style.fill;_.textConfig={outsideFill:"inherit"===p.get("color")?w:null,inside:"outside"!==x};var S=g(p,"distance")||0,C=g(p,"align"),M=g(p,"rotate"),k=.5*Math.PI,O=1.5*Math.PI,A=Fr("tangential"===M?Math.PI/2-a:a),I=A>k&&!Bi(A-k)&&A<O;"outside"===x?(b=r.r+S,C=I?"right":"left"):C&&"center"!==C?"left"===C?(b=r.r0+S,C=I?"right":"left"):"right"===C&&(b=r.r-S,C=I?"left":"right"):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,C="center"),m.style.align=C,m.style.verticalAlign=g(p,"verticalAlign")||"middle",m.x=b*l+r.cx,m.y=b*u+r.cy;var T=0;"radial"===M?T=Fr(-a)+(I?Math.PI:0):"tangential"===M?T=Fr(Math.PI/2-a)+(I?Math.PI:0):s.z(M)&&(T=M*Math.PI/180),m.rotation=Fr(T)})),h.dirtyStyle()},e}(Eh);var PT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i,n){var r=this;this.seriesModel=t,this.api=i,this.ecModel=e;var o=t.getData(),a=o.tree.root,l=t.getViewRoot(),u=this.group,c=t.get("renderLabelForZeroData"),h=[];l.eachNode((function(t){h.push(t)}));var d=this._oldChildren||[];!function(n,r){if(0===n.length&&0===r.length)return;function l(t){return t.getId()}function h(s,l){!function(n,r){c||!n||n.getValue()||(n=null);if(n!==a&&r!==a)if(r&&r.piece)n?(r.piece.updateData(!1,n,t,e,i),o.setItemGraphicEl(n.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(u.remove(t.piece),t.piece=null)}(r);else if(n){var s=new LT(n,t,e,i);u.add(s),o.setItemGraphicEl(n.dataIndex,s)}}(null==s?null:n[s],null==l?null:r[l])}new By(r,n,l,l).add(h).update(h).remove(s.h(h,null)).execute()}(h,d),function(n,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,n,t,e,i):(r.virtualPiece=new LT(n,t,e,i),u.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(u.remove(r.virtualPiece),r.virtualPiece=null)}(a,l),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var i=!1;t.seriesModel.getViewRoot().eachNode((function(n){if(!i&&n.piece&&n.piece===e.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(n);else if("link"===r){var o=n.getModel(),a=o.get("link");if(a)Ks(a,o.get("target",!0)||"_blank")}i=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,r=t[1]-i.cy,o=Math.sqrt(n*n+r*r);return o<=i.r&&o>=i.r0}},e.type="sunburst",e}(tp);var jT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.ignoreStyleOnData=!0,i}return o(e,t),e.prototype.getInitialData=function(t,e){var i={name:t.name,children:t.data};!function t(e){var i=0;s.k(e.children,(function(e){t(e);var n=e.value;s.t(n)&&(n=n[0]),i+=n}));var n=e.value;s.t(n)&&(n=n[0]);(null==n||isNaN(n))&&(n=i);n<0&&(n=0);s.t(e.value)?e.value[0]=n:e.value=n}(i);var n=this._levelModels=s.H(t.levels||[],(function(t){return new hs(t,this,e)}),this),r=qC.createTree(i,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var i=r.getNodeByDataIndex(e),o=n[i.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var i=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return i.treePathInfo=QC(n,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){rM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Uc),NT=Math.PI/180;function ET(t,e,i){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");s.t(n)||(n=[0,n]),s.t(e)||(e=[e,e]);var r=i.getWidth(),o=i.getHeight(),a=Math.min(r,o),l=Di(e[0],r),u=Di(e[1],o),c=Di(n[0],a/2),h=Di(n[1],a/2),d=-t.get("startAngle")*NT,p=t.get("minAngle")*NT,f=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,y=t.get("sort");null!=y&&function t(e,i){var n=e.children||[];e.children=function(t,e){if(s.w(e)){var i=s.H(t,(function(t,e){var i=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return i}},index:e}}));return i.sort((function(t,i){return e(t.params,i.params)})),s.H(i,(function(e){return t[e.index]}))}var n="asc"===e;return t.sort((function(t,e){var i=(t.getValue()-e.getValue())*(n?1:-1);return 0===i?(t.dataIndex-e.dataIndex)*(n?-1:1):i}))}(n,i),n.length&&s.k(e.children,(function(e){t(e,i)}))}(g,y);var v=0;s.k(g.children,(function(t){!isNaN(t.getValue())&&v++}));var b=g.getValue(),x=Math.PI/(b||v)*2,_=g.depth>0,w=g.height-(_?-1:1),S=(h-c)/(w||1),C=t.get("clockwise"),M=t.get("stillShowZeroSum"),k=C?1:-1,O=function(e,i){if(e){var n=i;if(e!==f){var r=e.getValue(),o=0===b&&M?x:r*x;o<p&&(o=p),n=i+k*o;var h=e.depth-m-(_?-1:1),d=c+S*h,g=c+S*(h+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),w=y.get("r",!0),A=y.get("radius",!0);null!=A&&(v=A[0],w=A[1]),null!=v&&(d=Di(v,a/2)),null!=w&&(g=Di(w,a/2))}e.setLayout({angle:o,startAngle:i,endAngle:n,clockwise:C,cx:l,cy:u,r0:d,r:g})}if(e.children&&e.children.length){var I=0;s.k(e.children,(function(t){I+=O(t,i+I)}))}return n-i}};if(_){var A=c,I=c+S,T=2*Math.PI;f.setLayout({angle:T,startAngle:d,endAngle:d+T,clockwise:C,cx:l,cy:u,r0:A,r:I})}O(g,d)}))}function RT(t){var e={};t.eachSeriesByType("sunburst",(function(t){var i=t.getData(),n=i.tree;n.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,i,n){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=i.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(s.C)(o)&&(o=Object(le.c)(o,(t.depth-1)/(n-1)*.5)),o}(r,t,n.root.height));var a=i.ensureUniqueItemVisual(r.dataIndex,"style");Object(s.m)(a,o)}))}))}var zT={color:"fill",borderColor:"stroke"},BT={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},VT=cn(),FT=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return vv(null,this)},e.prototype.getDataParams=function(e,i,n){var r=t.prototype.getDataParams.call(this,e,i);return n&&(r.info=VT(n).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Uc);function HT(t,e){return e=e||[0,0],s.H(["x","y"],(function(i,n){var r=this.getAxis(i),o=e[n],a=t[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function $T(t,e){return e=e||[0,0],s.H([0,1],(function(i){var n=e[i],r=t[i]/2,o=[],a=[];return o[i]=n-r,a[i]=n+r,o[1-i]=a[1-i]=e[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(a)[i])}),this)}function GT(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function WT(t,e){return e=e||[0,0],s.H(["Radius","Angle"],(function(i,n){var r=this["get"+i+"Axis"](),o=e[n],a=t[n]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===i&&(s=s*Math.PI/180),s}),this)}function UT(t,e,i,n){return t&&(t.legacy||!1!==t.legacy&&!i&&!n&&"tspan"!==e&&("text"===e||Object(s.q)(t,"text")))}function YT(t,e,i){var n,r,o,a=t;if("text"===e)o=a;else{o={},Object(s.q)(a,"text")&&(o.text=a.text),Object(s.q)(a,"rich")&&(o.rich=a.rich),Object(s.q)(a,"textFill")&&(o.fill=a.textFill),Object(s.q)(a,"textStroke")&&(o.stroke=a.textStroke),Object(s.q)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(s.q)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(s.q)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(s.q)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},n={};var l=Object(s.q)(a,"textPosition");i?n.position=l?a.textPosition:"inside":l&&(n.position=a.textPosition),Object(s.q)(a,"textPosition")&&(n.position=a.textPosition),Object(s.q)(a,"textOffset")&&(n.offset=a.textOffset),Object(s.q)(a,"textRotation")&&(n.rotation=a.textRotation),Object(s.q)(a,"textDistance")&&(n.distance=a.textDistance)}return qT(o,t),Object(s.k)(o.rich,(function(t){qT(t,t)})),{textConfig:n,textContent:r}}function qT(t,e){e&&(e.font=e.textFont||e.font,Object(s.q)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(s.q)(e,"textAlign")&&(t.align=e.textAlign),Object(s.q)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(s.q)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(s.q)(e,"textWidth")&&(t.width=e.textWidth),Object(s.q)(e,"textHeight")&&(t.height=e.textHeight),Object(s.q)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(s.q)(e,"textPadding")&&(t.padding=e.textPadding),Object(s.q)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(s.q)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(s.q)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(s.q)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(s.q)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(s.q)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(s.q)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function XT(t,e,i){var n=t;n.textPosition=n.textPosition||i.position||"inside",null!=i.offset&&(n.textOffset=i.offset),null!=i.rotation&&(n.textRotation=i.rotation),null!=i.distance&&(n.textDistance=i.distance);var r=n.textPosition.indexOf("inside")>=0,o=t.fill||"#000";ZT(n,e);var a=null==n.textFill;return r?a&&(n.textFill=i.insideFill||"#fff",!n.textStroke&&i.insideStroke&&(n.textStroke=i.insideStroke),!n.textStroke&&(n.textStroke=o),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(a&&(n.textFill=t.fill||i.outsideFill||"#000"),!n.textStroke&&i.outsideStroke&&(n.textStroke=i.outsideStroke)),n.text=e.text,n.rich=e.rich,Object(s.k)(e.rich,(function(t){ZT(t,t)})),n}function ZT(t,e){e&&(Object(s.q)(e,"fill")&&(t.textFill=e.fill),Object(s.q)(e,"stroke")&&(t.textStroke=e.fill),Object(s.q)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(s.q)(e,"font")&&(t.font=e.font),Object(s.q)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(s.q)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(s.q)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(s.q)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(s.q)(e,"align")&&(t.textAlign=e.align),Object(s.q)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(s.q)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(s.q)(e,"width")&&(t.textWidth=e.width),Object(s.q)(e,"height")&&(t.textHeight=e.height),Object(s.q)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(s.q)(e,"padding")&&(t.textPadding=e.padding),Object(s.q)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(s.q)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(s.q)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(s.q)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(s.q)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(s.q)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(s.q)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(s.q)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(s.q)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(s.q)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(s.q)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var KT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},QT=Object(s.F)(KT),JT=(Object(s.N)(ti,(function(t,e){return t[e]=1,t}),{}),ti.join(", "),["","style","shape","extra"]),tD=cn();function eD(t,e,i,n,r){var o=t+"Animation",a=Aa(t,n,r)||{},l=tD(e).userDuring;return a.duration>0&&(a.during=l?Object(s.c)(lD,{el:e,userDuring:l}):null,a.setToFinal=!0,a.scope=t),Object(s.m)(a,i[o]),a}function iD(t,e,i,n){var r=(n=n||{}).dataIndex,o=n.isInit,a=n.clearStyle,l=i.isAnimationEnabled(),u=tD(t),c=e.style;u.userDuring=e.during;var h={},d={};if(function(t,e,i){for(var n=0;n<QT.length;n++){var r=QT[n],o=KT[r],a=e[r];a&&(i[o[0]]=a[0],i[o[1]]=a[1])}for(n=0;n<ti.length;n++){var s=ti[n];null!=e[s]&&(i[s]=e[s])}}(0,e,d),cD("shape",e,d),cD("extra",e,d),!o&&l&&(function(t,e,i){for(var n=e.transition,r=oD(n)?ti:Ki(n||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,i[a]=s}}}(t,e,h),uD("shape",t,e,h),uD("extra",t,e,h),function(t,e,i,n){if(!i)return;var r,o=t.style;if(o){var a=i.transition,l=e.transition;if(a&&!oD(a)){var u=Ki(a);!r&&(r=n.style={});for(var c=0;c<u.length;c++){var h=u[c],d=o[h];r[h]=d}}else if(t.getAnimationStyleProps&&(oD(l)||oD(a)||Object(s.r)(l,"style")>=0)){var p=t.getAnimationStyleProps(),f=p?p.style:null;if(f){!r&&(r=n.style={});var g=Object(s.F)(i);for(c=0;c<g.length;c++){h=g[c];if(f[h]){d=o[h];r[h]=d}}}}}}(t,e,c,h)),d.style=c,function(t,e,i){var n=e.style;if(!t.isGroup&&n){if(i){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}(t,d,a),function(t,e){Object(s.q)(e,"silent")&&(t.silent=e.silent),Object(s.q)(e,"ignore")&&(t.ignore=e.ignore),t instanceof ir&&Object(s.q)(e,"invisible")&&(t.invisible=e.invisible);t instanceof io&&Object(s.q)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),l)if(o){var p={};Object(s.k)(JT,(function(t){var i=t?e[t]:e;i&&i.enterFrom&&(t&&(p[t]=p[t]||{}),Object(s.m)(t?p[t]:p,i.enterFrom))}));var f=eD("enter",t,e,i,r);f.duration>0&&t.animateFrom(p,f)}else!function(t,e,i,n,r){if(r){var o=eD("update",t,e,n,i);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,i,h);nD(t,e),c?t.dirty():t.markRedraw()}function nD(t,e){for(var i=tD(t).leaveToProps,n=0;n<JT.length;n++){var r=JT[n],o=r?e[r]:e;o&&o.leaveTo&&(i||(i=tD(t).leaveToProps={}),r&&(i[r]=i[r]||{}),Object(s.m)(r?i[r]:i,o.leaveTo))}}function rD(t,e,i,n){if(t){var r=t.parent,o=tD(t).leaveToProps;if(o){var a=eD("update",t,e,i,0);a.done=function(){r.remove(t),n&&n()},t.animateTo(o,a)}else r.remove(t),n&&n()}}function oD(t){return"all"===t}var aD={},sD={setTransform:function(t,e){return aD.el[t]=e,this},getTransform:function(t){return aD.el[t]},setShape:function(t,e){var i=aD.el;return(i.shape||(i.shape={}))[t]=e,i.dirtyShape&&i.dirtyShape(),this},getShape:function(t){var e=aD.el.shape;if(e)return e[t]},setStyle:function(t,e){var i=aD.el,n=i.style;return n&&(n[t]=e,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(t){var e=aD.el.style;if(e)return e[t]},setExtra:function(t,e){return(aD.el.extra||(aD.el.extra={}))[t]=e,this},getExtra:function(t){var e=aD.el.extra;if(e)return e[t]}};function lD(){var t=this.el;if(t){var e=tD(t).userDuring,i=this.userDuring;e===i?(aD.el=t,i(sD)):this.el=this.userDuring=null}}function uD(t,e,i,n){var r=i[t];if(r){var o,a=e[t];if(a){var l=i.transition,u=r.transition;if(u)if(!o&&(o=n[t]={}),oD(u))Object(s.m)(o,a);else for(var c=Ki(u),h=0;h<c.length;h++){var d=a[f=c[h]];o[f]=d}else if(oD(l)||Object(s.r)(l,t)>=0){!o&&(o=n[t]={});var p=Object(s.F)(a);for(h=0;h<p.length;h++){var f;d=a[f=p[h]];hD(r[f],d)&&(o[f]=d)}}}}}function cD(t,e,i){var n=e[t];if(n)for(var r=i[t]={},o=Object(s.F)(n),a=0;a<o.length;a++){var l=o[a];r[l]=ye(n[l])}}function hD(t,e){return Object(s.u)(t)?t!==e:null!=t&&isFinite(t)}var dD=cn(),pD=["percent","easing","shape","style","extra"];function fD(t){t.stopAnimation("keyframe"),t.attr(dD(t))}function gD(t,e,i){if(i.isAnimationEnabled()&&e)if(Object(s.t)(e))Object(s.k)(e,(function(e){gD(t,e,i)}));else{var n=e.keyframes,r=e.duration;if(i&&null==r){var o=Aa("enter",i,0);r=o&&o.duration}if(n&&r){var a=dD(t);Object(s.k)(JT,(function(i){if(!i||t[i]){var o;n.sort((function(t,e){return t.percent-e.percent})),Object(s.k)(n,(function(n){var l=t.animators,u=i?n[i]:n;if(u){var c=Object(s.F)(u);if(i||(c=Object(s.n)(c,(function(t){return Object(s.r)(pD,t)<0}))),c.length){o||((o=t.animate(i,e.loop,!0)).scope="keyframe");for(var h=0;h<l.length;h++)l[h]!==o&&l[h].targetName===o.targetName&&l[h].stopTracks(c);i&&(a[i]=a[i]||{});var d=i?a[i]:a;Object(s.k)(c,(function(e){d[e]=((i?t[i]:t)||{})[e]})),o.whenWithKeys(r*n.percent,u,c,n.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var mD=["normal","emphasis","blur","select"],yD={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},vD={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},bD=["x","y"],xD={normal:{},emphasis:{},blur:{},select:{}},_D={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:s.c(HT,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:s.c($T,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(s.c)(GT,t)}}},polar:function(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(n){var r=e.dataToRadius(n[0]),o=i.dataToAngle(n[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:s.c(WT,t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};function wD(t){return t instanceof io}function SD(t){return t instanceof ir}var CD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i,n){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=ID(t,o,e,i);r||a.removeAll(),o.diff(r).add((function(e){DD(i,null,e,s(e,n),t,a,o)})).remove((function(e){var i=r.getItemGraphicEl(e);i&&rD(i,VT(i).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);DD(i,u,e,s(e,n),t,a,o)})).execute();var l=t.get("clip",!0)?$v(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,i,n,r){var o=e.getData(),a=ID(e,o,i,n),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=DD(null,null,u,a(u,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Wd(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,i,n){var r=e.element;if(null==r||i.name===r)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===r)return!0;return!1},e.type="custom",e}(tp);function MD(t){var e,i=t.type;if("path"===i){var n=t.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=FD(n);e=Cd(o,null,r,n.layout||"center"),VT(e).customPathData=o}else if("image"===i)e=new uo({}),VT(e).customImagePath=t.style.image;else if("text"===i)e=new jo({});else if("group"===i)e=new Ci;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var a=Sd(i);if(!a){0,Nl("")}e=new a}return VT(e).customGraphicType=i,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function kD(t,e,i,n,r,o,a){fD(e);var l=r&&r.normal.cfg;l&&e.setTextConfig(l),n&&null==n.transition&&(n.transition=bD);var u=n&&n.style;if(u){if("text"===e.type){var c=u;Object(s.q)(c,"textFill")&&(c.fill=c.textFill),Object(s.q)(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,d=wD(e)?u.decal:null;t&&d&&(d.dirty=!0,h=jf(d,t)),u.__decalPattern=h}SD(e)&&(u&&(h=u.__decalPattern)&&(u.decal=h));iD(e,n,o,{dataIndex:i,isInit:a,clearStyle:!0}),gD(e,n.keyframeAnimation,o)}function OD(t,e,i,n,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===n){var l=o.getState(t);l&&(l.style=null)}else s.style=n||null;a&&(s.textConfig=a),ea(o)}}function AD(t,e,i){var n="normal"===i,r=n?e:ND(e,i),o=r?r.z2:null;null!=o&&((n?t:t.ensureState(i)).z2=o||0)}function ID(t,e,i,n){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):_D[o.type](o));for(var l,u,c=Object(s.i)({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,i){return null==i&&(i=l),e.getStore().get(e.getDimensionIndex(t||0),i)},style:function(i,n){0;null==n&&(n=l);var r=e.getItemVisual(n,"style"),o=r&&r.fill,a=r&&r.opacity,u=b(n,"normal").getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(s.C)(o)?o:"#000"},h=x(n,"normal"),d=Ha(h,null,c,!1,!0);d.text=h.getShallow("show")?Object(s.P)(t.getFormattedLabel(n,"normal"),xv(e,n)):null;var p=$a(h,c,!1);return w(i,u),u=XT(u,d,p),i&&_(u,i),u.legacy=!0,u},ordinalRawValue:function(t,i){null==i&&(i=l),t=t||0;var n=e.getDimensionInfo(t);if(!n){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,i):void 0}var o=e.get(n.name,i),a=n&&n.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(i,n){0;null==n&&(n=l);var r=b(n,"emphasis").getItemStyle(),o=x(n,"emphasis"),a=Ha(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(s.Q)(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),xv(e,n)):null;var u=$a(o,null,!0);return w(i,r),r=XT(r,a,u),i&&_(r,i),r.legacy=!0,r},visual:function(t,i){if(null==i&&(i=l),Object(s.q)(zT,t)){var n=e.getItemVisual(i,"style");return n?n[zT[t]]:null}if(Object(s.q)(BT,t))return e.getItemVisual(i,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return function(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),r=0;r<t.count;r++)e.push(Object(s.i)({bandWidth:n,axisKey:"axis0",stackId:"__ec_stack_"+r},t));var o=cb(e),a=[];for(r=0;r<t.count;r++){var l=o.axis0["__ec_stack_"+r];l.offsetCenter=l.offset+l.width/2,a.push(l)}return a}}(Object(s.i)({axis:e},t))}},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(t){return qa(t,i)}},a.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:TD(t.getData())},d={},p={},f={},g={},m=0;m<mD.length;m++){var y=mD[m];f[y]=t.getModel(yD[y]),g[y]=t.getModel(vD[y])}function v(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function b(t,i){return e.hasItemOption?t===l?d[i]||(d[i]=v(t).getModel(yD[i])):v(t).getModel(yD[i]):f[i]}function x(t,i){return e.hasItemOption?t===l?p[i]||(p[i]=v(t).getModel(vD[i])):v(t).getModel(vD[i]):g[i]}return function(t,i){return l=t,u=null,d={},p={},r&&r(Object(s.i)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},h),c)};function _(t,e){for(var i in e)Object(s.q)(e,i)&&(t[i]=e[i])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function TD(t){var e={};return Object(s.k)(t.dimensions,(function(i){var n=t.getDimensionInfo(i);if(!n.isExtraCoord){var r=n.coordDim;(e[r]=e[r]||[])[n.coordDimIndex]=t.getDimensionIndex(i)}})),e}function DD(t,e,i,n,r,o,a){if(n){var s=LD(t,e,i,n,r,o);return s&&a.setItemGraphicEl(i,s),s&&va(s,n.focus,n.blurScope,n.emphasisDisabled),s}o.remove(e)}function LD(t,e,i,n,r,o){var a=-1,l=e;e&&PD(e,n,r)&&(a=Object(s.r)(o.childrenRef(),e),e=null);var u,c,h=!e,d=e;d?d.clearStates():(d=MD(n),l&&(u=l,(c=d).copyTransform(u),SD(c)&&SD(u)&&(c.setStyle(u.style),c.z=u.z,c.z2=u.z2,c.zlevel=u.zlevel,c.invisible=u.invisible,c.ignore=u.ignore,wD(c)&&wD(u)&&c.setShape(u.shape)))),!1===n.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),xD.normal.cfg=xD.normal.conOpt=xD.emphasis.cfg=xD.emphasis.conOpt=xD.blur.cfg=xD.blur.conOpt=xD.select.cfg=xD.select.conOpt=null,xD.isLegacy=!1,function(t,e,i,n,r,o){if(t.isGroup)return;jD(i,null,o),jD(i,"emphasis",o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=MD(a),t.setTextContent(c)),kD(null,c,e,a,null,n,r);for(var h=a&&a.style,d=0;d<mD.length;d++){var p=mD[d];if("normal"!==p){var f=o[p].conOpt;OD(p,c,0,ED(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}(d,i,n,r,h,xD),function(t,e,i,n,r){var o=i.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&PD(a,o,n)&&(a=null),a||(a=MD(o),t.setClipPath(a)),kD(null,a,e,o,null,n,r)}}(d,i,n,r,h),kD(t,d,i,n,xD,r,h),Object(s.q)(n,"info")&&(VT(d).info=n.info);for(var p=0;p<mD.length;p++){var f=mD[p];if("normal"!==f){var g=ND(n,f);OD(f,d,0,ED(n,g,f),xD)}}return function(t,e,i){if(!t.isGroup){var n=t,r=i.currentZ,o=i.currentZLevel;n.z=r,n.zlevel=o;var a=e.z2;null!=a&&(n.z2=a||0);for(var s=0;s<mD.length;s++)AD(n,e,mD[s])}}(d,n,r),"group"===n.type&&function(t,e,i,n,r){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:i,seriesModel:r,group:e},void new By(c.oldChildren,c.newChildren,zD,zD,c).add(BD).update(BD).remove(VD).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var d=o[h],p=e.childAt(h);d?(null==d.ignore&&(d.ignore=!1),LD(t,p,i,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);RD(e,g,r)}}(t,d,i,n,r),a>=0?o.replaceAt(d,a):o.add(d),d}function PD(t,e,i){var n,r=VT(t),o=e.type,a=e.shape,l=e.style;return i.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((n=a)&&(Object(s.q)(n,"pathData")||Object(s.q)(n,"d")))&&FD(a)!==r.customPathData||"image"===o&&Object(s.q)(l,"image")&&l.image!==r.customImagePath}function jD(t,e,i){var n=e?ND(t,e):t,r=e?ED(t,n,"emphasis"):t.style,o=t.type,a=n?n.textConfig:null,s=t.textContent,l=s?e?ND(s,e):s:null;if(r&&(i.isLegacy||UT(r,o,!!a,!!l))){i.isLegacy=!0;var u=YT(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?i[e]:i.normal;h.cfg=a,h.conOpt=l}function ND(t,e){return e?t?t[e]:null:t}function ED(t,e,i){var n=e&&e.style;return null==n&&"emphasis"===i&&t&&(n=t.styleEmphasis),n}function RD(t,e,i){e&&rD(e,VT(t).option,i)}function zD(t,e){var i=t&&t.name;return null!=i?i:"e\0\0"+e}function BD(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null,r=null!=e?i.oldChildren[e]:null;LD(i.api,r,i.dataIndex,n,i.seriesModel,i.group)}function VD(t){var e=this.context,i=e.oldChildren[t];i&&rD(i,VT(i).option,e.seriesModel)}function FD(t){return t&&(t.pathData||t.d)}var HD=cn(),$D=s.d,GD=s.c;function WD(t,e,i,n){(function t(e,i){if(s.A(e)&&s.A(i)){var n=!0;return s.k(i,(function(i,r){n=n&&t(e[r],i)})),!!n}return e===i})(HD(i).lastProp,n)||(HD(i).lastProp=n,e?Ta(i,n,t):(i.stopAnimation(),i.attr(n)))}function UD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function YD(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function qD(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}var XD=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,l=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var u={};this.makeElOption(u,r,t,e,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=s.h(WD,e,h);this.updatePointerEl(a,u,d),this.updateLabelEl(a,u,d,e)}else a=this._group=new Ci,this.createPointerEl(a,u,t,e),this.createLabelEl(a,u,t,e),i.getZr().add(a);qD(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=iw(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(t,e,i,n,r){},t.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=HD(t).pointerEl=new n[o.type]($D(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=HD(t).labelEl=new jo($D(e.label));t.add(r),UD(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=HD(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=HD(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),UD(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a)return r&&n.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Bd(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Y(t.event)},onmousedown:GD(this._onHandleDragMove,this,0,0),drift:GD(this._onHandleDragMove,this),ondragend:GD(this._onHandleDragEnd,this)}),n.add(r)),qD(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");s.t(l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,rp(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){WD(this._axisPointerModel,!e&&this._moveAnimation,this._handle,YD(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(YD(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(YD(n)),HD(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),op(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},t}();function ZD(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e}function KD(t,e,i,n,r){var o=QD(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),a=i.getModel("label"),s=Ws(a.get("padding")||0),l=a.getFont(),u=li(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,n);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ha(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function QD(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var l={value:f_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};s.k(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&l.seriesData.push(r)})),s.C(a)?o=a.replace("{value}",o):s.w(a)&&(o=a(l))}return o}function JD(t,e,i){var n=[1,0,0,1,0,0];return it(n,n,i.rotation),et(n,n,i.position),Pd([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function tL(t,e,i,n,r,o){var a=Q_.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),KD(e,n,r,o,{position:JD(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function eL(t,e,i){return{x1:t[i=i||0],y1:t[1-i],x2:e[i],y2:e[1-i]}}function iL(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}function nL(t,e,i,n,r,o){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}var rL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=oL(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=ZD(n),h=aL[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}tL(e,t,E_(a.model,i),i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=E_(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=JD(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=oL(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(XD);function oL(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var aL={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:eL([e,i[0]],[e,i[1]],sL(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:iL([e-n/2,i[0]],[n,r],sL(t))}}};function sL(t){return"x"===t.dim?0:1}var lL=rL,uL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(hl),cL=cn(),hL=s.k;function dL(t,e,i){if(!a.a.node){var n=e.getZr();cL(n).records||(cL(n).records={}),function(t,e){if(cL(t).initialized)return;function i(i,n){t.on(i,(function(i){var r=function(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);hL(cL(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),function(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(r.pendings,e)}))}cL(t).initialized=!0,i("click",s.h(fL,"click")),i("mousemove",s.h(fL,"mousemove")),i("globalout",pL)}(n,e),(cL(n).records[t]||(cL(n).records[t]={})).handler=i}}function pL(t,e,i){t.handler("leave",null,i)}function fL(t,e,i,n){e.handler(t,i,n)}function gL(t,e){if(!a.a.node){var i=e.getZr();(cL(i).records||{})[t]&&(cL(i).records[t]=null)}}var mL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";dL("axisPointer",i,(function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){gL("axisPointer",e)},e.prototype.dispose=function(t,e){gL("axisPointer",e)},e.type="axisPointer",e}(qc);function yL(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=un(o,t);if(null==a||a<0||s.t(a))return{point:[]};var l=o.getItemGraphicEl(a),u=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),h=u.getOtherAxis(c).dim,d=c.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=u.dataToPoint(g)||[]}else n=u.dataToPoint(o.getValues(s.H(u.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(l){var m=l.getBoundingRect().clone();m.applyTransform(l.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:l}}var vL=cn();function bL(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(s.c)(i.dispatchAction,i),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){CL(r)&&(r=yL({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var u=CL(r),c=o.axesInfo,h=l.axesInfo,d="leave"===n||CL(r),p={},f={},g={list:[],map:{}},m={showPointer:Object(s.h)(_L,f),showTooltip:Object(s.h)(wL,g)};Object(s.k)(l.coordSysMap,(function(t,e){var i=u||t.containPoint(r);Object(s.k)(l.coordSysAxesInfo[e],(function(t,e){var n=t.axis,o=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(c,t);if(!d&&i&&(!c||o)){var a=o&&o.value;null!=a||u||(a=n.pointToData(r)),null!=a&&xL(t,a,m,!1,p)}}))}));var y={};return Object(s.k)(h,(function(t,e){var i=t.linkGroup;i&&!f[e]&&Object(s.k)(i.axesInfo,(function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,SL(e),SL(t)))),y[t.key]=o}}))})),Object(s.k)(y,(function(t,e){xL(h[e],t,m,!0,p)})),function(t,e,i){var n=i.axesInfo=[];Object(s.k)(e,(function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(f,h,p),function(t,e,i,n){if(CL(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(g,r,t,a),function(t,e,i){var n=i.getZr(),r=vL(n).axisPointerLastHighlights||{},o=vL(n).axisPointerLastHighlights={};Object(s.k)(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&Object(s.k)(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var a=[],l=[];Object(s.k)(r,(function(t,e){!o[e]&&l.push(t)})),Object(s.k)(o,(function(t,e){!r[e]&&a.push(t)})),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),a.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(h,0,i),p}}function xL(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,l=-1;return Object(s.k)(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,i);h=p.dataIndices,c=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null)).length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=a&&((g<a||f>=0&&l<0)&&(a=g,l=f,r=c,o.length=0),Object(s.k)(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),l=a.payloadBatch,u=a.snapToValue;l[0]&&null==r.seriesIndex&&Object(s.m)(r,l[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l),i.showTooltip(t,a,u)}else i.showPointer(t,e)}function _L(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function wL(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=rw(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function SL(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function CL(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function ML(t){aw.registerAxisPointerClass("CartesianAxisPointer",lL),t.registerComponentModel(uL),t.registerComponentView(mL),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(s.t)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=J_(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bL)}var kL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=n.get("type");if(u&&"none"!==u){var c=ZD(n),h=OL[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=function(t,e,i,n,r){var o=e.axis,a=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];it(d,d,s),et(d,d,[n.cx,n.cy]),l=Pd([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=Q_.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=n.coordToPoint([g+r,a]);var m=n.cx,y=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,i,0,a,n.get(["label","margin"]));KD(t,i,n,r,d)},e}(XD);var OL={line:function(t,e,i,n){return"angle"===t.dim?{type:"Line",shape:eL(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:nL(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:nL(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}},AL=kL,IL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(hl),TL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fn).models[0]},e.type="polarAxis",e}(hl);s.K(TL,dx);var DL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="angleAxis",e}(TL),LL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="radiusAxis",e}(TL),PL=function(t){function e(e,i){return t.call(this,"radius",e,i)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(j_);PL.prototype.dataToRadius=j_.prototype.dataToCoord,PL.prototype.radiusToData=j_.prototype.coordToData;var jL=PL,NL=cn(),EL=function(t){function e(e,i){return t.call(this,"angle",e,i||[0,360])||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,i=e.getExtent(),n=e.count();if(i[1]-i[0]<1)return 0;var r=i[0],o=this.dataToCoord(r+1)-this.dataToCoord(r),a=Math.abs(o),s=li(null==r?"":r+"",t.getFont(),"center","top"),l=Math.max(s.height,7)/a;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=NL(this.model),h=c.lastAutoInterval,d=c.lastTickCount;return null!=h&&null!=d&&Math.abs(h-u)<=1&&Math.abs(d-n)<=1&&h>u?u=h:(c.lastTickCount=n,c.lastAutoInterval=u),u},e}(j_);EL.prototype.dataToAngle=j_.prototype.dataToCoord,EL.prototype.angleToData=j_.prototype.coordToData;var RL=EL,zL=["radius","angle"];function BL(t){var e=t.seriesModel,i=t.polarModel;return i&&i.coordinateSystem||e&&e.coordinateSystem}var VL=function(){function t(t){this.dimensions=zL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new jL,this._angleAxis=new RL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);n.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,r=i*i+n*n,o=this.r,a=this.r0;return o!==a&&r-1e-4<=o*o&&r+1e-4>=a*a}}},t.prototype.convertToPixel=function(t,e,i){return BL(e)===this?this.dataToPoint(i):null},t.prototype.convertFromPixel=function(t,e,i){return BL(e)===this?this.pointToData(i):null},t}();function FL(t,e){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();s.k(y_(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),s.k(y_(e,"angle"),(function(t){n.scale.unionExtentFromData(e,t)}))}})),h_(n.scale,n.model),h_(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),a=360/n.scale.count();n.inverse?o[1]+=a:o[1]-=a,n.setExtent(o[0],o[1])}}function HL(t,e){var i;if(t.type=e.get("type"),t.scale=d_(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle"),r=null!==(i=e.get("endAngle"))&&void 0!==i?i:n+(t.inverse?-360:360);t.setExtent(n,r)}e.axis=t,t.model=e}var $L={dimensions:zL,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var r=new VL(n+"");r.update=FL;var o=r.getRadiusAxis(),a=r.getAngleAxis(),l=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");HL(o,l),HL(a,u),function(t,e,i){var n=e.get("center"),r=i.getWidth(),o=i.getHeight();t.cx=Di(n[0],r),t.cy=Di(n[1],o);var a=t.getRadiusAxis(),l=Math.min(r,o)/2,u=e.get("radius");null==u?u=[0,"100%"]:s.t(u)||(u=[0,u]);var c=[Di(u[0],l),Di(u[1],l)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(r,t,e),i.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",fn).models[0];0,t.coordinateSystem=e.coordinateSystem}})),i}},GL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function WL(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function UL(t){return t.getRadiusAxis().inverse?0:1}function YL(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}var qL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="PolarAxisPointer",i}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,r=n.getRadiusAxis().getExtent(),o=i.getTicksCoords(),a=i.getMinorTicksCoords(),l=s.H(i.getViewLabels(),(function(t){t=s.d(t);var e=i.scale,n="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=i.dataToCoord(n),t}));YL(l),YL(o),s.k(GL,(function(e){!t.get([e,"show"])||i.scale.isBlank()&&"axisLine"!==e||XL[e](this.group,t,n,o,a,r,l)}),this)}},e.type="angleAxis",e}(aw),XL={axisLine:function(t,e,i,r,o,a){var s,l=e.getModel(["axisLine","lineStyle"]),u=i.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=UL(i),p=d?0:1,f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";(s=0===a[p]?new n[f]({shape:{cx:i.cx,cy:i.cy,r:a[d],startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Bh({shape:{cx:i.cx,cy:i.cy,r:a[d],r0:a[p]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,i,n,r,o){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),u=o[UL(i)],c=s.H(n,(function(t){return new Zh({shape:WL(i,[u,u+l],t.coord)})}));t.add(Od(c,{style:s.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,i,n,r,o){if(r.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*l.get("length"),c=o[UL(i)],h=[],d=0;d<r.length;d++)for(var p=0;p<r[d].length;p++)h.push(new Zh({shape:WL(i,[c,c+u],r[d][p].coord)}));t.add(Od(h,{style:s.i(l.getModel("lineStyle").getLineStyle(),s.i(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,i,n,r,o,a){var l=e.getCategories(!0),u=e.getModel("axisLabel"),c=u.get("margin"),h=e.get("triggerEvent");s.k(a,(function(n,r){var a=u,d=n.tickValue,p=o[UL(i)],f=i.coordToPoint([p+c,n.coord]),g=i.cx,m=i.cy,y=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",v=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";if(l&&l[d]){var b=l[d];s.A(b)&&b.textStyle&&(a=new hs(b.textStyle,u,u.ecModel))}var x=new jo({silent:Q_.isLabelSilent(e),style:Ha(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),h){var _=Q_.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=n.rawLabel,No(x).eventData=_}}),this)},splitLine:function(t,e,i,n,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),l=a.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<n.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Zh({shape:WL(i,o,n[h].coord)}))}for(h=0;h<c.length;h++)t.add(Od(c[h],{style:s.i({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,i,n,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new Zh({shape:WL(i,o,r[l][u].coord)}));t.add(Od(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,i,n,r,o){if(n.length){var a=e.getModel("splitArea").getModel("areaStyle"),l=a.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-n[0].coord*h,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=e.get("clockwise"),m=1,y=n.length;m<=y;m++){var v=m===y?n[0].coord:n[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Eh({shape:{cx:i.cx,cy:i.cy,r0:p,r:f,startAngle:d,endAngle:-v*h,clockwise:g},silent:!0})),d=-v*h}for(m=0;m<c.length;m++)t.add(Od(c[m],{style:s.i({fill:l[m%l.length]},a.getAreaStyle()),silent:!0}))}}},ZL=qL,KL=["axisLine","axisTickLabel","axisName"],QL=["splitLine","splitArea","minorSplitLine"],JL=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="PolarAxisPointer",i}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var i=this._axisGroup,n=this._axisGroup=new Ci;this.group.add(n);var r=t.axis,o=r.polar,a=o.getAngleAxis(),l=r.getTicksCoords(),u=r.getMinorTicksCoords(),c=a.getExtent()[0],h=r.getExtent(),d=function(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,c),p=new Q_(t,d);s.k(KL,p.add,p),n.add(p.getGroup()),Ed(i,n,t),s.k(QL,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&tP[e](this.group,t,o,c,h,l,u)}),this)}},e.type="radiusAxis",e}(aw),tP={splitLine:function(t,e,i,r,o,a){var l=e.getModel("splitLine").getModel("lineStyle"),u=l.get("color"),c=0,h=i.getAngleAxis(),d=Math.PI/180,p=h.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],m=0;m<a.length;m++){var y=c++%u.length;g[y]=g[y]||[],g[y].push(new n[f]({shape:{cx:i.cx,cy:i.cy,r:Math.max(a[m].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:h.inverse}}))}for(m=0;m<g.length;m++)t.add(Od(g[m],{style:s.i({stroke:u[m%u.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,i,n,r,o,a){if(a.length){for(var l=e.getModel("minorSplitLine").getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new vh({shape:{cx:i.cx,cy:i.cy,r:a[c][h].coord}}));t.add(Od(u,{style:s.i({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,i,n,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),l=a.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Eh({shape:{cx:i.cx,cy:i.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<c.length;d++)t.add(Od(c[d],{style:s.i({fill:l[d%l.length]},a.getAreaStyle()),silent:!0}))}}};var eP=JL;function iP(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function nP(t,e){return e.dim+t.model.componentIndex}var rP=function(t,e,i){var n={},r=function(t){var e={};s.k(t,(function(t,i){var n=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=nP(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=iP(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=Di(t.get("barWidth"),l),p=Di(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var i={};return s.k(e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=Di(t.categoryGap,r),a=Di(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,c=(l-o)/(u+(u-1)*a);c=Math.max(c,0),s.k(n,(function(t,e){var i=t.maxWidth;i&&i<c&&(i=Math.min(i,l),t.width&&(i=Math.min(i,t.width)),l-=i,t.width=i,u--)})),c=(l-o)/(u+(u-1)*a),c=Math.max(c,0);var h,d=0;s.k(n,(function(t,e){t.width||(t.width=c),h=t,d+=t.width*(1+a)})),h&&(d-=h.width*a);var p=-d/2;s.k(n,(function(t,n){i[e][n]=i[e][n]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),i}(s.n(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=nP(i,o),s=iP(t),l=r[a][s],u=l.offset,c=l.width,h=i.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;n[s]=n[s]||[];for(var m=e.mapDimension(h.dim),y=e.mapDimension(o.dim),v=mv(e,m),b="radius"!==o.dim||!t.get("roundCap",!0),x=h.model.get("startValue"),_=h.dataToCoord(x||0),w=0,S=e.count();w<S;w++){var C=e.get(m,w),M=e.get(y,w),k=C>=0?"p":"n",O=_;v&&(n[s][M]||(n[s][M]={p:_,n:_}),O=n[s][M][k]);var A=void 0,I=void 0,T=void 0,D=void 0;if("radius"===h.dim){var L=h.dataToCoord(C)-_,P=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),A=O,I=O+L,D=(T=P-u)-c,v&&(n[s][M][k]=I)}else{var j=h.dataToCoord(C,b)-_,N=o.dataToCoord(M);Math.abs(j)<g&&(j=(j<0?-1:1)*g),I=(A=N+u)+c,T=O,D=O+j,v&&(n[s][M][k]=D)}e.setItemLayout(w,{cx:d,cy:p,r0:A,r:I,startAngle:-T*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:T>=D})}}}))},oP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},aP={splitNumber:5},sP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="polar",e}(qc);function lP(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,r={},o=n.position,a=n.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};r.position=["vertical"===a?c.vertical[o]:u[0],"horizontal"===a?c.horizontal[o]:u[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),s.O(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var uP=["axisLine","axisTickLabel","axisName"],cP=["splitArea","splitLine"],hP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="SingleAxisPointer",i}return o(e,t),e.prototype.render=function(e,i,n,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Ci;var l=lP(e),u=new Q_(e,l);s.k(uP,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),s.k(cP,(function(t){e.get([t,"show"])&&dP[t](this,this.group,this._axisGroup,e)}),this),Ed(a,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)},e.prototype.remove=function(){uw(this)},e.type="singleAxis",e}(aw),dP={splitLine:function(t,e,i,n){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),l=a.get("color");l=l instanceof Array?l:[l];for(var u=a.get("width"),c=n.coordinateSystem.getRect(),h=r.isHorizontal(),d=[],p=0,f=r.getTicksCoords({tickModel:o}),g=[],m=[],y=0;y<f.length;++y){var v=r.toGlobalCoord(f[y].coord);h?(g[0]=v,g[1]=c.y,m[0]=v,m[1]=c.y+c.height):(g[0]=c.x,g[1]=v,m[0]=c.x+c.width,m[1]=v);var b=new Zh({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});Id(b.shape,u);var x=p++%l.length;d[x]=d[x]||[],d[x].push(b)}var _=a.getLineStyle(["color"]);for(y=0;y<d.length;++y)e.add(Od(d[y],{style:s.i({stroke:l[y%l.length]},_),silent:!0}))}},splitArea:function(t,e,i,n){lw(t,i,n,n)}},pP=hP,fP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(hl);Object(s.K)(fP,dx.prototype);var gP=fP,mP=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.type=r||"value",a.position=o||"bottom",a}return o(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(j_),yP=["single"];function vP(t){var e=t.seriesModel,i=t.singleAxisModel;return i&&i.coordinateSystem||e&&e.coordinateSystem}var bP=function(){function t(t,e,i){this.type="single",this.dimension="single",this.dimensions=yP,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,i)}return t.prototype._init=function(t,e,i){var n=this.dimension,r=new mP(n,d_(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(s.k)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),h_(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=nl({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,i?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var i=t.getExtent(),n=i[0]+i[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return n-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n},t.prototype.convertToPixel=function(t,e,i){return vP(e)===this?this.dataToPoint(i):null},t.prototype.convertFromPixel=function(t,e,i){return vP(e)===this?this.pointToData(i):null},t}();var xP={create:function(t,e){var i=[];return t.eachComponent("singleAxis",(function(n,r){var o=new bP(n,t,e);o.name="single_"+r,o.resize(n,e),n.coordinateSystem=o,i.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",fn).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),i},dimensions:yP},_P=["x","y"],wP=["width","height"],SP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.coordinateSystem,s=kP(a,1-MP(o)),l=a.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var c=ZD(n),h=CP[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}tL(e,t,lP(i),i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=lP(e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=JD(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.coordinateSystem,a=MP(r),s=kP(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=kP(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(XD),CP={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:eL([e,i[0]],[e,i[1]],MP(t))}},shadow:function(t,e,i){var n=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:iL([e-n/2,i[0]],[n,r],MP(t))}}};function MP(t){return t.isHorizontal()?0:1}function kP(t,e){var i=t.getRect();return[i[_P[e]],i[_P[e]]+i[wP[e]]]}var OP=SP,AP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="single",e}(qc);function IP(t,e){var i,n=t.cellSize;1===(i=s.t(n)?n:t.cellSize=[n,n]).length&&(i[1]=i[0]);var r=s.H([0,1],(function(t){return function(t,e){return null!=t[tl[e][0]]||null!=t[tl[e][1]]&&null!=t[tl[e][2]]}(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));al(t,e,{type:"box",ignoreSize:r})}var TP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(e,i,n){var r=sl(e);t.prototype.init.apply(this,arguments),IP(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),IP(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(hl),DP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,n),this._renderLines(t,o,a,n),this._renderYearText(t,o,a,n),this._renderMonthText(t,s,a,n),this._renderWeekText(t,s,o,a,n)},e.prototype._renderDayRect=function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),a=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new vo({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});i.add(u)}},e.prototype._renderLines=function(t,e,i,n){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,n)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,i),a,n),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,i),a,n)},e.prototype._getEdgesPoints=function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},e.prototype._drawSplitline=function(t,e,i){var n=new Uh({z2:20,shape:{points:t},style:e});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,e,i){for(var n=t.coordinateSystem,r=n.getDateInfo(e),o=[],a=0;a<7;a++){var s=n.getNextNDay(r.time,a),l=n.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===i?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(s.C)(t)&&t?(i=t,n=e,s.k(n,(function(t,e){i=i.replace("{"+e+"}",r?z(t):t)})),i):Object(s.w)(t)?t(e):e.nameMap;var i,n,r},e.prototype._yearTextPositionControl=function(t,e,i,n,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===n?(a+=r,s=["center","top"]):"left"===n?o-=r:"right"===n?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===i?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new jo({z2:30,style:Ha(r,{text:g}),silent:r.get("silent")});m.attr(this._yearTextPositionControl(m,h[a],i,a,o)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,e,i,n,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(o="center"),"start"===n&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===n&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,i,n){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),l=r.get("position"),u=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(s.C)(o)||(o&&(e=bs(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===i?0:1;a="start"===l?-a:a;for(var p="center"===u,f=r.get("silent"),g=0;g<c[h].length-1;g++){var m=c[h][g].slice(),y=this._firstDayOfMonth[g];if(p){var v=this._firstDayPoints[g];m[d]=(v[d]+c[0][g+1][d])/2}var b=r.get("formatter"),x=o[+y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},w=this._formatterLabel(b,_),S=new jo({z2:30,style:Object(s.m)(Ha(r,{text:w}),this._monthTextPositionControl(m,p,i,l,a)),silent:f});n.add(S)}}},e.prototype._weekTextPositionControl=function(t,e,i,n,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+n+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,i,n,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,l=o.get("position"),u=o.get("nameMap"),c=o.get("margin"),h=a.getFirstDayOfWeek();if(!u||Object(s.C)(u))u&&(e=bs(u)||e),u=e.get(["time","dayOfWeekShort"])||Object(s.H)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var d=a.getNextNDay(i.end.time,7-i.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];c=Di(c,Math.min(p[1],p[0])),"start"===l&&(d=a.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var f=o.get("silent"),g=0;g<7;g++){var m,y=a.getNextNDay(d,g),v=a.dataToRect([y.time],!1).center;m=Math.abs((g+h)%7);var b=new jo({z2:30,style:Object(s.m)(Ha(o,{text:u[m]}),this._weekTextPositionControl(v,n,l,c,p)),silent:f});r.add(b)}}},e.type="calendar",e}(qc);function LP(t){var e=t.calendarModel,i=t.seriesModel;return e?e.coordinateSystem:i?i.coordinateSystem:null}var PP=function(){function t(e,i,n){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Fi(t)).getFullYear(),i=t.getMonth()+1,n=i<10?"0"+i:""+i,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:n,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,n=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[i,7]:[7,i];s.k([0,1],(function(t){c(r,t)&&(o[n[t]]=r[t]*a[t])}));var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=nl(o,l);function c(t,e){return null!=t[e]&&"auto"!==t[e]}s.k([0,1],(function(t){c(r,t)||(r[t]=u[n[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){s.t(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,r=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+864e5))return[NaN,NaN];var o=i.day,a=this._getRangeInfo([n.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},t.prototype.convertToPixel=function(t,e,i){var n=LP(e);return n===this?n.dataToPoint(i):null},t.prototype.convertFromPixel=function(t,e,i){var n=LP(e);return n===this?n.pointToData(i):null},t.prototype.containPoint=function(t){return!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(s.t(e)&&1===e.length&&(e=e[0]),s.t(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var n=this.getDateInfo(i),r=n.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];i[0].time>i[1].time&&(e=!0,i.reverse());var n=Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1,r=new Date(i[0].time),o=r.getDate(),a=i[1].date.getDate();r.setDate(o+n-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-i[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-i[1].time)*l>0;)n-=l,r.setDate(s-l);var u=Math.floor((n+i[0].day+6)/7),c=e?1-u:u-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:n,weeks:u,nthWeek:c,fweek:i[0].day,lweek:i[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var r=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+r),this.getDateInfo(o)},t.create=function(e,i){var n=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,i);n.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},t.dimensions=["time","value"],t}();function jP(t,e){var i;return s.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}var NP=["transition","enterFrom","leaveTo"],EP=NP.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function RP(t,e,i){if(i&&(!t[i]&&e[i]&&(t[i]={}),t=t[i],e=e[i]),t&&e)for(var n=i?NP:EP,r=0;r<n.length;r++){var o=n[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var zP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.preventAutoZ=!0,i}return o(e,t),e.prototype.mergeOption=function(e,i){var n=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,i),this.option.elements=n},e.prototype.optionUpdated=function(t,e){var i=this.option,n=(e?i:t).elements,r=i.elements=e?[]:i.elements,o=[];this._flatten(n,o,null);var a=nn(r,o,"normalMerge"),l=this._elOptionsToUpdate=[];s.k(a,(function(t,e){var i=t.newOption;i&&(l.push(i),function(t,e){var i=t.existing;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}(t,i),function(t,e,i){var n=s.m({},i),r=t[e],o=i.$action||"merge";"merge"===o?r?(s.I(r,n,!0),al(r,n,{ignoreSize:!0}),ll(i,r),RP(i,r),RP(i,r,"shape"),RP(i,r,"style"),RP(i,r,"extra"),i.clipPath=r.clipPath):t[e]=n:"replace"===o?t[e]=n:"remove"===o&&r&&(t[e]=null)}(r,e,i),function(t,e){if(t&&(t.hv=e.hv=[jP(e,["left","right"]),jP(e,["top","bottom"])],"group"===t.type)){var i=t,n=e;null==i.width&&(i.width=n.width=0),null==i.height&&(i.height=n.height=0)}}(r[e],i))}),this),i.elements=s.n(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,i){s.k(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;n&&n.length&&this._flatten(n,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(hl),BP={path:null,compoundPath:null,group:Ci,image:uo,text:jo},VP=cn(),FP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){this._elMap=s.f()},e.prototype.render=function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group,r=t.get("z"),o=t.get("zlevel");s.k(e,(function(e){var a=an(e.id,null),l=null!=a?i.get(a):null,u=an(e.parentId,null),c=null!=u?i.get(u):n,h=e.type,d=e.style;"text"===h&&d&&e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=e.textContent,f=e.textConfig;if(d&&UT(d,h,!!f,!!p)){var g=YT(d,h,!0);!f&&g.textConfig&&(f=e.textConfig=g.textConfig),!p&&g.textContent&&(p=g.textContent)}var m=function(t){return t=s.m({},t),s.k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Js),(function(e){delete t[e]})),t}(e);var y=e.$action||"merge",v="merge"===y,b="replace"===y;if(v){var x=l;(O=!l)?x=$P(a,c,e.type,i):(x&&(VP(x).isNew=!1),fD(x)),x&&(iD(x,m,t,{isInit:O}),WP(x,e,r,o))}else if(b){GP(l,e,i,t);var _=$P(a,c,e.type,i);_&&(iD(_,m,t,{isInit:!0}),WP(_,e,r,o))}else"remove"===y&&(nD(l,e),GP(l,e,i,t));var w=i.get(a);if(w&&p)if(v){var S=w.getTextContent();S?S.attr(p):w.setTextContent(new jo(p))}else b&&w.setTextContent(new jo(p));if(w){var C=e.clipPath;if(C){var M=C.type,k=void 0,O=!1;if(v){var A=w.getClipPath();k=(O=!A||VP(A).type!==M)?HP(M):A}else b&&(O=!0,k=HP(M));w.setClipPath(k),iD(k,C,t,{isInit:O}),gD(k,C.keyframeAnimation,t)}var I=VP(w);w.setTextConfig(f),I.option=e,function(t,e,i){var n=No(t).eventData;t.silent||t.ignore||n||(n=No(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});n&&(n.info=i.info)}(w,t,e),$d({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),gD(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var i=t.option.elements,n=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),l=["x","y"],u=0;u<i.length;u++){if((g=null!=(f=an((p=i[u]).id,null))?r.get(f):null)&&g.isGroup){var c=(m=g.parent)===n,h=VP(g),d=VP(m);h.width=Di(h.option.width,c?o:d.width)||0,h.height=Di(h.option.height,c?a:d.height)||0}}for(u=i.length-1;u>=0;u--){var p,f,g;if(g=null!=(f=an((p=i[u]).id,null))?r.get(f):null){var m=g.parent,y=(d=VP(m),{}),v=rl(g,p,m===n?{width:o,height:a}:{width:d.width,height:d.height},null,{hv:p.hv,boundingMode:p.bounding},y);if(!VP(g).isNew&&v){for(var b=p.transition,x={},_=0;_<l.length;_++){var w=l[_],S=y[w];b&&(oD(b)||s.r(b,w)>=0)?x[w]=S:g[w]=S}Ta(g,x,t,0)}else g.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(i){GP(i,VP(i).option,e,t._lastGraphicModel)})),this._elMap=s.f()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qc);function HP(t){var e=new(s.q(BP,t)?BP[t]:Sd(t))({});return VP(e).type=t,e}function $P(t,e,i,n){var r=HP(i);return e.add(r),n.set(t,r),VP(r).id=t,VP(r).isNew=!0,r}function GP(t,e,i,n){t&&t.parent&&("group"===t.type&&t.traverse((function(t){GP(t,e,i,n)})),rD(t,e,n),i.removeKey(VP(t).id))}function WP(t,e,i,n){t.isGroup||s.k([["cursor",ir.prototype.cursor],["zlevel",n||0],["z",i||0],["z2",0]],(function(i){var n=i[0];s.q(e,n)?t[n]=s.P(e[n],i[1]):null==t[n]&&(t[n]=i[1])})),s.k(s.F(e),(function(i){if(0===i.indexOf("on")){var n=e[i];t[i]=s.w(n)?n:null}})),s.q(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var UP=["x","y","radius","angle","single"],YP=["cartesian2d","polar","singleAxis"];function qP(t){return t+"Axis"}function XP(t,e){var i,n=Object(s.f)(),r=[],o=Object(s.f)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||l(t)}));do{i=!1,t.eachComponent("dataZoom",a)}while(i);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,i){var r=n.get(t);r&&r[i]&&(e=!0)})),e}(t)&&(l(t),i=!0)}function l(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(n.get(t)||n.set(t,[]))[e]=!0}))}return r}function ZP(t){var e=t.ecModel,i={infoList:[],infoMap:Object(s.f)()};return t.eachTargetAxis((function(t,n){var r=e.getComponent(qP(t),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=i.infoMap.get(a);s||(s={model:o,axisModels:[]},i.infoList.push(s),i.infoMap.set(a,s)),s.axisModels.push(r)}}})),i}var KP=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function QP(t){var e={};return Object(s.k)(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}var JP=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return o(e,t),e.prototype.init=function(t,e,i){var n=QP(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var e=QP(t);Object(s.I)(this.option,t,!0),Object(s.I)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;Object(s.k)([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(s.f)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(s.k)(UP,(function(i){var n=this.getReferringComponents(qP(i),gn);if(n.specified){e=!0;var r=new KP;Object(s.k)(n.models,(function(t){r.add(t.componentIndex)})),t.set(i,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var i=this.ecModel,n=!0;if(n){var r="vertical"===e?"y":"x";o(i.findComponents({mainType:r+"Axis"}),r)}n&&o(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,i){var r=e[0];if(r){var o=new KP;if(o.add(r.componentIndex),t.set(i,o),n=!1,"x"===i||"y"===i){var a=r.getReferringComponents("grid",fn).models[0];a&&Object(s.k)(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",fn).models[0]&&o.add(t.componentIndex)}))}}}n&&Object(s.k)(UP,(function(e){if(n){var r=i.findComponents({mainType:qP(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new KP;o.add(r[0].componentIndex),t.set(e,o),n=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,i=this.get("rangeMode");Object(s.k)([["start","startValue"],["end","endValue"]],(function(n,r){var o=null!=t[n[0]],a=null!=t[n[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":i?e[r]=i[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,i){null==t&&(t=this.ecModel.getComponent(qP(e),i))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(i,n){Object(s.k)(i.indexList,(function(i){t.call(e,n,i)}))}))},e.prototype.getAxisProxy=function(t,e){var i=this.getAxisModel(t,e);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[e])return this.ecModel.getComponent(qP(t),e)},e.prototype.setRawRange=function(t){var e=this.option,i=this.settledOption;Object(s.k)([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(s.k)(["start","startValue","end","endValue"],(function(i){e[i]=t[i]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var r=i[n],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(hl),tj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.select",e}(JP),ej=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},e.type="dataZoom",e}(qc),ij=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.select",e}(ej),nj=s.k,rj=Pi;var oj=function(){function t(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return Object(s.r)(YP,e)>=0}(e)){var i=qP(this._dimName),n=e.getReferringComponents(i,fn).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return s.d(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,i=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];nj(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=n.parse(Ti(c,o,i))):(e=!0,c=Ti(h=null==h?i[u]:n.parse(h),i,o)),s[u]=null==h||isNaN(h)?i[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),rj(s),rj(a);var l=this._minMaxSpan;function u(t,e,i,r,o){var a=o?"Span":"ValueSpan";CO(0,t,i,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Ti(t[s],i,r,!0),o&&(e[s]=n.parse(e[s]))}return e?u(s,a,i,o,!1):u(a,s,o,i,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,i){var n=[1/0,-1/0];nj(i,(function(t){!function(t,e,i){e&&s.k(y_(e,i),(function(i){var n=e.getApproximateExtent(i);n[0]<t[0]&&(t[0]=n[0]),n[1]>t[1]&&(t[1]=n[1])}))}(n,t.getData(),e)}));var r=t.getAxisModel(),o=l_(r.axis.scale,r,n).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&nj(n,(function(t){var e=t.getData(),n=e.mapDimensionsAll(i);if(n.length){if("weakFilter"===r){var a=e.getStore(),l=s.H(n,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,i,r,s=0;s<n.length;s++){var u=a.get(l[s],t),c=!isNaN(u),h=u<o[0],d=u>o[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(i=!0)}return r&&e&&i}))}else nj(n,(function(i){if("empty"===r)t.setData(e=e.map(i,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var n={};n[i]=o,e.selectRange(n)}}));nj(n,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;nj(["min","max"],(function(n){var r=e.get(n+"Span"),o=e.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ti(i[0]+o,i,[0,100],!0):null!=r&&(o=Ti(r,[0,100],i,!0)-i[0]),t[n+"Span"]=r,t[n+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Ni(i,[0,500]);n=Math.min(n,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+i[0].toFixed(n)),100!==e[1]&&r.setDeterminedMinMax("max",+i[1].toFixed(n)),r.freeze()}},t}(),aj={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(i){i.eachTargetAxis((function(n,r){var o=t.getComponent(qP(n),r);e(n,r,o,i)}))}))}e((function(t,e,i,n){i.__dzAxisProxy=null}));var i=[];e((function(e,n,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new oj(e,n,o,t),i.push(r.__dzAxisProxy))}));var n=Object(s.f)();return Object(s.k)(i,(function(t){Object(s.k)(t.getTargetSeriesModels(),(function(t){n.set(t.uid,t)}))})),n},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,i){t.getAxisProxy(e,i).reset(t)})),t.eachTargetAxis((function(i,n){t.getAxisProxy(i,n).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}}))}};var sj=!1;function lj(t){sj||(sj=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,aj),function(t){t.registerAction("dataZoom",(function(t,e){var i=XP(e,t);Object(s.k)(i,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function uj(t){t.registerComponentModel(tj),t.registerComponentView(ij),lj(t)}var cj=function(){},hj={};function dj(t,e){hj[t]=e}function pj(t){return hj[t]}var fj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;s.k(this.option.feature,(function(t,i){var n=pj(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),s.I(t,n.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(hl);function gj(t,e){var i=Ws(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new vo({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}var mj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i,n){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),l=t.get("feature")||{},u=this._features||(this._features={}),c=[];s.k(l,(function(t,e){c.push(e)})),new By(this._featureNames||[],c).add(h).update(h).remove(s.h(h,null)).execute(),this._featureNames=c,function(t,e,i){var n=e.getBoxLayoutParams(),r=e.get("padding"),o={width:i.getWidth(),height:i.getHeight()},a=nl(n,o,r);il(e.get("orient"),t,e.get("itemGap"),a.width,a.height),rl(t,n,o,r)}(r,t,i),r.add(gj(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,n=t.ensureState("emphasis"),a=n.textConfig||(n.textConfig={}),l=t.getTextContent(),u=l&&l.ensureState("emphasis");if(u&&!s.w(u)&&e){var c=u.style||(u.style={}),h=li(e,jo.makeFont(c)),d=t.x+r.x,p=!1;t.y+r.y+o+h.height>i.getHeight()&&(a.position="top",p=!0);var f=p?-5-h.height:o+10;d+h.width/2>i.getWidth()?(a.position=["100%",f],c.align="right"):d-h.width/2<0&&(a.position=[0,f],c.align="left")}}))}function h(h,d){var p,f=c[h],g=c[d],m=l[f],y=new hs(m,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===f&&(m.title=n.newTitle),f&&!g){if(function(t){return 0===t.indexOf("my")}(f))p={onclick:y.option.onclick,featureName:f};else{var v=pj(f);if(!v)return;p=new v}u[f]=p}else if(!(p=u[g]))return;p.uid=ps("toolbox-feature"),p.model=y,p.ecModel=e,p.api=i;var b=p instanceof cj;f||!g?!y.get("show")||b&&p.unusable?b&&p.remove&&p.remove(e,i):(!function(n,l,u){var c,h,d=n.getModel("iconStyle"),p=n.getModel(["emphasis","iconStyle"]),f=l instanceof cj&&l.getIcons?l.getIcons():n.get("icon"),g=n.get("title")||{};s.C(f)?(c={})[u]=f:c=f;s.C(g)?(h={})[u]=g:h=g;var m=n.iconPaths={};s.k(c,(function(u,c){var f=Bd(u,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle()),f.ensureState("emphasis").style=p.getItemStyle();var g=new jo({style:{text:h[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:qa({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},e)},ignore:!0});f.setTextContent(g),$d({el:f,componentModel:t,itemName:c,formatterParamsExtra:{title:h[c]}}),f.__title=h[c],f.on("mouseover",(function(){var e=p.getItemStyle(),n=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";g.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||n}),g.ignore=!t.get("showTitle"),i.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==n.get(["iconStatus",c])&&i.leaveEmphasis(this),g.hide()})),("emphasis"===n.get(["iconStatus",c])?ra:oa)(f),r.add(f),f.on("click",s.c(l.onclick,l,e,i,c)),m[c]=f}))}(y,p,f),y.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&("emphasis"===e?ra:oa)(n[t])},p instanceof cj&&p.render&&p.render(y,e,i,n)):b&&p.dispose&&p.dispose(e,i)}},e.prototype.updateView=function(t,e,i,n){s.k(this._features,(function(t){t instanceof cj&&t.updateView&&t.updateView(t.model,e,i,n)}))},e.prototype.remove=function(t,e){s.k(this._features,(function(i){i instanceof cj&&i.remove&&i.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){s.k(this._features,(function(i){i instanceof cj&&i.dispose&&i.dispose(t,e)}))},e.type="toolbox",e}(qc),yj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":i.get("type",!0)||"png",s=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=a.a.browser;if("function"!=typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||r){var u=s.split(","),c=u[0].indexOf("base64")>-1,h=r?decodeURIComponent(u[1]):u[1];c&&(h=window.atob(h));var d=n+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,f=new Uint8Array(p);p--;)f[p]=h.charCodeAt(p);var g=new Blob([f]);window.navigator.msSaveOrOpenBlob(g,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var y=m.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(h),v.close(),y.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var b=i.get("lang"),x='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=n}else{var w=document.createElement("a");w.download=n+"."+o,w.target="_blank",w.href=s;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(cj),vj=[["line","bar"],["stack"]],bj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return s.k(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,i){var n=this.model,r=n.get(["seriesIndex",i]);if(xj[i]){var o,a={series:[]};s.k(vj,(function(t){s.r(t,i)>=0&&s.k(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=xj[i](e,r,t,n);o&&(s.i(o,t.option),a.series.push(o));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim+"Axis",h=t.getReferringComponents(c,fn).models[0].componentIndex;a[c]=a[c]||[];for(var d=0;d<=h;d++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===i}}}));var l=i;"stack"===i&&(o=s.I({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",i])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(cj),xj={line:function(t,e,i,n){if("bar"===t)return s.I({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,i,n){if("line"===t)return s.I({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,i,n){var r="__ec_magicType_stack__"===i.get("stack");if("line"===t||"bar"===t)return n.setIconStatus("stack",r?"normal":"emphasis"),s.I({id:e,stack:r?"":"__ec_magicType_stack__"},n.get(["option","stack"])||{},!0)}};Lg({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var _j=bj,wj=new Array(60).join("-");function Sj(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Cj=new RegExp("[\t]+","g");function Mj(t,e){var i=t.split(new RegExp("\n*"+wj+"\n*","g")),n={series:[]};return s.k(i,(function(t,i){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),i=Sj(e.shift()).split(Cj),n=[],r=s.H(i,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=Sj(e[o]).split(Cj);n.push(a.shift());for(var l=0;l<a.length;l++)r[l]&&(r[l].data[o]=a[l])}return{series:r,categories:n}}(t),o=e[i],a=o.axisDim+"Axis";o&&(n[a]=n[a]||[],n[a][o.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))}else{r=function(t){for(var e=t.split(/\n+/g),i=Sj(e.shift()),n=[],r=0;r<e.length;r++){var o=Sj(e[r]);if(o){var a=o.split(Cj),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),n[r]={name:s,value:[]},l=n[r].value):l=n[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?n[r].value=l[0]:n[r]=l[0])}}return{name:i,data:n}}(t);n.series.push(r)}})),n}var kj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var i=e.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=n.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=n.get("lang")||[];o.innerHTML=a[0]||n.get("title"),o.style.cssText="margin:10px 20px",o.style.color=n.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var c=n.get("optionToContent"),h=n.get("contentToOption"),d=function(t){var e,i,n,r=function(t){var e={},i=[],n=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:n}}(t);return{value:s.n([(i=r.seriesGroupByCategoryAxis,n=[],s.k(i,(function(t,e){var i=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(s.H(t.series,(function(t){return t.name}))),a=[i.model.getCategories()];s.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var l=[o.join("\t")],u=0;u<a[0].length;u++){for(var c=[],h=0;h<a.length;h++)c.push(a[h][u]);l.push(c.join("\t"))}n.push(l.join("\n"))})),n.join("\n\n"+wj+"\n\n")),(e=r.other,s.H(e,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)n[a]=arguments[a];i.push((o?o+"\t":"")+n.join("\t"))})),i.join("\n")})).join("\n\n"+wj+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+wj+"\n\n"),meta:r.meta}}(t);if(s.w(c)){var p=c(e.getOption());s.C(p)?l.innerHTML=p:s.v(p)&&l.appendChild(p)}else{u.readOnly=n.get("readOnly");var f=u.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=n.get("textColor"),f.borderColor=n.get("textareaBorderColor"),f.backgroundColor=n.get("textareaColor"),u.value=d.value,l.appendChild(u)}var g=d.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var x=this;function _(){i.removeChild(r),x._dom=null}U(v,"click",_),U(b,"click",(function(){if(null==h&&null!=c||null!=h&&null==c)_();else{var t;try{t=s.w(h)?h(l,e.getOption()):Mj(u.value,g)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),v.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=v.style.cssText=y,!n.get("readOnly")&&m.appendChild(b),m.appendChild(v),r.appendChild(o),r.appendChild(l),r.appendChild(m),l.style.height=i.clientHeight-80+"px",i.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(cj);function Oj(t,e){return s.H(t,(function(t,i){var n=e&&e[i];if(s.A(n)&&!s.t(n)){s.A(t)&&!s.t(t)||(t={value:t});var r=null!=n.name&&null==t.name;return t=s.i(t,n),r&&delete t.name,t}return t}))}Lg({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var i=[];s.k(t.newOption.series,(function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:Oj(t.data,r)})}else i.push(s.m({type:"scatter"},t))})),e.mergeOption(s.i({series:i},t.newOption))}));var Aj=kj,Ij=s.k,Tj=cn();function Dj(t){var e=Tj(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Lj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){!function(t){Tj(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(cj);Lg({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Pj=Lj,jj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Nj=function(){function t(t,e,i){var n=this;this._targetInfoList=[];var r=Rj(e,t);Object(s.k)(zj,(function(t,e){(!i||!i.include||Object(s.r)(i.include,e)>=0)&&t(r,n._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=Fj[t.brushType](0,i,e);t.__rangeOffset={offset:$j[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,i){Object(s.k)(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&Object(s.k)(n.coordSyses,(function(n){var r=Fj[t.brushType](1,n,t.range,!0);i(t,r.values,n,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(s.k)(t,(function(t){var i,n,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=Fj[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?$j[t.brushType](l.values,u.offset,(i=l.xyMinMax,n=u.xyMinMax,r=Wj(i),o=Wj(n),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(s.H)(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:kA(n),isTargetByCursor:AA(n,t,i.coordSysModel),getLinearBrushOtherExtent:OA(n)}}))},t.prototype.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&Object(s.r)(n.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=Rj(e,t),r=0;r<i.length;r++){var o=i[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<Bj.length;s++)if(Bj[s](n,o))return o}return!0},t}();function Ej(t){return t[0]>t[1]&&t.reverse(),t}function Rj(t,e){return dn(t,e,{includeMainTypes:jj})}var zj={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,r=t.gridModels,o=Object(s.f)(),a={},l={};(i||n||r)&&(Object(s.k)(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(s.k)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),l[e.id]=!0})),Object(s.k)(r,(function(t){o.set(t.id,t),a[t.id]=!0,l[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(s.k)(r.getCartesians(),(function(t,e){(Object(s.r)(i,t.getAxis("x").model)>=0||Object(s.r)(n,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:Vj.grid,xAxisDeclared:a[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(s.k)(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:Vj.geo})}))}},Bj=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,r=t.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],Vj={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Ld(t)),e}},Fj={lineX:Object(s.h)(Hj,0),lineY:Object(s.h)(Hj,1),rect:function(t,e,i,n){var r=t?e.pointToData([i[0][0],i[1][0]],n):e.dataToPoint([i[0][0],i[1][0]],n),o=t?e.pointToData([i[0][1],i[1][1]],n):e.dataToPoint([i[0][1],i[1][1]],n),a=[Ej([r[0],o[0]]),Ej([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,i,n){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(s.H)(i,(function(i){var o=t?e.pointToData(i,n):e.dataToPoint(i,n);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function Hj(t,e,i,n){var r=i.getAxis(["x","y"][t]),o=Ej(Object(s.H)([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(n[t]),!0):r.toGlobalCoord(r.dataToCoord(n[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var $j={lineX:Object(s.h)(Gj,0),lineY:Object(s.h)(Gj,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return Object(s.H)(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function Gj(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function Wj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Uj,Yj,qj=Nj,Xj=s.k,Zj="\0_ec_\0"+"toolbox-dataZoom_",Kj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i,n){this._brushController||(this._brushController=new MA(i.getZr()),this._brushController.on("brush",s.c(this._onBrush,this)).mount()),function(t,e,i,n,r){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive);i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new qj(Jj(t),e,{include:["grid"]}).makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));i._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,n,i),function(t,e){t.setIconStatus("back",function(t){return Dj(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,i){Qj[i].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]),new qj(Jj(this.model),n,{include:["grid"]}).matchOutputRanges(e,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(r("x",i,e[0]),r("y",i,e[1])):r({lineX:"x",lineY:"y"}[n],i,e)}})),function(t,e){var i=Dj(t);Ij(e,(function(e,n){for(var r=i.length-1;r>=0;r--){if(i[r][n])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var a=o.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}})),i.push(e)}(n,i),this._dispatchZoomAction(i)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)})),n}(t,a,n),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=CO(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];Xj(t,(function(t,i){e.push(s.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(cj),Qj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=Dj(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return Ij(i,(function(t,i){for(var r=e.length-1;r>=0;r--)if(t=e[r][i]){n[i]=t;break}})),n}(this.ecModel))}};function Jj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}Uj="dataZoom",Yj=function(t){var e=t.getComponent("toolbox",0),i=["feature","dataZoom"];if(e&&null!=e.get(i)){var n=e.getModel(i),r=[],o=dn(t,Jj(n));return Xj(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),Xj(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,i){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Zj+e+o};a[i]=o,r.push(a)}},Object(s.b)(null==Ml.get(Uj)&&Yj),Ml.set(Uj,Yj);var tN=Kj;var eN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(hl);function iN(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function nN(t){if(a.a.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}var rN=nN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function oN(t,e){if(!t)return e;e=Gs(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}var aN=oN(nN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),sN=oN(rN,"transform"),lN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(a.a.transform3dSupported?"will-change:transform;":"");function uN(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!a.a.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=a.a.transform3dSupported,s="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+sN+":"+s+";":[["top",0],["left",0],[rN,s]]}function cN(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),d=t.getModel("textStyle"),p=Pc(t,"html"),f=c+"px "+h+"px "+l+"px "+u;return n.push("box-shadow:"+f),e&&r&&n.push(function(t,e){var i=" "+t/2+"s cubic-bezier(0.23,1,0.32,1)",n="opacity"+i+",visibility"+i;return e||(i=" "+t+"s cubic-bezier(0.23,1,0.32,1)",n+=a.a.transformSupported?","+sN+i:",left"+i+",top"+i),aN+":"+n}(r,i)),o&&n.push("background-color:"+o),Object(s.k)(["width","color","radius"],(function(e){var i="border-"+e,r=Gs(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var r=Object(s.P)(t.get("lineHeight"),Math.round(3*i/2));i&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+l+"px "+u+"px "+a+"px "+o),Object(s.k)(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(d)),null!=p&&n.push("padding:"+Ws(p).join("px ")+"px"),n.join(";")+";"}function hN(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&function(t,e,i,n,r){j(P,e,n,r,!0)&&j(t,i,P[0],P[1])}(t,a,i,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dN=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,a.a.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),r=e.appendTo,o=r&&(Object(s.C)(r)?document.querySelector(r):Object(s.v)(r)?r:Object(s.w)(r)&&r(t.getDom()));hN(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=n.handler;W(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=lN+cN(t,!this._firstShow,this._longHide)+uN(r[0],r[1],!0)+"border-color:"+Zs(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null!=t){var a="";if(Object(s.C)(r)&&"item"===i.get("trigger")&&!iN(i)&&(a=function(t,e,i){if(!Object(s.C)(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=Zs(e);var o,a,l=o="left"===(o=i)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(r),6),c="",h=sN+":";Object(s.r)(["left","right"],l)>-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===l?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===l?225:45)+"deg)");var d=a*Math.PI/180,p=u+r,f=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),g=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",(c+=";"+l+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100+"px")+";"+h+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"].join("")+'"></div>'}(i,n,r)),Object(s.C)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(s.t)(t)||(t=[t]);for(var l=0;l<t.length;l++)Object(s.v)(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(hN(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style,r=uN(i[0],i[1]);Object(s.k)(r,(function(t){n[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",a.a.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(s.c)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();function pN(t){return Math.max(0,t)}function fN(t){var e=pN(t.shadowBlur||0),i=pN(t.shadowOffsetX||0),n=pN(t.shadowOffsetY||0);return{left:pN(e-i),right:pN(e+i),top:pN(e-n),bottom:pN(e+n)}}function gN(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var mN=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),gN(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n,r){var o=this;s.A(t)&&Nl(""),this.el&&this._zr.remove(this.el);var a=i.getModel("textStyle");this.el=new jo({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Pc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),s.k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=i.get(t)})),s.k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var l=this;this.el.on("mouseover",(function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0})),this.el.on("mouseout",(function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=fN(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;gN(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=pN(r.borderWidth||0),a=fN(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.c(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),yN=new vo({shape:{x:-1,y:-1,width:2,height:2}});function vN(t,e,i){var n,r=e.ecModel;i?(n=new hs(i,r,r),n=new hs(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof hs&&(a=a.get("tooltip",!0)),Object(s.C)(a)&&(a={formatter:a}),a&&(n=new hs(a,n,r)))}return n}function bN(t,e){return t.dispatchAction||Object(s.c)(e.dispatchAction,e)}function xN(t){return"center"===t||"middle"===t}var _N=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){if(!a.a.node&&e.getDom()){var i,n=t.getComponent("tooltip"),r=this._renderMode="auto"===(i=n.get("renderMode"))?a.a.domSupported?"html":"richText":i||"html";this._tooltipContent="richText"===r?new mN(e):new dN(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,i){if(!a.a.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?rp(this,"_updatePosition",50,"fixRate"):op(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");dL("itemTooltip",this._api,Object(s.c)((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!a.a.node&&i.getDom()){var r=bN(n,i);this._ticket="";var o=n.dataByCoordSys,s=function(t,e,i){var n=pn(t).queryOptionMap,r=n.keys()[0];if(!r||"series"===r)return;var o,a=mn(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(i.getViewOfComponentModel(a).group.traverse((function(e){var i=No(e).tooltipConfig;if(i&&i.name===t.name)return o=e,!0})),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(n,e,i);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var u=yN;u.x=n.x,u.y=n.y,u.update(),No(u).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:u},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var c=yL(n,e),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(bN(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===vN([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}},e.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){var r,o;if("legend"===No(i).ssrType)return;this._lastDataByCoordSys=null,Yp(i,(function(t){return null!=No(t).dataIndex?(r=t,!0):null!=No(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Object(s.c)(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=vN([e.tooltipOption],n),a=this._renderMode,l=[],u=Cc("section",{blocks:[],noHeader:!0}),c=[],h=new jc;Object(s.k)(t,(function(t){Object(s.k)(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=QD(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),d=Cc("section",{header:o,noHeader:!Object(s.T)(o),sortBlocks:!0,blocks:[]});u.blocks.push(d),Object(s.k)(t.seriesDataIndices,(function(u){var p=i.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,g=p.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=f_(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Zs(g.color),a);var m=Fu(p.formatTooltip(f,!0,null)),y=m.frag;if(y){var v=vN([p],n).get("valueFormatter");d.blocks.push(v?Object(s.m)({valueFormatter:v},y):y)}m.text&&c.push(m.text),l.push(g)}}))}}))})),u.blocks.reverse(),c.reverse();var d=e.position,p=o.get("order"),f=Ic(u,h,a,p,i.get("useUTC"),o.get("textStyle"));f&&c.unshift(f);var g="richText"===a?"\n\n":"<br/>",m=c.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=No(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),l=r.dataModel||a,u=r.dataIndex,c=r.dataType,h=l.getData(c),d=this._renderMode,p=t.positionDefault,f=vN([h.getItemModel(u),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var m=l.getDataParams(u,c),y=new jc;m.marker=y.makeTooltipMarker("item",Zs(m.color),d);var v=Fu(l.formatTooltip(u,!1,c)),b=f.get("order"),x=f.get("valueFormatter"),_=v.frag,w=_?Ic(x?Object(s.m)({valueFormatter:x},_):_,y,d,b,n.get("useUTC"),f.get("textStyle")):v.text,S="item_"+l.name+"_"+u;this._showOrMove(f,(function(){this._showTooltipContent(f,w,m,S,t.offsetX,t.offsetY,t.position,t.target,y)})),i({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n="html"===this._renderMode,r=No(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(Object(s.C)(o)){o={content:o,formatter:o},a=!0}a&&n&&o.content&&((o=Object(s.d)(o)).content=z(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var c=t.positionDefault,h=vN(l,this._tooltipModel,c?{position:c}:null),d=h.get("content"),p=Math.random()+"",f=new jc;this._showOrMove(h,(function(){var i=Object(s.d)(h.get("formatterParams")||{});this._showTooltipContent(h,d,i,p,t.offsetX,t.offsetY,t.position,e,f)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")).color;if(h)if(Object(s.C)(h)){var f=t.ecModel.get("useUTC"),g=Object(s.t)(i)?i[0]:i;d=h,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(d=ks(g.axisValue,d,f)),d=Xs(d,i,!0)}else if(Object(s.w)(h)){var m=Object(s.c)((function(e,n){e===this._ticket&&(c.setContent(n,u,t,p,a),this._updatePosition(t,a,r,o,c,i,l))}),this);this._ticket=n,d=h(i,n,m)}else d=h;c.setContent(d,u,t,p,a),c.show(t,p),this._updatePosition(t,a,r,o,c,i,l)}},e.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||Object(s.t)(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:Object(s.t)(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),d=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Object(s.w)(e)&&(e=e([i,n],o,r.el,p,{viewSize:[l,u],contentSize:c.slice()})),Object(s.t)(e))i=Di(e[0],l),n=Di(e[1],u);else if(Object(s.A)(e)){var f=e;f.width=c[0],f.height=c[1];var g=nl(f,{width:l,height:u});i=g.x,n=g.y,h=null,d=null}else if(Object(s.C)(e)&&a){var m=function(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,c,t.get("borderWidth"));i=m[0],n=m[1]}else{m=function(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>n?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(i,n,r,l,u,h?null:20,d?null:20);i=m[0],n=m[1]}if(h&&(i-=xN(h)?c[0]/2:"right"===h?c[0]:0),d&&(n-=xN(d)?c[1]/2:"bottom"===d?c[1]:0),iN(t)){m=function(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,r,l,u);i=m[0],n=m[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&Object(s.k)(i,(function(i,o){var a=i.dataByAxis||[],l=(t[o]||{}).dataByAxis||[];(r=r&&a.length===l.length)&&Object(s.k)(a,(function(t,i){var o=l[i]||{},a=t.seriesDataIndices||[],u=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===u.length)&&Object(s.k)(a,(function(t,e){var i=u[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),n&&Object(s.k)(t.seriesDataIndices,(function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!a.a.node&&e.getDom()&&(op(this,"_updatePosition"),this._tooltipContent.dispose(),gL("itemTooltip",e))},e.type="tooltip",e}(qc);var wN=["rect","polygon","keep","clear"];function SN(t,e){var i=Ki(t?t.brush:[]);if(i.length){var n=[];s.k(i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var r=t&&t.toolbox;s.t(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,l=r.feature||(r.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,n),o=c,a={},s.k(o,(function(t){a[t]=1})),o.length=0,s.k(a,(function(t,e){o.push(e)})),e&&!c.length&&c.push.apply(c,wN)}}var CN=s.k;function MN(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function kN(t,e,i){var n={};return CN(e,(function(e){var r,o=n[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);CN(t[e],(function(t,n){if(TM.isValidType(n)){var r={type:n,visual:t};i&&i(r,e),o[n]=new TM(r),"opacity"===n&&((r=s.d(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new TM(r))}}))})),n}function ON(t,e,i){var n;s.k(i,(function(t){e.hasOwnProperty(t)&&MN(e[t])&&(n=!0)})),n&&s.k(i,(function(i){e.hasOwnProperty(i)&&MN(e[i])?t[i]=s.d(e[i]):delete t[i]}))}var AN={lineX:IN(0),lineY:IN(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&pS(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=n[0];return!!(pS(n,r,o)||pS(n,r+a,o)||pS(n,r,o+s)||pS(n,r+a,o+s)||ft.create(t).contain(l[0],l[1])||Vd(r,o,r+a,o,n)||Vd(r,o,r,o+s,n)||Vd(r+a,o,r+a,o+s,n)||Vd(r,o+s,r+a,o+s,n))||void 0}}};function IN(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var r=n.range;return TN(e[t],r)}},rect:function(n,r,o){if(n){var a=o.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]<s[0]&&s.reverse(),TN(s[0],a)||TN(s[1],a)||TN(a[0],s)||TN(a[1],s)}}}}function TN(t,e){return e[0]<=t&&t<=e[1]}var DN=["inBrush","outOfBrush"];function LN(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new qj(e.option,t)).setInputRanges(e.areas,t)}))}function PN(t,e,i){var n,r,o=[];t.eachComponent({mainType:"brush"},(function(t){i&&"takeGlobalCursor"===i.type&&t.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1})})),LN(t),t.eachComponent({mainType:"brush"},(function(e,i){var a={brushId:e.id,brushIndex:i,brushName:e.name,areas:s.d(e.areas),selected:[]};o.push(a);var l=e.option,u=l.brushLink,c=[],h=[],d=[],p=!1;i||(n=l.throttleType,r=l.throttleDelay);var f=s.H(e.areas,(function(t){var e=EN[t.brushType],i=s.i({boundingRect:e?e(t):void 0},t);return i.selectors=function(t){var e=t.brushType,i={point:function(n){return AN[e].point(n,i,t)},rect:function(n){return AN[e].rect(n,i,t)}};return i}(i),i})),g=kN(e.option,DN,(function(t){t.mappingMethod="fixed"}));function m(t){return"all"===u||!!c[t]}function y(t){return!!t.length}s.t(u)&&s.k(u,(function(t){c[t]=1})),t.eachSeries((function(i,n){var r=d[n]=[];"parallel"===i.subType?function(t,e){var i=t.coordinateSystem;p=p||i.hasAxisBrushed(),m(e)&&i.eachActiveState(t.getData(),(function(t,e){"active"===t&&(h[e]=1)}))}(i,n):function(i,n,r){if(!i.brushSelector||function(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(s.t(i)?s.r(i,e)<0:e!==i)}(e,n))return;if(s.k(f,(function(n){e.brushTargetManager.controlSeries(n,i,t)&&r.push(n),p=p||y(r)})),m(n)&&y(r)){var o=i.getData();o.each((function(t){NN(i,r,o,t)&&(h[t]=1)}))}}(i,n,r)})),t.eachSeries((function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(i);var n=d[e],r=t.getData(),o=m(e)?function(t){return h[t]?(i.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return NN(t,n,r,e)?(i.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(m(e)?p:y(n))&&function(t,e,i,n,r,o){var a,l={};function u(t){return Hp(i,a,t)}function c(t,e){Gp(i,a,t,e)}function h(t,s){a=null==o?t:s;var h=i.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=n.call(r,t),p=e[d],f=l[d],g=0,m=f.length;g<m;g++){var y=f[g];p[y]&&p[y].applyVisual(t,u,c)}}s.k(t,(function(t){var i=TM.prepareVisualTypes(e[t]);l[t]=i})),null==o?i.each(h):i.each([o],h)}(DN,g,r,o)}))})),function(t,e,i,n,r){if(!r)return;var o=t.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=jN);rp(o,"__ecBrushSelect",i,e)(t,n)}(e,n,r,o,i)}function jN(t,e){if(!t.isDisposed()){var i=t.getZr();i.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),i.__ecInBrushSelectEvent=!1}}function NN(t,e,i,n){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(n,i,a.selectors,a))return!0}}var EN={rect:function(t){return RN(t.range)},polygon:function(t){for(var e,i=t.range,n=0,r=i.length;n<r;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=i[n];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&RN(e)}};function RN(t){return new ft(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var zN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new MA(e.getZr())).on("brush",s.c(this._onBrush,this)).mount()},e.prototype.render=function(t,e,i,n){this.model=t,this._updateController(t,e,i,n)},e.prototype.updateTransform=function(t,e,i,n){LN(e),this._updateController(t,e,i,n)},e.prototype.updateVisual=function(t,e,i,n){this.updateTransform(t,e,i,n)},e.prototype.updateView=function(t,e,i,n){this._updateController(t,e,i,n)},e.prototype._updateController=function(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:s.d(i),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:s.d(i),$from:e})},e.type="brush",e}(qc);function BN(t,e){return s.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new hs(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var VN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.areas=[],i.brushOption={},i}return o(e,t),e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&ON(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:"#ddd"},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=s.H(t,(function(t){return BN(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=BN(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(hl),FN=["rect","polygon","lineX","lineY","keep","clear"],HN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,i){var n,r,o;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=n,this._brushMode=r,s.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===n)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,i){this.render(t,e,i)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return s.k(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},e.prototype.onclick=function(t,e,i){var n=this._brushType,r=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:FN.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(cj);var $N=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return o(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(hl),GN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.render=function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),l=s.P(t.get("textBaseline"),t.get("textVerticalAlign")),u=new jo({style:Ha(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),h=t.get("subtext"),d=new jo({style:Ha(o,{text:h,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);u.silent=!p&&!g,d.silent=!f&&!g,p&&u.on("click",(function(){Ks(p,"_"+t.get("target"))})),f&&d.on("click",(function(){Ks(f,"_"+t.get("subtarget"))})),No(u).eventData=No(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(u),h&&n.add(d);var m=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var v=nl(y,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),l||("center"===(l=t.get("top")||t.get("bottom"))&&(l="middle"),"bottom"===l?v.y+=v.height:"middle"===l&&(v.y+=v.height/2),l=l||"top"),n.x=v.x,n.y=v.y,n.markRedraw();var b={align:a,verticalAlign:l};u.setStyle(b),d.setStyle(b),m=n.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new vo({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(qc);var WN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode="box",i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,i=e.data||[],n=e.axisType,r=this._names=[];"category"===n?(t=[],Object(s.k)(i,(function(e,i){var n,o=an(tn(e),"");Object(s.A)(e)?(n=Object(s.d)(e)).value=i:n=i,t.push(n),r.push(o)}))):t=i;var o={category:"ordinal",time:"time",value:"number"}[n]||"number";(this._data=new uv([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(hl),UN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="timeline.slider",e.defaultOption=fs(WN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(WN);Object(s.K)(UN,Vu.prototype);var YN=UN,qN=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="timeline",e}(qc),XN=function(t){function e(e,i,n,r){var o=t.call(this,e,i,n)||this;return o.type=r||"value",o}return o(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(j_),ZN=Math.PI,KN=cn();function QN(t,e,i,n,r,o){var a=e.get("color");r?(r.setColor(a),i.add(r),o&&o.onUpdate(r)):((r=sf(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),i.add(r),o&&o.onCreate(r));var l=e.getItemStyle(["color"]);r.setStyle(l),n=Object(s.I)({rectHover:!0,z2:100},n,!0);var u=lf(t.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=uf(t.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var h=t.get("symbolRotate");return n.rotation=(h||0)*Math.PI/180||0,r.attr(n),r.updateTransform(),r}function JN(t,e,i,n,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=n.dataToCoord(r.getData().get("value",i));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var tE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return Cc("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Object(s.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,r,a,t)}),this),this._renderAxisLabel(n,o,a,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var i,n,r,o,a=t.get(["label","position"]),l=t.get("orient"),u=function(t,e){return nl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),c={horizontal:"center",vertical:(i=null==a||"auto"===a?"horizontal"===l?u.y+u.height/2<e.getHeight()/2?"-":"+":u.x+u.width/2<e.getWidth()/2?"+":"-":Object(s.C)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[l][a]:a)>=0||"+"===i?"left":"right"},h={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:ZN/2},p="vertical"===l?u.height:u.width,f=t.getModel("controlStyle"),g=f.get("show",!0),m=g?f.get("itemSize"):0,y=g?f.get("itemGap"):0,v=m+y,b=t.get(["label","rotate"])||0;b=b*ZN/180;var x=f.get("position",!0),_=g&&f.get("showPlayBtn",!0),w=g&&f.get("showPrevBtn",!0),S=g&&f.get("showNextBtn",!0),C=0,M=p;"left"===x||"bottom"===x?(_&&(n=[0,0],C+=v),w&&(r=[C,0],C+=v),S&&(o=[M-m,0],M-=v)):(_&&(n=[M-m,0],M-=v),w&&(r=[0,0],C+=v),S&&(o=[M-m,0],M-=v));var k=[C,M];return t.get("inverse")&&k.reverse(),{viewRect:u,mainLength:p,orient:l,rotation:d[l],labelRotation:b,labelPosOpt:i,labelAlign:t.get(["label","align"])||c[l],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[l],playPosition:n,prevBtnPosition:r,nextBtnPosition:o,axisExtent:k,controlSize:m,controlGap:y}},e.prototype._position=function(t,e){var i=this._mainGroup,n=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,l=r.y+r.height;et(o,o,[-a,-l]),it(o,o,-ZN/2),et(o,o,[a,l]),(r=r.clone()).applyTransform(o)}var u=y(r),c=y(i.getBoundingRect()),h=y(n.getBoundingRect()),d=[i.x,i.y],p=[n.x,n.y];p[0]=d[0]=u[0][0];var f,g=t.labelPosOpt;null==g||Object(s.C)(g)?(v(d,c,u,1,f="+"===g?0:1),v(p,h,u,1,1-f)):(v(d,c,u,1,f=g>=0?0:1),p[1]=d[1]+g);function m(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}i.setPosition(d),n.setPosition(p),i.rotation=n.rotation=t.rotation,m(i),m(n)},e.prototype._createAxis=function(t,e){var i=e.getData(),n=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Nx({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new zx}}(e,n);r.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new XN("value",r,t.axisExtent,n);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Ci;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,n){var r=i.getExtent();if(n.get(["lineStyle","show"])){var o=new Zh({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(s.m)({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Zh({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(s.i)({lineCap:"round",lineWidth:o.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,i,n){var r=this,o=n.getData(),a=i.scale.getTicks();this._tickSymbols=[],Object(s.k)(a,(function(t){var a=i.dataToCoord(t.value),l=o.getItemModel(t.value),u=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(s.c)(r._changeTimeline,r,t.value)},p=QN(l,u,e,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),ya(p);var f=No(p);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=n):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,i,n){var r=this;if(i.getLabelModel().get("show")){var o=n.getData(),a=i.getViewLabels();this._tickLabels=[],Object(s.k)(a,(function(n){var a=n.tickValue,l=o.getItemModel(a),u=l.getModel("label"),c=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=i.dataToCoord(n.tickValue),p=new jo({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(s.c)(r._changeTimeline,r,a),silent:!1,style:Ha(u,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=Ha(c),p.ensureState("progress").style=Ha(h),e.add(p),ya(p),KN(p).dataIndex=a,r._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,i,n){var r=t.controlSize,o=t.rotation,a=n.getModel("controlStyle").getItemStyle(),l=n.getModel(["emphasis","controlStyle"]).getItemStyle(),u=n.getPlayState(),c=n.get("inverse",!0);function h(t,i,u,c){if(t){var h=di(Object(s.P)(n.get(["controlStyle",i+"BtnSize"]),r),r),d=function(t,e,i,n){var r=n.style,o=Bd(t.get(["controlStyle",e]),n||{},new ft(i[0],i[1],i[2],i[3]));r&&o.setStyle(r);return o}(n,i+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});d.ensureState("emphasis").style=l,e.add(d),ya(d)}}h(t.nextBtnPosition,"next",Object(s.c)(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(s.c)(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",Object(s.c)(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,i,n){var r=n.getData(),o=n.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(t){t.draggable=!0,t.drift=Object(s.c)(l._handlePointerDrag,l),t.ondragend=Object(s.c)(l._handlePointerDragend,l),JN(t,l._progressLine,o,i,n,!0)},onUpdate:function(t){JN(t,l._progressLine,o,i,n)}};this._currentPointer=QN(a,a,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],n=Pi(this._axis.getExtent().slice());i>n[1]&&(i=n[1]),i<n[0]&&(i=n[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=i,r.dirty());var o=this._findNearestTick(i),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return Pd(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],(function(i,o){var a=r.dataToCoord(i),s=Math.abs(a-t);s<n&&(n=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,i=this._tickLabels;if(e)for(var n=0;n<e.length;n++)e&&e[n]&&e[n].toggleState("progress",n<t);if(i)for(n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",KN(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(qN);function eE(t){var e=t&&t.timeline;s.t(e)||(e=e?[e]:[]),s.k(e,(function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};i[e]&&(t.axisType=i[e],delete t.type);if(iE(t),nE(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});nE(n,"position")||(n.position=t.controlPosition),"none"!==n.position||nE(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}s.k(t.data||[],(function(t){s.A(t)&&!s.t(t)&&(!nE(t,"value")&&nE(t,"name")&&(t.value=t.name),iE(t))}))}(t)}))}function iE(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},r=n.normal||(n.normal={}),o={normal:1,emphasis:1};s.k(n,(function(t,e){o[e]||nE(r,e)||(r[e]=t)})),i.label&&!nE(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function nE(t,e){return t.hasOwnProperty(e)}function rE(t,e){if(!t)return!1;for(var i=Object(s.t)(t)?t:[t],n=0;n<i.length;n++)if(i[n]&&i[n][e])return!0;return!1}function oE(t){Qi(t,"label",["show"])}var aE=cn(),sE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.createdBySelf=!1,i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(a.a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,i,n){var r=this.mainType;i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),o=aE(t)[r];i&&i.data?(o?o._mergeOption(i,e,!0):(n&&oE(i),s.k(i.data,(function(t){t instanceof Array?(oE(t[0]),oE(t[1])):oE(t)})),o=this.createMarkerModelFromSeries(i,this,e),s.m(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),aE(t)[r]=o):aE(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,i){var n=this.getData(),r=this.getRawValue(t),o=n.getName(t);return Cc("section",{header:this.name,blocks:[Cc("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var i=Vu.prototype.getDataParams.call(this,t,e),n=this.__hostSeries;return n&&(i.seriesId=n.id,i.seriesName=n.name,i.seriesType=n.subType),i},e.getMarkerModelFromSeries=function(t,e){return aE(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(hl);s.K(sE,Vu.prototype);var lE=sE,uE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(lE);function cE(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function hE(t,e,i,n,r,o){var a=[],s=mv(e,n)?e.getCalculationInfo("stackResultDimension"):n,l=yE(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(i,u),a[o]=e.get(s,u);var c=e.get(n,u),h=ji(e.get(n,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var dE={min:Object(s.h)(hE,"min"),max:Object(s.h)(hE,"max"),average:Object(s.h)(hE,"average"),median:Object(s.h)(hE,"median")};function pE(t,e){if(e){var i=t.getData(),n=t.coordinateSystem,r=n&&n.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(s.t)(e.coord)&&Object(s.t)(r)){var o=fE(e,i,n,t);if((e=Object(s.d)(e)).type&&dE[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(s.r)(r,o.baseAxis.dim),l=Object(s.r)(r,o.valueAxis.dim),u=dE[e.type](i,o.baseDataDim,o.valueDataDim,a,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(s.t)(r))for(var c=e.coord,h=0;h<2;h++)dE[c[h]]&&(c[h]=yE(i,i.mapDimension(r[h]),c[h]));else e.coord=[];return e}}function fE(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(function(t,e){var i=t.getData().getDimensionInfo(e);return i&&i.coordDim}(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function gE(t,e){return!(t&&t.containData&&e.coord&&!cE(e))||t.containData(e.coord)}function mE(t,e){return t?function(t,i,n,r){return Wu(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,i,n,r){return Wu(t.value,e[r])}}function yE(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,r++)})),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}var vE=cn(),bE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.init=function(){this.markerGroupMap=Object(s.f)()},e.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each((function(t){vE(t).keep=!1})),e.eachSeries((function(t){var r=lE.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)})),r.each((function(t){!vE(t).keep&&n.group.remove(t.group)}))},e.prototype.markKeep=function(t){vE(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var i=this;Object(s.k)(t,(function(t){var n=lE.getMarkerModelFromSeries(t,i.type);n&&n.getData().eachItemGraphicEl((function(t){t&&(e?aa(t):sa(t))}))}))},e.type="marker",e}(qc);function xE(t,e,i){var n=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Di(a.get("x"),i.getWidth()),l=Di(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var u=t.get(n.dimensions[0],r),c=t.get(n.dimensions[1],r);o=n.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var _E=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=lE.getMarkerModelFromSeries(t,"markPoint");e&&(xE(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Ov),c=function(t,e,i){var n;n=t?Object(s.H)(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s.m)(Object(s.m)({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new uv(n,i),o=Object(s.H)(i.get("data"),Object(s.h)(pE,e));t&&(o=Object(s.n)(o,Object(s.h)(gE,t)));var a=mE(!!t,n);return r.initData(o,null,a),r}(r,t,e);e.setData(c),xE(e.getData(),t,n),c.each((function(t){var i=c.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),l=i.getShallow("symbolOffset"),u=i.getShallow("symbolKeepAspect");if(Object(s.w)(n)||Object(s.w)(r)||Object(s.w)(o)||Object(s.w)(l)){var h=e.getRawValue(t),d=e.getDataParams(t);Object(s.w)(n)&&(n=n(h,d)),Object(s.w)(r)&&(r=r(h,d)),Object(s.w)(o)&&(o=o(h,d)),Object(s.w)(l)&&(l=l(h,d))}var p=i.getModel("itemStyle").getItemStyle(),f=$p(a,"color");p.fill||(p.fill=f),c.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:u,style:p})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){No(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(bE);var wE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(lE),SE=cn(),CE=function(t,e,i,n){var r,o=t.getData();if(Object(s.t)(n))r=n;else{var a=n.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis){var l=void 0,u=void 0;if(null!=n.yAxis||null!=n.xAxis)l=e.getAxis(null!=n.yAxis?"y":"x"),u=Object(s.O)(n.yAxis,n.xAxis);else{var c=fE(n,o,e,t);l=c.valueAxis,u=yE(o,yv(o,c.valueDataDim),a)}var h="x"===l.dim?0:1,d=1-h,p=Object(s.d)(n),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=i.get("precision");g>=0&&Object(s.z)(u)&&(u=+u.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=u,r=[p,f,{type:a,valueIndex:n.valueIndex,value:u}]}else r=[]}var m=[pE(t,r[0]),pE(t,r[1]),Object(s.m)({},r[2])];return m[2].type=m[2].type||null,Object(s.I)(m[2],m[0]),Object(s.I)(m[2],m[1]),m};function ME(t){return!isNaN(t)&&!isFinite(t)}function kE(t,e,i,n){var r=1-t,o=n.dimensions[t];return ME(e[r])&&ME(i[r])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function OE(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(kE(1,i,n,t)||kE(0,i,n,t)))return!0}return gE(t,e[0])&&gE(t,e[1])}function AE(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Di(s.get("x"),r.getWidth()),u=Di(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if(Gv(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;ME(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[i?0:1]):ME(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var IE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=lE.getMarkerModelFromSeries(t,"markLine");if(e){var n=e.getData(),r=SE(e).from,o=SE(e).to;r.each((function(e){AE(r,e,!0,t,i),AE(o,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Lk);this.group.add(u.group);var c=function(t,e,i){var n;n=t?Object(s.H)(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s.m)(Object(s.m)({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new uv(n,i),o=new uv(n,i),a=new uv([],i),l=Object(s.H)(i.get("data"),Object(s.h)(CE,e,t,i));t&&(l=Object(s.n)(l,Object(s.h)(OE,t)));var u=mE(!!t,n);return r.initData(Object(s.H)(l,(function(t){return t[0]})),null,u),o.initData(Object(s.H)(l,(function(t){return t[1]})),null,u),a.initData(Object(s.H)(l,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=c.from,d=c.to,p=c.line;SE(e).from=h,SE(e).to=d,e.setData(p);var f=e.get("symbol"),g=e.get("symbolSize"),m=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,i,r){var o=e.getItemModel(i);AE(e,i,r,t,n);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=$p(a,"color")),e.setItemVisual(i,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(s.P)(o.get("symbolOffset",!0),y[r?0:1]),symbolRotate:Object(s.P)(o.get("symbolRotate",!0),m[r?0:1]),symbolSize:Object(s.P)(o.get("symbolSize"),g[r?0:1]),symbol:Object(s.P)(o.get("symbol",!0),f[r?0:1]),style:l})}Object(s.t)(f)||(f=[f,f]),Object(s.t)(g)||(g=[g,g]),Object(s.t)(m)||(m=[m,m]),Object(s.t)(y)||(y=[y,y]),c.from.each((function(t){v(h,t,!0),v(d,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),u.updateData(p),c.line.eachItemGraphicEl((function(t){No(t).dataModel=e,t.traverse((function(t){No(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(bE);var TE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(lE),DE=cn(),LE=function(t,e,i,n){var r=n[0],o=n[1];if(r&&o){var a=pE(t,r),l=pE(t,o),u=a.coord,c=l.coord;u[0]=Object(s.O)(u[0],-1/0),u[1]=Object(s.O)(u[1],-1/0),c[0]=Object(s.O)(c[0],1/0),c[1]=Object(s.O)(c[1],1/0);var h=Object(s.J)([{},a,l]);return h.coord=[a.coord,l.coord],h.x0=a.x,h.y0=a.y,h.x1=l.x,h.y1=l.y,h}};function PE(t){return!isNaN(t)&&!isFinite(t)}function jE(t,e,i,n){var r=1-t;return PE(e[r])&&PE(i[r])}function NE(t,e){var i=e.coord[0],n=e.coord[1],r={coord:i,x:e.x0,y:e.y0},o={coord:n,x:e.x1,y:e.y1};return Gv(t,"cartesian2d")?!(!i||!n||!jE(1,i,n)&&!jE(0,i,n))||function(t,e,i){return!(t&&t.containZone&&e.coord&&i.coord&&!cE(e)&&!cE(i))||t.containZone(e.coord,i.coord)}(t,r,o):gE(t,r)||gE(t,o)}function EE(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Di(s.get(i[0]),r.getWidth()),u=Di(s.get(i[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===i[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===i[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=n.getMarkerPosition(f,i,!0)}else{var g=[v=t.get(i[0],e),b=t.get(i[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(Gv(a,"cartesian2d")){var m=a.getAxis("x"),y=a.getAxis("y"),v=t.get(i[0],e),b=t.get(i[1],e);PE(v)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===i[0]?0:1]):PE(b)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var RE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var zE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=lE.getMarkerModelFromSeries(t,"markArea");if(e){var n=e.getData();n.each((function(e){var r=Object(s.H)(RE,(function(r){return EE(n,e,r,t,i)}));n.setItemLayout(e,r),n.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new Ci});this.group.add(u.group),this.markKeep(u);var c=function(t,e,i){var n,r;if(t){var o=Object(s.H)(t&&t.dimensions,(function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return Object(s.m)(Object(s.m)({},n),{name:t,ordinalMeta:null})}));r=Object(s.H)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),n=new uv(r,i)}else n=new uv(r=[{name:"value",type:"float"}],i);var a=Object(s.H)(i.get("data"),Object(s.h)(LE,e,t,i));t&&(a=Object(s.n)(a,Object(s.h)(NE,t)));var l=t?function(t,e,i,n){return Wu(t.coord[Math.floor(n/2)][n%2],r[n])}:function(t,e,i,n){return Wu(t.value,r[n])};return n.initData(a,null,l),n.hasItemOption=!0,n}(r,t,e);e.setData(c),c.each((function(e){var i=Object(s.H)(RE,(function(i){return EE(c,e,i,t,n)})),o=r.getAxis("x").scale,l=r.getAxis("y").scale,u=o.getExtent(),h=l.getExtent(),d=[o.parse(c.get("x0",e)),o.parse(c.get("x1",e))],p=[l.parse(c.get("y0",e)),l.parse(c.get("y1",e))];Pi(d),Pi(p);var f=!!(u[0]>d[1]||u[1]<d[0]||h[0]>p[1]||h[1]<p[0]);c.setItemLayout(e,{points:i,allClipped:f});var g=c.getItemModel(e).getModel("itemStyle").getItemStyle(),m=$p(a,"color");g.fill||(g.fill=m,Object(s.C)(g.fill)&&(g.fill=le.f(g.fill,.4))),g.stroke||(g.stroke=m),c.setItemVisual(e,"style",g)})),c.diff(DE(u).data).add((function(t){var e=c.getItemLayout(t);if(!e.allClipped){var i=new $h({shape:{points:e.points}});c.setItemGraphicEl(t,i),u.group.add(i)}})).update((function(t,i){var n=DE(u).data.getItemGraphicEl(i),r=c.getItemLayout(t);r.allClipped?n&&u.group.remove(n):(n?Ta(n,{shape:{points:r.points}},e,t):n=new $h({shape:{points:r.points}}),c.setItemGraphicEl(t,n),u.group.add(n))})).remove((function(t){var e=DE(u).data.getItemGraphicEl(t);u.group.remove(e)})).execute(),c.eachItemGraphicEl((function(t,i){var n=c.getItemModel(i),r=c.getItemVisual(i,"style");t.useStyle(c.getItemVisual(i,"style")),Va(t,Fa(n),{labelFetcher:e,labelDataIndex:i,defaultText:c.getName(i)||"",inheritColor:Object(s.C)(r.fill)?le.f(r.fill,1):"#000"}),wa(t,n),va(t,null,null,n.get(["emphasis","disabled"])),No(t).dataModel=e})),DE(u).data=c,u.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(bE);var BE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),s.t(e)&&s.k(e,(function(t,n){s.C(t)&&(t={type:t}),e[n]=s.I(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(i,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries((function(n){var r,o=n.name;if(i.push(o),n.legendVisualProvider){var a=n.legendVisualProvider.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&sn(n)&&e.push(n.name)})),this._availableNames=i;var n=this.get("data")||e,r=s.f(),o=s.H(n,(function(t){return(s.C(t)||s.z(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new hs(t,this,this.ecModel))}),this);this._data=s.n(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var i=this._data;s.k(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;s.k(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;s.k(t,(function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&s.r(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(hl),VE=s.h,FE=s.k,HE=Ci;function $E(t,e,i,n){UE(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),WE(t,e,i,n)}function GE(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;n<r&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function WE(t,e,i,n){GE(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function UE(t,e,i,n){GE(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}var YE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!1,i}return o(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new HE),this.group.add(this._selectorGroup=new HE),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,a,o,l);var u=t.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=t.get("padding"),d=nl(u,c,h),p=this.layoutInner(t,r,d,n,a,l),f=nl(s.i({width:p.width,height:p.height},u),c,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gj(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,i,n,r,o,a){var l=this.getContentGroup(),u=s.f(),c=e.get("selectedMode"),h=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),FE(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new HE;return d.newline=!0,void l.add(d)}var p=i.getSeriesByName(a)[0];if(!u.get(a)){if(p){var f=p.getData(),g=f.getVisual("legendLineStyle")||{},m=f.getVisual("legendIcon"),y=f.getVisual("style"),v=this._createItem(p,a,o,r,e,t,g,y,m,c,n);v.on("click",VE($E,a,null,n,h)).on("mouseover",VE(WE,p.name,null,n,h)).on("mouseout",VE(UE,p.name,null,n,h)),i.ssr&&v.eachChild((function(t){var e=No(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),u.set(a,!0)}else i.eachRawSeries((function(l){if(!u.get(a)&&l.legendVisualProvider){var d=l.legendVisualProvider;if(!d.containName(a))return;var p=d.indexOfName(a),f=d.getItemVisual(p,"style"),g=d.getItemVisual(p,"legendIcon"),m=Object(le.h)(f.fill);m&&0===m[3]&&(m[3]=.2,f=s.m(s.m({},f),{fill:Object(le.i)(m,"rgba")}));var y=this._createItem(l,a,o,r,e,t,{},f,g,c,n);y.on("click",VE($E,null,a,n,h)).on("mouseover",VE(WE,null,a,n,h)).on("mouseout",VE(UE,null,a,n,h)),i.ssr&&y.eachChild((function(t){var e=No(t);e.seriesIndex=l.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),u.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,n,o,a)},e.prototype._createSelector=function(t,e,i,n,r){var o=this.getSelectorGroup();FE(t,(function(t){var n=t.type,r=new jo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),Va(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),ya(r)}))},e.prototype._createItem=function(t,e,i,n,r,o,a,l,u,c,h){var d=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),g=r.isSelected(e),m=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),v=n.get("icon"),b=function(t,e,i,n,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),FE(t,(function(i,n){"inherit"===t[n]&&(t[n]=e[n])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?jf(h,a):n.decal,"inherit"===u.fill&&(u.fill=n[r]);"inherit"===u.stroke&&(u.stroke=n[c]);"inherit"===u.opacity&&(u.opacity=("fill"===r?n:i).opacity);s(u,n);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===p.stroke&&(p.stroke=n.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=v||u||"roundRect",n,a,l,d,g,h),x=new HE,_=n.getModel("textStyle");if(!s.w(t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;x.add(function(t){var e=t.icon||"roundRect",i=sf(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2);return i}({itemWidth:p,itemHeight:f,icon:u,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:u,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));var S="left"===o?p+5:-5,C=o,M=r.get("formatter"),k=e;s.C(M)&&M?k=M.replace("{name}",null!=e?e:""):s.w(M)&&(k=M(e));var O=g?_.getTextColor():n.get("inactiveColor");x.add(new jo({style:Ha(_,{text:k,x:S,y:f/2,fill:O,align:C,verticalAlign:"middle"},{inheritColor:O})}));var A=new vo({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=n.getModel("tooltip");return I.get("show")&&$d({el:A,componentModel:r,itemName:e,itemTooltipOption:I.option}),x.add(A),x.eachChild((function(t){t.silent=!0})),A.silent=!c,this.getContentGroup().add(x),ya(x),x.__legendDataIndex=i,x},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();il(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){il("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qc);function qE(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}function XE(t,e,i){var n="allSelect"===t||"inverseSelect"===t,r={},o=[];i.eachComponent({mainType:"legend",query:e},(function(i){n?i[t]():i[t](e.name),ZE(i,r),o.push(i.componentIndex)}));var a={};return i.eachComponent("legend",(function(t){Object(s.k)(r,(function(e,i){t[e?"select":"unSelect"](i)})),ZE(t,a)})),n?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function ZE(t,e){var i=e||{};return Object(s.k)(t.getData(),(function(e){var n=e.get("name");if("\n"!==n&&""!==n){var r=t.isSelected(n);Object(s.q)(i,n)?i[n]=i[n]&&r:i[n]=r}})),i}function KE(t){t.registerComponentModel(BE),t.registerComponentView(YE),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,qE),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(s.h)(XE,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(s.h)(XE,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(s.h)(XE,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(s.h)(XE,"select")),t.registerAction("legendUnSelect","legendunselected",Object(s.h)(XE,"unSelect"))}(t)}function QE(t,e,i){var n=[1,1];n[t.getOrient().index]=0,al(e,i,{type:"box",ignoreSize:!!n})}var JE=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,i,n){var r=sl(e);t.prototype.init.call(this,e,i,n),QE(this,e,r)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),QE(this,this.option,e)},e.type="legend.scroll",e.defaultOption=fs(BE.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(BE),tR=Ci,eR=["width","height"],iR=["x","y"],nR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!0,i._currentIndex=0,i}return o(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new tR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new tR)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,i,n,r,o,a,l){var u=this;t.prototype.renderInner.call(this,e,i,n,r,o,a,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=s.t(h)?h:[h,h];f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(t,e){var n=t+"DataIndex",o=Bd(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:s.c(u._pageGo,u,n,i,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=t,c.add(o)}c.add(new jo({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getSelectorGroup(),l=t.getOrient().index,u=eR[l],c=iR[l],h=eR[1-l],d=iR[1-l];r&&il("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],m=s.d(i);r&&(m[u]=i[u]-f[u]-p);var y=this._layoutContentAndController(t,n,m,l,u,h,d,c);if(r){if("end"===o)g[l]+=y[u]+p;else{var v=f[u]+p;g[l]-=v,y[c]-=v}y[u]+=f[u]+p,g[1-l]+=y[d]+y[h]/2-f[h]/2,y[h]=Math.max(y[h],f[h]),y[d]=Math.min(y[d],f[d]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,i,n,r,o,a,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;il(t.get("orient"),u,t.get("itemGap"),n?i.width:null,n?null:i.height),il("horizontal",h,t.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=d[r]>i[r],g=[-d.x,-d.y];e||(g[n]=u[l]);var m=[0,0],y=[-p.x,-p.y],v=s.P(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?y[n]+=i[r]-p[r]:m[n]+=p[r]+v);y[1-n]+=d[o]/2-p[o]/2,u.setPosition(g),c.setPosition(m),h.setPosition(y);var b={x:0,y:0};if(b[r]=f?i[r]:d[r],b[o]=Math.max(d[o],p[o]),b[a]=Math.min(0,p[a]+y[1-n]),c.__rectSize=i[r],f){var x={x:0,y:0};x[r]=Math.max(i[r]-p[r]-v,0),x[o]=b[o],c.setClipPath(new vo({shape:x})),c.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Ta(u,{x:_.contentPosition[0],y:_.contentPosition[1]},f?t:null),this._updatePageInfoView(t,_),b},e.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;s.k(["pagePrev","pageNext"],(function(n){var r=null!=e[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,l=e.pageCount;n&&r&&n.setStyle("text",s.C(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):r({current:a,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=t.getOrient().index,o=eR[r],a=iR[r],s=this._findTargetItemIndex(e),l=i.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=v(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=c;++f)(!(y=v(l[f]))&&m.e>g.s+n||y&&!b(y,g.s))&&(g=m.i>g.i?m:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=y;for(f=s-1,g=p,m=p,y=null;f>=-1;--f)(y=v(l[f]))&&b(m,y.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function v(t){if(t){var e=t.getBoundingRect(),i=e[a]+t[a];return{s:i,e:i+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+n}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)})),null!=e?e:i):0;var e,i},e.type="legend.scroll",e}(YE);function rR(t){Vg(KE),t.registerComponentModel(JE),t.registerComponentView(nR),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))}(t)}var oR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.inside",e.defaultOption=fs(JP.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(JP),aR=cn();function sR(t,e,i){aR(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=i)}))}function lR(t,e){if(e){t.removeKey(e.model.uid);var i=e.controller;i&&i.dispose()}}function uR(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function cR(t,e,i,n){return t.coordinateSystem.containPoint([i,n])}function hR(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var i=aR(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=Object(s.f)());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var i=ZP(t);Object(s.k)(i.infoList,(function(i){var r=i.model.uid,o=n.get(r)||n.set(r,function(t,e){var i={model:e,containsPoint:Object(s.h)(cR,e),dispatchAction:Object(s.h)(uR,t),dataZoomInfoMap:null,controller:null},n=i.controller=new Bw(t.getZr());return Object(s.k)(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(e){var n=[];i.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,i.model.mainType,i.controller,e);!r.model.get("disabled",!0)&&a&&n.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),n.length&&i.dispatchAction(n)}))})),i}(e,i.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(s.f)())).set(t.uid,{dzReferCoordSysInfo:i,model:t,getRange:null})}))})),n.each((function(t){var e,i=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return t.each((function(t){var r=t.model,o=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i["type_"+o]>i["type_"+e]&&(e=o),n=n&&r.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}(r);i.enable(a.controlType,a.opt),i.setPointerChecker(t.containsPoint),rp(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else lR(n,t)}))}))}var dR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return o(e,t),e.prototype.render=function(e,i,n){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),sR(n,e,{pan:Object(s.c)(pR.pan,this),zoom:Object(s.c)(pR.zoom,this),scrollMove:Object(s.c)(pR.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var i=aR(t).coordSysRecordMap,n=i.keys(),r=0;r<n.length;r++){var o=n[r],a=i.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||lR(i,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(ej),pR={zoom:function(t,e,i,n){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=gR[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return CO(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:fR((function(t,e,i,n,r,o){var a=gR[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:fR((function(t,e,i,n,r,o){return gR[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i).signal*(t[1]-t[0])*o.scrollDelta}))};function fR(t){return function(e,i,n,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return CO(t(a,s,e,i,n,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var gR={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},mR=dR;function yR(t){lj(t),t.registerComponentModel(oR),t.registerComponentView(mR),hR(t)}var vR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=fs(JP.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(JP),bR=vo,xR=["line","bar","candlestick","scatter"],_R={easing:"cubicOut",duration:100,delay:0};function wR(t){return"vertical"===t?"ns-resize":"ew-resize"}var SR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._displayables={},i}return o(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(s.c)(this._onBrush,this),this._onBrushEnd=Object(s.c)(this._onBrushEnd,this)},e.prototype.render=function(e,i,n,r){if(t.prototype.render.apply(this,arguments),rp(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){op(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Ci;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect")?7:0,n=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o="horizontal"===this._orient?{right:r.width-n.x-n.width,top:r.height-30-7-i,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=sl(t.option);Object(s.k)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var l=nl(a,r);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],"vertical"===this._orient&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==i||r?"horizontal"===i&&r?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==i||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new bR({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new bR({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(s.c)(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,i=this._shadowSize||[],n=t.series,r=n.getRawData(),o=n.getShadowDim&&n.getShadowDim(),a=o&&r.getDimensionInfo(o)?n.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==i[0]||e[1]!==i[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),y=0,v=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(v>0&&e%v)y+=m;else{var i=null==t||isNaN(t)||""===t,n=i?0:Ti(t,u,d,!0);i&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!i&&h&&(f.push([y,0]),g.push([y,0])),f.push([y,n]),g.push([y,n]),y+=m,h=i}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=w(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),i=new Ci,n=new $h({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Uh({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(s.k)(a,(function(t){if(!(i||!0!==e&&Object(s.r)(xR,t.get("type"))<0)){var a,l=n.getComponent(qP(r),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[r],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),i={thisAxis:l,series:t,thisDim:r,otherDim:u,otherAxisInverse:a}}}),this)}),this),i}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,i=e.handles=[null,null],n=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),h=e.filler=new bR({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new bR({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(s.k)([0,1],(function(e){var o=a.get("handleIcon");!rf[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var l=sf(o,-1,0,2,2,null,!0);l.attr({cursor:wR(this._orient),draggable:!0,drift:Object(s.c)(this._onDragMove,this,e),ondragend:Object(s.c)(this._onDragEnd,this),onmouseover:Object(s.c)(this._showDataInfo,this,!0),onmouseout:Object(s.c)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Di(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),ya(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(i[e]=l);var d=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(n[e]=new jo({silent:!0,invisible:!p,style:Ha(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=h;if(c){var p=Di(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new vo({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),g=.8*p,m=e.moveHandleIcon=sf(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(d=e.moveZone=new vo({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",(function(){l.enterEmphasis(f)})).on("mouseout",(function(){l.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(d)}d.attr({draggable:!0,cursor:wR(this._orient),drift:Object(s.c)(this._onDragMove,this,"all"),ondragstart:Object(s.c)(this._showDataInfo,this,!0),ondragend:Object(s.c)(this._onDragEnd,this),onmouseover:Object(s.c)(this._showDataInfo,this,!0),onmouseout:Object(s.c)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Ti(t[0],[0,100],e,!0),Ti(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];CO(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?Ti(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ti(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Pi([Ti(n[0],r,a,!0),Ti(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,i=this._handleEnds,n=Pi(i.slice()),r=this._size;Object(s.k)([0,1],(function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,l=[0,n[0],n[1],r[0]],u=0;u<a.length;u++){var c=a[u],h=c.getClipPath();h||(h=new vo,c.setClipPath(h)),h.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Pi(this._handleEnds.slice());function h(t){var e=Ld(i.handles[t].parent,this.group),a=jd(0===t?"right":"left",e),s=this._handleWidth/2+5,l=Pd([c[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],verticalAlign:"horizontal"===r?"middle":a,align:"horizontal"===r?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return Object(s.w)(n)?n(t,o):Object(s.C)(n)?n.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,n=t||this._dragging?i:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!n),o[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,e,i,n){this._dragging=!0,Y(n.event);var r=Pd([e,i],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,i=t.offsetY;this._brushStart=new ot(e,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var i=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(i.width)<5)){var n=this._getViewExtent(),r=[0,100];this._range=Pi([Ti(i.x,n,r,!0),Ti(i.x+i.width,n,r,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Y(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new bR({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?_R:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=ZP(this.dataZoomModel).infoList;if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),r=this.api.getHeight();t={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return t},e.type="dataZoom.slider",e}(ej);function CR(t){t.registerComponentModel(vR),t.registerComponentView(SR),lj(t)}var MR={get:function(t,e,i){var n=s.d((kR[t]||{})[e]);return i&&s.t(n)?n[n.length-1]:n}},kR={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},OR=MR,AR=TM.mapVisual,IR=TM.eachVisual,TR=s.t,DR=s.k,LR=Pi,PR=Ti,jR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return o(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,e){var i=this.option;!e&&ON(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=s.c(t,this),this.controllerVisuals=kN(this.option.controller,e,t),this.targetVisuals=kN(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=Ki(t),e},e.prototype.eachTargetSeries=function(t,e){s.k(this.getTargetSeriesIndices(),(function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(e,n)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,i){var n,r=this.option,o=r.precision,a=this.dataBound,l=r.formatter;i=i||["<",">"],s.t(t)&&(t=t.slice(),n=!0);var u=e?t:n?[c(t[0]),c(t[1])]:c(t);return s.C(l)?l.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u):s.w(l)?n?l(t[0],t[1]):l(t):n?t[0]===a[0]?i[0]+" "+u[1]:t[1]===a[1]?i[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=LR([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var r=i[n],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),r=e.controller||(e.controller={});s.I(n,i),s.I(r,i);var o=this.isCategory();function a(i){TR(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}a.call(this,n),a.call(this,r),function(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},DR(n,(function(t,e){if(TM.isValidType(e)){var i=OR.get(e,"inactive",o);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";DR(this.stateList,(function(a){var l=this.itemSize,u=t[a];u||(u=t[a]={color:o?n:[n]}),null==u.symbol&&(u.symbol=e&&s.d(e)||(o?r:[r])),null==u.symbolSize&&(u.symbolSize=i&&s.d(i)||(o?l[0]:[l[0],l[0]])),u.symbol=AR(u.symbol,(function(t){return"none"===t?r:t}));var c=u.symbolSize;if(null!=c){var h=-1/0;IR(c,(function(t){t>h&&(h=t)})),u.symbolSize=AR(c,(function(t){return PR(t,[0,h],[0,l[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(hl),NR=[20,140];function ER(t,e,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,r=i[0],o=[],a=0;a<=200&&r<i[1];a++)o.push(r),r+=n;return o.push(i[1]),o}var RR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=NR[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=NR[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):s.t(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),s.k(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Pi((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},e.prototype.getVisualMeta=function(t){var e=ER(this,"outOfRange",this.getExtent()),i=ER(this,"inRange",this.option.range.slice()),n=[];function r(e,i){n.push({value:e,color:t(e,i)})}for(var o=0,a=0,s=i.length,l=e.length;a<l&&(!i.length||e[a]<=i[0]);a++)e[a]<i[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&n.length&&r(i[o],"outOfRange"),r(i[o],"inRange");for(u=1;a<l;a++)(!i.length||i[i.length-1]<e[a])&&(u&&(n.length&&r(n[n.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=fs(jR.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(jR),zR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,i,n):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,i=Ws(e.get("padding")||0),n=t.getBoundingRect();t.add(new vo({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,i){var n=(i=i||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function l(t){return o[t]}function u(t,e){o[t]=e}var c=r.controllerVisuals[n||r.getValueState(t)],h=TM.prepareVisualTypes(c);return s.k(h,(function(n){var r=c[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=c.__alphaForOpacity),TM.dependsOn(n,e)&&r&&r.applyVisual(t,l,u)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,i=this.api;rl(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,e,i,n){},e.type="visualMap",e}(qc),BR=[["left","right","width"],["top","bottom","height"]];function VR(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===n.orient?1:0,s=BR[a],l=[0,null,10],u={},c=0;c<3;c++)u[BR[1-a][c]]=l[c],u[s[c]]=2===c?i[0]:n[s[c]];var h=[["x","width",3],["y","height",0]][a],d=nl(u,o,n.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function FR(t,e){return s.k(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var HR=Ti,$R=s.k,GR=Math.min,WR=Math.max;function UR(t,e,i,n){return new $h({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){Y(t.event)},ondragend:n})}function YR(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function qR(t){return"vertical"===t?"ns-resize":"ew-resize"}var XR=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return o(e,t),e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=s.c(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=s.c(this._hideIndicator,this)},e.prototype.doRender=function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===i?-o:a[1]+o],s),u=this._applyTransform(0===i?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new jo({style:Ha(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:n})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,r=this._orient,o=this._useHandle,a=VR(e,this.api,n),l=i.mainGroup=this._createBarGroup(a),u=new Ci;l.add(u),u.add(i.outOfRange=UR()),u.add(i.inRange=UR(null,o?qR(this._orient):null,s.c(this._dragHandle,this,"all",!1),s.c(this._dragHandle,this,"all",!0))),u.setClipPath(new vo({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=e.textStyleModel.getTextRect("国"),h=WR(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(e,l,0,n,h,r),this._createHandle(e,l,1,n,h,r)),this._createIndicator(e,l,n,h,r),t.add(l)},e.prototype._createHandle=function(t,e,i,n,r,o){var a=s.c(this._dragHandle,this,i,!1),l=s.c(this._dragHandle,this,i,!0),u=di(t.get("handleSize"),n[0]),c=sf(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=qR(this._orient);c.attr({cursor:h,draggable:!0,drift:a,ondragend:l,onmousemove:function(t){Y(t.event)}}),c.x=n[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Sa(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,p=new jo({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Y(t.event)},ondragend:l,style:Ha(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[u,0],g=this._shapes;g.handleThumbs[i]=c,g.handleLabelPoints[i]=f,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,e,i,n,r){var o=di(t.get("indicatorSize"),i[0]),a=sf(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(a instanceof uo){var u=a.style;a.useStyle(s.m({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else a.useStyle(l);e.add(a);var c=this.visualMapModel.textStyleModel,h=new jo({silent:!0,invisible:!0,style:Ha(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===r?n/2:6)+i[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():YR(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[HR(e[0],i,n,!0),HR(e[1],i,n,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];CO(e,n,r,t,0);var o=i.getExtent();this._dataInterval=[HR(n[0],r,o,!0),HR(n[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,i,o,"inRange"),s=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),n.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(i,a);return{barColor:new sd(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var i=[],n=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+n*r;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Ci("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,o=i.handleLabels,a=n.itemSize,s=n.getExtent(),l=this._applyTransform("left",i.mainGroup);$R([0,1],(function(u){var c=r[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=HR(t[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=Pd(i.handleLabelPoints[u],Ld(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,i,n){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=HR(t,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=Pd(l.indicatorLabelPoint,Ld(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),v="horizontal"===this._orient;m.setStyle({text:(i||"")+r.formatValueText(e),verticalAlign:v?y:"middle",align:v?"center":y});var b={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(b,_),m.animateTo(x,_)}else u.attr(b),m.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);n[1]=GR(WR(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r=[0,n[1]],o=i.getExtent();t=GR(WR(r[0],t),r[1]);var a=function(t,e,i){var n=6,r=t.get("hoverLinkDataSize");r&&(n=HR(r,e,i,!0)/2);return n}(i,o,r),s=[t-a,t+a],l=HR(t,r,o,!0),u=[HR(s[0],r,o,!0),HR(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||YR(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=function(t,e){var i={},n={};return r(t||[],i),r(e||[],n,i),[o(i),o(n)];function r(t,e,i){for(var n=0,r=t.length;n<r;n++){var o=an(t[n].seriesId,null);if(null==o)return;for(var a=Ki(t[n].dataIndex),s=i&&i[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n])if(e)i.push(+n);else{var r=o(t[n],!0);r.length&&i.push({seriesId:n,dataIndex:r})}return i}}(c,h);this._dispatchHighDown("downplay",FR(d[0],i)),this._dispatchHighDown("highlight",FR(d[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Yp(t.target,(function(t){var i=No(t);if(null!=i.dataIndex)return e=i,!0}),!0),e){var i=this.ecModel.getSeriesByIndex(e.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var r=i.getData(e.dataType),o=r.getStore().get(n.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var i=0;i<e.length;i++)this.api.leaveBlur(e[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",FR(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,i,n){var r=Ld(e,n?null:this.group);return s.t(t)?Pd(t,r,i):jd(t,r,i)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(zR),ZR={type:"selectDataRange",event:"dataRangeSelected",update:"update"},KR=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},QR=[{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var n,r,o,a,l,u=t.pipelineContext;!e.isTargetSeries(t)||u&&u.large||i.push((n=e.stateList,r=e.targetVisuals,o=s.c(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),l={},s.k(n,(function(t){var e=TM.prepareVisualTypes(r[t]);l[t]=e})),{progress:function(t,e){var i,n;function s(t){return Hp(e,n,t)}function u(t,i){Gp(e,n,t,i)}null!=a&&(i=e.getDimensionIndex(a));for(var c=e.getStore();null!=(n=t.next());){var h=e.getRawDataItem(n);if(!h||!1!==h.visualMap)for(var d=null!=a?c.get(i,n):n,p=o(d),f=r[p],g=l[p],m=0,y=g.length;m<y;m++){var v=g[m];f[v]&&f[v].applyVisual(d,s,u)}}}}))})),i}},{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(s.c(JR,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(i);o>=0&&(r.dimension=o,n.push(r))}})),t.getData().setVisual("visualMeta",n)}}];function JR(t,e,i,n){for(var r=e.targetVisuals[n],o=TM.prepareVisualTypes(r),a={color:$p(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(i,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var tz=s.k;function ez(t){var e=t&&t.visualMap;s.t(e)||(e=e?[e]:[]),tz(e,(function(t){if(t){iz(t,"splitList")&&!iz(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&s.t(e)&&tz(e,(function(t){s.A(t)&&(iz(t,"start")&&!iz(t,"min")&&(t.min=t.start),iz(t,"end")&&!iz(t,"max")&&(t.max=t.end))}))}}))}function iz(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var nz=!1;function rz(t){nz||(nz=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(ZR,KR),Object(s.k)(QR,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(ez))}function oz(t){t.registerComponentModel(RR),t.registerComponentView(XR),rz(t)}var az=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._pieceList=[],i}return o(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],sz[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=s.d(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=s.H(this._pieceList,(function(t){return t=s.d(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,i={},n=TM.listVisualTypes(),r=this.isCategory();function o(t,e,i){return t&&t[e]&&t[e].hasOwnProperty(i)}s.k(e.pieces,(function(t){s.k(n,(function(e){t.hasOwnProperty(e)&&(i[e]=1)}))})),s.k(i,(function(t,i){var n=!1;s.k(this.stateList,(function(t){n=n||o(e,t,i)||o(e.target,t,i)}),this),!n&&s.k(this.stateList,(function(t){(e[t]||(e[t]={}))[i]=OR.get(i,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var i=this.option,n=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,s.k(n,(function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var o=!1;s.k(n,(function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(o?r[i]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=s.d(t)},e.prototype.getValueState=function(t){var e=TM.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries((function(n){var r=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){TM.findPieceIndex(e,i)===t&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],n=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return s.k(r,(function(t){var e=t.interval;e&&(e[0]>a&&l([a,e[0]],"outOfRange"),l(e.slice()),a=e[1])}),this),{stops:e,outerColors:i}}function l(r,o){var a=n.getRepresentValue({interval:r});o||(o=n.getValueState(a));var s=t(a,o);r[0]===-1/0?i[0]=s:r[1]===1/0?i[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=fs(jR.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(jR),sz={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),n=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(n[1]-n[0])/r;+o.toFixed(i)!==o&&i<5;)i++;e.precision=i,o=+o.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,l=n[0];a<r;l+=o,a++){var u=a===r-1?n[1]:l+o;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),Wi(t),s.k(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;s.k(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),lz(e,t)},pieces:function(t){var e=this.option;s.k(e.pieces,(function(e,i){s.A(e)||(e={value:e});var n={text:"",index:i};if(null!=e.label&&(n.text=e.label),e.hasOwnProperty("value")){var r=n.value=e.value;n.interval=[r,r],n.close=[1,1]}else{for(var o=n.interval=[],a=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==o[h];p++)o[h]=e[d[p]],a[h]=l[p],c[h]=2===p;null==o[h]&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(a[0]=0),c[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(n.value=o[0])}n.visual=TM.retrieveVisuals(e),t.push(n)}),this),lz(e,t),Wi(t),s.k(t,(function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function lz(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var uz=az,cz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return o(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,r=n.getFont(),o=n.getTextColor(),a=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),c=u.endsText,h=s.O(e.get("showLabel",!0),!c),d=!e.get("selectedMode");c&&this._renderEndsText(t,c[0],l,h,a),s.k(u.viewPieceList,(function(n){var u=n.piece,c=new Ci;c.onclick=s.c(this._onItemClick,this,u),this._enableHoverLink(c,n.indexInModelPieceList);var p=e.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]],d),h){var f=this.visualMapModel.getValueState(p);c.add(new jo({style:{x:"right"===a?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===f?.5:1},silent:d}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],l,h,a),il(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",(function(){return n("highlight")})).on("mouseout",(function(){return n("downplay")}));var n=function(t){var n=i.visualMapModel;n.option.hoverLink&&i.api.dispatchAction({type:t,batch:FR(n.findTargetDataIndices(e),n)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return VR(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,n,r){if(e){var o=new Ci,a=this.visualMapModel.textStyleModel;o.add(new jo({style:Ha(a,{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=s.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),n=t.get("orient"),r=t.get("inverse");return("horizontal"===n?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i,n){var r=sf(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color"));r.silent=n,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,n=i.selectedMode;if(n){var r=s.d(i.selected),o=e.getSelectedMapKey(t);"single"===n||!0===n?(r[o]=!0,s.k(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(zR);function hz(t){t.registerComponentModel(uz),t.registerComponentView(cz),rz(t)}var dz={label:{enabled:!0},decal:{show:!1}},pz=cn(),fz={};function gz(t,e){var i=t.getModel("aria");if(i.get("enabled")){var n=s.d(dz);s.I(n.label,t.getLocaleModel().get("aria"),!1),s.I(i.option,n,!1),function(){if(i.getModel("decal").get("show")){var e=s.f();t.eachSeries((function(t){if(!t.isColorBySeries()){var i=e.get(t.type);i||(i={},e.set(t.type,i)),pz(t).scope=i}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(s.w(e.enableAriaDecal))e.enableAriaDecal();else{var i=e.getData();if(e.isColorBySeries()){var n=Il(e.ecModel,e.name,fz,t.getSeriesCount()),r=i.getVisual("decal");i.setVisual("decal",c(r,n))}else{var o=e.getRawData(),a={},l=pz(e).scope;i.each((function(t){var e=i.getRawIndex(t);a[e]=t}));var u=o.count();o.each((function(t){var n=a[t],r=o.getName(t)||t+"",s=Il(e.ecModel,r,l,u),h=i.getItemVisual(n,"decal");i.setItemVisual(n,"decal",c(h,s))}))}}function c(t,e){var i=t?s.m(s.m({},e),t):e;return i.dirty=!0,i}}))}}(),function(){var n=e.getZr().dom;if(!n)return;var o=t.getLocaleModel().get("aria"),a=i.getModel("label");if(a.option=s.i(a.option,o),!a.get("enabled"))return;if(n.setAttribute("role","img"),a.get("description"))return void n.setAttribute("aria-label",a.get("description"));var l,u=t.getSeriesCount(),c=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,d=Math.min(u,h);if(u<1)return;var p=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(p){var f=a.get(["general","withTitle"]);l=r(f,{title:p})}else l=a.get(["general","withoutTitle"]);var g=[],m=u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);l+=r(m,{seriesCount:u}),t.eachSeries((function(e,i){if(i<d){var n=void 0,o=e.get("name")?"withName":"withoutName";n=r(n=u>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,w=t.getLocaleModel().get(["series","typeNames"]),w[_]||w.chart)});var l=e.getData();if(l.count()>c)n+=r(a.get(["data","partialData"]),{displayCnt:c});else n+=a.get(["data","allData"]);for(var h=a.get(["data","separator","middle"]),p=a.get(["data","separator","end"]),f=a.get(["data","excludeDimensionId"]),m=[],y=0;y<l.count();y++)if(y<c){var v=l.getName(y),b=f?s.n(l.getValues(y),(function(t,e){return-1===s.r(f,e)})):l.getValues(y),x=a.get(["data",v?"withName":"withoutName"]);m.push(r(x,{name:v,value:b.join(h)}))}n+=m.join(h)+p,g.push(n)}var _,w}));var y=a.getModel(["series","multiple","separator"]),v=y.get("middle"),b=y.get("end");l+=g.join(v)+b,n.setAttribute("aria-label",l)}()}function r(t,e){if(!s.C(t))return t;var i=t;return s.k(e,(function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),i}}function mz(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},s.k(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var yz={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vz=function(){function t(t){if(null==(this._condVal=Object(s.C)(t)?new RegExp(t):Object(s.B)(t)?t:null)){0,Nl("")}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(s.C)(e)?this._condVal.test(t):!!Object(s.z)(e)&&this._condVal.test(t+"")},t}(),bz=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),xz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),_z=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),wz=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Sz=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),i=t?this.valueParser(e):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(t?i:e))return!1;return!0},t}();function Cz(t,e){if(!0===t||!1===t){var i=new bz;return i.value=t,i}return kz(t)||Nl(""),t.and?Mz("and",t,e):t.or?Mz("or",t,e):t.not?function(t,e){var i=t.not;0;kz(i)||Nl("");var n=new wz;n.child=Cz(i,e),n.child||Nl("");return n}(t,e):function(t,e){for(var i=e.prepareGetValue(t),n=[],r=Object(s.F)(t),o=t.parser,a=o?Yu(o):null,l=0;l<r.length;l++){var u=r[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(s.q)(yz,u)?yz[u]:u,h=t[u],d=a?a(h):h,p=Qu(c,d)||"reg"===c&&new vz(d);p||Nl(""),n.push(p)}}n.length||Nl("");var f=new Sz;return f.valueGetterParam=i,f.valueParser=a,f.getValue=e.getValue,f.subCondList=n,f}(t,e)}function Mz(t,e,i){var n=e[t];Object(s.t)(n)||Nl(""),n.length||Nl("");var r="and"===t?new xz:new _z;return r.children=Object(s.H)(n,(function(t){return Cz(t,i)})),r.children.length||Nl(""),r}function kz(t){return Object(s.A)(t)&&!Object(s.u)(t)}var Oz=function(){function t(t,e){this._cond=Cz(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var Az={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,n=function(t,e){return new Oz(t,e)}(t.config,{valueGetterAttrMap:Object(s.f)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(s.q)(t,"dimension")||Nl("");var n=i.getDimensionInfo(e);return n||Nl(""),{dimIdx:n.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),r=[],o=0,a=i.count();o<a;o++)e=i.getRawDataItem(o),n.evaluate()&&r.push(e);return{data:r}}};var Iz={type:"echarts:sort",transform:function(t){var e=t.upstream,i=t.config,n=Ki(i);n.length||Nl("");var r=[];Object(s.k)(n,(function(t){var i=t.dimension,n=t.order,o=t.parser,a=t.incomparable;if(null==i&&Nl(""),"asc"!==n&&"desc"!==n&&Nl(""),a&&"min"!==a&&"max"!==a){0,Nl("")}if("asc"!==n&&"desc"!==n){0,Nl("")}var s=e.getDimensionInfo(i);s||Nl("");var l=o?Yu(o):null;o&&!l&&Nl(""),r.push({dimIdx:s.index,parser:l,comparator:new Zu(n,a)})}));var o=e.sourceFormat;"arrayRows"!==o&&"objectRows"!==o&&Nl("");for(var a=[],l=0,u=e.count();l<u;l++)a.push(e.getRawDataItem(l));return a.sort((function(t,i){for(var n=0;n<r.length;n++){var o=r[n],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(i,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:a}}};var Tz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return o(e,t),e.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new mc(this),yc(this)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),yc(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:"column"},e}(hl),Dz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return o(e,t),e.type="dataset",e}(qc);var Lz=Er.CMD;function Pz(t,e){return Math.abs(t-e)<1e-5}function jz(t){var e,i,n,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,i){e&&e.length>2&&l.push(e),e=[t,i]}function f(t,i,n,r){Pz(t,n)&&Pz(i,r)||e.push(t,i,n,r,n,r)}function g(t,i,n,r,o,a){var s=Math.abs(i-t),l=4*Math.tan(s/4)/3,u=i<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(i),p=Math.sin(i),f=c*o+n,g=h*a+r,m=d*o+n,y=p*a+r,v=o*l*u,b=a*l*u;e.push(f-v*h,g+b*c,m+v*p,y-b*d,m,y)}for(var m=0;m<s;){var y=a[m++],v=1===m;switch(v&&(h=u=a[m],d=c=a[m+1],y!==Lz.L&&y!==Lz.C&&y!==Lz.Q||(e=[h,d])),y){case Lz.M:u=h=a[m++],c=d=a[m++],p(h,d);break;case Lz.L:f(u,c,i=a[m++],n=a[m++]),u=i,c=n;break;case Lz.C:e.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case Lz.Q:i=a[m++],n=a[m++],r=a[m++],o=a[m++],e.push(u+2/3*(i-u),c+2/3*(n-c),r+2/3*(i-r),o+2/3*(n-o),r,o),u=r,c=o;break;case Lz.A:var b=a[m++],x=a[m++],_=a[m++],w=a[m++],S=a[m++],C=a[m++]+S;m+=1;var M=!a[m++];i=Math.cos(S)*_+b,n=Math.sin(S)*w+x,v?p(h=i,d=n):f(u,c,i,n),u=Math.cos(C)*_+b,c=Math.sin(C)*w+x;for(var k=(M?-1:1)*Math.PI/2,O=S;M?O>C:O<C;O+=k){g(O,M?Math.max(O+k,C):Math.min(O+k,C),b,x,_,w)}break;case Lz.R:h=u=a[m++],d=c=a[m++],i=h+a[m++],n=d+a[m++],p(i,d),f(i,d,i,n),f(i,n,h,n),f(h,n,h,d),f(h,d,i,d);break;case Lz.Z:e&&f(u,c,h,d),u=h,c=d}}return e&&e.length>2&&l.push(e),l}function Nz(t,e,i,n,r,o,a,s,l,u){if(Pz(t,i)&&Pz(e,n)&&Pz(r,a)&&Pz(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=i-t,m=n-e,y=r-a,v=o-s,b=g*g+m*m,x=y*y+v*v;if(b<h&&x<h)l.push(a,s);else{var _=d*g+p*m,w=-d*y-p*v;if(b-_*_<h&&_>=0&&x-w*w<h&&w>=0)l.push(a,s);else{var S=[],C=[];Zt(t,i,r,a,.5,S),Zt(e,n,o,s,.5,C),Nz(S[0],C[0],S[1],C[1],S[2],C[2],S[3],C[3],l,u),Nz(S[4],C[4],S[5],C[5],S[6],C[6],S[7],C[7],l,u)}}}}function Ez(t,e,i){var n=t[e],r=t[1-e],o=Math.abs(n/r),a=Math.ceil(Math.sqrt(o*i)),s=Math.floor(i/a);0===s&&(s=1,a=i);for(var l=[],u=0;u<a;u++)l.push(s);var c=i-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function Rz(t,e,i){for(var n=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,u=r-n,c=l>Math.abs(u),h=Ez([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=n+f*g,m.r=n+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=n+d*p,m.r=n+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,i.push(m)}}function zz(t,e,i,n){return t*n-i*e}function Bz(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=zz(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=zz(t-r,e-o,c,h)/d;return p<0||p>1?null:new ot(p*l+t,p*u+e)}function Vz(t,e,i){var n=new ot;ot.sub(n,i,e),n.normalize();var r=new ot;return ot.sub(r,t,e),r.dot(n)}function Fz(t,e){var i=t[t.length-1];i&&i[0]===e[0]&&i[1]===e[1]||t.push(e)}function Hz(t){var e=t.points,i=[],n=[];hr(e,i,n);var r=new ft(i[0],i[1],n[0]-i[0],n[1]-i[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new ot,c=new ot;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,i){for(var n=t.length,r=[],o=0;o<n;o++){var a=t[o],s=t[(o+1)%n],l=Bz(a[0],a[1],s[0],s[1],e.x,e.y,i.x,i.y);l&&r.push({projPt:Vz(l,e,i),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)Fz(f,t[o].slice());for(Fz(f,p),Fz(f,d),o=c.idx+1;o<=u.idx+n;o++)Fz(g,t[o%n].slice());return Fz(g,d),Fz(g,p),[{points:f},{points:g}]}(e,u,c)}function $z(t,e,i,n){if(1===i)n.push(e);else{var r=Math.floor(i/2),o=t(e);$z(t,o[0],r,n),$z(t,o[1],i-r,n)}return n}function Gz(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Wz(t,e){var i,n=[],r=t.shape;switch(t.type){case"rect":!function(t,e,i){for(var n=t.width,r=t.height,o=n>r,a=Ez([n,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,i.push(g)}}(r,e,n),i=vo;break;case"sector":Rz(r,e,n),i=Eh;break;case"circle":Rz({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,n),i=Eh;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,l=Object(s.H)(function(t,e){var i=jz(t),n=[];e=e||1;for(var r=0;r<i.length;r++){var o=i[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];Nz(s,l,c,h,d,p,f,g,a,e),s=f,l=g}n.push(a)}return n}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],i=0;i<t.length;)e.push([t[i++],t[i++]]);return e}(t)})),u=l.length;if(0===u)$z(Hz,{points:l[0]},e,n);else if(u===e)for(var c=0;c<u;c++)n.push({points:l[c]});else{var h=0,d=Object(s.H)(l,(function(t){var e=[],i=[];hr(t,e,i);var n=(i[1]-e[1])*(i[0]-e[0]);return h+=n,{poly:t,area:n}}));d.sort((function(t,e){return e.area-t.area}));var p=e;for(c=0;c<u;c++){var f=d[c];if(p<=0)break;var g=c===u-1?p:Math.ceil(f.area/h*e);g<0||($z(Hz,{points:f.poly},g,n),p-=g)}}i=$h}if(!i)return function(t,e){for(var i=[],n=0;n<e;n++)i.push(gh(t));return i}(t,e);var m=[];for(c=0;c<n.length;c++){var y=new i;y.setShape(n[c]),Gz(t,y),m.push(y)}return m}function Uz(t,e){var i=t.length,n=e.length;if(i===n)return[t,e];for(var r=[],o=[],a=i<n?t:e,s=Math.min(i,n),l=Math.abs(n-i)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],y=a[p++],v=a[p++],b=a[p++],x=a[p++],_=a[p++];if(d<=0)h.push(m,y,v,b,x,_);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var C=S/w;Zt(f,m,v,x,C,r),Zt(g,y,b,_,C,o),f=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],f,g),m=r[5],y=o[5],v=r[6],b=o[6]}d-=w-1}}return a===t?[h,e]:[t,h]}function Yz(t,e){for(var i=t.length,n=t[i-2],r=t[i-1],o=[],a=0;a<e.length;)o[a++]=n,o[a++]=r;return o}function qz(t){for(var e=0,i=0,n=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,i+=(s+u)*h,n+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[i/e/3,n/e/3,e]}function Xz(t,e,i,n){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-i[0],g=t[p+1]-i[1],m=e[d]-n[0]-f,y=e[d+1]-n[1]-g;h+=m*m+y*y}h<o&&(o=h,a=u)}return a}function Zz(t){for(var e=[],i=t.length,n=0;n<i;n+=2)e[n]=t[i-n-2],e[n+1]=t[i-n-1];return e}function Kz(t){return t.__isCombineMorphing}function Qz(t,e,i){var n="__mOriginal_"+e,r=t[n]||t[e];t[n]||(t[n]=t[e]);var o=i.replace,a=i.after,s=i.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function Jz(t,e){var i="__mOriginal_"+e;t[i]&&(t[e]=t[i],t[i]=null)}function tB(t,e){for(var i=0;i<t.length;i++)for(var n=t[i],r=0;r<n.length;){var o=n[r],a=n[r+1];n[r++]=e[0]*o+e[2]*a+e[4],n[r++]=e[1]*o+e[3]*a+e[5]}}function eB(t,e){var i=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),r=function(t,e){for(var i,n,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=c=(i=Uz(l,u))[0],r=h=i[1]):(h=Yz(r||l,l),c=l):(c=Yz(n||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(jz(i),jz(n)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&tB(o,s),l&&tB(a,l),Qz(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,i,n){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=qz(s),c=qz(l);null==r&&(r=u[2]<0!=c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],m=s.length;r&&(s=Zz(s));for(var y=6*Xz(s,l,u,c),v=m-2,b=0;b<v;b+=2){var x=(y+b)%v+2;h[b+2]=s[x]-u[0],h[b+3]=s[x+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],i>0)for(var _=n/i,w=-n/2;w<=n/2;w+=_){var S=Math.sin(w),C=Math.cos(w),M=0;for(b=0;b<s.length;b+=2){var k=h[b],O=h[b+1],A=l[b]-c[0],I=l[b+1]-c[1],T=A*C-I*S,D=A*S+I*C;g[b]=T,g[b+1]=D;var L=T-k,P=D-O;M+=L*L+P*P}if(M<f){f=M,p=w;for(var j=0;j<g.length;j++)d[j]=g[j]}}else for(var N=0;N<m;N+=2)d[N]=l[N]-c[0],d[N+1]=l[N+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}(o,a,10,Math.PI),c=[];Qz(e,"buildPath",{replace:function(t){for(var i=e.__morphT,n=1-i,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*i,d=a.fromCp,p=a.toCp,f=Math.sin(h),g=Math.cos(h);S(r,d,p,i);for(var m=0;m<s.length;m+=2){var y=s[m],v=s[m+1],b=y*n+(C=l[m])*i,x=v*n+(M=l[m+1])*i;c[m]=b*g-x*f+r[0],c[m+1]=b*f+x*g+r[1]}var _=c[0],w=c[1];t.moveTo(_,w);for(m=2;m<s.length;){var C=c[m++],M=c[m++],k=c[m++],O=c[m++],A=c[m++],I=c[m++];_===C&&w===M&&k===A&&O===I?t.lineTo(A,I):t.bezierCurveTo(C,M,k,O,A,I),_=A,w=I}}}})}function iB(t,e,i){if(!t||!e)return e;var n=i.done,r=i.during;return eB(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(s.i)({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){Jz(e,"buildPath"),Jz(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),n&&n()}},i)),e}function nB(t,e,i,n,r,o){t=r===i?0:Math.round(32767*(t-i)/(r-i)),e=o===n?0:Math.round(32767*(e-n)/(o-n));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function rB(t){var e=1/0,i=1/0,n=-1/0,r=-1/0,o=Object(s.H)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),i=Math.min(l,i),n=Math.max(s,n),r=Math.max(l,r),[s,l]}));return Object(s.H)(o,(function(o,a){return{cp:o,z:nB(o[0],o[1],e,i,n,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function oB(t){return Wz(t.path,t.count)}function aB(t){return Object(s.t)(t[0])}function sB(t,e){for(var i=[],n=t.length,r=0;r<n;r++)i.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)i[a%n].many.push(e[r][a])}var s=0;for(r=n-1;r>=0;r--)if(!i[r].many.length){var l=i[s].many;if(l.length<=1){if(!s)return i;s=0}o=l.length;var u=Math.ceil(o/2);i[r].many=l.slice(u,o),i[s].many=l.slice(0,u),s++}return i}var lB={clone:function(t){for(var e=[],i=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var r=gh(t.path);r.setStyle("opacity",i),e.push(r)}return e},split:null};function uB(t,e,i,n,r,o){if(t.length&&e.length){var a=Aa("update",n,r);if(a&&a.duration>0){var l,u,c=n.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);aB(t)&&(l=t,u=e),aB(e)&&(l=e,u=t);for(var d=l?l===t:t.length>e.length,p=l?sB(u,l):sB(d?e:t,[d?t:e]),f=0,g=0;g<p.length;g++)f+=p[g].many.length;var m=0;for(g=0;g<p.length;g++)y(p[g],d,m,f),m+=p[g].many.length}}function y(t,e,n,r,a){var l=t.many,u=t.one;if(1!==l.length||a)for(var d=Object(s.i)({dividePath:lB[i],individualDelay:c&&function(t,e,i,o){return c(t+n,r)}},h),p=e?function(t,e,i){var n=[];!function t(e){for(var i=0;i<e.length;i++){var r=e[i];Kz(r)?t(r.childrenRef()):r instanceof io&&n.push(r)}}(t);var r=n.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(i.dividePath||oB)({path:e,count:r});if(o.length!==r)return{fromIndividuals:[],toIndividuals:[],count:0};n=rB(n),o=rB(o);for(var a=i.done,l=i.during,u=i.individualDelay,c=new ii,h=0;h<r;h++){var d=n[h],p=o[h];p.parent=e,p.copyTransform(c),u||eB(d,p)}function f(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Jz(e,"addSelfToZr"),Jz(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},Qz(e,"addSelfToZr",{after:function(t){f(t)}}),Qz(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var m=o.length;if(u){var y=m,v=function(){0===--y&&(g(),a&&a())};for(h=0;h<m;h++){var b=u?Object(s.i)({delay:(i.delay||0)+u(h,m,n[h],o[h]),done:v},i):i;iB(n[h],o[h],b)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(s.i)({during:function(t){for(var i=0;i<m;i++){var n=o[i];n.__morphT=e.__morphT,n.dirtyShape()}l&&l(t)},done:function(){g();for(var e=0;e<t.length;e++)Jz(t[e],"updateTransform");a&&a()}},i));return e.__zr&&f(e.__zr),{fromIndividuals:n,toIndividuals:o,count:m}}(l,u,d):function(t,e,i){var n=e.length,r=[],o=i.dividePath||oB;if(Kz(t)){!function t(e){for(var i=0;i<e.length;i++){var n=e[i];Kz(n)?t(n.childrenRef()):n instanceof io&&r.push(n)}}(t.childrenRef());var a=r.length;if(a<n)for(var l=0,u=a;u<n;u++)r.push(gh(r[l++%a]));r.length=n}else{r=o({path:t,count:n});var c=t.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(c);if(r.length!==n)return{fromIndividuals:[],toIndividuals:[],count:0}}r=rB(r),e=rB(e);var h=i.individualDelay;for(u=0;u<n;u++){var d=h?Object(s.i)({delay:(i.delay||0)+h(u,n,r[u],e[u])},i):i;iB(r[u],e[u],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(u,l,d),f=p.fromIndividuals,g=p.toIndividuals,m=f.length,v=0;v<m;v++){b=c?Object(s.i)({delay:c(v,m)},h):h;o(f[v],g[v],e?l[v]:t.one,e?t.one:l[v],b)}else{var b,x=e?l[0]:u,_=e?u:l[0];if(Kz(x))y({many:[x],one:_},!0,n,r,!0);else iB(x,_,b=c?Object(s.i)({delay:c(n,r)},h):h),o(x,_,x,_,b)}}}function cB(t){if(!t)return[];if(Object(s.t)(t)){for(var e=[],i=0;i<t.length;i++)e.push(cB(t[i]));return e}var n=[];return t.traverse((function(t){t instanceof io&&!t.disableMorphing&&!t.invisible&&!t.ignore&&n.push(t)})),n}var hB=cn();function dB(t,e,i,n){var r=function(t,e){for(var i=t.dimensions,n=0;n<i.length;n++){var r=t.getDimensionInfo(i[n]);if(r&&0===r.otherDims[e])return i[n]}}(t,n?"itemChildGroupId":"itemGroupId");if(r)return function(t,e,i){var n=t.getDimensionInfo(i),r=n&&n.ordinalMeta;if(n){var o=t.get(n.name,e);return r&&r.categories[o]||o+""}}(t,e,r);var o=t.getRawDataItem(e),a=n?"childGroupId":"groupId";return o&&o[a]?o[a]+"":n?void 0:i||t.getId(e)}function pB(t){var e=[];return Object(s.k)(t,(function(t){var i=t.data,n=t.dataGroupId;if(!(i.count()>1e4))for(var r=i.getIndices(),o=0;o<r.length;o++)e.push({data:i,groupId:dB(i,o,n,!1),childGroupId:dB(i,o,n,!0),divide:t.divide,dataIndex:o})})),e}function fB(t,e,i){t.traverse((function(t){t instanceof io&&Da(t,{style:{opacity:0}},e,{dataIndex:i,isFrom:!0})}))}function gB(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function mB(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function yB(t,e,i){var n=Aa("update",i,e);n&&t.traverse((function(t){if(t instanceof ir){var e=function(t){return Oa(t).oldStyle}(t);e&&t.animateFrom({style:e},n)}}))}function vB(t,e,i){var n=pB(t),r=pB(e);function o(t,e,i,n,r){(i||t)&&e.animateFrom({style:i&&i!==t?Object(s.m)(Object(s.m)({},i.style),t.style):t.style},r)}var a=!1,l=0,u=Object(s.f)(),c=Object(s.f)();n.forEach((function(t){t.groupId&&u.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)}));for(var h=0;h<r.length;h++){var d=r[h].groupId;if(c.get(d)){l=1;break}var p=r[h].childGroupId;if(p&&u.get(p)){l=2;break}}function f(t,e){return function(i){var n=i.data,r=i.dataIndex;return e?n.getId(r):t?1===l?i.childGroupId:i.groupId:2===l?i.childGroupId:i.groupId}}var g=function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++){var r=t[n],o=e[n];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(n,r),m={};if(!g)for(h=0;h<r.length;h++){var y=r[h],v=y.data.getItemGraphicEl(y.dataIndex);v&&(m[v.id]=!0)}function b(t,e){var i=n[e],s=r[t],l=s.data.hostModel,u=i.data.getItemGraphicEl(i.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&m[u.id]||c&&(mB(c),u?(mB(u),gB(u),a=!0,uB(cB(u),cB(c),s.divide,l,t,o)):fB(c,l,t)):c&&yB(c,s.dataIndex,l)}new By(n,r,f(!0,g),f(!1,g),null,"multiple").update(b).updateManyToOne((function(t,e){var i=r[t],l=i.data,u=l.hostModel,c=l.getItemGraphicEl(i.dataIndex),h=Object(s.n)(Object(s.H)(e,(function(t){return n[t].data.getItemGraphicEl(n[t].dataIndex)})),(function(t){return t&&t!==c&&!m[t.id]}));c&&(mB(c),h.length?(Object(s.k)(h,(function(t){mB(t),gB(t)})),a=!0,uB(cB(h),cB(c),i.divide,u,t,o)):fB(c,u,i.dataIndex))})).updateOneToMany((function(t,e){var i=n[e],l=i.data.getItemGraphicEl(i.dataIndex);if(!l||!m[l.id]){var u=Object(s.n)(Object(s.H)(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==l})),c=r[t[0]].data.hostModel;u.length&&(Object(s.k)(u,(function(t){return mB(t)})),l?(mB(l),gB(l),a=!0,uB(cB(l),cB(u),i.divide,c,t[0],o)):Object(s.k)(u,(function(e){return fB(e,c,t[0])})))}})).updateManyToMany((function(t,e){new By(e,t,(function(t){return n[t].data.getId(n[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(i,n){b(t[i],e[n])})).execute()})).execute(),a&&Object(s.k)(e,(function(t){var e=t.data.hostModel,n=e&&i.getViewOfSeriesModel(e),r=Aa("update",e,0);n&&e.isAnimationEnabled()&&r&&r.duration>0&&n.group.traverse((function(t){t instanceof io&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function bB(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function xB(t){return Object(s.t)(t)?t.sort().join(","):t}function _B(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function wB(t,e){for(var i=0;i<t.length;i++){if(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)return i}}Vg([function(t){t.registerPainter("canvas",Am)}]),Vg([function(t){t.registerPainter("svg",Ey)}]),Vg([function(t){t.registerChartView(eb),t.registerSeriesModel(bv),t.registerLayout(ib("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ob("line"))},function(t){t.registerChartView(Fb),t.registerSeriesModel(yb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,s.h(hb,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,db("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ob("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(ex),t.registerSeriesModel(ox),Wp("pie",t.registerAction),t.registerLayout(Object(s.h)(Ub,"pie")),t.registerProcessor(qb("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var i=t.getData();i.filterSelf((function(t){var e=i.mapDimension("value"),n=i.get(e,t);return!(Object(s.z)(n)&&!isNaN(n)&&n<0)}))}})},function(t){Vg(vw),t.registerSeriesModel(ax),t.registerChartView(cx),t.registerLayout(ib("scatter"))},function(t){Vg(Lw),t.registerChartView(Sw),t.registerSeriesModel(Cw),t.registerLayout(bw),t.registerProcessor(qb("radar")),t.registerPreprocessor(ww)},function(t){Vg(bC),t.registerChartView(tC),t.registerSeriesModel(eC),t.registerLayout(nC),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,iC),Wp("map",t.registerAction)},function(t){t.registerChartView(RC),t.registerSeriesModel(JC),t.registerLayout(eM),t.registerVisual(iM),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,i){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=mC(e.coordinateSystem,t,void 0,i);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))}(t)},function(t){t.registerSeriesModel(oM),t.registerChartView(gM),t.registerVisual(LM),t.registerLayout(GM),function(t){for(var e=0;e<nM.length;e++)t.registerAction({type:nM[e],update:"updateView"},s.L);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,i){var n=XC(t,["treemapZoomToNode","treemapRootToNode"],e);if(n){var r=e.getViewRoot();r&&(t.direction=KC(r,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}))}))}(t)},function(t){t.registerChartView(Hk),t.registerSeriesModel(Zk),t.registerProcessor(qM),t.registerVisual(XM),t.registerVisual(KM),t.registerLayout(ak),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,fk),t.registerLayout(mk),t.registerCoordinateSystem("graphView",{dimensions:aC.dimensions,create:yk}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s.L),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s.L),t.registerAction(Kk,(function(t,e,i){e.eachComponent({mainType:"series",query:t},(function(e){var n=mC(e.coordinateSystem,t,void 0,i);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},function(t){t.registerChartView(eO),t.registerSeriesModel(iO)},function(t){t.registerChartView(oO),t.registerSeriesModel(aO),t.registerLayout(sO),t.registerProcessor(qb("funnel"))},function(t){Vg(jA),t.registerChartView(dO),t.registerSeriesModel(fO),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,mO)},function(t){t.registerChartView(zA),t.registerSeriesModel(BA),t.registerLayout(VA),t.registerVisual(QA),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(eI),t.registerChartView(lI),t.registerLayout(cI),t.registerTransform(hI)},function(t){t.registerChartView(LI),t.registerSeriesModel(jI),t.registerPreprocessor(NI),t.registerVisual(bI),t.registerLayout(RI)},function(t){t.registerChartView(VI),t.registerSeriesModel(FI),t.registerLayout(ib("effectScatter"))},function(t){t.registerChartView(XI),t.registerSeriesModel(JI),t.registerLayout(qI),t.registerVisual(eT)},function(t){t.registerChartView(rT),t.registerSeriesModel(oT)},function(t){t.registerChartView(kT),t.registerSeriesModel(OT),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(s.h)(hb,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,db("pictorialBar"))},function(t){t.registerChartView(AT),t.registerSeriesModel(IT),t.registerLayout(TT),t.registerProcessor(qb("themeRiver"))},function(t){t.registerChartView(PT),t.registerSeriesModel(jT),t.registerLayout(Object(s.h)(ET,"sunburst")),t.registerProcessor(Object(s.h)(qb,"sunburst")),t.registerVisual(RT),function(t){t.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){var n=XC(t,["sunburstRootToNode"],e);if(n){var r=e.getViewRoot();r&&(t.direction=KC(r,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}))})),t.registerAction({type:"sunburstHighlight",update:"none"},(function(t,e,i){t=Object(s.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var i=XC(t,["sunburstHighlight"],e);i&&(t.dataIndex=i.node.dataIndex)})),i.dispatchAction(Object(s.m)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,i){t=Object(s.m)({},t),i.dispatchAction(Object(s.m)(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(CD),t.registerSeriesModel(FT)}]),Vg((function(t){Vg(vw),Vg(ML)})),Vg((function(t){Vg(ML),aw.registerAxisPointerClass("PolarAxisPointer",AL),t.registerCoordinateSystem("polar",$L),t.registerComponentModel(IL),t.registerComponentView(sP),wx(t,"angle",DL,oP),wx(t,"radius",LL,aP),t.registerComponentView(ZL),t.registerComponentView(eP),t.registerLayout(Object(s.h)(rP,"bar"))})),Vg(bC),Vg((function(t){Vg(ML),aw.registerAxisPointerClass("SingleAxisPointer",OP),t.registerComponentView(AP),t.registerComponentView(pP),t.registerComponentModel(gP),wx(t,"single",gP,gP.defaultOption),t.registerCoordinateSystem("single",xP)})),Vg(jA),Vg((function(t){t.registerComponentModel(TP),t.registerComponentView(DP),t.registerCoordinateSystem("calendar",PP)})),Vg((function(t){t.registerComponentModel(zP),t.registerComponentView(FP),t.registerPreprocessor((function(t){var e=t.graphic;Object(s.t)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),Vg((function(t){t.registerComponentModel(fj),t.registerComponentView(mj),dj("saveAsImage",yj),dj("magicType",_j),dj("dataView",Aj),dj("dataZoom",tN),dj("restore",Pj),Vg(uj)})),Vg((function(t){Vg(ML),t.registerComponentModel(eN),t.registerComponentView(_N),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s.L),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s.L)})),Vg(ML),Vg((function(t){t.registerComponentView(zN),t.registerComponentModel(VN),t.registerPreprocessor(SN),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PN),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s.L),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s.L),dj("brush",HN)})),Vg((function(t){t.registerComponentModel($N),t.registerComponentView(GN)})),Vg((function(t){t.registerComponentModel(YN),t.registerComponentView(tE),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,i){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Object(s.i)({currentIndex:n.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}))}(t),t.registerPreprocessor(eE)})),Vg((function(t){t.registerComponentModel(uE),t.registerComponentView(_E),t.registerPreprocessor((function(t){rE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Vg((function(t){t.registerComponentModel(wE),t.registerComponentView(IE),t.registerPreprocessor((function(t){rE(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Vg((function(t){t.registerComponentModel(TE),t.registerComponentView(zE),t.registerPreprocessor((function(t){rE(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Vg((function(t){Vg(KE),Vg(rR)})),Vg((function(t){Vg(yR),Vg(CR)})),Vg(yR),Vg(CR),Vg((function(t){Vg(oz),Vg(hz)})),Vg(oz),Vg(hz),Vg((function(t){t.registerPreprocessor(mz),t.registerVisual(t.PRIORITY.VISUAL.ARIA,gz)})),Vg((function(t){t.registerTransform(Az),t.registerTransform(Iz)})),Vg((function(t){t.registerComponentModel(Tz),t.registerComponentView(Dz)})),Vg((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,i){Object(s.k)(Ki(i.seriesTransition),(function(t){Object(s.k)(Ki(t.to),(function(t){for(var e=i.updatedSeries,n=0;n<e.length;n++)(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)&&(e[n].__universalTransitionEnabled=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,i){var n=hB(e);if(n.oldSeries&&i.updatedSeries&&i.optionChanged){var r=i.seriesTransition;if(r)Object(s.k)(Ki(r),(function(t){!function(t,e,i,n){var r=[],o=[];Object(s.k)(Ki(t.from),(function(t){var i=wB(e.oldSeries,t);i>=0&&r.push({dataGroupId:e.oldDataGroupIds[i],data:e.oldData[i],divide:_B(e.oldData[i]),groupIdDim:t.dimension})})),Object(s.k)(Ki(t.to),(function(t){var n=wB(i.updatedSeries,t);if(n>=0){var r=i.updatedSeries[n].getData();o.push({dataGroupId:e.oldDataGroupIds[n],data:r,divide:_B(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&vB(r,o,n)}(t,n,i,e)}));else{var o=function(t,e){var i=Object(s.f)(),n=Object(s.f)(),r=Object(s.f)();return Object(s.k)(t.oldSeries,(function(e,i){var o=t.oldDataGroupIds[i],a=t.oldData[i],l=bB(e),u=xB(l);n.set(u,{dataGroupId:o,data:a}),Object(s.t)(l)&&Object(s.k)(l,(function(t){r.set(t,{key:u,dataGroupId:o,data:a})}))})),Object(s.k)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=bB(t),l=xB(a),u=n.get(l);if(u)i.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_B(u.data),data:u.data}],newSeries:[{dataGroupId:e,divide:_B(o),data:o}]});else if(Object(s.t)(a)){0;var c=[];Object(s.k)(a,(function(t){var e=n.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:_B(e.data),data:e.data})})),c.length&&i.set(l,{oldSeries:c,newSeries:[{dataGroupId:e,data:o,divide:_B(o)}]})}else{var h=r.get(a);if(h){var d=i.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:_B(h.data)}],newSeries:[]},i.set(h.key,d)),d.newSeries.push({dataGroupId:e,data:o,divide:_B(o)})}}}})),i}(n,i);Object(s.k)(o.keys(),(function(t){var i=o.get(t);vB(i.oldSeries,i.newSeries,e)}))}Object(s.k)(i.updatedSeries,(function(t){t.__universalTransitionEnabled&&(t.__universalTransitionEnabled=!1)}))}for(var a=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],h=0;h<a.length;h++){var d=a[h].getData();d.count()<1e4&&(l.push(a[h]),u.push(a[h].get("dataGroupId")),c.push(d))}}))})),Vg(Mm);var SB=i(29),CB=i(17),MB=i(25),kB=i(2);const OB=["#56C08D","#EDC66B","#EA6E64","#9CDFDF","#1B73BB","#CB6B96","#994C0A","#006C45","#EAA87E","#03AAB6","#F9DEA7","#F4B4AC","#B3D1FD","#C47738","#5DA3EA"];function AB(t,e){if(null==e||""===e)return NaN;const i=String(e).trim();if(Number.isFinite(Number(i))&&String(i)===String(Number(i)))return Number(i);if(i.includes("T")||i.includes("-")&&i.split("-").length>=3&&i.length>=10){return new Date(i.replace(/-/g,"/")).getTime()}const n=String(t||"").split(/\s+/)[0]||"";if(!n){return new Date(i.replace(/-/g,"/")).getTime()}return new Date(`${n} ${i}`.replace(/-/g,"/")).getTime()}function IB(t,e,i,n){const r=Math.max(t,i),o=Math.min(e,n);return o<=r?null:{start:r,end:o}}function TB(t){const{payload:e,showSummary:i=!0,summaryLabel:n="汇总",displayLegend:r=!0,legendMaxItemsPerRow:o=6,legendItemApproxWidth:a=88,legendScrollWidth:s=null,legendOption:l={},colorMap:u={},presetColors:c=OB,dataZoom:h,enableDataZoom:d=!0,xAxisOption:p={},yAxisOption:f={},grid:g={},gapColor:m="#E4E7ED",fillSummaryGaps:y=!0,tooltipFormatter:v,dynamicWindowMs:b=null,animationDuration:x=300,animationDurationUpdate:_=600,echartsOption:w={},categories:S}=t,C=Array.isArray(e&&e.yAxis)?e.yAxis:[],M=e&&e.startTime,k=e&&e.endTime;let O=AB(M,M),A=AB(M,k);if(!Number.isFinite(O)||!Number.isFinite(A))return{_invalid:!0};A<=O&&(A=O+36e5);const I=O,T=A,D=function(t,e){const{startTime:i,summaries:n=[]}=t||{},r=(Array.isArray(n)?n:[]).map((t,e)=>{const n=AB(i,t.startTime),r=AB(i,t.endTime);return{...t,_i:e,_start:n,_end:r}}).filter(t=>Number.isFinite(t._start)&&Number.isFinite(t._end)&&t._end>t._start).sort((t,e)=>t._start-e._start);return r.length>e?("undefined"!=typeof console&&console.warn,r.slice(-e)):r}(e,null!=t.maxSegments?t.maxSegments:4e3);"number"==typeof b&&b>0&&(A=T,O=Math.max(I,T-b));const L=function(t,e,i){const n=e&&"object"==typeof e&&!Array.isArray(e)?{...e}:{},r=Array.isArray(i)&&i.length?i:OB;return e=>{const i=String(e);if(null!=n[i]&&""!==n[i])return n[i];const o=t.findIndex(t=>String(t.statusCode)===i);if(o>=0)return r[o%r.length];let a=0;for(let t=0;t<i.length;t++)a=(a+i.charCodeAt(t)*(t+1))%r.length;return r[Math.abs(a)%r.length]}}(C,u,c),P={color:"#666",fontSize:12},j=S||(i?[n,...C.map(t=>t.statusName||t.statusCode)]:C.map(t=>t.statusName||t.statusCode)),N=[];let E=-1;i&&(E=0,N.push(...function(t,e,i,n,r,o,a){const s=[];if(!a){for(const o of t){const t=IB(o._start,o._end,e,i);t&&s.push({value:[n,t.start,t.end],itemStyle:{color:r(o.statusCode)},segmentRaw:o,isGap:!1})}return s}let l=e;for(const a of t){const t=a._start,u=a._end;if(t>l){const r=IB(l,t,e,i);r&&s.push({value:[n,r.start,r.end],itemStyle:{color:o},isGap:!0})}const c=IB(t,u,e,i);c&&s.push({value:[n,c.start,c.end],itemStyle:{color:r(a.statusCode)},segmentRaw:a,isGap:!1}),l=Math.max(l,u)}if(l<i){const t=IB(l,i,e,i);t&&s.push({value:[n,t.start,t.end],itemStyle:{color:o},isGap:!0})}return s}(D,O,A,E,L,m,y))),C.forEach((t,e)=>{const n=i?e+1:e;N.push(...function(t,e,i,n,r,o){const a=String(r),s=[];for(const r of t){if(String(r.statusCode)!==a)continue;const t=IB(r._start,r._end,e,i);t&&s.push({value:[n,t.start,t.end],itemStyle:{color:o(r.statusCode)},segmentRaw:r,isGap:!1})}return s}(D,O,A,n,t.statusCode,L))});const R=C.map(t=>{const e=t.statusName||String(t.statusCode),i=L(t.statusCode);return{name:e,type:"line",data:[],silent:!0,legendHoverLink:!1,symbol:"none",lineStyle:{width:0,opacity:0,color:i},itemStyle:{color:i},emphasis:{disabled:!0},tooltip:{show:!1}}}),z={left:72,right:24,top:r?76:24,bottom:d?76:56,containLabel:!1};const B=C.length,V=Math.max(1,Number(o)||6),F=Math.max(40,Number(a)||88),H=r&&B>V;let $=s;H&&null==$&&($=Math.round(V*F+72));const G={animation:!0,animationDuration:x,animationDurationUpdate:_,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut",tooltip:{trigger:"item",confine:!0,backgroundColor:"rgba(40,40,40,0.92)",borderWidth:0,textStyle:{color:"#fff",fontSize:12},formatter:v||(t=>{const e=t.data;if(!e||!e.segmentRaw)return e&&e.isGap?"无状态 / 空档":"";const i=e.segmentRaw,n=e.itemStyle&&e.itemStyle.color?e.itemStyle.color:"#999",r=i.statusName||i.statusCode,o=function(t){const e=Math.max(0,Math.floor(Number(t)||0));return`${Math.floor(e/3600)}小时${Math.floor(e%3600/60)}分${e%60}秒`}(i.duration);return`\n <div style="padding:4px 2px;line-height:1.6;">\n <div><span style="display:inline-block;width:8px;height:8px;border-radius:2px;background:${n};margin-right:6px;vertical-align:middle;"></span>${r}</div>\n <div>时间段:${i.startTime} - ${i.endTime}</div>\n <div>持续时间:${o}</div>\n </div>`})},legend:r?Object(kB.m)({top:10,orient:"horizontal",type:H?"scroll":"plain",icon:"roundRect",data:C.map(t=>t.statusName||String(t.statusCode)),selectedMode:!1,padding:[0,0,10,0],textStyle:{...P},...H?{width:$,pageButtonItemGap:6,pageButtonGap:10,pageIconSize:12,pageIconColor:P.color,pageIconInactiveColor:"#c0c4cc",pageTextStyle:{color:P.color,fontSize:12},animation:!0,animationDurationUpdate:300}:{}},l):{show:!1},grid:Object(kB.m)(z,g),xAxis:Object(kB.m)({type:"time",min:O,max:A,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{color:"#666",hideOverlap:!0,margin:14},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#eee"}}},p),yAxis:Object(kB.m)({type:"category",data:j,inverse:!1,boundaryGap:["10%","16%"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{...P},splitLine:{show:!1}},f),series:[...R,{type:"custom",name:"__statusTimeline",legendHoverLink:!1,coordinateSystem:"cartesian2d",clip:!0,renderItem:function(t,e){const i=e.value(0),n=e.coord([e.value(1),i]),r=e.coord([e.value(2),i]);if(!n||!r)return null;const o=Math.max(6,.4*e.size([0,1])[1]),a=Math.min(n[0],r[0]),s=Math.max(n[0],r[0])-a;if(s<.5)return null;let l={x:a,y:n[1]-o/2,width:s,height:o};const u=t.coordSys;return u&&null!=u.width&&null!=u.height&&(l=function(t,e){if(!e||null==e.width||null==e.height||null==e.x||null==e.y)return t;const i=Math.max(t.x,e.x),n=Math.max(t.y,e.y),r=Math.min(t.x+t.width,e.x+e.width)-i,o=Math.min(t.y+t.height,e.y+e.height)-n;return r<.5||o<.5?null:{x:i,y:n,width:r,height:o}}(l,{x:u.x,y:u.y,width:u.width,height:u.height}),!l)?null:{type:"rect",shape:l,style:e.style()}},encode:{x:[1,2],y:0},data:N,z:2}]};if(d){let t=h;!0!==t&&null!=t||(t=[{type:"inside",xAxisIndex:0,filterMode:"weakFilter",zoomOnMouseWheel:!0,moveOnMouseMove:!0},{type:"slider",xAxisIndex:0,height:22,bottom:6,filterMode:"weakFilter"}]),Array.isArray(t)?G.dataZoom=t:"object"==typeof t&&(G.dataZoom=[t])}return Object(kB.m)(G,w)}var DB={name:"UiStatusTimelineChart",components:{UiNoData:SB.default},directives:{init:CB.default,resize:MB.default},props:{chartData:{type:Object,default:null},showSummary:{type:Boolean,default:!0},summaryLabel:{type:String,default:"汇总"},displayLegend:{type:Boolean,default:!0},legendMaxItemsPerRow:{type:Number,default:6},legendItemApproxWidth:{type:Number,default:88},legendScrollWidth:{type:[Number,String],default:null},legendOption:{type:Object,default:()=>({})},colorMap:{type:Object,default:()=>({})},presetColors:{type:Array,default:()=>[...OB]},enableDataZoom:{type:Boolean,default:!0},dataZoom:{type:[Array,Object,Boolean],default:null},xAxisOption:{type:Object,default:()=>({})},yAxisOption:{type:Object,default:()=>({})},grid:{type:Object,default:()=>({})},theme:{type:[String,Object],default:null},mode:{type:String,default:"static",validator:t=>"static"===t||"dynamic"===t},refreshInterval:{type:Number,default:2e3},request:{type:Function,default:null},dynamicWindowMs:{type:Number,default:864e5},fillSummaryGaps:{type:Boolean,default:!0},gapColor:{type:String,default:"#E4E7ED"},maxSegments:{type:Number,default:4e3},animationDuration:{type:Number,default:300},animationDurationUpdate:{type:Number,default:650},notMerge:{type:Boolean,default:!1},lazyUpdate:{type:Boolean,default:!0},beforeRender:{type:Function,default:null},afterRender:{type:Function,default:null},echartsOption:{type:Object,default:()=>({})},tooltipFormatter:{type:Function,default:null}},data:()=>({echartInstance:null,optionBuffer:null,pollTimer:null,requestSeq:0,unmounted:!1,internalChartData:null}),computed:{hasData(){const t=this.effectiveData;if(!t||"object"!=typeof t)return!1;const e=t.yAxis,i=t.summaries;return Array.isArray(e)&&e.length>0&&Array.isArray(i)&&i.length>0},effectiveData(){return null!=this.chartData&&"object"==typeof this.chartData?this.chartData:this.internalChartData},dataZoomEnabled(){return"dynamic"!==this.mode&&!1!==this.enableDataZoom}},watch:{theme(){this.rerender()},chartData:{deep:!0,handler(){"static"===this.mode&&this.scheduleRender()}},showSummary(){this.scheduleRender()},summaryLabel(){this.scheduleRender()},displayLegend(){this.scheduleRender()},legendMaxItemsPerRow(){this.scheduleRender()},legendItemApproxWidth(){this.scheduleRender()},legendScrollWidth(){this.scheduleRender()},legendOption:{deep:!0,handler(){this.scheduleRender()}},colorMap:{deep:!0,handler(){this.scheduleRender()}},presetColors:{deep:!0,handler(){this.scheduleRender()}},mode(t){this.stopPoll(),"dynamic"===t&&this.startPoll(),this.scheduleRender()},refreshInterval(){"dynamic"===this.mode&&(this.stopPoll(),this.startPoll())},request:{handler(){"dynamic"===this.mode&&(this.stopPoll(),this.startPoll())}}},created(){this.chartResize=Object(kB.a)((function(){this.echartInstance&&this.echartInstance.resize()}),200),this.scheduleRender=Object(kB.a)((function(){this.renderFromBuffer()}),50)},mounted(){"dynamic"===this.mode&&this.startPoll()},beforeDestroy(){this.unmounted=!0,this.stopPoll(),this.echartInstance&&(this.echartInstance.dispose(),this.echartInstance=null)},methods:{chartInit(t){this.echartInstance=kg(t,this.theme||null,{renderer:"canvas",useDirtyRect:!1}),this.renderFromBuffer()},buildOption(){if(!this.hasData)return null;const t=this.dataZoomEnabled&&(null==this.dataZoom||this.dataZoom);let e=TB({payload:this.effectiveData,showSummary:this.showSummary,summaryLabel:this.summaryLabel,displayLegend:this.displayLegend,legendMaxItemsPerRow:this.legendMaxItemsPerRow,legendItemApproxWidth:this.legendItemApproxWidth,legendScrollWidth:this.legendScrollWidth,legendOption:this.legendOption,colorMap:this.colorMap,presetColors:this.presetColors,dataZoom:!0===t?void 0:t,enableDataZoom:!!this.dataZoomEnabled&&!1!==t,xAxisOption:this.xAxisOption,yAxisOption:this.yAxisOption,grid:this.grid,gapColor:this.gapColor,fillSummaryGaps:this.fillSummaryGaps,tooltipFormatter:this.tooltipFormatter,dynamicWindowMs:"dynamic"===this.mode?this.dynamicWindowMs:null,maxSegments:this.maxSegments,animationDuration:this.animationDuration,animationDurationUpdate:this.animationDurationUpdate,echartsOption:this.echartsOption});return e&&e._invalid?null:(this.beforeRender&&(e=this.beforeRender(e)||e),e)},renderFromBuffer(){const t=this.buildOption();this.optionBuffer=t,this.echartInstance&&t&&(this.echartInstance.setOption(t,{notMerge:this.notMerge,lazyUpdate:this.lazyUpdate}),this.afterRender&&this.afterRender(this.echartInstance),this.$emit("rendered",this.echartInstance))},rerender(){this.echartInstance&&(this.echartInstance.dispose(),this.echartInstance=null),this.$nextTick(()=>{const t=this.$el&&this.$el.querySelector(".ui-status-timeline-chart__inner");t&&this.hasData&&(this.echartInstance=kg(t,this.theme||null,{renderer:"canvas",useDirtyRect:!1}),this.renderFromBuffer())})},refresh(){this.scheduleRender()},getEchartsInstance(){return this.echartInstance},stopPoll(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)},startPoll(){if(this.stopPoll(),"dynamic"!==this.mode||"function"!=typeof this.request)return;const t=async()=>{if(this.unmounted)return;const t=++this.requestSeq;try{const e=await this.request();if(this.unmounted||t!==this.requestSeq)return;e&&"object"==typeof e&&(this.$emit("data-loaded",e),this.applyExternalData(e))}catch(t){this.unmounted||this.$emit("load-error",t)}};t(),this.pollTimer=setInterval(t,Math.max(500,this.refreshInterval))},applyExternalData(t){this.internalChartData=t;const e=TB({payload:t,showSummary:this.showSummary,summaryLabel:this.summaryLabel,displayLegend:this.displayLegend,legendMaxItemsPerRow:this.legendMaxItemsPerRow,legendItemApproxWidth:this.legendItemApproxWidth,legendScrollWidth:this.legendScrollWidth,legendOption:this.legendOption,colorMap:this.colorMap,presetColors:this.presetColors,dataZoom:!1,enableDataZoom:!1,xAxisOption:this.xAxisOption,yAxisOption:this.yAxisOption,grid:this.grid,gapColor:this.gapColor,fillSummaryGaps:this.fillSummaryGaps,tooltipFormatter:this.tooltipFormatter,dynamicWindowMs:this.dynamicWindowMs,maxSegments:this.maxSegments,animationDuration:this.animationDuration,animationDurationUpdate:this.animationDurationUpdate,echartsOption:this.echartsOption});if(!e||e._invalid)return;let i=this.beforeRender&&this.beforeRender(e)||e;this.optionBuffer=i,this.echartInstance&&(this.echartInstance.setOption(i,{notMerge:this.notMerge,lazyUpdate:this.lazyUpdate}),this.afterRender&&this.afterRender(this.echartInstance),this.$emit("rendered",this.echartInstance))}}},LB=i(15),PB=i.n(LB),jB=i(115),NB={insert:"head",singleton:!1},EB=(PB()(jB.a,NB),jB.a.locals,i(1)),RB=Object(EB.a)(DB,(function(){var t=this._self._c;return t("div",{staticClass:"ui-status-timeline-chart"},[t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:this.hasData,expression:"hasData"},{name:"init",rawName:"v-init",value:this.chartInit,expression:"chartInit"},{name:"resize",rawName:"v-resize",value:this.chartResize,expression:"chartResize"}],staticClass:"ui-status-timeline-chart__inner"})]),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!this.hasData,expression:"!hasData"}],staticClass:"ui-status-timeline-chart__empty"},[t("ui-no-data")],1)])],1)}),[],!1,null,"085579d8",null).exports;RB.install=function(t){t.component(RB.name,RB)};e.default=RB},function(t,e,i){"use strict";i.r(e);var n=i(13),r=i(27),o=i(18),a=i(12);var s={name:"UiTimePickerTimePane",components:{UiButton:o.a},props:{value:{type:Date},type:{type:String,default:"hour-minute-second"},readonly:Boolean,arrowControl:{type:Boolean,default:!1}},data:()=>({hours:Array.from({length:24},(t,e)=>e),minutes:Array.from({length:60},(t,e)=>e),seconds:Array.from({length:60},(t,e)=>e),timers:{}}),computed:{showHour(){return this.type.includes("hour")},showMinute(){return this.type.includes("minute")},showSecond(){return this.type.includes("second")},currentHour(){return this.value?this.value.getHours():0},currentMinute(){return this.value?this.value.getMinutes():0},currentSecond(){return this.value?this.value.getSeconds():0}},watch:{value:{handler(t){t&&this.$nextTick(this.scrollInit)},immediate:!0}},directives:{clickoutside:a.default},mounted(){this.$nextTick(this.scrollInit)},updated(){this.$nextTick(this.scrollInit)},methods:{formatTime:t=>t<10?"0"+t:""+t,handleClose(t,e){const i=e.target;!this.$parent.$el.contains(i)&&this.$emit("close",t,e)},handleArrowClick(t,e){let i=0,n=59;"hour"===t?(i=this.currentHour,n=23):"minute"===t?i=this.currentMinute:"second"===t&&(i=this.currentSecond);let r=i+e;r<0?r=n:r>n&&(r=0),this.updateValue(t,r),this.scrollToPosition(t,r)},handleItemClick(t,e){this.updateValue(t,e),this.scrollToPosition(t,e)},getItemHeight(t){let e="";"hour"===t&&(e="hourCol"),"minute"===t&&(e="minuteCol"),"second"===t&&(e="secondCol");const i=this.$refs[e];if(i){const t=i.querySelector(".ui-timepicker-time-pane__item");if(t)return t.offsetHeight}return 32},scrollInit(){this.scrollToPosition("hour",this.currentHour),this.scrollToPosition("minute",this.currentMinute),this.scrollToPosition("second",this.currentSecond)},scrollToPosition(t,e){let i="";"hour"===t&&(i="hourCol"),"minute"===t&&(i="minuteCol"),"second"===t&&(i="secondCol");const n=this.$refs[i];if(!n)return;const r=e*this.getItemHeight(t);n.scrollTop!==r&&(n.scrollTop=r)},handleScroll(t,e){const i=e.target;this.timers[t]&&clearTimeout(this.timers[t]),this.timers[t]=setTimeout(()=>{const e=i.scrollTop,n=this.getItemHeight(t);if(n<=0)return;let r=Math.round(e/n);const o="hour"===t?23:59;r<0&&(r=0),r>o&&(r=o),i.scrollTop=r*n,this.updateValue(t,r)},50)},updateValue(t,e){const i=this.value||new Date((new Date).setHours(0,0,0,0)),n=new Date(i.getTime());"hour"===t&&n.setHours(e),"minute"===t&&n.setMinutes(e),"second"===t&&n.setSeconds(e),!this.readonly&&this.$emit("input",n)}}},l=i(1),u=Object(l.a)(s,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],class:["ui-timepicker-time-pane",t.arrowControl?"is-arrow-control":""]},[t.arrowControl?e("div",{staticClass:"ui-timepicker-time-pane__arrow arrow-up"},[t.showHour?e("ui-button",{staticClass:"hour-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("hour",-1)}}},[e("i",{staticClass:"ui-icon-arrow-up"})]):t._e(),t.showMinute?e("ui-button",{staticClass:"minute-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("minute",-1)}}},[e("i",{staticClass:"ui-icon-arrow-up"})]):t._e(),t.showSecond?e("ui-button",{staticClass:"second-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("second",-1)}}},[e("i",{staticClass:"ui-icon-arrow-up"})]):t._e()],1):t._e(),t.showHour?e("div",{ref:"hourCol",staticClass:"ui-timepicker-time-pane__column",on:{scroll:function(e){return t.handleScroll("hour",e)}}},[e("ul",{staticClass:"ui-timepicker-time-pane__list"},t._l(t.hours,(function(i){return e("li",{key:i,staticClass:"ui-timepicker-time-pane__item",class:{"is-selected":i===t.currentHour},on:{click:function(e){return t.handleItemClick("hour",i)}}},[t._v("\n "+t._s(t.formatTime(i))+"\n ")])})),0),e("div",{staticClass:"ui-timepicker-time-pane__mask"})]):t._e(),t.showMinute?e("div",{ref:"minuteCol",staticClass:"ui-timepicker-time-pane__column",on:{scroll:function(e){return t.handleScroll("minute",e)}}},[e("ul",{staticClass:"ui-timepicker-time-pane__list"},t._l(t.minutes,(function(i){return e("li",{key:i,staticClass:"ui-timepicker-time-pane__item",class:{"is-selected":i===t.currentMinute},on:{click:function(e){return t.handleItemClick("minute",i)}}},[t._v("\n "+t._s(t.formatTime(i))+"\n ")])})),0),e("div",{staticClass:"ui-timepicker-time-pane__mask"})]):t._e(),t.showSecond?e("div",{ref:"secondCol",staticClass:"ui-timepicker-time-pane__column",on:{scroll:function(e){return t.handleScroll("second",e)}}},[e("ul",{staticClass:"ui-timepicker-time-pane__list"},t._l(t.seconds,(function(i){return e("li",{key:i,staticClass:"ui-timepicker-time-pane__item",class:{"is-selected":i===t.currentSecond},on:{click:function(e){return t.handleItemClick("second",i)}}},[t._v("\n "+t._s(t.formatTime(i))+"\n ")])})),0),e("div",{staticClass:"ui-timepicker-time-pane__mask"})]):t._e(),t.arrowControl?e("div",{staticClass:"ui-timepicker-time-pane__arrow arrow-down"},[t.showHour?e("ui-button",{staticClass:"hour-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("hour",1)}}},[e("i",{staticClass:"ui-icon-arrow-down"})]):t._e(),t.showMinute?e("ui-button",{staticClass:"minute-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("minute",1)}}},[e("i",{staticClass:"ui-icon-arrow-down"})]):t._e(),t.showSecond?e("ui-button",{staticClass:"second-arrow",attrs:{textual:""},on:{click:function(e){return e.stopPropagation(),t.handleArrowClick("second",1)}}},[e("i",{staticClass:"ui-icon-arrow-down"})]):t._e()],1):t._e()])}),[],!1,null,"2b5162ec",null).exports,c={name:"UiTimePickerDatePane",props:{value:{type:Date,default:null},mode:{type:String,default:"date"},readonly:Boolean,range:{type:Array,default:()=>[]},hoverDate:{type:Date,default:null},viewDate:{type:Date,default:null}},data:()=>({weekDays:["日","一","二","三","四","五","六"],innerViewDate:null}),computed:{effectiveViewDate(){return this.viewDate||this.innerViewDate||new Date},currentYear(){return this.effectiveViewDate.getFullYear()},currentMonth(){return this.effectiveViewDate.getMonth()},calendarList(){const t=[],e=this.currentYear,i=this.currentMonth,n=new Date(e,i,1).getDay(),r=new Date(e,i+1,0).getDate(),o=new Date(e,i,0).getDate();for(let r=n-1;r>=0;r--)t.push({day:o-r,type:"prev",date:new Date(e,i-1,o-r)});for(let n=1;n<=r;n++)t.push({day:n,type:"current",date:new Date(e,i,n)});const a=42-t.length;for(let n=1;n<=a;n++)t.push({day:n,type:"next",date:new Date(e,i+1,n)});return t}},watch:{viewDate:{handler(t){t&&(this.innerViewDate=new Date(t))},immediate:!0},value:{handler(t){t&&"date"===this.mode&&!this.viewDate&&(this.innerViewDate=new Date(t))},immediate:!0},range:{handler(t){t&&t.length>0&&"range"===this.mode&&!this.viewDate&&!this.innerViewDate&&(this.innerViewDate=new Date(t[0]))},immediate:!0}},directives:{clickoutside:a.default},mounted(){this.innerViewDate||(this.innerViewDate=new Date)},methods:{scrollInit(){},handleClose(t,e){const i=e.target;!this.$parent.$el.contains(i)&&this.$emit("close")},handleYearChange(t){if(this.readonly)return;const e=new Date(this.effectiveViewDate);e.setFullYear(e.getFullYear()+t),this.innerViewDate=e,this.$emit("view-change",e)},handleMonthChange(t){if(this.readonly)return;const e=new Date(this.effectiveViewDate);e.setMonth(e.getMonth()+t),this.innerViewDate=e,this.$emit("view-change",e)},getRangeBoundaries(){if("range"!==this.mode)return null;const t=this.range&&this.range[0]?this.range[0]:null;let e=null;if(this.range&&this.range[1]?e=this.range[1]:this.hoverDate&&(e=this.hoverDate),!t||!e)return null;return t.getTime()<=e.getTime()?{start:t,end:e}:{start:e,end:t}},isSelectedDay(t){return"range"===this.mode?this.isStartDate(t.date)||this.isEndDate(t.date):!!this.value&&this.isSameDate(t.date,this.value)},isToday(t){const e=new Date;return this.isSameDate(t.date,e)},isInRange(t){const e=this.getRangeBoundaries();if(!e)return!1;const i=t.getTime(),n=new Date(e.start);n.setHours(0,0,0,0);const r=new Date(e.end);return r.setHours(23,59,59,999),i>=n.getTime()&&i<=r.getTime()},isStartDate(t){const e=this.getRangeBoundaries();return!!e&&this.isSameDate(t,e.start)},isEndDate(t){const e=this.getRangeBoundaries();return!!e&&this.isSameDate(t,e.end)},isSameDate:(t,e)=>!(!t||!e)&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()),handleSelectDay(t){if(this.readonly)return;const e=t.date;"date"===this.mode?("current"!==t.type&&(this.innerViewDate=new Date(e),this.$emit("view-change",this.innerViewDate)),this.$emit("input",e),this.$emit("pick",e)):("current"!==t.type&&(this.innerViewDate=new Date(e),this.$emit("view-change",this.innerViewDate)),this.$emit("pick",e))},handleHoverDay(t){"range"===this.mode&&this.$emit("hover",t.date)}}},h=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"ui-timepicker-date-pane"},[e("div",{staticClass:"pane-header"},[e("span",{staticClass:"switch-button year-up",on:{click:function(e){return t.handleYearChange(-1)}}},[e("i",{staticClass:"ui-icon-d-arrow-left"})]),e("span",{staticClass:"switch-button month-up",on:{click:function(e){return t.handleMonthChange(-1)}}},[e("i",{staticClass:"ui-icon-arrow-left"})]),e("span",{staticClass:"year-month"},[t._v(t._s(t.currentYear)+"年 "+t._s(t.currentMonth+1)+"月")]),e("span",{staticClass:"switch-button year-down",on:{click:function(e){return t.handleMonthChange(1)}}},[e("i",{staticClass:"ui-icon-arrow-right"})]),e("span",{staticClass:"switch-button month-down",on:{click:function(e){return t.handleYearChange(1)}}},[e("i",{staticClass:"ui-icon-d-arrow-right"})])]),e("div",{staticClass:"week-days"},t._l(t.weekDays,(function(i,n){return e("span",{key:n,staticClass:"week-day-item"},[t._v("\n "+t._s(i)+"\n ")])})),0),e("div",{staticClass:"date-grid"},t._l(t.calendarList,(function(i,n){return e("div",{key:i.date.getTime(),staticClass:"date-cell",class:{"is-other-month":"current"!==i.type,"in-range":t.isInRange(i.date),"start-date":t.isStartDate(i.date),"end-date":t.isEndDate(i.date)},on:{click:function(e){return t.handleSelectDay(i)},mouseenter:function(e){return t.handleHoverDay(i)}}},[e("div",{staticClass:"date-cell__inner",class:{"is-selected":t.isSelectedDay(i),"is-today":t.isToday(i)}},[t._v("\n "+t._s(i.day)+"\n ")])])})),0)])}),[],!1,null,"902e4922",null).exports,p={name:"UiTimePickerDateRangePane",components:{UiTimePickerDatePane:h},props:{value:{type:Array,required:!0,default:()=>[]},readonly:Boolean},data:()=>({leftViewDate:new Date,selecting:!1,tempStart:null,hoverDate:null}),computed:{rightViewDate(){const t=new Date(this.leftViewDate);return t.setMonth(t.getMonth()+1),t},displayRange(){return this.selecting&&this.tempStart?[this.tempStart,null]:this.value}},watch:{value:{handler(t){t&&2===t.length?(this.selecting=!1,this.tempStart=null,this.hoverDate=null):t&&0!==t.length||(this.selecting=!1,this.tempStart=null,this.hoverDate=null)},immediate:!0}},directives:{clickoutside:a.default},methods:{scrollInit(){const t=this.value[0]||new Date;this.leftViewDate=new Date(t)},isSameMonth:(t,e)=>!(!t||!e)&&(t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()),handlePick(t){if(this.selecting){let e=this.tempStart,i=t;e.getTime()>i.getTime()&&([e,i]=[i,e]);const n=[e,i];this.$emit("input",n),this.$emit("pick",n),this.selecting=!1,this.tempStart=null,this.hoverDate=null;const r=this.rightViewDate;if(this.isSameMonth(i,r))return;this.leftViewDate=new Date(e)}else this.selecting=!0,this.tempStart=t,this.hoverDate=t},handleHover(t){this.selecting&&(this.hoverDate=t)},handleClose(t,e){const i=e.target;!this.$parent.$el.contains(i)&&this.$emit("close")},handleLeftViewChange(t){this.leftViewDate=t},handleRightViewChange(t){const e=new Date(t);e.setMonth(e.getMonth()-1),this.leftViewDate=e}}},f=Object(l.a)(p,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.handleClose,expression:"handleClose"}],staticClass:"ui-timepicker-date-range-pane"},[e("ui-time-picker-date-pane",{attrs:{mode:"range","view-date":t.leftViewDate,range:t.displayRange,"hover-date":t.hoverDate,value:null,readonly:t.readonly},on:{pick:t.handlePick,hover:t.handleHover,"view-change":t.handleLeftViewChange}}),e("ui-time-picker-date-pane",{attrs:{mode:"range","view-date":t.rightViewDate,range:t.displayRange,"hover-date":t.hoverDate,value:null,readonly:t.readonly},on:{pick:t.handlePick,hover:t.handleHover,"view-change":t.handleRightViewChange}})],1)}),[],!1,null,"3b2e0b21",null).exports,g=i(17);function m(t,e){if(!(t instanceof Date)||isNaN(t.getTime()))return"";const i=t.getFullYear(),n=t.getMonth(),r=t.getDate(),o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=t.getMilliseconds(),u=t=>String(t).padStart(2,"0"),c={YYYY:()=>String(i),yyyy:()=>String(i),yyy:()=>u(i).slice(-3),YY:()=>u(i%100),yy:()=>u(i%100),y:()=>String(i),MMMM:()=>["","January","February","March","April","May","June","July","August","September","October","November","December"][n+1],MMM:()=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n+1],MM:()=>u(n+1),M:()=>String(n+1),dd:()=>u(r),DD:()=>u(r),d:()=>String(r),HH:()=>u(o),H:()=>String(o),hh:()=>u(o%12==0?12:o%12),h:()=>String(o%12==0?12:o%12),mm:()=>u(a),m:()=>String(a),ss:()=>u(s),s:()=>String(s),SSS:()=>String(l).padStart(3,"0"),A:()=>o<12?"AM":"PM",a:()=>o<12?"am":"pm"},h=["YYYY","yyyy","yyy","YY","yy","MMMM","MMM","MM","M","dd","DD","d","HH","H","hh","h","mm","m","ss","s","SSS","A","a","y"].sort((t,e)=>e.length-t.length);let d=e;for(const t of h)d.includes(t)&&c[t]&&(d=d.split(t).join(c[t]()));return d}function y(t,e){if("string"!=typeof t||!e)return null;const i={year:(new Date).getFullYear(),month:0,day:1,hours:0,minutes:0,seconds:0,milliseconds:0},n=[{key:"YYYY",regex:"(\\d{4})",type:"year"},{key:"yyyy",regex:"(\\d{4})",type:"year"},{key:"yyy",regex:"(\\d{3})",type:"year"},{key:"YY",regex:"(\\d{2})",type:"yy"},{key:"yy",regex:"(\\d{2})",type:"yy"},{key:"y",regex:"(\\d{1,4})",type:"year"},{key:"MMMM",regex:"(January|February|March|April|May|June|July|August|September|October|November|December)",type:"monthName"},{key:"MMM",regex:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",type:"monthAbbr"},{key:"MM",regex:"(\\d{2})",type:"month"},{key:"M",regex:"(\\d{1,2})",type:"month"},{key:"dd",regex:"(\\d{2})",type:"day"},{key:"DD",regex:"(\\d{2})",type:"day"},{key:"d",regex:"(\\d{1,2})",type:"day"},{key:"HH",regex:"(\\d{2})",type:"HH"},{key:"H",regex:"(\\d{1,2})",type:"HH"},{key:"hh",regex:"(\\d{2})",type:"h12"},{key:"h",regex:"(\\d{1,2})",type:"h12"},{key:"mm",regex:"(\\d{2})",type:"mm"},{key:"m",regex:"(\\d{1,2})",type:"m"},{key:"ss",regex:"(\\d{2})",type:"ss"},{key:"s",regex:"(\\d{1,2})",type:"s"},{key:"SSS",regex:"(\\d{1,3})",type:"milliseconds"},{key:"A",regex:"(AM|PM)",type:"AMPM"},{key:"a",regex:"(am|pm)",type:"AMPM"}],r={};for(const t of n)r[t.key]=t;const o=n.map(t=>t.key).sort((t,e)=>e.length-t.length);let a="",s=0;const l=[];for(;s<e.length;){let t=!1;for(const i of o){const n=r[i];if(e.slice(s,s+i.length)===i){a+=n.regex,l.push({key:i,type:n.type}),s+=i.length,t=!0;break}}if(!t){const t=e[s];a+=/[.*+?^${}()|[\]\\]/.test(t)?"\\"+t:t,s++}}const u=new RegExp("^"+a+"$"),c=t.match(u);if(!c)return null;const h={...i};for(let t=0;t<l.length;t++){const e=c[t+1],{key:i,type:n}=l[t];switch(n){case"year":h.year=parseInt(e,10);break;case"yy":h.year=parseInt(e,10)+(parseInt(e,10)<69?2e3:1900);break;case"monthName":h.month=["","January","February","March","April","May","June","July","August","September","October","November","December"].indexOf(e)-1;break;case"monthAbbr":h.month=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].indexOf(e);break;case"month":h.month=parseInt(e,10)-1;break;case"day":h.day=parseInt(e,10);break;case"HH":case"h12":h.hours=parseInt(e,10);break;case"mm":case"m":h.minutes=parseInt(e,10);break;case"ss":case"s":h.seconds=parseInt(e,10);break;case"milliseconds":h.milliseconds=parseInt(e,10);break;case"AMPM":"PM"===e.toUpperCase()&&12!==h.hours&&(h.hours+=12),"AM"===e.toUpperCase()&&12===h.hours&&(h.hours=0)}}return new Date(h.year,h.month,h.day,h.hours,h.minutes,h.seconds,h.milliseconds)}function v(t,e,i,n){return t instanceof Date?new Date(void 0!==e?e:t.getFullYear(),void 0!==i?i:t.getMonth(),void 0!==n?n:t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):new Date}function b(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return t instanceof Date?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i,n,r):new Date}function x(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!(t instanceof Date))return new Date;const i=t.getMonth()-e,n=t.getFullYear()+Math.floor(i/12),r=(i%12+12)%12,o=_(n,r);return new Date(n,r,Math.min(t.getDate(),o),t.getHours(),t.getMinutes(),t.getSeconds())}function _(t,e){return e<0&&(e+=12),new Date(t,e+1,0).getDate()}function w(t){return t instanceof Date&&!isNaN(t.getTime())}function S(t){if(!t)return"yyyy-MM-dd";return C(t,["YYYY","yyyy","yyy","YY","yy","y","MMMM","MMM","MM","M","dd","DD","d"],["HH","H","hh","h","mm","m","ss","s","A","a"])}function C(t,e,i){const n=[...e].sort((t,e)=>e.length-t.length),r=[...i].sort((t,e)=>e.length-t.length),o=[];let a=0;for(;a<t.length;){let e=!1;for(const i of r)if(t.slice(a,a+i.length)===i){o.push({text:i,type:"time"}),a+=i.length,e=!0;break}if(!e){for(const i of n)if(t.slice(a,a+i.length)===i){o.push({text:i,type:"date"}),a+=i.length,e=!0;break}e||(o.push({text:t[a],type:"sep"}),a++)}}return o.filter((t,e)=>{if("date"===t.type)return!0;if("sep"!==t.type)return!1;let i=!1;for(let t=e-1;t>=0;t--){if("date"===o[t].type){i=!0;break}if("time"===o[t].type)break}let n=!1;for(let t=e+1;t<o.length;t++){if("date"===o[t].type){n=!0;break}if("time"===o[t].type)break}return i||n}).map(t=>t.text).join("").replace(/\s+/g," ").trim()}class M{constructor(t,e){this._d=null,t instanceof Date?this._d=new Date(t.getTime()):this._d="number"==typeof t?new Date(t):"string"==typeof t?e?y(t,e):new Date(t):new Date}set(t,e){if(!this.isValid())return this;let i=this._d.getFullYear(),n=this._d.getMonth(),r=this._d.getDate(),o=this._d.getHours(),a=this._d.getMinutes(),s=this._d.getSeconds(),l=this._d.getMilliseconds();switch(t){case"year":case"years":i=e;break;case"month":case"months":n=e;break;case"date":case"dates":case"day":case"days":r=e;break;case"hour":case"hours":o=e;break;case"minute":case"minutes":a=e;break;case"second":case"seconds":s=e;break;case"millisecond":case"milliseconds":l=e}return this._d=new Date(i,n,r,o,a,s,l),this}get(t){if(!this.isValid())return NaN;switch(t){case"year":case"years":return this._d.getFullYear();case"month":case"months":return this._d.getMonth();case"date":case"dates":case"day":case"days":return this._d.getDate();case"hour":case"hours":return this._d.getHours();case"minute":case"minutes":return this._d.getMinutes();case"second":case"seconds":return this._d.getSeconds();case"millisecond":case"milliseconds":return this._d.getMilliseconds();default:return NaN}}startOf(t){if(!this.isValid())return this;let e=this._d.getFullYear(),i=this._d.getMonth(),n=this._d.getDate();switch(t){case"year":this._d=new Date(e,0,1,0,0,0,0);break;case"month":this._d=new Date(e,i,1,0,0,0,0);break;case"day":this._d=new Date(e,i,n,0,0,0,0)}return this}endOf(t){if(!this.isValid())return this;let e=this._d.getFullYear(),i=this._d.getMonth();switch(t){case"year":this._d=new Date(e,11,31,23,59,59,999);break;case"month":const t=_(e,i);this._d=new Date(e,i,t,23,59,59,999);break;case"day":this._d=new Date(e,i,d,23,59,59,999)}return this}isSame(t,e){if(!t)return!1;const i=t instanceof M?t.toDate():t;if(!w(i))return!1;if(e){this.format(S("YYYY-MM-DD"))}return this._d.getTime()===i.getTime()}isBefore(t,e){const i=t instanceof M?t.toDate():t;return!!w(i)&&this._d.getTime()<i.getTime()}isAfter(t,e){const i=t instanceof M?t.toDate():t;return!!w(i)&&this._d.getTime()>i.getTime()}}const k=function(t,e){return new M(t,e)};k.parseDate=y,k.formatDate=m,k.modifyDate=v,k.modifyTime=b,k.nextDate=function(t,e){return t instanceof Date?new Date(t.getFullYear(),t.getMonth(),t.getDate()+e,t.getHours(),t.getMinutes(),t.getSeconds()):new Date},k.nextMonth=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t instanceof Date?x(t,-e):new Date},k.nextYear=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t instanceof Date?new Date(t.getFullYear()+e,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()):new Date},k.prevMonth=x,k.prevYear=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t instanceof Date?new Date(t.getFullYear()-e,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()):new Date},k.clearTime=function(t){return t instanceof Date?new Date(t.getFullYear(),t.getMonth(),t.getDate()):new Date},k.isDate=w,k.getDaysInMonth=_,k.extractDateFormat=S,k.extractTimeFormat=function(t){return t?C(t,["HH","H","hh","h","mm","m","ss","s","A","a"],["YYYY","yyyy","yyy","YY","yy","y","MMMM","MMM","MM","M","dd","DD","d"]):"HH:mm:ss"};function O(t){if("timestamp"===t.toLowerCase())return"timestamp";const e=t.match(/Y+/),i=t.match(/M+/),n=t.match(/D+/),r=t.match(/H+/),o=t.match(/m+/),a=t.match(/s+/),s=t.match(/S{3,}/),l=e?e[0]:null,u=i?i[0]:null,c=n?n[0]:null,h=r?r[0]:null,d=o?o[0]:null,p=a?a[0]:null,f=s?s[0]:null;let g="";if(!l||u||c){if(l&&u&&!c)g=`${l}-${u}`;else if(l&&u&&c)g=`${l}-${u}-${c}`;else if(l||u||c)return null}else g=l;let m="";if(!h||d||p||f){if(h&&d&&!p&&!f)m=`${h}:${d}`;else if(h&&d&&p&&!f)m=`${h}:${d}:${p}`;else if(h&&d&&p&&f)m=`${h}:${d}:${p}.${f}`;else if(h||d||p||f)return null}else m=h;return g&&m?`${g} ${m}`:g||(m||null)}function A(t){if(!t||"string"!=typeof t)return"HH:mm:ss";if("timestamp"===t.trim().toLowerCase())return"timestamp";const e=t.split(" ").map(t=>t.trim()).filter(t=>t);let i=!1;const n=[],r=[],o=[];for(const t of e){if(i&&o.length&&!O(t))break;O(t)&&(i?o.push(t):n.push(t)),O(t)||(i=!0,r.push(t))}if(n.length&&o.length&&r.length)return n.join(" ")+"-range";const a=O(t);return a||"HH:mm:ss"}function I(t){return!(!t||"string"!=typeof t)&&/H+/.test(t)}function T(t){return!(!t||"string"!=typeof t)&&/m+/.test(t)}function D(t){return!(!t||"string"!=typeof t)&&/s+/.test(t)}var L={name:"UiTimePickerDateTimePane",components:{UiInput:n.a,UiPopover:r.a,UiButton:o.a,TimePane:u,DatePane:h},props:{value:{type:Date,default:null},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},readonly:Boolean,arrowControl:Boolean},data:()=>({timeBuffer:null,dateStr:"",timeStr:"",paneElm:null,popperElm:null,timePaneVisible:!1}),computed:{timeFormatType(){return[I(this.format)?"hour":"",T(this.format)?"minute":"",D(this.format)?"second":""].filter(Boolean).join("-")},dateFormat(){if(!this.format)return"YYYY-MM-DD";const t=this.format.split(/\s+/);if(t.length>0&&/[YMD]/i.test(t[0]))return t[0];const e=this.format.match(/(YYYY|YY|MM|M|DD|D)[-\./\s]*(YYYY|YY|MM|M|DD|D)?[-\./\s]*(YYYY|YY|MM|M|DD|D)?/i);return e?e[0]:"YYYY-MM-DD"},timeFormat(){if(!this.format)return"HH:mm:ss";const t=this.format.split(/\s+/);if(t.length>1&&/[HmsA]/i.test(t[t.length-1]))return t[t.length-1];const e=this.format.match(/(HH|H|hh|h|mm|m|ss|s|A|a)[:.\s]*(HH|H|hh|h|mm|m|ss|s|A|a)?[:.\s]*(HH|H|hh|h|mm|m|ss|s|A|a)?/i);return e?e[0]:"HH:mm:ss"}},directives:{init:g.default,clickoutside:a.default},watch:{value:{handler(t){this.timeBuffer=t},immediate:!0},timeBuffer:{handler(t){t?(this.dateStr=m(t,this.dateFormat),this.timeStr=m(t,this.timeFormat)):(this.dateStr="",this.timeStr="")},immediate:!0}},methods:{scrollInit(){this.timeBuffer=this.value},parentContainerInit(t){this.paneElm=t},parentPopoverInit(t){this.popperElm=t},paneScrollInit(t){this.$nextTick(()=>{this.$refs[t]&&"function"==typeof this.$refs[t].scrollInit&&this.$refs[t].scrollInit()})},handleClickoutside(t,e){var i,n,r;const o=e.target,a=null===(i=this.paneElm)||void 0===i||null===(n=i.parentElement)||void 0===n?void 0:n.parentElement,s=null===(r=this.popperElm)||void 0===r?void 0:r.parentElement,l=this.$refs.timeTriggerRef.$el,u=this.$parent.$el.contains(o),c=a.contains(o),h=s.contains(o),d=l.contains(o);!c||h||d?h||c||h||u||(this.handlePaneClose(),this.$emit("close")):this.handlePaneClose()},handlePaneOpen(){this.timePaneVisible=!0},handlePaneClose(){this.timePaneVisible=!1},handleDateStrChange(t){if(!t)return void(this.dateStr=m(this.timeBuffer,this.dateFormat));const e=y(t,this.dateFormat);if(!e||isNaN(e.getTime()))return void(this.timeBuffer?this.dateStr=m(this.timeBuffer,this.dateFormat):this.dateStr="");const i=new Date(this.timeBuffer||new Date);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),this.timeBuffer=i},handleTimeStrChange(t){if(!t){if(this.timeBuffer){const t=new Date(this.timeBuffer);t.setHours(0,0,0,0),this.timeBuffer=t}return}const e=y(t,this.timeFormat);if(!e||isNaN(e.getTime()))return void(this.timeBuffer?this.timeStr=m(this.timeBuffer,this.timeFormat):this.timeStr="");const i=this.timeBuffer||new Date,n=new Date(i);n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n.setSeconds(e.getSeconds()),this.timeBuffer=n},handleNow(){this.timeBuffer=new Date,this.handleEmit()},handleEmit(){this.$emit("input",this.timeBuffer),this.$emit("close")}}},P=Object(l.a)(L,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"init",rawName:"v-init",value:t.parentContainerInit,expression:"parentContainerInit"}],staticClass:"ui-timepicker-date-time-pane"},[e("div",{staticClass:"ui-timepicker-date-time-pane__input-wrapper"},[e("div",[e("ui-input",{attrs:{size:"medium",readonly:t.readonly},on:{change:t.handleDateStrChange},model:{value:t.dateStr,callback:function(e){t.dateStr=e},expression:"dateStr"}})],1),e("div",[e("ui-popover",{attrs:{visible:t.timePaneVisible,trigger:"manual",placement:"bottom-end"},on:{"update:visible":function(e){t.timePaneVisible=e},show:function(e){return t.paneScrollInit("timePaneRef")}}},[e("template",{slot:"reference"},[e("ui-input",{ref:"timeTriggerRef",attrs:{size:"medium",readonly:t.readonly},on:{focus:t.handlePaneOpen,change:t.handleTimeStrChange},model:{value:t.timeStr,callback:function(e){t.timeStr=e},expression:"timeStr"}})],1),e("div",{directives:[{name:"init",rawName:"v-init",value:t.parentPopoverInit,expression:"parentPopoverInit"}]},[e("time-pane",{ref:"timePaneRef",staticStyle:{"z-index":"4000"},attrs:{type:t.timeFormatType,readonly:t.readonly,"arrow-control":t.arrowControl},on:{close:t.handleClickoutside},model:{value:t.timeBuffer,callback:function(e){t.timeBuffer=e},expression:"timeBuffer"}})],1)],2)],1)]),e("date-pane",{ref:"datePaneRef",attrs:{readonly:t.readonly},model:{value:t.timeBuffer,callback:function(e){t.timeBuffer=e},expression:"timeBuffer"}}),e("div",{staticClass:"ui-timepicker-date-time-pane__emit-wrapper"},[e("ui-button",{attrs:{label:"此刻",type:"primary",textual:""},on:{click:t.handleNow,mousedown:function(t){t.stopPropagation()}}}),e("ui-button",{attrs:{label:"确定",type:"primary",size:"mini"},on:{click:t.handleEmit,mousedown:function(t){t.stopPropagation()}}})],1)],1)}),[],!1,null,"11be002c",null).exports,j={name:"UiTimePickerDateTimeRangePane",components:{UiTimePickerDateRangePane:f,UiInput:n.a,UiButton:o.a,TimePane:u},props:{value:{type:Array,default:()=>[]},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},readonly:Boolean,arrowControl:Boolean},data:()=>({startDate:null,endDate:null,dateRangeValue:[],startDateStr:"",startTimeStr:"",endDateStr:"",endTimeStr:"",paneElm:null,startPopperElm:null,endPopperElm:null,startTimePaneVisible:!1,endTimePaneVisible:!1}),computed:{dateFormat(){return this.format.split(/\s+/)[0]||"YYYY-MM-DD"},timeFormat(){return this.format.split(/\s+/)[1]||"HH:mm:ss"},timeFormatType(){return[I(this.format)?"hour":"",T(this.format)?"minute":"",D(this.format)?"second":""].filter(Boolean).join("-")}},watch:{value:{handler(t){t&&2===t.length?(this.dateRangeValue=t,this.startDate=t[0]?new Date(t[0]):null,this.endDate=t[1]?new Date(t[1]):null,this.updateAllStrs()):this.resetState()},immediate:!0},dateRangeValue:{handler(t){this.startDate=t[0]?new Date(t[0]):null,this.endDate=t[1]?new Date(t[1]):null,this.updateAllStrs()},deep:!0}},directives:{init:g.default,clickoutside:a.default},methods:{resetState(){this.startDate=null,this.endDate=null,this.startDateStr="",this.startTimeStr="",this.endDateStr="",this.endTimeStr=""},updateAllStrs(){this.startDateStr=this.startDate?m(this.startDate,this.dateFormat):"",this.startTimeStr=this.startDate?m(this.startDate,this.timeFormat):"",this.endDateStr=this.endDate?m(this.endDate,this.dateFormat):"",this.endTimeStr=this.endDate?m(this.endDate,this.timeFormat):""},parentContainerInit(t){this.paneElm=t},startParentPopoverInit(t){this.startPopperElm=t},endParentPopoverInit(t){this.endPopperElm=t},handleClickoutside(t,e){var i,n,r,o;const a=e.target,s=null===(i=this.paneElm)||void 0===i||null===(n=i.parentElement)||void 0===n?void 0:n.parentElement,l=null===(r=this.startPopperElm)||void 0===r?void 0:r.parentElement,u=this.$refs.startTimeTriggerRef.$el,c=null===(o=this.endPopperElm)||void 0===o?void 0:o.parentElement,h=this.$refs.endTimeTriggerRef.$el,d=this.$parent.$el.contains(a),p=s.contains(a),f=l.contains(a),g=u.contains(a),m=c.contains(a),y=h.contains(a);!p||f||m||g||y?g||f&&!m?this.handleEndPaneClose():y||!f&&m?this.handleStartPaneClose():p||f||m||d||(this.handleStartPaneClose(),this.handleEndPaneClose(),this.$emit("close")):(this.handleStartPaneClose(),this.handleEndPaneClose())},scrollInit(){this.paneScrollInit("startTimePaneRef"),this.paneScrollInit("endTimePaneRef")},paneScrollInit(t){this.$nextTick(()=>{this.$refs[t]&&"function"==typeof this.$refs[t].scrollInit&&this.$refs[t].scrollInit()})},handleStartPaneOpen(){this.startTimePaneVisible=!0},handleStartPaneClose(){this.startTimePaneVisible=!1},handleEndPaneOpen(){this.endTimePaneVisible=!0},handleEndPaneClose(){this.endTimePaneVisible=!1},mergeDateAndTime(t,e){if(!t)return null;const i=new Date(t);return e?(i.setHours(e.getHours()),i.setMinutes(e.getMinutes()),i.setSeconds(e.getSeconds())):i.setHours(0,0,0,0),i},handleStartDateStrChange(t){if(!t)return void(this.startDateStr=m(this.startDate,this.dateFormat));const e=y(t,this.dateFormat);if(e&&!isNaN(e.getTime())){const t=this.mergeDateAndTime(e,this.startDate);this.startDate=t,this.dateRangeValue=[t,this.dateRangeValue[1]],this.startDateStr=m(this.startDate,this.dateFormat)}else this.startDateStr=this.startDate?m(this.startDate,this.dateFormat):""},handleEndDateStrChange(t){if(!t)return void(this.endDateStr=m(this.endDate,this.dateFormat));const e=y(t,this.dateFormat);if(e&&!isNaN(e.getTime())){const t=this.mergeDateAndTime(e,this.endDate);this.endDate=t,this.dateRangeValue=[this.dateRangeValue[0],t],this.endDateStr=m(this.endDate,this.dateFormat)}else this.endDateStr=this.endDate?m(this.endDate,this.dateFormat):""},handleStartTimeChange(t){if(!t||!this.startDate)return;const e=y(t,this.timeFormat);e&&!isNaN(e.getTime())?(this.startDate.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),this.startTimeStr=m(this.startDate,this.timeFormat)):this.startTimeStr=m(this.startDate,this.timeFormat)},handleEndTimeChange(t){if(!t||!this.endDate)return;const e=y(t,this.timeFormat);e&&!isNaN(e.getTime())?(this.endDate.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),this.endTimeStr=m(this.endDate,this.timeFormat)):this.endTimeStr=m(this.endDate,this.timeFormat)},emitInput(){this.startDate&&this.endDate?(this.startDate.getTime()>this.endDate.getTime()&&([this.startDate,this.endDate]=[this.endDate,this.startDate],this.updateAllStrs()),this.$emit("input",[this.startDate,this.endDate])):this.$emit("input",[])},handleNow(){const t=new Date;this.startDate=new Date(t),this.endDate=new Date(t),this.updateAllStrs(),this.emitInput()},handleConfirm(){this.emitInput(),this.$emit("close")}}},N=Object(l.a)(j,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"init",rawName:"v-init",value:t.parentContainerInit,expression:"parentContainerInit"}],staticClass:"ui-timepicker-date-time-range-pane"},[e("div",{staticClass:"ui-timepicker-date-time-range-pane__input-wrapper"},[e("div",{staticClass:"input-group"},[e("ui-input",{attrs:{size:"medium",readonly:t.readonly},on:{change:t.handleStartDateStrChange},model:{value:t.startDateStr,callback:function(e){t.startDateStr=e},expression:"startDateStr"}})],1),e("div",{staticClass:"input-group"},[e("ui-popover",{attrs:{visible:t.startTimePaneVisible,trigger:"manual",placement:"bottom-end"},on:{"update:visible":function(e){t.startTimePaneVisible=e},show:function(e){return t.paneScrollInit("startTimePaneRef")}}},[e("template",{slot:"reference"},[e("ui-input",{ref:"startTimeTriggerRef",attrs:{size:"medium",readonly:t.readonly},on:{focus:t.handleStartPaneOpen,change:t.handleStartTimeChange},model:{value:t.startTimeStr,callback:function(e){t.startTimeStr=e},expression:"startTimeStr"}})],1),e("div",{directives:[{name:"init",rawName:"v-init",value:t.startParentPopoverInit,expression:"startParentPopoverInit"}]},[e("time-pane",{ref:"startTimePaneRef",staticStyle:{"z-index":"4000"},attrs:{type:t.timeFormatType,readonly:t.readonly,"arrow-control":t.arrowControl},on:{close:t.handleClickoutside},model:{value:t.dateRangeValue[0],callback:function(e){t.$set(t.dateRangeValue,0,e)},expression:"dateRangeValue[0]"}})],1)],2)],1),e("span",{staticClass:"separator"},[t._v("-")]),e("div",{staticClass:"input-group"},[e("ui-input",{attrs:{size:"medium",readonly:t.readonly},on:{change:t.handleEndDateStrChange},model:{value:t.endDateStr,callback:function(e){t.endDateStr=e},expression:"endDateStr"}})],1),e("div",{staticClass:"input-group"},[e("ui-popover",{attrs:{visible:t.endTimePaneVisible,trigger:"manual",placement:"bottom-end"},on:{"update:visible":function(e){t.endTimePaneVisible=e},show:function(e){return t.paneScrollInit("endTimePaneRef")}}},[e("template",{slot:"reference"},[e("ui-input",{ref:"endTimeTriggerRef",attrs:{size:"medium",readonly:t.readonly},on:{focus:t.handleEndPaneOpen,change:t.handleEndTimeChange},model:{value:t.endTimeStr,callback:function(e){t.endTimeStr=e},expression:"endTimeStr"}})],1),e("div",{directives:[{name:"init",rawName:"v-init",value:t.endParentPopoverInit,expression:"endParentPopoverInit"}]},[e("time-pane",{ref:"endTimePaneRef",staticStyle:{"z-index":"4000"},attrs:{type:t.timeFormatType,readonly:t.readonly,"arrow-control":t.arrowControl},on:{close:t.handleClickoutside},model:{value:t.dateRangeValue[1],callback:function(e){t.$set(t.dateRangeValue,1,e)},expression:"dateRangeValue[1]"}})],1)],2)],1)]),e("ui-time-picker-date-range-pane",{attrs:{readonly:t.readonly},model:{value:t.dateRangeValue,callback:function(e){t.dateRangeValue=e},expression:"dateRangeValue"}}),e("div",{staticClass:"pane-footer"},[e("ui-button",{attrs:{label:"此刻",type:"primary",textual:"",size:"mini"},on:{click:t.handleNow}}),e("ui-button",{attrs:{label:"确定",type:"primary",size:"mini"},on:{click:t.handleConfirm}})],1)],1)}),[],!1,null,"083a4ca0",null).exports,E=i(3),R=i(2),z={name:"time-input",components:{UiInput:n.a},mixins:[],props:{value:{type:Date,default:null},format:String,compact:Boolean,readonly:Boolean,disabled:Boolean,placeholder:String,prefixIcon:{type:String,default:""},clearable:Boolean,size:String,inRange:Boolean},data:()=>({timeStr:"",labelWidth:0}),filters:{},computed:{timeFormat(){return this.format.replace("-range","")},isTimestampMode(){return this.timeFormat&&this.timeFormat.toLowerCase().includes("timestamp")},inputStyleProp(){if(this.compact&&this.labelWidth){const t=this.prefixIcon?20:0,e=this.clearable?15:0,i=this.inRange?12:28;return{width:this.labelWidth+t+e+i+"px"}}return{}}},watch:{value:{handler(t){this.isTimestampMode?this.timeStr=t?String(t.getTime()):"":this.timeStr=t?m(t,this.timeFormat):""},immediate:!0,deep:!0},timeFormat:{handler(){this.labelWidthCalc()},immediate:!0,deep:!0},compact(){this.labelWidthCalc()}},created(){this.labelWidthCalc()},mounted(){},activated(){},beforeDestroy(){},methods:{handleTimeManualChange(t){if(!t)return void(this.isTimestampMode?this.timeStr=this.value?String(this.value.getTime()):"":this.timeStr=this.value?m(this.value,this.timeFormat):"");let e=null;if(this.isTimestampMode){const i=Number(t);Object(R.j)(i)||(e=new Date(i),Object(R.j)(e.getTime())&&(e=null))}else{const i=y(t,this.timeFormat);if(!i||Object(R.j)(i.getTime()))return void(this.timeStr=this.value?m(this.value,this.timeFormat):"");const n=i.getFullYear(),r=i.getMonth(),o=i.getDate(),a=i.getHours(),s=i.getMinutes(),l=i.getSeconds();let u=this.value;u||(u=new Date),e=b(v(u,n,r,o),a,s,l)}e?(this.isTimestampMode?this.timeStr=String(e.getTime()):this.timeStr=m(e,this.timeFormat),this.$emit("input",e)):this.isTimestampMode?this.timeStr=this.value?String(this.value.getTime()):"":this.timeStr=this.value?m(this.value,this.timeFormat):""},labelWidthCalc(){this.$nextTick(()=>{var t,e;const i=Object(E.c)(null===(t=this.$refs.reference)||void 0===t||null===(e=t.$el)||void 0===e?void 0:e.querySelector(".ui-input__inner"),"font");if(i){let t="";if(this.isTimestampMode)t="9999999999999";else{t=m(new Date(9999,11,31,23,59,59),this.timeFormat)}this.labelWidth=t?Object(E.d)(t,i):0}else this.labelWidth=0})},handleFocus(){this.$emit("focus",...arguments)},handleClear(){this.$emit("clear")}}},B=Object(l.a)(z,(function(){var t=this,e=t._self._c;return e("ui-input",{ref:"reference",staticClass:"ui-time-trigger",style:t.inputStyleProp,attrs:{readonly:t.readonly,disabled:t.disabled,placeholder:t.placeholder,"prefix-icon":t.prefixIcon,size:t.size},on:{change:t.handleTimeManualChange,focus:t.handleFocus},model:{value:t.timeStr,callback:function(e){t.timeStr=e},expression:"timeStr"}},[t.clearable?e("i",{staticClass:"clear-icon ui-icon-circle-close",attrs:{slot:"suffix"},on:{mousedown:function(t){t.preventDefault()},click:t.handleClear},slot:"suffix"}):t._e()])}),[],!1,null,"135b476e",null).exports,V={name:"time-range-input",components:{TimeInput:B},props:{value:{type:Array,default:()=>[]},format:{type:String,default:"HH:mm:ss"},separator:{type:String,default:"~"},compact:Boolean,config:{type:Object,default:()=>({})}},data:()=>({parentTriggerEl:null,startTime:null,endTime:null}),computed:{startInputProps(){return{readonly:this.config.readonly||!1,disabled:this.config.disabled||!1,placeholder:this.config.startPlaceholder||"",size:this.config.size||""}},endInputProps(){return{readonly:this.config.readonly||!1,disabled:this.config.disabled||!1,placeholder:this.config.endPlaceholder||"",size:this.config.size||""}},size(){return this.config.size||""},prefixIcon(){return this.config.prefixIcon||""},clearable(){return this.config.clearable||!1}},watch:{value:{handler(t){Array.isArray(t)&&t.length>=2?(this.startTime=t[0],this.endTime=t[1]):(this.startTime=null,this.endTime=null)},immediate:!0,deep:!0}},directives:{init:g.default},methods:{handleInit(t){t&&(this.parentTriggerEl=t,t.focus=()=>this.handleTriggerFocus(),t.blur=()=>this.handleTriggerBlur())},handleStartChange(t){this.startTime=t,this.emitUpdate()},handleEndChange(t){this.endTime=t,this.emitUpdate()},emitUpdate(){this.startTime&&this.endTime?this.startTime.getTime()>this.endTime.getTime()?this.$emit("input",[this.endTime,this.startTime]):this.$emit("input",[this.startTime,this.endTime]):this.startTime||this.endTime||this.$emit("input",[])},handleTriggerFocus(){var t,e,i;const n=document.activeElement;this.$refs.endInput&&n&&this.$refs.endInput.$el.contains(n)||null===(t=this.$refs.startInput)||void 0===t||null===(e=t.$el)||void 0===e||null===(i=e.querySelector(".ui-input__inner"))||void 0===i||i.focus()},handleTriggerBlur(){const t=document.activeElement;t&&this.parentTriggerEl.contains(t)&&t.blur()},handleFocus(t){this.$emit("focus",t)},handleClear(){this.$emit("clear")}}},F=Object(l.a)(V,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"init",rawName:"v-init",value:t.handleInit,expression:"handleInit"}],class:["ui-time-range-input","ui-time-range-input--"+t.size,t.clearable?"is-clearable":"",t.prefixIcon?"is-prefixicon":"",t.compact?"is-compact":""]},[t.prefixIcon?e("i",{class:["prefix-icon",t.prefixIcon]}):t._e(),e("time-input",t._b({ref:"startInput",staticClass:"range-item start",attrs:{value:t.startTime,format:t.format,compact:t.compact,"in-range":""},on:{input:t.handleStartChange,focus:t.handleFocus}},"time-input",t.startInputProps,!1)),e("span",{staticClass:"range-separator"},[t._v(t._s(t.separator))]),e("time-input",t._b({ref:"endInput",staticClass:"range-item end",attrs:{value:t.endTime,format:t.format,compact:t.compact,"in-range":""},on:{input:t.handleEndChange,focus:t.handleFocus}},"time-input",t.endInputProps,!1)),t.clearable?e("i",{staticClass:"clear-icon ui-icon-circle-close",on:{mousedown:function(t){t.preventDefault()},click:t.handleClear}}):t._e()],1)}),[],!1,null,"66aa80d2",null).exports;function H(t){if(null==t||""===t)return null;const e=new Date(t);return Object(R.j)(e.getTime())?null:e}var $={name:"UiTimePicker",components:{UiInput:n.a,UiPopover:r.a,TimePane:u,DatePane:h,DateRangePane:f,DateTimePane:P,DateTimeRangePane:N,TimeInput:B,TimeRangeInput:F},props:{value:{},format:{type:String,default:""},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},readonly:Boolean,disabled:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearable:Boolean,size:String,compact:{type:Boolean,default:!0},placement:{type:String,default:"bottom"},timeArrowControl:Boolean},data:()=>({timeVisibleStr:"",paneVisible:!1,dateValue:null,dateRange:[],isInternalUpdate:!1}),computed:{formatType(){return A(this.format||this.valueFormat)},formatTypeIgnoreRange(){return this.formatType.replace("timestamp","YYYY-MM-DD HH:mm:ss").replace("-range","")},visibleType(){return function(t){if(!t||"string"!=typeof t)return"unknown";if("timestamp"===t)return"timestamp";if("timestamp-range"===t)return"timestamp-range";const e=t.endsWith("-range"),i=e?t.replace(/-range$/,""):t,n=/[HmsS]/.test(i),r=/[YMD]/.test(i);return e?n?"datetime-range":r?"date-range":"unknown":n&&r?"datetime":r?function(t){if(!t||"string"!=typeof t)return!1;if(!/Y+/.test(t))return!1;if(/[MDHmsS]/.test(t))return!1;return!0}(i)?"year":function(t){if(!t||"string"!=typeof t)return!1;const e=/Y+/.test(t),i=/M+/.test(t);if(!e||!i)return!1;if(/[DHmsS]/.test(t))return!1;return!0}(i)?"month":"date":n?"time":"unknown"}(this.formatType)},isRange(){return this.formatType.includes("range")},valueFormatType(){return A(this.valueFormat)},outputType(){return this.valueFormatType.replace("-range","")},separator(){return function(t){if(!t||"string"!=typeof t)return null;const e=t.split(" ").map(t=>t.trim()).filter(t=>t);let i=!1;const n=[],r=[],o=[];for(const t of e){if(i&&o.length&&!O(t))break;O(t)&&(i?o.push(t):n.push(t)),O(t)||(i=!0,r.push(t))}return n.length&&o.length&&r.length?r.join(" "):null}(this.format||this.valueFormat)},showClear(){if(this.isRange){const[t,e]=this.dateRange;return t&&!Object(R.j)(t.getTime())&&e&&!Object(R.j)(e.getTime())}{const t=this.dateValue;return t&&!Object(R.j)(t.getTime())}},inputProps(){return{readonly:this.readonly||!1,disabled:this.disabled||!1,placeholder:this.placeholder||"",startPlaceholder:this.startPlaceholder||"",endPlaceholder:this.endPlaceholder||"",prefixIcon:void 0===this.prefixIcon?"time"===this.visibleType?"ui-icon-time":"ui-icon-date":this.prefixIcon||"",clearable:this.clearable&&this.showClear||!1,size:this.size||""}}},directives:{clickoutside:a.default},watch:{value:{handler(t){if(this.isInternalUpdate)return;let e=null,i=[];if(this.isRange&&Object(R.f)(t)){2===t.length&&(i=[H(t[0]),H(t[1])]);(this.dateRange.length!==i.length||i.some((t,e)=>{const i=this.dateRange[e];return!(!t&&!i)&&(!t||!i||t.getTime()!==i.getTime())}))&&(this.dateRange=i)}else if(Object(R.f)(t)||null==t)null!==this.dateValue&&(this.dateValue=null),this.dateRange.length>0&&(this.dateRange=[]);else{e=H(t);const i=this.dateValue,n=e;let r=!1;r=!(!i&&!n)&&(!i||!n||i.getTime()!==n.getTime()),r&&(this.dateValue=e)}},immediate:!0,deep:!0},dateValue(t){if(this.isInternalUpdate)return;let e=void 0,i=!1;!this.isRange&&t?(e="timestamp"===this.outputType?t.getTime():m(t,this.outputType),e!==this.value&&(i=!0)):!t&&this.value&&(e=void 0,i=!0),i&&this.handleEmit(e)},dateRange:{handler(t){if(this.isInternalUpdate)return;let e=[],i=!1;this.isRange&&Object(R.f)(t)&&t[0]&&t[1]?(e="timestamp"===this.outputType?[t[0].getTime(),t[1].getTime()]:[m(t[0],this.outputType),m(t[1],this.outputType)],Object(R.h)(this.value,e)||(i=!0)):t&&0!==t.length||!this.value||(e=[],Object(R.f)(this.value)&&0===this.value.length||(i=!0)),i&&this.handleEmit(e)},deep:!0}},methods:{paneScrollInit(){this.$nextTick(()=>{this.$refs.paneRef&&"function"==typeof this.$refs.paneRef.scrollInit&&this.$refs.paneRef.scrollInit()})},handleTriggerFocus(){this.disabled||(this.paneVisible=!0)},closeEdit(){this.paneVisible=!1},clearDateRange(){this.$emit("input",[])},clearDate(){this.$emit("input",null)},focus(){var t,e,i;null===(t=this.$refs)||void 0===t||null===(e=t.mainPopover)||void 0===e||null===(i=e.referenceElm)||void 0===i||i.focus()},blur(){var t,e,i;null===(t=this.$refs)||void 0===t||null===(e=t.mainPopover)||void 0===e||null===(i=e.referenceElm)||void 0===i||i.blur()},handleFocus(){this.focus(),this.paneScrollInit(),this.$emit("focus")},handleBlur(){this.$emit("blur")},handleEmit(t){this.isInternalUpdate=!0,this.$emit("input",t),this.$emit("change",t),this.$nextTick(()=>{this.isInternalUpdate=!1})}}},G=Object(l.a)($,(function(){var t=this,e=t._self._c;return e("div",{class:["ui-time-picker","time"===t.visibleType?"is-time":"","date"===t.visibleType?"is-date":"","datetime"===t.visibleType||"timestamp"===t.visibleType?"is-datetime":"","date-range"===t.visibleType?"is-date-range":"","datetime-range"===t.visibleType||"timestamp-range"===t.visibleType?"is-datetime-range":""]},[["time","date","date-range"].includes(t.visibleType)?e("ui-popover",{ref:"mainPopover",attrs:{placement:t.placement,trigger:t.disabled?"manual":"focus"},on:{show:t.handleFocus,hide:t.handleBlur}},[e("template",{slot:"reference"},[t.isRange?e("time-range-input",{attrs:{format:t.formatType,separator:t.separator,compact:t.compact,config:t.inputProps},on:{clear:t.clearDateRange},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}):e("time-input",t._b({attrs:{format:t.formatType,compact:t.compact},on:{clear:t.clearDate},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}},"time-input",t.inputProps,!1))],1),e("div",["time"===t.visibleType?e("time-pane",{ref:"paneRef",attrs:{format:t.formatTypeIgnoreRange,readonly:t.readonly,"arrow-control":t.timeArrowControl},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}}):t.isRange?e("date-range-pane",{ref:"paneRef",attrs:{format:t.formatTypeIgnoreRange,readonly:t.readonly},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}):e("date-pane",{ref:"paneRef",attrs:{format:t.formatTypeIgnoreRange,readonly:t.readonly},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}})],1)],2):e("ui-popover",{ref:"mainPopover",attrs:{placement:t.placement,visible:t.paneVisible,trigger:"manual"},on:{"update:visible":function(e){t.paneVisible=e},show:t.handleFocus,hide:t.handleBlur}},[e("template",{slot:"reference"},[t.isRange?e("time-range-input",{attrs:{format:t.formatType,separator:t.separator,compact:t.compact,config:t.inputProps},on:{focus:t.handleTriggerFocus,clear:t.clearDateRange},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}):e("time-input",t._b({attrs:{format:t.formatType,compact:t.compact},on:{focus:t.handleTriggerFocus,clear:t.clearDate},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}},"time-input",t.inputProps,!1))],1),e("div",[t.isRange?e("date-time-range-pane",{ref:"paneRef",attrs:{format:t.formatTypeIgnoreRange,readonly:t.readonly,"arrow-control":t.timeArrowControl},on:{close:t.closeEdit},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}):e("date-time-pane",{ref:"paneRef",attrs:{format:t.formatTypeIgnoreRange,readonly:t.readonly,"arrow-control":t.timeArrowControl},on:{close:t.closeEdit},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}})],1)],2)],1)}),[],!1,null,null,null).exports;G.install=function(t){t.component(G.name,G)};e.default=G},function(t,e,i){"use strict";i.r(e),i.d(e,"GridLayout",(function(){return z})),i.d(e,"GridItem",(function(){return D}));function n(t){const e=Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(i=t[n],JSON.parse(JSON.stringify(i)));var i;return e}function r(t,e){return t!==e&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function o(t,e){const i=h(t),n=f(t),r=Array(t.length);for(let o=0,s=n.length;o<s;o++){let s=n[o];s.static||(s=a(i,s,e),i.push(s)),r[t.indexOf(s)]=s,s.moved=!1}return r}function a(t,e,i){if(i)for(;e.y>0&&!u(t,e);)e.y--;let n;for(;n=u(t,e);)e.y=n.y+n.h;return e}function s(t,e){const i=h(t);for(let n=0,r=t.length;n<r;n++){const r=t[n];if(r.x+r.w>e.cols&&(r.x=e.cols-r.w),r.x<0&&(r.x=0,r.w=e.cols),r.static)for(;u(i,r);)r.y++;else i.push(r)}return t}function l(t,e){for(let i=0,n=t.length;i<n;i++)if(t[i].i===e)return t[i]}function u(t,e){for(let i=0,n=t.length;i<n;i++)if(r(t[i],e))return t[i]}function c(t,e){return t.filter(t=>r(t,e))}function h(t){return t.filter(t=>t.static)}function d(t,e,i,n,r,o){if(e.static)return t;const a=e.x,s=e.y,l=n&&e.y>n;"number"==typeof i&&(e.x=i),"number"==typeof n&&(e.y=n),e.moved=!0;let u=f(t);l&&(u=u.reverse());const h=c(u,e);if(o&&h.length)return e.x=a,e.y=s,e.moved=!1,t;for(let i=0,n=h.length;i<n;i++){const n=h[i];n.moved||(e.y>n.y&&e.y-n.y>n.h/4||(t=n.static?p(t,n,e,r):p(t,e,n,r)))}return t}function p(t,e,i,n){if(n){const n={x:i.x,y:i.y,w:i.w,h:i.h,i:"-1"};if(n.y=Math.max(e.y-i.h,0),!u(t,n))return d(t,i,void 0,n.y,!1)}return d(t,i,void 0,i.y+1,!1)}function f(t){return[].concat(t).sort((function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1}))}function g(t){return function(t){const e=t.clientX||t.touches&&t.touches[0].clientX||0,i=t.clientY||t.touches&&t.touches[0].clientY||0,n=t.target.offsetParent||document.body,r=t.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),o=e+n.scrollLeft-r.left,a=i+n.scrollTop-r.top;return{x:o,y:a}}(t)}function m(t,e,i,n){var r;return!("number"==typeof(r=t)&&!isNaN(r))?{deltaX:0,deltaY:0,lastX:i,lastY:n,x:i,y:n}:{deltaX:i-t,deltaY:n-e,lastX:t,lastY:e,x:i,y:n}}class y{constructor(t){if(this.element=t instanceof HTMLElement?t:document.querySelector(t),!this.element)throw new Error("Interactable: element not found");this.dragEnabled=!1,this.resizeEnabled=!1,this.dragOptions={},this.resizeOptions={},this.handlers={},this.isDragging=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startRight=0,this.resizeEdge=null,this.boundPointerDown=this.handlePointerDown.bind(this),this.boundPointerMove=this.handlePointerMove.bind(this),this.boundPointerUp=this.handlePointerUp.bind(this)}draggable(t){return this.dragEnabled=!1!==t.enabled,this.dragOptions=t||{},this}resizable(t){return this.resizeEnabled=!1!==t.enabled,this.resizeOptions=t||{},this}styleCursor(t){return!1===t&&(this.element.style.cursor="default"),this}on(t,e){return t.split(/\s+/).forEach(t=>{this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push(e)}),this}off(t,e){return t.split(/\s+/).forEach(t=>{if(this.handlers[t]&&e){const i=this.handlers[t].indexOf(e);i>-1&&this.handlers[t].splice(i,1)}}),this}triggerEvent(t,e){const i=this.handlers[t]||[],n={type:t,target:this.element,clientX:e.clientX||e.touches&&e.touches[0].clientX||0,clientY:e.clientY||e.touches&&e.touches[0].clientY||0,deltaX:this.deltaX||0,deltaY:this.deltaY||0,preventDefault:()=>e.preventDefault()};i.forEach(t=>t(n))}handlePointerDown(t){const e=t.target;if(this.dragOptions.ignoreFrom&&function(t,e){if(!e)return!1;try{return t.matches(e)||null!==t.closest(e)}catch(t){return!1}}(e,this.dragOptions.ignoreFrom))return;if(this.dragEnabled&&this.dragOptions.allowFrom&&!this.resizeOptions.edges&&!function(t,e){if(!e)return!0;try{return t.matches(e)||null!==t.closest(e)}catch(t){return!1}}(e,this.dragOptions.allowFrom))return;t.preventDefault();const i=g(t);this.startX=i.x,this.startY=i.y,this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startLeft=this.element.offsetLeft,this.startTop=this.element.offsetTop;const n=this.resizeOptions.edges;let r=!1;if(n&&this.resizeEnabled){const t=n.bottom?n.bottom.replace(/^\./,"").split(".")[0]:"",i=n.right?n.right.replace(/^\./,"").split(".")[0]:"";t&&e.classList.contains(t)&&(r=!0,this.resizeEdge="bottom"),i&&e.classList.contains(i)&&(r=!0,this.resizeEdge=this.resizeEdge?"bottom-right":"right")}r&&this.resizeEnabled?(this.isResizing=!0,this.triggerEvent("resizestart",t)):this.dragEnabled&&!this.static&&(this.isDragging=!0,this.triggerEvent("dragstart",t)),document.addEventListener("pointermove",this.boundPointerMove,{passive:!1}),document.addEventListener("pointerup",this.boundPointerUp)}handlePointerMove(t){const e=g(t),i=e.x-this.startX,n=e.y-this.startY;this.deltaX=i,this.deltaY=n,this.isResizing&&this.resizeEnabled?this.handleResizeMove(t,i,n):this.isDragging&&this.dragEnabled&&this.handleDragMove(t,i,n)}handleDragMove(t,e,i){t.preventDefault(),this.triggerEvent("dragmove",t)}handleResizeMove(t,e,i){t.preventDefault(),this.triggerEvent("resizemove",t)}handlePointerUp(t){this.isResizing&&(this.isResizing=!1,this.triggerEvent("resizeend",t),this.resizeEdge=null),this.isDragging&&(this.isDragging=!1,this.triggerEvent("dragend",t)),document.removeEventListener("pointermove",this.boundPointerMove),document.removeEventListener("pointerup",this.boundPointerUp)}unset(){document.removeEventListener("pointerdown",this.boundPointerDown),document.removeEventListener("pointermove",this.boundPointerMove),document.removeEventListener("pointerup",this.boundPointerUp),this.element=null,this.handlers={},this.dragEnabled=!1,this.resizeEnabled=!1}init(){return this.element.addEventListener("pointerdown",this.boundPointerDown),this}}function v(t){const e=new y(t);return e.init(),e}function b(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function x(t){return Object.keys(t).sort((function(e,i){return t[e]-t[i]}))}let _="auto";function w(){return"undefined"!=typeof document}function S(){return"undefined"!=typeof window}function C(){if(!w())return _;return void 0!==document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir")}var M={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created(){let t=this;t.updateWidthHandler=function(e){t.updateWidth(e)},t.compactHandler=function(e){t.compact(e)},t.setDraggableHandler=function(e){null===t.isDraggable&&(t.draggable=e)},t.setResizableHandler=function(e){null===t.isResizable&&(t.resizable=e)},t.setRowHeightHandler=function(e){t.rowHeight=e},t.setMaxRowsHandler=function(e){t.maxRows=e},t.directionchangeHandler=()=>{this.rtl="rtl"===C(),this.compact()},t.setColNum=e=>{t.cols=parseInt(e)},this.eventBus.$on("updateWidth",t.updateWidthHandler),this.eventBus.$on("compact",t.compactHandler),this.eventBus.$on("setDraggable",t.setDraggableHandler),this.eventBus.$on("setResizable",t.setResizableHandler),this.eventBus.$on("setRowHeight",t.setRowHeightHandler),this.eventBus.$on("setMaxRows",t.setMaxRowsHandler),this.eventBus.$on("directionchange",t.directionchangeHandler),this.eventBus.$on("setColNum",t.setColNum),this.rtl="rtl"===C()},beforeDestroy:function(){this.eventBus.$off("updateWidth",this.updateWidthHandler),this.eventBus.$off("compact",this.compactHandler),this.eventBus.$off("setDraggable",this.setDraggableHandler),this.eventBus.$off("setResizable",this.setResizableHandler),this.eventBus.$off("setRowHeight",this.setRowHeightHandler),this.eventBus.$off("setMaxRows",this.setMaxRowsHandler),this.eventBus.$off("directionchange",this.directionchangeHandler),this.eventBus.$off("setColNum",this.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=b(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map(t=>Number(t)),this.createStyle(),this.emitContainerResized())}},computed:{classObj(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic(){return(this.draggable||this.resizable)&&!this.static},isAndroid:()=>-1!==navigator.userAgent.toLowerCase().indexOf("android"),renderRtl(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);let t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);var i,n,r,o;this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),this.useCssTransforms?t=this.renderRtl?function(t,e,i,n){const r="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:i+"px",height:n+"px",position:"absolute"}}(e.top,e.right,e.width,e.height):function(t,e,i,n){const r="translate3d("+e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:i+"px",height:n+"px",position:"absolute"}}(e.top,e.left,e.width,e.height):this.renderRtl?(i=e.top,n=e.right,r=e.width,o=e.height,t={top:i+"px",right:n+"px",width:r+"px",height:o+"px",position:"absolute"}):t=function(t,e,i,n){return{top:t+"px",left:e+"px",width:i+"px",height:n+"px",position:"absolute"}}(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized(){let t={};for(let e of["width","height"]){let i=this.style[e].match(/^(\d+)px$/);if(!i)return;t[e]=i[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(this.static)return;const e=g(t);if(null==e)return;const{x:i,y:n}=e,r={width:0,height:0};let o;switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,o=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),r.width=o.width,r.height=o.height,this.resizing=r,this.isResizing=!0;break;case"resizemove":{const t=m(this.lastW,this.lastH,i,n);this.renderRtl?r.width=this.resizing.width-t.deltaX:r.width=this.resizing.width+t.deltaX,r.height=this.resizing.height+t.deltaY,this.resizing=r;break}case"resizeend":o=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),r.width=o.width,r.height=o.height,this.resizing=null,this.isResizing=!1}o=this.calcWH(r.height,r.width),o.w<this.minW&&(o.w=this.minW),o.w>this.maxW&&(o.w=this.maxW),o.h<this.minH&&(o.h=this.minH),o.h>this.maxH&&(o.h=this.maxH),o.h<1&&(o.h=1),o.w<1&&(o.w=1),this.lastW=i,this.lastH=n,this.innerW===o.w&&this.innerH===o.h||this.$emit("resize",this.i,o.h,o.w,r.height,r.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,o.h,o.w,r.height,r.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,o.h,o.w)},handleDrag(t){if(this.static)return;if(this.isResizing)return;const e=g(t);if(null===e)return;const{x:i,y:n}=e;let r,o={top:0,left:0};switch(t.type){case"dragstart":{this.previousX=this.innerX,this.previousY=this.innerY;let e=t.target.offsetParent.getBoundingClientRect(),i=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(i.right-e.right):o.left=i.left-e.left,o.top=i.top-e.top,this.dragging=o,this.isDragging=!0;break}case"dragend":{if(!this.isDragging)return;let e=t.target.offsetParent.getBoundingClientRect(),i=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(i.right-e.right):o.left=i.left-e.left,o.top=i.top-e.top,this.dragging=null,this.isDragging=!1;break}case"dragmove":{const t=m(this.lastX,this.lastY,i,n);this.renderRtl?o.left=this.dragging.left-t.deltaX:o.left=this.dragging.left+t.deltaX,o.top=this.dragging.top+t.deltaY,this.dragging=o;break}}r=(this.renderRtl,this.calcXY(o.top,o.left)),this.lastX=i,this.lastY=n,this.innerX===r.x&&this.innerY===r.y||this.$emit("move",this.i,r.x,r.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,r.x,r.y),this.eventBus.$emit("dragEvent",t.type,this.i,r.x,r.y,this.innerH,this.innerW)},calcPosition:function(t,e,i,n){const r=this.calcColWidth();let o;return o=this.renderRtl?{right:Math.round(r*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:i===1/0?i:Math.round(r*i+Math.max(0,i-1)*this.margin[0]),height:n===1/0?n:Math.round(this.rowHeight*n+Math.max(0,n-1)*this.margin[1])}:{left:Math.round(r*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:i===1/0?i:Math.round(r*i+Math.max(0,i-1)*this.margin[0]),height:n===1/0?n:Math.round(this.rowHeight*n+Math.max(0,n-1)*this.margin[1])},o},calcXY(t,e){const i=this.calcColWidth();let n=Math.round((e-this.margin[0])/(i+this.margin[0])),r=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return n=Math.max(Math.min(n,this.cols-this.innerW),0),r=Math.max(Math.min(r,this.maxRows-this.innerH),0),{x:n,y:r}},calcColWidth(){return(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols},calcWH(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.calcColWidth();let r=Math.round((e+this.margin[0])/(n+this.margin[0])),o=0;return o=i?Math.ceil((t+this.margin[1])/(this.rowHeight+this.margin[1])):Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1])),r=Math.max(Math.min(r,this.cols-this.innerX),0),o=Math.max(Math.min(o,this.maxRows-this.innerY),0),{w:r,h:o}},updateWidth:function(t,e){this.containerWidth=t,null!=e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){const t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=v(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){const e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom,enabled:!0};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart",(function(e){t.handleDrag({type:"dragstart",target:e.target,clientX:e.clientX,clientY:e.clientY})})),this.interactObj.on("dragmove",(function(e){t.handleDrag({type:"dragmove",target:e.target,clientX:e.clientX,clientY:e.clientY})})),this.interactObj.on("dragend",(function(e){t.handleDrag({type:"dragend",target:e.target,clientX:e.clientX,clientY:e.clientY})})))}else this.interactObj.dragEnabled=!1},tryMakeResizable:function(){const t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=v(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){let e=this.calcPosition(0,0,this.maxW,this.maxH),i=this.calcPosition(0,0,this.minW,this.minH);const n="."+this.resizableHandleClass.trim().replace(/\s+/g,"."),r={edges:{left:!1,right:n,bottom:n,top:!1},ignoreFrom:this.resizeIgnoreFrom,enabled:!0,restrictSize:{min:{height:i.height,width:i.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(r.preserveAspectRatio=!0),this.interactObj.resizable(r),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart",(function(e){t.handleResize({type:"resizestart",target:e.target,clientX:e.clientX,clientY:e.clientY})})),this.interactObj.on("resizemove",(function(e){t.handleResize({type:"resizemove",target:e.target,clientX:e.clientX,clientY:e.clientY})})),this.interactObj.on("resizeend",(function(e){t.handleResize({type:"resizeend",target:e.target,clientX:e.clientX,clientY:e.clientY})})))}else this.interactObj.resizeEnabled=!1},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;let t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width,!0);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},k=i(15),O=i.n(k),A=i(111),I={insert:"head",singleton:!1},T=(O()(A.a,I),A.a.locals,i(1)),D=Object(T.a)(M,(function(){var t=this._self._c;return t("div",{ref:"item",staticClass:"vue-grid-item",class:this.classObj,style:this.style},[this._t("default"),this.resizableAndNotStatic?t("span",{ref:"handle",class:this.resizableHandleClass},[t("svg",{attrs:{viewBox:"0 0 6 6",width:"6px",height:"6px"}},[t("g",{attrs:{opacity:"0.302"}},[t("path",{attrs:{d:"M 6 6 L 0 6 L 0 4.2 L 4 4.2 L 4.2 4.2 L 4.2 0 L 6 0 L 6 6 Z"}})])])]):this._e()],2)}),[],!1,null,"04395e2a",null).exports,L=i(5),P=i.n(L);function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}var N={name:"GridLayout",provide(){return{eventBus:null,layout:this}},components:{GridItem:D},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null,layoutsCache:this.responsiveLayouts}},created(){const t=this;t.resizeEventHandler=function(e,i,n,r,o,a){t.resizeEvent(e,i,n,r,o,a)},t.dragEventHandler=function(e,i,n,r,o,a){t.dragEvent(e,i,n,r,o,a)},t._provided.eventBus=new P.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){var t,e;this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),t="resize",e=this.onWindowResize,S()&&window.removeEventListener(t,e),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick((function(){!function(t,e){e=e||"Layout";const i=["x","y","w","h"];let n=[];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let r=0,o=t.length;r<o;r++){const o=t[r];for(let t=0;t<i.length;t++)if("number"!=typeof o[i[t]])throw new Error("VueGridLayout: "+e+"["+r+"]."+i[t]+" must be a number!");if(void 0===o.i||null===o.i)throw new Error("VueGridLayout: "+e+"["+r+"].i cannot be null!");if("number"!=typeof o.i&&"string"!=typeof o.i)throw new Error("VueGridLayout: "+e+"["+r+"].i must be a string or number!");if(n.indexOf(o.i)>=0)throw new Error("VueGridLayout: "+e+"["+r+"].i must be unique!");if(n.push(o.i),void 0!==o.static&&"boolean"!=typeof o.static)throw new Error("VueGridLayout: "+e+"["+r+"].static must be a boolean!")}}(this.layout),this.originalLayout=this.layout;const t=this;this.$nextTick((function(){var e,i;t.onWindowResize(),t.initResponsiveFeatures(),e="resize",i=t.onWindowResize,S()?window.addEventListener(e,i):i(),o(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight();new ResizeObserver(()=>{t.onWindowResize()}).observe(t.$refs.item)}))}))},watch:{width:function(t,e){const i=this;this.$nextTick((function(){this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick(()=>{this.$emit("layout-ready",i.layout)}),this.updateHeight()}))},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin(){this.updateHeight()}},methods:{layoutUpdate(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){let t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter(e=>!t.some(t=>e.i===t.i))),this.lastLayoutLength=this.layout.length,this.layoutsCache={[this.lastBreakpoint]:this.layout},this.initResponsiveFeatures()}o(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(!this.autoSize)return;return function(t){let e=0,i=0;for(let n=0,r=t.length;n<r;n++)i=t[n].y+t[n].h,i>e&&(e=i);return e}(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px"},dragEvent:function(t,e,i,n,r,a){let s=l(this.layout,e);null==s&&(s={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=s.x,this.placeholder.y=s.y,this.placeholder.w=a,this.placeholder.h=r,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1}));const u=d(this.layout,s,i,n,!0,this.preventCollision);this.$emit("update:layout",u),o(u,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",u)},resizeEvent:function(t,e,i,n,r,a){let s,u=l(this.layout,e);if(null==u&&(u={h:0,w:0}),this.preventCollision){const t=c(this.layout,{...u,w:a,h:r}).filter(t=>t.i!==u.i);if(s=t.length>0,s){let e=1/0,i=1/0;t.forEach(t=>{t.x>u.x&&(e=Math.min(e,t.x)),t.y>u.y&&(i=Math.min(i,t.y))}),Number.isFinite(e)&&(u.w=e-u.x),Number.isFinite(i)&&(u.h=i-u.y)}}s||(u.w=a,u.h=r),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=i,this.placeholder.y=n,this.placeholder.w=u.w,this.placeholder.h=u.h,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.responsive&&this.responsiveGridLayout(),o(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout(){let t=function(t,e){const i=x(t);let n=i[0];for(let r=1,o=i.length;r<o;r++){const o=i[r];e>t[o]&&(n=o)}return n}(this.breakpoints,this.width),e=b(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=n(this.layout));let i=function(t,e,i,r,a,l,u){if(e[r])return n(e[r]);let c=t;const h=x(i),d=h.slice(h.indexOf(r));for(let t=0,i=d.length;t<i;t++){const i=d[t];if(e[i]){c=e[i];break}}return c=n(c||[]),o(s(c,{cols:l}),u)}(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=i,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,i),this.$emit("update:layout",i),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",b(t,this.cols))},initResponsiveFeatures(){this.layouts=j({},this.layoutsCache)},findDifference(t,e){let i=t.filter((function(t){return!e.some((function(e){return t.i===e.i}))})),n=e.filter((function(e){return!t.some((function(t){return e.i===t.i}))}));return i.concat(n)}}},E=i(112),R={insert:"head",singleton:!1},z=(O()(E.a,R),E.a.locals,Object(T.a)(N,(function(){var t=this._self._c;return t("div",{ref:"item",staticClass:"vue-grid-layout",style:this.mergedStyle},[this._t("default"),t("grid-item",{directives:[{name:"show",rawName:"v-show",value:this.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:this.placeholder.x,y:this.placeholder.y,w:this.placeholder.w,h:this.placeholder.h,i:this.placeholder.i}})],2)}),[],!1,null,"6cc0c585",null).exports);function B(){return(B=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}const V=/^-?\d+(?:\.\d+)?%$/,F=/^-?\d+(?:\.\d+)?px$/,H=/^\d+(?:\.\d+)?fr$/,$=["max-content"];class G extends class extends class{constructor(t){const{left:e="",top:i="",width:n="",height:r="",margin:o="",padding:a="",flex:s="",flexEnd:l=!1,echoCode:u={},...c}=t;if([e,i,n,r].some(t=>!this.isDinstanceValue(t)))throw new TypeError("ElementProp 中存在非法值");if([o,a].some(t=>Array.isArray(t)?!t.every(t=>"number"==typeof t):this.isDinstanceValue(t)&&!t.split(" ").every(t=>this.isDinstanceValue(t))))throw new TypeError("ElementProp 中存在非法值, 请检查 margin 和 padding");if(!(u instanceof Object))throw new TypeError("echoCode 中存在非法值");Object.keys(u).forEach(t=>{const e=u[t];if(Array.isArray(e)&&!e.every(t=>["string","function"].includes(typeof t)))throw new TypeError("echoCode 中存在非法值");if(!Array.isArray(e)&&!["string","function"].includes(typeof e))throw new TypeError("echoCode 中存在非法值")}),this.left=e,this.top=i,this.width=n,this.height=r,this.margin=o,this.padding=a,this.flex=s,this.flexEnd=l,this.echoCode=u,this.extraCustom=c}getProperty(t){return this[t]}propertyGetter(t,e){const i=Object.getOwnPropertyDescriptor(t,e);null!=i&&i.get?Object.defineProperty(this,e,{...i,get:()=>t[e]}):this[e]=t[e]}setProperty(t,e){this[t]=e}assignProperty(t,e){B(this[t],e)}isDinstanceValue(t){return!t||V.test(t)||F.test(t)||$.includes(t)}isflexRangeValue(t){return!t||V.test(t)||F.test(t)||H.test(t)}iconType(t){return t.startsWith("el-icon")?"elIcon":""}refresh(){}}{constructor(t){const{children:e=[],...i}=t;if(super(i),!Array.isArray(e))throw new TypeError("Layout 中必须传入组件列表");this.children=e}refresh(){this.children.forEach(t=>t.refresh())}getIndexsGroup(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>!!t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t=>!e(t);if(!Array.isArray(t))throw new TypeError("传入非数组对象");return t.reduce((t,n,r)=>(i(n)?t[t.length-1].length>0&&t.push([]):e(n)&&t[t.length-1].push(r),t),[[]]).filter(t=>t.length>0)}getFieldSizeList(t){return this.children.map(e=>e[t]||"")}}{constructor(t){const{colNum:e,rowNum:i,children:n=[],margin:r=[0,0],isDraggable:o=!0,isResizable:a=!0,verticalCompact:s=!0,useCssTransforms:l=!0,...u}=t;if(!Array.isArray(n)||n.some(t=>!(t.instance instanceof Element)))throw new TypeError("children 必须为 Element 数组");if(!Array.isArray(r)||2!==r.length||!r.every(t=>"number"==typeof t))throw new TypeError("margin 必须为两个数字组成的数组");if(super({...u,children:[],margin:r}),this.className="AutoGridLayout",!e||"number"!=typeof e)throw new TypeError("colNum 必须为正整数");if("number"!=typeof i)throw new TypeError("rowNum 必须为正整数");this.colNum=e,this.rowNum=i,this.children=n,this.margin=r,this.isDraggable=o,this.isResizable=a,this.verticalCompact=s,this.useCssTransforms=l}}var W=i(2),U={props:{},computed:{className(){return this.instance&&this.instance.className||""},styleProp(){return{left:this.instance.left,top:this.instance.top,width:this.instance.width,height:this.instance.height,margin:this.instance.margin,padding:this.instance.padding,flex:this.instance.flex}},extraClassName(){return[this.instance.flexEnd?"flex-end":"",this.instance&&this.instance.extraCustom&&this.instance.extraCustom.isCard?"is-card":""]},echoCode(){return this.instance&&this.instance.echoCode||{}},hasClickPermission(){const t=this.echoCode&&this.echoCode.click;return!W.b.isEmpty(t)},hasChangePermission(){const t=this.echoCode&&this.echoCode.change;return!W.b.isEmpty(t)}},methods:{clickHandler(t){const e=this.echoCode&&this.echoCode.click;void 0!==e&&this.hasClickPermission&&(t.stopPropagation(),this.eventEchoHandler(e||"",t))},changeHandler(){const t=this.echoCode&&this.echoCode.change;void 0!==t&&this.hasChangePermission&&this.eventEchoHandler(t,...arguments)},eventEchoHandler(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];W.b.isEmpty(t)||(Array.isArray(t)?t.forEach(t=>{echo(t,...i)}):echo(t,...i))},echo(t){if("function"==typeof t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];t(this,...i)}else"string"==typeof t&&this.$emit(t,this.eventArgumentsReturn())},eventArgumentsReturn(){return this.instance}}},Y=i(17),q=i(25),X={name:"UiAutoGridLayout",components:{GridLayout:z,GridItem:D},mixins:[U],props:{isDragging:{type:Boolean,default:!0},isResizing:{type:Boolean,default:!0}},data:()=>({containerHeight:0,rowHeight:0,fullCols:[],beforeLayoutChildren:[],instance:new G({colNum:4,rowNum:3,margin:[0,0]})}),filters:{},computed:{layoutConfig(){return{colNum:this.instance.colNum,maxRows:this.instance.rowNum,rowHeight:this.rowHeight,margin:this.instance.margin,isDraggable:this.instance.isDraggable,isResizable:this.instance.isResizable,verticalCompact:this.instance.verticalCompact,useCssTransforms:this.instance.useCssTransforms}},children(){return this.instance.children},containerStyleProp(){return{...this.styleProp,width:"100%",height:"100% !important",overflow:"hidden"}},staticContainer(){return!(!this.instance.extraCustom||!this.instance.extraCustom.onlyContainer)},isCard(){return this.instance&&this.instance.extraCustom&&this.instance.extraCustom.isCard}},directives:{init:Y.default,resize:q.default},watch:{"layoutConfig.maxRows"(){this.containerHeightRefresh()}},created(){this.$nextTick(()=>{const t=this.$refs.gridlayout;this.instance.assignProperty("extraCustom",{colFullCheck:()=>this.colFullCheck(),dragEvent:function(){return t?t.dragEvent(...arguments):void 0},gridChildrenHandler:(e,i)=>{i(t?t.$children[e]:void 0)}})})},mounted(){},activated(){},beforeDestroy(){},methods:{containerHeightRefresh(){const t=this.instance&&this.instance.extraCustom&&this.instance.extraCustom.getElement?this.instance.extraCustom.getElement():null;t&&this.$nextTick(()=>{const e=t.offsetHeight,i=(this.layoutConfig.maxRows+1)*(this.layoutConfig.margin[1]||0),n=Math.floor((e-i)/this.layoutConfig.maxRows);this.containerHeight=e,this.rowHeight=n})},colFullCheck(){const t=this.children.reduce((t,e)=>t.map((t,i)=>i>=e.x&&i<e.x+e.w?t+e.h:t),Array(this.layoutConfig.colNum).fill(0)),e=t.map((t,e)=>[e,t]).filter(t=>{let[e,i]=t;return i>=this.layoutConfig.maxRows}).map(t=>{let[e]=t;return e});return this.fullCols=e,t},resizeEventHandler(){this.$emit("resize-lock")},resizedEventHandler(t,e,i){const n=this.children.find(e=>e.i===t),r=this.colFullCheck().filter((t,e)=>e>=n.x&&e<n.x+n.w),o=r.some(t=>t>this.layoutConfig.maxRows);this.$nextTick(()=>{if(o){const t=Math.max(...r.map(t=>Math.max(0,t-this.layoutConfig.maxRows)));n.h-t<=0?this.backPrepLayout():(n.h-=t,this.$refs.gridlayout.layoutUpdate())}this.$emit("resize-unlock"),this.itemExnterHandler()})},moveEventHandler(){this.$emit("move-lock")},movedEventHandler(t){const e=this.colFullCheck().some(t=>t>this.layoutConfig.maxRows);this.$nextTick(()=>{e&&this.backPrepLayout(),this.$emit("move-unlock"),this.itemExnterHandler()})},layoutCreatedEvent(){},itemExnterHandler(){},backPrepLayout(){this.instance.children.forEach(t=>{const e=this.beforeLayoutChildren.find(e=>e.i===t.i);t.x=e.x,t.y=e.y,t.w=e.w,t.h=e.h})}}},Z=i(113),K={insert:"head",singleton:!1},Q=(O()(Z.a,K),Z.a.locals,Object(T.a)(X,(function(){var t=this,e=t._self._c;return e("div",{class:["misp-auto-grid",...t.extraClassName],style:t.styleProp,on:{click:t.clickHandler}},[t.staticContainer?e("div",{staticClass:"w-full h-full container-mask"}):t._e(),e("grid-layout",t._b({ref:"gridlayout",style:t.containerStyleProp,attrs:{layout:t.instance.children},on:{"update:layout":function(e){return t.$set(t.instance,"children",e)},"layout-created":t.layoutCreatedEvent}},"grid-layout",t.layoutConfig,!1),t._l(t.instance.children,(function(i){return e("grid-item",t._b({key:i.i,on:{move:t.moveEventHandler,moved:t.movedEventHandler,resize:t.resizeEventHandler,resized:t.resizedEventHandler}},"grid-item",i,!1),[e("div",{staticClass:"w-full h-full grid-item-wrapper",staticStyle:{"user-select":"none"},on:{mouseenter:t.itemExnterHandler}},[e(t.getClassName(i.instance),t._g(t._b({key:"component-"+i.i,tag:"component",attrs:{instance:i.instance,"is-dragging":t.isDragging,"is-resizing":t.isResizing}},"component",t.$attrs,!1),t.$listeners)),e("div",{staticClass:"delete-wrapper"},[t._v("\n 123\n ")])],1)])})),1)],1)}),[],!1,null,"e1e90aec",null).exports);z.install=function(t){t.component(Q.name,Q),t.component(z.name,z),t.component(D.name,D)};e.default=Q},function(t,e,i){"use strict";i.r(e);var n=i(5),r=i.n(n);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}let a=0;class s{constructor(t){this.id=a++,this.label=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.isLeaf=!1;for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this[e]=t[e]);this.level=0,this.loaded=!1,this.loading=!1,this.childNodes=[],this.parent&&(this.level=this.parent.level+1);const e=this.store;if(!e)throw new Error("[Node] store is required!");e.registerNode(this);const i=e.props;i&&"function"==typeof i.label?this.label=i.label(this.data,this):i&&"string"==typeof i.label&&(this.label=this.getPropByPath(this.data,i.label)),i&&"function"==typeof i.disabled?this.disabled=i.disabled(this.data,this):i&&"string"==typeof i.disabled&&(this.disabled=this.getPropByPath(this.data,i.disabled)),!0!==e.lazy&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),this.data&&this.updateLeafState()}setData(t){let e;Array.isArray(t)||this.markAsCheckable(),this.data=t,r.a.set(this,"childNodes",[]),e=0===this.level&&this.data instanceof Array?this.data:this.getPropByPath(this.data,this.store.props.children)||[];for(let t=0,i=e.length;t<i;t++)this.insertChild({data:e[t]});0!==this.level&&this.updateLeafState()}getPropByPath(t,e){if(!e)return null;let i=t,n=e.split(".");for(let t=0;t<n.length&&i;t++)i=i[n[t]];return i}markAsCheckable(){const t=this.store,e=t.key;e&&t.defaultCheckedKeys&&t.defaultCheckedKeys.indexOf(this.data[e])>-1&&this.setChecked(!0,t.checkStrictly)}insertChild(t,e){if(!t)throw new Error("insertChild error: child is required.");t instanceof s||(o(t,{parent:this,store:this.store}),t=new s(t)),t.level=this.level+1,void 0===e||e<0?this.childNodes.push(t):this.childNodes.splice(e,0,t),this.updateLeafState()}removeChild(t){const e=this.childNodes.indexOf(t);e>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(e,1)),this.updateLeafState()}removeChildByData(t){let e=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===t){e=this.childNodes[i];break}e&&this.removeChild(e)}expand(t,e){const i=()=>{if(e){let t=this.parent;for(;t&&-1!==t.level;)r.a.set(t,"expanded",!0),t=t.parent}r.a.set(this,"expanded",!0),t&&t()};this.shouldLoadData()?this.loadData(t=>{t instanceof Array&&(this.checked&&this.setChecked(!0,!0),i())}):i()}shouldLoadData(){return this.store.lazy&&this.store.load&&!this.loaded&&!this.loading}doCreateChildren(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(t=>{this.insertChild(o({data:t},e))})}loadData(t){if(this.store.lazy&&this.store.load&&!this.loaded&&!this.loading){r.a.set(this,"loading",!0);const e=e=>{r.a.set(this,"loaded",!0),r.a.set(this,"loading",!1),r.a.set(this,"childNodes",[]),e instanceof Array&&this.doCreateChildren(e),this.updateLeafState(),t&&t.call(this,e)};this.store.load(this,e)}else t&&t.call(this)}collapse(){r.a.set(this,"expanded",!1)}setChecked(t,e,i,n){if(r.a.set(this,"indeterminate","half"===t),r.a.set(this,"checked",!0===t),!(this.store.checkStrictly||this.store.checkDescendants&&i)){if(e){const i=this.childNodes;for(let r=0,o=i.length;r<o;r++){const o=i[r];n=!1!==n?!1!==t:n;let a=o.disabled?o.checked:n;o.setChecked(a,e,!0,n)}}const i=this.parent;if(!i||-1===i.level)return;i.recalculateCheckedState()}}recalculateCheckedState(){if(this.store.checkStrictly)return;const t=this.childNodes;let e=0,i=0,n=t.length;for(let r=0;r<n;r++){const n=t[r];n.checked?e++:n.indeterminate&&i++}e===n&&n>0?(this.checked=!0,this.indeterminate=!1):e>0||i>0?(this.checked=!1,this.indeterminate=!0):(this.checked=!1,this.indeterminate=!1);const r=this.parent;r&&-1!==r.level&&r.recalculateCheckedState()}updateChildren(){const t=this.getChildren()||[],e=this.childNodes.map(t=>t.data),i={},n=[];t.forEach((t,r)=>{const o=t[this.store.key];!!o&&e.findIndex(t=>t[this.store.key]===o)>=0?i[o]={index:r,data:t}:n.push({index:r,data:t})}),this.store.key||(n.length=0,t.forEach((t,e)=>{n.push({index:e,data:t})})),e.forEach(t=>{if(this.store.key){const e=t[this.store.key];i[e]||this.removeChildByData(t)}else this.removeChildByData(t)}),n.forEach(t=>{let{index:e,data:i}=t;this.insertChild({data:i},e)}),this.updateLeafState()}updateLeafState(){if(this.store.lazy&&this.loaded&&"function"!=typeof this.store.props.isLeaf)return void(this.isLeaf=!this.childNodes||0===this.childNodes.length);const t=this.store.props.isLeaf?this.getPropByPath(this.data,this.store.props.isLeaf):void 0;"boolean"==typeof t?this.isLeaf=t:this.store.lazy&&!this.loaded?this.isLeaf=!1:this.isLeaf=!this.childNodes||0===this.childNodes.length}getChildren(){const t=this.data;if(!t)return null;const e=this.store.props;let i="children";return e&&(i=e.children||"children"),t[i]}}class l{constructor(t){this.currentNode=null,this.nodesMap={},this.root=null,this.data=null,this.props={children:"children",label:"label",disabled:"disabled",isLeaf:"isLeaf"},this.lazy=!1,this.load=null,this.filterNodeMethod=null,this.key=null,this.defaultExpandedKeys=[],this.defaultCheckedKeys=[],this.checkStrictly=!1,this.checkDescendants=!1,this.defaultIsAllExpanded=!1,this.expandAndLoadLevel=0;for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this[e]=t[e]);this.nodesMap={},this.root=new s({data:this.data,store:this}),this.lazy&&this.load?this.root.loadData(()=>{this._initDefaultCheckedNodes(),this.setDefaultExpandedKeys(this.defaultExpandedKeys)}):(this._initDefaultCheckedNodes(),this.setDefaultExpandedKeys(this.defaultExpandedKeys))}registerNode(t){const e=this.key;if(!e||!t||!t.data)return;const i=t.data[e];void 0!==i&&(this.nodesMap[i]=t)}deregisterNode(t){const e=this.key;e&&t&&t.data&&(t.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[t.data[e]])}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],e=this.nodesMap;t.forEach(t=>{const i=e[t];i&&i.setChecked(!0,!this.checkStrictly)})}filter(t){const e=this.filterNodeMethod,i=function(n){const r=n.root?n.root.childNodes:n.childNodes;if(r.forEach(n=>{n.visible=e.call(n,t,n.data,n),i(n)}),!n.visible&&r.length){let t=!0;t=r.every(t=>!t.visible),n.root?n.root.visible=!1===t:n.visible=!1===t}t&&(!n.visible||n.isLeaf||n.root||n.expand())};i(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof s)return t;const e="object"!=typeof t?t:t[this.key];return this.nodesMap[e]||null}_getAllNodes(){const t=[],e=this.nodesMap;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(e[i]);return t}_setCheckedKeys(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;const n=this._getAllNodes().sort((t,e)=>e.level-t.level),r=Object.create(null),o=Object.keys(i);n.forEach(t=>t.setChecked(!1,!1));for(let i=0,a=n.length;i<a;i++){const a=n[i],s=a.data[t].toString();if(!(o.indexOf(s)>-1)){a.checked&&!r[s]&&a.setChecked(!1,!1);continue}let l=a.parent;for(;l&&l.level>0;)r[l.data[t]]=!0,l=l.parent;if(a.isLeaf||this.checkStrictly)a.setChecked(!0,!1);else if(a.setChecked(!0,!0),e){a.setChecked(!1,!1);const t=function(e){e.childNodes.forEach(e=>{e.isLeaf||e.setChecked(!1,!1),t(e)})};t(a)}}}setCheckedKeys(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=t;const i=this.key,n={};t.forEach(t=>{n[t]=!0}),this._setCheckedKeys(i,e,n)}setCheckedNodes(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.key,n={};t.forEach(t=>{n[(t||{})[i]]=!0}),this._setCheckedKeys(i,e,n)}getCheckedNodes(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(r=>{(r.checked||e&&r.indeterminate)&&(!t||t&&r.isLeaf)&&i.push(r.data),n(r)})};return n(this),i}getCheckedKeys(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const t=[],e=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),e(i)})};return e(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}setChecked(t,e,i){const n=this.getNode(t);n&&n.setChecked(!!e,i)}setDefaultExpandedKeys(t){this.defaultExpandedKeys=t||[];const e={};this.defaultExpandedKeys.forEach(t=>{e[t]=!0});const i=t=>{(t.root?t.root.childNodes:t.childNodes).forEach(t=>{const n=t.data[this.key];e[n]&&t.expand(),i(t)})};i(this)}setUserCurrentNode(t){const e=t[this.key],i=this.nodesMap[e];this.setCurrentNode(i)}setCurrentNodeKey(t){const e=this.nodesMap[t];e&&this.setCurrentNode(e)}remove(t){const e=this.getNode(t);e&&e.parent&&(this.currentNode===e&&(this.currentNode=null),e.parent.removeChild(e))}append(t,e){const i=e?this.getNode(e):this.root;i&&i.insertChild({data:t})}insertBefore(t,e){const i=this.getNode(e);i&&i.parent&&i.parent.insertChild({data:t},i.parent.childNodes.indexOf(i))}insertAfter(t,e){const i=this.getNode(e);i&&i.parent&&i.parent.insertChild({data:t},i.parent.childNodes.indexOf(i)+1)}updateKeyChildren(t,e){const i=this.nodesMap[t];i&&i.setData(e)}setCurrentNode(t){const e=this.currentNode;e&&r.a.set(e,"isCurrent",!1),this.currentNode=t,t&&r.a.set(this.currentNode,"isCurrent",!0)}getCurrentNode(){return this.currentNode?this.currentNode.data:null}}var u=i(3);const c={"before-enter"(t){Object(u.a)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},"after-enter"(t){Object(u.h)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},"before-leave"(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},leave(t){0!==t.scrollHeight&&(Object(u.a)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},"after-leave"(t){Object(u.h)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}};var h={name:"CollapseTransition",functional:!0,render(t,e){let{children:i}=e;return t("transition",{on:c},i)}},d=i(21),p=i(11);var f={name:"UiTreeNode",componentName:"UiTreeNode",mixins:[p.a],props:{node:{default:()=>({})},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{CollapseTransition:h,UiCheckbox:d.default,NodeContent:{props:{node:{required:!0}},render(t){const e=this.$parent,i=e.tree,n=this.node,{data:r,store:o}=n;return e.renderContent?e.renderContent.call(e._renderProxy,t,{_self:i.$vnode.context,node:n,data:r,store:o}):i.$scopedSlots.default?i.$scopedSlots.default({node:n,data:r}):t("span",{class:"ui-tree-node__label"},[n.label])}}},data:()=>({tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}),watch:{"node.indeterminate"(t){this.handleSelectChange(this.node.checked,t)},"node.checked"(t){this.handleSelectChange(t,this.node.indeterminate)},"node.expanded"(t){this.$nextTick(()=>this.expanded=t),t&&(this.childNodeRendered=!0)}},methods:{getNodeKey(t){return function(t,e){if(!t)return e.id||e._id;const i=t.split(".");let n=e;for(let t=0;t<i.length&&n;t++)n=n[i[t]];return n}(this.tree.nodeKey,t.data)},handleSelectChange(t,e){this.oldChecked===t&&this.oldIndeterminate===e||this.$emit("check-change",this.node.data,t,e),this.oldChecked=t,this.oldIndeterminate=e},handleClick(){const t=this.tree.store;t.setCurrentNode(this.node),this.tree.$emit("current-change",t.currentNode?t.currentNode.data:null,t.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu(t){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(t.stopPropagation(),t.preventDefault()),this.tree.$emit("node-contextmenu",t,this.node.data,this.node,this)},handleExpandIconClick(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):this.node.expand(()=>{this.expanded=!0,this.childNodeRendered=!0,this.$emit("node-expand",this.node.data,this.node,this),this.tree.$emit("node-expand",this.node.data,this.node,this)}))},handleCheckChange(t,e){this.node.setChecked(e.target.checked,!this.tree.checkStrictly),this.$nextTick(()=>{const t=this.tree.store;this.tree.$emit("check",this.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})},handleChildNodeExpand(t,e,i){this.broadcast("UiTreeNode","tree-node-expand",e),this.tree.$emit("node-expand",t,e,i)}},created(){const t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;const e=this.tree,i=(e.props||{}).children||"children";this.$watch("node.data."+i,()=>{this.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",t=>{this.node!==t&&this.node.collapse()})}},g=i(1),m=Object(g.a)(f,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"ui-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!0,"is-checked":t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked},on:{click:function(e){return e.stopPropagation(),t.handleClick.apply(null,arguments)},contextmenu:e=>t.handleContextMenu(e)}},[e("div",{staticClass:"ui-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[e("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"ui-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"ui-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick.apply(null,arguments)}}}),t.showCheckbox?e("ui-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(t){t.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?e("span",{staticClass:"ui-tree-node__loading-icon ui-icon-loading"}):t._e(),e("node-content",{attrs:{node:t.node}})],1),e("collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?e("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"ui-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(i){return e("ui-tree-node",{key:t.getNodeKey(i),attrs:{"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:i},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)}),[],!1,null,null,null).exports,y=i(10),v={name:"UiTree",mixins:[p.a,y.a],components:{UiTreeNode:m},props:{data:{type:Array},emptyText:{type:String,default:()=>Object(y.b)("components.tree.emptyText")||"暂无数据"},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultExpandedKeys:Array,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String,defaultCheckedKeys:Array,renderContent:Function},data:()=>({store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}}),computed:{children:{get(){return this.data}},isEmpty(){const{childNodes:t}=this.root;return!t||0===t.length||t.every(t=>{let{visible:e}=t;return!e})}},watch:{defaultCheckedKeys(t){this.store.defaultCheckedKeys=t,this.store.setCheckedKeys(t)},defaultExpandedKeys(t){this.store.defaultExpandedKeys=t,this.store.setDefaultExpandedKeys(t)},data(t){this.store.setData(t)},checkboxItems(t){t&&t.length>0&&(this.checkboxItems=[])},checkStrictly(t){this.store.checkStrictly=t}},methods:{filter(t){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(t)},getNodeKey(t){return t.data[this.nodeKey||"id"]||t.id},getNodePath(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const e=this.store.getNode(t);if(!e)return[];const i=[];let n=e;for(;n&&n.level>0;)i.push(n.data),n=n.parent;return i.reverse()},getCheckedNodes(t,e){return this.store.getCheckedNodes(t,e)},getCheckedKeys(t){return this.store.getCheckedKeys(t)},getCurrentNode(){const t=this.store.getCurrentNode();return t?t.data:null},getCurrentKey(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=this.getCurrentNode();return t?t[this.nodeKey]:null},setCheckedNodes(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(t,e)},setCheckedKeys(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(t,e)},setChecked(t,e,i){this.store.setChecked(t,e,i)},getHalfCheckedNodes(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys(){return this.store.getHalfCheckedKeys()},setCurrentNode(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(t)},setCurrentKey(t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(t)},getNode(t){return this.store.getNode(t)},remove(t){this.store.remove(t)},append(t,e){this.store.append(t,e)},insertBefore(t,e){this.store.insertBefore(t,e)},insertAfter(t,e){this.store.insertAfter(t,e)},handleNodeExpand(t,e,i){this.broadcast("UiTreeNode","tree-node-expand",e),this.$emit("node-expand",t,e,i)},updateKeyChildren(t,e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateKeyChildren(t,e)},initTabIndex(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");const t=this.$el.querySelectorAll(".is-current[role=treeitem]");t.length?t[0].setAttribute("tabindex","0"):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex","0")}},created(){this.isTree=!0,this.store=new l({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root},mounted(){this.initTabIndex()},updated(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},b=Object(g.a)(v,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-tree",class:{"ui-tree--highlight-current":t.highlightCurrent,"is-dragging":!!t.dragState.draggingNode,"is-drop-not-allow":!t.dragState.allowDrop,"is-drop-inner":"inner"===t.dragState.dropType},attrs:{role:"tree"}},[t._l(t.root.childNodes,(function(i){return e("ui-tree-node",{key:t.getNodeKey(i),attrs:{node:i,props:t.props,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent},on:{"node-expand":t.handleNodeExpand}})})),t.isEmpty?e("div",{staticClass:"ui-tree__empty-block"},[e("span",{staticClass:"ui-tree__empty-text"},[t._v(t._s(t.emptyText))])]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"ui-tree__drop-indicator"})],2)}),[],!1,null,null,null).exports;b.install=function(t){t.component(b.name,b)};e.default=b},function(t,e,i){"use strict";i.r(e);var n={name:"PagePagination",props:{currentPage:{type:Number,default:1},currentSize:{type:Number,default:10},sizes:{type:Array,default:()=>[10,20,50]},total:{type:Number,default:0},layout:{type:String,default:"total, prev, pager, next, sizes, jumper"}},data:()=>({page:0,size:0}),watch:{currentPage:{handler(t){this.page=t},immediate:!0,deep:!0},currentSize:{handler(t){this.size=t},immediate:!0,deep:!0},page:{handler(t){this.$emit("update:current-page",t),this.$emit("change")}},size:{handler(t){this.$emit("update:current-size",t),this.$emit("change")}}},methods:{handleCurrentChange(t){this.page=t,this.$emit("page-change",t)},handleSizeChange(t){this.size=t,this.$emit("size-change",t)}}},r=i(15),o=i.n(r),a=i(116),s={insert:"head",singleton:!1},l=(o()(a.a,s),a.a.locals,i(1)),u=Object(l.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pagination-wrapper"},[e("ui-pagination",{staticClass:"pagination",attrs:{"current-page":t.page,"page-size":t.size,"page-sizes":t.sizes,total:t.total,layout:t.layout,background:""},on:{"update:currentPage":function(e){t.page=e},"update:current-page":function(e){t.page=e},"update:pageSize":function(e){t.size=e},"update:page-size":function(e){t.size=e},"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}}),e("div",{staticStyle:{clear:"both"}})],1)}),[],!1,null,"44909ca4",null).exports,c=i(31);const h={large:"25%","lar-middle":"20%",middle:"15%","mid-small":"10%",small:"5%",flexible:""};var d={name:"UiTable",components:{PagePagination:u,NoData:c.a},props:{gridOptions:{type:Object,default:()=>({pagerConfig:{currentPage:1,pageSize:10,total:0,sizes:[10,20,50]}})},pageable:{type:Boolean,default:!0},customSort:{type:Boolean,default:!0}},computed:{safePagerConfig(){return this.gridOptions.pagerConfig||{currentPage:1,pageSize:10,total:0,sizes:[10,20,50]}},sortConfigProp(){return{remote:this.customSort}},filterConfigProp(){return{remote:this.customSort}},hasData(){return Array.isArray(this.gridOptions.data)&&this.gridOptions.data.length>0},mergedOptions(){const t=this.gridOptions.columns?this.gridOptions.columns.map(t=>{const e={...t};return t.widthType&&h[t.widthType]&&(e.width=h[t.widthType]),e}):[];return{...this.gridOptions,columns:t}}},watch:{"gridOptions.columns":{handler(t){if(Array.isArray(t)){const e=JSON.parse(JSON.stringify(t));e.forEach(t=>{t.widthType&&h[t.widthType]&&t.width!==h[t.widthType]&&(t.width=h[t.widthType]||"")}),this.$refs.xGrid&&"function"==typeof this.$refs.xGrid.reloadColumn&&this.$refs.xGrid.reloadColumn(e)}},deep:!0}},methods:{handleRadioChange(t){let{row:e}=t;this.$emit("radio-change",e)},rowDragendEvent(t){let{newRow:e,oldRow:i,dragPos:n}=t;this.$emit("row-dragend",{newRow:e,oldRow:i,dragPos:n})},handleSortFilter(){const t={sort:this.$refs.xGrid.getSortColumns(),filter:this.$refs.xGrid.getCheckedFilters()};this.$emit("sort-filter-change",t)},reloadData(){this.$emit("reload")},setCheckboxRow(){this.$refs.xGrid.setCheckboxRow(...arguments)},setRadioRow(){this.$refs.xGrid.setRadioRow(...arguments)}}},p=Object(l.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-table"},[e("div",{staticClass:"ui-table__wrapper"},[e("vxe-grid",t._g(t._b({ref:"xGrid",staticClass:"ui-table__grid",attrs:{border:"none","show-overflow":"","keep-source":"","pager-config":!1,"sort-config":t.sortConfigProp,"filter-config":t.filterConfigProp,height:"auto","auto-resize":""},on:{"page-change":function(e){return t.$emit("page-change",e)},"sort-change":t.handleSortFilter,"filter-change":t.handleSortFilter,"radio-change":t.handleRadioChange,"row-dragend":t.rowDragendEvent},scopedSlots:t._u([t._l(Object.keys(t.$scopedSlots),(function(e){return{key:e,fn:function(i){return[t._t(e,null,null,i)]}}}))],null,!0)},"vxe-grid",t.mergedOptions,!1),t.$listeners),[e("template",{slot:"empty"},[e("div")])],2)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasData&&!t.gridOptions.loading,expression:"!hasData && !gridOptions.loading"}],staticClass:"ui-table__no-data"},[e("no-data")],1),t.pageable?e("page-pagination",{directives:[{name:"show",rawName:"v-show",value:t.hasData,expression:"hasData"}],attrs:{"current-page":t.safePagerConfig.currentPage,"current-size":t.safePagerConfig.pageSize,total:t.safePagerConfig.total,sizes:t.safePagerConfig.sizes},on:{change:function(e){return t.$emit("reload")},"page-change":function(e){return t.$emit("page-change",e)},"size-change":function(e){return t.$emit("size-change",e)}}}):t._e()],1)}),[],!1,null,null,null).exports;p.install=function(t){t.component(p.name,p)};e.default=p},function(t,e,i){"use strict";i.r(e);var n={name:"UiImgEmpty"},r=i(1),o={name:"UiEmpty",components:{"ui-img-empty":Object(r.a)(n,(function(){var t=this._self._c;return t("svg",{staticClass:"ui-empty__image-path",attrs:{viewBox:"0 0 64 64"}},[t("path",{attrs:{d:"M48,20a3,3,0,0,0-3-3H33V15a5,5,0,0,0-10,0v2H11a3,3,0,0,0-3,3V48a3,3,0,0,0,3,3H45a3,3,0,0,0,3-3ZM25,15a3,3,0,0,1,6,0v2H25ZM11,20H23v8a1,1,0,0,0,2,0V20h8v8a1,1,0,0,0,2,0V20h8a1,1,0,0,1,1,1V48a1,1,0,0,1-1,1H11a1,1,0,0,1-1-1V20A1,1,0,0,1,11,20Z"}}),t("path",{attrs:{d:"M38.88,32.36a5.53,5.53,0,0,0-3.63-1.37,5.71,5.71,0,0,0-5.59,5.65v5.37a1.62,1.62,0,0,1-1.61,1.62H28a1.62,1.62,0,0,1-1.61-1.62V36.6a5.63,5.63,0,1,0-2,4.3v-4.3a1,1,0,1,0-2,0v5a5.61,5.61,0,1,0,4-5.35V36.6a3.72,3.72,0,0,1,3.63-3.65,3.55,3.55,0,0,1,2.61,1,3.71,3.71,0,0,1,1.09,2.68v5.37A3.62,3.62,0,0,0,28,45.63h0a3.62,3.62,0,0,0,3.63,3.62h.05A3.62,3.62,0,0,0,35.3,45.63V40.2a1,1,0,0,0-2,0v5.43a1.62,1.62,0,0,1-1.61,1.62h0a1.62,1.62,0,0,1-1.61-1.62v-9a3.71,3.71,0,0,1,1.09-2.68,3.55,3.55,0,0,1,2.61-1,3.72,3.72,0,0,1,2.61,1,3.71,3.71,0,0,1,1.09,2.68V40.2a1,1,0,0,0,2,0v-3.57A5.71,5.71,0,0,0,38.88,32.36Z"}})])}),[],!1,null,null,null).exports},props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription(){return this.description||"Empty"},imageStyle(){return{width:this.imageSize?this.imageSize+"px":""}}}},a=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-empty"},[e("div",{staticClass:"ui-empty__image",style:t.imageStyle},[t.image?e("img",{attrs:{src:t.image,ondragstart:"return false"}}):t._t("image",(function(){return[e("ui-img-empty")]}))],2),e("div",{staticClass:"ui-empty__description"},[t.$slots.description?t._t("description"):e("p",[t._v(t._s(t.emptyDescription))])],2),t.$slots.default?e("div",{staticClass:"ui-empty__bottom"},[t._t("default")],2):t._e()])}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n={name:"UiScrollbarBar",props:{vertical:Boolean,size:String,move:Number},data:()=>({cursorDown:!1,cursorStart:0,scrollContainerScrollTop:0}),computed:{thumbStyle(){return{transform:`translate${this.vertical?"Y":"X"}(${this.move}%)`,[this.vertical?"height":"width"]:this.size}},barMap:()=>({vertical:{name:"vertical",size:"height",pos:"top"},horizontal:{name:"horizontal",size:"width",pos:"left"}})},methods:{handleClick(t){const e=this.$refs.thumb;if(t.target===e)return;const i=this.vertical?"height":"width",n=e.getBoundingClientRect()[i],r=this.$el.getBoundingClientRect()[this.barMap[this.vertical?"vertical":"horizontal"].pos],o=(t.clientY-r-n/2)/(this.$el[i]-n)*100;this.$parent.wrap.scrollTop=o/100*this.$parent.wrap.scrollHeight},handleThumbDown(t){0===t.button&&(this.cursorDown=!0,this.cursorStart=this.vertical?t.clientY:t.clientX,this.scrollContainerScrollTop=this.$parent.wrap.scrollTop,document.addEventListener("mousemove",this.handleMousemove),document.addEventListener("mouseup",this.handleMouseup),t.preventDefault(),t.stopPropagation())},handleMousemove(t){if(!this.cursorDown)return;const e=this.vertical?"height":"width",i=this.$refs.thumb.getBoundingClientRect()[e],n=this.$parent.$el.getBoundingClientRect()[e],r=((this.vertical?t.clientY:t.clientX)-this.cursorStart)/(n-i)*100,o=this.$parent.wrap.scrollHeight-this.$parent.wrap.clientHeight;this.$parent.wrap.scrollTop=this.scrollContainerScrollTop+r/100*o},handleMouseup(){this.cursorDown=!1,document.removeEventListener("mousemove",this.handleMousemove),document.removeEventListener("mouseup",this.handleMouseup)}},beforeDestroy(){document.removeEventListener("mousemove",this.handleMousemove),document.removeEventListener("mouseup",this.handleMouseup)}},r=i(1);var o={name:"UiScrollbar",components:{UiScrollbarBar:Object(r.a)(n,(function(){var t=this._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:this.size,expression:"size"}],class:["ui-scrollbar__bar","is-"+this.barMap[this.vertical?"vertical":"horizontal"].name],on:{mousedown:this.handleClick}},[t("div",{ref:"thumb",class:["ui-scrollbar__thumb"],style:[this.thumbStyle],on:{mousedown:this.handleThumbDown}})])}),[],!1,null,null,null).exports},props:{native:Boolean,wrapStyle:[String,Array,Object],wrapClass:[String,Object,Array],viewClass:[String,Object,Array],viewStyle:[String,Object,Array],noresize:Boolean,tag:{type:String,default:"div"}},data:()=>({sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}),computed:{wrap(){return this.$refs.wrap}},methods:{handleScroll(){const t=this.wrap;t&&(this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth)},update(){const t=this.wrap;if(!t)return;const e=100*t.clientHeight/t.scrollHeight,i=100*t.clientWidth/t.scrollWidth;this.sizeHeight=e<100?e+"%":"",this.sizeWidth=i<100?i+"%":""}},mounted(){if(!this.native&&(this.$nextTick(this.update),!this.noresize&&this.$refs.resize)){const t=new ResizeObserver(()=>{this.update()});t.observe(this.$refs.resize),this._resizeObserver=t}},beforeDestroy(){this.native||this._resizeObserver&&this.$refs.resize&&this._resizeObserver.disconnect()}},a=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-scrollbar"},[e("div",{ref:"wrap",class:[t.wrapClass,"ui-scrollbar__wrap",t.native?"":"ui-scrollbar__wrap--hidden-default"],style:t.wrapStyle,on:{scroll:t.handleScroll}},[e(t.tag,{ref:"resize",tag:"component",class:["ui-scrollbar__view",t.viewClass],style:t.viewStyle},[t._t("default")],2)],1),t.native?t._e():[e("ui-scrollbar-bar",{attrs:{move:t.moveX,size:t.sizeWidth}}),e("ui-scrollbar-bar",{attrs:{vertical:"",move:t.moveY,size:t.sizeHeight}})]],2)}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n={name:"UiImgPlaceholder"},r=i(1),o=Object(r.a)(n,(function(){var t=this._self._c;return t("div",{staticClass:"ui-skeleton__image"},[t("svg",{attrs:{viewBox:"0 0 1px 1px",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{width:"1",height:"1",fill:"#ebeef5"}})])])}),[],!1,null,null,null).exports,a={name:"UiSkeletonItem",props:{variant:{type:String,default:"text"}},components:{"ui-img-placeholder":o}},s=Object(r.a)(a,(function(){var t=this._self._c;return t("div",{class:["ui-skeleton__item","ui-skeleton__"+this.variant]},["image"===this.variant?t("ui-img-placeholder"):this._e()],1)}),[],!1,null,null,null).exports;s.install=function(t){t.component(s.name,s)};e.default=s},function(t,e,i){"use strict";i.r(e);var n=i(22),r=i(21),o=i(24),a={name:"UiTransferPanel",componentName:"UiTransferPanel",components:{UiCheckbox:r.default,UiCheckboxGroup:r.default.Group||r.default,UiInput:o.default},props:{data:{type:Array,default:()=>[]},renderContent:Function,placeholder:{type:String,default:"请输入搜索内容"},title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:()=>({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),watch:{checked(t,e){if(this.updateAllChecked(),this.checkChangeByUser){const i=t.concat(e).filter(i=>-1===t.indexOf(i)||-1===e.indexOf(i));this.$emit("checked-change",t,i)}else this.$emit("checked-change",t),this.checkChangeByUser=!0},data(){const t=[],e=this.filteredData.map(t=>t[this.keyProp]);this.checked.forEach(i=>{e.indexOf(i)>-1&&t.push(i)}),this.checkChangeByUser=!1,this.checked=t},checkableData(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler(t,e){if(e&&t.length===e.length&&t.every(t=>e.indexOf(t)>-1))return;const i=[],n=this.checkableData.map(t=>t[this.keyProp]);t.forEach(t=>{n.indexOf(t)>-1&&i.push(t)}),this.checkChangeByUser=!1,this.checked=i}}},computed:{filteredData(){return this.data.filter(t=>{if("function"==typeof this.filterMethod)return this.filterMethod(this.query,t);return(t[this.labelProp]||t[this.keyProp].toString()).toLowerCase().indexOf(this.query.toLowerCase())>-1})},checkableData(){return this.filteredData.filter(t=>!t[this.disabledProp])},checkedSummary(){const t=this.checked.length,e=this.data.length,{noChecked:i,hasChecked:n}=this.format;return i&&n?t>0?n.replace(/\${checked}/g,t).replace(/\${total}/g,e):i.replace(/\${total}/g,e):`${t}/${e}`},isIndeterminate(){const t=this.checked.length;return t>0&&t<this.checkableData.length},hasNoMatch(){return this.query.length>0&&0===this.filteredData.length},inputIcon(){return this.query.length>0&&this.inputHover?"close":"search"},labelProp(){return this.props.label||"label"},keyProp(){return this.props.key||"key"},disabledProp(){return this.props.disabled||"disabled"},hasFooter(){return!!this.$slots.default},noMatchText:()=>"无匹配数据",noDataText:()=>"无数据"},methods:{updateAllChecked(){const t=this.checkableData.map(t=>t[this.keyProp]);this.allChecked=t.length>0&&t.every(t=>this.checked.indexOf(t)>-1)},handleAllCheckedChange(t){this.checked=t?this.checkableData.map(t=>t[this.keyProp]):[]},clearQuery(){"close"===this.inputIcon&&(this.query="")},getParent(t){return"UiTransferPanel"===t.$options.componentName?t:t.$parent?this.getParent(t.$parent):t}}},s=i(1),l={name:"UiTransfer",components:{TransferPanel:Object(s.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-transfer-panel"},[e("p",{staticClass:"ui-transfer-panel__header"},[e("ui-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleAllCheckedChange},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}},[t._v("\n "+t._s(t.title)+"\n "),e("span",[t._v(t._s(t.checkedSummary))])])],1),e("div",{class:["ui-transfer-panel__body",t.hasFooter?"is-with-footer":""]},[t.filterable?e("ui-input",{staticClass:"ui-transfer-panel__filter",attrs:{size:"small",placeholder:t.placeholder},on:{mouseenter:function(e){t.inputHover=!0},mouseleave:function(e){t.inputHover=!1}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}},[e("i",{class:["ui-input__icon",t.inputIcon],attrs:{slot:"prefix"},on:{click:t.clearQuery},slot:"prefix"})]):t._e(),e("ui-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!t.hasNoMatch&&t.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"ui-transfer-panel__list",class:{"is-filterable":t.filterable},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},t._l(t.filteredData,(function(i){return e("ui-checkbox",{key:i[t.keyProp],staticClass:"ui-transfer-panel__item",attrs:{label:i[t.keyProp],disabled:i[t.disabledProp]}},[e("option-content",{attrs:{option:i}})],1)})),1),e("p",{directives:[{name:"show",rawName:"v-show",value:t.hasNoMatch,expression:"hasNoMatch"}],staticClass:"ui-transfer-panel__empty"},[t._v(t._s(t.noMatchText))]),e("p",{directives:[{name:"show",rawName:"v-show",value:0===t.data.length&&!t.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"ui-transfer-panel__empty"},[t._v(t._s(t.noDataText))])],1),t.hasFooter?e("p",{staticClass:"ui-transfer-panel__footer"},[t._t("default")],2):t._e()])}),[],!1,null,null,null).exports,UiButton:n.default},props:{data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:{type:String,default:"请输入搜索内容"},filterMethod:Function,leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:Function,value:{type:Array,default:()=>[]},format:{type:Object,default:()=>({noChecked:"${total} 项",hasChecked:"已选 ${checked}/${total} 项"})},filterable:Boolean,props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,default:"original"}},data:()=>({leftChecked:[],rightChecked:[]}),computed:{dataObj(){const t=this.props.key;return this.data.reduce((e,i)=>(e[i[t]]=i)&&e,{})},sourceData(){return this.data.filter(t=>-1===this.value.indexOf(t[this.props.key]))},targetData(){return"original"===this.targetOrder?this.data.filter(t=>this.value.indexOf(t[this.props.key])>-1):this.value.reduce((t,e)=>{const i=this.dataObj[e];return i&&t.push(i),t},[])},hasButtonTexts(){return 2===this.buttonTexts.length},leftTitle:()=>"列表一",rightTitle:()=>"列表二"},watch:{value(t){this.$emit("change",t)}},methods:{onSourceCheckedChange(t,e){this.leftChecked=t,void 0!==e&&this.$emit("left-check-change",t,e)},onTargetCheckedChange(t,e){this.rightChecked=t,void 0!==e&&this.$emit("right-check-change",t,e)},addToLeft(){let t=this.value.slice();this.rightChecked.forEach(e=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)}),this.$emit("input",t),this.$emit("change",t,"left",this.rightChecked)},addToRight(){let t=this.value.slice();const e=[],i=this.props.key;this.data.forEach(t=>{const n=t[i];this.leftChecked.indexOf(n)>-1&&-1===this.value.indexOf(n)&&e.push(n)}),t="unshift"===this.targetOrder?e.concat(t):t.concat(e),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery(t){"left"===t?this.$refs.leftPanel.query="":"right"===t&&(this.$refs.rightPanel.query="")}}},u=Object(s.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-transfer"},[e("transfer-panel",t._b({ref:"leftPanel",attrs:{data:t.sourceData,title:t.titles[0]||t.leftTitle,"default-checked":t.leftDefaultChecked,placeholder:t.filterPlaceholder},on:{"checked-change":t.onSourceCheckedChange}},"transfer-panel",t.$props,!1),[t._t("left-footer")],2),e("div",{staticClass:"ui-transfer__buttons"},[e("ui-button",{class:["ui-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.rightChecked.length},on:{click:t.addToLeft}},[e("i",{staticClass:"ui-icon-arrow-left"}),void 0!==t.buttonTexts[0]?e("span",[t._v(t._s(t.buttonTexts[0]))]):t._e()]),e("ui-button",{class:["ui-transfer__button",t.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===t.leftChecked.length},on:{click:t.addToRight}},[void 0!==t.buttonTexts[1]?e("span",[t._v(t._s(t.buttonTexts[1]))]):t._e(),e("i",{staticClass:"ui-icon-arrow-right"})])],1),e("transfer-panel",t._b({ref:"rightPanel",attrs:{data:t.targetData,title:t.titles[1]||t.rightTitle,"default-checked":t.rightDefaultChecked,placeholder:t.filterPlaceholder},on:{"checked-change":t.onTargetCheckedChange}},"transfer-panel",t.$props,!1),[t._t("right-footer")],2)],1)}),[],!1,null,null,null).exports;u.install=function(t){t.component(u.name,u)};e.default=u},function(t,e,i){"use strict";i.r(e);var n=i(29),r=i(17),o=i(25),a=i(2),s=i(9);const l=["yellow-4","blue-4","green-4","orange-4","aquamarine-4","blue-2","yellow-2","purple-3","red-4","green-2","orange-2","purple-5","aquamarine-2","blue-5","red-2"],u={overflow:"truncate",ellipsis:"..."};function c(t){if(!Array.isArray(t)||0===t.length)return[];let e=0;for(const i of t)Array.isArray(i)&&i.length>e&&(e=i.length);if(0===e)return t.map(t=>[...t]);return t.map(t=>{if(!Array.isArray(t))return Array(e).fill(null);const i=t.length;if(i>=e)return[...t];let n=null;t.length>0&&(n=(t=>{if(null==t)return null;switch(typeof t){case"string":return"";case"number":return 0;case"boolean":return!1;case"object":return Array.isArray(t)?[]:t instanceof Date?new Date(0):{};default:return}})(t[0]));return[...t,...Array(e-i).fill(n)]})}function h(){if(Object(a.f)(this.xAxisName)||Object(a.f)(this.xAxisData)&&this.xAxisData.some(a.f)||Object(a.f)(this.xAxisValueMin)||Object(a.f)(this.xAxisValueMin)){const t=Object(a.f)(this.xAxisName)?this.xAxisName:[this.xAxisName],e=Object(a.f)(this.xAxisData)&&this.xAxisData.some(a.f)?this.xAxisData:[this.xAxisData],i=Object(a.f)(this.xAxisValueMin)?this.xAxisValueMin:[this.xAxisValueMin],n=Object(a.f)(this.xAxisValueMax)?this.xAxisValueMax:[this.xAxisValueMax],[r,o,s,l]=c([t,e,i,n]);return r.map((t,e)=>({...d.call(this),name:t,data:o[e]||void 0,...!("category"===this.xAxisType)&&{min:s[e]||void 0,max:l[e]||void 0}}))}return{...d.call(this),name:this.xAxisName,data:this.xAxisData||void 0,...!("category"===this.xAxisType)&&{min:this.xAxisValueMin||void 0,max:this.xAxisValueMax||void 0}}}function d(){const t=this,e=Object(a.f)(this.xAxisData)&&!Object(a.g)(this.xAxisData)?this.xAxisData:[];return{type:this.xAxisType,data:e,inverse:this.reverse,splitLine:{lineStyle:{get color(){return Object(s.a)(t.xAxisSplitLineColor)}}},axisLine:{show:!0,lineStyle:{get color(){return Object(s.a)(t.xAxisLineColor)}}},axisLabel:{width:this.xAxisLabelWidth,...u,get color(){return Object(s.a)(t.xAxisLabelColor)},fontSize:this.xAxisLabelFontSize,formatter:this.xAxisLabelFormatter,tooltip:{show:!0},showMinLabel:this.xAxisShowMinLabel,showMaxLabel:this.xAxisShowMaxLabel},nameTextStyle:{get color(){return Object(s.a)(t.xAxisNameColor)},fontSize:this.xAxisNameFontSize,padding:[8,0,0,20],verticalAlign:"top"}}}function p(){if(Object(a.f)(this.yAxisName)||Object(a.f)(this.yAxisValueMax)){const t=Object(a.f)(this.yAxisName)?this.yAxisName:[this.yAxisName],e=Object(a.f)(this.yAxisValueMin)?this.yAxisValueMin:[this.yAxisValueMin],i=Object(a.f)(this.yAxisValueMax)?this.yAxisValueMax:[this.yAxisValueMax],[n,r,o]=c([t,e,i]);return n.map((t,e)=>({...f.call(this),name:t,min:r[e]||void 0,max:o[e]||void 0}))}return{...f.call(this),name:this.yAxisName,min:this.yAxisValueMin||void 0,max:this.yAxisValueMax||void 0}}function f(){const t=this;return{type:"value",alignTicks:!0,splitLine:{lineStyle:{get color(){return Object(s.a)(t.yAxisSplitLineColor)}}},axisLine:{show:!0,onZero:!1,lineStyle:{get color(){return Object(s.a)(t.yAxisLineColor)}}},axisLabel:{get color(){return Object(s.a)(t.yAxisLabelColor)},fontSize:this.yAxisLabelFontSize,showMinLabel:this.yAxisShowMinLabel,showMaxLabel:this.yAxisShowMaxLabel},nameTextStyle:{width:this.yAxisLabelWidth,get color(){return Object(s.a)(t.yAxisNameColor)},fontSize:this.yAxisNameFontSize}}}function g(){return this.seriesData.map((t,e)=>{let i=[];if(this.fastRender)i=t.data;else{var n;const e=(null!==(n=t.data)&&void 0!==n?n:[]).map((t,e)=>Object(a.f)(t)?t:"object"==typeof t?{...t,value:"object"==typeof(null==t?void 0:t.value)?t.value:[m.call(this,e,this.xAxisData),null==t?void 0:t.value]}:[m.call(this,e,this.xAxisData),t]);i=this.transpose?e.map(t=>[t[1],t[0]]):e}"bar"===t.type&&y.call(this,t),"line"===t.type&&v.call(this,t,e),"scatter"===t.type&&b.call(this,t);const r=t.markLine?x.call(this,t.markLine,e):{};return{symbolSize:this.symbolSize,...t,data:i,label:{show:this.showValue,position:this.valueLabelPosition},markLine:r}})}function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(this.dataBindWithLabel||"category"===this.xAxisType)&&Object(a.f)(e)&&!Object(a.g)(e)?e[t]:t}function y(t,e){Object(a.m)(t,{emphasis:{label:{show:this.showValue}}})}function v(t,e){const i=this,n=(null==t?void 0:t.color)||_.call(this)[e]||"",r=Object(a.f)(t.data)&&!Object(a.g)(t.data)&&t.downArea&&n?{areaStyle:{color:{colorStops:[{offset:0,get color(){return Object(s.a)(n)}},{offset:1,get color(){return Object(s.a)("base-bg",0)}}],x:0,y:0,x2:0,y2:1,type:"linear",global:!1}}}:{};Object(a.m)(t,{get symbol(){return"dark"===i.theme?"circle":"emptyCircle"}},r)}function b(t,e){const i=this;Object(a.m)(t,{get symbol(){return"dark"===i.theme?"circle":"emptyCircle"}})}function x(t,e){const i=this;if(Object(a.f)(t.data)){let n=Object(a.m)({},t,{lineStyle:{get color(){return _.call(i)[e]}},label:{get color(){return _.call(i)[e]}},symbol:"none"});return t.data.every(a.k)?this.transpose?n.data=t.data.map(t=>({xAxis:t})):n.data=t.data.map(t=>({yAxis:t})):n.data=t.data,n}return{}}function _(){return[...new Set([...this.colorMap,...l])].map(t=>Object(s.a)(t))}function w(){if(!this.isZoom)return null;const t={show:!0,type:"slider",height:this.zoomBarHeight,...(()=>{const t={orient:["top","bottom"].includes(this.zoomBarPosition)?"horizontal":"vertical"};return"top"===this.zoomBarPosition&&(t.top=this.zoomBarGap),"right"===this.zoomBarPosition&&(t.right=this.zoomBarGap),"bottom"===this.zoomBarPosition&&(t.bottom=this.zoomBarGap),"left"===this.zoomBarPosition&&(t.left=this.zoomBarGap),t})(),borderColor:"transparent",get backgroundColor(){return Object(s.a)("fifth-blue",.8)},get fillerColor(){return Object(s.a)("blue-1",.1)},handleIcon:"path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z",icon:{zoom:"image://data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzE4ODQ5MjI4NzQzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQyNDUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTAgMTgyLjg1NzE0M2MwIDI5LjI1NzE0MyAyMS45NDI4NTcgNTEuMiA1MS4yIDUxLjJoNzMuMTQyODU3djczLjE0Mjg1N2MwIDI5LjI1NzE0MyAyMS45NDI4NTcgNTEuMiA1MS4yIDUxLjJzNTEuMi0yMS45NDI4NTcgNTEuMi01MS4ydi03My4xNDI4NTdoNzMuMTQyODU3YzI5LjI1NzE0MyAwIDUxLjItMjEuOTQyODU3IDUxLjItNTEuMnMtMjEuOTQyODU3LTUxLjItNTEuMi01MS4yaC03My4xNDI4NTdWNTEuMmMwLTI5LjI1NzE0My0yMS45NDI4NTctNTEuMi01MS4yLTUxLjJzLTUxLjIgMjEuOTQyODU3LTUxLjIgNTEuMnY3My4xNDI4NTdoLTczLjE0Mjg1N2MtMjkuMjU3MTQzIDAtNTEuMiAyMS45NDI4NTctNTEuMiA1MS4yek0wIDk4MC4xMTQyODZWNjgwLjIyODU3MWMwLTIxLjk0Mjg1NyAyMS45NDI4NTctNDMuODg1NzE0IDQzLjg4NTcxNC00My44ODU3MTRzNDMuODg1NzE0IDIxLjk0Mjg1NyA0My44ODU3MTUgNDMuODg1NzE0djI1Nmg4NTUuNzcxNDI4Vjg3Ljc3MTQyOUg2ODcuNTQyODU3Yy0yMS45NDI4NTcgMC00My44ODU3MTQtMjEuOTQyODU3LTQzLjg4NTcxNC00My44ODU3MTVTNjU4LjI4NTcxNCAwIDY4MC4yMjg5NzEgMEgxMDAyLjA1NzE0M2M3LjMxNDI4NiA3LjMxNDI4NiAxNC42Mjg1NzEgMTQuNjI4NTcxIDE0LjYyODU3MSAyOS4yNTcxNDNWOTg3LjQyODU3MWMtNy4zMTQyODYgNy4zMTQyODYtMjEuOTQyODU3IDE0LjYyODU3MS0yOS4yNTcxNDMgMTQuNjI4NTcySDIxLjk0Mjg1N2MtMjEuOTQyODU3IDAtMjEuOTQyODU3LTcuMzE0Mjg2LTIxLjk0Mjg1Ny0yMS45NDI4NTd6IiBwLWlkPSI0MjQ2IiBmaWxsPSIjMDA2ZWRjIj48L3BhdGg+PC9zdmc+",back:"image://"},handleSize:"110%",handleStyle:{get color(){return Object(s.a)("blue-5")}},textStyle:{get color(){return Object(s.a)("td-text")}},labelFormatter:this.zoomBarLabelFormatter||void 0};return Object(a.f)(this.displayRange)&&this.displayRange[0]&&this.displayRange[1]?{...t,startValue:this.displayRange[0],endValue:this.displayRange[1]}:t}function S(){var t;if(this.hasTooltip)return{trigger:this.tooltipTrigger,...this.axisTooltip&&{axisPointer:{type:"cross",label:{get backgroundColor(){return Object(s.a)("blue-4")}}}},formatter:null!==(t=this.tooltipFormatter)&&void 0!==t?t:C.bind(this)}}function C(t){if(Object(a.f)(t)){const e=`<div>${t[0].axisValueLabel}</div>`,i=t.map((t,e)=>{var i;const{marker:n,seriesName:r,value:o}=t;if(!o||!Object(a.f)(o)||Object(a.f)(o)&&o.some(a.g)||null!==(i=this.seriesData[e])&&void 0!==i&&i.onlyLabel)return"";{var s,l;let t=this.tooltipWithUtil&&null!==(s=null!==(l=this.yAxisUnit[e])&&void 0!==l?l:this.yAxisName[e])&&void 0!==s?s:"";return`<div style="width: 100%; min-width: 130px; display: flex; align-items: center; justify-content: flex-start"><div>${n}</div><div style="margin: 0 10px 0 5px">${r}</div><div style="margin-left: auto; font-weight: 700">${o[1]} ${t}</div></div>`}});return i.filter(t=>t).join("")?`<div>${e}${i.filter(t=>t).join("")}</div>`:""}return""}function M(){if(!this.displayLegend)return;const t=Object(a.f)(this.seriesData)&&!Object(a.g)(this.seriesData)?this.seriesData.map(t=>({name:t.name,icon:t.legendIcon,textStyle:{get color(){return Object(s.a)("sd-text")}},itemStyle:k(t),lineStyle:O(t)})):[];return{show:!0,selectedMode:this.selectedMode,...(()=>{const t={};return this.legendPosition.includes("top")&&(t.top=this.legendBorderGap),this.legendPosition.includes("right")&&(t.right=this.legendBorderGap),this.legendPosition.includes("bottom")&&(t.bottom=this.legendBorderGap),this.legendPosition.includes("left")&&(t.left=this.legendBorderGap),t})(),itemGap:this.legendItemGap,itemWidth:this.legendItemWidth,itemHeight:this.legendItemHeight,textStyle:{height:this.legendItemHeight,padding:[2,0,0,4],lineHeight:this.legendItemHeight,rich:{align:{verticalAlign:"middle"}}},data:t,pageButtonItemGap:this.legendPageButtonGap,pageButtonGap:this.legendPageGap,pageButtonPosition:this.legendPagePosition,get pageIconColor(){return Object(s.a)("sd-text")},get pageIconInactiveColor(){return Object(s.a)("td-text")},pageTextStyle:{get color(){return Object(s.a)("primary-text")}}}}function k(t){var e;switch(t.type){case"bar":return{borderWidth:2};case"line":return Object(a.f)(null===(e=t.markLine)||void 0===e?void 0:e.data)?{opacity:0}:null;default:return null}}function O(t){var e;switch(t.type){case"line":return Object(a.f)(null===(e=t.markLine)||void 0===e?void 0:e.data)?{width:2,type:"solid"}:{width:2,type:[3,3],dashOffset:[2,5]};default:return null}}function A(){const t={top:this.gridTop,bottom:this.gridBottom,left:this.gridLeft,right:this.gridRight,containLabel:this.gridContainLabel};return this.displayLegend&&(["top","bottom"].includes(this.legendPosition)?t[this.legendPosition]+=this.legendBorderGap+this.legendItemHeight:["left","right"].includes(this.legendPosition)&&(t[this.legendPosition]+=this.legendBorderGap+this.legendItemWidth)),this.isZoom&&(t[this.zoomBarPosition]+=this.zoomBarGap+this.zoomBarChartGap),t}function I(){const t=h.call(this),e=p.call(this),i={xAxis:this.transpose?e:t,yAxis:this.transpose?t:e,series:g.call(this),darkMode:"dark"===this.theme,color:_.call(this),grid:A.call(this),legend:M.call(this),tooltip:S.call(this),dataZoom:w.call(this),textStyle:u};return this.beforeRender&&this.beforeRender instanceof Function&&this.beforeRender(i),i}var T={data:()=>({}),computed:{options(){return this.theme,I.call(this)}},watch:{theme(t){this.chartRender()},options:{handler(t){this.chartRender(t)},immediate:!0,deep:!0}}};var D={name:"UiChart",components:{UiNoData:n.default},mixins:[T],props:{seriesData:{type:Array,default:()=>[]},xAxisData:{type:Array,default:()=>[]},theme:{type:String,default:"light"},keepEmptyAxis:{type:Boolean,default:!1},cover:{type:Boolean,default:!0},colorMap:{type:Array,default:()=>[]},showValue:{type:Boolean,default:!1},valueLabelPosition:{type:String,default:"inside"},symbolSize:{type:Number,default:12},dataBindWithLabel:{type:Boolean,default:!0},transpose:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},fastRender:{type:Boolean,default:!1},beforeRender:{type:[Function,null],default:null},afterRender:{type:[Function,null],default:null},displayLegend:{type:Boolean,default:!0},selectedMode:{type:Boolean,default:!0},legendPosition:{type:String,default:"top"},legendBorderGap:{type:Number,default:15},legendItemGap:{type:Number,default:12},legendItemWidth:{type:Number,default:20},legendItemHeight:{type:Number,default:14},legendPageButtonGap:{type:Number,default:5},legendPageGap:{type:Number,default:10},legendPagePosition:{type:String,default:"right"},hasTooltip:{type:Boolean,default:!0},tooltipTrigger:{type:String,default:"axis"},axisTooltip:{type:Boolean,default:!1},tooltipWithUtil:{type:Boolean,default:!1},tooltipFormatter:{type:[Function,null],default:null},isZoom:{type:Boolean,default:!1},displayRange:{type:Array,default:()=>[0,9]},zoomBarHeight:{type:Number,default:12},zoomBarPosition:{type:String,default:"bottom"},zoomBarGap:{type:Number,default:20},zoomBarChartGap:{type:Number,default:10},zoomBarLabelFormatter:{type:[Function,null],default:null},gridTop:{type:Number,default:20},gridBottom:{type:Number,default:20},gridLeft:{type:Number,default:20},gridRight:{type:Number,default:54},gridContainLabel:{type:Boolean,default:!0},xAxisName:{type:[String,Array],default:""},xAxisType:{type:String,default:"category"},xAxisNameColor:{type:String,default:"sd-text"},xAxisNameFontSize:{type:Number,default:12},xAxisLineColor:{type:String,default:"primary-line"},xAxisSplitLineColor:{type:String,default:"primary-line"},xAxisLabelWidth:{type:Number,default:320},xAxisLabelColor:{type:String,default:"sd-text"},xAxisLabelFontSize:{type:Number,default:12},xAxisValueMin:{type:[Number,String,Array],default:void 0},xAxisValueMax:{type:[Number,String,Array],default:void 0},xAxisShowMinLabel:{type:Boolean,default:void 0},xAxisShowMaxLabel:{type:Boolean,default:void 0},xAxisLabelFormatter:{type:[Function,null],default:null},yAxisName:{type:[String,Array],default:""},yAxisUnit:{type:[String,Array],default:""},yAxisNameColor:{type:String,default:"sd-text"},yAxisNameFontSize:{type:Number,default:12},yAxisLineColor:{type:String,default:"primary-line"},yAxisSplitLineColor:{type:String,default:"primary-line"},yAxisLabelWidth:{type:Number,default:32},yAxisLabelColor:{type:String,default:"sd-text"},yAxisLabelFontSize:{type:Number,default:12},yAxisValueMin:{type:[Number,String,Array],default:void 0},yAxisValueMax:{type:[Number,String,Array],default:void 0},yAxisShowMinLabel:{type:Boolean,default:void 0},yAxisShowMaxLabel:{type:Boolean,default:void 0},yAxisLabelFormatter:{type:[Function,null],default:null}},data:()=>({echartInstance:null,optionBuffer:null}),filters:{},computed:{hasData(){return this.keepEmptyAxis||!Object(a.g)(this.seriesData)}},watch:{theme(){this.chartRender(this.optionBuffer)}},directives:{init:r.default,resize:o.default},created(){this.chartResize=Object(a.a)((function(){var t;null===(t=this.echartInstance)||void 0===t||t.resize()}),200)},mounted(){},activated(){},beforeDestroy(){var t;null===(t=this.echartInstance)||void 0===t||t.dispose()},methods:{chartInit(t){this.echartInstance=this.$echarts.init(t),this.chartRender(this.optionBuffer)},chartResize(){},chartRender(t){t&&(this.optionBuffer=t,this.echartInstance&&(this.echartInstance.setOption(t,this.cover),this.afterRender&&this.afterRender instanceof Function&&this.afterRender(this.echartInstance)))}}},L=i(1),P=Object(L.a)(D,(function(){var t=this._self._c;return t("div",{staticClass:"ui-chart"},[t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:this.hasData,expression:"hasData"},{name:"init",rawName:"v-init",value:this.chartInit,expression:"chartInit"},{name:"resize",rawName:"v-resize",value:this.chartResize,expression:"chartResize"}],staticClass:"ui-chart__inner"})]),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!this.hasData,expression:"!hasData"}],staticClass:"ui-chart__empty"},[t("ui-no-data")],1)])],1)}),[],!1,null,"2549186b",null).exports;P.install=function(t){t.component(P.name,P)};e.default=P},function(t,e,i){"use strict";i.r(e),i.d(e,"UiLoadingDirective",(function(){return a})),i.d(e,"UiLoadingService",(function(){return h}));var n={name:"UiLoading",props:{visible:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},text:{type:String,default:""},lock:{type:Boolean,default:!1}}},r=i(1),o=Object(r.a)(n,(function(){var t=this._self._c;return t("transition",{attrs:{name:"ui-loading-fade"}},[this.visible?t("div",{staticClass:"ui-loading",class:{"is-fullscreen":this.fullscreen}},[t("div",{staticClass:"ui-loading__mask"}),t("div",{staticClass:"ui-loading__spinner"},[t("svg",{staticClass:"ui-loading__circular",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"ui-loading__path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-miterlimit":"10"}})]),this.text?t("div",{staticClass:"ui-loading__text"},[this._v(this._s(this.text))]):this._e()])]):this._e()])}),[],!1,null,null,null).exports;var a={inserted(t,e){const i=function(t,e){const i=new(t._vue||t.ownerDocument.defaultView.Vue)({render:t=>t(o,{props:{visible:!1!==e.value,fullscreen:e.modifiers.fullscreen||!1,text:e.arg||"",lock:e.modifiers.lock||!1}})}),n=i.$mount();return t.appendChild(n.$el),i}(t,e);t.uiLoadingInstance=i},update(t,e){const i=t.uiLoadingInstance;i&&(i.$el.style.display=!1===e.value?"none":"")},unbind(t){const e=t.uiLoadingInstance;e&&(e.$destroy(),e.$el.remove(),delete t.uiLoadingInstance)}},s=i(5),l=i.n(s);function u(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=document.createElement("div"),i=new l.a({render:e=>e(o,{props:{visible:!1!==t.visible,fullscreen:t.fullscreen||!1,text:t.text||"",lock:t.lock||!1}})});i.$mount(e);const n=t.target||document.body;return n.appendChild(e),{$el:e,instance:i,close(){i.$destroy(),e.remove()}}}function c(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u(t)}c.install=function(t){t.prototype.$loading=c};var h=c;o.install=function(t){t.component(o.name,o),t.directive("loading",a),t.use(h)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(30);const r=["line","segment","border-card"],o=["large","default","small"],a=["top","right","bottom","left"];var s={name:"UiTabsNavigation",components:{UiIcon:n.a},props:{value:{type:[String,Number],default:""},tabs:{type:Array,default:()=>[]},type:{type:String,default:"line",validator:t=>r.indexOf(t)>-1},size:{type:String,default:"default",validator:t=>o.indexOf(t)>-1},tabPosition:{type:String,default:"top",validator:t=>a.indexOf(t)>-1},scrollable:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},beforeLeave:Function,color:String,activeColor:String,inactiveTextColor:String,segmentStretch:{type:Boolean,default:!1},segmentInactiveTextColor:String,segmentActiveTextColor:String,segmentInactiveBackground:String,segmentActiveBackground:String,segmentGapColor:String},data:()=>({barStyle:{},tabItemRefs:{},scrollableState:{canPrev:!1,canNext:!1}}),computed:{isHorizontal(){return"top"===this.tabPosition||"bottom"===this.tabPosition},showArrows(){return"line"===this.type&&this.scrollable&&this.isHorizontal},rootClass(){return{"is-top":"top"===this.tabPosition,"is-right":"right"===this.tabPosition,"is-bottom":"bottom"===this.tabPosition,"is-left":"left"===this.tabPosition,"is-horizontal":this.isHorizontal,"is-line":"line"===this.type,"is-segment":"segment"===this.type,"is-border-card":"border-card"===this.type,["ui-tabs-navigation--"+this.size]:!0}},rootCssVars(){const t=this.activeColor||this.color,e={};return t&&(e["--tabs-nav-active"]=t),this.inactiveTextColor&&(e["--tabs-nav-inactive"]=this.inactiveTextColor),"segment"===this.type&&(this.segmentInactiveBackground&&(e["--tabs-seg-inactive-bg"]=this.segmentInactiveBackground),this.segmentActiveBackground?e["--tabs-seg-active-bg"]=this.segmentActiveBackground:t&&(e["--tabs-seg-active-bg"]=t),this.segmentInactiveTextColor?e["--tabs-seg-inactive-text"]=this.segmentInactiveTextColor:this.inactiveTextColor&&(e["--tabs-seg-inactive-text"]=this.inactiveTextColor),this.segmentActiveTextColor&&(e["--tabs-seg-active-text"]=this.segmentActiveTextColor),this.segmentGapColor&&(e["--tabs-seg-gap"]=this.segmentGapColor)),e},normalizedTabs(){return(this.tabs||[]).map((t,e)=>{const i=t.name,n=null!=t.title?t.title:null!=t.label?t.label:"tab-"+e,r=!!this.isClosableType&&(null!=t.closable?t.closable:this.closable);return{...t,name:i,title:n,canClose:r}})},isClosableType(){return"segment"===this.type||"border-card"===this.type},isAddableVisible(){return this.addable&&"segment"===this.type},iconSize(){return"small"===this.size?14:"large"===this.size?18:16},barSizeClass(){return"small"===this.size?"is-bar--small":"large"===this.size?"is-bar--large":"is-bar--default"}},watch:{value(){this.$nextTick(()=>{this.updateBar(),this.updateScrollable(),this.scrollActiveIntoView()})},tabs:{deep:!0,handler(){this.$nextTick(()=>{this.updateBar(),this.updateScrollable()})}},type(){this.$nextTick(()=>this.updateBar())},tabPosition(){this.$nextTick(()=>this.updateBar())},segmentStretch(){this.$nextTick(()=>this.updateBar())}},mounted(){this.ensureValue(),this.$nextTick(()=>{this.updateBar(),this.updateScrollable(),requestAnimationFrame(()=>{this.updateBar()})}),window.addEventListener("resize",this._onWinResize,{passive:!0})},beforeDestroy(){window.removeEventListener("resize",this._onWinResize)},methods:{hasLabelSlot(t){return!(!this.$scopedSlots["label-"+t]&&!this.$slots["label-"+t])},_onWinResize(){this.updateBar(),this.updateScrollable()},setTabItemRef(t,e){t?this.$set(this.tabItemRefs,e,t):this.$delete(this.tabItemRefs,e)},getTabItemEl(){const t=this.value;if(null==t||""===t)return null;let e=this.tabItemRefs[t]||this.tabItemRefs[String(t)];if(!e){const i=this.normalizedTabs.find(e=>e.name===t||String(e.name)===String(t));i&&(e=this.tabItemRefs[i.name]||this.tabItemRefs[String(i.name)])}const i=this.$refs.nav;if(!e&&i&&i.querySelector){const n=String(t).replace(/\\/g,"\\\\").replace(/"/g,'\\"');e=i.querySelector(`[data-tab="${n}"]`)}return e},getItemStyles:(t,e)=>({...e?t.activeStyle||{}:t.inactiveStyle||{}}),onNavScroll(){this.updateScrollable()},updateScrollable(){const t=this.$refs.navScroll;if(!t)return;const{scrollLeft:e,scrollWidth:i,clientWidth:n}=t;this.scrollableState={canPrev:e>1,canNext:e<i-n-1}},navScroll(t){const e=this.$refs.navScroll;if(!e)return;const i=Math.floor(.6*e.clientWidth)*("next"===t?1:-1);e.scrollBy({left:i,behavior:"smooth"})},scrollActiveIntoView(){if(!this.showArrows)return;const t=this.$refs.navScroll,e=this.getTabItemEl();if(!t||!e)return;const i=t.clientWidth,n=e.offsetLeft,r=n+e.offsetWidth;n<t.scrollLeft?t.scrollLeft=n-8:r>t.scrollLeft+i&&(t.scrollLeft=r-i+8)},updateBar(){if("line"!==this.type)return void(this.barStyle={display:"none"});const t=this.getTabItemEl(),e=this.$refs.nav;if(!t||!e)return void(this.barStyle={opacity:0});const i="cubic-bezier(0.4, 0, 0.2, 1)";if(this.isHorizontal)this.barStyle={opacity:1,display:"block",width:t.offsetWidth+"px",transform:`translateX(${t.offsetLeft}px)`,top:"auto",left:0,transition:`transform 0.3s ${i}, width 0.3s ${i}, opacity 0.2s ease`};else{const e="right"===this.tabPosition;this.barStyle={opacity:1,display:"block",width:"2px",height:t.offsetHeight+"px",transform:`translateY(${t.offsetTop}px)`,left:e?0:"auto",right:e?"auto":0,transition:`transform 0.3s ${i}, height 0.3s ${i}, opacity 0.2s ease`}}},ensureValue(){if(""!==this.value&&null!=this.value)return;const t=this.normalizedTabs.find(t=>!t.disabled);t&&this.$emit("input",t.name)},async onTabClick(t,e){if(t.disabled)return;if(this.beforeLeave){const e=this.beforeLeave(this.value,t.name);if(!1===e)return;if(e&&"function"==typeof e.then){let t;try{t=await e}catch(e){t=!1}if(!t)return}}const i=this.value;i!==t.name&&(this.$emit("input",t.name),this.$emit("change",t.name,i),this.$emit("edit",{action:"change",name:t.name,oldName:i})),this.$emit("tab-click",{name:t.name,title:t.title,value:t.value,tab:t,event:e}),this.$nextTick(()=>{this.updateBar(),this.scrollActiveIntoView()})},onTabClose(t,e){this.$emit("tab-remove",e.name,e,t),this.$emit("edit",{action:"remove",name:e.name,tab:e})},onAdd(){this.$emit("edit",{action:"add"})},addTab(){this.onAdd()}}},l=i(15),u=i.n(l),c=i(117),h={insert:"head",singleton:!1},d=(u()(c.a,h),c.a.locals,i(1)),p=Object(d.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-tabs-navigation",class:[t.rootClass,{"is-segment-stretch":t.segmentStretch}],style:t.rootCssVars},[e("div",{staticClass:"ui-tabs-navigation__header",attrs:{role:"tablist"}},[t.showArrows?e("span",{class:["ui-tabs-navigation__arrow","is-prev",{"is-disabled":!t.scrollableState.canPrev}],on:{click:function(e){return t.navScroll("prev")}}},[e("i",{staticClass:"ui-icon-arrow-left"})]):t._e(),e("div",{ref:"navClip",staticClass:"ui-tabs-navigation__nav-wrap"},[e("div",{ref:"navScroll",staticClass:"ui-tabs-navigation__nav-scroll",on:{scroll:t.onNavScroll}},[e("div",{ref:"nav",class:["ui-tabs-navigation__nav","ui-tabs-navigation__nav--"+t.type]},["line"===t.type?e("span",{staticClass:"ui-tabs-navigation__active-bar",class:t.barSizeClass,style:t.barStyle}):t._e(),t._l(t.normalizedTabs,(function(i,n){return e("div",{key:String(i.name),ref:e=>t.setTabItemRef(e,i.name),refInFor:!0,class:["ui-tabs-navigation__item",{"is-active":t.value===i.name,"is-disabled":i.disabled}],style:t.getItemStyles(i,t.value===i.name),attrs:{"data-tab":String(i.name),role:"tab","aria-selected":t.value===i.name?"true":"false","aria-disabled":i.disabled?"true":"false"},on:{click:function(e){return t.onTabClick(i,e)}}},[e("div",{staticClass:"ui-tabs-navigation__item-inner"},[t.hasLabelSlot(i.name)?t._t("label-"+i.name,null,{tab:i,index:n,active:t.value===i.name}):[(null!=i.showIcon?i.showIcon:t.showIcon)&&i.icon?e("ui-icon",{staticClass:"ui-tabs-navigation__item-icon",attrs:{name:i.icon,size:t.iconSize}}):t._e(),e("span",{staticClass:"ui-tabs-navigation__item-text"},[t._v(t._s(i.title))])]],2),i.canClose?e("span",{staticClass:"ui-tabs-navigation__item-close",on:{click:function(e){return e.stopPropagation(),t.onTabClose(e,i)}}},[e("i",{staticClass:"ui-icon-close"})]):t._e()])})),t.isAddableVisible?e("span",{staticClass:"ui-tabs-navigation__add",on:{click:t.onAdd}},[e("i",{staticClass:"ui-icon-circle-plus-outline"})]):t._e()],2)])]),t.showArrows?e("span",{class:["ui-tabs-navigation__arrow","is-next",{"is-disabled":!t.scrollableState.canNext}],on:{click:function(e){return t.navScroll("next")}}},[e("i",{staticClass:"ui-icon-arrow-right"})]):t._e()]),e("div",{staticClass:"ui-tabs-navigation__content"},t._l(t.normalizedTabs,(function(i){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.value===i.name,expression:"value === tab.name"}],key:String(i.name)+"-pane",class:["ui-tabs-navigation__panel",{"is-active":t.value===i.name}],attrs:{role:"tabpanel","aria-hidden":t.value!==i.name}},[t._t("panel-"+i.name,(function(){return[e("div",{staticClass:"ui-tabs-navigation__panel-default"},[t._v("\n "+t._s(i.title)+"\n ")])]}),{tab:i,active:t.value===i.name})],2)})),0)])}),[],!1,null,"5482bdc0",null).exports;p.install=function(t){t.component(p.name,p)};e.default=p},function(t,e,i){"use strict";i.r(e);const n={success:"icon-success",warning:"icon-warning",error:"icon-error"};var r={name:"UiAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info",validator:t=>["success","warning","error","info"].includes(t)},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},data:()=>({visible:!0}),methods:{close(){this.visible=!1,this.$emit("close")}},computed:{typeClass(){return"ui-alert--"+this.type},iconClass(){return n[this.type]||"icon-info"},isBigIcon(){return this.description||this.$slots.default?"is-big":""},isBoldTitle(){return this.description||this.$slots.default?"is-bold":""}}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-alert-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"ui-alert",class:[t.typeClass,t.center?"is-center":"","is-"+t.effect],attrs:{role:"alert"}},[t.showIcon?e("i",{staticClass:"ui-alert__icon",class:[t.iconClass,t.isBigIcon]}):t._e(),e("div",{staticClass:"ui-alert__content"},[t.title||t.$slots.title?e("span",{staticClass:"ui-alert__title",class:[t.isBoldTitle]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2):t._e(),t.$slots.default&&!t.description?e("p",{staticClass:"ui-alert__description"},[t._t("default")],2):t._e(),t.description&&!t.$slots.default?e("p",{staticClass:"ui-alert__description"},[t._v(t._s(t.description))]):t._e(),e("i",{directives:[{name:"show",rawName:"v-show",value:t.closable,expression:"closable"}],staticClass:"ui-alert__closebtn",class:{"is-customed":""!==t.closeText,"icon-close":""===t.closeText},on:{click:function(e){return t.close()}}},[t._v(t._s(t.closeText))])])])])}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n={name:"UiAside",componentName:"UiAside",props:{width:{type:String,default:"300px"}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("aside",{staticClass:"ui-aside",style:{width:this.width}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiAutocomplete",componentName:"UiAutocomplete",props:{value:{},fetchSuggestions:{type:Function,required:!0},placeholder:String,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},popperClass:String,debounce:{type:Number,default:300},valueKey:{type:String,default:"value"},autocomplete:{type:String,default:"off"}},data(){return{suggestions:[],highlightedIndex:-1,showSuggestions:!1,suggestionsTop:0,zIndex:2e3,inputValue:this.value,timer:null}},watch:{value(t){this.inputValue=t},inputValue(t){this.$emit("input",t)}},created(){this.debouncedFetchSuggestions=this.debounce(t=>{this.fetchSuggestions(t,t=>{this.suggestions=t||[],this.showSuggestions=this.suggestions.length>0,this.highlightedIndex=-1})},this.debounce)},methods:{debounce(t,e){let i=null;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];i&&clearTimeout(i),i=setTimeout(()=>{t.apply(this,r)},e)}},handleFocus(t){this.$emit("focus",t),this.triggerOnFocus&&this.handleInputChange(this.inputValue)},handleBlur(t){this.$emit("blur",t),this.closeSuggestions()},handleKeyEnter(){this.showSuggestions&&this.highlightedIndex>=0&&this.handleSelect(this.suggestions[this.highlightedIndex])},handleSelect(t){this.$emit("input",t[this.valueKey]||t),this.$emit("select",t),this.showSuggestions=!1},handleInputChange(t){this.debouncedFetchSuggestions(t)},highlight(t){if(!this.showSuggestions)return;const e=this.suggestions.length;t>e-1?t=0:t<0&&(t=e-1),this.highlightedIndex=t},closeSuggestions(){this.showSuggestions=!1,this.highlightedIndex=-1},calculateSuggestionsTop(){const t=this.$refs.input.$el;if(t){const e=t.getBoundingClientRect();this.suggestionsTop=e.height+5}}},mounted(){this.calculateSuggestionsTop()}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-autocomplete",class:{"ui-autocomplete--suggestion":t.showSuggestions}},[e("ui-input",t._b({ref:"input",attrs:{autocomplete:t.autocomplete},on:{focus:t.handleFocus,blur:t.handleBlur,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.highlight(t.highlightedIndex-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.highlight(t.highlightedIndex+1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleKeyEnter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeSuggestions.apply(null,arguments)}]},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},"ui-input",t.$attrs,!1),[t.$slots.prefix?e("template",{slot:"prefix"},[t._t("prefix")],2):t._e(),t.$slots.suffix?e("template",{slot:"suffix"},[t._t("suffix")],2):t._e()],2),e("transition",{attrs:{name:"ui-zoom-in-top"}},[t.showSuggestions?e("ul",{ref:"suggestions",staticClass:"ui-autocomplete__suggestions",style:{top:t.suggestionsTop+"px",zIndex:t.zIndex}},t._l(t.suggestions,(function(i,n){return e("li",{key:n,staticClass:"ui-autocomplete__suggestion",class:{"is-highlighted":t.highlightedIndex===n},on:{click:function(e){return t.handleSelect(i)}}},[t._t("default",(function(){return[t._v(t._s(i[t.valueKey]||i))]}),{item:i})],2)})),0):t._e()])],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiAvatar",props:{size:{type:[Number,String],validator:t=>"string"==typeof t?["large","medium","small"].includes(t):"number"==typeof t},shape:{type:String,default:"circle",validator:t=>["circle","square"].includes(t)},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:()=>({isImageExist:!0}),computed:{avatarClass(){const{size:t,icon:e,shape:i}=this;let n=["ui-avatar"];return t&&"string"==typeof t&&n.push("ui-avatar--"+t),e&&n.push("ui-avatar--icon"),i&&n.push("ui-avatar--"+i),n.join(" ")},sizeStyle(){const{size:t}=this;return"number"==typeof t?{height:t+"px",width:t+"px",lineHeight:t+"px"}:{}}},methods:{handleError(){const{error:t}=this;!1!==(t?t():void 0)&&(this.isImageExist=!1)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("span",{staticClass:"ui-avatar",class:t.avatarClass,style:t.sizeStyle},[t.isImageExist&&t.src?e("img",{style:{"object-fit":t.fit},attrs:{src:t.src,alt:t.alt,srcset:t.srcSet},on:{error:t.handleError}}):t.icon?e("i",{class:t.icon}):t._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);const n=t=>Math.pow(t,3);var r={name:"UiBacktop",props:{visibilityHeight:{type:Number,default:200},target:String,right:{type:Number,default:40},bottom:{type:Number,default:40}},data:()=>({el:null,container:null,visible:!1}),computed:{styleBottom(){return this.bottom+"px"},styleRight(){return this.right+"px"}},mounted(){this.init(),this.throttledScrollHandler=function(t,e){let i=0;return function(){const n=Date.now();n-i>=t&&(i=n,e.apply(this,arguments))}}(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll(){const t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop(){const t=this.el,e=Date.now(),i=t.scrollTop,r=window.requestAnimationFrame||(t=>setTimeout(t,16)),o=()=>{const a=(Date.now()-e)/500;var s;a<1?(t.scrollTop=i*(1-((s=a)<.5?n(2*s)/2:1-n(2*(1-s))/2)),r(o)):t.scrollTop=0};r(o)}},beforeDestroy(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-fade-in"}},[t.visible?e("div",{staticClass:"ui-backtop",style:{right:t.styleRight,bottom:t.styleBottom},on:{click:function(e){return e.stopPropagation(),t.handleClick.apply(null,arguments)}}},[t._t("default",(function(){return[e("i",{staticClass:"ui-backtop__icon icon-caret-top"})]}))],2):t._e()])}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n={name:"UiBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:t=>["primary","success","warning","info","danger"].indexOf(t)>-1}},computed:{content(){if(this.isDot)return;const t=this.value,e=this.max;return"number"==typeof t&&"number"==typeof e&&e<t?e+"+":t}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-badge"},[t._t("default"),e("transition",{attrs:{name:"ui-zoom-in-center"}},[e("sup",{directives:[{name:"show",rawName:"v-show",value:!t.hidden&&(t.content||0===t.content||t.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"ui-badge__content",class:[t.type?"ui-badge__content--"+t.type:null,{"is-fixed":t.$slots.default,"is-dot":t.isDot}],domProps:{textContent:t._s(t.content)}})])],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiBreadcrumbItem",props:{to:{},replace:Boolean},data:()=>({separator:"",separatorClass:""}),inject:["uiBreadcrumb"],mounted(){this.separator=this.uiBreadcrumb.separator,this.separatorClass=this.uiBreadcrumb.separatorClass;const t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",t=>{const{to:e,$router:i}=this;e&&i&&(this.replace?i.replace(e):i.push(e))})}},r=i(1),o=Object(r.a)(n,(function(){var t=this._self._c;return t("span",{staticClass:"ui-breadcrumb__item"},[t("span",{ref:"link",class:["ui-breadcrumb__inner",this.to?"is-link":""],attrs:{role:"link"}},[this._t("default")],2),this.separatorClass?t("i",{staticClass:"ui-breadcrumb__separator",class:this.separatorClass}):t("span",{staticClass:"ui-breadcrumb__separator",attrs:{role:"presentation"}},[this._v(this._s(this.separator))])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide(){return{uiBreadcrumb:this}},mounted(){const t=this.$el.querySelectorAll(".ui-breadcrumb__item");t.length&&t[t.length-1].setAttribute("aria-current","page")}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);const n=["日","一","二","三","四","五","六"];var r={name:"UiCalendar",props:{value:{},isRange:{type:Boolean,default:!1},border:{type:Boolean,default:!0},firstDayOfWeek:{type:Number,default:0,validator:t=>t>=0&&t<=6},disabledDate:Function,minDate:Date,maxDate:Date},data:()=>({currentDate:new Date,selectedDate:null,selectedRange:[],showYearPicker:!1,showMonthPicker:!1}),computed:{weekDays:()=>n,currentYear(){return this.currentDate.getFullYear()},currentMonth(){return this.currentDate.getMonth()},calendarDates(){const t=this.currentYear,e=this.currentMonth,i=new Date(t,e,1),n=(new Date(t,e+1,0),new Date(i));n.setDate(n.getDate()-n.getDay());const r=[],o=new Date;for(let t=0;t<42;t++){const i=new Date(n);i.setDate(n.getDate()+t);const a=this.selectedDate&&i.toDateString()===this.selectedDate.toDateString(),s=i.toDateString()===o.toDateString(),l=this.disabledDate&&this.disabledDate(i);r.push({date:i.getDate(),fullDate:i,isCurrentMonth:i.getMonth()===e,isToday:s,isSelected:a,isDisabled:l})}return r},isPrevDisabled(){return this.minDate&&new Date(this.currentYear,this.currentMonth,1)<=this.minDate},isNextDisabled(){return this.maxDate&&new Date(this.currentYear,this.currentMonth+1,0)>=this.maxDate}},methods:{prevMonth(){this.currentDate=new Date(this.currentYear,this.currentMonth-1,1)},nextMonth(){this.currentDate=new Date(this.currentYear,this.currentMonth+1,1)},handleDateClick(t){t.isDisabled||(this.isRange?this.handleRangeSelection(t.fullDate):(this.selectedDate=t.fullDate,this.$emit("input",t.fullDate),this.$emit("change",t.fullDate)))},handleRangeSelection(t){if(0===this.selectedRange.length||2===this.selectedRange.length)this.selectedRange=[t];else{const[e,i]=this.selectedRange;this.selectedRange=t<e?[t,e]:[e,t],this.$emit("input",this.selectedRange),this.$emit("change",this.selectedRange)}},pickYear(t){this.currentDate=new Date(t,this.currentMonth,1),this.showYearPicker=!1},pickMonth(t){this.currentDate=new Date(this.currentYear,t,1),this.showMonthPicker=!1}}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-calendar",class:{"is-range":t.isRange,"is-bordered":t.border}},[e("div",{staticClass:"ui-calendar__header"},[e("button",{staticClass:"ui-calendar__button",attrs:{disabled:t.isPrevDisabled},on:{click:t.prevMonth}},[e("i",{staticClass:"icon-arrow-left"})]),e("div",{staticClass:"ui-calendar__title"},[e("span",{staticClass:"ui-calendar__year",on:{click:function(e){t.showYearPicker=!t.showYearPicker}}},[t._v("\n "+t._s(t.currentYear)+"年\n ")]),e("span",{staticClass:"ui-calendar__month",on:{click:function(e){t.showMonthPicker=!t.showMonthPicker}}},[t._v("\n "+t._s(t.currentMonth+1)+"月\n ")])]),e("button",{staticClass:"ui-calendar__button",attrs:{disabled:t.isNextDisabled},on:{click:t.nextMonth}},[e("i",{staticClass:"icon-arrow-right"})])]),e("div",{staticClass:"ui-calendar__body"},[e("div",{staticClass:"ui-calendar__week-header"},t._l(t.weekDays,(function(i){return e("span",{key:i,staticClass:"ui-calendar__cell"},[t._v(t._s(i))])})),0),e("div",{staticClass:"ui-calendar__content"},t._l(t.calendarDates,(function(i,n){return e("div",{key:n,staticClass:"ui-calendar__cell",class:{"is-current-month":i.isCurrentMonth,"is-today":i.isToday,"is-selected":i.isSelected,"is-disabled":i.isDisabled},on:{click:function(e){return t.handleDateClick(i)}}},[e("span",{staticClass:"ui-calendar__date"},[t._v(t._s(i.date))])])})),0)])])}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n={name:"UiCard",props:{header:{},bodyStyle:{},shadow:{type:String,validator:t=>["always","hover","never"].includes(t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-card",class:t.shadow?"is-"+t.shadow+"-shadow":"is-always-shadow"},[t.$slots.header||t.header?e("div",{staticClass:"ui-card__header"},[t._t("header",(function(){return[t._v(t._s(t.header))]}))],2):t._e(),e("div",{staticClass:"ui-card__body",style:t.bodyStyle},[t._t("default")],2)])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCarouselItem",inject:["carousel"],data:()=>({isActive:!1}),watch:{"carousel.activeIndex"(t){this.isActive=t===this.index}},mounted(){this.index=this.carousel.items.length,this.carousel.updateItems()},beforeDestroy(){this.carousel.updateItems()}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-carousel-item",class:{"is-active":this.isActive}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCarousel",componentName:"UiCarousel",props:{height:{type:String,default:"300px"},initialIndex:{type:Number,default:0},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},trigger:{type:String,default:"hover",validator:t=>["hover","click"].indexOf(t)>-1},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].indexOf(t)>-1},loop:{type:Boolean,default:!0},arrow:{type:String,default:"hover",validator:t=>["always","hover","never"].indexOf(t)>-1},indicator:{type:String,default:"inside",validator:t=>["inside","outside","none"].indexOf(t)>-1}},data(){return{items:[],activeIndex:this.initialIndex,timer:null,isHover:!1}},computed:{trackStyle(){const t="vertical"===this.direction?"translateY":"translateX",e=this.items[0]||{};"vertical"===this.direction?e.height:e.width;return{transform:`${t}(-${100*this.activeIndex}%)`,transition:"transform 0.3s ease"}}},provide(){return{carousel:this}},watch:{activeIndex(t,e){this.$emit("change",t,e)},autoplay(t){t?this.startTimer():this.stopTimer()}},mounted(){this.$nextTick(()=>{this.updateItems(),this.startTimer()})},beforeDestroy(){this.stopTimer()},methods:{updateItems(){this.items=this.$slots.default.filter(t=>t.tag&&t.componentOptions&&"UiCarouselItem"===t.componentOptions.Ctor.options.name).map(t=>({vm:t.componentInstance,width:t.elm&&t.elm.offsetWidth||0,height:t.elm&&t.elm.offsetHeight||0}))},handleMouseEnter(){"hover"===this.trigger&&(this.isHover=!0,this.autoplay&&this.stopTimer())},handleMouseLeave(){this.isHover=!1,this.autoplay&&this.startTimer()},startTimer(){this.autoplay&&!this.isHover&&(this.timer=setInterval(()=>{this.next()},this.interval))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)},setActiveItem(t){t<0||t>=this.items.length||(this.activeIndex=t)},prev(){let t=this.activeIndex-1;t<0&&(t=this.loop?this.items.length-1:0),t>=0&&t<this.items.length&&(this.activeIndex=t)},next(){let t=this.activeIndex+1;t>=this.items.length&&(t=this.loop?0:this.items.length-1),t>=0&&t<this.items.length&&(this.activeIndex=t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-carousel",class:{"is-vertical":"vertical"===t.direction},on:{mouseenter:function(e){return e.stopPropagation(),t.handleMouseEnter.apply(null,arguments)},mouseleave:function(e){return e.stopPropagation(),t.handleMouseLeave.apply(null,arguments)}}},[e("div",{staticClass:"ui-carousel__container",style:{height:t.height}},[e("div",{staticClass:"ui-carousel__track",style:t.trackStyle},[t._t("default")],2),"always"===t.arrow||"hover"===t.arrow?e("div",{staticClass:"ui-carousel__arrows"},[e("button",{staticClass:"ui-carousel__arrow ui-carousel__arrow--left",on:{click:t.prev}},[e("i",{staticClass:"icon-arrow-left"})]),e("button",{staticClass:"ui-carousel__arrow ui-carousel__arrow--right",on:{click:t.next}},[e("i",{staticClass:"icon-arrow-right"})])]):t._e(),"none"!==t.indicator?e("div",{staticClass:"ui-carousel__indicators"},t._l(t.items,(function(i,n){return e("button",{key:n,staticClass:"ui-carousel__indicator",class:{"is-active":t.activeIndex===n},on:{click:function(e){return t.setActiveItem(n)}}},[e("span")])})),0):t._e()])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCascader",props:{value:{},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请选择"},disabled:Boolean,props:{type:Object,default:()=>({value:"value",label:"label",children:"children",disabled:"disabled"})},showAllLevels:{type:Boolean,default:!0},separator:{type:String,default:"/"}},data:()=>({pickerVisible:!1,isFocus:!1,inputValue:"",activeValues:[],menus:[],selectedOptions:[]}),computed:{valueKey(){return this.props.value},labelKey(){return this.props.label},childrenKey(){return this.props.children},disabledKey(){return this.props.disabled}},watch:{value(t){this.updateInputValue()},options:{handler(){this.initMenus()},deep:!0}},methods:{initMenus(){this.menus=[this.options]},updateInputValue(){if(!this.value||!Array.isArray(this.value))return void(this.inputValue="");const t=this.getSelectedOptions(this.value);if(this.showAllLevels)this.inputValue=t.map(t=>t[this.labelKey]).join(this.separator);else{const e=t[t.length-1];this.inputValue=e?e[this.labelKey]:""}this.selectedOptions=t},getSelectedOptions(t){const e=[];let i=this.options;for(let n=0;n<t.length;n++){const r=t[n],o=i.find(t=>t[this.valueKey]===r);if(!o)break;e.push(o),i=o[this.childrenKey]||[]}return e},isActive(t,e){return this.activeValues[e]===t[this.valueKey]},handleItemClick(t,e){if(t[this.disabledKey])return;const i=t[this.childrenKey]&&t[this.childrenKey].length>0;this.activeValues=this.activeValues.slice(0,e+1),this.activeValues[e]=t[this.valueKey],i?(this.menus[e+1]&&this.menus.splice(e+1),this.menus.push(t[this.childrenKey])):this.selectItem(t)},handleItemHover(t,e){},selectItem(t){const e=this.activeValues.map((t,e)=>this.menus[e].find(e=>e[this.valueKey]===t)).filter(Boolean);this.selectedOptions=e,this.showAllLevels?this.inputValue=e.map(t=>t[this.labelKey]).join(this.separator):this.inputValue=t[this.labelKey];const i=e.map(t=>t[this.valueKey]);this.$emit("input",i),this.$emit("change",i),this.pickerVisible=!1},handleFocus(){this.disabled||(this.pickerVisible=!0,this.isFocus=!0,this.initMenus())},handleBlur(){this.isFocus=!1},handleClear(){this.inputValue="",this.activeValues=[],this.selectedOptions=[],this.$emit("input",[]),this.$emit("change",[])},handleDocumentClick(t){this.$el&&!this.$el.contains(t.target)&&(this.pickerVisible=!1)}},watch:{pickerVisible(t){t?document.addEventListener("click",this.handleDocumentClick):document.removeEventListener("click",this.handleDocumentClick)}},mounted(){this.updateInputValue()},beforeDestroy(){document.removeEventListener("click",this.handleDocumentClick)}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-cascader",class:{"is-focus":t.isFocus}},[e("ui-input",{attrs:{placeholder:t.placeholder,disabled:t.disabled,readonly:""},on:{focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},[e("i",{staticClass:"ui-input__icon icon-list",attrs:{slot:"prefix"},slot:"prefix"})]),e("transition",{attrs:{name:"ui-zoom-in-top"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerVisible,expression:"pickerVisible"}],ref:"cascaderPanel",staticClass:"ui-cascader__panel"},[e("div",{staticClass:"ui-cascader__menus"},t._l(t.menus,(function(i,n){return e("div",{key:n,staticClass:"ui-cascader__menu"},t._l(i,(function(i){return e("div",{key:i.value,staticClass:"ui-cascader__item",class:{"is-active":t.isActive(i,n),"is-disabled":i.disabled},on:{click:function(e){return t.handleItemClick(i,n)},mouseenter:function(e){return t.handleItemHover(i,n)}}},[t._v("\n "+t._s(i.label)+"\n "),i.children&&i.children.length?e("i",{staticClass:"ui-cascader__arrow icon-arrow-right"}):t._e()])})),0)})),0)])])],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter(){let t=this.$parent;for(;t&&"UiRow"!==t.$options.componentName;)t=t.$parent;return t?t.gutter:0},style(){const t={};return this.gutter&&(t.paddingLeft=this.gutter/2+"px",t.paddingRight=t.paddingLeft),t},classList(){let t=[];return["span","offset","pull","push"].forEach(e=>{(this[e]||0===this[e])&&t.push("span"!==e?`ui-col-${e}-${this[e]}`:"ui-col-"+this[e])}),["xs","sm","md","lg","xl"].forEach(e=>{if("number"==typeof this[e])t.push(`ui-col-${e}-${this[e]}`);else if("object"==typeof this[e]){let i=this[e];Object.keys(i).forEach(n=>{t.push("span"!==n?`ui-col-${e}-${n}-${i[n]}`:`ui-col-${e}-${i[n]}`)})}}),["ui-col",...t]}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)(this.tag,{tag:"component",staticClass:"ui-col",class:this.classList,style:this.style},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCollapseItem",componentName:"UiCollapseItem",inject:["collapse"],props:{title:String,name:[String,Number]},data:()=>({isActive:!1}),computed:{collapseItems(){return this.collapse.items}},watch:{isActive(t){t?this.$emit("expand"):this.$emit("collapse")}},methods:{handleItemClick(){this.collapse.handleItemClick(this)}},created(){this.collapse.items.push(this)},beforeDestroy(){const t=this.collapse.items,e=t.indexOf(this);e>-1&&t.splice(e,1)}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-collapse-item",class:{"is-active":t.isActive},attrs:{role:"tabpanel"}},[e("div",{staticClass:"ui-collapse-item__header",attrs:{role:"tab","aria-expanded":t.isActive},on:{click:t.handleItemClick}},[t._t("title",(function(){return[t._v(t._s(t.title))]})),e("i",{staticClass:"ui-collapse-item__arrow",class:{"is-active":t.isActive}})],2),e("transition",{attrs:{name:"ui-collapse-collapse"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"ui-collapse-item__wrap",attrs:{role:"tabpanel"}},[e("div",{staticClass:"ui-collapse-item__content"},[t._t("default")],2)])])],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiCollapse",componentName:"UiCollapse",props:{value:{},accordion:Boolean},data:()=>({items:[]}),watch:{value(){this.setActiveItem()}},provide(){return{collapse:this}},methods:{setActiveItem(){const t=[].concat(this.value);this.items.forEach(e=>{e.isActive=t.indexOf(e.name)>-1})},handleItemClick(t){this.accordion&&this.items.forEach(e=>{e!==t&&e.isActive&&e.handleItemClick()}),t.isActive=!t.isActive;const e=this.items.filter(t=>t.isActive).map(t=>t.name);this.accordion?(this.$emit("input",t.isActive?t.name:""),this.$emit("change",t.isActive?t.name:"")):(this.$emit("input",e),this.$emit("change",e))}},mounted(){this.setActiveItem()}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-collapse",class:{"ui-collapse--accordion":this.accordion},attrs:{role:"tablist"}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiColorPicker",props:{value:{type:String,default:"#000000"},presetColors:{type:Array,default:()=>["#FF0000","#FF7F00","#FFFF00","#00FF00","#0000FF","#4B0082","#9400D3","#000000","#FFFFFF","#808080","#800000","#008000"]}},data(){return{pickerVisible:!1,isFocus:!1,currentValue:this.value,colorInput:this.value,hue:0,saturation:100,lightness:50,cursorLeft:100,cursorTop:0,hueThumbTop:0}},watch:{value(t){this.currentValue=t,this.colorInput=t},pickerVisible(t){t?(document.addEventListener("click",this.handleDocumentClick),this.initColor()):document.removeEventListener("click",this.handleDocumentClick)}},methods:{hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgbToHex:(t,e,i)=>"#"+[t,e,i].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join(""),rgbToHsl(t,e,i){t/=255,e/=255,i/=255;const n=Math.max(t,e,i),r=Math.min(t,e,i);let o,a,s=(n+r)/2;if(n===r)o=a=0;else{const l=n-r;switch(a=s>.5?l/(2-n-r):l/(n+r),n){case t:o=((e-i)/l+(e<i?6:0))/6;break;case e:o=((i-t)/l+2)/6;break;case i:o=((t-e)/l+4)/6}}return{h:360*o,s:100*a,l:100*s}},hslToRgb(t,e,i){let n,r,o;if(t/=360,i/=100,0===(e/=100))n=r=o=i;else{const a=(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t),s=i<.5?i*(1+e):i+e-i*e,l=2*i-s;n=a(l,s,t+1/3),r=a(l,s,t),o=a(l,s,t-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*o)}},initColor(){const t=this.hexToRgb(this.currentValue);if(t){const e=this.rgbToHsl(t.r,t.g,t.b);this.hue=e.h,this.saturation=e.s,this.lightness=e.l,this.updateCursor()}},updateCursor(){this.cursorLeft=this.saturation/100*100,this.cursorTop=100*(1-this.lightness/100),this.hueThumbTop=this.hue/360*100},handleTriggerClick(){this.pickerVisible=!this.pickerVisible},selectColor(t){this.currentValue=t,this.colorInput=t,this.initColor()},handleColorInputChange(){/^#[0-9A-Fa-f]{6}$/.test(this.colorInput)&&(this.currentValue=this.colorInput,this.initColor())},cancel(){this.currentValue=this.value,this.colorInput=this.value,this.pickerVisible=!1},confirm(){this.$emit("input",this.currentValue),this.$emit("change",this.currentValue),this.pickerVisible=!1},handleDocumentClick(t){this.$el&&!this.$el.contains(t.target)&&(this.pickerVisible=!1)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-color-picker",class:{"is-focus":t.isFocus}},[e("div",{staticClass:"ui-color-picker__trigger",on:{click:t.handleTriggerClick}},[e("div",{staticClass:"ui-color-picker__color",style:{backgroundColor:t.currentValue}}),e("i",{staticClass:"ui-color-picker__icon icon-arrow-down"})]),e("transition",{attrs:{name:"ui-zoom-in-top"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerVisible,expression:"pickerVisible"}],ref:"colorPanel",staticClass:"ui-color-picker__panel"},[e("div",{staticClass:"ui-color-picker__body"},[e("div",{ref:"saturation",staticClass:"ui-color-picker__saturation"},[e("div",{staticClass:"ui-color-picker__saturation--white"}),e("div",{staticClass:"ui-color-picker__saturation--black"}),e("div",{staticClass:"ui-color-picker__cursor",style:{left:t.cursorLeft+"px",top:t.cursorTop+"px"}})]),e("div",{ref:"hue",staticClass:"ui-color-picker__hue"},[e("div",{staticClass:"ui-color-picker__hue--thumb",style:{top:t.hueThumbTop+"px"}})])]),e("div",{staticClass:"ui-color-picker__options"},[e("div",{staticClass:"ui-color-picker__preset-colors"},t._l(t.presetColors,(function(i,n){return e("span",{key:n,staticClass:"ui-color-picker__color-box",style:{backgroundColor:i},on:{click:function(e){return t.selectColor(i)}}})})),0),e("div",{staticClass:"ui-color-picker__input-wrapper"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.colorInput,expression:"colorInput"}],staticClass:"ui-color-picker__input",attrs:{type:"text"},domProps:{value:t.colorInput},on:{change:t.handleColorInputChange,input:function(e){e.target.composing||(t.colorInput=e.target.value)}}})])]),e("div",{staticClass:"ui-color-picker__footer"},[e("ui-button",{attrs:{size:"small"},on:{click:t.cancel}},[t._v("取消")]),e("ui-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirm}},[t._v("确定")])],1)])])],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiContainer",componentName:"UiContainer",props:{direction:String},computed:{isVertical(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some(t=>{const e=t.componentOptions&&t.componentOptions.tag;return"ui-header"===e||"ui-footer"===e}))}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("section",{staticClass:"ui-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);const n=["日","一","二","三","四","五","六"],r=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;var o={name:"UiDatePicker",props:{value:{},placeholder:{type:String,default:"选择日期"},disabled:Boolean,editable:{type:Boolean,default:!0},name:String,format:{type:String,default:"YYYY-MM-DD"},showTime:{type:Boolean,default:!1},popperClass:String,disabledDate:Function,minDate:Date,maxDate:Date},data:()=>({pickerVisible:!1,inputValue:"",currentDate:new Date,selectedDate:null,selectedTime:"",showYearPicker:!1,showMonthPicker:!1,showClose:!1}),computed:{weekDays:()=>n,currentYear(){return this.currentDate.getFullYear()},currentMonth(){return this.currentDate.getMonth()},calendarDates(){const t=this.currentYear,e=this.currentMonth,i=new Date(t,e,1),n=(new Date(t,e+1,0),new Date(i));n.setDate(n.getDate()-n.getDay());const r=[],o=new Date;for(let t=0;t<42;t++){const i=new Date(n);i.setDate(n.getDate()+t);const a=this.selectedDate&&i.toDateString()===this.selectedDate.toDateString(),s=i.toDateString()===o.toDateString(),l=this.disabledDate&&this.disabledDate(i);r.push({date:i.getDate(),fullDate:i,isCurrentMonth:i.getMonth()===e,isToday:s,isSelected:a,isDisabled:l})}return r}},watch:{value(t){t?(this.inputValue=t instanceof Date?r(t):t,this.selectedDate=t instanceof Date?t:new Date(t),this.currentDate=new Date(this.selectedDate)):(this.inputValue="",this.selectedDate=null)},pickerVisible(t){t?document.addEventListener("click",this.handleDocumentClick):document.removeEventListener("click",this.handleDocumentClick)}},methods:{prevYear(){this.currentDate=new Date(this.currentYear-1,this.currentMonth,1)},nextYear(){this.currentDate=new Date(this.currentYear+1,this.currentMonth,1)},prevMonth(){this.currentDate=new Date(this.currentYear,this.currentMonth-1,1)},nextMonth(){this.currentDate=new Date(this.currentYear,this.currentMonth+1,1)},handleDateClick(t){t.isDisabled||(this.selectedDate=t.fullDate,this.inputValue=r(t.fullDate),this.$emit("input",this.selectedDate),this.$emit("change",this.selectedDate),this.pickerVisible=!1)},handleFocus(){this.disabled||(this.pickerVisible=!0,this.showClose=!0)},handleBlur(){this.showClose=!1},handleClear(){this.inputValue="",this.selectedDate=null,this.$emit("input",null),this.$emit("change",null)},handleDocumentClick(t){this.$el&&!this.$el.contains(t.target)&&(this.pickerVisible=!1)},handleTimeChange(t){if(this.selectedDate){const[e,i]=t.split(":");this.selectedDate.setHours(parseInt(e),parseInt(i)),this.$emit("input",this.selectedDate),this.$emit("change",this.selectedDate)}}},mounted(){this.value&&(this.inputValue=this.value instanceof Date?r(this.value):this.value,this.selectedDate=this.value instanceof Date?this.value:new Date(this.value))},beforeDestroy(){document.removeEventListener("click",this.handleDocumentClick)}},a=i(1),s=Object(a.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-date-picker",class:[t.showClose?"is-focus":""]},[e("ui-input",{attrs:{placeholder:t.placeholder,disabled:t.disabled,readonly:!t.editable,name:t.name},on:{focus:t.handleFocus,blur:t.handleBlur,clear:t.handleClear},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},[e("i",{staticClass:"ui-input__icon icon-calendar",attrs:{slot:"prefix"},slot:"prefix"})]),e("transition",{attrs:{name:"ui-zoom-in-top"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerVisible,expression:"pickerVisible"}],ref:"picker",staticClass:"ui-date-picker__panel",class:t.popperClass},[e("div",{staticClass:"ui-date-picker__header"},[e("button",{staticClass:"ui-date-picker__button",on:{click:t.prevYear}},[e("i",{staticClass:"icon-arrow-left"})]),e("span",{staticClass:"ui-date-picker__year",on:{click:function(e){t.showYearPicker=!t.showYearPicker}}},[t._v("\n "+t._s(t.currentYear)+"年\n ")]),e("span",{staticClass:"ui-date-picker__month",on:{click:function(e){t.showMonthPicker=!t.showMonthPicker}}},[t._v("\n "+t._s(t.currentMonth+1)+"月\n ")]),e("button",{staticClass:"ui-date-picker__button",on:{click:t.nextYear}},[e("i",{staticClass:"icon-arrow-right"})])]),e("div",{staticClass:"ui-date-picker__body"},[e("div",{staticClass:"ui-date-picker__week-header"},t._l(t.weekDays,(function(i){return e("span",{key:i},[t._v(t._s(i))])})),0),e("div",{staticClass:"ui-date-picker__content"},t._l(t.calendarDates,(function(i,n){return e("div",{key:n,staticClass:"ui-date-picker__cell",class:{"is-current-month":i.isCurrentMonth,"is-today":i.isToday,"is-selected":i.isSelected,"is-disabled":i.isDisabled},on:{click:function(e){return t.handleDateClick(i)}}},[e("span",[t._v(t._s(i.date))])])})),0)]),t.showTime?e("div",{staticClass:"ui-date-picker__footer"},[e("ui-time-picker",{on:{change:t.handleTimeChange},model:{value:t.selectedTime,callback:function(e){t.selectedTime=e},expression:"selectedTime"}})],1):t._e()])])],1)}),[],!1,null,null,null).exports;s.install=function(t){t.component(s.name,s)};e.default=s},function(t,e,i){"use strict";i.r(e);var n={name:"UiDescriptionsItem",props:{label:String,span:{type:Number,default:1},width:String,labelWidth:String,content:String,className:String,labelClassName:String},inject:["descriptions"]},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-descriptions-item"},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiDescriptions",props:{data:{type:Object,default:()=>({})},columns:{type:Number,default:3},title:String,border:Boolean,size:{type:String,validator:t=>["large","medium","small","mini",""].includes(t)},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},labelClassName:String},computed:{rows(){const{columns:t,items:e}=this,i=[];let n=[];return e.forEach((e,r)=>{n.push(e),n.length===t&&(i.push(n),n=[])}),n.length&&i.push(n),i},items(){return this.$children.map(t=>({label:t.label,prop:t.prop,content:t.content||this.data[t.prop],width:t.width,className:t.className,labelClassName:t.labelClassName}))}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-descriptions",class:[t.border?"is-bordered":"",t.size?"ui-descriptions--"+t.size:""]},[t.title||t.$slots.title?e("div",{staticClass:"ui-descriptions__header"},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2):t._e(),e("table",{staticClass:"ui-descriptions__body"},[e("tbody",t._l(t.rows,(function(i,n){return e("tr",{key:n},[t._l(i,(function(i,n){return[i?e("td",{key:n,class:["ui-descriptions__cell",t.labelClassName,i.className],style:{width:i.width}},[e("div",{staticClass:"ui-descriptions__cell-content"},[e("span",{staticClass:"ui-descriptions__label"},[t._v(t._s(i.label))]),e("span",{staticClass:"ui-descriptions__content"},[t._t(i.prop,(function(){return[t._v(t._s(i.content))]}),{row:t.data})],2)])]):t._e()]}))],2)})),0)])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiDivider",props:{direction:{type:String,default:"horizontal",validator:t=>-1!==["horizontal","vertical"].indexOf(t)},contentPosition:{type:String,default:"center",validator:t=>-1!==["left","center","right"].indexOf(t)}}},r=i(1),o=Object(r.a)(n,(function(t,e){return t("div",e._g(e._b({class:[e.data.staticClass,"ui-divider","ui-divider--"+e.props.direction]},"div",e.data.attrs,!1),e.listeners),[e.slots().default&&"vertical"!==e.props.direction?t("div",{class:["ui-divider__text","is-"+e.props.contentPosition]},[e._t("default")],2):e._e()])}),[],!0,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(19),r=i(22),o=i(36),a=i(10),s={name:"UiDrawer",mixins:[n.b,a.a],components:{UiButton:r.default,UiDialog:o.default},props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},direction:{type:String,default:"rtl",validator:t=>["ltr","rtl","ttb","btt"].indexOf(t)>-1},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},beforeClose:{type:Function},customClass:{type:String,default:""},zIndex:{type:Number},destroyOnClose:{type:Boolean,default:!1},completed:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},hasCancel:{type:Boolean,default:!1},hasConfirm:{type:Boolean,default:!1},cancelBtnText:{type:String,default:""},confirmBtnText:{type:String,default:""},hasCancelConfirm:{type:Boolean,default:!1},cancelConfirmTitle:{type:String,default:""},cancelConfirmMessage:{type:String,default:""}},data:()=>({}),computed:{drawerStyle(){const t={},e="rtl"===this.direction||"ltr"===this.direction;let i=this.size;if("number"==typeof this.size)i=this.size+"px";else{const t={large:"50%",medium:"40%",small:"30%"};t[this.size]&&(i=t[this.size])}return e?t.width=i:t.height=i,t}},watch:{visible(t){t?this.$emit("open"):this.$emit("close")}},methods:{afterEnter(){this.$emit("opened")},afterLeave(){this.$emit("closed"),this.destroyOnClose&&(this.rendered=!1)},hide(t){!1!==t&&this.$emit("update:visible",!1)},handleClose(){const t=()=>{"function"==typeof this.beforeClose?this.beforeClose(this.hide):this.hide(),this.$emit("cancel")};this.hasCancelConfirm&&this.$refs.confirmDialog&&"function"==typeof this.$refs.confirmDialog.open?this.$refs.confirmDialog.open(()=>{t()}):t()},closeDrawer(){this.handleClose()},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()},handleConfirm(){this.$emit("confirm")},handleCancel(){this.closeDrawer()}},mounted(){this.visible&&(this.rendered=!0),this.appendToBody&&document.body.appendChild(this.$el)},beforeDestroy(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},l=i(1),u=Object(l.a)(s,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-drawer-fade"},on:{"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"ui-drawer__wrapper",attrs:{tabindex:"-1",role:"presentation"},on:{click:t.handleWrapperClick}},[t.modal?e("div",{staticClass:"ui-drawer__mask",style:{zIndex:t.zIndex}}):t._e(),e("div",{ref:"drawer",staticClass:"ui-drawer",class:["ui-drawer--"+t.direction,t.customClass],style:t.drawerStyle,attrs:{role:"dialog","aria-modal":!0,"aria-labelledby":"ui-drawer__title"},on:{click:function(t){t.stopPropagation()}}},[t.withHeader?e("div",{staticClass:"ui-drawer__header"},[t._t("title",(function(){return[e("span",{staticClass:"ui-drawer__title",attrs:{id:"ui-drawer__title",role:"heading",title:t.title}},[t._v(t._s(t.title))])]})),t.showClose?e("button",{staticClass:"ui-drawer__close-btn",attrs:{type:"button","aria-label":"close"},on:{click:t.closeDrawer}},[e("i",{staticClass:"ui-drawer__close ui-icon-close"})]):t._e()],2):t._e(),t.rendered?e("section",{staticClass:"ui-drawer__body"},[t._t("default")],2):t._e(),t.$slots.footer||t.hasCancel||t.hasConfirm?e("div",{staticClass:"ui-drawer__footer"},[t._t("footer",(function(){return[e("div",{staticClass:"ui-drawer__footer-buttons"},[t.hasCancel?e("ui-button",{attrs:{size:"small"},on:{click:t.handleCancel}},[t._v(t._s(t.cancelBtnText||t.t("components.messageBox.cancel")||"取消"))]):t._e(),t.hasConfirm?e("ui-button",{attrs:{type:"primary",size:"small",loading:t.confirmLoading,disabled:!t.completed},on:{click:t.handleConfirm}},[t._v(t._s(t.confirmBtnText||t.t("components.messageBox.confirm")||"确定"))]):t._e()],1)]}))],2):t._e()]),t.hasCancelConfirm?e("ui-dialog",{ref:"confirmDialog",attrs:{size:"small",title:t.cancelConfirmTitle||t.t("components.messageBox.confirm")||"提示",message:t.cancelConfirmMessage||t.t("components.drawer.cancelConfirm")||"确认关闭?未保存的数据可能丢失。","cancel-btn-text":t.t("components.drawer.continueEditing")||"继续编辑","confirm-btn-text":t.t("components.drawer.notSave")||"不保存","has-cancel":!0,"has-confirm":!0,"append-to-body":""}}):t._e()],1)])}),[],!1,null,null,null).exports;u.install=function(t){t.component(u.name,u)};e.default=u},function(t,e,i){"use strict";i.r(e);var n={name:"UiDropdownMenuItem",inject:["dropdown"],props:{command:{},disabled:Boolean,divided:Boolean},methods:{handleClick(){this.disabled||this.dropdown.handleItemClick(this)}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("li",{staticClass:"ui-dropdown-menu__item",class:{"is-disabled":this.disabled,"is-divided":this.divided},on:{click:this.handleClick}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiDropdown",componentName:"UiDropdown",props:{trigger:{type:String,default:"hover",validator:t=>["hover","click","focus","contextmenu"].indexOf(t)>-1},placement:{type:String,default:"bottom"},disabled:Boolean,showArrow:{type:Boolean,default:!0},hideOnClick:{type:Boolean,default:!0},triggerElm:{}},data:()=>({visible:!1}),provide(){return{dropdown:this}},methods:{handleItemClick(t){this.hideOnClick&&(this.visible=!1),this.$emit("command",t.command,t)},show(){this.disabled||(this.visible=!0)},hide(){this.disabled||(this.visible=!1)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-dropdown",class:[t.trigger&&"ui-dropdown--"+t.trigger]},[e("ui-tooltip",{ref:"tooltip",attrs:{trigger:t.trigger,placement:t.placement,disabled:t.disabled,"show-arrow":t.showArrow},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("template",{slot:"content"},[e("div",{ref:"menu",staticClass:"ui-dropdown__menu"},[t._t("dropdown")],2)]),t._t("default",(function(){return[e("div",{staticClass:"ui-dropdown__trigger"},[t._t("trigger")],2)]}))],2)],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiFooter",componentName:"UiFooter",props:{height:{type:String,default:"60px"}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("footer",{staticClass:"ui-footer",style:{height:this.height}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiHeader",componentName:"UiHeader",props:{height:{type:String,default:"60px"}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("header",{staticClass:"ui-header",style:{height:this.height}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);const n=()=>void 0!==document.documentElement.style.objectFit,r="none",o="contain",a="cover",s="fill",l="scale-down";var u={name:"UiImage",inheritAttrs:!1,props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},errorText:{type:String,default:"加载失败"}},data(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0}},computed:{imageStyle(){const{fit:t}=this;return t?n()?{"object-fit":t}:this.getImageStyle(t):{}},alignCenter(){return!n()&&this.fit!==s}},watch:{src(t){this.show&&this.loadImage()},show(t){t&&this.loadImage()}},mounted(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage(){this.loading=!0,this.error=!1;const t=new Image;t.onload=e=>this.handleLoad(e,t),t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach(e=>{const i=this.$attrs[e];t.setAttribute(e,i)}),t.src=this.src},handleLoad(t,e){this.imageWidth=e.width,this.imageHeight=e.height,this.loading=!1,this.error=!1},handleError(t){this.loading=!1,this.error=!0,this.$emit("error",t)},handleLazyLoad(){this.isInContainer(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener(){const{scrollContainer:t}=this;let e=null;e=t instanceof HTMLElement?t:"string"==typeof t?document.querySelector(t):this.getScrollContainer(this.$el),e&&(this._scrollContainer=e,this._lazyLoadHandler=function(t,e){let i=0;return function(){const n=Date.now();n-i>=t&&(i=n,e.apply(this,arguments))}}(200,this.handleLazyLoad),e.addEventListener("scroll",this._lazyLoadHandler),this.handleLazyLoad())},removeLazyLoadListener(){const{_scrollContainer:t,_lazyLoadHandler:e}=this;t&&e&&(t.removeEventListener("scroll",e),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle(t){const{imageWidth:e,imageHeight:i}=this,{clientWidth:n,clientHeight:s}=this.$el;if(!(e&&i&&n&&s))return{};const u=e/i,c=n/s;if(t===l){t=e<n&&i<s?r:o}switch(t){case r:return{width:"auto",height:"auto"};case o:return u<c?{width:"auto"}:{height:"auto"};case a:return u<c?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler(){this.$emit("click",arguments[0])},isInContainer(t,e){if(!e)return!0;const i=t.getBoundingClientRect(),n=e.getBoundingClientRect();return i.top<n.bottom&&i.bottom>n.top&&i.left<n.right&&i.right>n.left},getScrollContainer(t){let e=t;for(;e;){if(e===document||e===document.body)return document;const t=getComputedStyle(e).overflowY;if("auto"===t||"scroll"===t)return e;e=e.parentElement}return document}}},c=i(1),h=Object(c.a)(u,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-image"},[t.loading?t._t("placeholder",(function(){return[e("div",{staticClass:"ui-image__placeholder"})]})):t.error?t._t("error",(function(){return[e("div",{staticClass:"ui-image__error"},[t._v(t._s(t.errorText))])]})):e("img",t._g(t._b({staticClass:"ui-image__inner",class:{"ui-image__inner--center":t.alignCenter},style:t.imageStyle,attrs:{src:t.src},on:{click:t.clickHandler}},"img",t.$attrs,!1),t.$listeners))],2)}),[],!1,null,null,null).exports;h.install=function(t){t.component(h.name,h)};e.default=h},function(t,e,i){"use strict";i.r(e);var n={name:"UiInputNumber",props:{value:{type:Number,default:0},step:{type:Number,default:1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},precision:{type:Number,default:null}},data(){return{currentValue:this.value}},computed:{minDisabled(){return this._increase&&this._increase()<=this.min},maxDisabled(){return this._decrease&&this._decrease()>=this.max}},watch:{value(t){this.currentValue=t},currentValue(t){this.$emit("input",t)}},created(){this._decrease=()=>this.currentValue-this.step,this._increase=()=>this.currentValue+this.step},methods:{decrease(){this.disabled||this.minDisabled||(this.currentValue=this._decrease(),this.$emit("change",this.currentValue))},increase(){this.disabled||this.maxDisabled||(this.currentValue=this._increase(),this.$emit("change",this.currentValue))},handleInput(t){const e=t.target.value,i=Number(e);isNaN(i)||(this.currentValue=i)},handleBlur(){this.currentValue>this.max?this.currentValue=this.max:this.currentValue<this.min&&(this.currentValue=this.min),this.$emit("change",this.currentValue)},handleFocus(t){this.$emit("focus",t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-input-number",class:[t.size?"ui-input-number--"+t.size:"",{"is-disabled":t.disabled,"is-without-controls":!t.controls}]},[t.controls?e("span",{staticClass:"ui-input-number__decrease",class:{"is-disabled":t.minDisabled},on:{click:t.decrease}},[e("i",{staticClass:"icon-minus"})]):t._e(),e("div",{staticClass:"ui-input-number__input"},[e("input",{staticClass:"ui-input-number__inner",attrs:{type:"text",role:"spinbutton","aria-valuenow":t.currentValue,"aria-valuemax":t.max,"aria-valuemin":t.min,disabled:t.disabled},domProps:{value:t.currentValue},on:{input:t.handleInput,blur:t.handleBlur,focus:t.handleFocus}})]),t.controls?e("span",{staticClass:"ui-input-number__increase",class:{"is-disabled":t.maxDisabled},on:{click:t.increase}},[e("i",{staticClass:"icon-plus"})]):t._e()])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick(t){this.disabled||this.href||this.$emit("click",t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("a",t._b({class:["ui-link",t.type?"ui-link--"+t.type:"",t.disabled&&"is-disabled",t.underline&&!t.disabled&&"is-underline"],attrs:{href:t.disabled?null:t.href},on:{click:t.handleClick}},"a",t.$attrs,!1),[t.icon?e("i",{class:t.icon}):t._e(),t.$slots.default?e("span",{staticClass:"ui-link--inner"},[t._t("default")],2):t._e(),t.$slots.icon?[t.$slots.icon?t._t("icon"):t._e()]:t._e()],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiMain",componentName:"UiMain"},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("main",{staticClass:"ui-main"},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiMenuItem",componentName:"UiMenuItem",inject:["rootMenu"],props:{index:{type:String,required:!0},route:[String,Object],disabled:Boolean},data:()=>({isActive:!1}),props:{icon:String},methods:{handleClick(){this.disabled||this.rootMenu.handleMenuItemClick({index:this.index,indexPath:this.indexPath})}},created(){this.rootMenu.addMenuItem(this)},beforeDestroy(){this.rootMenu.removeMenuItem(this)}},r=i(1),o=Object(r.a)(n,(function(){var t=this._self._c;return t("li",{staticClass:"ui-menu-item",class:{"is-active":this.isActive,"is-disabled":this.disabled},attrs:{role:"menuitem"},on:{click:this.handleClick}},[this.icon?t("i",{staticClass:"ui-menu-item__icon",class:this.icon}):this._e(),this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiMenu",componentName:"UiMenu",props:{mode:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].indexOf(t)>-1},defaultActive:String,defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover",validator:t=>["hover","click"].indexOf(t)>-1},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String},data:()=>({openedMenus:[],items:{},submenus:{}}),provide(){return{rootMenu:this}},watch:{defaultOpeneds(t){this.openedMenus=t}},methods:{addMenuItem(t){this.items[t.index]=t},removeMenuItem(t){delete this.items[t.index]},addSubmenu(t){this.submenus[t.index]=t},removeSubmenu(t){delete this.submenus[t.index]},openMenu(t,e){const i=this.openedMenus;if(this.uniqueOpened)this.openedMenus=[t];else{-1===i.indexOf(t)&&(this.openedMenus=[...i,t])}},closeMenu(t){const e=this.openedMenus.indexOf(t);e>-1&&this.openedMenus.splice(e,1)},handleMenuItemClick(t){"horizontal"===this.mode&&(this.openedMenus=[]),this.router&&this.routeToMenu(t.index),this.$emit("select",t.index,t.indexPath)},routeToMenu(t){},open(t){const e=this.submenus[t]?this.submenus[t].indexPath:[];this.openMenu(t,e)},close(t){this.closeMenu(t)}},created(){this.openedMenus=this.defaultOpeneds||[]}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-menu",class:["horizontal"===this.mode?"ui-menu--horizontal":"ui-menu--vertical",this.backgroundColor?"":"ui-menu--dark",this.collapse?"is-collapse":""],attrs:{role:"menu"}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(13),r=i(18),o=i(19),a=i(10),s={name:"UiMessageBox",mixins:[o.b,a.a],components:{UiInput:n.a,UiButton:r.a},props:{title:{type:String,default:""},message:{type:String,default:""},type:{type:String,default:"",validator:t=>["success","warning","info","error",""].indexOf(t)>-1},customClass:{type:String,default:""},showClose:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},showConfirmButton:{type:Boolean,default:!0},confirmButtonText:{type:String,default:()=>Object(a.b)("components.messageBox.confirm")||"确定"},cancelButtonText:{type:String,default:()=>Object(a.b)("components.messageBox.cancel")||"取消"},confirmButtonClass:{type:String,default:""},cancelButtonClass:{type:String,default:""},confirmButtonDisabled:{type:Boolean,default:!1},cancelButtonDisabled:{type:Boolean,default:!1},confirmButtonLoading:{type:Boolean,default:!1},cancelButtonLoading:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},inputPlaceholder:{type:String,default:()=>Object(a.b)("components.messageBox.placeholder")||"请输入"},inputType:{type:String,default:"text"},inputValue:{},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},distinguishCancelAndClose:{type:Boolean,default:!1}},data(){return{visible:!1,internalValue:this.inputValue}},watch:{visible(t){t&&this.$nextTick(()=>{this.$refs.input&&this.$refs.input.$el.querySelector("input").focus()})}},methods:{handleClose(){this.distinguishCancelAndClose?this.$emit("cancel"):this.$emit("close"),this.visible=!1},handleCancel(){this.$emit("cancel"),this.$emit("close","cancel"),this.visible=!1},handleConfirm(){this.$emit("confirm",this.internalValue),this.$emit("close","confirm"),this.showInput||(this.visible=!1)},handleWrapperClick(){this.closeOnClickModal&&this.handleClose()}}},l=i(1),u=Object(l.a)(s,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-messagebox-fade"}},[t.visible?e("div",{staticClass:"ui-messagebox__wrapper"},[e("div",{staticClass:"ui-messagebox",class:[t.customClass]},[t.title?e("div",{staticClass:"ui-messagebox__header"},[e("div",{staticClass:"ui-messagebox__title"},[t._v(t._s(t.title))]),t.showClose?e("button",{staticClass:"ui-messagebox__headerbtn",on:{click:t.handleClose}},[e("i",{staticClass:"ui-messagebox__close icon-close"})]):t._e()]):t._e(),t.message||t.$slots.default?e("div",{staticClass:"ui-messagebox__content"},[e("div",{staticClass:"ui-messagebox__message"},[t._t("default",(function(){return[e("p",[t._v(t._s(t.message))])]}))],2),t.showInput?e("div",{staticClass:"ui-messagebox__input"},[e("ui-input",{ref:"input",attrs:{placeholder:t.inputPlaceholder,type:t.inputType},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})],1):t._e()]):t._e(),e("div",{staticClass:"ui-messagebox__btns"},[t.showCancelButton?e("ui-button",{class:["ui-messagebox__button",t.cancelButtonClass],attrs:{loading:t.cancelButtonLoading,disabled:t.cancelButtonDisabled},on:{click:t.handleCancel}},[t._v("\n "+t._s(t.cancelButtonText)+"\n ")]):t._e(),e("ui-button",{class:["ui-messagebox__button",t.confirmButtonClass],attrs:{loading:t.confirmButtonLoading,disabled:t.confirmButtonDisabled},on:{click:t.handleConfirm}},[t._v("\n "+t._s(t.confirmButtonText)+"\n ")])],1)])]):t._e()])}),[],!1,null,null,null).exports,c=i(5),h=i.n(c);const d=h.a.extend(u);let p,f;const g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!h.a.prototype.$isServer)return new Promise((e,i)=>{const n=n=>{"confirm"===n?t.showInput?e({value:f.internalValue,action:n}):e(n):"cancel"!==n&&"close"!==n||i(n),f.$nextTick(()=>{f.$el&&f.$el.parentNode&&f.$el.parentNode.removeChild(f.$el),f.$destroy()})};f=new d({propsData:t}),f.$mount(),document.body.appendChild(f.$el),f.visible=!0,f.$on("close",n),f.$on("confirm",()=>{n("confirm")}),f.$on("cancel",()=>n("cancel")),p=f})};["alert","confirm","prompt"].forEach(t=>{g[t]=function(e,i,n){return"object"==typeof e?g(e):("object"==typeof i&&(n=i,i=""),g({title:i||"提示",message:e,showInput:"prompt"===t,showCancelButton:"alert"!==t,...n}))}});e.default=g},function(t,e,i){"use strict";i.r(e);const n={success:"ui-icon-success",warning:"ui-icon-warning",info:"ui-icon-info",error:"ui-icon-error"};var r={name:"UiMessage",props:{message:{type:String,default:""},type:{type:String,default:"info",validator:t=>["success","warning","info","error"].indexOf(t)>-1},iconClass:{type:String,default:""},showClose:{type:Boolean,default:!1},duration:{type:Number,default:3e3},center:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},customClass:{type:String,default:""},offset:{type:Number,default:20},zIndex:{type:Number,default:2e3}},data:()=>({visible:!1,timer:null,verticalOffset:20}),computed:{iconClassComputed(){return this.iconClass||n[this.type]||""},positionStyle(){return{top:this.verticalOffset+"px",zIndex:this.zIndex}}},mounted(){this.startTimer()},beforeDestroy(){this.clearTimer()},methods:{startTimer(){this.duration>0&&(this.timer=setTimeout(()=>{this.visible&&this.close()},this.duration))},clearTimer(){this.timer&&clearTimeout(this.timer)},close(){this.visible=!1},onBeforeLeave(){this.$emit("close")},onAfterLeave(){this.$emit("closed"),this.$destroy()}}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-message-fade"},on:{"before-leave":t.onBeforeLeave,"after-leave":t.onAfterLeave}},[t.visible?e("div",{staticClass:"ui-message",class:[t.type?"ui-message--"+t.type:"",t.center?"is-center":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.showIcon?e("i",{staticClass:"ui-message__icon",class:t.iconClassComputed}):t._e(),e("p",{staticClass:"ui-message__content"},[t._t("default",(function(){return[t._v(t._s(t.message))]}))],2),t.showClose?e("i",{staticClass:"ui-message__closebtn ui-icon-close",on:{click:t.close}}):t._e()]):t._e()])}),[],!1,null,null,null).exports,s=i(5),l=i.n(s);const u=l.a.extend(a);let c,h=[],d=1;const p=function(t){if(l.a.prototype.$isServer)return;"string"==typeof(t=t||{})&&(t={message:t});let e=t.onClose;const i="message_"+d++;t.onClose=function(){p.close(i,e)},c=new u({propsData:t}),c.id=i,c.$mount(),document.body.appendChild(c.$el);let n=t.offset||20;return h.forEach(t=>{n+=(t.$el.offsetHeight||44)+16}),c.verticalOffset=n,c.visible=!0,c.$on("close",()=>{p.close(i,e)}),h.push(c),c};["success","warning","info","error"].forEach(t=>{p[t]=e=>("string"==typeof e&&(e={message:e}),e.type=t,p(e))}),p.close=function(t,e){let i,n=h.length,r=-1;for(let o=0;o<n;o++)if(t===h[o].id){r=o,i=h[o].$el.offsetHeight,"function"==typeof e&&e(h[o]),h.splice(o,1);break}if(!(n<=1||-1===r||r>h.length-1))for(let t=r;t<n-1;t++)h[t].verticalOffset=h[t].verticalOffset-i-16},p.closeAll=function(){for(let t=h.length-1;t>=0;t--)h[t].close()};e.default=p},function(t,e,i){"use strict";i.r(e);const n={success:"icon-success",warning:"icon-warning",info:"icon-info",error:"icon-error"};var r={name:"UiNotification",props:{title:{type:String,default:""},message:{type:String,default:""},type:{type:String,default:"info",validator:t=>["success","warning","info","error"].indexOf(t)>-1},icon:{type:String,default:""},showClose:{type:Boolean,default:!0},duration:{type:Number,default:4500},position:{type:String,default:"top-right",validator:t=>["top-right","top-left","bottom-right","bottom-left"].indexOf(t)>-1},customClass:{type:String,default:""},offset:{type:Number,default:20},zIndex:{type:Number,default:2e3},showIcon:{type:Boolean,default:!1},onClose:Function,onClick:Function},data:()=>({visible:!1,timer:null}),computed:{iconClass(){return this.icon?this.icon:this.showIcon&&this.type?n[this.type]:""},positionStyle(){const t=this.position.split("-"),e={[t[0]]:this.offset+"px"};return e[t[1]]=this.offset+"px",e.zIndex=this.zIndex,e}},mounted(){this.duration&&(this.timer=setTimeout(()=>{this.close()},this.duration))},beforeDestroy(){this.timer&&clearTimeout(this.timer)},methods:{close(){this.visible=!1},onBeforeLeave(){this.onClose&&this.onClose()},onAfterLeave(){this.$emit("closed"),this.$destroy()}}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"ui-notification-fade"},on:{"before-leave":t.onBeforeLeave,"after-leave":t.onAfterLeave}},[t.visible?e("div",{staticClass:"ui-notification",class:[t.type?"ui-notification--"+t.type:"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{click:t.onClick}},[t.showIcon||t.icon?e("i",{staticClass:"ui-notification__icon",class:t.iconClass}):t._e(),e("div",{staticClass:"ui-notification__group"},[t.title?e("h2",{staticClass:"ui-notification__title"},[t._v(t._s(t.title))]):t._e(),t.message?e("p",{staticClass:"ui-notification__content"},[t._v(t._s(t.message))]):t._e(),t._t("default")],2),t.showClose?e("i",{staticClass:"ui-notification__closebtn icon-close",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}}):t._e()]):t._e()])}),[],!1,null,null,null).exports,s=i(5),l=i.n(s);const u=l.a.extend(a);let c,h=[],d=1;const p=function(t){if(l.a.prototype.$isServer)return;"string"==typeof(t=t||{})&&(t={message:t});const e=t.onClosed||function(){},i="notification_"+d++,n=t.offset||20;let r=t.verticalOffset||0;return h.forEach(t=>{r+=t.$el.offsetHeight+16}),r+=n,c=new u({data:t,destroyed:function(){const t=this.$el;t.parentNode&&t.parentNode.removeChild(t);const i=h.indexOf(this);i>-1&&h.splice(i,1),e()}}),c.id=i,c.$mount(),c.visible=!0,c.$el.style.zIndex=t.zIndex||2e3,document.body.appendChild(c.$el),h.push(c),c};["success","warning","info","error"].forEach(t=>{p[t]=e=>("string"==typeof e&&(e={message:e}),e.type=t,p(e))});e.default=p},function(t,e,i){"use strict";i.r(e);var n={name:"UiPageHeader",props:{title:{type:String,default:"返回"},content:String}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-page-header"},[e("div",{staticClass:"ui-page-header__left",on:{click:function(e){return t.$emit("back")}}},[e("i",{staticClass:"ui-page-header__icon icon-back"}),e("div",{staticClass:"ui-page-header__title"},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2)]),e("div",{staticClass:"ui-page-header__content"},[t._t("content",(function(){return[t._v(t._s(t.content))]}))],2)])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiPagination",componentName:"UiPagination",mixins:[i(10).a],props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>(0|t)===t&&t>4&&t<22&&t%2==1,default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100]},background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,prevText:String,nextText:String},data:()=>({internalCurrentPage:1,internalPageSize:0,userInput:null}),watch:{currentPage:{immediate:!0,handler(t){this.internalCurrentPage=this.getValidCurrentPage(t)}},pageSize:{immediate:!0,handler(t){this.internalPageSize=isNaN(t)?10:t}},internalCurrentPage:{immediate:!0,handler(t){this.$emit("update:currentPage",t)}}},computed:{internalPageCount(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null},pages(){const t=[],e=this.internalPageCount||1,i=this.pagerCount,n=this.internalCurrentPage;if(e<=i)for(let i=1;i<=e;i++)t.push(i);else{const r=Math.floor(i/2);let o=n-r,a=n+r;o<1&&(o=1,a=i),a>e&&(a=e,o=e-i+1),o>1&&(t.push(1),o>2&&t.push("..."));for(let e=o;e<=a;e++)t.push(e);a<e&&(a<e-1&&t.push("..."),t.push(e))}return t}},methods:{handlePageClick(t){"..."!==t&&t!==this.internalCurrentPage&&(this.internalCurrentPage=t,this.$emit("current-change",t))},prev(){if(this.disabled)return;const t=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("prev-click",this.internalCurrentPage),this.$emit("current-change",this.internalCurrentPage)},next(){if(this.disabled)return;const t=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("next-click",this.internalCurrentPage),this.$emit("current-change",this.internalCurrentPage)},getValidCurrentPage(t){t=parseInt(t,10);let e;return"number"==typeof this.internalPageCount?t<1?e=1:t>this.internalPageCount&&(e=this.internalPageCount):(isNaN(t)||t<1)&&(e=1),(void 0===e&&isNaN(t)||0===e)&&(e=1),void 0===e?t:e},handleInput(t){this.userInput=t},handleChange(t){this.internalCurrentPage=this.getValidCurrentPage(t),this.$emit("current-change",this.internalCurrentPage),this.userInput=null},handleSizeChange(t){this.internalPageSize=t,this.$emit("update:pageSize",t),this.$emit("size-change",t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-pagination",class:{"is-background":t.background,"ui-pagination--small":t.small}},[t.layout.includes("sizes")?e("div",{staticClass:"ui-pagination__sizes"},[e("ui-select",{attrs:{size:"medium",disabled:t.disabled},on:{change:t.handleSizeChange},model:{value:t.internalPageSize,callback:function(e){t.internalPageSize=e},expression:"internalPageSize"}},t._l(t.pageSizes,(function(i){return e("ui-option",{key:i,attrs:{value:i,label:i+(t.t("components.pagination.pagesize")||" 条/页")}})})),1)],1):t._e(),e("button",{staticClass:"btn-prev",attrs:{type:"button",disabled:t.disabled||t.internalCurrentPage<=1},on:{click:t.prev}},[t.prevText?e("span",[t._v(t._s(t.prevText))]):e("i",{staticClass:"ui-icon-arrow-left"})]),t.layout.includes("pager")?e("ul",{staticClass:"ui-pager"},t._l(t.pages,(function(i){return e("li",{key:i,class:{active:i===t.internalCurrentPage},attrs:{disabled:"..."===i},on:{click:function(e){return t.handlePageClick(i)}}},[t._v("\n "+t._s(i)+"\n ")])})),0):t._e(),e("button",{staticClass:"btn-next",attrs:{type:"button",disabled:t.disabled||t.internalCurrentPage===t.internalPageCount||0===t.internalPageCount},on:{click:t.next}},[t.nextText?e("span",[t._v(t._s(t.nextText))]):e("i",{staticClass:"ui-icon-arrow-right"})]),t.layout.includes("total")&&"number"==typeof t.total?e("span",{staticClass:"ui-pagination__total"},[t._v("\n "+t._s(t.t("components.pagination.total",{total:t.total})||"共 "+t.total+" 条")+"\n ")]):t._e(),t.layout.includes("jumper")?e("span",{staticClass:"ui-pagination__jump"},[t._v("\n "+t._s(t.t("components.pagination.goto")||"前往")+"\n "),e("input",{staticClass:"ui-pagination__editor",attrs:{type:"number",disabled:t.disabled,min:"1",max:t.internalPageCount},domProps:{value:null!==t.userInput?t.userInput:t.internalCurrentPage},on:{input:function(e){return t.handleInput(e.target.value)},change:function(e){return t.handleChange(e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleChange(e.target.value)}}}),t._v("\n "+t._s(t.t("components.pagination.pageClassifier")||"页")+"\n ")]):t._e()])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiPopconfirm",props:{title:{type:String,default:""},confirmButtonText:{type:String,default:"确定"},cancelButtonText:{type:String,default:"取消"},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},trigger:{type:String,default:"click",validator:t=>["click","focus","hover"].indexOf(t)>-1},placement:{type:String,default:"top"},disabled:Boolean,showAfter:{type:Number,default:0}},data:()=>({visible:!1}),methods:{handleConfirm(){this.$emit("confirm"),this.visible=!1},handleCancel(){this.$emit("cancel"),this.visible=!1}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("ui-tooltip",{attrs:{trigger:t.trigger,placement:t.placement,"show-arrow":!1},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("div",{staticClass:"ui-popconfirm",attrs:{slot:"content"},slot:"content"},[e("div",{staticClass:"ui-popconfirm__title"},[t._v(t._s(t.title))]),e("div",{staticClass:"ui-popconfirm__actions"},[e("ui-button",{attrs:{size:"mini",type:t.cancelButtonType},on:{click:t.handleCancel}},[t._v("\n "+t._s(t.cancelButtonText)+"\n ")]),e("ui-button",{attrs:{size:"mini",type:t.confirmButtonType},on:{click:t.handleConfirm}},[t._v("\n "+t._s(t.confirmButtonText)+"\n ")])],1)]),t._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiRate",props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Array,default:()=>["#F7BA2A","#F7BA2A","#F7BA2A"]},disabledVoidColor:{type:String,default:"#C6D1DE"},voidColor:{type:String,default:"#C6D1DE"},disabled:Boolean,allowHalf:Boolean,showScore:Boolean,scoreTemplate:{type:String,default:"{value}"}},data(){return{currentValue:this.value,hoverIndex:-1}},watch:{value(t){this.currentValue=t},currentValue(t){this.$emit("input",t)}},methods:{rateClass(t){return t<=(-1!==this.hoverIndex?this.hoverIndex:this.currentValue)?"icon-star":"icon-star-outline"},rateStyle(t){const e=-1!==this.hoverIndex?this.hoverIndex:this.currentValue;if(t>e)return{color:this.disabled?this.disabledVoidColor:this.voidColor};let i=0;return i=e<=this.lowThreshold?0:e>=this.highThreshold?2:1,{color:this.colors[i]}},handleMouseMove(t,e){if(this.disabled)return;const i=e.target.getBoundingClientRect(),n=i.width/2,r=e.clientX-i.left;let o=t;this.allowHalf&&r<n&&(o=t-.5),this.hoverIndex=o},handleClick(t){if(this.disabled)return;const e=-1!==this.hoverIndex?this.hoverIndex:t;this.currentValue=e,this.$emit("change",e)},resetCurrentValue(){this.disabled||(this.hoverIndex=-1)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-rate",class:{"ui-rate--disabled":t.disabled},on:{mouseleave:t.resetCurrentValue}},t._l(t.max,(function(i){return e("span",{key:i,staticClass:"ui-rate__item",on:{mousemove:function(e){return t.handleMouseMove(i,e)},click:function(e){return t.handleClick(i)}}},[e("i",{class:["ui-rate__icon",t.rateClass(i)],style:t.rateStyle(i)})])})),0)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiResult",props:{status:{type:String,default:"success",validator:t=>-1!==["success","error","warning","info"].indexOf(t)},title:{type:String,default:""},subTitle:{type:String,default:""}},computed:{iconClass(){return{success:"icon-success",error:"icon-error",warning:"icon-warning",info:"icon-info"}[this.status]||"icon-success"}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-result"},[e("div",{staticClass:"ui-result__icon"},[t._t("icon",(function(){return[e("i",{class:t.iconClass})]}))],2),e("div",{staticClass:"ui-result__title"},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t.subTitle||t.$slots.subTitle?e("div",{staticClass:"ui-result__sub-title"},[t._t("subTitle",(function(){return[t._v(t._s(t.subTitle))]}))],2):t._e(),t.$slots.extra?e("div",{staticClass:"ui-result__extra"},[t._t("extra")],2):t._e()])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiRow",componentName:"UiRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start",validator:t=>["start","end","center","space-around","space-between","space-evenly"].includes(t)},align:{type:String,validator:t=>["top","middle","bottom"].includes(t)}},computed:{style(){const t={};return this.gutter&&(t.marginLeft=`-${this.gutter/2}px`,t.marginRight=t.marginLeft),t}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)(this.tag,{tag:"component",staticClass:"ui-row",class:["flex"===this.type?"ui-row--flex":"","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:""],style:this.style},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler(t){this.throttle<=0?this.uiLoading=t:t?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout(()=>{this.uiLoading=this.loading},this.throttle)):this.uiLoading=t},immediate:!0}},data(){return{uiLoading:this.throttle<=0&&this.loading}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",[t.uiLoading?[e("div",t._b({class:["ui-skeleton",t.animated?"is-animated":""]},"div",t.$attrs,!1),[t._l(t.count,(function(i){return[t.loading?t._t("template",(function(){return t._l(t.rows,(function(n){return e("ui-skeleton-item",{key:`${i}-${n}`,class:{"ui-skeleton__paragraph":1!==n,"is-first":1===n,"is-last":n===t.rows&&t.rows>1},attrs:{variant:"p"}})}))})):t._e()]}))],2)]:[t._t("default",null,null,t.$attrs)]],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiSlider",props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},disabled:Boolean,showInput:Boolean,showInputControls:{type:Boolean,default:!0},showStops:Boolean,showTooltip:Boolean,range:Boolean,vertical:Boolean,height:String,size:String},data(){return{currentValue:this.value,dragging:!1,sliderSize:4}},computed:{stops(){const t=(this.max-this.min)/this.step,e=[];for(let i=1;i<t;i++)e.push(this.min+i*this.step);return e},barStyle(){const t=this.formatPercentage(this.currentValue);return this.vertical?{height:t+"%"}:{width:t+"%"}},buttonStyle(){const t=this.formatPercentage(this.currentValue);return this.vertical?{bottom:t+"%",transform:"translateY(50%)"}:{left:t+"%",transform:"translateX(-50%)"}},stopsStyle(){return this.vertical?{height:"100%"}:{width:"100%"}}},watch:{value(t){this.currentValue=t},currentValue(t){this.$emit("input",t)}},methods:{formatPercentage(t){return(t-this.min)/(this.max-this.min)*100},getStopStyle(t){const e=this.formatPercentage(t);return this.vertical?{bottom:e+"%",transform:"translateY(50%)"}:{left:e+"%",transform:"translateX(-50%)"}},onButtonDown(t){if(this.disabled)return;t.preventDefault(),this.dragging=!0;const e=t=>{this.onDrag(t)},i=()=>{this.dragging=!1,document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)},onDrag(t){const e=this.$el.querySelector(".ui-slider__runway").getBoundingClientRect();let i;i=this.vertical?(e.bottom-t.clientY)/e.height*100:(t.clientX-e.left)/e.width*100,i=Math.max(0,Math.min(100,i));const n=this.min+i/100*(this.max-this.min),r=this.step*Math.round(n/this.step);this.currentValue=Math.max(this.min,Math.min(this.max,r))},onSliderClick(t){this.disabled||this.onDrag(t)}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-slider",class:[t.size?"ui-slider--"+t.size:"",{"ui-slider--disabled":t.disabled}],on:{click:function(e){return e.target!==e.currentTarget?null:t.onSliderClick.apply(null,arguments)}}},[e("div",{staticClass:"ui-slider__runway",style:{height:t.vertical?t.sliderSize+"px":""}},[e("div",{staticClass:"ui-slider__bar",style:t.barStyle}),t.showStops?e("div",{staticClass:"ui-slider__stops",style:t.stopsStyle},t._l(t.stops,(function(i,n){return e("div",{key:n,staticClass:"ui-slider__stop",style:t.getStopStyle(i)})})),0):t._e(),e("div",{ref:"button",staticClass:"ui-slider__button-wrapper",style:t.buttonStyle,on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[e("div",{staticClass:"ui-slider__button"}),t.showTooltip?e("div",{staticClass:"ui-slider__popover"},[t._v(t._s(t.currentValue))]):t._e()])]),t.showInput&&!t.range?e("div",{staticClass:"ui-slider__input"},[e("ui-input-number",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})],1):t._e()])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},r=i(1),o=Object(r.a)(n,(function(){var t=this._self._c;return t("span",{staticClass:"ui-spinner"},[t("svg",{staticClass:"ui-spinner-inner",style:{width:this.radius/2+"px",height:this.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:this.strokeColor,"stroke-width":this.strokeWidth}})])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiStatistic",props:{decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:null},value:{type:[String,Number],default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},title:{type:String,default:""},valueStyle:{type:Object,default:function(){return{}}}},data:()=>({disposeValue:""}),watch:{value(){this.dispose()},groupSeparator(){this.dispose()}},created(){this.dispose()},methods:{magnification(t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",";const i=String(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3).length;return t.replace(new RegExp(`(\\d)(?=(\\d{${i-1}})+$)`,"g"),"$1"+e)},dispose(){let{value:t,groupSeparator:e}=this;if("number"!=typeof t)return;null!==this.precision&&(t=t.toFixed(this.precision));let[i,n]=String(t).split(".");e&&(i=this.magnification(i,1e3,e));let r=`${i}${n?this.decimalSeparator+n:""}`;return this.disposeValue=r,r}}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-statistic"},[t.title||t.$slots.title?e("div",{staticClass:"ui-statistic__head"},[t._t("title",(function(){return[e("span",{staticClass:"ui-statistic__title"},[t._v(t._s(t.title))])]}))],2):t._e(),e("div",{staticClass:"ui-statistic__content"},[t.prefix||t.$slots.prefix?e("span",{staticClass:"ui-statistic__prefix"},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]}))],2):t._e(),e("span",{staticClass:"ui-statistic__number",style:t.valueStyle},[t._v(t._s(t.disposeValue))]),t.suffix||t.$slots.suffix?e("span",{staticClass:"ui-statistic__suffix"},[t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2):t._e()])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiStep",props:{title:String,icon:String,description:String,status:{type:String,validator:t=>["finish","success","error","process","wait"].includes(t)}},data:()=>({index:-1,lineStyle:{},internalStatus:""}),beforeCreate(){this.$parent.steps.push(this)},beforeDestroy(){const t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus(){return this.status||this.internalStatus},prevStatus(){const t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter(){return this.$parent.alignCenter},isVertical(){return"vertical"===this.$parent.direction},isSimple(){return this.$parent.simple},isLast(){const t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount(){return this.$parent.steps.length},space(){const{isSimple:t,$parent:{space:e}}=this;return t?"":e},style(){const t={},e=this.$parent.steps.length,i="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=i,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},methods:{updateStatus(t){t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait"},calcProgress(t){let e=100;const i={};i.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,i.transitionDelay=-150*this.index+"ms"),i.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?i.height=e+"%":i.width=e+"%",this.lineStyle=i}},mounted(){const t=this.$watch("index",e=>{this.$watch("$parent.active",this.updateStatus,{immediate:!0}),this.$watch("$parent.processStatus",()=>{const t=this.$parent.active;this.updateStatus(t)},{immediate:!0}),t()})}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},[e("div",{staticClass:"ui-step__head",class:"is-"+t.currentStatus},[e("div",{staticClass:"ui-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[e("i",{staticClass:"ui-step__line-inner",style:t.lineStyle})]),e("div",{staticClass:"ui-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",(function(){return[t.icon?e("i",{staticClass:"ui-step__icon-inner",class:[t.icon]}):t._e(),t.icon||t.isSimple?t._e():e("div",{staticClass:"ui-step__icon-inner"},[t._v(t._s(t.index+1))])]})):e("i",{staticClass:"ui-step__icon-inner is-status",class:["icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),e("div",{staticClass:"ui-step__main"},[e("div",{ref:"title",staticClass:"ui-step__title",class:["is-"+t.currentStatus]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t.isSimple?e("div",{staticClass:"ui-step__arrow"}):e("div",{staticClass:"ui-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiSteps",props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish",validator:t=>["finish","success","error","process","wait"].includes(t)},processStatus:{type:String,default:"process",validator:t=>["finish","success","error","process","wait"].includes(t)}},data:()=>({steps:[],stepOffset:0}),watch:{active(t,e){this.$emit("change",t,e)},steps(t){t.forEach((t,e)=>{t.index=e})}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("div",{staticClass:"ui-steps",class:[!this.simple&&"ui-steps--"+this.direction,this.simple&&"ui-steps--simple"]},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiSubmenu",componentName:"UiSubmenu",inject:["rootMenu"],props:{index:{type:String,required:!0},disabled:Boolean},data:()=>({isOpened:!1}),computed:{parentMenu(){let t=this.$parent;for(;"UiMenu"!==t.$options.name&&"UiSubmenu"!==t.$options.name;)t=t.$parent;return t}},methods:{handleClick(){this.disabled||(this.isOpened=!this.isOpened,this.isOpened?this.rootMenu.openMenu(this.index,this.indexPath):this.rootMenu.closeMenu(this.index))}},created(){this.rootMenu.addSubmenu(this)},beforeDestroy(){this.rootMenu.removeSubmenu(this)}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("li",{staticClass:"ui-submenu",class:{"is-opened":t.isOpened},attrs:{role:"menuitem"}},[e("div",{staticClass:"ui-submenu__title",on:{click:t.handleClick}},[t.icon?e("i",{staticClass:"ui-submenu__icon",class:t.icon}):t._e(),t._t("title"),e("i",{staticClass:"ui-submenu__arrow icon-arrow-down",class:{"is-active":t.isOpened}})],2),e("transition",{attrs:{name:"ui-menu-collapse"}},[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.isOpened,expression:"isOpened"}],staticClass:"ui-menu ui-menu--inline"},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(3),r=i(9),o=i(2),a={name:"UiSwitch",props:{value:{type:[Boolean,String,Number],default:!1},disabled:Boolean,size:String,activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeText:String,inactiveText:String,activeIcon:String,inactiveIcon:String,activeColor:String,inactiveColor:String,id:String,name:{type:String,default:""}},computed:{checked(){return this.value===this.activeValue},coreProp(){return{backgroundColor:this.checked?this.getColor(this.activeColor):this.getColor(this.inactiveColor),borderColor:this.checked?this.getColor(this.activeColor):this.getColor(this.inactiveColor)}},activeColorProp(){return{color:this.getColor(this.activeColor)}},inactiveColorProp(){return{color:this.getColor(this.inactiveColor)}}},watch:{value(t){this.$emit("change",t)}},methods:{switchValue(){if(this.disabled)return;const t=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",t),this.$emit("change",t)},handleChange(t){this.$emit("change",t.target.checked?this.activeValue:this.inactiveValue)},getColor(t){let e="undefined"!=typeof document?Object(n.b)(document.documentElement,t):"";return e?`var(--${Object(o.l)(t)})`:Object(r.a)(e)}}},s=i(1),l=Object(s.a)(a,(function(){var t=this,e=t._self._c;return e("div",{class:["ui-switch","ui-switch--"+t.size,t.disabled?"is-disabled":"",t.checked?"is-checked":""],attrs:{role:"switch","aria-checked":t.checked,"aria-disabled":t.disabled},on:{click:function(e){return e.preventDefault(),t.switchValue.apply(null,arguments)}}},[e("input",{ref:"input",staticClass:"ui-switch__input",attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:t.checked}}),t.inactiveIcon||t.inactiveText?e("span",{class:["ui-switch__label","ui-switch__label--left",t.checked?"":"is-active"]},[t.inactiveIcon?e("i",{class:[t.inactiveIcon],style:t.inactiveColorProp}):t._e(),!t.inactiveIcon&&t.inactiveText?e("span",{style:t.inactiveColorProp},[t._v(t._s(t.inactiveText))]):t._e()]):t._e(),e("span",{ref:"core",staticClass:"ui-switch__core",style:t.coreProp}),t.activeIcon||t.activeText?e("span",{class:["ui-switch__label","ui-switch__label--right",t.checked?"is-active":""]},[t.activeIcon?e("i",{class:[t.activeIcon],style:t.activeColorProp}):t._e(),!t.activeIcon&&t.activeText?e("span",{style:t.activeColorProp},[t._v(t._s(t.activeText))]):t._e()]):t._e()])}),[],!1,null,"fa6cc818",null).exports;l.install=function(t){t.component(l.name,l)};e.default=l},function(t,e,i){"use strict";i.r(e);var n={name:"UiTabPane",componentName:"UiTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},inject:["rootTabs"],data:()=>({index:null,loaded:!1}),computed:{isClosable(){return this.closable||this.rootTabs&&this.rootTabs.closable},active(){const t=(this.rootTabs&&this.rootTabs.currentName)===(this.name||this.index);return t&&(this.loaded=!0),t},paneName(){return this.name||this.index}},watch:{label(){this.rootTabs&&this.rootTabs.calcPaneInstances()}},mounted(){this.rootTabs&&this.rootTabs.calcPaneInstances()},beforeDestroy(){this.rootTabs&&this.rootTabs.calcPaneInstances()}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return!t.lazy||t.loaded||t.active?e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"ui-tab-pane",attrs:{role:"tabpanel","aria-hidden":!t.active,id:"pane-"+t.paneName,"aria-labelledby":"tab-"+t.paneName}},[t._t("default")],2):t._e()}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiTabs",componentName:"UiTabs",props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide(){return{rootTabs:this}},data(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName(t){this.setCurrentName(t)},value(t){this.setCurrentName(t)}},methods:{calcPaneInstances(){if(this.$slots.default){const t=this.$slots.default.filter(t=>t.tag&&t.componentOptions&&"UiTabPane"===t.componentOptions.Ctor.options.name);this.panes=t.map(t=>{let{componentInstance:e}=t;return e})}else this.panes=[]},handleTabClick(t){t.disabled||(this.setCurrentName(t.name||t.index),this.$emit("tab-click",t))},handleTabRemove(t,e){t.disabled||(e.stopPropagation(),this.$emit("edit",t.name,"remove"),this.$emit("tab-remove",t.name))},handleTabAdd(){this.$emit("edit",null,"add"),this.$emit("tab-add")},handleKeydown(t,e){const i=t.keyCode;13!==i&&32!==i||this.handleTabClick(e)},setCurrentName(t){const e=()=>{this.currentName=t,this.$emit("input",t)};if(this.currentName!==t&&this.beforeLeave){const i=this.beforeLeave(t,this.currentName);i&&i.then?i.then(()=>{e()},()=>{}):!1!==i&&e()}else e()}},created(){this.currentName||this.setCurrentName("0")},mounted(){this.calcPaneInstances()},updated(){this.calcPaneInstances()}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-tabs",class:{"ui-tabs--card":"card"===t.type,["ui-tabs--"+t.tabPosition]:!0,"ui-tabs--border-card":"border-card"===t.type}},[e("div",{staticClass:"ui-tabs__header",class:"is-"+t.tabPosition},[e("div",{staticClass:"ui-tabs__nav-wrap",class:"is-"+t.tabPosition},[e("div",{staticClass:"ui-tabs__nav-scroll"},[e("div",{staticClass:"ui-tabs__nav",class:"is-"+t.tabPosition,attrs:{role:"tablist"}},t._l(t.panes,(function(i,n){return e("div",{key:i.paneName,staticClass:"ui-tabs__item",class:{"is-active":i.paneName===t.currentName,"is-disabled":i.disabled,"is-closable":i.isClosable||t.editable},attrs:{id:"tab-"+i.paneName,"aria-controls":"pane-"+i.paneName,role:"tab","aria-selected":i.paneName===t.currentName,tabindex:i.paneName===t.currentName?0:-1},on:{click:function(e){return t.handleTabClick(i)},keydown:function(e){return t.handleKeydown(e,i)}}},[i.$slots.label?t._t("label",null,{pane:i}):e("span",[t._v(t._s(i.label))]),i.isClosable||t.editable?e("span",{staticClass:"ui-tabs__close",on:{click:function(e){return e.stopPropagation(),t.handleTabRemove(i,e)}}},[e("i",{staticClass:"icon-close"})]):t._e()],2)})),0)])]),t.editable||t.addable?e("span",{staticClass:"ui-tabs__new-tab",attrs:{tabindex:"0"},on:{click:t.handleTabAdd,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleTabAdd.apply(null,arguments)}}},[e("i",{staticClass:"icon-plus"})]):t._e()]),e("div",{staticClass:"ui-tabs__content"},[t._t("default")],2)])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom",validator:t=>["top","bottom"].includes(t)},type:{type:String,validator:t=>["primary","success","warning","danger","info"].includes(t)},color:String,size:{type:String,default:"normal",validator:t=>["normal","large"].includes(t)},icon:String}},r=i(1),o=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("li",{staticClass:"ui-timeline-item"},[e("div",{staticClass:"ui-timeline-item__tail"}),t.$slots.dot?t._e():e("div",{staticClass:"ui-timeline-item__node",class:["ui-timeline-item__node--"+(t.size||""),"ui-timeline-item__node--"+(t.type||"")],style:{backgroundColor:t.color}},[t.icon?e("i",{staticClass:"ui-timeline-item__icon",class:t.icon}):t._e()]),t.$slots.dot?e("div",{staticClass:"ui-timeline-item__dot"},[t._t("dot")],2):t._e(),e("div",{staticClass:"ui-timeline-item__wrapper"},[t.hideTimestamp||"top"!==t.placement?t._e():e("div",{staticClass:"ui-timeline-item__timestamp is-top"},[t._v("\n "+t._s(t.timestamp)+"\n ")]),e("div",{staticClass:"ui-timeline-item__content"},[t._t("default")],2),t.hideTimestamp||"bottom"!==t.placement?t._e():e("div",{staticClass:"ui-timeline-item__timestamp is-bottom"},[t._v("\n "+t._s(t.timestamp)+"\n ")])])])}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n={name:"UiTimeline",props:{reverse:{type:Boolean,default:!1}},provide(){return{timeline:this}}},r=i(1),o=Object(r.a)(n,(function(){return(0,this._self._c)("ul",{staticClass:"ui-timeline",class:{"is-reverse":this.reverse}},[this._t("default")],2)}),[],!1,null,null,null).exports;o.install=function(t){t.component(o.name,o)};e.default=o},function(t,e,i){"use strict";i.r(e);var n=i(37),r={name:"UiUpload",mixins:[i(10).a],components:{UiProgress:n.default},props:{action:{type:String,required:!0},headers:{type:Object,default:()=>({})},multiple:Boolean,data:Object,name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:Boolean,accept:String,fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text",validator:t=>["text","picture","picture-card"].indexOf(t)>-1},disabled:Boolean,limit:Number,onExceed:Function,beforeUpload:Function,onRemove:Function,onChange:Function,onSuccess:Function,onError:Function,onProgress:Function,onPreview:Function,beforeRemove:Function,httpRequest:Function},data:()=>({dragover:!1,uploadFiles:[]}),watch:{fileList:{immediate:!0,handler(t){this.uploadFiles=t.map(t=>(t.uid||(t.uid=Date.now()+Math.random()),t.status||(t.status="success"),t))}}},methods:{parsePercentage:t=>parseInt(t,10),handleClick(){this.disabled||this.$refs.input.click()},handlePreview(t){this.onPreview&&this.onPreview(t)},handleChange(t){const e=t.target.files;e&&(this.uploadFilesHandle(Array.from(e)),t.target.value="")},async uploadFilesHandle(t){if(this.limit&&this.uploadFiles.length+t.length>this.limit)this.onExceed&&this.onExceed(t,this.uploadFiles);else for(const e of t){const t=e;if(this.beforeUpload){const e=this.beforeUpload(t);if(!1===e||e instanceof Promise&&!1===await e.catch(()=>!1))continue}const i={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:Date.now()+Math.random(),url:"text"!==this.listType?URL.createObjectURL(t):""};this.uploadFiles.push(i),this.$emit("change",i,this.uploadFiles),this.autoUpload&&this.post(i)}},post(t){if(this.httpRequest)return void this.httpRequest({headers:this.headers,withCredentials:this.withCredentials,file:t.raw,data:this.data,filename:this.name,action:this.action,onProgress:e=>this.handleProgress(e,t),onSuccess:e=>this.handleSuccess(e,t),onError:e=>this.handleError(e,t)});const e=new FormData;this.data&&Object.keys(this.data).forEach(t=>{e.append(t,this.data[t])}),e.append(this.name,t.raw,t.name);const i=new XMLHttpRequest;i.open("POST",this.action,!0),this.withCredentials&&(i.withCredentials=!0),Object.keys(this.headers||{}).forEach(t=>{i.setRequestHeader(t,this.headers[t])}),i.upload.onprogress=e=>{this.handleProgress(e,t)},i.onload=()=>{i.status<200||i.status>=300?this.handleError(i.response,t):this.handleSuccess(i.response,t)},i.onerror=e=>{this.handleError(e,t)},i.send(e),t.status="uploading",t.xhr=i},handleProgress(t,e){t.total>0&&(e.percentage=t.loaded/t.total*100|0),e.status="uploading",this.onProgress&&this.onProgress(t,e,this.uploadFiles)},handleSuccess(t,e){e.status="success",e.response=t,this.onSuccess&&this.onSuccess(t,e,this.uploadFiles),this.$emit("success",t,e,this.uploadFiles),this.$emit("change",e,this.uploadFiles)},handleError(t,e){e.status="fail",this.onError&&this.onError(t,e,this.uploadFiles),this.$emit("error",t,e,this.uploadFiles),this.$emit("change",e,this.uploadFiles)},async handleRemove(t){if(this.beforeRemove){const e=this.beforeRemove(t,this.uploadFiles);if(!1===e||e instanceof Promise&&!1===await e.catch(()=>!1))return}const e=this.uploadFiles.findIndex(e=>e.uid===t.uid);if(e>-1){const t=this.uploadFiles.splice(e,1)[0];t.xhr&&t.xhr.abort(),t.url&&t.url.startsWith("blob:")&&URL.revokeObjectURL(t.url),this.onRemove&&this.onRemove(t,this.uploadFiles),this.$emit("remove",t,this.uploadFiles),this.$emit("change",null,this.uploadFiles)}},handleDragover(){this.disabled||(this.dragover=!0)},handleDrop(t){if(this.disabled)return;this.dragover=!1;const e=t.dataTransfer.files;e&&this.uploadFilesHandle(Array.from(e))},submit(){this.uploadFiles.filter(t=>"ready"===t.status).forEach(t=>{this.post(t)})},clearFiles(){this.uploadFiles.forEach(t=>{t.url&&t.url.startsWith("blob:")&&URL.revokeObjectURL(t.url)}),this.uploadFiles=[]},abort(t){const e=t?this.uploadFiles.find(e=>e.uid===t.uid):null;e&&e.xhr?e.xhr.abort():t||this.uploadFiles.forEach(t=>t.xhr&&t.xhr.abort())}}},o=i(1),a=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ui-upload-wrapper"},[t.showFileList&&"picture-card"===t.listType?e("transition-group",{staticClass:"ui-upload-list ui-upload-list--picture-card",attrs:{tag:"ul",name:"ui-list"}},t._l(t.uploadFiles,(function(i){return e("li",{key:i.uid,staticClass:"ui-upload-list__item",class:["is-"+i.status]},[i.url?e("img",{staticClass:"ui-upload-list__item-thumbnail",attrs:{src:i.url,alt:""}}):t._e(),e("span",{staticClass:"ui-upload-list__item-actions"},[e("span",{staticClass:"ui-upload-list__item-preview",on:{click:function(e){return e.stopPropagation(),t.handlePreview(i)}}},[e("i",{staticClass:"ui-icon-zoom-in"})]),t.disabled?t._e():e("span",{staticClass:"ui-upload-list__item-delete",on:{click:function(e){return e.stopPropagation(),t.handleRemove(i)}}},[e("i",{staticClass:"ui-icon-delete"})])]),"uploading"===i.status?e("ui-progress",{attrs:{type:"circle","stroke-width":6,width:70,percentage:t.parsePercentage(i.percentage)}}):t._e()],1)})),0):t._e(),"picture-card"===t.listType?e("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.uploadFiles.length<(t.limit||1/0),expression:"!disabled && uploadFiles.length < (limit || Infinity)"}],staticClass:"ui-upload ui-upload--picture-card",on:{click:t.handleClick}},[t._t("default",(function(){return[e("i",{staticClass:"ui-icon-plus"})]}))],2):e("div",{staticClass:"ui-upload",class:["ui-upload--"+t.listType,{"is-drag":t.drag}],on:{click:t.handleClick,dragover:function(e){return e.preventDefault(),t.handleDragover.apply(null,arguments)},dragleave:function(e){e.preventDefault(),t.dragover=!1},drop:function(e){return e.preventDefault(),t.handleDrop.apply(null,arguments)}}},[t.drag?e("div",{staticClass:"ui-upload-dragger",class:{"is-dragover":t.dragover,"is-disabled":t.disabled}},[t._t("default",(function(){return[e("i",{staticClass:"ui-icon-upload"}),e("div",{staticClass:"ui-upload__text"},[t._v("\n "+t._s(t.t("components.upload.dragText")||"将文件拖到此处,或")),e("em",[t._v(t._s(t.t("components.upload.clickText")||"点击上传"))])])]}))],2):t._t("default")],2),t.$slots.tip?e("div",{staticClass:"ui-upload__tip"},[t._t("tip")],2):t._e(),e("input",{ref:"input",staticClass:"ui-upload__input",attrs:{type:"file",accept:t.accept,multiple:t.multiple,disabled:t.disabled},on:{change:t.handleChange}}),t.showFileList&&"picture-card"!==t.listType?e("transition-group",{class:["ui-upload-list","ui-upload-list--"+t.listType,{"is-disabled":t.disabled}],attrs:{tag:"ul",name:"ui-list"}},t._l(t.uploadFiles,(function(i){return e("li",{key:i.uid,class:["ui-upload-list__item","is-"+i.status]},[t._t("file",(function(){return["picture"===t.listType?e("img",{staticClass:"ui-upload-list__item-thumbnail",attrs:{src:i.url,alt:""}}):t._e(),e("a",{staticClass:"ui-upload-list__item-name",on:{click:function(e){return t.handlePreview(i)}}},[e("i",{staticClass:"ui-icon-document"}),t._v(t._s(i.name)+"\n ")]),e("label",{staticClass:"ui-upload-list__item-status-label"},[e("i",{class:{"ui-icon-upload-success":!0,"ui-icon-circle-check":"text"===t.listType,"ui-icon-check":"picture"===t.listType}})]),t.disabled?t._e():e("i",{staticClass:"ui-icon-close",on:{click:function(e){return t.handleRemove(i)}}}),"uploading"===i.status?e("ui-progress",{attrs:{"stroke-width":2,percentage:t.parsePercentage(i.percentage)}}):t._e()]}),{file:i})],2)})),0):t._e()],1)}),[],!1,null,null,null).exports;a.install=function(t){t.component(a.name,a)};e.default=a},function(t,e,i){"use strict";i.r(e);var n=i(5),r=i.n(n),o=i(32),a=i(3),s=i(2);var l={name:"UiTooltip",mixins:[o.a],props:{content:String,enterable:{type:Boolean,default:!0},disabled:Boolean,manual:Boolean,overflowCheck:{type:Boolean,default:!1},effect:{type:String,default:"dark"},popperClass:String,arrowOffset:{type:Number,default:0},openDelay:{type:Number,default:0},hideAfter:{type:Number,default:0},visibleArrow:{default:!0},transition:{type:String,default:"ui-fade-in-linear"},popperOptions:{default:()=>({boundariesPadding:10,gpuAcceleration:!1})},tabindex:{type:Number,default:0}},data:()=>({tooltipId:"ui-tooltip-"+Math.floor(1e4*Math.random()),timeoutPending:null,focusing:!1,onlyContent:!1}),computed:{textOverflowWrapperStyle:()=>({width:"100%",overflow:"hidden",textOverflow:"ellipsis"})},watch:{focusing(t){t?Object(a.a)(this.referenceElm,"focusing"):Object(a.h)(this.referenceElm,"focusing")}},beforeCreate(){this.$isServer||(this.popperVM=new r.a({data:{node:""},render(t){return this.node}}).$mount(),this.debounceClose=Object(s.a)(()=>this.handleClosePopper(),200))},mounted(){this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(a.g)(this.$el,"mouseenter",this.show),Object(a.g)(this.$el,"mouseleave",this.hide),Object(a.g)(this.$el,"focus",()=>{if(!this.$slots.default||!this.$slots.default.length)return void this.handleFocus();const t=this.$slots.default[0].componentInstance;t&&t.focus?t.focus():this.handleFocus()}),Object(a.g)(this.$el,"blur",this.handleBlur),Object(a.g)(this.$el,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick(()=>{this.value&&this.updatePopper()})},beforeDestroy(){this.popperVM&&this.popperVM.$destroy()},destroyed(){const t=this.referenceElm;1===t.nodeType&&(Object(a.f)(t,"mouseenter",this.show),Object(a.f)(t,"mouseleave",this.hide),Object(a.f)(t,"focus",this.handleFocus),Object(a.f)(t,"blur",this.handleBlur),Object(a.f)(t,"click",this.removeFocusing))},render(t){this.popperVM&&(this.popperVM.node=t("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[t("div",{on:{mouseleave:()=>{this.setExpectedState(!1),this.debounceClose()},mouseenter:()=>{this.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["ui-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));let e=this.getFirstElement();!e&&this.content?(this.onlyContent=!0,e=t("div",{class:"ui-tooltip__default"},[this.content])):this.onlyContent=!1;const i=e.data=e.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),e},methods:{show(){if(this.overflowCheck&&this.onlyContent){const t=Object(a.c)(this.referenceElm,"width");if(Number(t.replace("px",""))>Object(a.d)(this.content,Object(a.c)(this.referenceElm,"font")))return}this.setExpectedState(!0),this.handleShowPopper()},hide(){this.setExpectedState(!1),this.debounceClose()},handleFocus(){this.focusing=!0,this.show()},handleBlur(){this.focusing=!1,this.hide()},removeFocusing(){this.focusing=!1},addTooltipClass:t=>"ui-tooltip "+(t?t.replace("ui-tooltip",""):""),handleShowPopper(){this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.showPopper=!0},this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout(()=>{this.showPopper=!1},this.hideAfter)))},handleClosePopper(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState(t){!t&&clearTimeout(this.timeoutPending),this.expectedState=t},getFirstElement(){const t=this.$slots.default;if(!Array.isArray(t))return null;let e=null;for(let i=0;i<t.length;i++)if(t[i]&&t[i].tag){e=t[i];break}return e}},install:function(t){t.component(l.name,l)}};e.default=l},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".vue-grid-item[data-v-04395e2a]{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch[data-v-04395e2a]{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms[data-v-04395e2a]{left:0;right:auto;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;transition-property:transform,-webkit-transform}.vue-grid-item.cssTransforms.render-rtl[data-v-04395e2a]{left:auto;right:0}.vue-grid-item.resizing[data-v-04395e2a]{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging[data-v-04395e2a]{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder[data-v-04395e2a]{opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2}.vue-grid-item.disable-userselect[data-v-04395e2a],.vue-grid-item.vue-grid-placeholder[data-v-04395e2a]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle[data-v-04395e2a]{bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize;height:20px;padding:0 3px 3px 0;position:absolute;right:0;width:20px}.vue-grid-item>.vue-resizable-handle>svg[data-v-04395e2a]{bottom:10%;fill:var(--primary-blue);position:absolute;right:10%}","",{version:3,sources:["webpack://src/packages/auto-grid-layout/src/components/GridItem.vue"],names:[],mappings:"AACA,gCACE,+BAAA,CAAA,uBAAA,CACA,0CAAA,CAAA,kCAAA,CACA,yCACE,qBAAA,CACA,iBAAA,CAEF,8CAEE,MAAA,CACA,UAAA,CAFA,6CAAA,CAAA,qCAAA,CAAA,6BAAA,CAAA,gDAAA,CAAA,+CAEA,CACA,yDACE,SAAA,CACA,OAAA,CAGJ,yCACE,UAAA,CACA,SAAA,CAEF,uDACE,uBAAA,CAAA,eAAA,CACA,SAAA,CAEF,qDACE,UAAA,CACA,+BAAA,CAAA,uBAAA,CACA,SACA,CAEF,wGAFE,wBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,gBAGA,CAEF,sDAIE,QAAA,CAGA,6BAAA,CAAA,qBAAA,CACA,gBAAA,CALA,WAAA,CAGA,mBAAA,CALA,iBAAA,CAIA,OAAA,CAHA,UAMA,CACA,0DAGE,UAAA,CACA,wBAAA,CAHA,iBAAA,CACA,SAEA",sourcesContent:["\r\n.vue-grid-item {\r\n transition: all .2s ease;\r\n transition-property: left, top, right;\r\n &.no-touch {\r\n -ms-touch-action: none;\r\n touch-action: none;\r\n }\r\n &.cssTransforms {\r\n transition-property: transform;\r\n left: 0;\r\n right: auto;\r\n &.render-rtl {\r\n left: auto;\r\n right: 0;\r\n }\r\n }\r\n &.resizing {\r\n opacity: 0.6;\r\n z-index: 3;\r\n }\r\n &.vue-draggable-dragging {\r\n transition: none;\r\n z-index: 3;\r\n }\r\n &.vue-grid-placeholder {\r\n opacity: 0.2;\r\n transition-duration: 100ms;\r\n z-index: 2;\r\n user-select: none;\r\n }\r\n &.disable-userselect {\r\n user-select: none;\r\n }\r\n > .vue-resizable-handle {\r\n position: absolute;\r\n width: 20px;\r\n height: 20px;\r\n bottom: 0;\r\n right: 0;\r\n padding: 0 3px 3px 0;\r\n box-sizing: border-box;\r\n cursor: se-resize;\r\n > svg {\r\n position: absolute;\r\n right: 10%;\r\n bottom: 10%;\r\n fill: var(--primary-blue);\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".vue-grid-layout[data-v-6cc0c585]{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}","",{version:3,sources:["webpack://src/packages/auto-grid-layout/src/components/GridLayout.vue"],names:[],mappings:"AACA,kCACE,iBAAA,CACA,kCAAA,CAAA,0BAAA",sourcesContent:["\r\n.vue-grid-layout {\r\n position: relative;\r\n transition: height .2s ease;\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".misp-card[data-v-e1e90aec]{background-color:var(--base-bg);border-radius:8px}.misp-card.box-shadow[data-v-e1e90aec]{-webkit-box-shadow:var(--box-shadow-3);box-shadow:var(--box-shadow-3)}.misp-card.hover-up[data-v-e1e90aec]{-webkit-transition:-webkit-transform .2s ease-out;transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out, -webkit-transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out}.misp-card.hover-up[data-v-e1e90aec]:hover{-webkit-transform:translateY(-4px);transform:translateY(-4px)}.cursor-pointer[data-v-e1e90aec]{cursor:pointer}.misp-auto-grid[data-v-e1e90aec]{height:100%;position:relative;width:100%}.misp-auto-grid .container-mask[data-v-e1e90aec]{left:0;position:absolute;top:0;z-index:10}.misp-auto-grid[data-v-e1e90aec] .vue-grid-item{-webkit-transition:-webkit-transform .15s ease;transition:-webkit-transform .15s ease;transition:transform .15s ease;transition:transform .15s ease, -webkit-transform .15s ease;transition:transform .15s ease,-webkit-transform .15s ease}.misp-auto-grid .grid-item-wrapper[data-v-e1e90aec]{position:relative}.misp-auto-grid .grid-item-wrapper>.delete-wrapper[data-v-e1e90aec]{display:none;position:absolute;right:0;top:0}.misp-auto-grid .grid-item-wrapper:hover>.delete-wrapper[data-v-e1e90aec]{display:-webkit-box;display:-ms-flexbox;display:flex}","",{version:3,sources:["webpack://src/packages/auto-grid-layout/src/main.vue"],names:[],mappings:"AACA,4BAEE,+BAAA,CADA,iBACA,CACA,uCACE,sCAAA,CAAA,8BAAA,CAEF,qCACE,iDAAA,CAAA,yCAAA,CAAA,iCAAA,CAAA,iEAAA,CAAA,gEAAA,CACA,2CACE,kCAAA,CAAA,0BAAA,CAIN,iCACE,cAAA,CAEF,iCAEE,WAAA,CACA,iBAAA,CAFA,UAEA,CACA,iDAIE,MAAA,CAFA,iBAAA,CACA,KAAA,CAFA,UAGA,CAEF,gDACE,8CAAA,CAAA,sCAAA,CAAA,8BAAA,CAAA,2DAAA,CAAA,0DAAA,CAEF,oDACE,iBAAA,CACA,oEACE,YAAA,CACA,iBAAA,CAEA,OAAA,CADA,KACA,CAEF,0EACE,mBAAA,CAAA,mBAAA,CAAA,YAAA",sourcesContent:["\r\n.misp-card {\r\n border-radius: 8px;\r\n background-color: var(--base-bg);\r\n &.box-shadow {\r\n box-shadow: var(--box-shadow-3);\r\n }\r\n &.hover-up {\r\n transition: transform 0.2s ease-out;\r\n &:hover {\r\n transform: translateY(-4px);\r\n }\r\n }\r\n}\r\n.cursor-pointer {\r\n cursor: pointer;\r\n}\r\n.misp-auto-grid {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n .container-mask {\r\n z-index: 10;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n }\r\n ::v-deep .vue-grid-item {\r\n transition: transform .15s ease;\r\n }\r\n .grid-item-wrapper {\r\n position: relative;\r\n > .delete-wrapper {\r\n display: none;\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n }\r\n &:hover > .delete-wrapper {\r\n display: flex;\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".ui-icon{color:var(--sd-text);display:inline-block;line-height:1;-webkit-transition:color .3s;transition:color .3s;vertical-align:baseline}","",{version:3,sources:["webpack://src/packages/icon/src/main.vue"],names:[],mappings:"AACA,SAIE,oBAAA,CAHA,oBAAA,CACA,aAAA,CAGA,4BAAA,CAAA,oBAAA,CAFA,uBAEA",sourcesContent:["\r\n.ui-icon {\r\n display: inline-block;\r\n line-height: 1;\r\n vertical-align: baseline;\r\n color: var(--sd-text);\r\n transition: color 0.3s;\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".ui-status-timeline-chart[data-v-085579d8]{position:relative}.ui-status-timeline-chart[data-v-085579d8],.ui-status-timeline-chart__empty[data-v-085579d8],.ui-status-timeline-chart__inner[data-v-085579d8]{height:100%;min-height:280px;width:100%}.ui-status-timeline-chart__empty[data-v-085579d8]{left:0;position:absolute;top:0}.fade-enter-active[data-v-085579d8],.fade-leave-active[data-v-085579d8]{-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.fade-enter[data-v-085579d8],.fade-leave-to[data-v-085579d8]{opacity:0}","",{version:3,sources:["webpack://src/packages/status-timeline-chart/src/main.vue"],names:[],mappings:"AACA,2CAIE,iBAAA,CAOF,+IATE,WAAA,CACA,gBAAA,CAFA,UAgBA,CANF,kDAKE,MAAA,CADA,iBAAA,CAEA,KAAA,CAEF,wEAEE,mCAAA,CAAA,2BAAA,CAEF,6DAEE,SAAA",sourcesContent:["\r\n.ui-status-timeline-chart {\r\n width: 100%;\r\n height: 100%;\r\n min-height: 280px;\r\n position: relative;\r\n}\r\n.ui-status-timeline-chart__inner {\r\n width: 100%;\r\n height: 100%;\r\n min-height: 280px;\r\n}\r\n.ui-status-timeline-chart__empty {\r\n width: 100%;\r\n height: 100%;\r\n min-height: 280px;\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n}\r\n.fade-enter-active,\r\n.fade-leave-active {\r\n transition: opacity 0.2s ease;\r\n}\r\n.fade-enter,\r\n.fade-leave-to {\r\n opacity: 0;\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".pagination-wrapper[data-v-44909ca4]{margin-top:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pagination-wrapper .pagination[data-v-44909ca4]{float:right}","",{version:3,sources:["webpack://src/packages/table/src/components/PagePagination.vue"],names:[],mappings:"AACA,qCACE,eAAA,CACA,wBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,gBAAA,CAEA,iDACE,WAAA",sourcesContent:["\r\n.pagination-wrapper {\r\n margin-top: 10px;\r\n user-select: none;\r\n\r\n .pagination {\r\n float: right;\r\n }\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";var n=i(16),r=i.n(n)()(!0);r.push([t.i,".ui-tabs-navigation[data-v-5482bdc0]{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;width:100%}","",{version:3,sources:["webpack://src/packages/tabs-navigation/src/main.vue"],names:[],mappings:"AACA,qCAEE,6BAAA,CAAA,qBAAA,CAEA,mBAAA,CAAA,mBAAA,CAAA,YAAA,CAHA,iBAAA,CAEA,UACA",sourcesContent:["\r\n.ui-tabs-navigation {\r\n position: relative;\r\n box-sizing: border-box;\r\n width: 100%;\r\n display: flex;\r\n}\r\n"],sourceRoot:""}]),e.a=r},function(t,e,i){"use strict";i.r(e);var n=i(14),r=i.n(n),o=(i(33),i(20)),a=i(24),s=i(35),l=i(28),u=i(34),c=i(22),h=i(2);const d={input:a.default,select:s.default,radio:l.RadioGroup,icon:u.default,button:c.default},p={select:{componentName:"UiOption"},radio:{componentName:"UiRadio"}},f=t=>t&&"function"==typeof t.then,g=["div","span","p","i","h1","h2","h3","h4","h5","h6","a","img","input","button","section","article","header","footer","nav","main","aside","ul","ol","li","table","tr","td","th","thead","tbody","form","label"],m=t=>"string"==typeof t&&g.includes(t.toLowerCase()),y=t=>Array.isArray(t)?t:[];var v={name:"UiFormField",components:{UiFormItem:o.a,UiFormField:()=>Promise.resolve().then(i.bind(null,118))},props:{fields:{type:Array,default:()=>[]}},inject:["uiForm"],data:()=>({resolvedOptionsMap:{},dynamicOptionsFields:{},dynamicOptionRegistrations:{},rowUidMap:{}}),computed:{modelValue(){var t;return(null===(t=this.uiForm)||void 0===t?void 0:t.model)||{}}},created(){this.initOptions()},watch:{fields:{handler(t){t&&this.initOptions()},deep:!0},modelValue:{handler(){this.refreshAllDynamicOptions()},deep:!0}},methods:{resolveAndStoreOptions(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||!e)return;const n=t.options,r="function"==typeof n,o=t=>this.$set(this.resolvedOptionsMap,e,y(t));r?this.$set(this.dynamicOptionsFields,e,{keyPrefix:e,fieldConfig:t}):this.dynamicOptionsFields[e]&&this.$delete(this.dynamicOptionsFields,e);try{if(f(n))return void this.handleAsyncOptions(n,e,o);if(Array.isArray(n))return void o(n);if(r){const t=n(i.rowData,i.modelValue);return void(f(t)?this.handleAsyncOptions(t,e,o):o(t))}o([])}catch(t){o([])}},getOrCreateUids(t,e){!this.rowUidMap[t]&&this.$set(this.rowUidMap,t,[]);const i=this.rowUidMap[t];if(i.length<e)for(let t=i.length;t<e;t++)i.push(Math.floor(Date.now()+1e3*Math.random()));return i.length>e&&i.splice(e),i},isVisible(t,e){return void 0===t.visible||null===t.visible||("function"==typeof t.visible?!!t.visible(e,this.modelValue):!!t.visible)},parseFieldsForOptions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&t.length&&t.forEach(t=>{if(t.options&&t.prop){const i=e?`${e}__${t.prop}`:t.prop;"function"==typeof t.options?this.$set(this.dynamicOptionRegistrations,i,{fieldConfig:t,keyPrefix:e}):this.resolveAndStoreOptions(t,i,{})}if(t.slots&&t.prop&&this.parseSlotsForOptions(t.slots,t.prop),t.children&&t.children.length){const i=t.prop?e?`${e}__${t.prop}`:t.prop:e;this.parseFieldsForOptions(t.children,i)}})},refreshAllDynamicOptions(){const t=this.modelValue;t&&0!==Object.keys(this.dynamicOptionRegistrations).length&&Object.keys(this.dynamicOptionRegistrations).forEach(e=>{const{fieldConfig:i,keyPrefix:n}=this.dynamicOptionRegistrations[e];let r=t;if(n){const e=n.replace(/__/g,".");r=Object(h.d)(t,e)||{}}this.resolveAndStoreOptions(i,e,{rowData:r,modelValue:t})})},initOptions(){this.dynamicOptionRegistrations={},this.parseFieldsForOptions(this.fields),this.refreshAllDynamicOptions()},parseSlotsForOptions(t,e){t&&e&&Object.keys(t).forEach(i=>{const n=t[i];(Array.isArray(n)?n:[n]).forEach((t,n)=>{this.parseSlotNodeForOptions(t,`${e}__slot__${i}__${n}`)})})},parseSlotNodeForOptions(t,e){t&&"object"==typeof t&&(t.options&&(this.resolveAndStoreOptions({options:t.options},e),Object.defineProperty(t,"__resolvedOptionsKey__",{value:e,enumerable:!1,writable:!1})),t.slots&&Object.keys(t.slots).forEach(i=>{const n=t.slots[i];(Array.isArray(n)?n:[n]).forEach((t,n)=>{this.parseSlotNodeForOptions(t,`${e}__subSlot__${i}__${n}`)})}),t.children&&Array.isArray(t.children)&&t.children.forEach((t,i)=>{this.parseSlotNodeForOptions(t,`${e}__child__${i}`)}))},handleAsyncOptions(t,e,i){t.then(t=>i(t)).catch(t=>{i([])})},getComponent:t=>t?"string"==typeof t&&d[t]||t:"UiInput",getOptionalConfig:t=>"string"==typeof t?p[t]:null,buildScopedSlots(t,e){if(!t)return{};const i={};return Object.keys(t).forEach(n=>{i[n]=()=>this.renderSlotContent(t[n],e)}),i},renderSlotContent(t,e){if(!t)return[];return(Array.isArray(t)?t:[t]).map(t=>this.renderConfigNode(t,e)).filter(Boolean)},renderOptionsAsVNodes(t,e){const i=this.$createElement;if(!t||!t.length)return[];const n=this.getComponent(e);return t.map((t,e)=>{const o="object"==typeof t&&null!==t?{...t}:{label:t,value:t};return i(n,r()([{key:e},{props:o}]))})},renderComplexField(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const a=this.$createElement,s=t.prop,l=i?`${i}.${s}`:s,u=n?`${n}__${s}`:s;let d=Object(h.d)(this.modelValue,l);Array.isArray(d)||(d=[],this.ensureArrayModel(l),d=Object(h.d)(this.modelValue,l));const p=this.getOrCreateUids(l,d.length),f=d.map((e,i)=>{const n=`${l}.${i}`,o=this.renderFieldItems(t.children,e,n,u,t.labelWidth),s=a(c.default,r()([{},{class:"ui-form-complex__delete-btn",props:{icon:"ui-icon-delete",type:"danger",textual:!0,plain:!0},on:{click:()=>{d.splice(i,1),p.splice(i,1),this.$set(this.rowUidMap,l,[...p])}}}])),h=p[i]||i;return a("div",r()([{},{class:"ui-form-complex--item",key:h}]),[a("div",r()([{},{class:"ui-form-complex--item__inner"}]),[o]),a("div",r()([{},{class:"ui-form-complex--item__delete"}]),[s])])}),g=a(c.default,r()([{},{class:"ui-form-complex__add-btn",props:{label:"新增",icon:"ui-icon-plus",type:"primary",textual:!0,plain:!0},on:{click:()=>{const e={};t.children&&t.children.forEach(t=>{e[t.prop]=(t=>t.multiple||Object(h.f)(t.children)&&!Object(h.g)(t.children)?[]:void 0)(t)}),d.push(e);const i=Math.floor(Date.now()+1e3*Math.random());p.push(i),this.$set(this.rowUidMap,l,[...p])}}}])),m=n?`complex-${n}-${e}`:`complex-${s}-${e}`;return a(o.a,r()([{},{class:"ui-form-complex--field",key:m,props:{label:t.label,prop:l,rules:t.rules,labelWidth:t.labelWidth,error:t.error,showMessage:t.showMessage}}]),[a("div",r()([{},{slot:"label",class:"ui-form-complex--field__add"}]),[a("div",r()([{},{class:"field-label"}]),[t.label]),a("div",[g])]),a("div",r()([{},{class:"ui-form-complex--field__inner"}]),[f])])},ensureArrayModel(t){const e=t.split(".");let i=this.modelValue;for(let t=0;t<e.length;t++){const n=e[t];t===e.length-1?void 0!==i[n]&&null!==i[n]||this.$set(i,n,[]):(void 0!==i[n]&&null!==i[n]||this.$set(i,n,{}),i=i[n])}},renderFieldItems(t,e,i,n,a){const s=this.$createElement;return t&&t.length?t.map((t,l)=>{if(!this.isVisible(t,e))return null;if(t.children&&t.children.length)return this.renderComplexField(t,l,i,n);const u=`${i}.${t.prop}`;if(t.options&&"function"==typeof t.options){const i=n?`${n}__${t.prop}`:t.prop;this.resolveAndStoreOptions(t,i,{rowData:e,modelValue:this.modelValue})}const c=this.itemRender(t,e,n);return c?s(o.a,r()([{},{key:u,props:{label:t.label,prop:u,rules:t.rules,showMessage:t.showMessage,labelWidth:t.labelWidth||a}}]),[c]):null}).filter(Boolean):[]},renderConfigNode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=this.$createElement;if(!t)return null;if("string"==typeof t)return t;if("object"==typeof t){const n=t.type||t.component,o=this.getComponent(n),a=m(o);if(o){const s={props:t.props||{},on:t.on||{},style:t.style||{},class:t.class||{}},l=[];if(t.text&&l.push(t.text),t.slots&&t.slots.default){const i=Array.isArray(t.slots.default)?t.slots.default:[t.slots.default];l.push(...i.map(t=>this.renderConfigNode(t,e)).filter(Boolean))}const u=this.getOptionalConfig(n);if(!!u){let e=[];if(t.__resolvedOptionsKey__?e=this.resolvedOptionsMap[t.__resolvedOptionsKey__]||[]:t.options&&(e=y(t.options)),e.length>0&&null!=u&&u.componentName){const t=this.renderOptionsAsVNodes(e,u.componentName);l.unshift(...t)}}if(a)return i(o,r()([{},s]),[l]);{const n=t.slots?this.buildScopedSlotsFromConfig(t.slots,e):{};return i(o,r()([{},s,{scopedSlots:n}]),[l])}}}return null},buildScopedSlotsFromConfig(t,e){if(!t)return{};const i={};return Object.keys(t).filter(t=>"default"!==t).forEach(n=>{i[n]=()=>{const i=t[n];return(Array.isArray(i)?i:[i]).map(t=>this.renderConfigNode(t,e)).filter(Boolean)}}),i},itemRender(t,e){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=this.$createElement,a=t.type,s=this.getComponent(a),l=this.getOptionalConfig(a);let u=null===(i=this.uiForm)||void 0===i?void 0:i.disabled;if(u||null==t.disabled||(u="function"==typeof t.disabled?!!t.disabled(e,this.modelValue):!!t.disabled),m(s)){const i={component:a,props:t.props||{},on:t.on||{},style:t.style||{},class:t.class||{},text:t.text,slots:{}};return t.context&&("string"==typeof t.context?i.slots.default=t.context:Array.isArray(t.context)&&(i.slots.default=t.context.map(t=>"string"==typeof t?{text:t}:t))),this.renderConfigNode(i,e,n)}const c={props:{value:e[t.prop],...t.props||{},disabled:u},on:{...t.on||{},input:i=>{var n;this.$set(e,t.prop,i),"function"==typeof(null===(n=t.on)||void 0===n?void 0:n.input)&&t.on.input(i)}},scopedSlots:this.buildScopedSlots(t.slots,e)};if(null!=l&&l.componentName&&null!=t.options){const e=n?`${n}__${t.prop}`:t.prop,i=this.resolvedOptionsMap[e]||[],r=c.scopedSlots.default;c.scopedSlots.default=()=>[...this.renderOptionsAsVNodes(i,l.componentName),...r?r():[]]}return o(s,r()([{},c]))}},render(t){if(!this.fields||!this.fields.length)return null;const e=this.fields.map((e,i)=>{if(!this.isVisible(e,this.modelValue))return null;if(e.children&&e.children.length)return this.renderComplexField(e,i);const n=this.itemRender(e,this.modelValue);return n?t("ui-form-item",{key:e.prop||i,props:{label:e.label,prop:e.prop,rules:e.rules,labelWidth:e.labelWidth,error:e.error,showMessage:e.showMessage}},[n]):null}).filter(Boolean);return t("div",{class:"ui-form-field"},e)}},b=i(1),x=Object(b.a)(v,void 0,void 0,!1,null,null,null);e.default=x.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"components",(function(){return Lt})),i.d(e,"directives",(function(){return jt}));var n=i(22);i.d(e,"Button",(function(){return n.default}));var r=i(24);i.d(e,"Input",(function(){return r.default}));var o=i(35);i.d(e,"Select",(function(){return o.default}));var a=i(41);i.d(e,"Option",(function(){return a.default}));var s=i(44);i.d(e,"TimePicker",(function(){return s.default}));var l=i(45);i.d(e,"AutoGridLayout",(function(){return l.default}));var u=i(55);i.d(e,"Alert",(function(){return u.default}));var c=i(60);i.d(e,"Badge",(function(){return c.default}));var h=i(64);i.d(e,"Card",(function(){return h.default}));var d=i(38);i.d(e,"Tag",(function(){return d.default}));var p=i(58);i.d(e,"Avatar",(function(){return p.default}));var f=i(96);i.d(e,"Row",(function(){return f.default}));var g=i(68);i.d(e,"Col",(function(){return g.default}));var m=i(72);i.d(e,"Container",(function(){return m.default}));var y=i(81);i.d(e,"Header",(function(){return y.default}));var v=i(56);i.d(e,"Aside",(function(){return v.default}));var b=i(85);i.d(e,"Main",(function(){return b.default}));var x=i(80);i.d(e,"Footer",(function(){return x.default}));var _=i(62);i.d(e,"Breadcrumb",(function(){return _.default}));var w=i(61);i.d(e,"BreadcrumbItem",(function(){return w.default}));var S=i(106);i.d(e,"Tabs",(function(){return S.default}));var C=i(105);i.d(e,"TabPane",(function(){return C.default}));var M=i(54);i.d(e,"TabsNavigation",(function(){return M.default}));var k=i(102);i.d(e,"Steps",(function(){return k.default}));var O=i(101);i.d(e,"Step",(function(){return O.default}));var A=i(108);i.d(e,"Timeline",(function(){return A.default}));var I=i(107);i.d(e,"TimelineItem",(function(){return I.default}));var T=i(28);i.d(e,"Radio",(function(){return T.default})),i.d(e,"RadioGroup",(function(){return T.RadioGroup})),i.d(e,"RadioButton",(function(){return T.RadioButton}));var D=i(21);i.d(e,"Checkbox",(function(){return D.default})),i.d(e,"CheckboxGroup",(function(){return D.CheckboxGroup})),i.d(e,"CheckboxButton",(function(){return D.CheckboxButton}));var L=i(76);i.d(e,"Divider",(function(){return L.default}));var P=i(48);i.d(e,"Empty",(function(){return P.default}));var j=i(84);i.d(e,"Link",(function(){return j.default}));var N=i(37);i.d(e,"Progress",(function(){return N.default}));var E=i(97);i.d(e,"Skeleton",(function(){return E.default}));var R=i(50);i.d(e,"SkeletonItem",(function(){return R.default}));var z=i(99);i.d(e,"Spinner",(function(){return z.default}));var B=i(34);i.d(e,"Icon",(function(){return B.default}));var V=i(82);i.d(e,"Image",(function(){return V.default}));var F=i(91);i.d(e,"PageHeader",(function(){return F.default}));var H=i(59);i.d(e,"Backtop",(function(){return H.default}));var $=i(49);i.d(e,"Scrollbar",(function(){return $.default}));var G=i(100);i.d(e,"Statistic",(function(){return G.default}));var W=i(95);i.d(e,"Result",(function(){return W.default}));var U=i(104);i.d(e,"Switch",(function(){return U.default}));var Y=i(83);i.d(e,"InputNumber",(function(){return Y.default}));var q=i(94);i.d(e,"Rate",(function(){return q.default}));var X=i(98);i.d(e,"Slider",(function(){return X.default}));var Z=i(92);i.d(e,"Pagination",(function(){return Z.default}));var K=i(46);i.d(e,"Tree",(function(){return K.default}));var Q=i(47);i.d(e,"Table",(function(){return Q.default}));var J=i(29);i.d(e,"NoData",(function(){return J.default}));var tt=i(51);i.d(e,"Transfer",(function(){return tt.default}));var et=i(75);i.d(e,"Descriptions",(function(){return et.default}));var it=i(74);i.d(e,"DescriptionsItem",(function(){return it.default}));var nt=i(36);i.d(e,"Dialog",(function(){return nt.default}));var rt=i(110);i.d(e,"Tooltip",(function(){return rt.default}));var ot=i(42);i.d(e,"Popover",(function(){return ot.default}));var at=i(53);i.d(e,"Loading",(function(){return at.default}));var st=i(89);i.d(e,"Message",(function(){return st.default}));var lt=i(88);i.d(e,"MessageBox",(function(){return lt.default}));var ut=i(90);i.d(e,"Notification",(function(){return ut.default}));var ct=i(93);i.d(e,"Popconfirm",(function(){return ct.default}));var ht=i(77);i.d(e,"Drawer",(function(){return ht.default}));var dt=i(40);i.d(e,"Form",(function(){return dt.default}));var pt=i(39);i.d(e,"FormItem",(function(){return pt.default}));var ft=i(79);i.d(e,"Dropdown",(function(){return ft.default}));var gt=i(78);i.d(e,"DropdownMenuItem",(function(){return gt.default}));var mt=i(87);i.d(e,"Menu",(function(){return mt.default}));var yt=i(86);i.d(e,"MenuItem",(function(){return yt.default}));var vt=i(103);i.d(e,"Submenu",(function(){return vt.default}));var bt=i(70);i.d(e,"Collapse",(function(){return bt.default}));var xt=i(69);i.d(e,"CollapseItem",(function(){return xt.default}));var _t=i(57);i.d(e,"Autocomplete",(function(){return _t.default}));var wt=i(73);i.d(e,"DatePicker",(function(){return wt.default}));var St=i(67);i.d(e,"Cascader",(function(){return St.default}));var Ct=i(71);i.d(e,"ColorPicker",(function(){return Ct.default}));var Mt=i(63);i.d(e,"Calendar",(function(){return Mt.default}));var kt=i(66);i.d(e,"Carousel",(function(){return kt.default}));var Ot=i(65);i.d(e,"CarouselItem",(function(){return Ot.default}));var At=i(109);i.d(e,"Upload",(function(){return At.default}));var It=i(52);i.d(e,"Chart",(function(){return It.default}));var Tt=i(43);i.d(e,"StatusTimelineChart",(function(){return Tt.default}));const Dt=i(122),Lt=Dt.keys().reduce((t,e)=>{const i=Dt(e),n=e.match(/^\.\/(.+?)\/index\.js$/)[1].split(/[-/]/g).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("");return t[n]=i.default,Object.keys(i).filter(t=>"default"!==t).length>0&&Object.keys(i).filter(t=>"default"!==t).forEach(e=>{t[e]=i[e]}),t},{}),Pt=i(129),jt=Pt.keys().reduce((t,e)=>{const i=Pt(e);return t[e.match(/^\.\/(.+?)\/index\.js$/)[1].split(/[-/]/g).map((t,e)=>e?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t).join("")]=i.default,t},{}),Nt=function(t){Nt.installed||(Nt.installed=!0,Object.keys(Lt).forEach(e=>{const i="Ui"+e;t.component(i,Lt[e])}),Object.keys(jt).forEach(e=>{t.directive(e,jt[e])}))};"undefined"!=typeof window&&window.Vue&&Nt(window.Vue),e.default={install:Nt,...Lt}},,,function(t,e,i){var n={"./alert/index.js":55,"./aside/index.js":56,"./auto-grid-layout/index.js":45,"./autocomplete/index.js":57,"./avatar/index.js":58,"./backtop/index.js":59,"./badge/index.js":60,"./breadcrumb-item/index.js":61,"./breadcrumb/index.js":62,"./button/index.js":22,"./calendar/index.js":63,"./card/index.js":64,"./carousel-item/index.js":65,"./carousel/index.js":66,"./cascader/index.js":67,"./chart/index.js":52,"./checkbox/index.js":21,"./col/index.js":68,"./collapse-item/index.js":69,"./collapse/index.js":70,"./color-picker/index.js":71,"./container/index.js":72,"./date-picker/index.js":73,"./descriptions-item/index.js":74,"./descriptions/index.js":75,"./dialog/index.js":36,"./divider/index.js":76,"./drawer/index.js":77,"./dropdown-menu-item/index.js":78,"./dropdown/index.js":79,"./empty/index.js":48,"./footer/index.js":80,"./form-item/index.js":39,"./form/index.js":40,"./header/index.js":81,"./icon/index.js":34,"./image/index.js":82,"./input-number/index.js":83,"./input/index.js":24,"./link/index.js":84,"./loading/index.js":53,"./main/index.js":85,"./menu-item/index.js":86,"./menu/index.js":87,"./message-box/index.js":88,"./message/index.js":89,"./no-data/index.js":29,"./notification/index.js":90,"./option/index.js":41,"./page-header/index.js":91,"./pagination/index.js":92,"./popconfirm/index.js":93,"./popover/index.js":42,"./progress/index.js":37,"./radio/index.js":28,"./rate/index.js":94,"./result/index.js":95,"./row/index.js":96,"./scrollbar/index.js":49,"./select/index.js":35,"./skeleton-item/index.js":50,"./skeleton/index.js":97,"./slider/index.js":98,"./spinner/index.js":99,"./statistic/index.js":100,"./status-timeline-chart/index.js":43,"./step/index.js":101,"./steps/index.js":102,"./submenu/index.js":103,"./switch/index.js":104,"./tab-pane/index.js":105,"./table/index.js":47,"./tabs-navigation/index.js":54,"./tabs/index.js":106,"./tag/index.js":38,"./time-picker/index.js":44,"./timeline-item/index.js":107,"./timeline/index.js":108,"./tooltip/index.js":110,"./transfer/index.js":51,"./tree/index.js":46,"./upload/index.js":109};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=122},function(t,e,i){var n,r;function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}
11
+ /**
12
+ * @fileoverview Popper.js - 弹出层定位库
13
+ * @description 用于创建和定位弹出层靠近其参考元素的强大库,支持多种位置、边界检测、自动翻转等功能
14
+ * @version 1.16.1
15
+ * @license MIT
16
+ * @copyright Copyright (c) 2016 Federico Zivolo and contributors
17
+ * @module utils/popper/popper
18
+ */void 0===(r="function"==typeof(n=function(){"use strict";var t=window,e={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function i(t,i,n){this._reference=t.jquery?t[0]:t,this.state={};var r=null==i,a=i&&"[object Object]"===Object.prototype.toString.call(i);return this._popper=r||a?this.parse(a?i:{}):i.jquery?i[0]:i,this._options=o({},e,n),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),h(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function n(e){var i=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden",e.offsetWidth;var r=t.getComputedStyle(e),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),a=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return e.style.display=i,e.style.visibility=n,s}function r(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function a(t){var e=o({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function s(t,e){var i,n=0;for(i in t){if(t[i]===e)return n;n++}return null}function l(e,i){return t.getComputedStyle(e,null)[i]}function u(e){var i=e.offsetParent;return i!==t.document.body&&i?i:t.document.documentElement}function c(e){var i=e.parentNode;return i?i===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==["scroll","auto"].indexOf(l(i,"overflow"))||-1!==["scroll","auto"].indexOf(l(i,"overflow-x"))||-1!==["scroll","auto"].indexOf(l(i,"overflow-y"))?i:c(e.parentNode):e}function h(t,e){Object.keys(e).forEach((function(i){var n,r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&""!==(n=e[i])&&!isNaN(parseFloat(n))&&isFinite(n)&&(r="px"),t.style[i]=e[i]+r}))}function d(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function p(t){var e=t.getBoundingClientRect(),i=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:i,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-i}}function f(e){for(var i=["","ms","webkit","moz","o"],n=0;n<i.length;n++){var r=i[n]?i[n]+e.charAt(0).toUpperCase()+e.slice(1):e;if(void 0!==t.document.body.style[r])return r}return null}return i.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},i.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(t)},i.prototype.onCreate=function(t){return t(this),this},i.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},i.prototype.parse=function(e){e=o({},{tagName:"div",classNames:["popper"],attributes:[],parent:t.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]},e);var i=t.document,n=i.createElement(e.tagName);if(s(n,e.classNames),l(n,e.attributes),"node"===e.contentType?n.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?n.innerHTML=e.content:n.textContent=e.content,e.arrowTagName){var r=i.createElement(e.arrowTagName);s(r,e.arrowClassNames),l(r,e.arrowAttributes),n.appendChild(r)}var a=e.parent.jquery?e.parent[0]:e.parent;if("string"==typeof a){if((a=i.querySelectorAll(e.parent)).length,0===a.length)throw"ERROR: the given parent doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==0&&(a=a[0]),a.appendChild(n),n;function s(t,e){e.forEach((function(e){t.classList.add(e)}))}function l(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},i.prototype._getPosition=function(e,i){return u(i),this._options.forceAbsolute?"absolute":function e(i){return i!==t.document.body&&("fixed"===l(i,"position")||(i.parentNode?e(i.parentNode):i))}(i)?"fixed":"absolute"},i.prototype._getOffsets=function(t,e,i){i=i.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=function(t,e,i){var n=p(t),r=p(e);if(i){var o=c(e);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}return{top:n.top-r.top,left:n.left-r.left,bottom:n.top-r.top+n.height,right:n.left-r.left+n.width,width:n.width,height:n.height}}(e,u(t),o),s=n(t);return-1!==["right","left"].indexOf(i)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===i?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===i?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},i.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=c(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},i.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},i.prototype._getBoundaries=function(e,i,n){var r,o,a={};if("window"===n){var s=t.document.body,l=t.document.documentElement;r=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),a={top:0,right:Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),bottom:r,left:0}}else if("viewport"===n){var h=u(this._popper),p=c(this._popper),f=d(h),g="fixed"===e.offsets.popper.position?0:(o=p)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,m="fixed"===e.offsets.popper.position?0:function(t){return t==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):t.scrollLeft}(p);a={top:0-(f.top-g),right:t.document.documentElement.clientWidth-(f.left-m),bottom:t.document.documentElement.clientHeight-(f.top-g),left:0-(f.left-m)}}else a=u(this._popper)===n?{top:0,left:0,right:n.clientWidth,bottom:n.clientHeight}:d(n);return a.left+=i,a.right-=i,a.top=a.top+i,a.bottom=a.bottom-i,a},i.prototype.runModifiers=function(t,e,i){var n=e.slice();return void 0!==i&&(n=this._options.modifiers.slice(0,s(this._options.modifiers,i))),n.forEach(function(e){var i;(i=e)&&"[object Function]"==={}.toString.call(i)&&(t=e.call(this,t))}.bind(this)),t},i.prototype.isModifierRequired=function(t,e){var i=s(this._options.modifiers,t);return!!this._options.modifiers.slice(0,i).filter((function(t){return t===e})).length},i.prototype.modifiers={},i.prototype.modifiers.applyStyle=function(t){var e,i={position:t.offsets.popper.position},n=Math.round(t.offsets.popper.left),r=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=f("transform"))?(i[e]="translate3d("+n+"px, "+r+"px, 0)",i.top=0,i.left=0):(i.left=n,i.top=r),o(i,t.styles),h(this._popper,i),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&h(t.arrowElement,t.offsets.arrow),t},i.prototype.modifiers.shift=function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var r=t.offsets.reference,s=a(t.offsets.popper),l={y:{start:{top:r.top},end:{top:r.top+r.height-s.height}},x:{start:{left:r.left},end:{left:r.left+r.width-s.width}}},u=-1!==["bottom","top"].indexOf(i)?"x":"y";t.offsets.popper=o(s,l[u][n])}return t},i.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,i=a(t.offsets.popper),n={left:function(){var e=i.left;return i.left<t.boundaries.left&&(e=Math.max(i.left,t.boundaries.left)),{left:e}},right:function(){var e=i.left;return i.right>t.boundaries.right&&(e=Math.min(i.left,t.boundaries.right-i.width)),{left:e}},top:function(){var e=i.top;return i.top<t.boundaries.top&&(e=Math.max(i.top,t.boundaries.top)),{top:e}},bottom:function(){var e=i.top;return i.bottom>t.boundaries.bottom&&(e=Math.min(i.top,t.boundaries.bottom-i.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=o(i,n[e]())})),t},i.prototype.modifiers.keepTogether=function(t){var e=a(t.offsets.popper),i=t.offsets.reference,n=Math.floor;return e.right<n(i.left)&&(t.offsets.popper.left=n(i.left)-e.width),e.left>n(i.right)&&(t.offsets.popper.left=n(i.right)),e.bottom<n(i.top)&&(t.offsets.popper.top=n(i.top)-e.height),e.top>n(i.bottom)&&(t.offsets.popper.top=n(i.bottom)),t},i.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],i=r(e),n=t.placement.split("-")[1]||"",o=[];return(o="flip"===this._options.flipBehavior?[e,i]:this._options.flipBehavior).forEach(function(s,l){if(e===s&&o.length!==l+1){e=t.placement.split("-")[0],i=r(e);var u=a(t.offsets.popper),c=-1!==["right","bottom"].indexOf(e);(c&&Math.floor(t.offsets.reference[e])>Math.floor(u[i])||!c&&Math.floor(t.offsets.reference[e])<Math.floor(u[i]))&&(t.flipped=!0,t.placement=o[l+1],n&&(t.placement+="-"+n),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},i.prototype.modifiers.offset=function(t){var e=this._options.offset,i=t.offsets.popper;return-1!==t.placement.indexOf("left")?i.top-=e:-1!==t.placement.indexOf("right")?i.top+=e:-1!==t.placement.indexOf("top")?i.left-=e:-1!==t.placement.indexOf("bottom")&&(i.left+=e),t},i.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,i=this._options.arrowOffset;if("string"==typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return t;var r={},o=t.placement.split("-")[0],s=a(t.offsets.popper),l=t.offsets.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",h=u?"top":"left",d=u?"left":"top",p=u?"bottom":"right",f=n(e)[c];l[p]-f<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-f)),l[h]+f>s[p]&&(t.offsets.popper[h]+=l[h]+f-s[p]);var g=l[h]+(i||l[c]/2-f/2)-s[h];return g=Math.max(Math.min(s[c]-f-8,g),8),r[h]=g,r[d]="",t.offsets.arrow=r,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n){n=Object(n);for(var r=Object.keys(n),o=0,a=r.length;o<a;o++){var s=r[o],l=Object.getOwnPropertyDescriptor(n,s);void 0!==l&&l.enumerable&&(e[s]=n[s])}}}return e}}),i})?n.call(e,i,e,t):n)||(t.exports=r)},function(t,e,i){"use strict";(function(t){
19
+ /*!
20
+ * The buffer module from node.js, for the browser.
21
+ *
22
+ * @author Feross Aboukhadijeh <http://feross.org>
23
+ * @license MIT
24
+ */
25
+ var n=i(126),r=i(127),o=i(128);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,i)}function u(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,i,n):"string"==typeof e?function(t,e,i){"string"==typeof i&&""!==i||(i="utf8");if(!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(e,i),r=(t=s(t,n)).write(e,i);r!==n&&(t=t.slice(0,r));return t}(t,e,i):function(t,e){if(l.isBuffer(e)){var i=0|p(e.length);return 0===(t=s(t,i)).length||e.copy(t,0,0,i),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function d(t,e){var i=e.length<0?0:0|p(e.length);t=s(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return F(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return O(this,e,i);case"latin1":case"binary":return A(this,e,i);case"base64":return M(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function y(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:v(t,e,i,n,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):v(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,i,n,r){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(o=i;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(i+l>s&&(i=s-l),o=i;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(t,o+d)!==u(e,d)){h=!1;break}if(h)return o}return-1}function b(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function x(t,e,i,n){return H(V(e,t.length-i),t,i,n)}function _(t,e,i,n){return H(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,n)}function w(t,e,i,n){return _(t,e,i,n)}function S(t,e,i,n){return H(F(e),t,i,n)}function C(t,e,i,n){return H(function(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function M(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function k(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o,a,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=i)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var i="",n=0;for(;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return i}(n)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return u(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return function(t,e,i,n){return c(e),e<=0?s(t,e):void 0!==i?"string"==typeof n?s(t,e).fill(i,n):s(t,e).fill(i):s(t,e)}(null,t,e,i)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=l.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var a=t[i];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):g.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,i,n,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,r),c=t.slice(e,i),h=0;h<s;++h)if(u[h]!==c[h]){o=u[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},l.prototype.indexOf=function(t,e,i){return y(this,t,e,i,!0)},l.prototype.lastIndexOf=function(t,e,i){return y(this,t,e,i,!1)},l.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,i);case"utf8":case"utf-8":return x(this,t,e,i);case"ascii":return _(this,t,e,i);case"latin1":case"binary":return w(this,t,e,i);case"base64":return S(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function A(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function I(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=B(t[o]);return r}function T(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function D(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,i,n,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function P(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r<o;++r)t[i+r]=(e&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function j(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r<o;++r)t[i+r]=e>>>8*(n?r:3-r)&255}function N(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function E(t,e,i,n,o){return o||N(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function R(t,e,i,n,o){return o||N(t,0,i,8),r.write(t,e,i,n,52,8),i+8}l.prototype.slice=function(t,e){var i,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=l.prototype;else{var r=e-t;i=new l(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i},l.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},l.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},l.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||D(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||L(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},l.prototype.writeUIntBE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||L(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},l.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);L(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);L(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return R(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return R(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r,o=n-i;if(this===t&&i<e&&e<n)for(r=o-1;r>=0;--r)t[r+e]=this[r+i];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},l.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o<i;++o)this[o]=t;else{var a=l.isBuffer(t)?t:V(new l(t,n).toString()),s=a.length;for(o=0;o<i-e;++o)this[o+e]=a[o%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function V(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function F(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(this,i(125))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";e.byteLength=function(t){var e=u(t),i=e[0],n=e[1];return 3*(i+n)/4-n},e.toByteArray=function(t){var e,i,n=u(t),a=n[0],s=n[1],l=new o(function(t,e,i){return 3*(e+i)/4-i}(0,a,s)),c=0,h=s>0?a-4:a;for(i=0;i<h;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,l[c++]=255&e);1===s&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=0,s=i-r;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function c(t,e,i){for(var r,o,a=[],s=e;s<i;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=r)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){
26
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
27
+ e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=i?r-1:0,d=i?-1:1,p=t[e+h];for(h+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[i+p]=255&a,p+=f,a/=256,u-=8);t[i+p-f]|=128*g}},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){var n={"./clickoutside/index.js":12,"./init/index.js":17,"./resize/index.js":25};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=129}]).default}));