manage-client 4.1.90 → 4.1.91

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 (457) hide show
  1. package/build/dev-server.js +145 -145
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/cardGasStatistics.vue +568 -562
  4. package/src/components/sale/config/exportConfig.js +2824 -2821
  5. package/src/filiale/xinjiangdexin/config/exportConfig.js +3 -0
  6. package/lib/package_2025-06-24-17-17-15.json +0 -111
  7. package/lib/reportManage/lib/0.lib.js +0 -1
  8. package/lib/reportManage/lib/10.lib.js +0 -1
  9. package/lib/reportManage/lib/100.lib.js +0 -1
  10. package/lib/reportManage/lib/101.lib.js +0 -1
  11. package/lib/reportManage/lib/102.lib.js +0 -1
  12. package/lib/reportManage/lib/103.lib.js +0 -1
  13. package/lib/reportManage/lib/104.lib.js +0 -1
  14. package/lib/reportManage/lib/105.lib.js +0 -1
  15. package/lib/reportManage/lib/106.lib.js +0 -1
  16. package/lib/reportManage/lib/107.lib.js +0 -1
  17. package/lib/reportManage/lib/108.lib.js +0 -1
  18. package/lib/reportManage/lib/109.lib.js +0 -1
  19. package/lib/reportManage/lib/11.lib.js +0 -1
  20. package/lib/reportManage/lib/110.lib.js +0 -1
  21. package/lib/reportManage/lib/111.lib.js +0 -1
  22. package/lib/reportManage/lib/112.lib.js +0 -1
  23. package/lib/reportManage/lib/113.lib.js +0 -1
  24. package/lib/reportManage/lib/114.lib.js +0 -1
  25. package/lib/reportManage/lib/115.lib.js +0 -1
  26. package/lib/reportManage/lib/116.lib.js +0 -1
  27. package/lib/reportManage/lib/117.lib.js +0 -1
  28. package/lib/reportManage/lib/118.lib.js +0 -1
  29. package/lib/reportManage/lib/119.lib.js +0 -1
  30. package/lib/reportManage/lib/12.lib.js +0 -1
  31. package/lib/reportManage/lib/120.lib.js +0 -1
  32. package/lib/reportManage/lib/121.lib.js +0 -1
  33. package/lib/reportManage/lib/122.lib.js +0 -1
  34. package/lib/reportManage/lib/123.lib.js +0 -1
  35. package/lib/reportManage/lib/124.lib.js +0 -1
  36. package/lib/reportManage/lib/125.lib.js +0 -1
  37. package/lib/reportManage/lib/126.lib.js +0 -1
  38. package/lib/reportManage/lib/127.lib.js +0 -1
  39. package/lib/reportManage/lib/128.lib.js +0 -1
  40. package/lib/reportManage/lib/129.lib.js +0 -1
  41. package/lib/reportManage/lib/13.lib.js +0 -1
  42. package/lib/reportManage/lib/130.lib.js +0 -1
  43. package/lib/reportManage/lib/131.lib.js +0 -1
  44. package/lib/reportManage/lib/132.lib.js +0 -1
  45. package/lib/reportManage/lib/133.lib.js +0 -1
  46. package/lib/reportManage/lib/134.lib.js +0 -1
  47. package/lib/reportManage/lib/135.lib.js +0 -1
  48. package/lib/reportManage/lib/136.lib.js +0 -1
  49. package/lib/reportManage/lib/137.lib.js +0 -1
  50. package/lib/reportManage/lib/138.lib.js +0 -1
  51. package/lib/reportManage/lib/139.lib.js +0 -1
  52. package/lib/reportManage/lib/14.lib.js +0 -1
  53. package/lib/reportManage/lib/140.lib.js +0 -1
  54. package/lib/reportManage/lib/141.lib.js +0 -1
  55. package/lib/reportManage/lib/142.lib.js +0 -1
  56. package/lib/reportManage/lib/143.lib.js +0 -1
  57. package/lib/reportManage/lib/144.lib.js +0 -1
  58. package/lib/reportManage/lib/145.lib.js +0 -1
  59. package/lib/reportManage/lib/146.lib.js +0 -1
  60. package/lib/reportManage/lib/147.lib.js +0 -1
  61. package/lib/reportManage/lib/148.lib.js +0 -1
  62. package/lib/reportManage/lib/149.lib.js +0 -1
  63. package/lib/reportManage/lib/15.lib.js +0 -1
  64. package/lib/reportManage/lib/150.lib.js +0 -1
  65. package/lib/reportManage/lib/151.lib.js +0 -1
  66. package/lib/reportManage/lib/152.lib.js +0 -1
  67. package/lib/reportManage/lib/153.lib.js +0 -1
  68. package/lib/reportManage/lib/154.lib.js +0 -1
  69. package/lib/reportManage/lib/155.lib.js +0 -1
  70. package/lib/reportManage/lib/156.lib.js +0 -1
  71. package/lib/reportManage/lib/157.lib.js +0 -1
  72. package/lib/reportManage/lib/158.lib.js +0 -1
  73. package/lib/reportManage/lib/159.lib.js +0 -1
  74. package/lib/reportManage/lib/16.lib.js +0 -1
  75. package/lib/reportManage/lib/160.lib.js +0 -1
  76. package/lib/reportManage/lib/161.lib.js +0 -1
  77. package/lib/reportManage/lib/162.lib.js +0 -1
  78. package/lib/reportManage/lib/163.lib.js +0 -1
  79. package/lib/reportManage/lib/164.lib.js +0 -1
  80. package/lib/reportManage/lib/165.lib.js +0 -1
  81. package/lib/reportManage/lib/166.lib.js +0 -1
  82. package/lib/reportManage/lib/167.lib.js +0 -1
  83. package/lib/reportManage/lib/168.lib.js +0 -1
  84. package/lib/reportManage/lib/169.lib.js +0 -1
  85. package/lib/reportManage/lib/17.lib.js +0 -1
  86. package/lib/reportManage/lib/170.lib.js +0 -1
  87. package/lib/reportManage/lib/171.lib.js +0 -1
  88. package/lib/reportManage/lib/172.lib.js +0 -1
  89. package/lib/reportManage/lib/173.lib.js +0 -1
  90. package/lib/reportManage/lib/174.lib.js +0 -1
  91. package/lib/reportManage/lib/175.lib.js +0 -1
  92. package/lib/reportManage/lib/176.lib.js +0 -1
  93. package/lib/reportManage/lib/177.lib.js +0 -1
  94. package/lib/reportManage/lib/178.lib.js +0 -1
  95. package/lib/reportManage/lib/179.lib.js +0 -1
  96. package/lib/reportManage/lib/18.lib.js +0 -1
  97. package/lib/reportManage/lib/180.lib.js +0 -1
  98. package/lib/reportManage/lib/181.lib.js +0 -1
  99. package/lib/reportManage/lib/182.lib.js +0 -1
  100. package/lib/reportManage/lib/183.lib.js +0 -1
  101. package/lib/reportManage/lib/184.lib.js +0 -1
  102. package/lib/reportManage/lib/185.lib.js +0 -1
  103. package/lib/reportManage/lib/186.lib.js +0 -1
  104. package/lib/reportManage/lib/187.lib.js +0 -1
  105. package/lib/reportManage/lib/188.lib.js +0 -1
  106. package/lib/reportManage/lib/189.lib.js +0 -1
  107. package/lib/reportManage/lib/19.lib.js +0 -1
  108. package/lib/reportManage/lib/190.lib.js +0 -1
  109. package/lib/reportManage/lib/191.lib.js +0 -1
  110. package/lib/reportManage/lib/192.lib.js +0 -1
  111. package/lib/reportManage/lib/193.lib.js +0 -1
  112. package/lib/reportManage/lib/194.lib.js +0 -1
  113. package/lib/reportManage/lib/195.lib.js +0 -1
  114. package/lib/reportManage/lib/196.lib.js +0 -1
  115. package/lib/reportManage/lib/197.lib.js +0 -1
  116. package/lib/reportManage/lib/198.lib.js +0 -1
  117. package/lib/reportManage/lib/199.lib.js +0 -1
  118. package/lib/reportManage/lib/2.lib.js +0 -1
  119. package/lib/reportManage/lib/20.lib.js +0 -1
  120. package/lib/reportManage/lib/200.lib.js +0 -1
  121. package/lib/reportManage/lib/201.lib.js +0 -1
  122. package/lib/reportManage/lib/202.lib.js +0 -1
  123. package/lib/reportManage/lib/203.lib.js +0 -1
  124. package/lib/reportManage/lib/204.lib.js +0 -1
  125. package/lib/reportManage/lib/205.lib.js +0 -1
  126. package/lib/reportManage/lib/206.lib.js +0 -1
  127. package/lib/reportManage/lib/207.lib.js +0 -1
  128. package/lib/reportManage/lib/208.lib.js +0 -1
  129. package/lib/reportManage/lib/209.lib.js +0 -1
  130. package/lib/reportManage/lib/21.lib.js +0 -1
  131. package/lib/reportManage/lib/210.lib.js +0 -1
  132. package/lib/reportManage/lib/211.lib.js +0 -1
  133. package/lib/reportManage/lib/212.lib.js +0 -1
  134. package/lib/reportManage/lib/213.lib.js +0 -1
  135. package/lib/reportManage/lib/214.lib.js +0 -1
  136. package/lib/reportManage/lib/215.lib.js +0 -1
  137. package/lib/reportManage/lib/216.lib.js +0 -1
  138. package/lib/reportManage/lib/217.lib.js +0 -1
  139. package/lib/reportManage/lib/218.lib.js +0 -1
  140. package/lib/reportManage/lib/22.lib.js +0 -1
  141. package/lib/reportManage/lib/23.lib.js +0 -1
  142. package/lib/reportManage/lib/24.lib.js +0 -1
  143. package/lib/reportManage/lib/25.lib.js +0 -1
  144. package/lib/reportManage/lib/26.lib.js +0 -1
  145. package/lib/reportManage/lib/27.lib.js +0 -1
  146. package/lib/reportManage/lib/28.lib.js +0 -1
  147. package/lib/reportManage/lib/29.lib.js +0 -1
  148. package/lib/reportManage/lib/3.lib.js +0 -1
  149. package/lib/reportManage/lib/30.lib.js +0 -1
  150. package/lib/reportManage/lib/31.lib.js +0 -1
  151. package/lib/reportManage/lib/32.lib.js +0 -1
  152. package/lib/reportManage/lib/33.lib.js +0 -1
  153. package/lib/reportManage/lib/34.lib.js +0 -1
  154. package/lib/reportManage/lib/35.lib.js +0 -1
  155. package/lib/reportManage/lib/36.lib.js +0 -1
  156. package/lib/reportManage/lib/37.lib.js +0 -1
  157. package/lib/reportManage/lib/38.lib.js +0 -1
  158. package/lib/reportManage/lib/39.lib.js +0 -1
  159. package/lib/reportManage/lib/4.lib.js +0 -1
  160. package/lib/reportManage/lib/40.lib.js +0 -1
  161. package/lib/reportManage/lib/41.lib.js +0 -1
  162. package/lib/reportManage/lib/42.lib.js +0 -1
  163. package/lib/reportManage/lib/43.lib.js +0 -1
  164. package/lib/reportManage/lib/44.lib.js +0 -1
  165. package/lib/reportManage/lib/45.lib.js +0 -1
  166. package/lib/reportManage/lib/46.lib.js +0 -1
  167. package/lib/reportManage/lib/47.lib.js +0 -1
  168. package/lib/reportManage/lib/48.lib.js +0 -1
  169. package/lib/reportManage/lib/49.lib.js +0 -1
  170. package/lib/reportManage/lib/5.lib.js +0 -1
  171. package/lib/reportManage/lib/50.lib.js +0 -1
  172. package/lib/reportManage/lib/51.lib.js +0 -1
  173. package/lib/reportManage/lib/52.lib.js +0 -1
  174. package/lib/reportManage/lib/53.lib.js +0 -1
  175. package/lib/reportManage/lib/54.lib.js +0 -1
  176. package/lib/reportManage/lib/55.lib.js +0 -1
  177. package/lib/reportManage/lib/56.lib.js +0 -1
  178. package/lib/reportManage/lib/57.lib.js +0 -1
  179. package/lib/reportManage/lib/58.lib.js +0 -1
  180. package/lib/reportManage/lib/59.lib.js +0 -1
  181. package/lib/reportManage/lib/6.lib.js +0 -1
  182. package/lib/reportManage/lib/60.lib.js +0 -1
  183. package/lib/reportManage/lib/61.lib.js +0 -1
  184. package/lib/reportManage/lib/62.lib.js +0 -1
  185. package/lib/reportManage/lib/63.lib.js +0 -1
  186. package/lib/reportManage/lib/64.lib.js +0 -1
  187. package/lib/reportManage/lib/65.lib.js +0 -1
  188. package/lib/reportManage/lib/66.lib.js +0 -1
  189. package/lib/reportManage/lib/67.lib.js +0 -1
  190. package/lib/reportManage/lib/68.lib.js +0 -1
  191. package/lib/reportManage/lib/69.lib.js +0 -1
  192. package/lib/reportManage/lib/7.lib.js +0 -1
  193. package/lib/reportManage/lib/70.lib.js +0 -1
  194. package/lib/reportManage/lib/71.lib.js +0 -1
  195. package/lib/reportManage/lib/72.lib.js +0 -1
  196. package/lib/reportManage/lib/73.lib.js +0 -1
  197. package/lib/reportManage/lib/74.lib.js +0 -1
  198. package/lib/reportManage/lib/75.lib.js +0 -1
  199. package/lib/reportManage/lib/76.lib.js +0 -1
  200. package/lib/reportManage/lib/77.lib.js +0 -1
  201. package/lib/reportManage/lib/78.lib.js +0 -1
  202. package/lib/reportManage/lib/79.lib.js +0 -1
  203. package/lib/reportManage/lib/8.lib.js +0 -1
  204. package/lib/reportManage/lib/80.lib.js +0 -1
  205. package/lib/reportManage/lib/81.lib.js +0 -1
  206. package/lib/reportManage/lib/82.lib.js +0 -1
  207. package/lib/reportManage/lib/83.lib.js +0 -1
  208. package/lib/reportManage/lib/84.lib.js +0 -1
  209. package/lib/reportManage/lib/85.lib.js +0 -1
  210. package/lib/reportManage/lib/86.lib.js +0 -1
  211. package/lib/reportManage/lib/87.lib.js +0 -1
  212. package/lib/reportManage/lib/88.lib.js +0 -1
  213. package/lib/reportManage/lib/89.lib.js +0 -1
  214. package/lib/reportManage/lib/9.lib.js +0 -1
  215. package/lib/reportManage/lib/90.lib.js +0 -1
  216. package/lib/reportManage/lib/91.lib.js +0 -1
  217. package/lib/reportManage/lib/92.lib.js +0 -1
  218. package/lib/reportManage/lib/93.lib.js +0 -1
  219. package/lib/reportManage/lib/94.lib.js +0 -1
  220. package/lib/reportManage/lib/95.lib.js +0 -1
  221. package/lib/reportManage/lib/96.lib.js +0 -1
  222. package/lib/reportManage/lib/97.lib.js +0 -1
  223. package/lib/reportManage/lib/98.lib.js +0 -1
  224. package/lib/reportManage/lib/99.lib.js +0 -1
  225. package/lib/reportManage/lib/lib.js +0 -1
  226. package/lib/saleManage/lib/1.lib.js +0 -1
  227. package/lib/saleManage/lib/10.lib.js +0 -1
  228. package/lib/saleManage/lib/100.lib.js +0 -1
  229. package/lib/saleManage/lib/101.lib.js +0 -1
  230. package/lib/saleManage/lib/102.lib.js +0 -1
  231. package/lib/saleManage/lib/103.lib.js +0 -1
  232. package/lib/saleManage/lib/104.lib.js +0 -1
  233. package/lib/saleManage/lib/105.lib.js +0 -1
  234. package/lib/saleManage/lib/106.lib.js +0 -1
  235. package/lib/saleManage/lib/107.lib.js +0 -1
  236. package/lib/saleManage/lib/108.lib.js +0 -1
  237. package/lib/saleManage/lib/109.lib.js +0 -1
  238. package/lib/saleManage/lib/11.lib.js +0 -1
  239. package/lib/saleManage/lib/110.lib.js +0 -1
  240. package/lib/saleManage/lib/111.lib.js +0 -1
  241. package/lib/saleManage/lib/112.lib.js +0 -1
  242. package/lib/saleManage/lib/113.lib.js +0 -1
  243. package/lib/saleManage/lib/114.lib.js +0 -1
  244. package/lib/saleManage/lib/115.lib.js +0 -1
  245. package/lib/saleManage/lib/116.lib.js +0 -1
  246. package/lib/saleManage/lib/117.lib.js +0 -1
  247. package/lib/saleManage/lib/118.lib.js +0 -1
  248. package/lib/saleManage/lib/119.lib.js +0 -1
  249. package/lib/saleManage/lib/12.lib.js +0 -1
  250. package/lib/saleManage/lib/120.lib.js +0 -1
  251. package/lib/saleManage/lib/121.lib.js +0 -1
  252. package/lib/saleManage/lib/122.lib.js +0 -1
  253. package/lib/saleManage/lib/123.lib.js +0 -1
  254. package/lib/saleManage/lib/124.lib.js +0 -1
  255. package/lib/saleManage/lib/125.lib.js +0 -1
  256. package/lib/saleManage/lib/126.lib.js +0 -1
  257. package/lib/saleManage/lib/127.lib.js +0 -1
  258. package/lib/saleManage/lib/128.lib.js +0 -1
  259. package/lib/saleManage/lib/129.lib.js +0 -1
  260. package/lib/saleManage/lib/13.lib.js +0 -1
  261. package/lib/saleManage/lib/130.lib.js +0 -1
  262. package/lib/saleManage/lib/131.lib.js +0 -1
  263. package/lib/saleManage/lib/132.lib.js +0 -1
  264. package/lib/saleManage/lib/133.lib.js +0 -1
  265. package/lib/saleManage/lib/134.lib.js +0 -1
  266. package/lib/saleManage/lib/135.lib.js +0 -1
  267. package/lib/saleManage/lib/136.lib.js +0 -1
  268. package/lib/saleManage/lib/137.lib.js +0 -1
  269. package/lib/saleManage/lib/138.lib.js +0 -1
  270. package/lib/saleManage/lib/139.lib.js +0 -1
  271. package/lib/saleManage/lib/14.lib.js +0 -1
  272. package/lib/saleManage/lib/140.lib.js +0 -1
  273. package/lib/saleManage/lib/141.lib.js +0 -1
  274. package/lib/saleManage/lib/142.lib.js +0 -1
  275. package/lib/saleManage/lib/143.lib.js +0 -1
  276. package/lib/saleManage/lib/144.lib.js +0 -1
  277. package/lib/saleManage/lib/145.lib.js +0 -1
  278. package/lib/saleManage/lib/146.lib.js +0 -1
  279. package/lib/saleManage/lib/147.lib.js +0 -1
  280. package/lib/saleManage/lib/148.lib.js +0 -1
  281. package/lib/saleManage/lib/149.lib.js +0 -1
  282. package/lib/saleManage/lib/15.lib.js +0 -1
  283. package/lib/saleManage/lib/150.lib.js +0 -1
  284. package/lib/saleManage/lib/151.lib.js +0 -1
  285. package/lib/saleManage/lib/152.lib.js +0 -1
  286. package/lib/saleManage/lib/153.lib.js +0 -1
  287. package/lib/saleManage/lib/154.lib.js +0 -1
  288. package/lib/saleManage/lib/155.lib.js +0 -1
  289. package/lib/saleManage/lib/156.lib.js +0 -1
  290. package/lib/saleManage/lib/157.lib.js +0 -1
  291. package/lib/saleManage/lib/158.lib.js +0 -1
  292. package/lib/saleManage/lib/159.lib.js +0 -1
  293. package/lib/saleManage/lib/16.lib.js +0 -1
  294. package/lib/saleManage/lib/160.lib.js +0 -1
  295. package/lib/saleManage/lib/161.lib.js +0 -1
  296. package/lib/saleManage/lib/162.lib.js +0 -1
  297. package/lib/saleManage/lib/163.lib.js +0 -1
  298. package/lib/saleManage/lib/164.lib.js +0 -1
  299. package/lib/saleManage/lib/165.lib.js +0 -1
  300. package/lib/saleManage/lib/166.lib.js +0 -1
  301. package/lib/saleManage/lib/167.lib.js +0 -1
  302. package/lib/saleManage/lib/168.lib.js +0 -1
  303. package/lib/saleManage/lib/169.lib.js +0 -1
  304. package/lib/saleManage/lib/17.lib.js +0 -1
  305. package/lib/saleManage/lib/170.lib.js +0 -1
  306. package/lib/saleManage/lib/171.lib.js +0 -1
  307. package/lib/saleManage/lib/172.lib.js +0 -1
  308. package/lib/saleManage/lib/173.lib.js +0 -1
  309. package/lib/saleManage/lib/174.lib.js +0 -1
  310. package/lib/saleManage/lib/175.lib.js +0 -1
  311. package/lib/saleManage/lib/176.lib.js +0 -1
  312. package/lib/saleManage/lib/177.lib.js +0 -1
  313. package/lib/saleManage/lib/18.lib.js +0 -1
  314. package/lib/saleManage/lib/19.lib.js +0 -1
  315. package/lib/saleManage/lib/2.lib.js +0 -1
  316. package/lib/saleManage/lib/20.lib.js +0 -1
  317. package/lib/saleManage/lib/21.lib.js +0 -1
  318. package/lib/saleManage/lib/22.lib.js +0 -1
  319. package/lib/saleManage/lib/23.lib.js +0 -1
  320. package/lib/saleManage/lib/24.lib.js +0 -1
  321. package/lib/saleManage/lib/25.lib.js +0 -1
  322. package/lib/saleManage/lib/26.lib.js +0 -1
  323. package/lib/saleManage/lib/27.lib.js +0 -1
  324. package/lib/saleManage/lib/28.lib.js +0 -1
  325. package/lib/saleManage/lib/29.lib.js +0 -1
  326. package/lib/saleManage/lib/3.lib.js +0 -1
  327. package/lib/saleManage/lib/30.lib.js +0 -1
  328. package/lib/saleManage/lib/31.lib.js +0 -1
  329. package/lib/saleManage/lib/32.lib.js +0 -1
  330. package/lib/saleManage/lib/33.lib.js +0 -1
  331. package/lib/saleManage/lib/34.lib.js +0 -1
  332. package/lib/saleManage/lib/35.lib.js +0 -1
  333. package/lib/saleManage/lib/36.lib.js +0 -1
  334. package/lib/saleManage/lib/37.lib.js +0 -1
  335. package/lib/saleManage/lib/38.lib.js +0 -1
  336. package/lib/saleManage/lib/39.lib.js +0 -1
  337. package/lib/saleManage/lib/4.lib.js +0 -1
  338. package/lib/saleManage/lib/40.lib.js +0 -1
  339. package/lib/saleManage/lib/41.lib.js +0 -1
  340. package/lib/saleManage/lib/42.lib.js +0 -1
  341. package/lib/saleManage/lib/43.lib.js +0 -1
  342. package/lib/saleManage/lib/44.lib.js +0 -1
  343. package/lib/saleManage/lib/45.lib.js +0 -1
  344. package/lib/saleManage/lib/46.lib.js +0 -1
  345. package/lib/saleManage/lib/47.lib.js +0 -1
  346. package/lib/saleManage/lib/48.lib.js +0 -1
  347. package/lib/saleManage/lib/49.lib.js +0 -1
  348. package/lib/saleManage/lib/5.lib.js +0 -1
  349. package/lib/saleManage/lib/50.lib.js +0 -1
  350. package/lib/saleManage/lib/51.lib.js +0 -1
  351. package/lib/saleManage/lib/52.lib.js +0 -1
  352. package/lib/saleManage/lib/53.lib.js +0 -1
  353. package/lib/saleManage/lib/54.lib.js +0 -1
  354. package/lib/saleManage/lib/55.lib.js +0 -1
  355. package/lib/saleManage/lib/56.lib.js +0 -1
  356. package/lib/saleManage/lib/57.lib.js +0 -1
  357. package/lib/saleManage/lib/58.lib.js +0 -1
  358. package/lib/saleManage/lib/59.lib.js +0 -1
  359. package/lib/saleManage/lib/6.lib.js +0 -1
  360. package/lib/saleManage/lib/60.lib.js +0 -1
  361. package/lib/saleManage/lib/61.lib.js +0 -1
  362. package/lib/saleManage/lib/62.lib.js +0 -1
  363. package/lib/saleManage/lib/63.lib.js +0 -1
  364. package/lib/saleManage/lib/64.lib.js +0 -1
  365. package/lib/saleManage/lib/65.lib.js +0 -1
  366. package/lib/saleManage/lib/66.lib.js +0 -1
  367. package/lib/saleManage/lib/67.lib.js +0 -1
  368. package/lib/saleManage/lib/68.lib.js +0 -1
  369. package/lib/saleManage/lib/69.lib.js +0 -1
  370. package/lib/saleManage/lib/7.lib.js +0 -1
  371. package/lib/saleManage/lib/70.lib.js +0 -1
  372. package/lib/saleManage/lib/71.lib.js +0 -1
  373. package/lib/saleManage/lib/72.lib.js +0 -1
  374. package/lib/saleManage/lib/73.lib.js +0 -1
  375. package/lib/saleManage/lib/74.lib.js +0 -1
  376. package/lib/saleManage/lib/75.lib.js +0 -1
  377. package/lib/saleManage/lib/76.lib.js +0 -1
  378. package/lib/saleManage/lib/77.lib.js +0 -1
  379. package/lib/saleManage/lib/78.lib.js +0 -1
  380. package/lib/saleManage/lib/79.lib.js +0 -1
  381. package/lib/saleManage/lib/8.lib.js +0 -1
  382. package/lib/saleManage/lib/80.lib.js +0 -1
  383. package/lib/saleManage/lib/81.lib.js +0 -1
  384. package/lib/saleManage/lib/82.lib.js +0 -1
  385. package/lib/saleManage/lib/83.lib.js +0 -1
  386. package/lib/saleManage/lib/84.lib.js +0 -1
  387. package/lib/saleManage/lib/85.lib.js +0 -1
  388. package/lib/saleManage/lib/86.lib.js +0 -1
  389. package/lib/saleManage/lib/87.lib.js +0 -1
  390. package/lib/saleManage/lib/88.lib.js +0 -1
  391. package/lib/saleManage/lib/89.lib.js +0 -1
  392. package/lib/saleManage/lib/9.lib.js +0 -1
  393. package/lib/saleManage/lib/90.lib.js +0 -1
  394. package/lib/saleManage/lib/91.lib.js +0 -1
  395. package/lib/saleManage/lib/92.lib.js +0 -1
  396. package/lib/saleManage/lib/93.lib.js +0 -1
  397. package/lib/saleManage/lib/94.lib.js +0 -1
  398. package/lib/saleManage/lib/95.lib.js +0 -1
  399. package/lib/saleManage/lib/96.lib.js +0 -1
  400. package/lib/saleManage/lib/97.lib.js +0 -1
  401. package/lib/saleManage/lib/98.lib.js +0 -1
  402. package/lib/saleManage/lib/99.lib.js +0 -1
  403. package/lib/saleManage/lib/lib.js +0 -1
  404. package/lib/webmeterManage/lib/1.lib.js +0 -1
  405. package/lib/webmeterManage/lib/10.lib.js +0 -1
  406. package/lib/webmeterManage/lib/11.lib.js +0 -1
  407. package/lib/webmeterManage/lib/12.lib.js +0 -1
  408. package/lib/webmeterManage/lib/13.lib.js +0 -1
  409. package/lib/webmeterManage/lib/14.lib.js +0 -1
  410. package/lib/webmeterManage/lib/15.lib.js +0 -1
  411. package/lib/webmeterManage/lib/16.lib.js +0 -1
  412. package/lib/webmeterManage/lib/17.lib.js +0 -1
  413. package/lib/webmeterManage/lib/18.lib.js +0 -1
  414. package/lib/webmeterManage/lib/19.lib.js +0 -1
  415. package/lib/webmeterManage/lib/2.lib.js +0 -1
  416. package/lib/webmeterManage/lib/20.lib.js +0 -1
  417. package/lib/webmeterManage/lib/21.lib.js +0 -1
  418. package/lib/webmeterManage/lib/22.lib.js +0 -1
  419. package/lib/webmeterManage/lib/23.lib.js +0 -1
  420. package/lib/webmeterManage/lib/24.lib.js +0 -1
  421. package/lib/webmeterManage/lib/25.lib.js +0 -1
  422. package/lib/webmeterManage/lib/26.lib.js +0 -1
  423. package/lib/webmeterManage/lib/27.lib.js +0 -1
  424. package/lib/webmeterManage/lib/28.lib.js +0 -1
  425. package/lib/webmeterManage/lib/29.lib.js +0 -1
  426. package/lib/webmeterManage/lib/3.lib.js +0 -1
  427. package/lib/webmeterManage/lib/30.lib.js +0 -1
  428. package/lib/webmeterManage/lib/31.lib.js +0 -1
  429. package/lib/webmeterManage/lib/32.lib.js +0 -1
  430. package/lib/webmeterManage/lib/33.lib.js +0 -1
  431. package/lib/webmeterManage/lib/34.lib.js +0 -1
  432. package/lib/webmeterManage/lib/35.lib.js +0 -1
  433. package/lib/webmeterManage/lib/36.lib.js +0 -1
  434. package/lib/webmeterManage/lib/37.lib.js +0 -1
  435. package/lib/webmeterManage/lib/38.lib.js +0 -1
  436. package/lib/webmeterManage/lib/39.lib.js +0 -1
  437. package/lib/webmeterManage/lib/4.lib.js +0 -1
  438. package/lib/webmeterManage/lib/40.lib.js +0 -1
  439. package/lib/webmeterManage/lib/41.lib.js +0 -1
  440. package/lib/webmeterManage/lib/42.lib.js +0 -1
  441. package/lib/webmeterManage/lib/43.lib.js +0 -1
  442. package/lib/webmeterManage/lib/44.lib.js +0 -1
  443. package/lib/webmeterManage/lib/45.lib.js +0 -1
  444. package/lib/webmeterManage/lib/46.lib.js +0 -1
  445. package/lib/webmeterManage/lib/47.lib.js +0 -1
  446. package/lib/webmeterManage/lib/48.lib.js +0 -1
  447. package/lib/webmeterManage/lib/49.lib.js +0 -1
  448. package/lib/webmeterManage/lib/5.lib.js +0 -1
  449. package/lib/webmeterManage/lib/50.lib.js +0 -1
  450. package/lib/webmeterManage/lib/51.lib.js +0 -1
  451. package/lib/webmeterManage/lib/6.lib.js +0 -1
  452. package/lib/webmeterManage/lib/7.lib.js +0 -1
  453. package/lib/webmeterManage/lib/8.lib.js +0 -1
  454. package/lib/webmeterManage/lib/9.lib.js +0 -1
  455. package/lib/webmeterManage/lib/lib.js +0 -1
  456. package/manage_lib2025-06-24-17-17-15.zip +0 -0
  457. package/src/components/SellReport/tonghua/outletTableTongHua.vue +0 -181
@@ -1 +0,0 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("vue-client"),require("vue"));else if("function"==typeof define&&define.amd)define(["vue-client","vue"],e);else{var n,i="object"==typeof exports?e(require("vue-client"),require("vue")):e(t["vue-client"],t.vue);for(n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,function(n,i){return s=[function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){i.default.prototype.$echarts=o.default,i.default.use(a.default),i.default.use(r.default),i.default.component("webmeter-query",function(e){n.e(44,function(t){t=[t(883)];e.apply(null,t)})}),i.default.component("webmeter-analyse",function(e){n.e(45,function(t){t=[t(882)];e.apply(null,t)})}),i.default.component("data-collection",function(e){n.e(47,function(t){t=[t(884)];e.apply(null,t)})}),i.default.component("indicator-statistics-main",function(e){n.e(32,function(t){t=[t(892)];e.apply(null,t)})}),i.default.component("indicator-statistics-echars",function(e){n.e(31,function(t){t=[t(891)];e.apply(null,t)})}),i.default.component("new-webmeter-user-gas-all",function(e){n.e(1,function(t){t=[t(879)];e.apply(null,t)})}),i.default.component("user-gas-eform",function(e){n.e(36,function(t){t=[t(880)];e.apply(null,t)})}),i.default.component("user-gas-echarts",function(e){n.e(41,function(t){t=[t(146)];e.apply(null,t)})}),i.default.component("lost-contact-analysis",function(e){n.e(27,function(t){t=[t(874)];e.apply(null,t)})}),i.default.component("lost-contact-analysis-manage",function(e){n.e(46,function(t){t=[t(876)];e.apply(null,t)})}),i.default.component("user-lost-contact-analysis",function(e){n.e(8,function(t){t=[t(881)];e.apply(null,t)})}),i.default.component("lost-contact-analysis-list",function(e){n.e(9,function(t){t=[t(875)];e.apply(null,t)})}),i.default.component("lost-contact-echarts",function(e){n.e(42,function(t){t=[t(877)];e.apply(null,t)})}),i.default.component("lost-contact-eform",function(e){n.e(37,function(t){t=[t(878)];e.apply(null,t)})}),i.default.component("total-exception-by-meter",function(e){n.e(11,function(t){t=[t(901)];e.apply(null,t)})}),i.default.component("meter-exception-list",function(e){n.e(12,function(t){t=[t(898)];e.apply(null,t)})}),i.default.component("new-exception-eform-total",function(e){n.e(34,function(t){t=[t(899)];e.apply(null,t)})}),i.default.component("new-meter-exception",function(e){n.e(26,function(t){t=[t(900)];e.apply(null,t)})}),i.default.component("new-exception-eform",function(e){n.e(35,function(t){t=[t(272)];e.apply(null,t)})}),i.default.component("new-exception-echarts",function(e){n.e(40,function(t){t=[t(271)];e.apply(null,t)})}),i.default.component("user-gas-list",function(e){n.e(5,function(t){t=[t(906)];e.apply(null,t)})}),i.default.component("user-gas-echarts-list",function(e){n.e(39,function(t){t=[t(273)];e.apply(null,t)})}),i.default.component("user-instruct-list",function(e){n.e(4,function(t){t=[t(907)];e.apply(null,t)})}),i.default.component("user-instruct-echarts-list",function(e){n.e(38,function(t){t=[t(274)];e.apply(null,t)})}),i.default.component("price-instruct-list",function(e){n.e(6,function(t){t=[t(904)];e.apply(null,t)})}),i.default.component("price-instruct-detail",function(e){n.e(7,function(t){t=[t(903)];e.apply(null,t)})}),i.default.component("price-instruct-manage",function(e){n.e(43,function(t){t=[t(905)];e.apply(null,t)})}),i.default.component("sign-analysis-list-main",function(e){n.e(24,function(t){t=[t(910)];e.apply(null,t)})}),i.default.component("sign-analysis-echarts",function(e){n.e(30,function(t){t=[t(275)];e.apply(null,t)})}),i.default.component("sign-analysis-eform",function(e){n.e(49,function(t){t=[t(909)];e.apply(null,t)})}),i.default.component("new-webmeter-hand-plan-main",function(e){n.e(51,function(t){t=[t(890)];e.apply(null,t)})}),i.default.component("new-webmeter-handplan",function(e){n.e(21,function(t){t=[t(889)];e.apply(null,t)})}),i.default.component("planned-security-inspection-analysis",function(e){n.e(48,function(t){t=[t(873)];e.apply(null,t)})}),i.default.component("report-list",function(e){n.e(18,function(t){t=[t(914)];e.apply(null,t)})}),i.default.component("report-detail-list",function(e){n.e(28,function(t){t=[t(913)];e.apply(null,t)})}),i.default.component("ckh-report-list",function(e){n.e(17,function(t){t=[t(915)];e.apply(null,t)})}),i.default.component("instruct-manage",function(e){n.e(50,function(t){t=[t(895)];e.apply(null,t)})}),i.default.component("instruct-manage-history",function(e){n.e(25,function(t){t=[t(896)];e.apply(null,t)})}),i.default.component("new-query-instruct",function(e){n.e(29,function(t){t=[t(893)];e.apply(null,t)})}),i.default.component("report-data-query",function(e){n.e(3,function(t){t=[t(916)];e.apply(null,t)})}),i.default.component("ckh-report-data-query",function(e){n.e(2,function(t){t=[t(917)];e.apply(null,t)})}),i.default.component("recharge-instruct-query",function(e){n.e(19,function(t){t=[t(912)];e.apply(null,t)})}),i.default.component("use-gas-statistics",function(e){n.e(23,function(t){t=[t(887)];e.apply(null,t)})}),i.default.component("new-use-gas-statistics",function(e){n.e(22,function(t){t=[t(888)];e.apply(null,t)})}),i.default.component("arrearage-query",function(e){n.e(20,function(t){t=[t(897)];e.apply(null,t)})}),i.default.component("get-no-meteread-query",function(e){n.e(15,function(t){t=[t(872)];e.apply(null,t)})}),i.default.component("webmeter-settlement-analysis",function(e){n.e(13,function(t){t=[t(886)];e.apply(null,t)})}),i.default.component("new-webmeter-settlement-analysis",function(e){n.e(14,function(t){t=[t(885)];e.apply(null,t)})}),i.default.component("operation-value-record",function(e){n.e(33,function(t){t=[t(911)];e.apply(null,t)})}),i.default.component("total-exception-by-meter-sq",function(e){n.e(10,function(t){t=[t(902)];e.apply(null,t)})}),i.default.component("webhand-month-gas",function(e){n.e(16,function(t){t=[t(908)];e.apply(null,t)})})};var i=s(n(40)),o=s(n(140)),a=s(n(399)),r=s(n(289));function s(t){return t&&t.__esModule?t:{default:t}}},,,function(t,e){var s={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},l={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},u=Object.prototype.toString,n=Array.prototype,r=n.forEach,c=n.filter,i=n.slice,h=n.map,d=n.reduce,o={};function p(t){if(null==t||"object"!=typeof t)return t;var e=t,n=u.call(t);if("[object Array]"===n){if(!M(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=p(t[i])}else if(l[n]){if(!M(t)){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(i=0,o=t.length;i<o;i++)e[i]=p(t[i])}}}else if(!s[n]&&!M(t)&&!w(t))for(var r in e={},t)t.hasOwnProperty(r)&&(e[r]=p(t[r]));return e}function f(t,e,n){if(!_(e)||!_(t))return n?p(e):t;for(var i in e){var o,a;e.hasOwnProperty(i)&&(o=t[i],!_(a=e[i])||!_(o)||x(a)||x(o)||w(a)||w(o)||b(a)||b(o)||M(a)||M(o)?!n&&i in t||(t[i]=p(e[i])):f(o,a,n))}return t}function a(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function g(){return o.createCanvas()}var m;function y(t,e,n){if(t&&e)if(t.forEach&&t.forEach===r)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function v(t,e){var n=i.call(arguments,2);return function(){return t.apply(e,n.concat(i.call(arguments)))}}function x(t){return"[object Array]"===u.call(t)}function _(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function b(t){return!!s[u.call(t)]}function w(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}o.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function M(t){return t[S]}function I(t){var n=x(t),i=this;function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof I?t.each(e):t&&y(t,e)}I.prototype={constructor:I,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=v(t,e)),this)this.hasOwnProperty(n)&&t(this[n],n)},removeKey:function(t){delete this[t]}},e.$override=function(t,e){"createCanvas"===t&&(m=null),o[t]=e},e.clone=p,e.merge=f,e.mergeAll=function(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=f(n,t[i],e);return n},e.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e.defaults=a,e.createCanvas=g,e.getContext=function(){return m=m||g().getContext("2d")},e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},e.inherits=function(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)t.prototype[n]=i[n];(t.prototype.constructor=t).superClass=e},e.mixin=function(t,e,n){a(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,n)},e.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},e.each=y,e.map=function(t,e,n){if(t&&e){if(t.map&&t.map===h)return t.map(e,n);for(var i=[],o=0,a=t.length;o<a;o++)i.push(e.call(n,t[o],o,t));return i}},e.reduce=function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===d)return t.reduce(e,n,i);for(var o=0,a=t.length;o<a;o++)n=e.call(i,n,t[o],o,t);return n}},e.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===c)return t.filter(e,n);for(var i=[],o=0,a=t.length;o<a;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}},e.find=function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},e.bind=v,e.curry=function(t){var e=i.call(arguments,1);return function(){return t.apply(this,e.concat(i.call(arguments)))}},e.isArray=x,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===u.call(t)},e.isObject=_,e.isBuiltInObject=b,e.isTypedArray=function(t){return!!l[u.call(t)]},e.isDom=w,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=function(){return Function.call.apply(i,arguments)},e.normalizeCssArray=function(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t[S]=!0},e.isPrimitive=M,e.createHashMap=function(t){return new I(t)},e.concatArray=function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n},e.noop=function(){}},function(t,e){t=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},,,,function(t,e,n){var i=n(291),o=n(231);t.exports=function(t){return i(o(t))}},,,,,,,,,function(N,t,e){e(79).__DEV__;var z=e(221),f=e(3),V=e(148),g=e(121),B=e(277),s=e(174),G=e(355),F=e(302),l=e(135),H=e(762),W=e(769),j=e(772),U=e(120),Z=e(123),Y=e(214),d=e(144),q=e(48),u=e(77),X=e(165).throttle,K=e(781),$=e(780),J=e(761),Q=e(776),tt=e(778),et=e(777),nt=(e(325),f.assert),m=f.each,it=f.isFunction,r=f.isObject,ot=U.parseClassType,at={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},p="__flagInMainProcess",y="__optionUpdated",rt=/^[a-zA-Z0-9_]+$/;function n(i){return function(t,e,n){t=t&&t.toLowerCase(),s.prototype[i].call(this,t,e,n)}}function c(){s.call(this)}function h(t,e,n){n=n||{},"string"==typeof e&&(e=yt[e]),this.id,this.group,this._dom=t;t=this._zr=z.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=X(f.bind(t.flush,t),17);(e=f.clone(e))&&W(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new l;var i,o,a,e=this._api=(n=(i=this)._coordSysMgr,f.extend(new F(i),{getCoordinateSystems:f.bind(n.getCoordinateSystems,n),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return i._model.getComponent(e.mainType,e.index);t=t.parent}}}));function r(t,e){return t.__prio-e.__prio}B(D,r),B(A,r),this._scheduler=new Q(this,e,A,D),s.call(this),this._messageCenter=new c,this._initEvents(),this.resize=f.bind(this.resize,this),this._pendingActions=[],t.animation.on("frame",this._onframe,this),a=this,(o=t).on("rendered",function(){a.trigger("rendered"),!o.animation.isFinished()||a[y]||a._scheduler.unfinished||a._pendingActions.length||a.trigger("finished")}),f.setAsPrimitive(this)}c.prototype.on=n("on"),c.prototype.off=n("off"),c.prototype.one=n("one"),f.mixin(c,s);var i=h.prototype;function st(t,e,n){var i=this._model,o=this._coordSysMgr.getCoordinateSystems();e=u.parseFinder(i,e);for(var a=0;a<o.length;a++){var r=o[a];if(r[t]&&null!=(r=r[t](i,e,n)))return r}}i._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[y]){var e=this[y].silent;this[p]=!0,x(this),v.update.call(this),this[p]=!1,this[y]=!1,_.call(this,e),b.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var a=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),ut(this,i),t.performVisualTasks(i),S(this,this._model,0,"remain"),0<(n-=+new Date-a)&&t.unfinished);t.unfinished||this._zr.flush()}}},i.getDom=function(){return this._dom},i.getZr=function(){return this._zr},i.setOption=function(t,e,n){var i,o,a;r(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[p]=!0,this._model&&!e||(e=new H(this._api),o=this._theme,(a=this._model=new G(null,null,o,e)).scheduler=this._scheduler,a.init(null,null,o,e)),this._model.setOption(t,gt),n?(this[y]={silent:i},this[p]=!1):(x(this),v.update.call(this),this._zr.flush(),this[y]=!1,this[p]=!1,_.call(this,i),b.call(this,i))},i.setTheme=function(){},i.getModel=function(){return this._model},i.getOption=function(){return this._model&&this._model.getOption()},i.getWidth=function(){return this._zr.getWidth()},i.getHeight=function(){return this._zr.getHeight()},i.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},i.getRenderedCanvas=function(t){if(g.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},i.getSvgDataUrl=function(){var t,e;if(g.svgSupported)return e=(t=this._zr).storage.getDisplayList(),f.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()},i.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],o=this,e=(m(e,function(t){n.eachComponent({mainType:t},function(t){t=o._componentsMap[t.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})}),"svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png")));return m(i,function(t){t.group.ignore=!1}),e},i.getConnectedDataURL=function(i){var o,a,r,s,l,u,c,h,e,t,n,d,p;if(g.canvasSupported)return o=this.group,a=Math.min,r=Math.max,L[o]?(l=s=1/0,c=u=-1/0,h=[],e=i&&i.pixelRatio||1,f.each(C,function(t,e){var n;t.group===o&&(n=t.getRenderedCanvas(f.clone(i)),t=t.getDom().getBoundingClientRect(),s=a(t.left,s),l=a(t.top,l),u=r(t.right,u),c=r(t.bottom,c),h.push({dom:n,left:t.left,top:t.top}))}),t=(u*=e)-(s*=e),n=(c*=e)-(l*=e),(d=f.createCanvas()).width=t,d.height=n,p=z.init(d),m(h,function(t){t=new q.Image({style:{x:t.left*e-s,y:t.top*e-l,image:t.dom}});p.add(t)}),p.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png"))):this.getDataURL(i)},i.convertToPixel=f.curry(st,"convertToPixel"),i.convertFromPixel=f.curry(st,"convertFromPixel"),i.containPixel=function(t,i){var o,e=this._model;return t=u.parseFinder(e,t),f.each(t,function(t,n){0<=n.indexOf("Models")&&f.each(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o|=!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o|=e.containPoint(i,t))},this)},this),!!o},i.getVisual=function(t,e){var n=this._model,n=(t=u.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?n.getItemVisual(t,e):n.getVisual(e)},i.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},i.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var v={prepareAndUpdate:function(t){x(this),v.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,o=this._coordSysMgr,a=this._scheduler;e&&(a.restoreData(e,t),a.performSeriesTasks(e),o.create(e,n),a.performDataProcessorTasks(e,t),ut(this,e),o.update(e,n),w(e),a.performVisualTasks(e,t),dt(this,e,n,t),o=e.get("backgroundColor")||"transparent",g.canvasSupported?i.setBackgroundColor(o):(a=V.parse(o),o=V.stringify(a,"rgb"),0===a[3]&&(o="transparent")),M(e,n))},updateTransform:function(i){var o,n,a=this._model,r=this,s=this._api;a&&(o=[],a.eachComponent(function(t,e){var n=r.getViewOfComponentModel(e);n&&n.__alive&&(!n.updateTransform||(e=n.updateTransform(e,a,s,i))&&e.update)&&o.push(n)}),n=f.createHashMap(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,i))&&e.update)&&n.set(t.uid,1)}),w(a),this._scheduler.performVisualTasks(a,i,{setDirty:!0,dirtyMap:n}),S(r,a,0,i,n),M(a,this._api))},updateView:function(t){var e=this._model;e&&(d.markUpdateMethod(t,"updateView"),w(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),dt(this,this._model,this._api,t),M(e,this._api))},updateVisual:function(t){v.update.call(this,t)},updateLayout:function(t){v.update.call(this,t)}};function x(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),ht(t,"component",e,n),ht(t,"chart",e,n),n.plan()}function lt(e,n,i,o,t){var a,r,s=e._model;function l(t){t&&t.__alive&&t[n]&&t[n](t.__model,s,e._api,i)}o?((a={})[o+"Id"]=i[o+"Id"],a[o+"Index"]=i[o+"Index"],a[o+"Name"]=i[o+"Name"],a={mainType:o,query:a},t&&(a.subType=t),null!=(r=i.excludeSeriesId)&&(r=f.createHashMap(u.normalizeToArray(r))),s&&s.eachComponent(a,function(t){r&&null!=r.get(t.id)||l(e["series"===o?"_chartsMap":"_componentsMap"][t.__viewId])},e)):m(e._componentsViews.concat(e._chartsViews),l)}function ut(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function ct(e,t){var n,i=e.type,o=e.escapeConnect,a=I[i],r=a.actionInfo,s=(l=(r.update||"update").split(":")).pop(),l=null!=l[0]&&ot(l[0]),u=(this[p]=!0,[e]),c=!1,h=(e.batch&&(c=!0,u=f.map(e.batch,function(t){return(t=f.defaults(f.extend({},t),e)).batch=null,t})),[]),d="highlight"===i||"downplay"===i;m(u,function(t){(n=(n=a.action(t,this._model,this._api))||f.extend({},t)).type=r.event||n.type,h.push(n),d?lt(this,s,t,"series"):l&&lt(this,s,t,l.main,l.sub)},this),"none"===s||d||l||(this[y]?(x(this),v.update.call(this,e),this[y]=!1):v[s].call(this,e)),n=c?{type:r.event||i,escapeConnect:o,batch:h}:h[0],this[p]=!1,t||this._messageCenter.trigger(n.type,n)}function _(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ct.call(this,n,t)}}function b(t){t||this.trigger("updated")}function ht(t,e,o,a){for(var r="component"===e,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,c=t._api,n=0;n<s.length;n++)s[n].__alive=!1;function i(t){var e,n="_ec_"+t.id+"_"+t.type,i=l[n];i||(e=ot(t.type),(i=new(r?Y.getClass(e.main,e.sub):d.getClass(e.sub))).init(o,c),l[n]=i,s.push(i),u.add(i.group)),t.__viewId=i.__id=n,i.__alive=!0,i.__model=t,i.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},r||a.prepareView(i,t,o,c)}r?o.eachComponent(function(t,e){"series"!==t&&i(e)}):o.eachSeries(i);for(n=0;n<s.length;){var h=s[n];h.__alive?n++:(r||h.renderTask.dispose(),u.remove(h.group),h.dispose(o,c),s.splice(n,1),delete l[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function w(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function dt(t,e,n,i){var o,a,r,s,l;o=t,a=e,r=n,s=i,m(l||o._componentsViews,function(t){var e=t.__model;t.render(e,a,r,s),ft(e,t)}),m(t._chartsViews,function(t){t.__alive=!1}),S(t,e,0,i),m(t._chartsViews,function(t){t.__alive||t.remove(e,n)})}function S(o,t,e,a,r){var s,n,i,l,u=o._scheduler;t.eachSeries(function(t){var e,n=o._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);u.updatePayload(i,a),r&&r.get(t.uid)&&i.dirty(),s|=i.perform(u.getPerformArgs(i)),n.group.silent=!!t.get("silent"),ft(t,n),i=n,e=t.get("blendMode")||null,i.group.traverse(function(t){t.isGroup||t.style.blend!==e&&t.setStyle("blend",e),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",e)})})}),u.unfinished|=s,n=o._zr,i=t,n=n.storage,l=0,n.traverse(function(t){t.isGroup||l++}),l>i.get("hoverLayerThreshold")&&!g.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)}),$(o._zr.dom,t)}function M(e,n){m(mt,function(t){t(e,n)})}i.resize=function(t){this._zr.resize(t);var e=this._model;this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),t=t&&t.silent,this[p]=!0,e&&x(this),v.update.call(this),this[p]=!1,_.call(this,t),b.call(this,t))},i.showLoading=function(t,e){r(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),o[t]&&(t=o[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t))},i.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},i.makeActionFromEvent=function(t){var e=f.extend({},t);return e.type=T[t.type],e},i.dispatchAction=function(t,e){r(e)||(e={silent:!!e}),I[t.type]&&this._model&&(this[p]?this._pendingActions.push(t):(ct.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&g.browser.weChat&&this._throttledZrFlush(),_.call(this,e.silent),b.call(this,e.silent)))},i.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},i.on=n("on"),i.off=n("off"),i.one=n("one");var pt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ft(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i)&&(t.zlevel=i)})}i._initEvents=function(){m(pt,function(o){this._zr.on(o,function(t){var e,n=this.getModel(),i=t.target;"globalout"===o?e={}:i&&null!=i.dataIndex?e=(n=i.dataModel||n.getSeriesByIndex(i.seriesIndex))&&n.getDataParams(i.dataIndex,i.dataType)||{}:i&&i.eventData&&(e=f.extend({},i.eventData)),e&&(e.event=t,e.type=o,this.trigger(o,e))},this)},this),m(T,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},i.isDisposed=function(){return this._disposed},i.clear=function(){this.setOption({series:[]},!0)},i.dispose=function(){var e,n;this._disposed||(this._disposed=!0,u.setAttribute(this.getDom(),P,""),e=this._api,n=this._model,m(this._componentsViews,function(t){t.dispose(n,e)}),m(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete C[this.id])},f.mixin(h,s);var I={},T={},A=[],gt=[],mt=[],D=[],yt={},o={},C={},L={},vt=+new Date,xt=+new Date,P="_echarts_instance_",_t={};function bt(t){L[t]=!1}i=bt;function k(t){return C[u.getAttribute(t,P)]}function a(t,e){yt[t]=e}function wt(t){gt.push(t)}function St(t,e){E(A,t,e,1e3)}function O(t,e,n){"function"==typeof e&&(n=e,e="");var i=r(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,nt(rt.test(i)&&rt.test(e)),I[i]||(I[i]={action:n,actionInfo:t}),T[e]=i}function Mt(t,e){E(D,t,e,3e3,"visual")}function E(t,e,n,i,o){(it(e)||r(e))&&(n=e,e=i);i=Q.wrapStageHandler(n,o);i.__prio=e,i.__raw=n,t.push(i)}function It(t,e){o[t]=e}Mt(2e3,K),wt(W),St(5e3,j),It("default",J),O({type:"highlight",event:"highlight",update:"highlight"},f.noop),O({type:"downplay",event:"downplay",update:"downplay"},f.noop),a("light",tt),a("dark",et);t.version="4.1.0",t.dependencies={zrender:"4.0.4"},t.PRIORITY=at,t.init=function(t,e,n){var i,o,a=k(t);return a||((a=new h(t,e,n)).id="ec_"+vt++,C[a.id]=a,u.setAttribute(t,P,a.id),i=a,o="__connectUpdateStatus",m(T,function(t,e){i._messageCenter.on(e,function(t){var e,n;!L[i.group]||0===i[o]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],m(C,function(t){t!==i&&t.group===i.group&&n.push(t)}),r(n,0),m(n,function(t){1!==t[o]&&t.dispatchAction(e)}),r(n,2))})}),a);function r(t,e){for(var n=0;n<t.length;n++)t[n][o]=e}},t.connect=function(e){var t;return f.isArray(e)&&(t=e,e=null,m(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+xt++,m(t,function(t){t.group=e})),L[e]=!0,e},t.disConnect=bt,t.disconnect=i,t.dispose=function(t){"string"==typeof t?t=C[t]:t instanceof h||(t=k(t)),t instanceof h&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=k,t.getInstanceById=function(t){return C[t]},t.registerTheme=a,t.registerPreprocessor=wt,t.registerProcessor=St,t.registerPostUpdate=function(t){mt.push(t)},t.registerAction=O,t.registerCoordinateSystem=function(t,e){l.register(t,e)},t.getCoordinateSystemDimensions=function(t){if(t=l.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.registerLayout=function(t,e){E(D,t,e,1e3,"layout")},t.registerVisual=Mt,t.registerLoading=It,t.extendComponentModel=function(t){return U.extend(t)},t.extendComponentView=function(t){return Y.extend(t)},t.extendSeriesModel=function(t){return Z.extend(t)},t.extendChartView=function(t){return d.extend(t)},t.setCanvasCreator=function(t){f.$override("createCanvas",t)},t.registerMap=function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),_t[t]={geoJson:e,specialAreas:n}},t.getMap=function(t){return _t[t]},t.dataTool={};var R,Tt=e(354);for(R in Tt)Tt.hasOwnProperty(R)&&(t[R]=Tt[R])},function(t,e){t.exports=n},function(t,e,n){var i=n(73),o=n(64);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},,function(t,e,n){var i=n(67)("wks"),o=n(63),a=n(20).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:o)("Symbol."+t))}).store=i},function(t,e,n){t.exports=n(446)},function(t,e,n){var i=n(42),o=n(71),a=n(29),r=Object.defineProperty;e.f=n(25)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(52)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(59);t.exports=function(t,e){if(!o(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t))||"function"==typeof(n=t.valueOf)&&!o(i=n.call(t))||!e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},,,,,,,,,,,function(t,e){t.exports=i},function(t,e,n){t.exports={default:n(449),__esModule:!0}},function(t,e,n){var i=n(59);t.exports=function(t){if(i(t))return t;throw TypeError(t+" is not an object!")}},function(t,e,n){"use strict";e.__esModule=!0;var n=n(41),l=(n=n)&&n.__esModule?n:{default:n};e.default=function(t){return function(){var s=t.apply(this,arguments);return new l.default(function(a,r){return function e(t,n){try{var i=s[t](n),o=i.value}catch(t){return void r(t)}if(!i.done)return l.default.resolve(o).then(function(t){e("next",t)},function(t){e("throw",t)});a(o)}("next")})}}},,function(t,e,n){"use strict";var i=n(468)(!0);n(233)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(t=i(t,e),this._i+=t.length,{value:t,done:!1})})},,function(t,e,n){n(472);for(var i=n(20),o=n(60),a=n(185),r=n(22)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=i[u],c=c&&c.prototype;c&&!c[r]&&o(c,r,u),a[u]=a.Array}},function(N,t,e){var p=e(3),o=e(951),n=e(148),i=e(129),s=e(111),a=e(119),r=e(280),l=e(199),u=(t.Image=l,e(218)),u=(t.Group=u,e(200)),u=(t.Text=u,e(937)),u=(t.Circle=u,e(943)),u=(t.Sector=u,e(942)),u=(t.Ring=u,e(939)),u=(t.Polygon=u,e(940)),u=(t.Polyline=u,e(941)),u=(t.Rect=u,e(938)),u=(t.Line=u,e(936)),u=(t.BezierCurve=u,e(935)),u=(t.Arc=u,e(931)),u=(t.CompoundPath=u,e(372)),u=(t.LinearGradient=u,e(932)),u=(t.RadialGradient=u,e(118)),u=(t.BoundingRect=u,e(278)),c=(t.IncrementalDisplayable=u,Math.round),h=Math.max,d=Math.min,f={};function g(t,e,n,i){t=o.createFromString(t,e),e=t.getBoundingRect();return n&&y(t,n="center"===i?m(n,e):n),t}function m(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}e=o.mergePath;function y(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function v(t,e,n){t=c(2*t);return(t+c(e))%2==0?t/2:(t+(n?1:-1))/2}function x(t){return null!=t&&"none"!=t}function _(t){return"string"==typeof t?n.lift(t,-.1):t}function b(t){if(t.__hoverStlDirty){var e,n=t.style.stroke,i=t.style.fill,o=t.__hoverStl,a=(o.fill=o.fill||(x(i)?_(i):null),o.stroke=o.stroke||(x(n)?_(n):null),{});for(e in o)null!=o[e]&&(a[e]=t.style[e]);t.__normalStl=a,t.__hoverStlDirty=!1}}function w(t){var e,n,i,o;t.__isHover||(b(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):((n=(e=t.style).insideRollbackOpt)&&(o=(i=e).insideRollback)&&(i.textFill=o.textFill,i.textStroke=o.textStroke,i.textStrokeWidth=o.textStrokeWidth),e.extendFrom(t.__hoverStl),n&&(k(e,e.insideOriginalTextPosition,n),null==e.textFill)&&(e.textFill=n.autoColor),t.dirty(!1),t.z2+=1),t.__isHover=!0)}function S(t){var e;t.__isHover&&(e=t.__normalStl,t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),--t.z2),t.__isHover=!1)}function M(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&w(t)}):w(t)}function I(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&S(t)}):S(t)}function T(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&b(t)}function A(t){this.__hoverSilentOnTouch&&t.zrByTouch||this.__isEmphasis||M(this)}function z(t){this.__hoverSilentOnTouch&&t.zrByTouch||this.__isEmphasis||I(this)}function V(){this.__isEmphasis=!0,M(this)}function B(){this.__isEmphasis=!1,I(this)}function D(t,e,n,i,o){return C(t,e,i,o),n&&p.extend(t,n),t.host&&t.host.dirty&&t.host.dirty(!1),t}function C(t,e,n,i){(n=n||f).isRectText&&(r=e.getShallow("position")||(i?null:"inside"),t.textPosition=r="outside"===r?"top":r,t.textOffset=e.getShallow("offset"),null!=(r=e.getShallow("rotate"))&&(r*=Math.PI/180),t.textRotation=r,t.textDistance=p.retrieve2(e.getShallow("distance"),i?null:5));var o,a,r=e.ecModel,s=r&&r.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||f).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(e);if(l)for(var u in o={},l)l.hasOwnProperty(u)&&(a=e.getModel(["rich",u]),L(o[u]={},a,s,n,i));t.rich=o,L(t,e,s,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={})}function L(t,e,n,i,o,a){n=!o&&n||f,t.textFill=P(e.getShallow("color"),i)||n.color,t.textStroke=P(e.getShallow("textBorderColor"),i)||n.textBorderColor,t.textStrokeWidth=p.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(o=t.textPosition,t.insideRollback=k(t,o,i),t.insideOriginalTextPosition=o,t.insideRollbackOpt=i),null==t.textFill&&(t.textFill=i.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&i.disableBox||(t.textBackgroundColor=P(e.getShallow("backgroundColor"),i),t.textPadding=e.getShallow("padding"),t.textBorderColor=P(e.getShallow("borderColor"),i),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function P(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function k(t,e,n){var i,o=n.useInsideStyle;return null==t.textFill&&!1!==o&&(!0===o||n.isRectText&&e&&"string"==typeof e&&0<=e.indexOf("inside"))&&(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke)&&(t.textStroke=n.autoColor,null==t.textStrokeWidth)&&(t.textStrokeWidth=2),i}function O(t,e,n,i,o,a){var r,s;"function"==typeof o&&(a=o,o=null),i&&i.isAnimationEnabled()&&(r=i.getShallow("animationDuration"+(t=t?"Update":"")),s=i.getShallow("animationEasing"+t),"function"==typeof(t=i.getShallow("animationDelay"+t))&&(t=t(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),0<(r="function"==typeof r?r(o):r))?e.animateTo(n,r,t||0,s,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}function E(t,e,n,i,o){O(!0,t,e,n,i,o)}function R(t,e,n){return e&&!p.isArrayLike(e)&&(e=r.getLocalTransform(e)),n&&(e=i.invert([],e)),s.applyTransform([],t,e)}t.extendShape=function(t){return a.extend(t)},t.extendPath=function(t,e){return o.extendFromString(t,e)},t.makePath=g,t.makeImage=function(t,e,n){var i=new l({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(m(e,t)))}});return i},t.mergePath=e,t.resizePath=y,t.subPixelOptimizeLine=function(t){var e=t.shape,n=t.style.lineWidth;return c(2*e.x1)===c(2*e.x2)&&(e.x1=e.x2=v(e.x1,n,!0)),c(2*e.y1)===c(2*e.y2)&&(e.y1=e.y2=v(e.y1,n,!0)),t},t.subPixelOptimizeRect=function(t){var e=t.shape,n=t.style.lineWidth,i=e.x,o=e.y,a=e.width,r=e.height;return e.x=v(e.x,n,!0),e.y=v(e.y,n,!0),e.width=Math.max(v(i+a,n,!1)-e.x,0===a?0:1),e.height=Math.max(v(o+r,n,!1)-e.y,0===r?0:1),t},t.subPixelOptimize=v,t.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&T(t,e)}):T(t,e),t.on("mouseover",A).on("mouseout",z),t.on("emphasis",V).on("normal",B)},t.setLabelStyle=function(t,e,n,i,o,a,r){var s,l=(o=o||f).labelFetcher,u=o.labelDataIndex,c=o.labelDimIndex,h=n.getShallow("show"),d=i.getShallow("show"),h=((h||d)&&null==(s=l?l.getFormattedLabel(u,"normal",null,c):s)&&(s=p.isFunction(o.defaultText)?o.defaultText(u,o):o.defaultText),h?s:null),d=d?p.retrieve2(l?l.getFormattedLabel(u,"emphasis",null,c):null,s):null;null==h&&null==d||(D(t,n,a,o),D(e,i,r,o,!0)),t.text=h,e.text=d},t.setTextStyle=D,t.setText=function(t,e,n){var i,o={isRectText:!0};!1===n?i=!0:o.autoColor=n,C(t,e,o,i),t.host&&t.host.dirty&&t.host.dirty(!1)},t.getFont=function(t,e){return e=e||e.getModel("textStyle"),p.trim([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))},t.updateProps=E,t.initProps=function(t,e,n,i,o){O(!1,t,e,n,i,o)},t.getTransform=function(t,e){for(var n=i.identity([]);t&&t!==e;)i.mul(n,t.getLocalTransform(),n),t=t.parent;return n},t.applyTransform=R,t.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=R(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},t.groupTransition=function(t,e,i,n){var o,a;function r(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=p.extend({},t.shape)),e}t&&e&&(a={},t.traverse(function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)}),o=a,e.traverse(function(t){var e,n;!t.isGroup&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),E(t,n,i,t.dataIndex))}))},t.clipPointsByRect=function(t,n){return p.map(t,function(t){var e=t[0],e=h(e,n.x),t=(e=d(e,n.x+n.width),t[1]),t=h(t,n.y);return[e,d(t,n.y+n.height)]})},t.clipRectByRect=function(t,e){var n=h(t.x,e.x),i=d(t.x+t.width,e.x+e.width),o=h(t.y,e.y),t=d(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}},t.createIcon=function(t,e,n){var i=(e=p.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),p.defaults(i,n),new l(e)):g(t.replace("path://",""),e,n,"center")}},,function(t,e,n){function g(t,e,n){var i,o,a,r=t&g.F,s=t&g.G,l=t&g.S,u=t&g.P,c=t&g.B,h=t&g.W,d=s?y:y[e]||(y[e]={}),p=d[b],f=s?m:l?m[e]:(m[e]||{})[b];for(i in n=s?e:n)(o=!r&&f&&void 0!==f[i])&&_(d,i)||(a=(o?f:n)[i],d[i]=s&&"function"!=typeof f[i]?n[i]:c&&o?v(a,m):h&&f[i]==a?function(i){function t(t,e,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,e)}return new i(t,e,n)}return i.apply(this,arguments)}return t[b]=i[b],t}(a):u&&"function"==typeof a?v(Function.call,a):a,u&&((d.virtual||(d.virtual={}))[i]=a,t&g.R)&&p&&!p[i]&&x(p,i,a))}var m=n(20),y=n(4),v=n(149),x=n(60),_=n(26),b="prototype";g.F=1,g.G=2,g.S=4,g.P=8,g.B=16,g.W=32,g.U=64,g.R=128,t.exports=g},,function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,function(t,e,n){var i=n(231);t.exports=function(t){return Object(i(t))}},,,,function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(24),o=n(28);t.exports=n(25)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var p=n(3);var i=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function a(t){return Math.floor(Math.log(t)/Math.LN10)}e.linearMap=function(t,e,n,i){var o=e[1]-e[0],a=n[1]-n[0];if(0==o)return 0==a?n[0]:(n[0]+n[1])/2;if(i)if(0<o){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*a+n[0]},e.parsePercent=function(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"string"==typeof t?t.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=(t=t.toString()).indexOf("e");return 0<e?(e=+t.slice(e+1))<0?-e:0:(e=t.indexOf("."))<0?0:t.length-1-e},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var i=p.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),n=p.map(t,function(t){return(isNaN(t)?0:t)/i*o*100}),a=100*o,r=p.map(n,function(t){return Math.floor(t)}),s=p.reduce(r,function(t,e){return t+e},0),l=p.map(n,function(t,e){return t-r[e]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++r[c],l[c]=0,++s}return r[e]/o},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return-1e-4<t&&t<1e-4},e.parseDate=function(t){var e,n;return t instanceof Date?t:"string"==typeof t?(e=i.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,a(t))},e.nice=function(t,e){var n=a(t),i=Math.pow(10,n),o=t/i;return t=(e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,-20<=n?+t.toFixed(n<0?-n:0):t},e.reformIntervals=function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,a=t[i].close,r=0;r<2;r++)o[r]<=e&&(o[r]=e,a[r]=r?1:1-n),e=o[r],n=a[r];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(i,1):i++}return t},e.isNumeric=function(t){return 0<=t-parseFloat(t)}},function(t,e,n){var i=n(24).f,o=n(26),a=n(22)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){function i(t){s(t,o,{value:{i:"O"+ ++l,w:{}}})}var o=n(63)("meta"),a=n(59),r=n(26),s=n(24).f,l=0,u=Object.isExtensible||function(){return!0},c=!n(52)(function(){return u(Object.preventExtensions({}))}),h=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,o)){if(!u(t))return"F";if(!e)return"E";i(t)}return t[o].i},getWeak:function(t,e){if(!r(t,o)){if(!u(t))return!0;if(!e)return!1;i(t)}return t[o].w},onFreeze:function(t){return c&&h.NEED&&u(t)&&!r(t,o)&&i(t),t}}},function(t,e,n){function i(){}var o=n(42),a=n(464),r=n(64),s=n(236)("IE_PROTO"),l="prototype",u=function(){var t=n(232)("iframe"),e=r.length;for(t.style.display="none",n(290).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;e--;)delete u[l][r[e]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(i[l]=o(t),n=new i,i[l]=null,n[s]=t):n=u(),void 0===e?n:a(n,e)}},function(t,e,n){var i=n(4),o=n(20),a="__core-js_shared__",r=o[a]||(o[a]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(27)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){},,,function(t,e,n){t.exports=!n(25)&&!n(52)(function(){return 7!=Object.defineProperty(n(232)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(183);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var r=n(26),s=n(8),l=n(453)(!1),u=n(236)("IE_PROTO");t.exports=function(t,e){var n,i=s(t),o=0,a=[];for(n in i)n!=u&&r(i,n)&&a.push(n);for(;e.length>o;)!r(i,n=e[o++])||~l(a,n)||a.push(n);return a}},function(t,e,n){t.exports=n(60)},,,function(t,e,n){var l=n(3),i=l.each,s=l.isObject,o=l.isArray,u="series\0";function h(t){return t instanceof Array?t:null==t?[]:[t]}function r(t){return s(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var a=0;function c(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=h,e.defaultEmphasis=function(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}},e.TEXT_STYLE_OPTIONS=["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"],e.getDataItemValue=function(t){return!s(t)||o(t)||t instanceof Date?t:t.value},e.isDataItemOption=function(t){return s(t)&&!(t instanceof Array)},e.mappingToExists=function(t,o){o=(o||[]).slice();var a=l.map(t||[],function(t,e){return{exist:t}});return i(o,function(t,e){if(s(t)){for(var n=0;n<a.length;n++)if(!a[n].option&&null!=t.id&&a[n].exist.id===t.id+"")return a[n].option=t,void(o[e]=null);for(n=0;n<a.length;n++){var i=a[n].exist;if(!(a[n].option||null!=i.id&&null!=t.id||null==t.name||r(t)||r(i)||i.name!==t.name+""))return a[n].option=t,void(o[e]=null)}}}),i(o,function(t,e){if(s(t)){for(var n=0;n<a.length;n++){var i=a[n].exist;if(!a[n].option&&!r(i)&&null==t.id){a[n].option=t;break}}n>=a.length&&a.push({option:t})}}),a},e.makeIdAndName=function(t){var r=l.createHashMap();i(t,function(t,e){var n=t.exist;n&&r.set(n.id,t)}),i(t,function(t,e){var n=t.option;l.assert(!n||null==n.id||!r.get(n.id)||r.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&r.set(n.id,t),t.keyInfo||(t.keyInfo={})}),i(t,function(t,e){var n=t.exist,i=t.option,o=t.keyInfo;if(s(i)){if(o.name=null!=i.name?i.name+"":n?n.name:u+e,n)o.id=n.id;else if(null!=i.id)o.id=i.id+"";else for(var a=0;o.id="\0"+o.name+"\0"+a++,r.get(o.id););r.set(o.id,t)}})},e.isNameSpecified=function(t){return!(!(t=t.name)||!t.indexOf(u))},e.isIdInner=r,e.compressBatches=function(t,e){var n={},i={};return o(t||[],n),o(e||[],i,n),[a(n),a(i)];function o(t,e,n){for(var i=0,o=t.length;i<o;i++)for(var a=t[i].seriesId,r=h(t[i].dataIndex),s=n&&n[a],l=0,u=r.length;l<u;l++){var c=r[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}function a(t,e){var n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=a(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}},e.queryDataIndex=function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?l.isArray(t.dataIndex)?l.map(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?l.isArray(t.name)?l.map(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0},e.makeInner=function(){var e="__\0ec_inner_"+a+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}},e.parseFinder=function(o,a,r){l.isString(a)&&((t={})[a+"Index"]=0,a=t);var t=r&&r.defaultMainType,s=(!t||c(a,t+"Index")||c(a,t+"Id")||c(a,t+"Name")||(a[t+"Index"]=0),{});return i(a,function(t,e){var n,i,t=a[e];"dataIndex"===e||"dataIndexInside"===e?s[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||null==t||"index"===e&&"none"===t||r&&r.includeMainTypes&&l.indexOf(r.includeMainTypes,n)<0||(i={mainType:n},"index"===e&&"all"===t||(i[e]=t),e=o.queryComponents(i),s[n+"Models"]=e,s[n+"Model"]=e[0]))}),s},e.setAttribute=function(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n},e.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}},function(t,e,n){"use strict";e.__esModule=!0;var n=n(181),i=(n=n)&&n.__esModule?n:{default:n};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,n){!function(t){"undefined"!=typeof window?e=window.__DEV__:void 0!==t&&(e=t.__DEV__);var e,t=e=void 0===e?!0:e;n.__DEV__=t}.call(n,function(){return this}())},function(t,e,n){var i=n(230),o=n(22)("iterator"),a=n(185);t.exports=n(4).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[i(t)]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var p=n(3),f=n(118),g=n(61).parsePercent,m=n(116),y=p.each,i=["left","right","top","bottom","width","height"],o=[["width","left","right"],["height","top","bottom"]];function a(s,l,u,c,h){var d=0,p=0,f=(null==c&&(c=1/0),null==h&&(h=1/0),0);l.eachChild(function(t,e){var n,i,o,a=t.position,r=t.getBoundingRect(),e=l.childAt(e+1),e=e&&e.getBoundingRect();f="horizontal"===s?(i=r.width+(e?-e.x+r.x:0),c<(n=d+i)||t.newline?(d=0,n=i,p+=f+u,r.height):Math.max(f,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(d+=f+u,p=0,o=i,r.width):Math.max(f,r.width)),t.newline||(a[0]=d,a[1]=p,"horizontal"===s?d=n+u:p=o+u)})}var n=a,r=p.curry(a,"vertical"),s=p.curry(a,"horizontal");function u(t,e,n){n=m.normalizeCssArray(n||0);var i=e.width,o=e.height,a=g(t.left,i),r=g(t.top,o),e=g(t.right,i),s=g(t.bottom,o),l=g(t.width,i),u=g(t.height,o),c=n[2]+n[0],h=n[1]+n[3],d=t.aspect;switch(isNaN(l)&&(l=i-e-h-a),isNaN(u)&&(u=o-s-c-r),null!=d&&(isNaN(l)&&isNaN(u)&&(i/o<d?l=.8*i:u=.8*o),isNaN(l)&&(l=d*u),isNaN(u))&&(u=l/d),isNaN(a)&&(a=i-e-l-h),isNaN(r)&&(r=o-s-u-c),t.left||t.right){case"center":a=i/2-l/2-n[3];break;case"right":a=i-l-h}switch(t.top||t.bottom){case"middle":case"center":r=o/2-u/2-n[0];break;case"bottom":r=o-u-c}a=a||0,r=r||0,isNaN(l)&&(l=i-h-a-(e||0)),isNaN(u)&&(u=o-c-r-(s||0));d=new f(a+n[3],r+n[0],l,u);return d.margin=n,d}function l(e,n){return n&&e&&y(i,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}e.LOCATION_PARAMS=i,e.HV_NAMES=o,e.box=n,e.vbox=r,e.hbox=s,e.getAvailableSize=function(t,e,n){var i=e.width,e=e.height,o=g(t.x,i),a=g(t.y,e),r=g(t.x2,i),s=g(t.y2,e);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(r)||isNaN(parseFloat(t.x2)))&&(r=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.y2)))&&(s=e),n=m.normalizeCssArray(n||0),{width:Math.max(r-o-n[1]-n[3],0),height:Math.max(s-a-n[0]-n[2],0)}},e.getLayoutRect=u,e.positionElement=function(t,e,n,i,o){var a,r,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],o=o&&o.boundingMode||"all";(s||l)&&("raw"===o?a="group"===t.type?new f(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(a=t.getBoundingRect(),t.needLocalTransform()&&(r=t.getLocalTransform(),(a=a.clone()).applyTransform(r))),e=u(p.defaults({width:a.width,height:a.height},e),n,i),r=t.position,n=s?e.x-a.x:0,i=l?e.y-a.y:0,t.attr("position","raw"===o?[n,i]:[r[0]+n,r[1]+i]))},e.sizeCalculable=function(t,e){return null!=t[o[e][0]]||null!=t[o[e][1]]&&null!=t[o[e][2]]},e.mergeLayoutParam=function(l,u,t){var c=(t=p.isObject(t)?t:{}).ignoreSize,t=(p.isArray(c)||(c=[c,c]),n(o[0],0)),e=n(o[1],1);function n(t,e){var n={},i=0,o={},a=0;if(y(t,function(t){o[t]=l[t]}),y(t,function(t){h(u,t)&&(n[t]=o[t]=u[t]),d(n,t)&&i++,d(o,t)&&a++}),c[e])d(u,t[1])?o[t[2]]=null:d(u,t[2])&&(o[t[1]]=null);else if(2!==a&&i){if(!(2<=i))for(var r=0;r<t.length;r++){var s=t[r];if(!h(n,s)&&h(l,s)){n[s]=l[s];break}}return n}return o}function h(t,e){return t.hasOwnProperty(e)}function d(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){y(t,function(t){e[t]=n[t]})}i(o[0],l,t),i(o[1],l,e)},e.getLayoutParams=function(t){return l({},t)},e.copyLayoutParams=l},,function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array;function o(t){return Math.sqrt(a(t))}var n=o;function a(t){return t[0]*t[0]+t[1]*t[1]}var r=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var c=u;e.create=function(t,e){var n=new i(2);return null==e&&(e=0),n[0]=t=null==t?0:t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=o,e.length=n,e.lenSquare=a,e.lengthSquare=r,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.normalize=function(t,e){var n=o(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=c,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},e.applyTransform=function(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},,,,,function(t,e,n){var c=n(3),i=n(137),u=n(61);var n=c.normalizeCssArray,o=/([&<>"'])/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function h(t){return null==t?"":(t+"").replace(o,function(t,e){return a[e]})}function d(t,e){return"{"+t+(null==e?"":e)+"}"}var p=["a","b","c","d","e","f","g"];function f(t,e){return"0000".substr(0,e-(t+="").length)+t}var r=i.truncateText,i=i.getBoundingRect;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t},e.normalizeCssArray=n,e.encodeHTML=h,e.formatTpl=function(t,e,n){var i=(e=c.isArray(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],a=0;a<o.length;a++){var r=p[a];t=t.replace(d(r),d(r,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(d(p[l],s),n?h(u):u)}return t},e.formatTplSimple=function(n,t,i){return c.each(t,function(t,e){n=n.replace("{"+e+"}",i?h(t):t)}),n},e.getTooltipMarker=function(t,e){var n=(t=c.isString(t)?{color:t,extraCssText:e}:t||{}).color,i=t.type,e=t.extraCssText;return n?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(n)+";"+(e||"")+'"></span>':""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=u.parseDate(e))["get"+(n=n?"UTC":"")+"FullYear"](),o=e["get"+n+"Month"]()+1,a=e["get"+n+"Date"](),r=e["get"+n+"Hours"](),s=e["get"+n+"Minutes"](),l=e["get"+n+"Seconds"](),e=e["get"+n+"Milliseconds"]();return t=t.replace("MM",f(o,2)).replace("M",o).replace("yyyy",i).replace("yy",i%100).replace("dd",f(a,2)).replace("d",a).replace("hh",f(r,2)).replace("h",r).replace("mm",f(s,2)).replace("m",s).replace("ss",f(l,2)).replace("s",l).replace("SSS",f(e,3))},e.capitalFirst=function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},e.truncateText=r,e.getTextRect=i},,function(t,e,n){var i,o,a,r,s=n(111),l=n(129),u=s.applyTransform,c=Math.min,h=Math.max;function d(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}d.prototype={constructor:d,union:function(t){var e=c(t.x,this.x),n=c(t.y,this.y);this.width=h(t.x+t.width,this.x+this.width)-e,this.height=h(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:(i=[],o=[],a=[],r=[],function(t){var e;t&&(i[0]=a[0]=this.x,i[1]=r[1]=this.y,o[0]=r[0]=this.x+this.width,o[1]=a[1]=this.y+this.height,u(i,i,t),u(o,o,t),u(a,a,t),u(r,r,t),this.x=c(i[0],o[0],a[0],r[0]),this.y=c(i[1],o[1],a[1],r[1]),t=h(i[0],o[0],a[0],r[0]),e=h(i[1],o[1],a[1],r[1]),this.width=t-this.x,this.height=e-this.y)}),calculateTransform:function(t){var e=t.width/this.width,n=t.height/this.height,i=l.create();return l.translate(i,i,[-this.x,-this.y]),l.scale(i,i,[e,n]),l.translate(i,i,[t.x,t.y]),i},intersect:function(t){if(!t)return!1;t instanceof d||(t=d.create(t));var e=this,n=e.x,i=e.x+e.width,o=e.y,e=e.y+e.height,a=t.x,r=t.x+t.width,s=t.y,t=t.y+t.height;return!(i<a||r<n||e<s||t<o)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)},t.exports=d},function(t,e,n){var i=n(198),a=n(3),r=n(180),s=n(927),p=n(373).prototype.getCanvasPattern,o=Math.abs,f=new r(!0);function l(t){i.call(this,t),this.path=null}l.prototype={constructor:l,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path||f,o=n.hasStroke(),a=n.hasFill(),r=n.fill,s=n.stroke,l=a&&!!r.colorStops,u=o&&!!s.colorStops,c=a&&!!r.image,h=o&&!!s.image,e=(n.bind(t,this,e),this.setTransform(t),this.__dirty&&(l&&(d=d||this.getBoundingRect(),this._fillGradient=n.getGradient(t,r,d)),u)&&(d=d||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,d)),l?t.fillStyle=this._fillGradient:c&&(t.fillStyle=p.call(r,t)),u?t.strokeStyle=this._strokeGradient:h&&(t.strokeStyle=p.call(s,t)),n.lineDash),d=n.lineDashOffset,l=!!t.setLineDash,c=this.getGlobalScale();i.setScale(c[0],c[1]),this.__dirtyPath||e&&!l&&o?(i.beginPath(t),e&&!l&&(i.setLineDash(e),i.setLineDashOffset(d)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a&&i.fill(t),e&&l&&(t.setLineDash(e),t.lineDashOffset=d),o&&i.stroke(t),e&&l&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=(t=this.path)||(this.path=new r),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()),this._rect=n,i.hasStroke()?(t=this._rectWithStroke||(this._rectWithStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),o=i.lineWidth,e=i.strokeNoScale?this.getLineScale():1,i.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path.data;if(o.hasStroke()){var i=o.lineWidth,a=o.strokeNoScale?this.getLineScale():1;if(1e-10<a&&(o.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),s.containStroke(n,i/a,t,e)))return!0}if(o.hasFill())return s.contain(n,t,e)}return!1},dirty:function(t){(t=null==t?!0:t)&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(a.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&1e-10<o(t[0]-1)&&1e-10<o(t[3]-1)?Math.sqrt(o(t[0]*t[3]-t[2]*t[1])):1}},l.extend=function(o){function t(t){l.call(this,t),o.style&&this.style.extendFrom(o.style,!1);var e=o.shape;if(e){this.shape=this.shape||{};var n,i=this.shape;for(n in e)!i.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(i[n]=e[n])}o.init&&o.init.call(this,t)}for(var e in a.inherits(t,l),o)"style"!==e&&"shape"!==e&&(t.prototype[e]=o[e]);return t},a.inherits(l,i),t.exports=l},function(t,e,n){var r=n(3),o=n(122),a=n(213),i=n(143),s=i.enableClassManagement,l=i.parseClassType,i=n(77).makeInner,u=n(109),n=n(765),c=i(),h=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){o.call(this,t,e,n,i),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?u.getLayoutParams(t):{},e=e.getTheme();r.merge(t,e.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&u.mergeLayoutParam(t,i,n)},mergeOption:function(t,e){r.merge(this.option,t,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=c(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&e.push(i),n=n.superClass}for(var o={},a=e.length-1;0<=a;a--)o=r.merge(o,e[a],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(h,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(h),a.enableTopologicalTravel(h,function(t){var e=[];r.each(h.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=r.map(e,function(t){return l(t).main}),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e}),r.mixin(h,n),t.exports=h},function(t,e){var n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:function(t){var e={},n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),t=/micromessenger/i.test(t);n&&(e.firefox=!0,e.version=n[1]);i&&(e.ie=!0,e.version=i[1]);o&&(e.edge=!0,e.version=o[1]);t&&(e.weChat=!0);return{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&11<=e.version)}}(navigator.userAgent);t.exports=n},function(t,e,n){var i=n(3),o=n(121),a=n(77).makeInner,r=n(143),s=r.enableClassExtend,r=r.enableClassCheck,l=n(767),u=n(764),c=n(768),n=n(766),h=i.mixin,d=a();function p(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function f(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return t=null==t&&n?n.get(e):t}function g(t,e){var n=d(t).getParent;return n?n.call(t,e):t.parentModel}p.prototype={constructor:p,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:f(this.option,this.parsePath(t),!e&&g(this,t))},getShallow:function(t,e){var n=this.option,n=null==n?n:n[t],e=!e&&g(this,t);return n=null==n&&e?e.getShallow(t):n},getModel:function(t,e){var n;return new p(null==t?this.option:f(this.option,t=this.parsePath(t)),e=e||(n=g(this,t))&&n.getModel(t),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new this.constructor(i.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return t="string"==typeof t?t.split("."):t},customizeGetParent:function(t){d(this).getParent=t},isAnimationEnabled:function(){if(!o.node)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0}},s(p),r(p),h(p,l),h(p,u),h(p,c),h(p,n),t.exports=p},function(t,e,n){n(79).__DEV__;var f=n(3),i=n(121),o=n(116),g=o.formatTime,m=o.encodeHTML,y=o.addCommas,v=o.getTooltipMarker,x=n(77),a=n(120),r=n(356),o=n(254),s=n(109),l=s.getLayoutParams,u=s.mergeLayoutParam,c=n(255).createTask,s=n(209),h=s.prepareSource,d=s.getSource,_=n(163).retrieveRawValue,p=x.makeInner(),s=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=c({count:w,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),h(this);t=this.getInitialData(t,n);I(t,this),this.dataTask.context.data=t,p(this).dataBeforeProcessed=t,b(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?l(t):{},o=this.subType;a.hasClass(o),f.merge(t,e.getTheme().get(this.subType)),f.merge(t,this.getDefaultOption()),x.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&u(t,i,n)},mergeOption:function(t,e){t=f.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode,n=(n&&u(this.option,t,n),h(this),this.getInitialData(t,e));I(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,p(this).dataBeforeProcessed=n,b(this)},fillDataTextStyle:function(t){if(t&&!f.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&x.defaultEmphasis(t[n],"label",e)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=A(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):p(this).data},setData:function(t){var e,n=A(this);n&&((e=n.context).data!==t&&n.modifyOutputEnd&&n.setOutputEnd(t.count()),e.outputData=t,n!==this.dataTask)&&(e.data=t),p(this).data=t},getSource:function(){return d(this)},getRawData:function(){return p(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(e,o,t){function n(t){return m(y(t))}var a,r,s=this.getData(),i=s.mapDimension("defaultedTooltip",!0),l=i.length,u=this.getRawValue(e),c=f.isArray(u),h=s.getItemVisual(e,"color"),d=(h=(h=f.isObject(h)&&h.colorStops?(h.colorStops[0]||{}).color:h)||"transparent",1<l||c&&!l?(d=u,a=f.reduce(d,function(t,e,n){n=s.getDimensionInfo(n);return t|(n&&!1!==n.tooltip&&null!=n.displayName)},0),r=[],i.length?f.each(i,function(t){p(_(s,e,t),t)}):f.each(d,p),(a?"<br/>":"")+r.join(a?"<br/>":", ")):n(l?_(s,e,i[0]):c?u[0]:u));function p(t,e){var n,i,e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(n=e.type,i=v({color:h,type:"subItem"}),i=(a?i+m(e.displayName||"-")+": ":"")+m("ordinal"===n?t+"":"time"===n?o?"":g("yyyy/MM/dd hh:mm:ss",t):y(t)))&&r.push(i)}l=v(h),i=s.getName(e),c=this.name,c=(c=x.isNameSpecified(this)?c:"")?m(c)+(o?": ":"<br/>"):"";return o?l+c+d:c+l+(i?m(i)+": "+d:d)},isAnimationEnabled:function(){var t;return!(i.node||(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel;return r.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function b(t){var e,n,i=t.name;x.isNameSpecified(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimension("seriesName",!0),n=[],f.each(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function w(t){return t.model.getRawData().count()}function S(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),M}function M(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function I(e,n){f.each(e.CHANGABLE_METHODS,function(t){e.wrapMethod(t,f.curry(T,n))})}function T(t){t=A(t);t&&t.setOutputEnd(this.count())}function A(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}f.mixin(s,o),f.mixin(s,r),t.exports=s},,,,,,function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return o(t),t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(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}e.create=i,e.identity=o,e.copy=a,e.mul=function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],r=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=a,t[3]=r,t[4]=s,t[5]=n,t},e.translate=function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},e.rotate=function(t,e,n){var i=e[0],o=e[2],a=e[4],r=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+r*l,t[1]=-i*l+r*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*a+l*e,t[5]=n*e-l*a,t},e.scale=function(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t},e.invert=function(t,e){var n=e[0],i=e[2],o=e[4],a=e[1],r=e[3],e=e[5],s=n*r-a*i;return s?(t[0]=r*(s=1/s),t[1]=-a*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-r*o)*s,t[5]=(a*o-n*e)*s,t):null},e.clone=function(t){var e=i();return a(e,t),e}},,,,function(t,e,n){n(79).__DEV__;var E=n(3),i=n(122),o=n(162),a=n(192),r=n(163),s=r.defaultDimValueGetters,l=r.DefaultDataProvider,u=n(193).summarizeDimensions,c=E.isObject,r="undefined",R={float:typeof Float64Array==r?Array:Float64Array,int:typeof Int32Array==r?Array:Int32Array,ordinal:Array,number:Array,time:Array},N=typeof Uint32Array==r?Array:Uint32Array,h=typeof Uint16Array==r?Array:Uint16Array;function T(t){return 65535<t._rawCount?N:h}var d=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],p=["_extent","_approximateExtent","_rawExtent"];function f(e,n){E.each(d.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,E.each(p,function(t){e[t]=E.clone(n[t])}),e._calculationInfo=E.extend(n._calculationInfo)}function g(t,e){t=t||["x","y"];for(var n={},i=[],o={},a=0;a<t.length;a++){var r=t[a],s=(r=E.isString(r)?{name:r}:r).name;r.type=r.type||"float",r.coordDim||(r.coordDim=s,r.coordDimIndex=0),r.otherDims=r.otherDims||{},i.push(s),(n[s]=r).index=a,r.createInvertedIndices&&(o[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=u(this),this._invertedIndicesMap=o,this._calculationInfo={}}n=g.prototype;function m(t,e,n){var i,o,a;return o=null!=e&&(i=t._chunkSize,a=Math.floor(n/i),e=t.dimensions[e],a=t._storage[e][a])&&(o=a[n%i],a=t._dimensionInfos[e].ordinalMeta)&&a.categories.length?a.categories[o]:o}function A(t){return t}function D(t){return t<this._count&&0<=t?this._indices[t]:-1}function y(t,e){var n=t._idList[e];return n=null==(n=null==n?m(t,t._idDimIdx,e):n)?"e\0\0"+e:n}function b(t){return t=E.isArray(t)?t:[t]}function w(t,e){for(var n=t.dimensions,i=new g(E.map(n,t.getDimensionInfo,t),t.hostModel),o=(f(i,t),i._storage={}),a=t._storage,r=0;r<n.length;r++){var s=n[r];a[s]&&(0<=E.indexOf(e,s)?(o[s]=function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(t[n]);return e}(a[s]),i._rawExtent[s]=z(),i._extent[s]=null):o[s]=a[s])}return i}function z(){return[1/0,-1/0]}n.type="list",n.hasItemOption=!0,n.getDimension=function(t){return t=isNaN(t)?t:this.dimensions[t]||t},n.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},n.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},n.mapDimension=function(t,e){var n=this._dimensionsSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t],!0===e?(n||[]).slice():n&&n[e])},n.initData=function(t,e,n){(a.isInstance(t)||E.isArrayLike(t))&&(t=new l(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=s[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},n.getProvider=function(){return this._rawData},n.appendData=function(t){var e=this._rawData,n=this.count(),t=(e.appendData(t),e.count());e.persistent||(t+=n),this._initDataFromProvider(n,t)},n._initDataFromProvider=function(t,e){if(!(e<=t)){for(var n,i=this._chunkSize,o=this._rawData,a=this._storage,r=this.dimensions,s=r.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=p-1,g=0;g<s;g++){h[P=r[g]]||(h[P]=z());var m=l[P],y=(0===m.otherDims.itemName&&(n=this._nameDimIdx=g),0===m.otherDims.itemId&&(this._idDimIdx=g),R[m.type]),v=(a[P]||(a[P]=[]),a[P][f]);if(v&&v.length<i){for(var x=new y(Math.min(e-f*i,i)),_=0;_<v.length;_++)x[_]=v[_];a[P][f]=x}for(var b=p*i;b<e;b+=i)a[P].push(new y(Math.min(e-b,i)));this._chunkCount=a[P].length}for(var w,S,M=new Array(s),I=t;I<e;I++){for(var T,A,D,M=o.getItem(I,M),C=Math.floor(I/i),L=I%i,b=0;b<s;b++){var P,k=a[P=r[b]][C],O=this._dimValueGetter(M,P,I,b),k=(k[L]=O,h[P]);O<k[0]&&(k[0]=O),O>k[1]&&(k[1]=O)}o.pure||(T=u[I],M&&null==T&&(null!=M.name?u[I]=T=M.name:null!=n&&(A=a[D=r[n]][C])&&(T=A[L],A=l[D].ordinalMeta)&&A.categories.length&&(T=A.categories[T])),null==(D=null==M?null:M.id)&&null!=T&&(d[T]=d[T]||0,0<d[D=T]&&(D+="__ec__"+d[T]),d[T]++),null!=D&&(c[I]=D))}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=e,this._extent={},S=(w=this)._invertedIndicesMap,E.each(S,function(t,e){var n=w._dimensionInfos[e].ordinalMeta;if(n){t=S[e]=new N(n.categories.length);for(var i=0;i<t.length;i++)t[i]=NaN;for(i=0;i<w._count;i++)t[w.get(e,i)]=i}})}},n.count=function(){return this._count},n.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){o=new e(n);for(var i=0;i<n;i++)o[i]=t[i]}else o=new e(t.buffer,0,n)}else for(var o=new(e=T(this))(this.count()),i=0;i<o.length;i++)o[i]=i;return o},n.get=function(t,e){if(!(0<=e&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),e=e%this._chunkSize;return n[t][i][e]},n.getByRawIndex=function(t,e){var n;return 0<=e&&e<this._rawCount&&(t=this._storage[t])?(n=Math.floor(e/this._chunkSize),e=e%this._chunkSize,t[n][e]):NaN},n._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),e=e%this._chunkSize;return this._storage[t][n][e]},n.getValues=function(t,e){var n=[];E.isArray(t)||(e=t,t=this.dimensions);for(var i=0,o=t.length;i<o;i++)n.push(this.get(t[i],e));return n},n.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=this._dimensionInfos,i=0,o=e.length;i<o;i++)if("ordinal"!==n[e[i]].type&&isNaN(this.get(e[i],t)))return!1;return!0},n.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=z();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(e=this._extent[t])return e.slice();for(var o=(e=n)[0],a=e[1],r=0;r<i;r++){var s=this._getFast(t,this.getRawIndex(r));s<o&&(o=s),a<s&&(a=s)}return this._extent[t]=e=[o,a]},n.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},n.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.getCalculationInfo=function(t){return this._calculationInfo[t]},n.setCalculationInfo=function(t,e){c(t)?E.extend(this._calculationInfo,t):this._calculationInfo[t]=e},n.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},n.getMedian=function(t){var n=[],t=(this.each(t,function(t,e){isNaN(t)||n.push(t)}),[].concat(n).sort(function(t,e){return t-e})),e=this.count();return 0===e?0:e%2==1?t[(e-1)/2]:(t[e/2]+t[e/2-1])/2},n.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},n.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},n.indexOfRawIndex=function(t){if(!this._indices)return t;if(!(t>=this._rawCount||t<0)){var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(e[a]<t)i=1+a;else{if(!(e[a]>t))return a;o=a-1}}}return-1},n.indicesOfNearest=function(t,e,n){var i=[];if(this._storage[t]){null==n&&(n=1/0);for(var o=Number.MAX_VALUE,a=-1,r=0,s=this.count();r<s;r++){var l=e-this.get(t,r),u=Math.abs(l);l<=n&&u<=o&&((u<o||0<=l&&a<0)&&(o=u,a=l,i.length=0),i.push(r))}}return i},n.getRawIndex=A,n.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},n.getName=function(t){t=this.getRawIndex(t);return this._nameList[t]||m(this,this._nameDimIdx,t)||""},n.getId=function(t){return y(this,this.getRawIndex(t))},n.each=function(t,e,n,i){"use strict";if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;for(var o=(t=E.map(b(t),this.getDimension,this)).length,a=0;a<this.count();a++)switch(o){case 0:e.call(n,a);break;case 1:e.call(n,this.get(t[0],a),a);break;case 2:e.call(n,this.get(t[0],a),this.get(t[1],a),a);break;default:for(var r=0,s=[];r<o;r++)s[r]=this.get(t[r],a);s[r]=a,e.apply(n,s)}}},n.filterSelf=function(t,e,n,i){"use strict";if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this,t=E.map(b(t),this.getDimension,this);for(var o=this.count(),a=new(T(this))(o),r=[],s=t.length,l=0,u=t[0],c=0;c<o;c++){var h=this.getRawIndex(c);if(0===s)p=e.call(n,c);else if(1===s)var d=this._getFast(u,h),p=e.call(n,d,c);else{for(var f=0;f<s;f++)r[f]=this._getFast(u,h);r[f]=c,p=e.apply(n,r)}p&&(a[l++]=h)}return l<o&&(this._indices=a),this._count=l,this._extent={},this.getRawIndex=this._indices?D:A,this}},n.selectRange=function(t){"use strict";if(this._count){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);var i=n.length;if(i){var o=this.count(),a=new(T(this))(o),r=0,s=n[0],l=t[s][0],u=t[s][1],c=!1;if(!this._indices){var h=0;if(1===i){for(var d=this._storage[n[0]],p=0;p<this._chunkCount;p++)for(var f=d[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<g;m++)(l<=(b=f[m])&&b<=u||isNaN(b))&&(a[r++]=h),h++;c=!0}else if(2===i){for(var d=this._storage[s],y=this._storage[n[1]],v=t[n[1]][0],x=t[n[1]][1],p=0;p<this._chunkCount;p++)for(var f=d[p],_=y[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<g;m++){var b=f[m],w=_[m];(l<=b&&b<=u||isNaN(b))&&(v<=w&&w<=x||isNaN(w))&&(a[r++]=h),h++}c=!0}}if(!c)if(1===i)for(m=0;m<o;m++){var S=this.getRawIndex(m);(l<=(b=this._getFast(s,S))&&b<=u||isNaN(b))&&(a[r++]=S)}else for(m=0;m<o;m++){for(var M=!0,S=this.getRawIndex(m),p=0;p<i;p++){var I=n[p];((b=this._getFast(e,S))<t[I][0]||b>t[I][1])&&(M=!1)}M&&(a[r++]=this.getRawIndex(m))}return r<o&&(this._indices=a),this._count=r,this._extent={},this.getRawIndex=this._indices?D:A,this}}},n.mapArray=function(t,e,n,i){"use strict";"function"==typeof t&&(i=n,n=e,e=t,t=[]);var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},n=n||i||this),o},n.map=function(t,e,n,i){"use strict";n=n||i||this;for(var i=w(this,t=E.map(b(t),this.getDimension,this)),o=(i._indices=this._indices,i.getRawIndex=i._indices?D:A,i._storage),a=[],r=this._chunkSize,s=t.length,l=this.count(),u=[],c=i._rawExtent,h=0;h<l;h++){for(var d=0;d<s;d++)u[d]=this.get(t[d],h);u[s]=h;var p=e&&e.apply(n,u);if(null!=p){"object"!=typeof p&&(a[0]=p,p=a);for(var f=this.getRawIndex(h),g=Math.floor(f/r),m=f%r,y=0;y<p.length;y++){var v=t[y],x=p[y],_=c[v],v=o[v];v&&(v[g][m]=x),x<_[0]&&(_[0]=x),x>_[1]&&(_[1]=x)}}}return i},n.downSample=function(t,e,n,i){for(var o=w(this,[t]),a=o._storage,r=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=this._chunkSize,h=o._rawExtent[t],d=new(T(this))(u),p=0,f=0;f<u;f+=s){u-f<s&&(r.length=s=u-f);for(var g=0;g<s;g++){var m=this.getRawIndex(f+g),y=Math.floor(m/c);r[g]=l[y][m%c]}var v=n(r),x=this.getRawIndex(Math.min(f+i(r,v)||0,u-1));(l[Math.floor(x/c)][x%c]=v)<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),d[p++]=x}return o._count=p,o._indices=d,o.getRawIndex=D,o},n.getItemModel=function(t){var e=this.hostModel;return new i(this.getRawDataItem(t),e,e&&e.ecModel)},n.diff=function(e){var n=this;return new o(e?e.getIndices():[],this.getIndices(),function(t){return y(e,t)},function(t){return y(n,t)})},n.getVisual=function(t){var e=this._visual;return e&&e[t]},n.setVisual=function(t,e){if(c(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},n.setLayout=function(t,e){if(c(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},n.getLayout=function(t){return this._layout[t]},n.getItemLayout=function(t){return this._itemLayouts[t]},n.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?E.extend(this._itemLayouts[t]||{},e):e},n.clearItemLayouts=function(){this._itemLayouts.length=0},n.getItemVisual=function(t,e,n){t=this._itemVisuals[t],t=t&&t[e];return null!=t||n?t:this.getVisual(e)},n.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},o=this.hasItemVisual;if(this._itemVisuals[t]=i,c(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],o[a]=!0);else i[e]=n,o[e]=!0},n.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};function v(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType}n.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type)&&e.traverse(v,e),this._graphicEls[t]=e},n.getItemGraphicEl=function(t){return this._graphicEls[t]},n.eachItemGraphicEl=function(n,i){E.each(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},n.cloneShallow=function(t){var e;return t||(e=E.map(this.dimensions,this.getDimensionInfo,this),t=new g(e,this.hostModel)),t._storage=this._storage,f(t,this),this._indices?(e=this._indices.constructor,t._indices=new e(this._indices)):t._indices=null,t.getRawIndex=t._indices?D:A,t},n.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(E.slice(arguments)))})},n.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],n.CHANGABLE_METHODS=["filterSelf","selectRange"],t.exports=g},function(t,e,n){var i=n(3),l=n(48),u=n(118),n=l.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),o=l.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),a=l.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,a=o*o/(e-o),e=i-e+o+a,r=Math.asin(a/o),s=Math.cos(r)*o,l=Math.sin(r),u=Math.cos(r),c=.6*o,h=.7*o;t.moveTo(n-s,e+a),t.arc(n,e,o,Math.PI-r,2*Math.PI+r),t.bezierCurveTo(n+s-l*c,e+a+u*c,n,i-h,n,i),t.bezierCurveTo(n,i-h,n-s+l*c,e+a+u*c,n-s,e+a),t.closePath()}}),r=l.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),o={line:l.Line,rect:l.Rect,roundRect:l.Rect,square:l.Rect,circle:l.Circle,diamond:o,pin:a,arrow:r,triangle:n},s={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i);o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},c={},h=(i.each(o,function(t,e){c[e]=new t}),l.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,o=c[i];"none"!==e.symbolType&&(o=o||c[i="rect"],s[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,n))}}));function d(t,e){var n,i;"image"!==this.type&&(n=this.style,(i=this.shape)&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1))}e.createSymbol=function(t,e,n,i,o,a,r){var s=0===t.indexOf("empty");return(r=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?l.makeImage(t.slice(8),new u(e,n,i,o),r?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new u(e,n,i,o),r?"center":"cover"):new h({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,r.setColor=d,r.setColor(a),r}},function(t,e,n){var a=n(3),r={};function i(){this._coordinateSystems=[]}i.prototype={constructor:i,create:function(n,i){var o=[];a.each(r,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},update:function(e,n){a.each(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},i.register=function(t,e){r[t]=e},i.get=function(t){return r[t]},t.exports=i},function(t,e,n){n(79).__DEV__;var f=n(3),i=n(774),o=n(211),a=n(212),g=n(61),r=n(210),m=r.prepareLayoutBarSeries,y=r.makeColumnLayout,v=r.retrieveColumnLayout,x=n(118);function s(t,e){var n,i,o,a,r,s=t.type,l=e.getMin(),u=e.getMax(),c=null!=l,h=null!=u,d=t.getExtent(),p=("ordinal"===s?p=e.getCategories().length:(n=e.get("boundaryGap"),(n="boolean"==typeof(n=f.isArray(n)?n:[n||0,n||0])[0]?[0,0]:n)[0]=g.parsePercent(n[0],1),n[1]=g.parsePercent(n[1],1),o=d[1]-d[0]||Math.abs(d[0])),null==l&&(l="ordinal"===s?p?0:NaN:d[0]-n[0]*o),null==u&&(u="ordinal"===s?p?p-1:NaN:d[1]+n[1]*o),"dataMin"===l?l=d[0]:"function"==typeof l&&(l=l({min:d[0],max:d[1]})),"dataMax"===u?u=d[1]:"function"==typeof u&&(u=u({min:d[0],max:d[1]})),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN),t.setBlank(f.eqNaN(l)||f.eqNaN(u)||"ordinal"===s&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(l=0<l&&0<u&&!c?0:l)<0&&u<0&&!h&&(u=0),e.ecModel);return p&&"time"===s&&(n=m("bar",p),f.each(n,function(t){i|=t.getBaseAxis()===e.axis}),i)&&(o=y(n),d=l,t=u,c=o,s=(s=(h=e).axis.getExtent())[1]-s[0],void 0!==(c=v(c,h.axis))&&(a=1/0,f.each(c,function(t){a=Math.min(t.offset,a)}),r=-1/0,f.each(c,function(t){r=Math.max(t.offset+t.width,r)}),a=Math.abs(a),r=Math.abs(r),t+=r/(h=a+r)*(s=(c=t-d)/(1-(a+r)/s)-c),d-=a/h*s),l=(p={min:d,max:t}).min,u=p.max),[l,u]}function _(n){var e,i=n.getLabelModel().get("formatter"),o="category"===n.type?n.scale.getExtent()[0]:null;return"string"==typeof i?(e=i,i=function(t){return e.replace("{value}",null!=t?t:"")}):"function"==typeof i?function(t,e){return null!=o&&(e=t-o),i(l(n,t),e)}:function(t){return n.scale.getLabel(t)}}function l(t,e){return"category"===t.type?t.scale.getLabel(e):e}n(775),n(773),e.getScaleExtent=s,e.niceScaleExtent=function(t,e){var n=s(t,e),i=null!=e.getMin(),o=null!=e.getMax(),a=e.get("splitNumber"),r=("log"===t.type&&(t.base=e.get("logBase")),t.type);t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:a,fixMin:i,fixMax:o,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null}),null!=(n=e.get("interval"))&&t.setInterval&&t.setInterval(n)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(a.getClass(e)||o).create(t)}},e.ifAxisCrossZero=function(t){var e=(t=t.scale.getExtent())[0],t=t[1];return!(0<e&&0<t||e<0&&t<0)},e.makeLabelFormatter=_,e.getAxisRawValue=l,e.estimateLabelUnionRect=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,o,e="category"===t.type,a=n.getExtent(),r=e?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=_(t),u=1;40<r&&(u=Math.ceil(r/40));for(var c,h,d,p=0;p<r;p+=u){var f=l(i?i[p]:a[0]+p),f=s.getTextRect(f),g=(f=f,c=s.get("rotate")||0,h=d=g=h=void 0,c=c*Math.PI/180,f=f.plain(),h=f.width,g=f.height,d=h*Math.cos(c)+g*Math.sin(c),h=h*Math.sin(c)+g*Math.cos(c),new x(f.x,f.y,d,h));o?o.union(g):o=g}return o}}},function(t,e,n){var p=n(118),D=n(279),n=n(3),i=n.getContext,l=n.extend,C=n.retrieve2,L=n.retrieve3,o=n.trim,s={},u=0,c=5e3,P=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,h="12px sans-serif",a={};function k(t,e){var n=t+":"+(e=e||h);if(s[n])return s[n];for(var i=(t+"").split("\n"),o=0,a=0,r=i.length;a<r;a++)o=Math.max(d(i[a],e).width,o);return c<u&&(u=0,s={}),u++,s[n]=o}function f(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function g(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function O(t,e,n,i,o){if(!e)return"";var a=(t+"").split("\n");o=m(e,n,i,o);for(var r=0,s=a.length;r<s;r++)a[r]=y(a[r],o);return a.join("\n")}function m(t,e,n,i){(i=l({},i)).font=e;for(var n=C(n,"..."),o=(i.maxIterations=C(i.maxIterations,2),i.minChar=C(i.minChar,0)),a=(i.cnCharWidth=k("国",e),i.ascCharWidth=k("a",e)),r=(i.placeholder=C(i.placeholder,""),t=Math.max(0,t-1)),s=0;s<o&&a<=r;s++)r-=a;e=k(n);return r<e&&(n="",e=0),r=t-e,i.ellipsis=n,i.ellipsisWidth=e,i.contentWidth=r,i.containerWidth=t,i}function y(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var a=k(t,i);if(!(a<=n)){for(var r=0;;r++){if(a<=o||r>=e.maxIterations){t+=e.ellipsis;break}var s=0===r?function(t,e,n,i){for(var o=0,a=0,r=t.length;a<r&&o<e;a++){var s=t.charCodeAt(a);o+=0<=s&&s<=127?n:i}return a}(t,o,e.ascCharWidth,e.cnCharWidth):0<a?Math.floor(t.length*o/a):0,a=k(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function E(t){return k("国",t)}function d(t,e){return a.measureText(t,e)}function v(t,e,n,i){null!=t&&(t+="");var o=E(e),a=t?t.split("\n"):[],r=a.length*o,s=r;if(n&&(s+=n[0]+n[2]),t&&i){var l=i.outerHeight,u=i.outerWidth;if(null!=l&&l<s)t="",a=[];else if(null!=u)for(var c=m(u-(n?n[1]+n[3]:0),e,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),h=0,d=a.length;h<d;h++)a[h]=y(a[h],c)}return{lines:a,height:r,outerHeight:s,lineHeight:o}}function x(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),t){for(var i,o=P.lastIndex=0;null!=(i=P.exec(t));){var a=i.index;o<a&&R(n,t.substring(o,a)),R(n,i[2],i[1]),o=P.lastIndex}o<t.length&&R(n,t.substring(o,t.length));var r=n.lines,s=0,l=0,u=[],c=e.textPadding,h=e.truncate,d=h&&h.outerWidth,p=h&&h.outerHeight;c&&(null!=d&&(d-=c[1]+c[3]),null!=p)&&(p-=c[0]+c[2]);for(var f=0;f<r.length;f++){for(var g=r[f],m=0,y=0,v=0;v<g.tokens.length;v++){var x=(T=g.tokens[v]).styleName&&e.rich[T.styleName]||{},_=T.textPadding=x.textPadding,b=T.font=x.font||e.font,w=T.textHeight=C(x.textHeight,E(b));if(_&&(w+=_[0]+_[2]),T.height=w,T.lineHeight=L(x.textLineHeight,e.textLineHeight,w),T.textAlign=x&&x.textAlign||e.textAlign,T.textVerticalAlign=x&&x.textVerticalAlign||"middle",null!=p&&s+T.lineHeight>p)return{lines:[],width:0,height:0};T.textWidth=k(T.text,b);var S,M=x.textWidth,I=null==M||"auto"===M;"string"==typeof M&&"%"===M.charAt(M.length-1)?(T.percentWidth=M,u.push(T),M=0):(I&&(M=T.textWidth,S=(S=x.textBackgroundColor)&&S.image)&&(S=D.findExistImage(S),D.isImageReady(S))&&(M=Math.max(M,S.width*w/S.height)),M+=w=_?_[1]+_[3]:0,null!=(S=null!=d?d-y:null)&&S<M&&(!I||S<w?(T.text="",T.textWidth=M=0):(T.text=O(T.text,S-w,b,h.ellipsis,{minChar:h.minChar}),T.textWidth=k(T.text,b),M=T.textWidth+w))),y+=T.width=M,x&&(m=Math.max(m,T.lineHeight))}g.width=y,s+=g.lineHeight=m,l=Math.max(l,y)}n.outerWidth=n.width=C(e.textWidth,l),n.outerHeight=n.height=C(e.textHeight,s),c&&(n.outerWidth+=c[1]+c[3],n.outerHeight+=c[0]+c[2]);for(f=0;f<u.length;f++){var T,A=(T=u[f]).percentWidth;T.width=parseInt(A,10)/100*l}}return n}function R(t,e,n){for(var i=""===e,o=e.split("\n"),a=t.lines,r=0;r<o.length;r++){var s,l,u=o[r],c={styleName:n,text:u,isLineHolder:!u&&!i};r?a.push({tokens:[c]}):1===(l=(s=(a[a.length-1]||(a[0]={tokens:[]})).tokens).length)&&s[0].isLineHolder?s[0]=c:!u&&l&&!i||s.push(c)}}a.measureText=function(t,e){var n=i();return n.font=e||h,n.measureText(t)},e.DEFAULT_FONT=h,e.$override=function(t,e){a[t]=e},e.getWidth=k,e.getBoundingRect=function(t,e,n,i,o,a,r){var s,l,u,c,h,d;return a?(l=i,a=(c=x(c=t,{rich:a=a,truncate:s=r,font:u=e,textAlign:h=n,textPadding:d=o})).outerWidth,s=c.outerHeight,u=f(0,a,h),d=g(0,s,l),new p(u,d,a,s)):(c=n,h=i,a=v(l=t,u=e,d=o,a=r),l=k(l,u),d&&(l+=d[1]+d[3]),u=a.outerHeight,d=f(0,l,c),c=g(0,u,h),(h=new p(d,c,l,u)).lineHeight=a.lineHeight,h)},e.adjustTextX=f,e.adjustTextY=g,e.adjustTextPositionOnRect=function(t,e,n){var i=e.x,o=e.y,a=e.height,r=e.width,s=a/2,l="left",u="top";switch(t){case"left":i-=n,o+=s,l="right",u="middle";break;case"right":i+=n+r,o+=s,u="middle";break;case"top":i+=r/2,o-=n,l="center",u="bottom";break;case"bottom":i+=r/2,o+=a+n,l="center";break;case"inside":i+=r/2,o+=s,l="center",u="middle";break;case"insideLeft":i+=n,o+=s,u="middle";break;case"insideRight":i+=r-n,o+=s,l="right",u="middle";break;case"insideTop":i+=r/2,o+=n,l="center";break;case"insideBottom":i+=r/2,o+=a-n,l="center",u="bottom";break;case"insideTopLeft":i+=n,o+=n;break;case"insideTopRight":i+=r-n,o+=n,l="right";break;case"insideBottomLeft":i+=n,o+=a-n,u="bottom";break;case"insideBottomRight":i+=r-n,o+=a-n,l="right",u="bottom"}return{x:i,y:o,textAlign:l,textVerticalAlign:u}},e.truncateText=O,e.getLineHeight=E,e.measureText=d,e.parsePlainText=v,e.parseRichText=x,e.makeFont=function(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&o(e)||t.textFont||t.font}},,,function(t,e,n){var i=n(17),o=(!function(){for(var t in i){if(null==i||!i.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=i[t]}}(),n(354));!function(){for(var t in o){if(null==o||!o.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=o[t]}}(),n(325),n(573),n(522),n(593),n(609),n(598),n(581),n(623),n(629),n(551),n(547),n(543),n(588),n(603),n(528),n(533),n(540),n(577),n(564),n(592),n(618),n(612),n(539),n(670),n(671),n(673),n(712),n(187),n(689),n(668),n(334),n(335),n(649),n(656),n(702),n(658),n(716),n(681),n(680),n(679),n(693),n(703),n(955),n(950)},function(t,e,n){var l=n(3),u=n(133),c=n(178),h=n(194).SOURCE_FORMAT_ORIGINAL,d=n(193).getDimensionTypeByAxis,p=n(77).getDataItemValue,f=n(135),g=n(357).getCoordSysDefineBySeries,m=n(192),y=n(142).enableDataStack;t.exports=function(t,e,n){n=n||{},m.isInstance(t)||(t=m.seriesDataToSource(t));var o,i,a=e.get("coordinateSystem"),a=f.get(a),r=g(e),a=(s=(s=r?l.map(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type=d(t)),e}):s)||a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"],c(t,{coordDimensions:s,generateCoord:n.generateCoord})),s=(r&&l.each(a,function(t,e){var n=t.coordDim,n=r.categoryAxisMap.get(n);n&&(null==o&&(o=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(i=!0)}),i||null==o||(a[o].otherDims.itemName=0),y(e,a)),a=((n=new u(a,e)).setCalculationInfo(s),null!=o&&function(t){if(t.sourceFormat===h)return null!=(t=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]))&&!l.isArray(p(t))}(t)?function(t,e,n,i){return i===o?n:this.defaultDimValueGetter(t,e,n,i)}:null);return n.hasItemOption=!1,n.initData(t,null,a),n}},function(t,e,n){var n=n(3),d=n.each,p=n.isString;function i(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}e.enableDataStack=function(t,n,e){var i,o,a,r,s,l,u=(e=e||{}).byIndex,c=e.stackedCoordDimension,h=!(!t||!t.get("stack"));return d(n,function(t,e){p(t)&&(n[e]=t={name:t}),h&&!t.isExtraCoord&&(u||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(o=t))}),!o||u||i||(u=!0),o&&(a="__\0ecstackresult",r="__\0ecstackedover",i&&(i.createInvertedIndices=!0),s=o.coordDim,e=o.type,l=0,d(n,function(t){t.coordDim===s&&l++}),n.push({name:a,coordDim:s,coordDimIndex:l,type:e,isExtraCoord:!0,isCalculationCoord:!0}),l++,n.push({name:r,coordDim:r,coordDimIndex:l,type:e,isExtraCoord:!0,isCalculationCoord:!0})),{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:r,stackResultDimension:a}},e.isDimensionStacked=i,e.getStackedDimension=function(t,e){return i(t,e)?t.getCalculationInfo("stackResultDimension"):e}},function(t,e,n){n(79).__DEV__;var a=n(3),r="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}var i=0;function o(t,e){var n=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function l(t,e,n){return this.superClass.prototype[e].apply(t,n)}e.parseClassType=s,e.enableClassExtend=function(t,e){(t.$constructor=t).extend=function(t){function e(){(t.$constructor||n).apply(this,arguments)}var n=this;return a.extend(e.prototype,t),e.extend=this.extend,e.superCall=o,e.superApply=l,a.inherits(e,this),e.superClass=n,e}},e.enableClassCheck=function(t){var e=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},e.enableClassManagement=function(n,t){t=t||{};var i,o={};return n.registerClass=function(t,e){var n;return e&&(n=e,a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),(e=s(e)).sub?e.sub!==r&&(function(t){var e=o[t.main];e&&e[r]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},n.getClass=function(t,e,n){var i=o[t];if(i&&i[r]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},n.getClassesByMainType=function(t){t=s(t);var n=[],t=o[t.main];return t&&t[r]?a.each(t,function(t,e){e!==r&&n.push(t)}):n.push(t),n},n.hasClass=function(t){return t=s(t),!!o[t.main]},n.getAllClassMainTypes=function(){var n=[];return a.each(o,function(t,e){n.push(e)}),n},n.hasSubTypes=function(t){t=s(t);t=o[t.main];return t&&t[r]},n.parseClassType=s,t.registerWhenExtend&&(i=n.extend)&&(n.extend=function(t){var e=i.call(this,t);return n.registerClass(e,t.type)}),n},e.setReadOnly=function(t,e){}},function(t,e,n){var i=n(3).each,o=n(218),a=n(213),r=n(143),s=n(77),l=n(255).createTask,n=n(176),u=s.makeInner(),c=n();function h(){this.group=new o,this.uid=a.getUID("viewChart"),this.renderTask=l({plan:f,reset:g}),this.renderTask.context={view:this}}n=h.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){p(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){p(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};function d(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)d(t.childAt(n),e)}function p(e,t,n){t=s.queryDataIndex(e,t);null!=t?i(s.normalizeToArray(t),function(t){d(e.getItemGraphicEl(t),n)}):e.eachItemGraphicEl(function(t){d(t,n)})}function f(t){return c(t.model)}function g(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,a=e.pipelineContext.progressiveRender,t=t.view,r=o&&u(o).updateMethod,a=a?"incrementalPrepareRender":r&&t[r]?r:"render";return"render"!==a&&t[a](e,n,i,o),m[a]}n.updateView=n.updateLayout=n.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.enableClassExtend(h,["dispose"]),r.enableClassManagement(h,{registerWhenExtend:!0}),h.markUpdateMethod=function(t,e){u(t).updateMethod=e};var m={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)}}};t.exports=h},,,function(t,e,n){var i=n(174),o=(e.Dispatcher=i,n(121)),a="undefined"!=typeof window&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;function s(t,e,n,i){return n=n||{},i||!o.canvasSupported?l(t,e,n):o.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):l(t,e,n),n}function l(t,e,n){t=(t=t).getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0};n.zrX=e.clientX-t.left,n.zrY=e.clientY-t.top}i=a?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=s,e.normalizeEvent=function(t,e,n){var i;return null==(e=e||window.event).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!=i?e.targetTouches:e.changedTouches)[0])&&s(t,i,e,n):(s(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3),i=e.button,null==e.which&&void 0!==i&&r.test(e.type))&&(e.which=1&i?1:2&i?3:4&i?2:0),e},e.addEventListener=function(t,e,n){a?t.addEventListener(e,n):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){a?t.removeEventListener(e,n):t.detachEvent("on"+e,n)},e.stop=i,e.notLeftMouse=function(t){return 1<t.which}},function(t,e,n){var n=n(370),l={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 s(t){return(t=Math.round(t))<0?0:255<t?255:t}function u(t){return t<0?0:1<t?1:t}function c(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100*255):s(parseInt(t,10))}function h(t){return t.length&&"%"===t.charAt(t.length-1)?u(parseFloat(t)/100):u(parseFloat(t))}function a(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function d(t,e,n){return t+(e-t)*n}function p(t,e,n,i,o){t[0]=e,t[1]=n,t[2]=i,t[3]=o}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new n(20),i=null;function m(t,e){i&&f(i,e),i=g.put(t,i||e.slice())}function y(t,e){if(t){e=e||[];var n=g.get(t);if(n)return f(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in l)return f(e,l[n]),m(t,e),e;if("#"===n.charAt(0))return 4===n.length?0<=(i=parseInt(n.substr(1),16))&&i<=4095?(p(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),m(t,e),e):void p(e,0,0,0,1):7===n.length?0<=(i=parseInt(n.substr(1),16))&&i<=16777215?(p(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),m(t,e),e):void p(e,0,0,0,1):void 0;var i=n.indexOf("("),o=n.indexOf(")");if(-1!==i&&o+1===n.length){var a=n.substr(0,i),r=n.substr(i+1,o-(i+1)).split(","),s=1;switch(a){case"rgba":if(4!==r.length)return void p(e,0,0,0,1);s=h(r.pop());case"rgb":return 3!==r.length?void p(e,0,0,0,1):(p(e,c(r[0]),c(r[1]),c(r[2]),s),m(t,e),e);case"hsla":return 4!==r.length?void p(e,0,0,0,1):(r[3]=h(r[3]),v(r,e),m(t,e),e);case"hsl":return 3!==r.length?void p(e,0,0,0,1):(v(r,e),m(t,e),e);default:return}}p(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=h(t[1]),o=h(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return p(e=e||[],s(255*a(o,i,n+1/3)),s(255*a(o,i,n)),s(255*a(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function o(t,e,n){var i,o,a;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),a=Math.ceil(t),o=e[i],e=e[a],n[0]=s(d(o[0],e[0],a=t-i)),n[1]=s(d(o[1],e[1],a)),n[2]=s(d(o[2],e[2],a)),n[3]=u(d(o[3],e[3],a)),n}n=o;function r(t,e,n){var i,o,a,r;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),r=y(e[i]),e=y(e[o]),r=_([s(d(r[0],e[0],a=t-i)),s(d(r[1],e[1],a)),s(d(r[2],e[2],a)),u(d(r[3],e[3],a))],"rgba"),n?{color:r,leftIndex:i,rightIndex:o,value:t}:r}var x=r;function _(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}e.parse=y,e.lift=function(t,e){var n=y(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:t[i]<0&&(n[i]=0);return _(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){if(t=y(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},e.fastLerp=o,e.fastMapToColor=n,e.lerp=r,e.mapToColor=x,e.modifyHSL=function(t,e,n,i){if(t=y(t))return t=function(t){var e,n,i,o,a,r,s,l,u,c;if(t)return c=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(c,e,n),o=((i=Math.max(c,e,n))+s)/2,0==(u=i-s)?r=a=0:(r=o<.5?u/(i+s):u/(2-i-s),s=((i-c)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,c===i?a=u-l:e===i?a=1/3+s-u:n===i&&(a=2/3+l-s),a<0&&(a+=1),1<a&&--a),c=[360*a,r,o],null!=t[3]&&c.push(t[3]),c}(t),null!=e&&(t[0]=(e=e,(e=Math.round(e))<0?0:360<e?360:e)),null!=n&&(t[1]=h(n)),null!=i&&(t[2]=h(i)),_(v(t),"rgba")},e.modifyAlpha=function(t,e){if((t=y(t))&&null!=e)return t[3]=u(e),_(t,"rgba")},e.stringify=_},function(t,e,n){var a=n(182);t.exports=function(i,o,t){if(a(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}}},function(t,e){var n={};e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]}},function(t,e,n){function i(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1}var o=n(3),c=o.each,h=o.map,o=n(61),a=o.linearMap,r=o.getPixelPrecision,o=n(723),d=o.createAxisTicks,s=o.createAxisLabels,l=o.calculateCategoryInterval,u=[0,1];function p(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}i.prototype={constructor:i,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return r(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&p(n=n.slice(),i.count()),a(t,u,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&p(n=n.slice(),i.count()),a(t,n,u,e));return this.scale.scale(i)},pointToData:function(t,e){},getTicksCoords:function(t){var e,n,i,o,a,r=(t=t||{}).tickModel||this.getTickModel(),s=d(this,r),l=s.ticks,l=h(l,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=r.get("alignWithLabel");function u(t,e){return a?e<t:t<e}return e=this,n=l,s.tickCategoryInterval,s=r,r=t.clamp,t=n.length,e.onBand&&!s&&t&&(s=e.getExtent(),1===t?(n[0].coord=s[0],i=n[1]={coord:s[0]}):(o=n[1].coord-n[0].coord,c(n,function(t){t.coord-=o/2}),i={coord:n[t-1].coord+o},n.push(i)),a=s[0]>s[1],u(n[0].coord,s[0])&&(r?n[0].coord=s[0]:n.shift()),r&&u(s[0],n[0].coord)&&n.unshift({coord:s[0]}),u(s[1],i.coord)&&(r?i.coord=s[1]:n.pop()),r)&&u(i.coord,s[1])&&n.push({coord:s[1]}),l},getViewLabels:function(){return s(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return l(this)}},t.exports=i},function(t,e,n){var n=n(111),i=n.create,x=n.distSquare,c=Math.pow,_=Math.sqrt,o=1e-8,h=_(3),b=i(),w=i(),S=i();function d(t){return-o<t&&t<o}function s(t){return o<t||t<-o}function M(t,e,n,i,o){var a=1-o;return a*a*(a*t+3*o*e)+o*o*(o*i+3*a*n)}function y(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}e.cubicAt=M,e.cubicDerivativeAt=function(t,e,n,i,o){var a=1-o;return 3*(((e-t)*a+2*(n-e)*o)*a+(i-n)*o*o)},e.cubicRootAt=function(t,e,n,i,o,a){var r,s,i=i+3*(e-n)-t,l=(n=3*(n-2*e+t))*(e=3*(e-t))-9*i*(t=t-o),t=e*e-3*n*t,u=0;return d(o=n*n-3*i*e)&&d(l)?d(n)?a[0]=0:0<=(r=-e/n)&&r<=1&&(a[u++]=r):d(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(r=-n/i+t)&&r<=1&&(a[u++]=r),0<=s&&s<=1&&(a[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=_(e))),0<=(r=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-c(-t,1/3):c(t,1/3))+(e=e<0?-c(-e,1/3):c(e,1/3))))/(3*i))&&r<=1&&(a[u++]=r)):(t=(2*o*n-3*i*l)/(2*_(o*o*o)),e=Math.acos(t)/3,r=(-n-2*(l=_(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+h*Math.sin(e)))/(3*i),o=(-n+l*(t-h*Math.sin(e)))/(3*i),0<=r&&r<=1&&(a[u++]=r),0<=s&&s<=1&&(a[u++]=s),0<=o&&o<=1&&(a[u++]=o)),u},e.cubicExtrema=function(t,e,n,i,o){var a,r=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return d(i)?s(r)&&0<=(a=-n/r)&&a<=1&&(o[e++]=a):d(t=r*r-4*i*n)?o[0]=-r/(2*i):0<t&&(t=(-r-(n=_(t)))/(2*i),0<=(a=(-r+n)/(2*i))&&a<=1&&(o[e++]=a),0<=t)&&t<=1&&(o[e++]=t),e},e.cubicSubdivide=function(t,e,n,i,o,a){var r=(e-t)*o+t,s=((e=(n-e)*o+e)-r)*o+r,o=((e=((n=(i-n)*o+n)-e)*o+e)-s)*o+s;a[0]=t,a[1]=r,a[2]=s,a[3]=o,a[4]=o,a[5]=e,a[6]=n,a[7]=i},e.cubicProjectPoint=function(t,e,n,i,o,a,r,s,l,u,c){var h,d,p,f,g=.005,m=1/0;b[0]=l,b[1]=u;for(var y=0;y<1;y+=.05)w[0]=M(t,n,o,r,y),w[1]=M(e,i,a,s,y),(p=x(b,w))<m&&(h=y,m=p);for(var m=1/0,v=0;v<32&&!(g<1e-4);v++)d=h+g,w[0]=M(t,n,o,r,f=h-g),w[1]=M(e,i,a,s,f),p=x(w,b),0<=f&&p<m?(h=f,m=p):(S[0]=M(t,n,o,r,d),S[1]=M(e,i,a,s,d),f=x(S,b),d<=1&&f<m?(h=d,m=f):g*=.5);return c&&(c[0]=M(t,n,o,r,h),c[1]=M(e,i,a,s,h)),_(m)},e.quadraticAt=y,e.quadraticDerivativeAt=function(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))},e.quadraticRootAt=function(t,e,n,i,o){var a,r,n=t-2*e+n,e=2*(e-t),t=t-i,i=0;return d(n)?s(e)&&0<=(a=-t/e)&&a<=1&&(o[i++]=a):d(t=e*e-4*n*t)?0<=(a=-e/(2*n))&&a<=1&&(o[i++]=a):0<t&&(r=(-e-(t=_(t)))/(2*n),0<=(a=(-e+t)/(2*n))&&a<=1&&(o[i++]=a),0<=r)&&r<=1&&(o[i++]=r),i},e.quadraticExtremum=function(t,e,n){return 0==(n=t+n-2*e)?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,n,i,o){var a=(e-t)*i+t,i=((e=(n-e)*i+e)-a)*i+a;o[0]=t,o[1]=a,o[2]=i,o[3]=i,o[4]=e,o[5]=n},e.quadraticProjectPoint=function(t,e,n,i,o,a,r,s,l){var u,c=.005,h=1/0;b[0]=r,b[1]=s;for(var d=0;d<1;d+=.05)w[0]=y(t,n,o,d),w[1]=y(e,i,a,d),(m=x(b,w))<h&&(u=d,h=m);for(var h=1/0,p=0;p<32&&!(c<1e-4);p++){var f=u-c,g=u+c,m=(w[0]=y(t,n,o,f),w[1]=y(e,i,a,f),x(w,b));0<=f&&m<h?(u=f,h=m):(S[0]=y(t,n,o,g),S[1]=y(e,i,a,g),f=x(S,b),g<=1&&f<h?(u=g,h=f):c*=.5)}return l&&(l[0]=y(t,n,o,u),l[1]=y(e,i,a,u)),_(h)}},,,,,,,function(t,e,n){var i=n(3);function o(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}e.retrieveTargetInfo=function(t,e,n){if(t&&0<=i.indexOf(e,t.type))return e=n.getData().tree.root,(n=t.targetNode)&&e.contains(n)||null!=(t=t.targetNodeId)&&(n=e.getNodeById(t))?{node:n}:void 0},e.getPathToRoot=o,e.aboveViewRoot=function(t,e){return t=o(t),0<=i.indexOf(t,e)},e.wrapTreePathInfo=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}},function(t,e,n){var i=n(3),v=i.retrieve,f=i.defaults,h=i.extend,x=i.each,d=n(116),_=n(48),b=n(122),i=n(61),p=i.isRadianAroundZero,g=i.remRadian,u=n(134).createSymbol,a=n(129),m=n(111).applyTransform,w=Math.PI;function S(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function o(t,e){this.opt=e,this.axisModel=t,f(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new _.Group,(t=new _.Group({position:e.position.slice(),rotation:e.rotation})).updateTransform(),this._transform=t.transform,this._dumbGroup=t}o.prototype={constructor:o,hasBuilder:function(t){return!!r[t]},add:function(t){r[t].call(this)},getGroup:function(){return this.group}};var r={axisLine:function(){var i,t,o,a,e,r,s,l=this.opt,n=this.axisModel;n.get("axisLine.show")&&(t=this.axisModel.axis.getExtent(),e=this._transform,i=[t[0],0],t=[t[1],0],e&&(m(i,i,e),m(t,t,e)),o=h({lineCap:"round"},n.getModel("axisLine.lineStyle").getLineStyle()),this.group.add(new _.Line(_.subPixelOptimizeLine({anid:"line",shape:{x1:i[0],y1:i[1],x2:t[0],y2:t[1]},style:o,strokeContainThreshold:l.strokeContainThreshold||5,silent:!0,z2:1}))),a=n.get("axisLine.symbol"),e=n.get("axisLine.symbolSize"),"number"==typeof(n=n.get("axisLine.symbolOffset")||0)&&(n=[n,n]),null!=a)&&("string"==typeof a&&(a=[a,a]),r=(e="string"!=typeof e&&"number"!=typeof e?e:[e,e])[0],s=e[1],x([{rotate:l.rotation+Math.PI/2,offset:n[0],r:0},{rotate:l.rotation-Math.PI/2,offset:n[1],r:Math.sqrt((i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]))}],function(t,e){var n;"none"!==a[e]&&null!=a[e]&&(e=u(a[e],-r/2,-s/2,r,s,o.stroke,!0),n=t.r+t.offset,n=[i[0]+n*Math.cos(l.rotation),i[1]-n*Math.sin(l.rotation)],e.attr({rotation:t.rotate,position:n,silent:!0}),this.group.add(e))},this))},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=function(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var o=e.getModel("axisTick"),a=o.getModel("lineStyle"),r=o.get("length"),s=i.getTicksCoords(),l=[],u=[],c=t._transform,h=[],d=0;d<s.length;d++){var p=s[d].coord,p=(l[0]=p,u[l[1]=0]=p,u[1]=n.tickDirection*r,c&&(m(l,l,c),m(u,u,c)),new _.Line(_.subPixelOptimizeLine({anid:"tick_"+s[d].tickValue,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:f(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0})));t.group.add(p),h.push(p)}return h}}(this,t,e),e=function(s,l,u){var c,h,t,d,p,f,g,m,y=l.axis,e=v(u.axisLabelShow,l.get("axisLabel.show"));if(e&&!y.scale.isBlank())return c=l.getModel("axisLabel"),h=c.get("margin"),e=y.getViewLabels(),t=(v(u.labelRotate,c.get("rotate"))||0)*w/180,d=M(u.rotation,t,u.labelDirection),p=l.getCategories(!0),f=[],g=I(l),m=l.get("triggerEvent"),x(e,function(t,e){var n=t.tickValue,i=t.formattedLabel,t=t.rawLabel,o=c,a=(o=p&&p[n]&&p[n].textStyle?new b(p[n].textStyle,c,l.ecModel):o).getTextColor()||l.get("axisLine.lineStyle.color"),r=[y.dataToCoord(n),u.labelOffset+u.labelDirection*h],r=new _.Text({anid:"label_"+n,position:r,rotation:d.rotation,silent:g,z2:10});_.setTextStyle(r.style,o,{text:i,textAlign:o.getShallow("align",!0)||d.textAlign,textVerticalAlign:o.getShallow("verticalAlign",!0)||o.getShallow("baseline",!0)||d.textVerticalAlign,textFill:"function"==typeof a?a("category"===y.type?t:"value"===y.type?n+"":n,e):a}),m&&(r.eventData=S(l),r.eventData.targetType="axisLabel",r.eventData.value=t),s._dumbGroup.add(r),r.updateTransform(),f.push(r),s.group.add(r),r.decomposeTransform()}),f}(this,t,e),i=(t=t).get("axisLabel.showMinLabel"),t=t.get("axisLabel.showMaxLabel"),o=(n=n||[],(e=e||[])[0]),a=e[1],r=e[e.length-1],e=e[e.length-2],s=n[0],l=n[1],u=n[n.length-1],n=n[n.length-2];!1===i?(c(o),c(s)):y(o,a)&&(i?(c(a),c(l)):(c(o),c(s))),!1===t?(c(r),c(u)):y(e,r)&&(t?(c(e),c(n)):(c(r),c(u)))},axisName:function(){var t,e,n,i,o,a,r,s,l=this.opt,u=this.axisModel,c=v(l.axisName,u.get("name"));c&&(s=u.get("nameLocation"),i=l.nameDirection,t=u.getModel("nameTextStyle"),r=u.get("nameGap")||0,e=(a=this.axisModel.axis.getExtent())[0]>a[1]?-1:1,e=["start"===s?a[0]-e*r:"end"===s?a[1]+e*r:(a[0]+a[1])/2,T(s)?l.labelOffset+i*r:0],null!=(r=u.get("nameRotate"))&&(r=r*w/180),T(s)?n=M(l.rotation,null!=r?r:l.rotation,i):(n=function(t,e,n,i){var o,n=g(n-t.rotation),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=p(n-w/2)?(o=i?"bottom":"top","center"):p(n-1.5*w)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*w&&w/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:o}}(l,s,r||0,a),null!=(o=l.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(n.rotation)),isFinite(o)||(o=null))),i=t.getFont(),r=(s=u.get("nameTruncate",!0)||{}).ellipsis,a=v(l.nameTruncateMaxWidth,s.maxWidth,o),l=null!=r&&null!=a?d.truncateText(c,a,i,r,{minChar:2,placeholder:s.placeholder}):c,o=u.get("tooltip",!0),(r={componentType:a=u.mainType,name:c,$vars:["name"]})[a+"Index"]=u.componentIndex,s=new _.Text({anid:"name",__fullText:c,__truncatedText:l,position:e,rotation:n.rotation,silent:I(u),z2:1,tooltip:o&&o.show?h({content:c,formatter:function(){return c},formatterParams:r},o):null}),_.setTextStyle(s.style,t,{text:l,textFont:i,textFill:t.getTextColor()||u.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),u.get("triggerEvent")&&(s.eventData=S(u),s.eventData.targetType="axisName",s.eventData.name=c),this._dumbGroup.add(s),s.updateTransform(),this.group.add(s),s.decomposeTransform())}},M=o.innerTextLayout=function(t,e,n){var i,e=g(e-t),t=p(e)?(i=0<n?"top":"bottom","center"):p(e-w)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<w?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}};function I(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function c(t){t&&(t.ignore=!0)}function y(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return n=a.identity([]),a.rotate(n,n,-t.rotation),i.applyTransform(a.mul([],n,t.getLocalTransform())),o.applyTransform(a.mul([],n,e.getLocalTransform())),i.intersect(o)}function T(t){return"middle"===t||"center"===t}t.exports=o},function(t,e,n){n(79).__DEV__;var i=n(17),l=n(204),u=i.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&l.fixValue(t),u.superApply(this,"render",arguments),a(this,t,0,n,0,!0)},updateAxisPointer:function(t,e,n,i,o){a(this,t,0,n,0,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),u.superApply(this,"remove",arguments)},dispose:function(t,e){c(this,e),u.superApply(this,"dispose",arguments)}});function a(t,e,n,i,o,a){var r,s=u.getAxisPointerClass(t.axisPointerClass);s&&((r=l.getAxisPointerModel(e))?(t._axisPointer||(t._axisPointer=new s)).render(e,r,i,a):c(t,i))}function c(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var o=[];u.registerAxisPointerClass=function(t,e){o[t]=e},u.getAxisPointerClass=function(t){return t&&o[t]},t.exports=u},function(t,e){function a(t){return t}function n(t,e,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||a,this._newKeyGetter=i||a,this.context=o}function c(t,e,n,i,o){for(var a=0;a<t.length;a++){var r="_ec_"+o[i](t[a],a),s=e[r];null==s?(n.push(r),e[r]=a):(s.length||(e[r]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},i=[],o=[];for(c(t,{},i,"_oldKeyGetter",this),c(e,n,o,"_newKeyGetter",this),a=0;a<t.length;a++)null!=(s=n[r=i[a]])?((u=s.length)?(1===u&&(n[r]=null),s=s.unshift()):n[r]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a);for(var a=0;a<o.length;a++){var r=o[a];if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)if(s.length)for(var l=0,u=s.length;l<u;l++)this._add&&this._add(s[l]);else this._add&&this._add(s)}}}},t.exports=n},function(t,e,n){n(79).__DEV__;var i=n(3),o=(i.isTypedArray,i.extend),a=(i.assert,i.each),r=i.isObject,i=n(77),s=i.getDataItemValue,l=i.isDataItemOption,u=n(61).parseDate,c=n(192),i=n(194),h=i.SOURCE_FORMAT_TYPED_ARRAY,d=i.SOURCE_FORMAT_ARRAY_ROWS,p=i.SOURCE_FORMAT_ORIGINAL,f=i.SOURCE_FORMAT_OBJECT_ROWS;function g(t,e){c.isInstance(t)||(t=c.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat,e=(i===h&&(this._offset=0,this._dimSize=e,this._data=n),m[i===d?i+"_"+t.seriesLayoutBy:i]);o(this,e)}var n=g.prototype,m=(n.pure=!1,{arrayRows_column:{pure:n.persistent=!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:x},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var o=n[i];e.push(o?o[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:v,appendData:x},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,t=this._data[t];return t?t.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var o=this._data[n[i].name];e.push(o?o[t]:null)}return e},appendData:function(t){var o=this._data;a(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},original:{count:y,getItem:v,appendData:x},typedArray:{persistent:!(n.getSource=function(){return this._source}),pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}});function y(){return this._data.length}function v(t){return this._data[t]}function x(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var _={arrayRows:b,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:b,original:function(t,e,n,i){t=s(t);return null!=n&&t instanceof Array?t[n]:t},typedArray:b};function b(t,e,n,i){return null!=n?t[n]:t}i={arrayRows:w,objectRows:function(t,e,n,i){return S(t[e],this._dimensionInfos[e])},keyedColumns:w,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return!this._rawData.pure&&l(t)&&(this.hasItemOption=!0),S(o instanceof Array?o[i]:o,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}};function w(t,e,n,i){return S(t[i],this._dimensionInfos[e])}function S(t,e){var n=e&&e.type;return"ordinal"===n?(e=e&&e.ordinalMeta)?e.parseAndCollect(t):t:null==(t="time"===n&&"number"!=typeof t&&null!=t&&"-"!==t?+u(t):t)||""===t?NaN:+t}e.DefaultDataProvider=g,e.defaultDimValueGetters=i,e.retrieveRawValue=function(t,e,n){if(t){var i,o,a,r=t.getRawDataItem(e);if(null!=r)return i=t.getProvider().getSource().sourceFormat,(t=t.getDimensionInfo(n))&&(o=t.name,a=t.index),_[i](r,e,a,o)}},e.retrieveRawAttr=function(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===p||i===f)return t=t.getRawDataItem(e),(t=i!==p||r(t)?t:null)?t[n]:void 0}}},function(t,e){t.exports={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:"旭日图"}},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:""}}}}},function(t,e){var s="\0__throttleOriginMethod",l="\0__throttleRate",u="\0__throttleType";function c(t,n,i){var o,a,r,s,l,u=0,c=0,h=null;function d(){c=(new Date).getTime(),h=null,t.apply(r,s||[])}n=n||0;function e(){o=(new Date).getTime(),r=this,s=arguments;var t=l||n,e=l||i;l=null,a=o-(e?u:c)-t,clearTimeout(h),e?h=setTimeout(d,t):0<=a?d():h=setTimeout(d,-a),u=o}return e.clear=function(){h&&(clearTimeout(h),h=null)},e.debounceNextCall=function(t){l=t},e}e.throttle=c,e.createOrUpdate=function(t,e,n,i){var o=t[e];if(o){var a=o[s]||o,r=o[u];if(o[l]!==n||r!==i){if(null==n||!i)return t[e]=a;(o=t[e]=c(a,n,"debounce"===i))[s]=a,o[u]=i,o[l]=n}return o}},e.clear=function(t,e){var n=t[e];n&&n[s]&&(t[e]=n[s])}},function(t,e,n){function r(t){var n,e=t.mappingMethod,i=t.type,t=this.option=u.clone(t),i=(this.type=i,this.mappingMethod=e,this._normalizeData=_[e],d[i]);if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._doMap=i._doMap[e],"piecewise"===e)p(t),i=(n=t).pieceList,n.hasSpecialVisual=!1,u.each(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)});else if("category"===e)if(t.categories){var o,i=t,a=i.categories,r=i.visual,s=i.categoryMap={};c(a,function(t,e){s[t]=e}),u.isArray(r)||(o=[],u.isObject(r)?c(r,function(t,e){e=s[e];o[null!=e?e:h]=t}):o[h]=r,r=x(i,o));for(var l=a.length-1;0<=l;l--)null==r[l]&&(delete s[a[l]],a.pop())}else p(t,!0);else u.assert("linear"!==e||t.dataExtent),p(t)}var u=n(3),a=n(148),i=n(61).linearMap,c=u.each,s=u.isObject,h=-1,d=(r.prototype={constructor:r,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return u.bind(this._normalizeData,this)}},r.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var o=this.option;return u.bind("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),g.call(this,t)}:function(t,e,n){var i=!!n;return e||(t=this._normalizeData(t)),n=a.fastLerp(t,o.parsedVisual,n),i?n:a.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return a.stringify(a.fastLerp(t,this.option.parsedVisual),"rgba")},category:g,piecewise:function(t,e){e=v.call(this,e);return e=null==e?a.stringify(a.fastLerp(t,this.option.parsedVisual),"rgba"):e},fixed:m}},colorHue:o(function(t,e){return a.modifyHSL(t,e)}),colorSaturation:o(function(t,e){return a.modifyHSL(t,null,e)}),colorLightness:o(function(t,e){return a.modifyHSL(t,null,null,e)}),colorAlpha:o(function(t,e){return a.modifyAlpha(t,e)}),opacity:{applyVisual:f("opacity"),_doMap:y([0,1])},liftZ:{applyVisual:f("liftZ"),_doMap:{linear:m,category:m,piecewise:m,fixed:m}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(u.isString(i))n("symbol",i);else if(s(i))for(var o in i)i.hasOwnProperty(o)&&n(o,i[o])},_doMap:{linear:l,category:g,piecewise:function(t,e){e=v.call(this,e);return e=null==e?l.call(this,t):e},fixed:m}},symbolSize:{applyVisual:f("symbolSize"),_doMap:y([0,1])}});function p(t,e){var n=t.visual,i=[];u.isObject(n)?c(n,function(t){i.push(t)}):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),x(t,i)}function o(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t),n("color",i(e("color"),t))},_doMap:y([0,1])}}function l(t){var e=this.option.visual;return e[Math.round(i(t,[0,1],[0,e.length-1],!0))]||{}}function f(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function g(t){var e=this.option.visual;return e[this.option.loop&&t!==h?t%e.length:t]}function m(){return this.option.visual[0]}function y(n){return{linear:function(t){return i(t,n,this.option.visual,!0)},category:g,piecewise:function(t,e){e=v.call(this,e);return e=null==e?i(t,n,this.option.visual,!0):e},fixed:m}}function v(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[r.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function x(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=u.map(e,function(t){return a.parse(t)})),e}var _={linear:function(t){return i(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=r.findPieceIndex(t,e,!0);if(null!=t)return i(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?h:t},fixed:u.noop};function b(t,e,n){return t?e<=n:e<n}r.listVisualTypes=function(){var n=[];return u.each(d,function(t,e){n.push(e)}),n},r.addVisualHandler=function(t,e){d[t]=e},r.isValidType=function(t){return d.hasOwnProperty(t)},r.eachVisual=function(t,e,n){u.isObject(t)?u.each(t,e,n):e.call(n,t)},r.mapVisual=function(t,n,i){var o,a=u.isArray(t)?[]:u.isObject(t)?{}:(o=!0,null);return r.eachVisual(t,function(t,e){t=n.call(i,t,e);o?a=t:a[e]=t}),a},r.retrieveVisuals=function(n){var i,o={};return n&&c(d,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},r.prepareVisualTypes=function(t){if(s(t)){var n=[];c(t,function(t,e){n.push(e)}),t=n}else{if(!u.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},r.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},r.findPieceIndex=function(n,t,e){for(var i,o=1/0,a=0,r=t.length;a<r;a++){var s=t[a].value;if(null!=s){if(s===n||"string"==typeof s&&s===n+"")return a;e&&c(s,a)}}for(a=0,r=t.length;a<r;a++){var l=t[a],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(b(l[1],n,u[1]))return a}else if(u[1]===1/0){if(b(l[0],u[0],n))return a}else if(b(l[0],u[0],n)&&b(l[1],n,u[1]))return a;e&&c(u[0],a),e&&c(u[1],a)}}if(e)return n===1/0?t.length-1:n===-1/0?0:i;function c(t,e){t=Math.abs(t-n);t<o&&(o=t,i=e)}},t.exports=r},function(t,e){t.exports=function(t,s,l){return{seriesType:t,performRawSeries:!0,reset:function(a,t,e){var n=a.getData(),i=a.get("symbol")||s,r=a.get("symbolSize"),o=a.get("symbolKeepAspect");if(n.setVisual({legendSymbol:l||i,symbol:i,symbolSize:r,symbolKeepAspect:o}),!t.isSeriesFiltered(a))return{dataEach:n.hasItemOption||"function"==typeof r?function(t,e){var n,i,o;"function"==typeof r&&(o=a.getRawValue(e),n=a.getDataParams(e),t.setItemVisual(e,"symbolSize",r(o,n))),t.hasItemOption&&(n=(o=t.getItemModel(e)).getShallow("symbol",!0),i=o.getShallow("symbolSize",!0),o=o.getShallow("symbolKeepAspect",!0),null!=n&&t.setItemVisual(e,"symbol",n),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o)&&t.setItemVisual(e,"symbolKeepAspect",o)}:null}}}}},,,,,,,function(t,e){function n(){this._$handlers={}}var s=Array.prototype.slice;n.prototype={constructor:n,one:function(t,e,n){var i=this._$handlers;if(e&&t){i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===e)return this;i[t].push({h:e,one:!0,ctx:n||this})}return this},on:function(t,e,n){var i=this._$handlers;if(e&&t){i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===e)return this;i[t].push({h:e,one:!1,ctx:n||this})}return this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var n=this._$handlers;if(t)if(e){if(n[t]){for(var i=[],o=0,a=n[t].length;o<a;o++)n[t][o].h!=e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},trigger:function(t){if(this._$handlers[t])for(var e=arguments,n=e.length,i=(3<n&&(e=s.call(e,1)),this._$handlers[t]),o=i.length,a=0;a<o;){switch(n){case 1:i[a].h.call(i[a].ctx);break;case 2:i[a].h.call(i[a].ctx,e[1]);break;case 3:i[a].h.call(i[a].ctx,e[1],e[2]);break;default:i[a].h.apply(i[a].ctx,e)}i[a].one?(i.splice(a,1),o--):a++}return this},triggerWithContext:function(t){if(this._$handlers[t])for(var e=arguments,n=e.length,i=(e=4<n?s.call(e,1,e.length-1):e)[e.length-1],o=this._$handlers[t],a=o.length,r=0;r<a;){switch(n){case 1:o[r].h.call(i);break;case 2:o[r].h.call(i,e[1]);break;case 3:o[r].h.call(i,e[1],e[2]);break;default:o[r].h.apply(i,e)}o[r].one?(o.splice(r,1),a--):r++}return this}},t.exports=n},function(t,e,n){var o=n(178),a=n(133),n=n(3),r=n.extend,s=n.isArray;t.exports=function(t,e,n){e=s(e)?{coordDimensions:e}:r({},e);var i=t.getSource(),e=o(i,e);return(e=new a(e,t)).initData(i,n),e}},function(t,e,n){var i=n(77).makeInner;t.exports=function(){var a=i();return function(t){var e=a(t),t=t.pipelineContext,n=e.large,i=e.progressiveRender,o=e.large=t.large,e=e.progressiveRender=t.progressiveRender;return!!(n^o||i^e)&&"reset"}}},function(t,e,n){var i=n(3),n=(n(136),{getMin:function(t){var e=this.option,t=t||null==e.rangeStart?e.min:e.rangeStart;return t=this.axis&&null!=t&&"dataMin"!==t&&"function"!=typeof t&&!i.eqNaN(t)?this.axis.scale.parse(t):t},getMax:function(t){var e=this.option,t=t||null==e.rangeEnd?e.max:e.rangeEnd;return t=this.axis&&null!=t&&"dataMax"!==t&&"function"!=typeof t&&!i.eqNaN(t)?this.axis.scale.parse(t):t},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:i.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});t.exports=n},function(t,e,n){var i=n(352);t.exports=function(t,e){return i((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}},function(t,e,n){var s=n(3);t.exports=function(r){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return function(t,e,n){for(var i={},o=0;o<r.length;o++){var a=r[o][1];e&&0<=s.indexOf(e,a)||n&&s.indexOf(n,a)<0||null!=(a=t.getShallow(a))&&(i[r[o][0]]=a)}return i}}},function(t,e,n){function i(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null}var w=n(152),f=n(111),g=n(276),m=n(118),o=n(217).devicePixelRatio,S={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},y=[],v=[],x=[],_=[],b=Math.min,M=Math.max,I=Math.cos,T=Math.sin,A=Math.sqrt,D=Math.abs,s="undefined"!=typeof Float32Array;i.prototype={constructor:i,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=D(1/o/t)||0,this._uy=D(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return(this._ctx=t)&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(S.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=D(t-this._xi)>this._ux||D(e-this._yi)>this._uy||this._len<5;return this.addData(S.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,o,a){return this.addData(S.C,t,e,n,i,o,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,o,a):this._ctx.bezierCurveTo(t,e,n,i,o,a)),this._xi=o,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(S.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,o,a){return this.addData(S.A,t,e,n,n,i,o-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,a),this._xi=I(o)*n+t,this._yi=T(o)*n+t,this},arcTo:function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(S.R,t,e,n,i),this},closePath:function(){this.addData(S.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!s||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();s&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<e;o++)for(var a=t[o].data,r=0;r<a.length;r++)this.data[i++]=a[r];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,o=this._dashSum,a=this._dashOffset,r=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=A(c*c+h*h),p=l,f=u,g=r.length;for(a<0&&(a=o+a),p-=(a%=o)*(c/=d),f-=a*(h/=d);0<c&&p<=t||c<0&&t<=p||0==c&&(0<h&&f<=e||h<0&&e<=f);)p+=c*(n=r[i=this._dashIdx]),f+=h*n,this._dashIdx=(i+1)%g,0<c&&p<l||c<0&&l<p||0<h&&f<u||h<0&&u<f||s[i%2?"moveTo":"lineTo"]((0<=c?b:M)(p,t),(0<=h?b:M)(f,e));this._dashOffset=-A((c=p-t)*c+(h=f-e)*h)},_dashedBezierTo:function(t,e,n,i,o,a){var r,s,l,u,c,h=this._dashSum,d=this._dashOffset,p=this._lineDash,f=this._ctx,g=this._xi,m=this._yi,y=w.cubicAt,v=0,x=this._dashIdx,_=p.length,b=0;for(d<0&&(d=h+d),d%=h,r=0;r<1;r+=.1)s=y(g,t,n,o,r+.1)-y(g,t,n,o,r),l=y(m,e,i,a,r+.1)-y(m,e,i,a,r),v+=A(s*s+l*l);for(;x<_&&!(d<(b+=p[x]));x++);for(r=(b-d)/v;r<=1;)u=y(g,t,n,o,r),c=y(m,e,i,a,r),x%2?f.moveTo(u,c):f.lineTo(u,c),r+=p[x]/v,x=(x+1)%_;x%2!=0&&f.lineTo(o,a),this._dashOffset=-A((s=o-u)*s+(l=a-c)*l)},_dashedQuadraticTo:function(t,e,n,i){var o=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,o,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,s)&&(this.data=new Float32Array(t))},getBoundingRect:function(){y[0]=y[1]=x[0]=x[1]=Number.MAX_VALUE,v[0]=v[1]=_[0]=_[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,o=0,a=0;a<t.length;){var r=t[a++];switch(1==a&&(i=e=t[a],o=n=t[a+1]),r){case S.M:e=i=t[a++],n=o=t[a++],x[0]=i,x[1]=o,_[0]=i,_[1]=o;break;case S.L:g.fromLine(e,n,t[a],t[a+1],x,_),e=t[a++],n=t[a++];break;case S.C:g.fromCubic(e,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],x,_),e=t[a++],n=t[a++];break;case S.Q:g.fromQuadratic(e,n,t[a++],t[a++],t[a],t[a+1],x,_),e=t[a++],n=t[a++];break;case S.A:var s=t[a++],l=t[a++],u=t[a++],c=t[a++],h=t[a++],d=t[a++]+h,p=(t[a++],1-t[a++]);1==a&&(i=I(h)*u+s,o=T(h)*c+l),g.fromArc(s,l,u,c,h,d,p,x,_),e=I(d)*u+s,n=T(d)*c+l;break;case S.R:i=e=t[a++],o=n=t[a++],h=t[a++],p=t[a++];g.fromLine(i,o,i+h,o+p,x,_);break;case S.Z:e=i,n=o}f.min(y,y,x),f.max(v,v,_)}return 0===a&&(y[0]=y[1]=v[0]=v[1]=0),new m(y[0],y[1],v[0]-y[0],v[1]-y[1])},rebuildPath:function(t){for(var e,n,i,o,a=this.data,r=this._ux,s=this._uy,l=this._len,u=0;u<l;){var c=a[u++];switch(1==u&&(e=i=a[u],n=o=a[u+1]),c){case S.M:e=i=a[u++],n=o=a[u++],t.moveTo(i,o);break;case S.L:h=a[u++],d=a[u++],(D(h-i)>r||D(d-o)>s||u===l-1)&&(t.lineTo(h,d),i=h,o=d);break;case S.C:t.bezierCurveTo(a[u++],a[u++],a[u++],a[u++],a[u++],a[u++]),i=a[u-2],o=a[u-1];break;case S.Q:t.quadraticCurveTo(a[u++],a[u++],a[u++],a[u++]),i=a[u-2],o=a[u-1];break;case S.A:var h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++],m=a[u++],y=a[u++],v=a[u++],x=f<p?p:f,_=f<p?1:p/f,b=f<p?f/p:1,m=g+m;.001<Math.abs(p-f)?(t.translate(h,d),t.rotate(y),t.scale(_,b),t.arc(0,0,x,g,m,1-v),t.scale(1/_,1/b),t.rotate(-y),t.translate(-h,-d)):t.arc(h,d,x,g,m,1-v),1==u&&(e=I(g)*p+h,n=T(g)*f+d),i=I(m)*p+h,o=T(m)*f+d;break;case S.R:e=i=a[u],n=o=a[u+1],t.rect(a[u++],a[u++],a[u++],a[u++]);break;case S.Z:t.closePath(),i=e,o=n}}}},i.CMD=S,t.exports=i},function(t,e,n){t.exports={default:n(448),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var h=n(149),d=n(293),p=n(292),f=n(42),g=n(202),m=n(80),y={},v={};(e=t.exports=function(t,e,n,i,o){var a,r,s,l,o=o?function(){return t}:m(t),u=h(n,i,e?2:1),c=0;if("function"!=typeof o)throw TypeError(t+" is not iterable!");if(p(o)){for(a=g(t.length);c<a;c++)if((l=e?u(f(r=t[c])[0],r[1]):u(t[c]))===y||l===v)return l}else for(s=o.call(t);!(r=s.next()).done;)if((l=d(s,u,r.value,e))===y||l===v)return l}).BREAK=y,e.RETURN=v},function(t,e){t.exports={}},function(t,e,n){var c=n(48),i=n(203),o=n(3).isObject;function a(t){this.group=new c.Group,this._symbolCtor=t||i}n=a.prototype;function h(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function d(t){return(t=null==t||o(t)?t:{isIgnore:t})||{}}function p(t){t=t.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}n.updateData=function(i,o){o=d(o);var a=this.group,r=i.hostModel,s=this._data,l=this._symbolCtor,u=p(i);s||a.removeAll(),i.diff(s).add(function(t){var e,n=i.getItemLayout(t);h(i,n,t,o)&&((e=new l(i,t,u)).attr("position",n),i.setItemGraphicEl(t,e),a.add(e))}).update(function(t,e){var e=s.getItemGraphicEl(e),n=i.getItemLayout(t);h(i,n,t,o)?(e?(e.updateData(i,t,u),c.updateProps(e,{position:n},r)):(e=new l(i,t)).attr("position",n),a.add(e),i.setItemGraphicEl(t,e)):a.remove(e)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&e.fadeOut(function(){a.remove(e)})}).execute(),this._data=i},n.isPersistent=function(){return!0},n.updateLayout=function(){var n=this._data;n&&n.eachItemGraphicEl(function(t,e){e=n.getItemLayout(e);t.attr("position",e)})},n.incrementalPrepareUpdate=function(t){this._seriesScope=p(t),this._data=null,this.group.removeAll()},n.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=d(n);for(var o=t.start;o<t.end;o++){var a,r=e.getItemLayout(o);h(e,r,o,n)&&((a=new this._symbolCtor(e,o,this._seriesScope)).traverse(i),a.attr("position",r),this.group.add(a),e.setItemGraphicEl(o,a))}},n.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},t.exports=a},function(t,e,n){var i=n(17),o=n(3),a=n(204),r=n(642);n(638),n(639),n(318),i.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!o.isArray(e)&&(t.axisPointer.link=[e])}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)}),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},r)},function(t,e,n){n(79).__DEV__;var i=n(17),s=n(3),o=n(121),a=n(77),r=n(244),l=n(660),u=s.each,c=r.eachAxisDim,n=i.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=h(t);this.mergeDefaultAndTheme(t,n),this.doInit(i)},mergeOption:function(t){var e=h(t);s.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var n=this.option;o.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(t),d(this,t),u([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var a=this._axisProxies;this.eachTargetAxis(function(t,e,n,i){var o=this.dependentModels[t.axis][e],o=o.__dzAxisProxy||(o.__dzAxisProxy=new l(t.name,e,this,i));a[t.name+"_"+e]=o},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();c(function(t){t=t.axisIndex;e[t]=a.normalizeToArray(e[t])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,n=!1,t=(c(function(t){null!=e[t.axisIndex]&&(n=!0)},this),e.orient);return null==t&&n?"orient":n?void 0:(null==t&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t,a=!0,e=this.get("orient",!0),r=this.option,n=this.dependentModels;a&&(n[(t="vertical"===e?"y":"x")+"Axis"].length?(r[t+"AxisIndex"]=[0],a=!1):u(n.singleAxis,function(t){a&&t.get("orient",!0)===e&&(r.singleAxisIndex=[t.componentIndex],a=!1)})),a&&c(function(t){if(a){var e=[],n=this.dependentModels[t.axis];if(n.length&&!e.length)for(var i=0,o=n.length;i<o;i++)"category"===n[i].get("type")&&e.push(i);(r[t.axisIndex]=e).length&&(a=!1)}},this),a&&this.ecModel.eachSeries(function(o){this._isSeriesHasAllAxesTypeOf(o,"value")&&c(function(t){var e=r[t.axisIndex],n=o.get(t.axisIndex),i=o.get(t.axisId),n=o.ecModel.queryComponents({mainType:t.axis,index:n,id:i})[0].componentIndex;s.indexOf(e,n)<0&&e.push(n)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){e=e||t.name},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(n,i){var o=!0;return c(function(t){var e=n.get(t.axisIndex),t=this.dependentModels[t.axis][e];t&&t.get("type")===i||(o=!1)},this),o},_setDefaultThrottle:function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},getFirstTargetAxisModel:function(){var n;return c(function(t){var e;null==n&&(e=this.get(t.axisIndex)).length&&(n=this.dependentModels[t.axis][e[0]])},this),n},eachTargetAxis:function(n,i){var o=this.ecModel;c(function(e){u(this.get(e.axisIndex),function(t){n.call(i,e,t,this,o)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){t=this.getAxisProxy(t,e);return t&&t.getAxisModel()},setRawRange:function(e,t){var n=this.option;u([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=e[t[0]],n[t[1]]=e[t[1]])},this),t||d(this,e)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e,n=this._axisProxies;for(e in n)if(n.hasOwnProperty(e)&&n[e].hostedBy(this))return n[e];for(e in n)if(n.hasOwnProperty(e)&&!n[e].hostedBy(this))return n[e]},getRangePropMode:function(){return this._rangePropMode.slice()}});function h(e){var n={};return u(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}function d(t,i){var o=t._rangePropMode,a=t.get("rangeMode");u([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":a?o[e]=a[e]:n&&(o[e]="percent")})}t.exports=n},function(t,e,n){n=n(214).extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,r=this.ecModel,s={};return t.eachTargetAxis(function(t,e){t=r.getComponent(t.axis,e);if(t){e=t.getCoordSysModel();if(e){for(var n,i=e,o=s[e.mainType]||(s[e.mainType]=[]),e=e.componentIndex,a=0;a<o.length;a++)if(o[a].model===i){n=o[a];break}n||o.push(n={model:i,axisModels:[],coordIndex:e}),n.axisModels.push(t)}}},this),s}});t.exports=n},function(t,e,n){var i=n(17),o=n(3),a=n(48);n(251),n(637),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:o.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},function(t,e){function s(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function l(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=function(t,e,n,i,o,a){e[0]=l(e[0],n),e[1]=l(e[1],n),t=t||0;var r=n[1]-n[0],r=(null!=o&&(o=l(o,[0,r])),null!=a&&(a=Math.max(a,null!=o?o:0)),"all"===i&&(o=a=Math.abs(e[1]-e[0]),i=0),s(e,i)),t=(e[i]+=t,o||0),n=n.slice(),t=(r.sign<0?n[0]+=t:n[1]-=t,e[i]=l(e[i],n),s(e,i)),t=(null!=o&&(t.sign!==r.sign||t.span<o)&&(e[1-i]=e[i]+r.sign*o),s(e,i));return null!=a&&t.span>a&&(e[1-i]=e[i]+t.sign*a),e}},function(t,e,n){var i=n(3),o=i.createHashMap,a=i.isTypedArray,i=n(143).enableClassCheck,n=n(194),r=n.SOURCE_FORMAT_ORIGINAL,s=n.SERIES_LAYOUT_BY_COLUMN,l=n.SOURCE_FORMAT_UNKNOWN,u=n.SOURCE_FORMAT_TYPED_ARRAY,c=n.SOURCE_FORMAT_KEYED_COLUMNS;function h(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===c?{}:[]),this.sourceFormat=t.sourceFormat||l,this.seriesLayoutBy=t.seriesLayoutBy||s,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&o(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}h.seriesDataToSource=function(t){return new h({data:t,sourceFormat:a(t)?u:r,fromDataset:!1})},i(h),t.exports=h},function(t,e,n){var i=n(3),c=i.each,h=i.createHashMap,d=(i.assert,n(79).__DEV__,h(["tooltip","label","itemName","itemId","seriesName"]));e.OTHER_DIMENSIONS=d,e.summarizeDimensions=function(o){var t={},a=t.encode={},r=h(),s=[],l=[],i=(c(o.dimensions,function(t){var e,i=o.getDimensionInfo(t),n=i.coordDim;n&&(e=a[n],(e=a.hasOwnProperty(n)?e:a[n]=[])[i.coordDimIndex]=t,i.isExtraCoord||(r.set(n,1),"ordinal"!==(e=i.type)&&"time"!==e&&(s[0]=t)),i.defaultTooltip)&&l.push(t),d.each(function(t,e){var n=a[e],e=(a.hasOwnProperty(e)||(n=a[e]=[]),i.otherDims[e]);null!=e&&!1!==e&&(n[e]=i.name)})}),[]),u={},e=(r.each(function(t,e){var n=a[e];u[e]=n[0],i=i.concat(n)}),t.dataDimsOnCoord=i,t.encodeFirstDimNotExtra=u,a.label);return e&&e.length&&(s=e.slice()),(e=a.tooltip)&&e.length?l=e.slice():l.length||(l=s.slice()),a.defaultedLabel=s,a.defaultedTooltip=l,t},e.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e){e.SOURCE_FORMAT_ORIGINAL="original",e.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",e.SOURCE_FORMAT_OBJECT_ROWS="objectRows",e.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",e.SOURCE_FORMAT_UNKNOWN="unknown",e.SOURCE_FORMAT_TYPED_ARRAY="typedArray",e.SERIES_LAYOUT_BY_COLUMN="column",e.SERIES_LAYOUT_BY_ROW="row"},function(t,e,n){var i=n(3).map,o=n(176),a=n(142).isDimensionStacked;t.exports=function(t){return{seriesType:t,plan:o(),reset:function(t){var c,h,e=t.getData(),d=t.coordinateSystem,p=t.pipelineContext.large;if(d)return c=i(d.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),h=c.length,t=e.getCalculationInfo("stackResultDimension"),a(e,c[0])&&(c[0]=t),a(e,c[1])&&(c[1]=t),h&&{progress:function(t,e){for(var n,i,o=t.end-t.start,a=p&&new Float32Array(o*h),r=t.start,s=0,l=[],u=[];r<t.end;r++)i=1===h?(n=e.get(c[0],r),!isNaN(n)&&d.dataToPoint(n,null,u)):(n=l[0]=e.get(c[0],r),i=l[1]=e.get(c[1],r),!isNaN(n)&&!isNaN(i)&&d.dataToPoint(l,null,u)),p?(a[s++]=i?i[0]:NaN,a[s++]=i?i[1]:NaN):e.setItemLayout(r,i&&i.slice()||[NaN,NaN]);p&&e.setLayout("symbolPoints",a)}}}}}},function(t,e){t.exports=function(t){return{seriesType:t,reset:function(t,e){var i,o=e.findComponents({mainType:"legend"});o&&o.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n<o.length;n++)if(!o[n].isSelected(e))return!1;return!0})}}}},function(t,e,n){var n=n(217).debugMode,i=function(){};1===n?i=function(){for(var t in arguments)throw new Error(arguments[t])}:1<n&&(i=function(){}),t.exports=i},function(t,e,n){var i=n(3),o=n(374),a=n(362),n=n(379);function r(t){for(var e in a.call(this,t=t||{}),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new o(t.style,this),this._rect=null,this.__clipPaths=[]}r.prototype={constructor:r,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,inplace:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new o(t,this),this.dirty(!1),this}},i.inherits(r,a),i.mixin(r,n),t.exports=r},function(t,e,n){var i=n(198),o=n(118),a=n(3),c=n(279);function r(t){i.call(this,t)}r.prototype={constructor:r,type:"image",brush:function(t,e){var n,i,o,a,r,s,l=this.style,u=l.image,e=(l.bind(t,this,e),this._image=c.createOrUpdateImage(u,this._image,this,this.onload));e&&c.isImageReady(e)&&(u=l.x||0,n=l.y||0,i=l.width,o=l.height,a=e.width/e.height,null==i&&null!=o?i=o*a:null==o&&null!=i?o=i/a:null==i&&null==o&&(i=e.width,o=e.height),this.setTransform(t),l.sWidth&&l.sHeight?(r=l.sx||0,s=l.sy||0,t.drawImage(e,r,s,l.sWidth,l.sHeight,u,n,i,o)):l.sx&&l.sy?(r=l.sx,s=l.sy,t.drawImage(e,r,s,i-r,o-s,u,n,i,o)):t.drawImage(e,u,n,i,o),null!=l.text)&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new o(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(r,i),t.exports=r},function(t,e,n){function i(t){o.call(this,t)}var o=n(198),a=n(3),r=n(137),s=n(220);i.prototype={constructor:i,type:"text",brush:function(t,e){var n=this.style,i=(this.__dirty&&s.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null,n.text);null!=i&&(i+=""),n.bind(t,this,e),s.needDrawText(i,n)&&(this.setTransform(t),s.renderText(this,t,i,n),this.restoreTransform(t))},getBoundingRect:function(){var t,e=this.style;return this.__dirty&&s.normalizeTextStyle(e,!0),this._rect||(null!=e.text?0:0,(t=r.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.rich)).x+=e.x||0,t.y+=e.y||0,s.getStroke(e.textStroke,e.textStrokeWidth)&&(e=e.textStrokeWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect}},a.inherits(i,o),t.exports=i},function(t,e,n){t.exports={default:n(450),__esModule:!0}},function(t,e,n){var i=n(237),o=Math.min;t.exports=function(t){return 0<t?o(i(t),9007199254740991):0}},function(t,e,n){var v=n(3),a=n(134).createSymbol,x=n(48),_=n(61).parsePercent,b=n(242).getDefaultLabel;function i(t,e,n){x.Group.call(this),this.updateData(t,e,n)}var n=i.prototype,u=i.getSymbolSize=function(t,e){t=t.getItemVisual(e,"symbolSize");return t instanceof Array?t.slice():[+t,+t]};function w(t){return[t[0]/2,t[1]/2]}function r(t,e){this.parent.drift(t,e)}n._createSymbol=function(t,e,n,i,o){this.removeAll();e=e.getItemVisual(n,"color"),n=a(t,-1,-1,2,2,e,o);n.attr({z2:100,culling:!0,scale:w(i)}),n.drift=r,this._symbolType=t,this.add(n)},n.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},n.getSymbolPath=function(){return this.childAt(0)},n.getScale=function(){return this.childAt(0).scale},n.highlight=function(){this.childAt(0).trigger("emphasis")},n.downplay=function(){this.childAt(0).trigger("normal")},n.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},n.updateData=function(t,e,n){this.silent=!1;var i,o,a=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,s=u(t,e),l=a!==this._symbolType;l?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(a,t,e,s,o)):((i=this.childAt(0)).silent=!1,x.updateProps(i,{scale:w(s)},r,e)),this._updateCommon(t,e,s,n),l&&(i=this.childAt(0),a=n&&n.fadeIn,o={scale:i.scale.slice()},a&&(o.style={opacity:i.style.opacity}),i.scale=[0,0],a&&(i.style.opacity=0),x.initProps(i,o,r,e)),this._seriesModel=r};var S=["itemStyle"],M=["emphasis","itemStyle"],I=["label"],T=["emphasis","label"];n._updateCommon=function(n,t,e,i){var o=this.childAt(0),a=n.hostModel,r=n.getItemVisual(t,"color"),s=("image"!==o.type&&o.useStyle({strokeNoScale:!0}),i&&i.itemStyle),l=i&&i.hoverItemStyle,u=i&&i.symbolRotate,c=i&&i.symbolOffset,h=i&&i.labelModel,d=i&&i.hoverLabelModel,p=i&&i.hoverAnimation,f=i&&i.cursorStyle,g=(!i||n.hasItemOption?(s=(g=i&&i.itemModel?i.itemModel:n.getItemModel(t)).getModel(S).getItemStyle(["color"]),l=g.getModel(M).getItemStyle(),u=g.getShallow("symbolRotate"),c=g.getShallow("symbolOffset"),h=g.getModel(I),d=g.getModel(T),p=g.getShallow("hoverAnimation"),f=g.getShallow("cursor")):l=v.extend({},l),o.style),u=(o.attr("rotation",(u||0)*Math.PI/180||0),c&&o.attr("position",[_(c[0],e[0]),_(c[1],e[1])]),f&&o.attr("cursor",f),o.setColor(r,i&&i.symbolInnerColor),o.setStyle(s),n.getItemVisual(t,"opacity")),c=(null!=u&&(g.opacity=u),n.getItemVisual(t,"liftZ")),f=o.__z2Origin,m=(null!=c?null==f&&(o.__z2Origin=o.z2,o.z2+=c):null!=f&&(o.z2=f,o.__z2Origin=null),i&&i.useNameLabel);x.setLabelStyle(g,l,h,d,{labelFetcher:a,labelDataIndex:t,defaultText:function(t,e){return m?n.getName(t):b(n,t)},isRectText:!0,autoColor:r}),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=l,x.setHoverStyle(o);var y=w(e);p&&a.isAnimationEnabled()&&(s=function(){this.incremental||this.animateTo({scale:y},400,"elasticOut")},o.on("mouseover",u=function(){var t;this.incremental||(t=y[1]/y[0],this.animateTo({scale:[Math.max(1.1*y[0],y[0]+3),Math.max(1.1*y[1],y[1]+3*t)]},400,"elasticOut"))}).on("mouseout",s).on("emphasis",u).on("normal",s))},n.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,e&&e.keepLabel||(n.style.text=null),x.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},v.inherits(i,x.Group),t.exports=i},function(t,e,n){var f=n(3),g=n(122),m=f.each,a=f.curry;function y(t,e){return"all"===t||f.isArray(t)&&0<=f.indexOf(t,e)||t===e}function r(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[x(t)]}function v(t){return!!t.get("handle.show")}function x(t){return t.type+"||"+t.id}e.collect=function(t,e){var u,c,o,h,d,p,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return u=n,e=e,o=(c=t).getComponent("tooltip"),h=c.getComponent("axisPointer"),d=h.get("link",!0)||[],p=[],m(e.getCoordinateSystems(),function(r){var s,l,t,e,n;function i(t,e,n){var i,o=n.model.getModel("axisPointer",h),a=o.get("show");a&&("auto"!==a||t||v(o))&&(null==e&&(e=o.get("triggerTooltip")),a=(o=t?function(t,e,n,i,o,a){var r=e.getModel("axisPointer"),s={};m(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=f.clone(r.get(t))}),s.snap="category"!==t.type&&!!a,"cross"===r.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=r.get("label.show"),e.show=null==o||o,a||(o=s.lineStyle=r.get("crossStyle"))&&f.defaults(e,o.textStyle));return t.model.getModel("axisPointer",new g(s,n,i))}(n,l,h,c,t,e):o).get("snap"),t=x(n.model),i=e||a||"category"===n.type,e=u.axesInfo[t]={key:t,axis:n,coordSys:r,axisPointerModel:o,triggerTooltip:e,involveSeries:i,snap:a,useHandle:v(o),seriesModels:[]},s[t]=e,u.seriesInvolved|=i,null!=(a=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var a=t[o]||{};if(y(a[i+"AxisId"],n.id)||y(a[i+"AxisIndex"],n.componentIndex)||y(a[i+"AxisName"],n.name))return o}}(d,n)))&&((o=p[a]||(p[a]={axesInfo:{}})).axesInfo[t]=e,o.mapper=d[a].mapper,e.linkGroup=o)}r.axisPointerEnabled&&(t=x(r.model),s=u.coordSysAxesInfo[t]={},l=(u.coordSysMap[t]=r).model.getModel("tooltip",o),m(r.getAxes(),a(i,!1,null)),r.getTooltipAxes)&&o&&l.get("show")&&(t="axis"===l.get("trigger"),e="cross"===l.get("axisPointer.type"),n=r.getTooltipAxes(l.get("axisPointer.axis")),(t||e)&&m(n.baseAxes,a(i,!e||"cross",t)),e)&&m(n.otherAxes,a(i,"cross",!1))}),n.seriesInvolved&&function(o,t){t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get("tooltip.trigger",!0),e=n.get("tooltip.show",!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get("axisPointer.show",!0)&&m(o.coordSysAxesInfo[x(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})},this)}(n,t),n},e.fixValue=function(t){var e,n,i,o,a;(t=r(t))&&(o=t.axisPointerModel,e=t.axis.scale,n=o.option,a=o.get("status"),null!=(i=o.get("value"))&&(i=e.parse(i)),o=v(o),null==a&&(n.status=o?"show":"hide"),(a=e.getExtent().slice())[0]>a[1]&&a.reverse(),(i=null==i||i>a[1]?a[1]:i)<a[0]&&(i=a[0]),n.value=i,o)&&(n.status=t.axis.scale.isBlank()?"hide":"show")},e.getAxisInfo=r,e.getAxisPointerModel=function(t){return(t=r(t))&&t.axisPointerModel},e.makeKey=x},function(t,e,n){var s=n(3),o=n(48),p=n(137),f=n(116),a=n(129),l=n(136),u=n(160);function c(t,e,n,i,o){var a,r=g(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),n=n.getModel("label"),s=f.normalizeCssArray(n.get("padding")||0),l=n.getFont(),u=p.getBoundingRect(r,l),c=o.position,h=u.width+s[1]+s[3],u=u.height+s[0]+s[2],s=o.align,s=("right"===s&&(c[0]-=h),"center"===s&&(c[0]-=h/2),o.verticalAlign),d=("bottom"===s&&(c[1]-=u),"middle"===s&&(c[1]-=u/2),o=c,s=h,a=u,d=(i=i).getWidth(),i=i.getHeight(),o[0]=Math.min(o[0]+s,d)-s,o[1]=Math.min(o[1]+a,i)-a,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));d&&"auto"!==d||(d=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:h,height:u,r:n.get("borderRadius")},position:c.slice(),style:{text:r,textFont:l,textFill:n.getTextColor(),textPosition:"inside",fill:d,stroke:n.get("borderColor")||"transparent",lineWidth:n.get("borderWidth")||0,shadowBlur:n.get("shadowBlur"),shadowColor:n.get("shadowColor"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY")},z2:10}}function g(t,e,n,i,o){t=e.scale.parse(t);var a,r=e.scale.getLabel(t,{precision:o.precision}),o=o.formatter;return o&&(a={value:l.getAxisRawValue(e,t),seriesData:[]},s.each(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&a.seriesData.push(e)}),s.isString(o)?r=o.replace("{value}",r):s.isFunction(o)&&(r=o(a))),r}function h(t,e,n){var i=a.create();return a.rotate(i,i,n.rotation),a.translate(i,i,n.position),o.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}e.buildElStyle=function(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e},e.buildLabelElOption=c,e.getValueLabel=g,e.getTransformedPosition=h,e.buildCartesianSingleLabelElOption=function(t,e,n,i,o,a){var r=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get("label.margin"),c(e,i,o,a,{position:h(i.axis,t,n),align:r.textAlign,verticalAlign:r.textVerticalAlign})},e.makeLineShape=function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}},e.makeRectShape=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},e.makeSectorShape=function(t,e,n,i,o,a){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:a,clockwise:!0}}},function(t,e,n){var l=n(3),u=n(174),s=n(147),c=n(329);function i(n){this.pointerChecker,this._zr=n,this._opt={};var t=l.bind,i=t(h,this),o=t(d,this),a=t(p,this),r=t(f,this),s=t(g,this);u.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(t,e){this.disable(),this._opt=l.defaults(l.clone(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(n.on("mousewheel",r),n.on("pinch",s))},this.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",a),n.off("mousewheel",r),n.off("pinch",s)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function h(t){var e,n;s.notLeftMouse(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))}function d(t){var e,n,i,o,a,r;!s.notLeftMouse(t)&&m(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!c.isTaken(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,a=e-(i=this._x),r=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&s.stop(t.event),this.trigger("pan",a,r,i,o,e,n))}function p(t){s.notLeftMouse(t)||(this._dragging=!1)}function f(t){var e;m(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta&&(e=0<t.wheelDelta?1.1:1/1.1,o.call(this,t,e,t.offsetX,t.offsetY))}function g(t){var e;c.isTaken(this._zr,"globalPan")||(e=1<t.pinchScale?1.1:1/1.1,o.call(this,t,e,t.pinchX,t.pinchY))}function o(t,e,n,i){this.pointerChecker&&this.pointerChecker(t,n,i)&&(s.stop(t.event),this.trigger("zoom",e,n,i))}function m(t,e,n){t=t._opt[e];return t&&(!l.isString(t)||n.event[t+"Key"])}l.mixin(i,u),t.exports=i},function(t,e,n){var s=n(3),i=n(344),o=n(120),a=n(109),l=a.getLayoutParams,u=a.mergeLayoutParam,c=n(351),h=["value","category","time","log"];t.exports=function(a,t,r,e){s.each(h,function(o){t.extend({type:a+"Axis."+o,mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?l(t):{},e=e.getTheme();s.merge(t,e.get(o+"Axis")),s.merge(t,this.getDefaultOption()),t.type=r(a,t),n&&u(t,i,n)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:s.mergeAll([{},i[o+"Axis"],e],!0)})}),o.registerSubTypeDefaulter(a+"Axis",s.curry(r,a))}},function(t,e,n){n(79).__DEV__;var l=n(17),u=n(3),s=n(732),c=n(109),h=n(61);function d(t,e){var n,i=t.get("boundingCoords"),i=(null!=i&&(o=i[0],i=i[1],isNaN(o[0])||isNaN(o[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(o[0],o[1],i[0]-o[0],i[1]-o[1])),this.getBoundingRect()),o=t.get("layoutCenter"),a=t.get("layoutSize"),r=e.getWidth(),e=e.getHeight(),s=t.get("aspectScale")||.75,i=i.width/i.height*s,s=!1;o&&a&&(o=[h.parsePercent(o[0],r),h.parsePercent(o[1],e)],a=h.parsePercent(a,Math.min(r,e)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(s=!0)),s?(n={},1<i?(n.width=a,n.height=a/i):(n.height=a,n.width=a*i),n.y=o[1]-n.height/2,n.x=o[0]-n.width/2):((s=t.getBoxLayoutParams()).aspect=i,n=c.getLayoutRect(s,{width:r,height:e})),this.setViewRect(n.x,n.y,n.width,n.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function p(n,t){u.each(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})}n={dimensions:s.prototype.dimensions,create:function(t,a){var r=[],n=(t.eachComponent("geo",function(t,e){var n=t.get("map"),i=l.getMap(n),e=new s(n+e,n,i&&i.geoJson,i&&i.specialAreas,t.get("nameMap"));e.zoomLimit=t.get("scaleLimit"),r.push(e),p(e,t),(t.coordinateSystem=e).model=t,e.resize=d,e.resize(t,a)}),t.eachSeries(function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=r[e])}),{});return t.eachSeriesByType("map",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),u.each(n,function(t,e){var n=l.getMap(e),i=u.map(t,function(t){return t.get("nameMap")}),o=new s(e,e,n&&n.geoJson,n&&n.specialAreas,u.mergeAll(i));o.zoomLimit=u.retrieve.apply(null,u.map(t,function(t){return t.get("scaleLimit")})),r.push(o),o.resize=d,o.resize(t[0],a),u.each(t,function(t){p(t.coordinateSystem=o,t)})}),r},getFilledRegions:function(t,e,n){var i=(t||[]).slice(),e=(n=n||{},l.getMap(e)),e=e&&e.geoJson;if(!e)return t;for(var o=u.createHashMap(),a=e.features,r=0;r<i.length;r++)o.set(i[r].name,i[r]);for(r=0;r<a.length;r++){var s=a[r].properties.name;o.get(s)||(n.hasOwnProperty(s)&&(s=n[s]),i.push({name:s}))}return i}};l.registerCoordinateSystem("geo",n),t.exports=n},function(t,e,n){n(79).__DEV__;var i=n(77),o=i.makeInner,f=i.getDataItemValue,m=n(357).getCoordSysDefineBySeries,i=n(3),y=i.createHashMap,v=i.each,a=i.map,g=i.isArray,x=i.isString,_=i.isObject,b=i.isTypedArray,s=i.isArrayLike,r=i.extend,c=(i.assert,n(192)),i=n(194),w=i.SOURCE_FORMAT_ORIGINAL,S=i.SOURCE_FORMAT_ARRAY_ROWS,M=i.SOURCE_FORMAT_OBJECT_ROWS,I=i.SOURCE_FORMAT_KEYED_COLUMNS,l=i.SOURCE_FORMAT_UNKNOWN,h=i.SOURCE_FORMAT_TYPED_ARRAY,T=i.SERIES_LAYOUT_BY_ROW,A=o();function d(t){var i;if(t)return i=y(),a(t,function(t,e){var n;return null!=(t=r({},_(t)?t:{name:t})).name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function p(t,e,n,i){if(null==i&&(i=1/0),e===T)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var a=n[0]||[],o=0;o<a.length&&o<i;o++)t(a[o],o)}function D(t,e,n,i,o,a){var r,s;if(!b(t))if(i&&(s=i[a],s=_(s)?s.name:s),e===S)if(n===T){for(var l=t[a],u=0;u<(l||[]).length&&u<5;u++)if(null!=(r=p(l[o+u])))return r}else for(u=0;u<t.length&&u<5;u++){var c=t[o+u];if(c&&null!=(r=p(c[a])))return r}else if(e===M){if(!s)return;for(u=0;u<t.length&&u<5;u++)if((h=t[u])&&null!=(r=p(h[s])))return r}else if(e===I){if(!s)return;if(!(l=t[s])||b(l))return!1;for(u=0;u<l.length&&u<5;u++)if(null!=(r=p(l[u])))return r}else if(e===w)for(u=0;u<t.length&&u<5;u++){var h=t[u],d=f(h);if(!g(d))return!1;if(null!=(r=p(d[a])))return r}return!1;function p(t){return(null==t||!isFinite(t)||""===t)&&(!(!x(t)||"-"===t)||void 0)}}e.detectSourceFormat=function(t){var e=t.option.source,n=l;if(b(e))n=h;else if(g(e))for(var i=0,o=e.length;i<o;i++){var a=e[i];if(null!=a){if(g(a)){n=S;break}if(_(a)){n=M;break}}}else if(_(e)){for(var r in e)if(e.hasOwnProperty(r)&&s(e[r])){n=I;break}}else if(null!=e)throw new Error("Invalid data");A(t).sourceFormat=n},e.getSource=function(t){return A(t).source},e.resetSourceDefaulter=function(t){A(t).datasetMap=y()},e.prepareSource=function(t){var e=t.option,n=e.data,i=b(n)?h:w,o=!1,a=e.seriesLayoutBy,r=e.sourceHeader,s=e.dimensions,l=function(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}(t),u=(l&&(n=(u=l.option).source,i=A(l).sourceFormat,o=!0,a=a||u.seriesLayoutBy,null==r&&(r=u.sourceHeader),s=s||u.dimensions),function(t,e,n,i,o){if(!t)return{dimensionsDefine:d(o)};var a,r,s,l;e===S?("auto"===i||null==i?p(function(t){null!=t&&"-"!==t&&(x(t)?null==r&&(r=1):r=0)},n,t,10):r=i?1:0,o||1!==r||(o=[],p(function(t,e){o[e]=null!=t?t:""},n,t)),a=o?o.length:n===T?t.length:t[0]?t[0].length:null):e===M?o||(o=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););{var i;if(e)return i=[],v(e,function(t,e){i.push(e)}),i}}(t),s=!0):e===I?o||(o=[],s=!0,v(t,function(t,e){o.push(e)})):e===w&&(i=f(t[0]),a=g(i)&&i.length||1);s&&v(o,function(t,e){"name"===(_(t)?t.name:t)&&(l=e)});return{startIndex:r,dimensionsDefine:d(o),dimensionsDetectCount:a,potentialNameDimIndex:l}}(n,i,a,r,s));!(r=e.encode)&&l&&(r=function(t,e,n,i,o,a){var r,s=m(t),l={},u=[],c=[],h=t.subType,d=y(["pie","map","funnel"]),p=y(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(s&&null!=p.get(h)){var p=t.ecModel,t=A(p).datasetMap,p=e.uid+"_"+o,f=t.get(p)||t.set(p,{categoryWayDim:1,valueWayDim:0});v(s.coordSysDims,function(t){var e;null==s.firstCategoryDimIndex?(e=f.valueWayDim++,c.push(l[t]=e)):s.categoryAxisMap.get(t)?u.push(l[t]=0):(e=f.categoryWayDim++,c.push(l[t]=e))})}else if(null!=d.get(h)){for(var g=0;g<5&&null==r;g++)D(n,i,o,a.dimensionsDefine,a.startIndex,g)||(r=g);null!=r&&(l.value=r,e=a.potentialNameDimIndex||Math.max(r-1,0),c.push(e),u.push(e))}return u.length&&(l.itemName=u),c.length&&(l.seriesName=c),l}(t,l,n,i,a,u)),A(t).source=new c({data:n,fromDataset:o,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:r})},e.guessOrdinal=function(t,e){return D(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}},function(t,e,n){var d=n(3),p=n(61).parsePercent,A=n(142).isDimensionStacked,n=n(176),l="__ec_stack_",g="undefined"!=typeof Float32Array?Float32Array:Array;function D(t){return t.get("stack")||l+t.seriesIndex}function C(t){return t.dim+t.index}function i(t,e){var n=[];return e.eachSeriesByType(t,function(t){r(t)&&!m(t)&&n.push(t)}),n}function o(t){var s=[];return d.each(t,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),i="category"===n.type?n.getBandWidth():Math.abs(i[1]-i[0])/e.count(),e=p(t.get("barWidth"),i),o=p(t.get("barMaxWidth"),i),a=t.get("barGap"),r=t.get("barCategoryGap");s.push({bandWidth:i,barWidth:e,barMaxWidth:o,barGap:a,barCategoryGap:r,axisKey:C(n),stackId:D(t)})}),u(s)}function u(t){var r={},h=(d.each(t,function(t,e){var n=t.axisKey,i=t.bandWidth,i=r[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=i.stacks,n=(r[n]=i,t.stackId),a=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!o[n].width&&(o[n].width=a,a=Math.min(i.remainedWidth,a),i.remainedWidth-=a),t.barMaxWidth),o=(a&&(o[n].maxWidth=a),t.barGap),n=(null!=o&&(i.gap=o),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),{});return d.each(r,function(t,n){h[n]={};var i,e=t.stacks,o=t.bandWidth,o=p(t.categoryGap,o),a=p(t.gap,1),r=t.remainedWidth,s=t.autoWidthCount,l=(r-o)/(s+(s-1)*a),l=Math.max(l,0),u=(d.each(e,function(t,e){var n=t.maxWidth;n&&n<l&&(n=Math.min(n,r),t.width&&(n=Math.min(n,t.width)),r-=n,t.width=n,s--)}),l=(r-o)/(s+(s-1)*a),l=Math.max(l,0),0),c=(d.each(e,function(t,e){t.width||(t.width=l),u+=(i=t).width*(1+a)}),i&&(u-=i.width*a),-u/2);d.each(e,function(t,e){h[n][e]=h[n][e]||{offset:c,width:t.width},c+=t.width*(1+a)})}),h}function a(t,e,n){if(t&&e)return null!=(t=t[C(e)])&&null!=n?t[D(n)]:t}n={seriesType:"bar",plan:n(),reset:function(t){var e,s,l,u,c,h,d,p,f;if(r(t)&&m(t))return e=t.getData(),s=t.coordinateSystem,l=s.getBaseAxis(),u=s.getOtherAxis(l),c=e.mapDimension(u.dim),h=e.mapDimension(l.dim),d=u.isHorizontal(),p=d?0:1,.5<(f=a(o([t]),l,t).width)||(f=.5),{progress:function(t,e){var n,i=new g(2*t.count),o=[],a=[],r=0;for(;null!=(n=t.next());)a[p]=e.get(c,n),a[1-p]=e.get(h,n),o=s.dataToPoint(a,null,o),i[r++]=o[0],i[r++]=o[1];e.setLayout({largePoints:i,barWidth:f,valueAxisStart:L(l,u,!1),valueAxisHorizontal:d})}}}};function r(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function m(t){return t.pipelineContext&&t.pipelineContext.large}function L(t,e,n){return 0<=d.indexOf(t.getAxesOnZeroOf(),e)||n?e.toGlobalCoord(e.dataToCoord(0)):e.getGlobalExtent()[0]}e.getLayoutOnAxis=function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(d.defaults({bandWidth:i,axisKey:"axis0",stackId:l+o},t));for(var a=u(e),r=[],o=0;o<t.count;o++){var s=a.axis0[l+o];s.offsetCenter=s.offset+s.width/2,r.push(s)}return r}},e.prepareLayoutBarSeries=i,e.makeColumnLayout=o,e.retrieveColumnLayout=a,e.layout=function(t,e){var I=o(t=i(t,e)),T={};d.each(t,function(t){for(var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=D(t),a=I[C(i)][o],r=a.offset,s=a.width,a=n.getOtherAxis(i),l=t.get("barMinHeight")||0,u=(T[o]=T[o]||[],o,e.setLayout({offset:r,size:s}),e.mapDimension(a.dim)),c=e.mapDimension(i.dim),h=A(e,u),d=a.isHorizontal(),p=L(i,a,h),f=0,g=e.count();f<g;f++){var m,y,v,x,_,b,w,S=e.get(u,f),M=e.get(c,f);isNaN(S)||(m=0<=S?"p":"n",y=p,h&&(T[o][M]||(T[o][M]={p:p,n:p}),y=T[o][M][m]),d?(v=y,x=(w=n.dataToPoint([S,M]))[1]+r,_=w[0]-p,b=s,Math.abs(_)<l&&(_=(_<0?-1:1)*l),h&&(T[o][M][m]+=_)):(v=(w=n.dataToPoint([M,S]))[0]+r,x=y,_=s,b=w[1]-p,Math.abs(b)<l&&(b=(b<=0?-1:1)*l),h&&(T[o][M][m]+=b)),e.setItemLayout(f,{x:v,y:x,width:_,height:b}))}},this)},e.largeLayout=n},function(t,e,n){var i=n(61),o=n(116),a=n(212),r=n(358),s=i.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=r.getIntervalPrecision(t)},getTicks:function(){return r.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=i.getPrecisionSafe(t)||0:"auto"===e&&(e=this._intervalPrecision),t=s(t,e,!0),o.addCommas(t))},niceTicks:function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=r.intervalScaleNiceTicks(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},niceExtent:function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=s(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=s(Math.ceil(e[1]/n)*n))}});l.create=function(){return new l},t.exports=l},function(t,e,n){n=n(143);function i(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}i.prototype.parse=function(t){return t},i.prototype.getSetting=function(t){return this._setting[t]},i.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},i.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},i.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},i.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(t){this._isBlank=t},i.prototype.getLabel=null,n.enableClassExtend(i),n.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){var y=n(3),r=n(143).parseClassType,i=0;e.getUID=function(t){return[t||"",i++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(o){var a={};return o.registerSubTypeDefaulter=function(t,e){t=r(t),a[t.main]=e},o.determineSubType=function(t,e){var n,i=e.type;return i||(n=r(t).main,o.hasSubTypes(t)&&a[n]&&(i=a[n](e))),i},o},e.enableTopologicalTravel=function(t,g){function m(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,n,i){if(t.length){a=e,r={},s=[],y.each(a,function(n){var e,i,o=m(r,n),t=o.originalDeps=g(n),t=(e=a,i=[],y.each(t,function(t){0<=y.indexOf(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),y.each(t,function(t){y.indexOf(o.predecessor,t)<0&&o.predecessor.push(t);var e=m(r,t);y.indexOf(e.successor,t)<0&&e.successor.push(n)})});var a,r,s,e={graph:r,noEntryList:s},o=e.graph,l=e.noEntryList,u={};for(y.each(t,function(t){u[t]=!0});l.length;){var c=l.pop(),h=o[c],d=!!u[c];d&&(n.call(i,c,h.originalDeps.slice()),delete u[c]),y.each(h.successor,d?f:p)}y.each(u,function(){throw new Error("Circle dependency may exists")})}function p(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}},function(t,e,n){function i(){this.group=new o,this.uid=a.getUID("viewComponent")}var o=n(218),a=n(213),n=n(143),r=i.prototype={constructor:i,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};r.updateView=r.updateLayout=r.updateVisual=function(t,e,n,i){},n.enableClassExtend(i),n.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){var o=n(3).createHashMap;t.exports=function(i){return{getTargetSeries:function(t){var e={},n=o();return t.eachSeriesByType(i,function(t){t.__paletteScope=e,n.set(t.uid,t)}),n},reset:function(i,t){var o=i.getRawData(),a={},r=i.getData();r.each(function(t){var e=r.getRawIndex(t);a[e]=t}),o.each(function(t){var e=a[t],n=null!=e&&r.getItemVisual(e,"color",!0);n?o.setItemVisual(t,"color",n):(n=o.getItemModel(t).get("itemStyle.color")||i.getColorFromPalette(o.getName(t)||t+"",i.__paletteScope,o.count()),o.setItemVisual(t,"color",n),null!=e&&r.setItemVisual(e,"color",n))})}}}},function(t,e,n){var r=n(3),m=n(166),s=r.each;function o(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}e.createVisualMappings=function(e,t,o){var a={};return s(t,function(n){var i=a[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}s(e[n],function(t,e){m.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new m(t),"opacity"===e)&&((t=r.clone(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new m(t))})}),a},e.replaceVisualOption=function(e,n,t){var i;r.each(t,function(t){n.hasOwnProperty(t)&&o(n[t])&&(i=!0)}),i&&r.each(t,function(t){n.hasOwnProperty(t)&&o(n[t])?e[t]=r.clone(n[t]):delete e[t]})},e.applyVisual=function(t,s,l,u,c,h){var d,p={};function f(t){return l.getItemVisual(d,t)}function g(t,e){l.setItemVisual(d,t,e)}function e(t,e){d=null==h?t:e;e=l.getRawDataItem(d);if(!e||!1!==e.visualMap)for(var e=u.call(c,t),n=s[e],i=p[e],o=0,a=i.length;o<a;o++){var r=i[o];n[r]&&n[r].applyVisual(t,f,g)}}r.each(t,function(t){var e=m.prepareVisualTypes(s[t]);p[t]=e}),null==h?l.each(e):l.each([h],e)},e.incrementalApplyVisual=function(t,d,p,f){var g={};return r.each(t,function(t){var e=m.prepareVisualTypes(d[t]);g[t]=e}),{progress:function(t,n){function e(t){return n.getItemVisual(o,t)}function i(t,e){n.setItemVisual(o,t,e)}var o;for(null!=f&&(f=n.getDimension(f));null!=(o=t.next());){var a=n.getRawDataItem(o);if(a&&!1===a.visualMap)return;for(var r=null!=f?n.get(f,o,!0):o,a=p(r),s=d[a],l=g[a],u=0,c=l.length;u<c;u++){var h=l[u];s[h]&&s[h].applyVisual(r,e,i)}}}}}},function(t,e){var n=1,n=n="undefined"!=typeof window?Math.max(window.devicePixelRatio||1,1):n;e.debugMode=0,e.devicePixelRatio=n},function(t,e,n){function a(t){for(var e in i.call(this,t=t||{}),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0}var r=n(3),i=n(362),l=n(118);a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},_doAdd:function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof a)&&t.addChildrenToStorage(e),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,o=r.indexOf(i,t);return o<0||(i.splice(o,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof a)&&t.delChildrenFromStorage(n),e&&e.refresh()),this},removeAll:function(){for(var t,e=this._children,n=this.__storage,i=0;i<e.length;i++)t=e[i],n&&(n.delFromStorage(t),t instanceof a)&&t.delChildrenFromStorage(n),t.parent=null;return e.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new l(0,0,0,0),i=t||this._children,o=[],a=0;a<i.length;a++){var r,s=i[a];s.ignore||s.invisible||(r=s.getBoundingRect(),(s=s.getLocalTransform(o))?(n.copy(r),n.applyTransform(s),(e=e||n.clone()).union(n)):(e=e||r.clone()).union(r))}return e||n}},r.inherits(a,i),t.exports=a},function(t,e){function n(t){this.colorStops=t||[]}n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=n},function(t,e,n){var i=n(3),h=i.retrieve2,d=i.retrieve3,o=i.each,a=i.normalizeCssArray,p=i.isString,f=i.isObject,A=n(137),g=n(378),m=n(279),r=n(376),s={left:1,right:1,center:1},l={top:1,bottom:1,middle:1};function u(t){var e;t&&(t.font=A.makeFont(t),e=t.textAlign,t.textAlign=null==(e="middle"===e?"center":e)||s[e]?e:"left",e=t.textVerticalAlign||t.textBaseline,t.textVerticalAlign=null==(e="center"===e?"middle":e)||l[e]?e:"top",t.textPadding)&&(t.textPadding=a(t.textPadding))}function D(t,e,n,i,o){var a;n&&e.textRotation&&("center"===(a=e.textOrigin)?(i=n.width/2+n.x,o=n.height/2+n.y):a&&(i=a[0]+n.x,o=a[1]+n.y),t.translate(i,o),t.rotate(-e.textRotation),t.translate(-i,-o))}function C(t,e,n,i,o,a,r,s){var l=i.rich[n.styleName]||{},u=n.textVerticalAlign,c=a+o/2,u=("top"===u?c=a+n.height/2:"bottom"===u&&(c=a+o-n.height/2),!n.isLineHolder&&L(l)&&P(t,e,l,"right"===s?r-n.width:"center"===s?r-n.width/2:r,c-n.height/2,n.width,n.height),n.textPadding),a=(u&&(r=w(r,s,u),c-=n.height/2-u[2]-n.textHeight/2),x(e,"shadowBlur",d(l.textShadowBlur,i.textShadowBlur,0)),x(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),x(e,"shadowOffsetX",d(l.textShadowOffsetX,i.textShadowOffsetX,0)),x(e,"shadowOffsetY",d(l.textShadowOffsetY,i.textShadowOffsetY,0)),x(e,"textAlign",s),x(e,"textBaseline","middle"),x(e,"font",n.font||A.DEFAULT_FONT),_(l.textStroke||i.textStroke,void 0)),o=b(l.textFill||i.textFill),t=h(l.textStrokeWidth,i.textStrokeWidth);a&&(x(e,"lineWidth",t),x(e,"strokeStyle",a),e.strokeText(n.text,r,c)),o&&(x(e,"fillStyle",o),e.fillText(n.text,r,c))}function L(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function P(t,e,n,i,o,a,r){var s=n.textBackgroundColor,l=n.textBorderWidth,u=n.textBorderColor,c=p(s);x(e,"shadowBlur",n.textBoxShadowBlur||0),x(e,"shadowColor",n.textBoxShadowColor||"transparent"),x(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),x(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),(c||l&&u)&&(e.beginPath(),(n=n.textBorderRadius)?g.buildPath(e,{x:i,y:o,width:a,height:r,r:n}):e.rect(i,o,a,r),e.closePath()),c?(x(e,"fillStyle",s),e.fill()):f(s)&&(n=s.image,n=m.createOrUpdateImage(n,null,t,y,s))&&m.isImageReady(n)&&e.drawImage(n,i,o,a,r),l&&u&&(x(e,"lineWidth",l),x(e,"strokeStyle",u),e.stroke())}function y(t,e){e.image=t}function k(t,e,n){var i,o=e.x||0,a=e.y||0,r=e.textAlign,s=e.textVerticalAlign;return n&&((i=e.textPosition)instanceof Array?(o=n.x+c(i[0],n.width),a=n.y+c(i[1],n.height)):(o=(i=A.adjustTextPositionOnRect(i,n,e.textDistance)).x,a=i.y,r=r||i.textAlign,s=s||i.textVerticalAlign),n=e.textOffset)&&(o+=n[0],a+=n[1]),{baseX:o,baseY:a,textAlign:r,textVerticalAlign:s}}function x(t,e,n){return t[e]=r(t,e,n),t[e]}function _(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function b(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function c(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function w(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}e.normalizeTextStyle=function(t){return u(t),o(t.rich,u),t},e.renderText=function(t,e,n,i,o){(i.rich?function(t,e,n,i,o){var a=t.__textCotentBlock;a&&!t.__dirty||(a=t.__textCotentBlock=A.parseRichText(n,i));!function(t,e,n,i,o){var a=n.width,r=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=k(0,i,o),c=u.baseX,h=u.baseY,d=u.textAlign,u=u.textVerticalAlign,o=(D(e,i,o,c,h),A.adjustTextX(c,r,d)),c=A.adjustTextY(h,s,u),p=o,f=c;l&&(p+=l[3],f+=l[0]);var g=p+a;L(i)&&P(t,e,i,o,c,r,s);for(var m,y=0;y<n.lines.length;y++){for(var v=n.lines[y],x=v.tokens,_=x.length,b=v.lineHeight,w=v.width,S=0,M=p,I=g,T=_-1;S<_&&(!(m=x[S]).textAlign||"left"===m.textAlign);)C(t,e,m,i,b,f,M,"left"),w-=m.width,M+=m.width,S++;for(;0<=T&&"right"===(m=x[T]).textAlign;)C(t,e,m,i,b,f,I,"right"),w-=m.width,I-=m.width,T--;for(M+=(a-(M-p)-(g-I)-w)/2;S<=T;)m=x[S],C(t,e,m,i,b,f,M+m.width/2,"center"),M+=m.width,S++;f+=b}}(t,e,a,i,o)}:function(t,e,n,i,o){var a=x(e,"font",i.font||A.DEFAULT_FONT),r=i.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=A.parsePlainText(n,a,r,i.truncate));var l=s.outerHeight,u=s.lines,c=s.lineHeight,s=k(0,i,o),h=s.baseX,d=s.baseY,p=s.textAlign,s=s.textVerticalAlign,o=(D(e,i,o,h,d),A.adjustTextY(d,l,s)),f=h,g=o,d=L(i);(d||r)&&(s=A.getWidth(n,a),r&&(s+=r[1]+r[3]),n=A.adjustTextX(h,s,p),d&&P(t,e,i,n,o,s,l),r)&&(f=w(h,p,r),g+=r[0]);x(e,"textAlign",p||"left"),x(e,"textBaseline","middle"),x(e,"shadowBlur",i.textShadowBlur||0),x(e,"shadowColor",i.textShadowColor||"transparent"),x(e,"shadowOffsetX",i.textShadowOffsetX||0),x(e,"shadowOffsetY",i.textShadowOffsetY||0),g+=c/2;var a=i.textStrokeWidth,m=_(i.textStroke,a),y=b(i.textFill);m&&(x(e,"lineWidth",a),x(e,"strokeStyle",m));y&&x(e,"fillStyle",y);for(var v=0;v<u.length;v++)m&&e.strokeText(u[v],f,g),y&&e.fillText(u[v],f,g),g+=c})(t,e,n,i,o)},e.getStroke=_,e.getFill=b,e.needDrawText=function(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}},function(t,e,n){var i=n(371),l=n(121),u=n(3),c=n(918),h=n(921),o=n(920),d=n(922),p=n(930),f=!l.canvasSupported,g={canvas:o},a={};function r(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,o=new h,a=n.renderer;if(f){if(!g.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&g[a]||(a="canvas");var a=new g[a](e,o,n,t),e=(this.storage=o,this.painter=a,l.node||l.worker?null:new p(a.getViewportRoot())),r=(this.handler=new c(o,a,e,a.root),this.animation=new d({stage:{update:u.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh,o.delFromStorage),s=o.addToStorage;o.delFromStorage=function(t){r.call(o,t),t&&t.removeSelfFromZr(i)},o.addToStorage=function(t){s.call(o,t),t.addSelfToZr(i)}}r.prototype={constructor:r,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete a[t]}},e.version="4.0.4",e.init=function(t,e){return t=new r(i(),t,e),a[t.id]=t},e.dispose=function(t){if(t)t.dispose();else{for(var e in a)a.hasOwnProperty(e)&&a[e].dispose();a={}}return this},e.getInstance=function(t){return a[t]},e.registerPainter=function(t,e){g[t]=e}},,,,,,,,function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(183),o=n(22)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=Object(t),o))?e:a?i(t):"Object"==(e=i(t))&&"function"==typeof t.callee?"Arguments":e}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(59),o=n(20).document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){"use strict";function y(){return this}var v=n(27),x=n(50),_=n(74),b=n(60),w=n(185),S=n(462),M=n(62),I=n(465),T=n(22)("iterator"),A=!([].keys&&"next"in[].keys()),D="values";t.exports=function(t,e,n,i,o,a,r){S(n,e,i);function s(t){if(!A&&t in d)return d[t];switch(t){case"keys":case D:return function(){return new n(this,t)}}return function(){return new n(this,t)}}var l,u,i=e+" Iterator",c=o==D,h=!1,d=t.prototype,p=d[T]||d["@@iterator"]||o&&d[o],f=p||s(o),g=o?c?s("entries"):f:void 0,m="Array"==e&&d.entries||p;if(m&&(m=I(m.call(new t)))!==Object.prototype&&m.next&&(M(m,i,!0),v||"function"==typeof m[T]||b(m,T,y)),c&&p&&p.name!==D&&(h=!0,f=function(){return p.call(this)}),v&&!r||!A&&!h&&d[T]||b(d,T,f),w[e]=f,w[i]=y,o)if(l={values:c?f:s(D),keys:a?f:s("keys"),entries:g},r)for(u in l)u in d||_(d,u,l[u]);else x(x.P+x.F*(A||h),e,l);return l}},function(t,e,n){"use strict";var o=n(182);function i(t){var n,i;this.promise=new t(function(t,e){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=t,i=e}),this.resolve=o(n),this.reject=o(i)}t.exports.f=function(t){return new i(t)}},function(t,e,n){var o=n(60);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:o(t,i,e[i]);return t}},function(t,e,n){var i=n(67)("keys"),o=n(63);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?i:n)(t)}},,,function(t,e,n){var p=n(3),f=n(111),a=n(134),r=n(572),g=n(48),m=n(61).round,y=["fromSymbol","toSymbol"];function s(t){return"_"+t+"Type"}function l(t,e,n){var i=e.getItemVisual(n,"color"),o=e.getItemVisual(n,t),e=e.getItemVisual(n,t+"Size");if(o&&"none"!==o)return p.isArray(e)||(e=[e,e]),(n=a.createSymbol(o,-e[0]/2,-e[1]/2,e[0],e[1],i)).name=t,n}function u(t,e){var n=e[0],i=e[1],e=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}function i(t,e,n){g.Group.call(this),this._createLine(t,e,n)}n=i.prototype;n.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.childOfName("label");if(t||e||!n.ignore){for(var i=1,o=this.parent;o;)o.scale&&(i/=o.scale[0]),o=o.parent;var a,r,s,l,u,c,h,d,p=this.childOfName("line");(this.__dirty||p.__dirty)&&(d=p.shape.percent,a=p.pointAt(0),r=p.pointAt(d),s=f.sub([],r,a),f.normalize(s,s),t&&(t.attr("position",a),h=p.tangentAt(0),t.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0])),t.attr("scale",[i*d,i*d])),e&&(e.attr("position",r),h=p.tangentAt(1),e.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0])),e.attr("scale",[i*d,i*d])),n.ignore||(n.attr("position",r),t=5*i,"end"===n.__position?(l=[s[0]*t+r[0],s[1]*t+r[1]],u=.8<s[0]?"left":s[0]<-.8?"right":"center",c=.8<s[1]?"top":s[1]<-.8?"bottom":"middle"):"middle"===n.__position?(d=[(h=p.tangentAt(e=d/2))[1],-h[0]],p=p.pointAt(e),0<d[1]&&(d[0]=-d[0],d[1]=-d[1]),l=[p[0]+d[0]*t,p[1]+d[1]*t],u="center",c="bottom",e=-Math.atan2(h[1],h[0]),r[0]<a[0]&&(e=Math.PI+e),n.attr("rotation",e)):(l=[-s[0]*t+a[0],-s[1]*t+a[1]],u=.8<s[0]?"right":s[0]<-.8?"left":"center",c=.8<s[1]?"bottom":s[1]<-.8?"top":"middle"),n.attr({style:{textVerticalAlign:n.__verticalAlign||c,textAlign:n.__textAlign||u},position:l,scale:[i,i]})))}},n._createLine=function(n,i,t){var e=n.hostModel,o=n.getItemLayout(i),o=(o=o,u((a=new r({name:"line"})).shape,o),a),a=(o.shape.percent=0,g.initProps(o,{shape:{percent:1}},e,i),this.add(o),new g.Text({name:"label"}));this.add(a),p.each(y,function(t){var e=l(t,n,i);this.add(e),this[s(t)]=n.getItemVisual(i,t)},this),this._updateCommonStl(n,i,t)},n.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),a=i.getItemLayout(o),r={shape:{}};u(r.shape,a),g.updateProps(n,r,e,o),p.each(y,function(t){var e=i.getItemVisual(o,t),n=s(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=l(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},n._updateCommonStl=function(t,e,n){var i,o,a=t.hostModel,r=this.childOfName("line"),s=n&&n.lineStyle,l=n&&n.hoverLineStyle,u=n&&n.labelModel,c=n&&n.hoverLabelModel,h=(n&&!t.hasItemOption||(s=(n=t.getItemModel(e)).getModel("lineStyle").getLineStyle(),l=n.getModel("emphasis.lineStyle").getLineStyle(),u=n.getModel("label"),c=n.getModel("emphasis.label")),t.getItemVisual(e,"color")),d=p.retrieve3(t.getItemVisual(e,"opacity"),s.opacity,1),n=(r.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:d},s)),r.hoverStyle=l,p.each(y,function(t){t=this.childOfName(t);t&&(t.setColor(h),t.setStyle({opacity:d}))},this),u.getShallow("show")),s=c.getShallow("show"),r=this.childOfName("label"),l=((n||s)&&(o=h||"#000",null==(i=a.getFormattedLabel(e,"normal",t.dataType)))&&(i=null==(l=a.getRawValue(e))?t.getName(e):isFinite(l)?m(l):l),n?i:null),a=s?p.retrieve2(a.getFormattedLabel(e,"emphasis",t.dataType),i):null,e=r.style;null==l&&null==a||(g.setTextStyle(r.style,u,{text:l},{autoColor:o}),r.__textAlign=e.textAlign,r.__verticalAlign=e.textVerticalAlign,r.__position=u.get("position")||"middle"),r.hoverStyle=null!=a?{text:a,textFill:c.getTextColor(!0),fontStyle:c.getShallow("fontStyle"),fontWeight:c.getShallow("fontWeight"),fontSize:c.getShallow("fontSize"),fontFamily:c.getShallow("fontFamily")}:{text:null},r.ignore=!n&&!s,g.setHoverStyle(this)},n.highlight=function(){this.trigger("emphasis")},n.downplay=function(){this.trigger("normal")},n.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},n.setLinePoints=function(t){var e=this.childOfName("line");u(e.shape,t),e.dirty()},p.inherits(i,g.Group),t.exports=i},function(t,e,n){var i=n(48),o=n(240);function a(t){this._ctor=t||o,this.group=new i.Group}n=a.prototype;function c(t){t=t.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function r(t){return isNaN(t[0])||isNaN(t[1])}function h(t){return!r(t[0])&&!r(t[1])}n.isPersistent=function(){return!0},n.updateData=function(r){var s=this,e=s.group,l=s._lineData,u=(s._lineData=r,l||e.removeAll(),c(r));r.diff(l).add(function(t){var e,n,i;e=s,t=t,i=u,h((n=r).getItemLayout(t))&&(i=new e._ctor(n,t,i),n.setItemGraphicEl(t,i),e.group.add(i))}).update(function(t,e){var n=s,i=l,o=r,a=u;i=i.getItemGraphicEl(e),h(o.getItemLayout(t))?(i?i.updateData(o,t,a):i=new n._ctor(o,t,a),o.setItemGraphicEl(t,i),n.group.add(i)):n.group.remove(i)}).remove(function(t){e.remove(l.getItemGraphicEl(t))}).execute()},n.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},n.incrementalPrepareUpdate=function(t){this._seriesScope=c(t),this._lineData=null,this.group.removeAll()},n.incrementalUpdate=function(t,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var i,o=t.start;o<t.end;o++)h(e.getItemLayout(o))&&((i=new this._ctor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t.exports=a},function(t,e,n){var s=n(163).retrieveRawValue;e.getDefaultLabel=function(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return s(t,e,n[0]);if(i){for(var o=[],a=0;a<n.length;a++){var r=s(t,e,n[a]);o.push(r)}return o.join(" ")}}},function(t,e,n){var l=n(3),i=n(143),u=n(48),r=n(204),s=n(147),c=n(165),a=(0,n(77).makeInner)(),h=l.clone,d=l.bind;function o(){}function p(t,e,n,i){!function n(i,t){{var o;return l.isObject(i)&&l.isObject(t)?(o=!0,l.each(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(a(n).lastProp,i)&&(a(n).lastProp=i,e?u.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function f(t,e){t[e.get("label.show")?"show":"hide"]()}function g(t){return{position:t.position.slice(),rotation:t.rotation||0}}function m(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}i.enableClassExtend((o.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var o,a,r=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===r&&this._lastStatus===s||(this._lastValue=r,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},r,t,e,n),(a=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=a,a=this._moveAnimation=this.determineAnimation(t,e),i?(a=l.curry(p,e,a),this.updatePointerEl(i,s,a,e),this.updateLabelEl(i,s,a,e)):(i=this._group=new u.Group,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),m(i,e,!0),this._renderHandle(r)):(i&&i.hide(),o&&o.hide()))},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n,i=e.get("animation"),o=t.axis,a="category"===o.type,e=e.get("snap");return!(!e&&!a)&&("auto"===i||null==i?(n=this.animationThreshold,a&&o.getBandWidth()>n||!!e&&(a=r.getAxisInfo(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/a>n)):!0===i)},makeElOption:function(t,e,n,i,o){},createPointerEl:function(t,e,n,i){var o=e.pointer;o&&(o=a(t).pointerEl=new u[o.type](h(e.pointer)),t.add(o))},createLabelEl:function(t,e,n,i){e.label&&(e=a(t).labelEl=new u.Rect(h(e.label)),t.add(e),f(e,i))},updatePointerEl:function(t,e,n){t=a(t).pointerEl;t&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){t=a(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{shape:e.label.shape,position:e.label.position}),f(t,i))},_renderHandle:function(t){var e,n,i,o,a,r;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),r=e.get("status"),o.get("show")&&r&&"hide"!==r?(this._handle||(a=!0,i=this._handle=u.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:d(this._onHandleDragMove,this,0,0),drift:d(this._onHandleDragMove,this),ondragend:d(this._onHandleDragEnd,this)}),n.add(i)),m(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),r=o.get("size"),l.isArray(r)||(r=[r,r]),i.attr("scale",[r[0]/2,r[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)):(i&&n.remove(i),this._handle=null))},_moveHandleToValue:function(t,e){p(this._axisPointerModel,!e&&this._moveAnimation,this._handle,g(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(g(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(g(t)),a(n).lastProp=null,this._doDispatchAxisPointer())},_doDispatchAxisPointer:function(){var t,e;this._handle&&(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}]}))},_onHandleDragEnd:function(t){var e;this._dragging=!1,this._handle&&(e=this._axisPointerModel.get("value"),this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"}))},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}}).constructor=o),t.exports=o},function(t,e,n){var u=n(3),i=n(116),o=["cartesian2d","polar","singleAxis"];function a(t,r){t=t.slice();var s=u.map(t,i.capitalFirst),l=(r=(r||[]).slice(),u.map(r,i.capitalFirst));return function(o,a){u.each(t,function(t,e){for(var n={name:t,capital:s[e]},i=0;i<r.length;i++)n[r[i]]=t+l[i];o.call(a,n)})}}n=a(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);e.isCoordSupported=function(t){return 0<=u.indexOf(o,t)},e.createNameEach=a,e.eachAxisDim=n,e.createLinkedNodesFinder=function(i,r,s){return function(t){var e,a={nodes:[],records:{}};if(r(function(t){a.records[t.name]={}}),t)for(l(t,a);e=!1,i(n),e;);return a;function n(t){var n,i,o;0<=u.indexOf(a.nodes,t)||(n=t,i=a,o=!1,r(function(e){u.each(s(n,e)||[],function(t){i.records[e.name][t]&&(o=!0)})}),!o)||(l(t,a),e=!0)}};function l(t,n){n.nodes.push(t),r(function(e){u.each(s(t,e)||[],function(t){n.records[e.name][t]=!0})})}}},function(N,z,t){t(79).__DEV__;var u=t(3),e=t(174),r=t(48),o=t(329),V=t(162),s=u.curry,h=u.each,B=u.map,l=Math.min,f=Math.max,G=Math.pow,F=1e4,H=6,W=6,j={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},U={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},c={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},Z=0;function n(t){e.call(this),this._zr=t,this.group=new r.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+Z++,this._handlers={},h(X,function(t,e){this._handlers[e]=u.bind(t,this)},this)}function d(t,e){var n=R[e.brushType].createCover(t,e);return n.__brushOption=e,i(n,e),t.group.add(n),n}function p(t,e){var n=a(e);return n.endCreating&&(n.endCreating(t,e),i(e,e.__brushOption)),e}function g(t,e){var n=e.__brushOption;a(e).updateCoverShape(t,e,n.range,n)}function i(t,e){var n=e.z;null==n&&(n=F),t.traverse(function(t){t.z=n,t.z2=n})}function m(t,e){a(e).updateCommon(t,e),g(t,e)}function a(t){return R[t.__brushOption.brushType]}function y(t,e,n){var i,o,a=t._panels;return!a||(o=t._transform,h(a,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i)}function v(t,e){t=t._panels;return!t||null==(e=e.__brushOption.panelId)||t[e]}function x(e){var t=e._covers,n=t.length;return h(t,function(t){e.group.remove(t)},e),t.length=0,n}function _(t,e){var n=B(t._covers,function(t){var t=t.__brushOption,e=u.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function b(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function w(e,n,t,i){var o=new r.Group;return o.add(new r.Rect({name:"main",style:T(t),silent:!0,draggable:!0,cursor:"move",drift:s(e,n,o,"nswe"),ondragend:s(_,n,{isEnd:!0})})),h(i,function(t){o.add(new r.Rect({name:t,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:s(e,n,o,t),ondragend:s(_,n,{isEnd:!0})}))}),o}function S(t,e,n,i){var o=i.brushStyle.lineWidth||0,a=f(o,W),r=n[0][0],s=n[1][0],l=r-o/2,u=s-o/2,c=n[0][1],n=n[1][1],h=c-a+o/2,d=n-a+o/2,c=c-r,n=n-s,p=c+o,o=n+o;I(t,e,"main",r,s,c,n),i.transformable&&(I(t,e,"w",l,u,a,o),I(t,e,"e",h,u,a,o),I(t,e,"n",l,u,p,a),I(t,e,"s",l,d,p,a),I(t,e,"nw",l,u,a,a),I(t,e,"ne",h,u,a,a),I(t,e,"sw",l,d,a,a),I(t,e,"se",h,d,a,a))}function M(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(T(t)),e.attr({silent:!o,cursor:o?"move":"default"}),h(["w","e","n","s","se","sw","ne","nw"],function(t){var e=i.childOfName(t),t=function t(e,n){{var i,o,a;return 1<n.length?(n=n.split(""),"e"!==(a=[t(e,n[0]),t(e,n[1])])[0]&&"w"!==a[0]||a.reverse(),a.join("")):(i={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},a=r.transformDirection(i[n],Y(e)),o[a])}}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?U[t]+"-resize":null})})}function I(t,e,n,i,o,a,r){var n=e.childOfName(n);n&&n.setShape((n=L(t,e,[[i,o],[i+a,o+r]]),t=l(n[0][0],n[1][0]),e=l(n[0][1],n[1][1]),i=f(n[0][0],n[1][0]),n=f(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function T(t){return u.defaults({strokeNoScale:!0},t.brushStyle)}function A(t,e,n,i){var o=[l(t,n),l(e,i)],t=[f(t,n),f(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function Y(t){return r.getTransform(t.group)}function D(t,e,n,i,o,a,r,s){var l=i.__brushOption,u=t(l.range),c=C(n,a,r);h(o.split(""),function(t){t=j[t];u[t[0]][t[1]]+=c[t[0]]}),l.range=e(A(u[0][0],u[1][0],u[0][1],u[1][1])),m(n,i),_(n,{isEnd:!1})}function q(t,e,n,i,o){var a=e.__brushOption.range,r=C(t,n,i);h(a,function(t){t[0]+=r[0],t[1]+=r[1]}),m(t,e),_(t,{isEnd:!1})}function C(t,e,n){t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0);return[e[0]-n[0],e[1]-n[1]]}function L(t,e,n){e=v(t,e);return e&&!0!==e?e.clipPath(n,t._transform):u.clone(n)}function P(t){t=t.event;t.preventDefault&&t.preventDefault()}function k(t,e,n){return t.childOfName("main").contain(e,n)}function O(t,e,n,i){var o,a,r=t._creatingCover,s=t._creatingPanel,l=t._brushOption;return t._track.push(n.slice()),function(t){var e,n;if((t=t._track).length)return n=t[t.length-1],t=t[0],e=n[0]-t[0],n=n[1]-t[1],t=G(e*e+n*n,.5),H<t}(t)||r?(s&&!r&&("single"===l.brushMode&&x(t),(a=u.clone(l)).brushType=E(a.brushType,s),a.panelId=!0===s?null:s.panelId,r=t._creatingCover=d(t,a),t._covers.push(r)),r&&(a=R[E(t._brushType,s)],r.__brushOption.range=a.getCreatingRange(L(t,r,t._track)),i&&(p(t,r),a.updateCommon(t,r)),g(t,r),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&y(t,e,n)&&x(t)&&(o={isEnd:i,removeOnClick:!0}),o}function E(t,e){return"auto"===t?e.defaultBrushType:t}n.prototype={constructor:n,enableBrush:function(t){var n;{var e,i;this._brushType&&(n=(e=this)._zr,o.release(n,"globalPan",e._uid),h(e._handlers,function(t,e){n.off(e,t)}),e._brushType=e._brushOption=null),t.brushType&&(i=(e=this)._zr,e._enableGlobalPan||o.take(i,"globalPan",e._uid),h(e._handlers,function(t,e){i.on(e,t)}),e._brushType=t.brushType,e._brushOption=u.merge(u.clone(c),t,!0))}return this},setPanels:function(t){var e;return t&&t.length?(e=this._panels={},u.each(t,function(t){e[t.panelId]=u.clone(t)})):this._panels=null,this},mount:function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){h(this._covers,t,e)},updateCovers:function(i){i=u.map(i,function(t){return u.merge(u.clone(c),t,!0)});var n="\0-brush-index-",o=this._covers,a=this._covers=[],r=this,s=this._creatingCover;return new V(o,i,function(t,e){return l(t.__brushOption,e)},l).add(t).update(t).remove(function(t){o[t]!==s&&r.group.remove(o[t])}).execute(),this;function l(t,e){return(null!=t.id?t.id:n+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?a[t]=o[e]:(t=a[t]=null!=e?(o[e].__brushOption=n,o[e]):p(r,d(r,n)),m(r,t))}},unmount:function(){return this.enableBrush(!1),x(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},u.mixin(n,e);var X={mousedown:function(t){var e;this._dragging?K.call(this,t):t.target&&t.target.draggable||(P(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=y(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);!function(t,e,n){if(t._brushType){var i=t._zr,o=t._covers,a=y(t,e,n);if(!t._dragging)for(var r=0;r<o.length;r++){var s=o[r].__brushOption;if(a&&(!0===a||s.panelId===a.panelId)&&R[s.brushType].contain(o[r],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}(this,t,e),this._dragging&&(P(t),t=O(this,t,e,!1))&&_(this,t)},mouseup:K};function K(t){var e;this._dragging&&(P(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),t=O(this,t,e,!0),this._dragging=!1,this._track=[],this._creatingCover=null,t)&&_(this,t)}var R={lineX:$(0),lineY:$(1),rect:{createCover:function(t,e){return w(s(D,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){t=b(t);return A(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){S(t,e,n,i)},updateCommon:M,contain:k},polygon:{createCover:function(t,e){var n=new r.Group;return n.add(new r.Polyline({name:"main",style:T(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new r.Polygon({name:"main",draggable:!0,drift:s(q,t,e),ondragend:s(_,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:L(t,e,n)})},updateCommon:M,contain:k}};function $(a){return{createCover:function(t,e){return w(s(D,function(t){t=[t,[0,100]];return a&&t.reverse(),t},function(t){return t[a]}),t,e,[["w","e"],["n","s"]][a])},getCreatingRange:function(t){t=b(t);return[l(t[0][a],t[1][a]),f(t[0][a],t[1][a])]},updateCoverShape:function(t,e,n,i){var o=v(t,e),o=[n,!0!==o&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(a,t._transform):[0,[(n=t._zr).getWidth(),n.getHeight()][1-a]]];a&&o.reverse(),S(t,e,o,i)},updateCommon:M,contain:k}}N.exports=n},function(t,e){var i={axisPointer:1,tooltip:1,brush:1};e.onIrrelevantElement=function(t,e,n){return e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem,e&&e!==n&&!i[e.mainType]&&t&&t.model!==n}},function(t,e,n){var i=n(3);t.exports={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],function(t,e){return t.set(e.name,e),t},i.createHashMap())},select:function(t,e){e=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(t){t.selected=!1}),e&&(e.selected=!0)},unSelect:function(t,e){e=null!=e?this._targetList[e]:this._selectTargetMap.get(t);e&&(e.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){e=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return e&&e.selected}}},function(t,e,n){n(79).__DEV__;var i=n(17),s=n(3),o=n(121),a=n(77),r=n(116),n=n(254),l=r.addCommas,u=r.encodeHTML;function c(t){a.defaultEmphasis(t,"label",["show"])}r=i.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},isAnimationEnabled:function(){var t;return!o.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},mergeOption:function(t,i,e,o){var a=this.constructor,r=this.mainType+"Model";e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=t[r];e&&e.data?(n?n.mergeOption(e,i,!0):(o&&c(e),s.each(e.data,function(t){t instanceof Array?(c(t[0]),c(t[1])):c(t)}),n=new a(e,this,i),s.extend(n,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),t[r]=n):t[r]=null},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=s.isArray(n)?s.map(n,l).join(", "):l(n),e=e.getName(t),t=u(this.name);return null==n&&!e||(t+="<br />"),e&&(t+=u(e),null!=n)&&(t+=" : "),null!=n&&(t+=u(i)),t},getData:function(){return this._data},setData:function(t){this._data=t}});s.mixin(r,n),t.exports=r},function(t,e,n){var i=n(17),o=n(3),n=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=o.createHashMap()},render:function(t,n,i){var e=this.markerGroupMap,o=(e.each(function(t){t.__keep=!1}),this.type+"Model");n.eachSeries(function(t){var e=t[o];e&&this.renderSeries(t,e,n,i)},this),e.each(function(t){t.__keep||this.group.remove(t.group)},this)},renderSeries:function(){}});t.exports=n},function(t,e,n){var l=n(3),u=n(61),c=n(142).isDimensionStacked,h=l.indexOf;function i(t,e,n,i,o,a){var r=[],s=c(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=f(e,s,t),s=e.indicesOfNearest(s,t)[0],t=(r[o]=e.get(n,s),r[a]=e.get(i,s),u.getPrecision(e.get(i,s)));return 0<=(t=Math.min(t,20))&&(r[a]=+r[a].toFixed(t)),r}var n=l.curry,d={min:n(i,"min"),max:n(i,"max"),average:n(i,"average")};function p(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var o=0;o<i.length;o++){var a=n.getDimensionInfo(i[o]);if(a.name===e)return a.coordDim}}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function f(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e,!0)["max"===n?1:0]}e.dataTransform=function(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&(a=e,isNaN(parseFloat(a.x))||isNaN(parseFloat(a.y)))&&!l.isArray(e.coord)&&i){var o=i.dimensions,a=p(e,n,i,t);if((e=l.clone(e)).type&&d[e.type]&&a.baseAxis&&a.valueAxis){i=h(o,a.baseAxis.dim),t=h(o,a.valueAxis.dim);e.coord=d[e.type](n,a.baseDataDim,a.valueDataDim,i,t),e.value=e.coord[t]}else{for(var r=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],s=0;s<2;s++)d[r[s]]&&(r[s]=f(n,n.mapDimension(o[s]),r[s]));e.coord=r}}return e},e.getAxisInfo=p,e.dataFilter=function(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x)))&&isNaN(parseFloat(n.y)))||t.containData(e.coord);var n},e.dimValueGetter=function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},e.numCalculate=f},function(t,e,n){n(79).__DEV__;var i=n(3),o=i.isObject,u=i.each,a=i.map,l=i.indexOf,s=(i.retrieve,n(109).getLayoutRect),i=n(136),c=i.createScaleByModel,r=i.ifAxisCrossZero,h=i.niceScaleExtent,d=i.estimateLabelUnionRect,p=n(729),f=n(727),i=n(135),g=n(142).getStackedDimension;function m(t,e){return t.getCoordSysModel()===e}function y(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n(730);n=y.prototype;function v(t,e,n){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],t=n.model,e=t.get("axisLine.onZero"),n=t.get("axisLine.onZeroAxisIndex");if(e)if(null!=n)x(o[n])&&(i=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&x(o[a])){i=o[a];break}}function x(t){return t&&"category"!==t.type&&"time"!==t.type&&r(t)}n.type="grid",n.axisPointerEnabled=!0,n.getRect=function(){return this._rect},n.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),u(n.x,function(t){h(t.scale,t.model)}),u(n.y,function(t){h(t.scale,t.model)}),u(n.x,function(t){v(n,"y",t)}),u(n.y,function(t){v(n,"x",t)}),this.resize(this.model,e)},n.resize=function(t,e,n){var r=s(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),i=(this._rect=r,this._axesList);function o(){u(i,function(t){var e,n,i=t.isHorizontal(),o=i?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=i?r.x:r.y,a=o.getExtent(),n=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}o(),!n&&t.get("containLabel")&&(u(i,function(t){var e,n,i;t.model.get("axisLabel.inside")||(e=d(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin"),r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i))}),o())},n.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},n.getAxes=function(){return this._axesList.slice()},n.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];o(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},n.getCartesians=function(){return this._coordsList.slice()},n.convertToPixel=function(t,e,n){t=this._findConvertTarget(t,e);return t.cartesian?t.cartesian.dataToPoint(n):t.axis?t.axis.toGlobalCoord(t.axis.dataToCoord(n)):null},n.convertFromPixel=function(t,e,n){t=this._findConvertTarget(t,e);return t.cartesian?t.cartesian.pointToData(n):t.axis?t.axis.coordToData(t.axis.toLocalCoord(n)):null},n._findConvertTarget=function(t,e){var n,i,o=e.seriesModel,a=e.xAxisModel||o&&o.getReferringComponents("xAxis")[0],r=e.yAxisModel||o&&o.getReferringComponents("yAxis")[0],e=e.gridModel,s=this._coordsList;return o?(n=o.coordinateSystem,l(s,n)<0&&(n=null)):a&&r?n=this.getCartesian(a.componentIndex,r.componentIndex):a?i=this.getAxis("x",a.componentIndex):r?i=this.getAxis("y",r.componentIndex):e&&e.coordinateSystem===this&&(n=this._coordsList[0]),{cartesian:n,axis:i}},n.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n._initCartesian=function(a,t,e){var r={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};function n(o){return function(t,e){var n,i;m(t,a)&&(n=t.get("position"),"x"===o?"top"!==n&&"bottom"!==n&&r[n="bottom"]&&(n="top"===n?"bottom":"top"):"left"!==n&&"right"!==n&&r[n="left"]&&(n="left"===n?"right":"left"),r[n]=!0,i="category"===(n=new f(o,c(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=this,n.index=e,this._axesList.push(n),s[o][e]=n,l[o]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),l.x&&l.y?(this._axesMap=s,u(s.x,function(i,o){u(s.y,function(t,e){var e="x"+o+"y"+e,n=new p(e);n.grid=this,n.model=a,this._coordsMap[e]=n,this._coordsList.push(n),n.addAxis(i),n.addAxis(t)},this)},this)):(this._axesMap={},this._axesList=[])},n._updateScale=function(t,o){function a(e,n){u(e.mapDimension(n.dim,!0),function(t){n.scale.unionExtentFromData(e,g(e,t))})}u(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(t){var e,n,i;w(t)&&(i=(e=b(t))[0],e=e[1],m(i,o))&&m(e,o)&&(i=this.getCartesian(i.componentIndex,e.componentIndex),e=t.getData(),n=i.getAxis("x"),i=i.getAxis("y"),"list"===e.type)&&(a(e,n),a(e,i))},this)},n.getTooltipAxes=function(n){var i=[],o=[];return u(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);l(i,e)<0&&i.push(e),l(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}};var _=["xAxis","yAxis"];function b(e){return a(_,function(t){return e.getReferringComponents(t)[0]})}function w(t){return"cartesian2d"===t.get("coordinateSystem")}y.create=function(i,o){var a=[];return i.eachComponent("grid",function(t,e){var n=new y(t,i,o);n.name="grid_"+e,n.resize(t,o,!0),t.coordinateSystem=n,a.push(n)}),i.eachSeries(function(t){var e,n,i;w(t)&&(e=(n=b(t))[0],n=n[1],i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),a},y.dimensions=y.prototype.dimensions=p.prototype.dimensions,i.register("cartesian2d",y),t.exports=y},function(t,e,n){n(79).__DEV__;var r=n(3),u=n(746),c=n(61).parsePercent,i=n(136),o=i.createScaleByModel,s=i.niceScaleExtent,i=n(135),l=n(142).getStackedDimension;function h(t,e){var n,i=this,o=i.getAngleAxis(),a=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(e=t.getData(),r.each(e.mapDimension("radius",!0),function(t){a.scale.unionExtentFromData(e,l(e,t))}),r.each(e.mapDimension("angle",!0),function(t){o.scale.unionExtentFromData(e,l(e,t))}))}),s(o.scale,o.model),s(a.scale,a.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function d(t,e){var n;t.type=e.get("type"),t.scale=o(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse^=e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}n(747);n={dimensions:u.prototype.dimensions,create:function(n,s){var l=[];return n.eachComponent("polar",function(t,e){var n,e=new u(e),i=(e.update=h,e.getRadiusAxis()),o=e.getAngleAxis(),a=t.findAxisModel("radiusAxis"),r=t.findAxisModel("angleAxis");d(i,a),d(o,r),i=e,a=s,r=(o=t).get("center"),n=a.getWidth(),a=a.getHeight(),i.cx=c(r[0],n),i.cy=c(r[1],a),r=i.getRadiusAxis(),i=Math.min(n,a)/2,n=c(o.get("radius"),i),r.inverse?r.setExtent(n,0):r.setExtent(0,n),l.push(e),(t.coordinateSystem=e).model=t}),n.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=n.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0],t.coordinateSystem=e.coordinateSystem)}),l}};i.register("polar",n)},function(t,e,n){function c(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e}var h=n(3),i=n(122),o=n(353),a=n(133),r=n(178);function d(e,t,n){this.root,this.data,this._nodes=[],this.hostModel=e,this.levelModels=h.map(t||[],function(t){return new i(t,e,e.ecModel)}),this.leavesModel=new i(n||{},e,e.ecModel)}function p(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null);var i,o=(t=h.isString(t=t||{})?{order:t}:t).order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var r=0;!i&&r<a.length;r++)a[r].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){var e,n,i,o;if(!(this.dataIndex<0))return n=(e=this.hostTree).data.getItemModel(this.dataIndex),(i=this.getLevelModel())||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(o=this.getLeavesModel()),n.getModel(t,(i||o||e.hostModel).getModel(t))},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},d.prototype={constructor:d,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){t=this.data.getRawIndex(t);return this._nodes[t]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(t,e,n){var s=new d(e,n.levels,n.leaves),l=[],u=1;!function t(e,n){var i=e.value;u=Math.max(u,h.isArray(i)?i.length:1);l.push(e);var o=new c(e.name,s);n?p(o,n):s.root=o;s._nodes.push(o);var a=e.children;if(a)for(var r=0;r<a.length;r++)t(a[r],o)}(t),s.root.updateDepthAndHeight(0);n=r(l,{coordDimensions:["value"],dimensionsCount:u}),t=new a(n,e);return t.initData(l),o({mainData:t,struct:s,structAttr:"tree"}),s.update(),s},t.exports=d},function(t,e,n){var s=n(163).retrieveRawValue,n=n(116),l=n.getTooltipMarker,u=n.formatTpl,c=/\{@(.+?)\}/g;t.exports={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),a=n.getName(t),r=n.getRawDataItem(t),n=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:o,data:r,dataType:e,value:i,color:n,marker:l(n),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,e,n,o){t=t||"normal";var a=this.getData(e),r=a.getItemModel(i),e=this.getDataParams(i,e),n=(null!=n&&e.value instanceof Array&&(e.value=e.value[n]),r.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]));return"function"==typeof n?(e.status=t,n(e)):"string"==typeof n?u(n,e).replace(c,function(t,e){var n=e.length;return"["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),s(a,i,e)}):void 0},getRawValue:function(t,e){return s(this.getData(e),t)},formatTooltip:function(){}}},function(t,e,n){var i=n(3),f=(i.assert,i.isArray);n(79).__DEV__;function o(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var a,r,s,l,u,c,i=o.prototype,h=(i.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,a=(this._dirty&&i&&((a=this.context).data=a.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),u(this._modBy)),r=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}a===s&&r===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),f(n))&&!n.length&&(n=null);t._progress=n,t._modBy=t._modDataCount=null;e=t._downstream;return e&&e.dirty(),i}(this,o)),this._modBy=s,this._modDataCount=l;a=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,h=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!o&&(n||c<h)){var d=this._progress;if(f(d))for(var p=0;p<d.length;p++)g(this,d[p],c,h,s,l);else g(this,d,c,h,s,l)}this._dueIndex=h;r=null!=this._settedOutputEnd?this._settedOutputEnd:h;this._outputDueEnd=r}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},c={reset:function(t,e,n,i){r=t,a=e,s=n,l=i,u=Math.ceil(l/s),c.next=1<s&&0<l?p:d}});function d(){return r<a?r++:null}function p(){var t=r%u*s+Math.ceil(r/u),t=a<=r?null:t<l?t:r;return r++,t}function g(t,e,n,i,o,a){h.reset(n,i,o,a),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:h.next},t.context)}i.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},i.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},i.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},i.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},i.getUpstream=function(){return this._upstream},i.getDownstream=function(){return this._downstream},i.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=function(t){return new o(t)}},,,,,,,,,,,,,,,,,,,,,function(t,e,n){var p=n(111),m=n(152),y=Math.min,v=Math.max,f=Math.sin,g=Math.cos,x=2*Math.PI,_=p.create(),b=p.create(),w=p.create();var S=[],M=[];e.fromPoints=function(t,e,n){if(0!==t.length){for(var i=t[0],o=i[0],a=i[0],r=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],o=y(o,i[0]),a=v(a,i[0]),r=y(r,i[1]),s=v(s,i[1]);e[0]=o,e[1]=r,n[0]=a,n[1]=s}},e.fromLine=function(t,e,n,i,o,a){o[0]=y(t,n),o[1]=y(e,i),a[0]=v(t,n),a[1]=v(e,i)},e.fromCubic=function(t,e,n,i,o,a,r,s,l,u){var c,h=m.cubicExtrema,d=m.cubicAt,p=h(t,n,o,r,S);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,c=0;c<p;c++){var f=d(t,n,o,r,S[c]);l[0]=y(f,l[0]),u[0]=v(f,u[0])}for(p=h(e,i,a,s,M),c=0;c<p;c++){var g=d(e,i,a,s,M[c]);l[1]=y(g,l[1]),u[1]=v(g,u[1])}l[0]=y(t,l[0]),u[0]=v(t,u[0]),l[0]=y(r,l[0]),u[0]=v(r,u[0]),l[1]=y(e,l[1]),u[1]=v(e,u[1]),l[1]=y(s,l[1]),u[1]=v(s,u[1])},e.fromQuadratic=function(t,e,n,i,o,a,r,s){var l=m.quadraticExtremum,u=m.quadraticAt,c=v(y(l(t,n,o),1),0),l=v(y(l(e,i,a),1),0),n=u(t,n,o,c),c=u(e,i,a,l);r[0]=y(t,o,n),r[1]=y(e,a,c),s[0]=v(t,o,n),s[1]=v(e,a,c)},e.fromArc=function(t,e,n,i,o,a,r,s,l){var u=p.min,c=p.max,h=Math.abs(o-a);if(h%x<1e-4&&1e-4<h)s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;else{_[0]=g(o)*n+t,_[1]=f(o)*i+e,b[0]=g(a)*n+t,b[1]=f(a)*i+e,u(s,_,b),c(l,_,b),(o%=x)<0&&(o+=x),(a%=x)<0&&(a+=x),a<o&&!r?a+=x:o<a&&r&&(o+=x),r&&(h=a,a=o,o=h);for(var d=0;d<a;d+=Math.PI/2)o<d&&(w[0]=g(d)*n+t,w[1]=f(d)*i+e,u(s,w,s),c(l,w,l))}}},function(t,e){var u=32,z=7,n=256;function c(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var a=t,r=e,s=o;for(s--;r<s;){var l=a[r];a[r++]=a[s],a[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function h(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var a,r=t[i],s=e,l=i;s<l;)o(r,t[a=s+l>>>1])<0?l=a:s=1+a;var u=i-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(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=r}}function V(t,e,n,i,o,a){var r=0,s=0,l=1;if(0<a(t,e[n+o])){for(s=i-o;l<s&&0<a(t,e[n+o+l]);)(l=1+((r=l)<<1))<=0&&(l=s);s<l&&(l=s),r+=o,l+=o}else{for(s=o+1;l<s&&a(t,e[n+o-l])<=0;)(l=1+((r=l)<<1))<=0&&(l=s);i=r,r=o-(l=s<l?s:l),l=o-i}for(r++;r<l;){var u=r+(l-r>>>1);0<a(t,e[n+u])?r=u+1:l=u}return l}function B(t,e,n,i,o,a){var r=0,s=0,l=1;if(a(t,e[n+o])<0){for(s=o+1;l<s&&a(t,e[n+o-l])<0;)(l=1+((r=l)<<1))<=0&&(l=s);var u=r,r=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=a(t,e[n+o+l]);)(l=1+((r=l)<<1))<=0&&(l=s);s<l&&(l=s),r+=o,l+=o}for(r++;r<l;){var c=r+(l-r>>>1);a(t,e[n+c])<0?l=c:r=c+1}return l}function d(L,P){var k,O,E=z,R=0,N=(L.length<2*n&&0,[]);function e(t){var e=k[t],n=O[t],i=k[t+1],o=O[t+1],t=(O[t]=n+o,t===R-3&&(k[t+1]=k[t+2],O[t+1]=O[t+2]),R--,B(L[i],L,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=V(L[e+n-1],L,i,o,o-1,P)))if(n<=o){var a=e,r=n,t=i,s=o,l=0;for(l=0;l<r;l++)N[l]=L[a+l];var u=0,c=t,h=a;if(L[h++]=L[c++],0==--s)for(l=0;l<r;l++)L[h+l]=N[u+l];else if(1===r){for(l=0;l<s;l++)L[h+l]=L[c+l];L[h+s]=N[u]}else{for(var d,p,f,g=E;;){p=d=0,f=!1;do{if(P(L[c],N[u])<0){if(L[h++]=L[c++],p++,(d=0)==--s){f=!0;break}}else if(L[h++]=N[u++],d++,p=0,1==--r){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=B(L[c],N,u,r,0,P))){for(l=0;l<d;l++)L[h+l]=N[u+l];if(h+=d,u+=d,(r-=d)<=1){f=!0;break}}if(L[h++]=L[c++],0==--s){f=!0;break}if(0!==(p=V(N[u],L,c,s,0,P))){for(l=0;l<p;l++)L[h+l]=L[c+l];if(h+=p,c+=p,0===(s-=p)){f=!0;break}}if(L[h++]=N[u++],1==--r){f=!0;break}}while(g--,z<=d||z<=p);if(f)break;g<0&&(g=0),g+=2}if((E=g)<1&&(E=1),1===r){for(l=0;l<s;l++)L[h+l]=L[c+l];L[h+s]=N[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)L[h+l]=N[u+l]}}}else{var m=e,y=n,v=i,x=o,_=0;for(_=0;_<x;_++)N[_]=L[v+_];var b=m+y-1,w=x-1,S=v+x-1,M=0,I=0;if(L[S--]=L[b--],0==--y)for(M=S-(x-1),_=0;_<x;_++)L[M+_]=N[_];else if(1===x){for(I=(S-=y)+1,M=(b-=y)+1,_=y-1;0<=_;_--)L[I+_]=L[M+_];L[S]=N[w]}else{for(var T=E;;){var A=0,D=0,C=!1;do{if(P(N[w],L[b])<0){if(L[S--]=L[b--],A++,(D=0)==--y){C=!0;break}}else if(L[S--]=N[w--],D++,A=0,1==--x){C=!0;break}}while((A|D)<T);if(C)break;do{if(0!==(A=y-B(N[w],L,m,y,y-1,P))){for(y-=A,I=(S-=A)+1,M=(b-=A)+1,_=A-1;0<=_;_--)L[I+_]=L[M+_];if(0===y){C=!0;break}}if(L[S--]=N[w--],1==--x){C=!0;break}if(0!==(D=x-V(L[b],N,0,x,x-1,P))){for(x-=D,I=(S-=D)+1,M=(w-=D)+1,_=0;_<D;_++)L[I+_]=N[M+_];if(x<=1){C=!0;break}}if(L[S--]=L[b--],0==--y){C=!0;break}}while(T--,z<=A||z<=D);if(C)break;T<0&&(T=0),T+=2}if((E=T)<1&&(E=1),1===x){for(I=(S-=y)+1,M=(b-=y)+1,_=y-1;0<=_;_--)L[I+_]=L[M+_];L[S]=N[w]}else{if(0===x)throw new Error;for(M=S-(x-1),_=0;_<x;_++)L[M+_]=N[_]}}}}k=[],O=[],this.mergeRuns=function(){for(;1<R;){var t=R-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},this.forceMergeRuns=function(){for(;1<R;){var t=R-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},this.pushRun=function(t,e){k[R]=t,O[R]=e,R+=1}}t.exports=function(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var a=0;if(o<u)h(t,n,i,n+(a=c(t,n,i,e)),e);else{var r,s=new d(t,e),l=function(t){for(var e=0;u<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((a=c(t,n,i,e))<l&&(h(t,n,n+(r=l<(r=o)?l:o),n+a,e),a=r),s.pushRun(n,a),s.mergeRuns(),n+=a,0!==(o-=a));s.forceMergeRuns()}}}},function(t,e,n){var i=n(3).inherits,o=n(198),a=n(118);function r(t){o.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}r.prototype.incremental=!0,r.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},r.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.dirty()},r.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},r.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])},r.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(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},r.prototype.brush=function(t,e){for(var n=this._cursor;n<this._displayables.length;n++)(i=this._displayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(t);this._cursor=n;for(var i,n=0;n<this._temporaryDisplayables.length;n++)(i=this._temporaryDisplayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(t);this._temporaryDisplayables=[],this.notClear=!0};var s=[];r.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new a(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s)),t.union(i)}this._rect=t}return this._rect},r.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},i(r,o),t.exports=r},function(t,e,n){var a=new(n(370))(50);function r(){var t=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function s(t){return t&&t.width&&t.height}e.findExistImage=function(t){var e;return"string"==typeof t?(e=a.get(t))&&e.image:t},e.createOrUpdateImage=function(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=a.get(t))?s(e=i.image)||i.pending.push(n):((e=e||new Image).onload=r,a.put(t,e.__cachedImgObj={image:e,pending:[n]}),e.src=e.__zrImageSrc=t)),e):t:e},e.isImageReady=s},function(t,e,n){var a=n(129),i=n(111),r=a.identity;function s(t){return 5e-5<t||t<-5e-5}function o(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null}var n=o.prototype,l=(n.transform=null,n.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)},n.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||a.create(),n?this.getLocalTransform(i):r(i),e&&(n?a.mul(i,t.transform,i):a.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||a.create(),a.invert(this.invTransform,i)):i&&r(i)},n.getLocalTransform=function(t){return o.getLocalTransform(this,t)},n.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},n.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)},[]);n.decomposeTransform=function(){var t,e,n,i,o;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(a.mul(l,e.invTransform,t),t=l),e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,o=this.scale,s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],o[0]=e,o[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e))},n.getGlobalScale=function(){var t,e,n=this.transform;return n?(t=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e=Math.sqrt(n[2]*n[2]+n[3]*n[3]),[t=n[0]<0?-t:t,e=n[3]<0?-e:e]):[1,1]},n.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&i.applyTransform(t,t,e),t},n.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&i.applyTransform(t,t,e),t},o.getLocalTransform=function(t,e){r(e=e||[]);var n=t.origin,i=t.scale||[1,1],o=t.rotation||0,t=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),a.scale(e,e,i),o&&a.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=t[0],e[5]+=t[1],e},t.exports=o},function(t,e){e.createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},function(t,e,n){var w=n(281).createElement,i=n(180),o=n(118),S=n(129),M=n(137),I=n(220),T=n(200),_=i.CMD,a=Array.prototype.join,r="none",b=Math.round,A=Math.sin,D=Math.cos,C=Math.PI,L=2*Math.PI,P=180/C,s=1e-4;function k(t){return b(1e4*t)/1e4}function O(t){return t<s&&-s<t}function E(t,e){e&&R(t,"transform","matrix("+a.call(e,",")+")")}function R(t,e,n){n&&("linear"===n.type||"radial"===n.type)||("string"==typeof n&&n.indexOf("NaN"),t.setAttribute(e,n))}function N(t,e,n){var i,o;o=e,null!=(i=(i=n)?o.textFill:o.fill)&&i!==r?(o="transparent"===(o=n?e.textFill:e.fill)?r:o,"none"!==t.getAttribute("clip-path")&&o===r&&(o="rgba(0, 0, 0, 0.002)"),R(t,"fill",o),R(t,"fill-opacity",e.opacity)):R(t,"fill",r),i=e,null!=(o=(o=n)?i.textStroke:i.stroke)&&o!==r?(R(t,"stroke",i="transparent"===(i=n?e.textStroke:e.stroke)?r:i),R(t,"stroke-width",(n?e.textStrokeWidth:e.lineWidth)/(!n&&e.strokeNoScale?e.host.getLineScale():1)),R(t,"paint-order",n?"stroke":"fill"),R(t,"stroke-opacity",e.opacity),e.lineDash?(R(t,"stroke-dasharray",e.lineDash.join(",")),R(t,"stroke-dashoffset",b(e.lineDashOffset||0))):R(t,"stroke-dasharray",""),e.lineCap&&R(t,"stroke-linecap",e.lineCap),e.lineJoin&&R(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&R(t,"stroke-miterlimit",e.miterLimit)):R(t,"stroke",r)}var n={},i=(n.brush=function(t){var e=t.style,n=t.__svgEl,i=(n||(n=w("path"),t.__svgEl=n),t.path||t.createPathProxy(),t.path);t.__dirtyPath&&(i.beginPath(),t.buildPath(i,t.shape),t.__dirtyPath=!1,(i=function(t){for(var e=[],n=t.data,i=t.len(),o=0;o<i;){var a="",r=0;switch(n[o++]){case _.M:a="M",r=2;break;case _.L:a="L",r=2;break;case _.Q:a="Q",r=4;break;case _.C:a="C",r=6;break;case _.A:var s=n[o++],l=n[o++],u=n[o++],c=n[o++],h=n[o++],d=n[o++],p=n[o++],f=n[o++],g=Math.abs(d),m=O(g-L)&&!O(g),y=!1,y=L<=g||!O(g)&&(-C<d&&d<0||C<d)==!!f,g=k(s+u*D(h)),v=k(l+c*A(h)),m=(m&&(d=f?L-1e-4:1e-4-L,y=!0,9===o)&&e.push("M",g,v),k(s+u*D(h+d))),g=k(l+c*A(h+d));e.push("A",k(u),k(c),b(p*P),+y,+f,m,g);break;case _.Z:a="Z";break;case _.R:m=k(n[o++]),g=k(n[o++]),v=k(n[o++]),s=k(n[o++]);e.push("M",m,g,"L",m+v,g,"L",m+v,g+s,"L",m,g+s,"L",m,g)}a&&e.push(a);for(var x=0;x<r;x++)e.push(k(n[o++]))}return e.join(" ")}(i)).indexOf("NaN")<0)&&R(n,"d",i),N(n,e),E(n,t.transform),null!=e.text&&c(t,t.getBoundingRect())},{}),l=(i.brush=function(t){var e,n,i,o,a,r,s,l=t.style,u=l.image;(u=u instanceof HTMLImageElement?u.src:u)&&(e=l.x||0,n=l.y||0,i=l.width,o=l.height,(a=t.__svgEl)||(a=w("image"),t.__svgEl=a),u!==t.__imageSrc&&(r="href",s=u,a.setAttributeNS("http://www.w3.org/1999/xlink",r,s),t.__imageSrc=u),R(a,"width",i),R(a,"height",o),R(a,"x",e),R(a,"y",n),E(a,t.transform),null!=l.text)&&c(t,t.getBoundingRect())},{}),z=new o,c=function(t,e,n){var i=t.style,o=(t.__dirty&&I.normalizeTextStyle(i,!0),i.text);if(null!=o){o+="";var a,r,s=t.__textSvgEl,l=(s||(s=w("text"),t.__textSvgEl=s),i.textPosition),u=i.textDistance,c=i.textAlign||"left",h=("number"==typeof i.fontSize&&(i.fontSize+="px"),i.font||[i.fontStyle||"",i.fontWeight||"",i.fontSize||"",i.fontFamily||""].join(" ")||M.DEFAULT_FONT),d=V(i.textVerticalAlign),p=(n=M.getBoundingRect(o,h,c,d)).lineHeight,u=(l instanceof Array?(a=e.x+l[0],r=e.y+l[1]):(a=(l=M.adjustTextPositionOnRect(l,e,u)).x,r=l.y,d=V(l.textVerticalAlign),c=l.textAlign),R(s,"alignment-baseline",d),h&&(s.style.font=h),i.textPadding),f=(R(s,"x",a),R(s,"y",r),N(s,i,!0),t instanceof T||t.style.transformText?E(s,t.transform):(t.transform?(z.copy(e),z.applyTransform(t.transform),e=z):(l=t.transformCoordToGlobal(e.x,e.y),e.x=l[0],e.y=l[1]),"center"===(e=i.textOrigin)?(a=n.width/2+a,r=n.height/2+r):e&&(a=e[0]+a,r=e[1]+r),l=-i.textRotation||0,e=S.create(),S.rotate(e,t.transform,l),E(s,e)),o.split("\n")),g=f.length,m=c,y=("left"===m?(m="start",u&&(a+=u[3])):"right"===m?(m="end",u&&(a-=u[1])):"center"===m&&(m="middle",u)&&(a+=(u[3]-u[1])/2),0);if("baseline"===d?(y=-n.height+p,u&&(y-=u[2])):"middle"===d?(y=(-n.height+p)/2,u&&(r+=(u[0]-u[2])/2)):u&&(y+=u[0]),t.__text!==o||t.__textFont!==h){var v=t.__tspanList||[];t.__tspanList=v;for(var x=0;x<g;x++)(_=v[x])?_.innerHTML="":(_=v[x]=w("tspan"),s.appendChild(_),R(_,"alignment-baseline",d),R(_,"text-anchor",m)),R(_,"x",a),R(_,"y",r+x*p+y),_.appendChild(document.createTextNode(f[x]));for(;x<v.length;x++)s.removeChild(v[x]);v.length=g,t.__text=o,t.__textFont=h}else if(t.__tspanList.length)for(var _,b=t.__tspanList.length,x=0;x<b;++x)(_=t.__tspanList[x])&&(R(_,"x",a),R(_,"y",r+x*p+y))}};function V(t){return"middle"===t?"middle":"bottom"===t?"baseline":"hanging"}l.drawRectText=c,l.brush=function(t){var e=t.style;null!=e.text&&(e.textPosition=[0,0],c(t,{x:e.x||0,y:e.y||0,width:0,height:0},t.getBoundingRect()))},e.path=n,e.image=i,e.text=l},function(t,e,n){var i=n(281).createElement,o=n(3),a=n(119),r=n(199),s=n(200),n=n(282),l=n.path,u=n.image,c=n.text;function h(t,e,n,i,o){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,this._domName=o||"_dom",this.nextId=0}h.prototype.createElement=i,h.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(e)for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},h.prototype.update=function(t,e){var n;t&&(n=this.getDefs(!1),t[this._domName]&&n.contains(t[this._domName])?"function"==typeof e&&e(t):(n=this.add(t))&&(t[this._domName]=n))},h.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},h.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},h.prototype.getDoms=function(){var e,n=this.getDefs(!1);return n?(e=[],o.each(this._tagNames,function(t){t=n.getElementsByTagName(t);e=e.concat([].slice.call(t))}),e):[]},h.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;o.each(t,function(t){t[e._markLabel]="0"})},h.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},h.prototype.removeUnused=function(){var t,e,n=this.getDefs(!1);n&&(t=this.getDoms(),e=this,o.each(t,function(t){"1"!==t[e._markLabel]&&n.removeChild(t)}))},h.prototype.getSvgProxy=function(t){return t instanceof a?l:t instanceof r?u:t instanceof s?c:l},h.prototype.getTextSvgElement=function(t){return t.__textSvgEl},h.prototype.getSvgElement=function(t){return t.__svgEl},t.exports=h},,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(201)),r=o(n(181)),i=o(n(78)),s=o(n(23)),l=o(n(43)),u=o(n(40));function o(t){return t&&t.__esModule?t:{default:t}}var c={install:function(t,e){t.MagGetSaleParam=t.prototype.$MagGetSaleParam=c},gasbrands:[],prices:[],adjustables:[],inputtors:[],smallareas:[],initinputtor:function(){var n=this;return(0,l.default)(s.default.mark(function t(){var e;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.default.resetpost("api/af-revenue/sql/getAlluserRes",{data:{condition:" 1=1"}},{newly:!0,resolveMsg:null,rejectMsg:"获取用户出错!!!"});case 2:(e=t.sent).data&&(c.inputtors=e.data);case 4:case"end":return t.stop()}},t,n)}))()},getsmallarea:function(i){var o=this;return(0,l.default)(s.default.mark(function t(){var e,n;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=i?"f_filialeid='"+i+"' and f_small_area is not null and f_small_area <>'' group by f_small_area":"f_small_area is not null and f_small_area <>'' group by f_small_area",t.next=5,u.default.resetpost("api/af-revenue/sql/manage_singleTable",{data:{items:"f_small_area",tablename:"t_user_address",orderitem:"f_small_area DESC",condition:n}},{newly:!0,resolveMsg:null,rejectMsg:"获取区域出错!!!"});case 5:return(n=t.sent).data&&n.data.forEach(function(t){t={label:t.f_small_area,value:t.f_small_area};e.push(t)}),t.abrupt("return",e);case 8:case"end":return t.stop()}},t,o)}))()},getresinputtor:function(e){var n=[];return 0<c.inputtors.length&&c.inputtors.filter(function(t){if(null!=t.rolestr&&""!=t.rolestr)return-1<t.rolestr.indexOf("抄表员")&&t.f_orgid==e}).forEach(function(t){n.push({label:t.name,value:t.name})}),n},organizeData:function(t){u.default.android&&(t.gasbrands.forEach(function(t,e){c.gasbrands[e]={},c.gasbrands[e].label=t.f_meter_brand;var n=[];Array.isArray(t.gasmodel)&&t.gasmodel.forEach(function(t,e){n[e]={},n[e].label=t.f_meter_style+t.f_type,n[e].value=t}),t.gasmodel=n,c.gasbrands[e].value=t}),t.adjustable.forEach(function(t,e){c.adjustables[e]={},c.adjustables[e].label=t.f_adjustable_name,c.adjustables[e].value=t}),c.prices=[].concat((0,i.default)(c.prices),(0,i.default)(t.price)))},getAdjustable:function(n){var i=[],o=(n?c.adjustables.forEach(function(t,e){t.value.f_orgid===n&&i.push(t)}):c.adjustables.forEach(function(t,e){i.push(t)}),{}),t=i.reduce(function(t,e){return o[e.label]||(o[e.label]=t.push(e)),t},[]);return(0,r.default)(new a.default(t))},getGasbrand:function(){return 0===c.gasbrands.length&&c.organizeData(u.default.$appdata.saleParams),c.gasbrands},getPrices:function(){return c.prices},getPrice:function(e){0===c.prices.length&&c.organizeData(u.default.$appdata.saleParams);var n=[],i=(e?c.prices.forEach(function(t){"有效"===t.f_state&&t.f_price_type===e.f_price_type&&t.f_filialeid===e.filter&&(t={label:t.f_price_name,value:t},n.push(t))}):c.prices.forEach(function(t){"有效"===t.f_state&&t.f_price_type===e.f_price_type&&(t={label:t.f_price_name,value:t},n.push(t))}),{}),n=n.reduce(function(t,e){return i[e.label]||(i[e.label]=t.push(e)),t},[]);return(0,r.default)(new a.default(n))}};e.default=c},function(t,e,n){n=n(20).document;t.exports=n&&n.documentElement},function(t,e,n){var i=n(183);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(185),o=n(22)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,n){var o=n(42);t.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(t,e,n){var a=n(22)("iterator"),r=!1;try{var i=[7][a]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i=[7],o=i[a]();o.next=function(){return{done:n=!0}},i[a]=function(){return o},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(42),o=n(59),a=n(234);t.exports=function(t,e){return i(t),o(e)&&e.constructor===t?e:((0,(t=a.f(t)).resolve)(e),t.promise)}},function(t,e,n){"use strict";var i=n(20),o=n(4),a=n(24),r=n(25),s=n(22)("species");t.exports=function(t){t=("function"==typeof o[t]?o:i)[t];r&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(42),o=n(182),a=n(22)("species");t.exports=function(t,e){var t=i(t).constructor;return void 0===t||null==(t=i(t)[a])?e:o(t)}},function(t,e,n){function i(){var t,e=+this;y.hasOwnProperty(e)&&(t=y[e],delete y[e],t())}function o(t){i.call(t.data)}var a,r=n(149),s=n(461),l=n(290),u=n(232),c=n(20),h=c.process,d=c.setImmediate,p=c.clearImmediate,f=c.MessageChannel,g=c.Dispatch,m=0,y={},v="onreadystatechange";d&&p||(d=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return y[++m]=function(){s("function"==typeof t?t:Function(t),e)},a(m),m},p=function(t){delete y[t]},"process"==n(183)(h)?a=function(t){h.nextTick(r(i,t,1))}:g&&g.now?a=function(t){g.now(r(i,t,1))}:f?(f=(n=new f).port2,n.port1.onmessage=o,a=r(f.postMessage,f,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(a=function(t){c.postMessage(t+"","*")},c.addEventListener("message",o,!1)):a=v in u("script")?function(t){l.appendChild(u("script"))[v]=function(){l.removeChild(this),i.call(t)}}:function(t){setTimeout(r(i,t,1),0)}),t.exports={set:d,clear:p}},function(t,e,n){var i=n(59);t.exports=function(t,e){if(i(t)&&t._t===e)return t;throw TypeError("Incompatible receiver, "+e+" required!")}},function(t,e,n){var i=n(3),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];t.exports=function(e){i.each(o,function(t){this[t]=i.bind(e[t],e)},this)}},function(t,e,n){var i=n(17),o=n(3);t.exports=function(n,t){o.each(t,function(o){o.update="updateView",i.registerAction(o,function(t,e){var i={};return e.eachComponent({mainType:"series",subType:n,query:t},function(e){e[o.method]&&e[o.method](t.name,t.dataIndex);var n=e.getData();n.each(function(t){t=n.getName(t);i[t]=e.isSelected(t)||!1})}),{name:t.name,selected:i}})})}},function(t,e,n){var i=n(17),a=n(3),r=n(305).updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,t){var o=i.componentType||"series";t.eachComponent({mainType:o,query:i},function(t){var e,n=t.coordinateSystem;"geo"===n.type&&(e=r(n,i,t.get("scaleLimit")),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===o)&&a.each(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})})},function(t,e){e.updateCenterAndZoom=function(t,e,n){var i,o=t.getZoom(),a=t.getCenter(),r=e.zoom,s=t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,a=t.pointToData(s),t.setCenter(a)),null!=r&&(n&&(i=n.min||0,n=n.max||1/0,r=Math.max(Math.min(o*r,n),i)/o),t.scale[0]*=r,t.scale[1]*=r,n=t.position,i=(e.originX-n[0])*(r-1),e=(e.originY-n[1])*(r-1),n[0]-=i,n[1]-=e,t.updateTransform(),a=t.pointToData(s),t.setCenter(a),t.setZoom(r*o)),{center:t.getCenter(),zoom:t.getZoom()}}},function(t,e,n){var i=n(123),o=n(141),n=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return o(this.getSource(),this)},getMarkerPosition:function(t){var e,n,i=this.coordinateSystem;return i?(t=i.dataToPoint(i.clampData(t)),e=(n=this.getData()).getLayout("offset"),n=n.getLayout("size"),t[i.getBaseAxis().isHorizontal()?0:1]+=e+n/2,t):[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:5e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=n},function(t,e,n){var l=n(48),u=n(242).getDefaultLabel;function c(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=function(t,e,n,i,o,a,r){var s=n.getModel("label"),n=n.getModel("emphasis.label");l.setLabelStyle(t,e,s,n,{labelFetcher:o,labelDataIndex:a,defaultText:u(o.getData(),a),isRectText:!0,autoColor:i}),c(t),c(e)}},function(t,e,n){var u=n(111);e.circularLayout=function(t){var e,n,i,o,s,l,a,r=t.coordinateSystem;r&&"view"!==r.type||(r=r.getBoundingRect(),e=(t=t.getData()).graph,n=0,i=t.getSum("value"),o=2*Math.PI/(i||t.count()),s=r.width/2+r.x,l=r.height/2+r.y,a=Math.min(r.width,r.height)/2,e.eachNode(function(t){var e=t.getValue("value");n+=o*(i?e:1)/2,t.setLayout([a*Math.cos(n)+s,a*Math.sin(n)+l]),n+=o*(i?e:1)/2}),t.setLayout({cx:s,cy:l}),e.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,i=u.clone(t.node1.getLayout()),o=u.clone(t.node2.getLayout()),a=(i[0]+o[0])/2,r=(i[1]+o[1])/2;+n&&(e=[s*(n*=3)+a*(1-n),l*n+r*(1-n)]),t.setLayout([i,o,e])}))}},function(t,e,n){var a=n(111);function i(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=a.clone(t.node1.getLayout()),i=a.clone(t.node2.getLayout()),o=[n,i];+e&&o.push([(n[0]+i[0])/2-(n[1]-i[1])*e,(n[1]+i[1])/2-(i[0]-n[0])*e]),t.setLayout(o)})}e.simpleLayout=function(t){var e=t.coordinateSystem;e&&"view"!==e.type||((e=t.getGraph()).eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),i(e))},e.simpleLayoutEdge=i},function(t,e,n){var i=n(48),o=n(240),c=n(3),s=n(134).createSymbol,a=n(111),l=n(152);function r(t,e,n){i.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}n=r.prototype;n.createLine=function(t,e,n){return new o(t,e,n)},n._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol"),a=(c.isArray(i)||(i=[i,i]),n.get("color")||t.getItemVisual(e,"color")),r=this.childAt(1);this._symbolType!==o&&(this.remove(r),(r=s(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setStyle("shadowColor",a),r.setStyle(n.getItemStyle(["color"])),r.attr("scale",i),r.setColor(a),r.attr("scale",i),this._symbolType=o,this._updateEffectAnimation(t,n,e))},n._updateEffectAnimation=function(e,t,n){var i,o,a,r,s,l,u=this.childAt(1);u&&(i=this,s=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),l=t.get("constantSpeed"),r="function"==typeof(t=c.retrieve(t.get("delay"),function(t){return t/e.count()*o/3})),u.ignore=!0,this.updateAnimationPoints(u,s),(o=0<l?this.getLineLength(u)/l*1e3:o)===this._period&&a===this._loop||(u.stopAnimation(),s=t,r&&(s=t(n)),0<u.__t&&(s=-o*u.__t),u.__t=0,l=u.animate("",a).when(o,{__t:1}).delay(s).during(function(){i.updateSymbolPosition(u)}),a||l.done(function(){i.remove(u)}),l.start()),this._period=o,this._loop=a)},n.getLineLength=function(t){return a.dist(t.__p1,t.__cp1)+a.dist(t.__cp1,t.__p2)},n.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]},n.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},n.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,a=t.position,r=l.quadraticAt,s=l.quadraticDerivativeAt,a=(a[0]=r(e[0],i[0],n[0],o),a[1]=r(e[1],i[1],n[1],o),s(e[0],i[0],n[0],o)),r=s(e[1],i[1],n[1],o);t.rotation=-Math.atan2(r,a)-Math.PI/2,t.ignore=!1},n.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},c.inherits(r,i.Group),t.exports=r},function(t,e,n){var s=n(48),l=n(3);function i(t,e,n){s.Group.call(this),this._createPolyline(t,e,n)}n=i.prototype;n._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new s.Polyline({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},n.updateData=function(t,e,n){var i=t.hostModel,o=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};s.updateProps(o,a,i,e),this._updateCommonStl(t,e,n)},n._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),e=t.getItemVisual(e,"color"),a=n&&n.lineStyle,r=n&&n.hoverLineStyle;n&&!t.hasItemOption||(a=o.getModel("lineStyle").getLineStyle(),r=o.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(l.defaults({strokeNoScale:!0,fill:"none",stroke:e},a)),i.hoverStyle=r,s.setHoverStyle(this)},n.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},l.inherits(i,s.Group),t.exports=i},function(t,e,n){var f=n(3),g=n(133),m=n(758),y=n(353),v=n(178),x=n(135),_=n(141);t.exports=function(t,e,n,i,o){for(var a=new m(i),r=0;r<t.length;r++)a.addNode(f.retrieve(t[r].id,t[r].name,r),r);for(var s,l=[],u=[],c=0,r=0;r<e.length;r++){var h=e[r],d=h.source,p=h.target;a.addEdge(d,p,c)&&(u.push(h),l.push(f.retrieve(h.id,d+" > "+p)),c++)}return"cartesian2d"===(i=n.get("coordinateSystem"))||"polar"===i?s=_(t,n):(i=(i=x.get(i))&&"view"!==i.type&&i.dimensions||[],f.indexOf(i,"value")<0&&i.concat(["value"]),i=v(t,{coordDimensions:i}),(s=new g(i,n)).initData(t)),(i=new g(["value"],n)).initData(u,l),o&&o(s,i),y({mainData:s,struct:a,structAttr:"graph",datas:{node:s,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}},function(t,e,n){var u=n(175),c=n(3),h=n(193).getDimensionTypeByAxis;e.seriesModelMixin={_baseAxisDim:null,getInitialData:function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),e=e.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),r=e.get("type"),a=("category"===a?(t.layout="horizontal",n=o.getOrdinalMeta(),l=!0):"category"===r?(t.layout="vertical",n=e.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal",["x","y"]),r="horizontal"===t.layout?0:1,s=this._baseAxisDim=a[r],a=a[1-r],o=[o,e],e=o[r].get("type"),o=o[1-r].get("type"),r=t.data,l=(r&&l&&(i=[],c.each(r,function(t,e){var n;t.value&&c.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):c.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,i.push(n)}),t.data=i),this.defaultValueDimensions);return u(this,{coordDimensions:[{name:s,type:h(e),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:a,type:h(o),dimsDef:l.slice()}],dimensionsCount:l.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}}},function(t,e,n){var c=n(142).isDimensionStacked,h=n(3).map;e.prepareDataCoordInfo=function(t,e,n){var i,o=t.getBaseAxis(),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(a=t.getOtherAxis(o),n),o=o.dim,a=a.dim,r=e.mapDimension(a),s=e.mapDimension(o),l="x"===a||"radius"===a?1:0,t=h(t.dimensions,function(t){return e.mapDimension(t)}),u=e.getCalculationInfo("stackResultDimension");return(i|=c(e,t[0]))&&(t[0]=u),(i|=c(e,t[1]))&&(t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:a,baseAxisDim:o,stacked:!!i,valueDim:r,baseDim:s,baseDataOffset:l,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,n,i){var o=NaN,a=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),r=[];return r[a]=n.get(t.baseDim,i),r[1-a]=o,e.dataToPoint(r)}},function(t,e,n){var i=n(119),b=n(111),n=n(375),w=b.min,S=b.max,M=b.scaleAndAdd,I=b.copy,T=[],A=[],D=[];function C(t){return isNaN(t[0])||isNaN(t[1])}function c(t,e,n,i,o,a,r,s,l,u,c){return("none"!==u&&u?h:d).apply(this,arguments)}function h(t,e,n,i,o,a,r,s,l,u,c){for(var h=0,d=n,p=0;p<i;p++){var f,g,m,y=e[d];if(o<=d||d<0)break;if(C(y)){if(c){d+=a;continue}break}d===n?t[0<a?"moveTo":"lineTo"](y[0],y[1]):0<l?(f=e[h],m=(y[g="y"===u?1:0]-f[g])*l,I(A,f),A[g]=f[g]+m,I(D,y),D[g]=y[g]-m,t.bezierCurveTo(A[0],A[1],D[0],D[1],y[0],y[1])):t.lineTo(y[0],y[1]),h=d,d+=a}return p}function d(t,e,n,i,o,a,r,s,l,u,c){for(var h=0,d=n,p=0;p<i;p++){var f=e[d];if(o<=d||d<0)break;if(C(f)){if(c){d+=a;continue}break}if(d===n)t[0<a?"moveTo":"lineTo"](f[0],f[1]),I(A,f);else if(0<l){var g=d+a,m=e[g];if(c)for(;m&&C(e[g]);)m=e[g+=a];var y,v,x=.5,_=e[h];!(m=e[g])||C(m)?I(D,f):(C(m)&&!c&&(m=f),b.sub(T,m,_),v="x"===u||"y"===u?(v="x"===u?0:1,y=Math.abs(f[v]-_[v]),Math.abs(f[v]-m[v])):(y=b.dist(f,_),b.dist(f,m)),M(D,f,T,-l*(1-(x=v/(v+y))))),w(A,A,s),S(A,A,r),w(D,D,s),S(D,D,r),t.bezierCurveTo(A[0],A[1],D[0],D[1],f[0],f[1]),M(A,f,T,l*x)}else t.lineTo(f[0],f[1]);h=d,d+=a}return p}function p(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var o=0;o<t.length;o++){var a=t[o];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var o=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:n(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,o=n.length,a=p(n,e.smoothConstraint);if(e.connectNulls){for(;0<o&&C(n[o-1]);o--);for(;i<o&&C(n[i]);i++);}for(;i<o;)i+=c(t,n,i,o,o,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),n=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:n(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,a=n.length,r=e.smoothMonotone,s=p(n,e.smoothConstraint),l=p(i,e.smoothConstraint);if(e.connectNulls){for(;0<a&&C(n[a-1]);a--);for(;o<a&&C(n[o]);o++);}for(;o<a;){var u=c(t,n,o,a,a,1,s.min,s.max,e.smooth,r,e.connectNulls);c(t,i,o+u-1,u,a,-1,l.min,l.max,e.stackedOnSmooth,r,e.connectNulls),o+=u+1,t.closePath()}}});e.Polyline=o,e.Polygon=n},function(t,e,n){n={seriesType:"lines",plan:n(176)(),reset:function(f){var g=f.coordinateSystem,m=f.get("polyline"),y=f.pipelineContext.large;return{progress:function(t,e){var n=[];if(y){var i,o=t.end-t.start;if(m){for(var a=0,r=t.start;r<t.end;r++)a+=f.getLineCoordsCount(r);i=new Float32Array(o+2*a)}else i=new Float32Array(4*o);for(var s=0,l=[],r=t.start;r<t.end;r++){var u=f.getLineCoords(r,n);m&&(i[s++]=u);for(var c=0;c<u;c++)l=g.dataToPoint(n[c],!1,l),i[s++]=l[0],i[s++]=l[1]}e.setLayout("linesPoints",i)}else for(r=t.start;r<t.end;r++){var h=e.getItemModel(r),u=f.getLineCoords(r,n),d=[];if(m)for(var p=0;p<u;p++)d.push(g.dataToPoint(n[p]));else{d[0]=g.dataToPoint(n[0]),d[1]=g.dataToPoint(n[1]);h=h.get("lineStyle.curveness");+h&&(d[2]=[(d[0][0]+d[1][0])/2-(d[0][1]-d[1][1])*h,(d[0][1]+d[1][1])/2-(d[1][0]-d[0][0])*h])}e.setItemLayout(r,d)}}}}};t.exports=n},function(t,e,n){var i=n(109);function p(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function f(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function o(t,e){return t.parentNode===e.parentNode?1:2}e.init=function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var o=n.length-1;0<=o;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}},e.firstWalk=function(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){for(var a=t.children,r=a.length,s=0,l=0;0<=--r;){var u=a[r];u.hierNode.prelim+=s,u.hierNode.modifier+=s,l+=u.hierNode.change,s+=u.hierNode.shift+l}n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var o=t,a=t,r=a.parentNode.children[0],s=e,l=o.hierNode.modifier,u=a.hierNode.modifier,c=r.hierNode.modifier,h=s.hierNode.modifier;s=p(s),a=f(a),s&&a;){o=p(o),r=f(r),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+i(s,a);0<d&&(!function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}(function(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=o.hierNode.modifier,c+=r.hierNode.modifier}s&&!p(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),a&&!f(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=u-c,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)},e.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},e.separation=function(t){return arguments.length?t:o},e.radialCoordinate=function(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n},e.getViewRect=function(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}},function(t,e,n){var o=n(48),i=n(243),h=n(205),d=n(346),n=n(161),i=i.extend({makeElOption:function(t,e,n,i,o){var a,r=n.axis,s=r.grid,l=i.get("type"),u=p(s,r).getOtherAxis(r).getGlobalExtent(),c=r.toGlobalCoord(r.dataToCoord(e,!0)),r=(l&&"none"!==l&&(a=h.buildElStyle(i),(l=f[l](r,c,u,a)).style=a,t.graphicKey=l.type,t.pointer=l),d.layout(s.model,n));h.buildCartesianSingleLabelElOption(e,t,r,n,i,o)},getHandleTransform:function(t,e,n){var i=d.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:h.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var n=n.axis,o=n.grid,a=n.getGlobalExtent(!0),o=p(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,r=t.position,e=(r[n]+=e[n],r[n]=Math.min(a[1],r[n]),r[n]=Math.max(a[0],r[n]),(o[1]+o[0])/2),a=[e,e];a[n]=r[n];return{position:r,rotation:t.rotation,cursorPoint:a,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}}});function p(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var f={line:function(t,e,n,i){e=h.makeLineShape([e,n[0]],[e,n[1]],r(t));return o.subPixelOptimizeLine({shape:e,style:i}),{type:"Line",shape:e}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:h.makeRectShape([e-o/2,n[0]],[o,a],r(t))}}};function r(t){return"x"===t.dim?0:1}n.registerAxisPointerClass("CartesianAxisPointer",i),t.exports=i},function(t,e,n){var r=n(3),s=n(77);t.exports=function(t,e){var n,i,o=[],a=t.seriesIndex;return null==a||!(e=e.getSeriesByIndex(a))||(n=e.getData(),null==(a=s.queryDataIndex(n,t)))||a<0||r.isArray(a)?{point:[]}:(t=n.getItemGraphicEl(a),i=e.coordinateSystem,e.getTooltipPosition?o=e.getTooltipPosition(a)||[]:i&&i.dataToPoint?o=i.dataToPoint(n.getValues(r.map(i.dimensions,function(t){return n.mapDimension(t)}),a,!0))||[]:t&&((e=t.getBoundingRect().clone()).applyTransform(t.transform),o=[e.x+e.width/2,e.y+e.height/2]),{point:o,el:t})}},function(t,e,n){var a=n(3),r=n(121),p=(0,n(77).makeInner)(),f=a.each;function s(t,e,n){t.handler("leave",null,n)}function l(t,e,n,i){e.handler(t,n,i)}e.register=function(t,e,n){var i,h,d;function o(t,c){h.on(t,function(e){n=d;var n,i,o={dispatchAction:a,pendings:i={showTip:[],hideTip:[]}};function a(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=a,n.dispatchAction(t))}f(p(h).records,function(t){t&&c(t,e,o.dispatchAction)});var t,r=o.pendings,s=d,l=r.showTip.length,u=r.hideTip.length;l?t=r.showTip[l-1]:u&&(t=r.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}r.node||(i=e.getZr(),p(i).records||(p(i).records={}),d=e,p(h=i).initialized||(p(h).initialized=!0,o("click",a.curry(l,"click")),o("mousemove",a.curry(l,"mousemove")),o("globalout",s)),(p(i).records[t]||(p(i).records[t]={})).handler=n)},e.unregister=function(t,e){r.node||(e=e.getZr(),(p(e).records||{})[t]&&(p(e).records[t]=null))}},function(t,e,n){var i=n(17),a=n(3),r=n(244);i.registerAction("dataZoom",function(n,t){var i=r.createLinkedNodesFinder(a.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),o=[];t.eachComponent({mainType:"dataZoom",query:n},function(t,e){o.push.apply(o,i(t).nodes)}),a.each(o,function(t,e){t.setRawRange({start:n.start,end:n.end,startValue:n.startValue,endValue:n.endValue})})})},function(t,e,n){var i=n(17),n=n(3),o=n.createHashMap,a=n.each;i.registerProcessor({getTargetSeries:function(t){var i=o();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,e,n){n=n.getAxisProxy(t.name,e);a(n.getTargetSeriesModels(),function(t){i.set(t.uid,t)})})}),i},modifyOutputEnd:!0,overallReset:function(t,i){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,e,n){n.getAxisProxy(t.name,e).reset(n,i)}),t.eachTargetAxis(function(t,e,n){n.getAxisProxy(t.name,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),e=e.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:e[0],endValue:e[1]},!0)})}})},function(t,e,n){var r=n(3).each,i="\0_ec_hist_store";function s(t){return t[i]||(t[i]=[{}])}e.push=function(o,t){var a=s(o);r(t,function(t,e){for(var n,i=a.length-1;0<=i&&!a[i][e];i--);i<0&&(n=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),a[0][e]={dataZoomId:e,start:n[0],end:n[1]})}),a.push(t)},e.pop=function(t){var i=s(t),t=i[i.length-1],o=(1<i.length&&i.pop(),{});return r(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o},e.clear=function(t){t[i]=null},e.count=function(t){return s(t).length}},function(t,e,n){n(120).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},function(t,e,n){var i=n(120),o=n(214),a=n(209).detectSourceFormat,n=n(194).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:n,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),o.extend({type:"dataset"})},function(t,e,n){n(79).__DEV__;var l=n(3),i=n(48),o=n(77),a=n(328),u=l.each,c=l.indexOf,n=l.curry,r=["dataToPoint","pointToData"],s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function h(t,e,n){var i=this._targetInfoList=[],o={},a=f(e,t);u(g,function(t,e){n&&n.include&&!(0<=c(n.include,e))||t(a,i,o)})}var d=h.prototype;function p(t){return t[0]>t[1]&&t.reverse(),t}function f(t,e){return o.parseFinder(t,e,{includeMainTypes:s})}d.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,n=v[t.brushType](0,n,e),t.__rangeOffset={offset:_[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})})},d.matchOutputRanges=function(t,i,o){u(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&l.each(t.coordSyses,function(t){var e=v[n.brushType](1,t,n.range);o(n,e.values,t,i)})},this)},d.setInputRanges=function(t,i){u(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,n=v[t.brushType](0,n.coordSys,t.coordRange),e=t.__rangeOffset,t.range=e?_[t.brushType](n.values,e.offset,function(t,e){t=w(t),e=w(e),t=[t[0]/e[0],t[1]/e[1]];return isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(n.xyMinMax,e.xyMinMax)):n.values)},this)},d.makePanelOpts=function(n,i){return l.map(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i&&i(t),clipPath:a.makeRectPanelClipPath(e),isTargetByCursor:a.makeRectIsTargetByCursor(e,n,t.coordSysModel),getLinearBrushOtherExtent:a.makeLinearBrushOtherExtent(e)}})},d.controlSeries=function(t,e,n){t=this.findTargetInfo(t,n);return!0===t||t&&0<=c(t.coordSyses,e.coordinateSystem)},d.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=f(e,t),o=0;o<n.length;o++){var a=n[o],r=t.panelId;if(r){if(a.panelId===r)return a}else for(o=0;o<m.length;o++)if(m[o](i,a))return a}return!0};var g={grid:function(t,i){var o=t.xAxisModels,a=t.yAxisModels,t=t.gridModels,e=l.createHashMap(),r={},s={};(o||a||t)&&(u(o,function(t){t=t.axis.grid.model;e.set(t.id,t),r[t.id]=!0}),u(a,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),u(t,function(t){e.set(t.id,t),r[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];u(e.getCartesians(),function(t,e){(0<=c(o,t.getAxis("x").model)||0<=c(a,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:y.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){u(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:y.geo})})}},m=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],y={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(i.getTransform(t)),e}},v={lineX:n(x,0),lineY:n(x,1),rect:function(t,e,n){var i=e[r[t]]([n[0][0],n[1][0]]),e=e[r[t]]([n[0][1],n[1][1]]),t=[p([i[0],e[0]]),p([i[1],e[1]])];return{values:t,xyMinMax:t}},polygon:function(e,n,t){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:l.map(t,function(t){t=n[r[e]](t);return i[0][0]=Math.min(i[0][0],t[0]),i[1][0]=Math.min(i[1][0],t[1]),i[0][1]=Math.max(i[0][1],t[0]),i[1][1]=Math.max(i[1][1],t[1]),t}),xyMinMax:i}}};function x(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=p(l.map([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t])):o.toGlobalCoord(o.dataToCoord(i[t]))})),a=[];return a[t]=n,a[1-t]=[NaN,NaN],{values:n,xyMinMax:a}}var _={lineX:n(b,0),lineY:n(b,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return l.map(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function b(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function w(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}t.exports=h},function(t,e,n){var S=n(3),i=n(206),l=n(331),u=n(246).onIrrelevantElement,M=n(48);function I(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function h(n,t){t.eachChild(function(e){S.each(e.__regions,function(t){e.trigger(n.isSelected(t.name)?"emphasis":"normal")})})}function o(t,e){var n=new M.Group;this._controller=new i(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag}o.prototype={constructor:o,draw:function(p,t,e,n,i){var o,a,r,s,l,f="geo"===p.mainType,g=p.getData&&p.getData(),u=(f&&t.eachComponent({mainType:"series",subType:"map"},function(t){g||t.getHostGeoModel()!==p||(g=t.getData())}),p.coordinateSystem),m=this.group,y=u.scale,c={position:u.position,scale:y},v=(!m.childAt(0)||i?m.attr(c):M.updateProps(m,c,p),m.removeAll(),["itemStyle"]),x=["emphasis","itemStyle"],_=["label"],b=["emphasis","label"],w=S.createHashMap();S.each(u.regions,function(t){var e,n,i=w.get(t.name)||w.set(t.name,new M.Group),o=new M.CompoundPath({shape:{paths:[]}}),a=(i.add(o),p.getRegionModel(t.name)||p),r=a.getModel(v),s=a.getModel(x),r=I(r),s=I(s),l=a.getModel(_),u=a.getModel(b),c=(g&&(e=g.indexOfName(t.name),c=g.getItemVisual(e,"color",!0))&&(r.fill=c),S.each(t.geometries,function(t){if("polygon"===t.type){o.shape.paths.push(new M.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)o.shape.paths.push(new M.Polygon({shape:{points:t.interiors[e]}}))}}),o.setStyle(r),o.style.strokeNoScale=!0,o.culling=!0,l.get("show")),r=u.get("show"),h=g&&isNaN(g.get(g.mapDimension("value"),e)),d=g&&g.getItemLayout(e);(f||h&&(c||r)||d&&d.showLabel)&&(h=f?t.name:e,(!g||0<=e)&&(n=p),c=new M.Text({position:t.center.slice(),scale:[1/y[0],1/y[1]],z2:10,silent:!0}),M.setLabelStyle(c.style,c.hoverStyle={},l,u,{labelFetcher:n,labelDataIndex:h,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(c)),g?g.setItemGraphicEl(e,i):(a=p.getRegionModel(t.name),o.eventData={componentType:"geo",geoIndex:p.componentIndex,name:t.name,region:a&&a.option||{}}),(i.__regions||(i.__regions=[])).push(t),M.setHoverStyle(i,s,{hoverSilentOnTouch:!!p.get("selectedMode")}),m.add(i)}),this._updateController(p,t,e),o=this,a=p,s=e,l=n,(r=m).off("click"),r.off("mousedown"),a.get("selectedMode")&&(r.on("mousedown",function(){o._mouseDownFlag=!0}),r.on("click",function(t){if(o._mouseDownFlag){o._mouseDownFlag=!1;for(var e=t.target;!e.__regions;)e=e.parent;e&&((t={type:("geo"===a.mainType?"geo":"map")+"ToggleSelect",batch:S.map(e.__regions,function(t){return{name:t.name,from:l.uid}})})[a.mainType+"Id"]=a.id,s.dispatchAction(t),h(a,r))}})),h(p,m)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(i,t,o){var a=i.coordinateSystem,e=this._controller,r=this._controllerHost,n=(r.zoomLimit=i.get("scaleLimit"),r.zoom=a.getZoom(),e.enable(i.get("roam")||!1),i.mainType);function s(){var t={type:"geoRoam",componentType:n};return t[n+"Id"]=i.id,t}e.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,l.updateViewOnPan(r,t,e),o.dispatchAction(S.extend(s(),{dx:t,dy:e}))},this),e.off("zoom").on("zoom",function(t,e,n){var i;this._mouseDownFlag=!1,l.updateViewOnZoom(r,t,e,n),o.dispatchAction(S.extend(s(),{zoom:t,originX:e,originY:n})),this._updateGroup&&(t=this.group,i=t.scale,t.traverse(function(t){"text"===t.type&&t.attr("scale",[1/i[0],1/i[1]])}))},this),e.setPointerChecker(function(t,e,n){return a.getViewRectAfterRoam().contain(e,n)&&!u(t,o,i)})}},t.exports=o},function(t,e,n){var i=n(118),r=n(246).onIrrelevantElement,o=n(48);function s(t){return i.create(t)}e.makeRectPanelClipPath=function(n){return n=s(n),function(t,e){return o.clipPointsByRect(t,n)}},e.makeLinearBrushOtherExtent=function(n,i){return n=s(n),function(t){var t=null!=i?i:t,e=t?n.width:n.height,t=t?n.x:n.y;return[t,t+(e||0)]}},e.makeRectIsTargetByCursor=function(i,o,a){return i=s(i),function(t,e,n){return i.contain(e[0],e[1])&&!r(t,o,a)}}},function(t,e,n){var n=n(17),i="\0_ec_interaction_mutex";function o(t){return t[i]||(t[i]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),e.take=function(t,e,n){o(t)[e]=n},e.release=function(t,e,n){(t=o(t))[e]===n&&(t[e]=null)},e.isTaken=function(t,e){return!!o(t)[e]}},function(t,e,n){var i=n(109),r=i.getLayoutRect,s=i.box,l=i.positionElement,o=n(116),a=n(48);e.layout=function(t,e,n){var i=e.getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},a=r(i,n,o);s(e.get("orient"),t,e.get("itemGap"),a.width,a.height),l(t,i,n,o)},e.makeBackground=function(t,e){var n=o.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new a.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}},function(t,e){e.updateViewOnPan=function(t,e,n){var i=(t=t.target).position;i[0]+=e,i[1]+=n,t.dirty()},e.updateViewOnZoom=function(t,e,n,i){var o=t.target,a=t.zoomLimit,r=o.position,s=o.scale,l=t.zoom=t.zoom||1,a=(l*=e,a&&(e=a.min||0,a=a.max||1/0,l=Math.max(Math.min(a,l),e)),l/t.zoom);t.zoom=l,r[0]-=(n-r[0])*(a-1),r[1]-=(i-r[1])*(a-1),s[0]*=a,s[1]*=a,o.dirty()}},function(t,e,n){var i=n(17),r=n(3),s=n(122),l=n(77).isNameSpecified,o=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){o.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},_updateData:function(i){var o=[],a=[],t=(i.eachRawSeries(function(t){var e,n=t.name;a.push(n),t.legendDataProvider&&(n=(n=t.legendDataProvider()).mapArray(n.getName),i.isSeriesFiltered(t)||(a=a.concat(n)),n.length)?o=o.concat(n):e=!0,e&&l(t)&&o.push(t.name)}),this._availableNames=a,this.get("data")||o),t=r.map(t,function(t){return new s(t="string"!=typeof t&&"number"!=typeof t?t:{name:t},this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(t){var e,n=this.option.selected;"single"===this.get("selectedMode")&&(e=this._data,r.each(e,function(t){n[t.get("name")]=!1})),n[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=r.indexOf(this._availableNames,t)},defaultOption:{zlevel:0,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,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});t.exports=o},function(t,e,n){n(79).__DEV__;var i=n(17),v=n(3),x=n(134).createSymbol,_=n(48),r=n(330).makeBackground,s=n(109),g=v.curry,o=v.each,b=_.Group,n=i.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new b),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){var i,o,a;this.resetInner(),t.get("show",!0)&&((o=t.get("align"))&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(o,t,e,n),e=t.getBoxLayoutParams(),n={width:n.getWidth(),height:n.getHeight()},i=t.get("padding"),a=s.getLayoutRect(e,n,i),o=this.layoutInner(t,o,a),a=s.getLayoutRect(v.defaults({width:o.width,height:o.height},e),n,i),this.group.attr("position",[a.x-o.x,a.y-o.y]),this.group.add(this._backgroundEl=r(o,t)))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(s,l,u,c){var h=this.getContentGroup(),d=v.createHashMap(),p=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),o(l.getData(),function(i,o){var t,e,n,a,r=i.get("name");this.newlineDisabled||""!==r&&"\n"!==r?(t=u.getSeriesByName(r)[0],d.get(r)||(t?("function"==typeof(e=(a=t.getData()).getVisual("color"))&&(e=e(t.getDataParams(0))),n=a.getVisual("legendSymbol")||"roundRect",a=a.getVisual("symbol"),this._createItem(r,o,i,l,n,a,s,e,p).on("click",g(m,r,c)).on("mouseover",g(y,t,null,c,f)).on("mouseout",g(w,t,null,c,f)),d.set(r,!0)):u.eachRawSeries(function(t){var e,n;d.get(r)||!t.legendDataProvider||(e=(n=t.legendDataProvider()).indexOfName(r))<0||(n=n.getItemVisual(e,"color"),this._createItem(r,o,i,l,"roundRect",null,s,n,p).on("click",g(m,r,c)).on("mouseover",g(y,t,r,c,f)).on("mouseout",g(w,t,r,c,f)),d.set(r,!0))},this))):h.add(new b({newline:!0}))},this)},_createItem:function(t,e,n,i,o,a,r,s,l){var u=i.get("itemWidth"),c=i.get("itemHeight"),h=i.get("inactiveColor"),d=i.get("symbolKeepAspect"),p=i.isSelected(t),f=new b,g=n.getModel("textStyle"),m=n.get("icon"),n=n.getModel("tooltip"),y=n.parentModel,o=(f.add(x(o=m||o,0,0,u,c,p?s:h,null==d||d)),m||!a||a===o&&"none"!=a||f.add(x(a="none"===a?"circle":a,(u-(m=.8*c))/2,(c-m)/2,m,m,p?s:h,null==d||d)),"left"===r?u+5:-5),a=r,m=i.get("formatter"),s=t,d=("string"==typeof m&&m?s=m.replace("{name}",null!=t?t:""):"function"==typeof m&&(s=m(t)),f.add(new _.Text({style:_.setTextStyle({},g,{text:s,x:o,y:c/2,textFill:p?g.getTextColor():h,textAlign:a,textVerticalAlign:"middle"})})),new _.Rect({shape:f.getBoundingRect(),invisible:!0,tooltip:n.get("show")?v.extend({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},n.option):null}));return f.add(d),f.eachChild(function(t){t.silent=!0}),d.silent=!l,this.getContentGroup().add(f),_.setHoverStyle(f),f.__legendDataIndex=e,f},layoutInner:function(t,e,n){var i=this.getContentGroup(),t=(s.box(t.get("orient"),i,t.get("itemGap"),n.width,n.height),i.getBoundingRect());return i.attr("position",[-t.x,-t.y]),this.group.getBoundingRect()}});function m(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function y(t,e,n,i){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t.name,name:e,excludeSeriesId:i})}function w(t,e,n,i){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t.name,name:e,excludeSeriesId:i})}t.exports=n},function(t,e,n){var i=n(17),o=n(3),a=n(165),r=n(743),s=(n(349),n(742),n(688),i.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},o.each(s,function(t,e){n.getZr().on(e,this._handlers[e]=o.bind(t,this))},this)),a.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,n){o.each(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},t))}}),{mousedown:function(t){l(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(l(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(5<Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))return;e=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==e.behavior&&this._dispatchExpand({axisExpandWindow:e.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n;!this._mouseDownPoint&&l(this,"mousemove")&&("jump"===(n=(t=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===n&&null}))}});function l(t,e){t=t._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}i.registerPreprocessor(r)},function(t,e,n){var i=n(17);n(757),n(647),n(753),n(187),n(641),i.extendComponentView({type:"single"})},function(t,e,n){var i=n(17),u=n(3),o=n(121),r=n(360),s=n(166),a=n(216),l=n(77),n=n(61),c=s.mapVisual,h=s.eachVisual,d=u.isArray,p=u.each,f=n.asc,g=n.linearMap,n=u.noop,i=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,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,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;o.canvasSupported||(n.realtime=!1),e||a.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=u.bind(t,this),this.controllerVisuals=a.createVisualMappings(this.option.controller,e,t),this.targetVisuals=a.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=l.normalizeToArray(t),n},eachTargetSeries:function(e,n){u.each(this.getTargetSeriesIndices(),function(t){e.call(n,this.ecModel.getSeriesByIndex(t))},this)},isTargetSeries:function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},formatValueText:function(t,e,n){var i,o=this.option,a=o.precision,r=this.dataBound,o=o.formatter;return n=n||["<",">"],u.isArray(t)&&(t=t.slice(),i=!0),e=e?t:i?[s(t[0]),s(t[1])]:s(t),u.isString(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):u.isFunction(o)?i?o(t[0],t[1]):o(t):i?t[0]===r[0]?n[0]+" "+e[1]:t[1]===r[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===r[0]?"min":t===r[1]?"max":(+t).toFixed(Math.min(a,20))}},resetExtent:function(){var t=this.option,t=f([t.min,t.max]);this._dataExtent=t},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,o=i.length-1;0<=o;o--){var a=i[o];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={}),l=(u.merge(i,n),u.merge(o,n),this.isCategory());function a(i){d(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},p(this.stateList,function(t){var e,n=i[t];u.isString(n)&&((e=r.get(n,"active",l))?(i[t]={},i[t][n]=e):delete i[t])},this)}a.call(this,i),a.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},p(e,function(t,e){var n;s.isValidType(e)&&null!=(n=r.get(e,"inactive",l))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var a=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,r=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor");p(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:l?s:[s]})).symbol&&(i.symbol=a&&u.clone(a)||(l?"roundRect":["roundRect"])),null==i.symbolSize&&(i.symbolSize=r&&u.clone(r)||(l?n[0]:[n[0],n[0]])),i.symbol=c(i.symbol,function(t){return"none"===t||"square"===t?"roundRect":t}),i.symbolSize);null!=t&&(e=-1/0,h(t,function(t){e<t&&(e=t)}),i.symbolSize=c(t,function(t){return g(t,[0,e],[0,n[0]],!0)}))},this)}.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:n,getValueState:n,getVisualMeta:n});t.exports=i},function(t,e,n){var i=n(17),c=n(3),o=n(48),a=n(116),r=n(109),h=n(166),n=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,n=a.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new o.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(n,i,o){var t=(o=o||{}).forceState,e=this.visualMapModel,a={};function r(t){return a[t]}function s(t,e){a[t]=e}"symbol"===i&&(a.symbol=e.get("itemSymbol")),"color"===i&&(u=e.get("contentColor"),a.color=u);var l=e.controllerVisuals[t||e.getValueState(n)],u=h.prepareVisualTypes(l);return c.each(u,function(t){var e=l[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=l.__alphaForOpacity),h.dependsOn(t,i)&&e&&e.applyVisual(n,r,s)}),a[i]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;r.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:c.noop});t.exports=n},function(t,e,n){var i=n(3),h=n(109).getLayoutRect;e.getItemAlign=function(t,e,n){var i=t.option;if(null!=(t=i.align)&&"auto"!==t)return t;for(var t={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,a=[["left","right","width"],["top","bottom","height"]],r=a[o],s=[0,null,10],l={},u=0;u<3;u++)l[a[1-o][u]]=s[u],l[r[u]]=2===u?n[0]:i[r[u]];var e=[["x","width",3],["y","height",0]][o],c=h(l,t,i.padding);return r[(c.margin[e[2]]||0)+c[e[0]]+.5*c[e[1]]<.5*t[e[1]]?0:1]},e.convertDataIndex=function(e){return i.each(e||[],function(t){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null)}),e}},function(t,e,n){var i=n(3),o=i.each;function a(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=function(t){t=t&&t.visualMap,i.isArray(t)||(t=t?[t]:[]),o(t,function(t){t&&(a(t,"splitList")&&!a(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&i.isArray(t)&&o(t,function(t){i.isObject(t)&&(a(t,"start")&&!a(t,"min")&&(t.min=t.start),a(t,"end"))&&!a(t,"max")&&(t.max=t.end)})})}},function(t,e,n){n(120).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"})},function(t,e,n){var i=n(17),a=n(3),o=n(216),d=n(166),n=i.PRIORITY.VISUAL.COMPONENT;function r(t,e,n,i){for(var o=e.targetVisuals[i],a=d.prepareVisualTypes(o),r={color:t.getData().getVisual("color")},s=0,l=a.length;s<l;s++){var u=a[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,c,h)}return r.color;function c(t){return r[t]}function h(t,e){r[t]=e}}i.registerVisual(n,{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push(o.incrementalApplyVisual(t.stateList,t.targetVisuals,a.bind(t.getValueState,t),t.getDataDimension(n.getData())))}),i}}),i.registerVisual(n,{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(a.bind(r,null,n,t))||{stops:[],outerColors:[]},t=t.getDataDimension(i),null!=(t=i.getDimensionInfo(t)))&&(e.dimension=t.index,o.push(e))}),n.getData().setVisual("visualMeta",o)}})},function(t,e,n){n(17).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})})},function(t,e,n){var i=n(3),a=n(111),o=n(129),r=n(118),s=n(280),l=a.applyTransform;function u(){s.call(this)}function c(t){this.name=t,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(t,e,n,i){n=n.seriesModel,n=n?n.coordinateSystem:null;return n===this?n[t](i):null}i.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new r(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new r(t,e,n,i)},transformTo:function(t,e,n,i){var o=this.getBoundingRect(),a=this._rawTransformable;a.transform=o.calculateTransform(new r(t,e,n,i)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},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()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=a.applyTransform([],i,t),n=a.applyTransform([],n,t);e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),o.copy(this.transform||(this.transform=[]),e.transform||o.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?l(n,t,e):a.copy(n,t)},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},i.mixin(c,s),t.exports=c},function(t,e,n){var n=n(3),i={show:!0,zlevel: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:"#333",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,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o={};o.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),o.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5},i),o.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=n.defaults({scale:!0,logBase:10},o.valueAxis),t.exports=o},function(t,e,n){var i=n(3),o=n(120),a=n(207),n=n(177),r=o.extend({type:"cartesian2dAxis",axis:null,init:function(){r.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){r.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){r.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function s(t,e){return e.type||(e.data?"category":"value")}i.merge(r.prototype,n);o={offset:0};a("x",r,s,o),a("y",r,s,o),t.exports=r},function(t,e,n){var h=n(3);e.layout=function(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],r=i.position,s=a?"onZero":r,i=i.dim,t=[(t=t.getRect()).x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],c=(a&&(c=a.toGlobalCoord(a.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(c,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[r],o.labelOffset=a?u[l[r]]-u[l.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),h.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection),e.get("axisLabel.rotate"));return o.labelRotate="top"===s?-c:c,o.z2=1,o}},function(t,e,n){var p=n(118),l=n(276),f=n(111),u=n(366);function i(t,e,n){this.name=t,this.geometries=e,n=n?[n[0],n[1]]:[(t=this.getBoundingRect()).x+t.width/2,t.y+t.height/2],this.center=n}i.prototype={constructor:i,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e,t=Number.MAX_VALUE,n=[t,t],i=[-t,-t],o=[],a=[],r=this.geometries,s=0;s<r.length;s++)"polygon"===r[s].type&&(e=r[s].exterior,l.fromPoints(e,o,a),f.min(n,n,o),f.max(i,i,a));return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new p(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var a=n[i].exterior,r=n[i].interiors;if(u.contain(a,t[0],t[1])){for(var s=0;s<(r?r.length:0);s++)if(u.contain(r[s]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){for(var o=this.getBoundingRect(),a=o.width/o.height,a=(n?i=i||n/a:n=a*i,new p(t,e,n,i)),r=o.calculateTransform(a),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var u=s[l].exterior,c=s[l].interiors,h=0;h<u.length;h++)f.applyTransform(u[h],u[h],r);for(var d=0;d<(c?c.length:0);d++)for(h=0;h<c[d].length;h++)f.applyTransform(c[d][h],c[d][h],r)}(o=this._rect).copy(a),this.center=[o.x+o.width/2,o.y+o.height/2]}},t.exports=i},function(t,e,n){var d=n(3),p=n(347);function f(t,e,n){for(var i=[],o=e[0],a=e[1],r=0;r<t.length;r+=2){var s=(s=t.charCodeAt(r)-64)>>1^-(1&s),l=(l=t.charCodeAt(r+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(a=l+=a)/n])}return i}t.exports=function(t){var e=t;if(e.UTF8Encoding){for(var n=e.UTF8Scale,i=(null==n&&(n=1024),e.features),o=0;o<i.length;o++)for(var a=i[o].geometry,r=a.coordinates,s=a.encodeOffsets,l=0;l<r.length;l++){var u=r[l];if("Polygon"===a.type)r[l]=f(u,s[l],n);else if("MultiPolygon"===a.type)for(var c=0;c<u.length;c++){var h=u[c];u[c]=f(h,s[l][c],n)}}e.UTF8Encoding=!1}return d.map(d.filter(t.features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,t=t.geometry,n=t.coordinates,i=[],t=("Polygon"===t.type&&i.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===t.type&&d.each(n,function(t){t[0]&&i.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}),new p(e.name,i,e.cp));return t.properties=e,t})}},function(t,e,n){var r=n(740);n(135).register("parallel",{create:function(i,o){var a=[];return i.eachComponent("parallel",function(t,e){var n=new r(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,a.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=i.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0],t.coordinateSystem=e.coordinateSystem)}),a}})},function(t,e,n){var s=n(3);e.layout=function(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},a=i.position,i=i.orient,r={horizontal:{top:(n=[(n=n.getRect()).x,n.x+n.width,n.y,n.y+n.height])[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}};return o.position=["vertical"===i?r.vertical[a]:n[0],"horizontal"===i?r.horizontal[a]:n[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[i],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),s.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection),null==(r=e.rotate)&&(r=t.get("axisLabel.rotate")),o.labelRotation="top"===a?-r:r,o.z2=1,o}},function(t,e,n){var n=n(3),i=n.createHashMap,o=n.isObject,a=n.map;function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}r.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&a(e,l);return new r({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})};n=r.prototype;function s(t){return t._map||(t._map=i(t.categories))}function l(t){return o(t)&&null!=t.value?t.value:t+""}n.getOrdinal=function(t){return s(this).get(t)},n.parseAndCollect=function(t){var e,n,i=this._needCollect;return"string"==typeof t||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=s(this)).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},t.exports=r},function(t,e,n){var i=n(3),M=i.createHashMap,I=i.each,T=i.isString,A=i.defaults,D=i.extend,C=i.isObject,L=i.clone,P=n(77).normalizeToArray,k=n(209).guessOrdinal,O=n(192),E=n(193).OTHER_DIMENSIONS;function R(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}t.exports=function(t,e,n){O.isInstance(e)||(e=O.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i,o,a,r,s=(n.dimsDef||[]).slice(),l=M(n.encodeDef),u=M(),c=M(),h=[],d=(i=e,o=t,a=n.dimCount,r=Math.max(i.dimensionsDetectCount||1,o.length,s.length,a||0),I(o,function(t){t=t.dimsDef;t&&(r=Math.max(r,t.length))}),r),p=0;p<d;p++){var f=s[p]=D({},C(s[p])?s[p]:{name:s[p]}),g=f.name,m=h[p]={otherDims:{}};null!=g&&null==u.get(g)&&(m.name=m.displayName=g,u.set(g,p)),null!=f.type&&(m.type=f.type),null!=f.displayName&&(m.displayName=f.displayName)}l.each(function(t,n){t=P(t).slice();var i=l.set(n,[]);I(t,function(t,e){null!=(t=T(t)?u.get(t):t)&&t<d&&(i[e]=t,v(h[t],n,e))})});var y=0;function v(t,e,n){null!=E.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}I(t,function(n,t){T(n)?(a=n,n={}):(a=n.name,e=n.ordinalMeta,n.ordinalMeta=null,(n=L(n)).ordinalMeta=e,i=n.dimsDef,o=n.otherDims,n.name=n.coordDim=n.coordDimIndex=n.dimsDef=n.otherDims=null);var i,o,a,e,r=P(l.get(a));if(!r.length)for(var s=0;s<(i&&i.length||1);s++){for(;y<h.length&&null!=h[y].coordDim;)y++;y<h.length&&r.push(y++)}I(r,function(t,e){t=h[t];v(A(t,n),a,e),null==t.name&&i&&(e=i[e],C(e)||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),o&&A(t.otherDims,o)})});for(var x=n.generateCoord,_=null!=(b=n.generateCoordCount),b=x?b||1:0,w=x||"value",S=0;S<d;S++)null==(m=h[S]=h[S]||{}).coordDim&&(m.coordDim=R(w,c,_),m.coordDimIndex=0,(!x||b<=0)&&(m.isExtraCoord=!0),b--),null==m.name&&(m.name=R(m.coordDim,u)),null==m.type&&k(e,S,m.name)&&(m.type="ordinal");return h}},function(t,e,n){var o=n(3),a=o.each,r="\0__link_datas",s="\0__link_mainData";function l(t,e){var n;return(n=this)[s]===n?d((n=o.extend({},this[r]))[this.dataType]=e,n,t):p(e,this.dataType,this[s],t),e}function u(t,e){return t.struct&&t.struct.update(this),e}function c(n,i){return a(i[r],function(t,e){t!==i&&p(t.cloneShallow(),e,i,n)}),i}function h(t){var e=this[s];return null==t||null==e?e:e[r][t]}function d(n,t,i){n[r]={},a(t,function(t,e){p(t,e,n,i)})}function p(t,e,n,i){(n[r][e]=t)[s]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=h}t.exports=function(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,d(i,t,n),a(t,function(e){a(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,o.curry(l,n))})}),i.wrapMethod("cloneShallow",o.curry(c,n)),a(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,o.curry(u,n))}),o.assert(t[i.dataType]===i)}},function(t,e,n){var i=n(221),i=(e.zrender=i,n(129)),i=(e.matrix=i,n(111)),o=(e.vector=i,n(3)),i=n(148),i=(e.color=i,n(48)),i=(e.graphic=i,n(61)),i=(e.number=i,n(116)),i=(e.format=i,n(165)),i=(i.throttle,e.throttle=i.throttle,n(759)),i=(e.helper=i,n(348)),a=(e.parseGeoJSON=i,n(133)),a=(e.List=a,n(122)),a=(e.Model=a,n(151)),a=(e.Axis=a,n(121)),n=(e.env=a,i),r={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){r[t]=o[t]}),e.parseGeoJson=n,e.util=r},function(t,e,n){n(79).__DEV__;var i=n(3),u=i.each,l=i.filter,c=i.map,h=i.isArray,d=i.indexOf,p=i.isObject,a=i.isString,o=i.createHashMap,f=i.assert,r=i.clone,g=i.merge,m=i.extend,i=i.mixin,y=n(77),s=n(122),v=n(120),x=n(763),_=n(356),b=n(209).resetSourceDefaulter,w="\0_ec_inner",n=s.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new s(n),this._optionManager=i},setOption:function(t,e){f(!(w in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e,n=!1,i=this._optionManager;return t&&"recreate"!==t||(e=i.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(e)):function(t){this.option={},this.option[w]=1,this._componentsMap=o({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(n,t){var i=n.color&&!n.colorLayer;u(t,function(t,e){"colorLayer"===e&&i||v.hasClass(e)||("object"==typeof t?n[e]=n[e]?g(n[e],t,!1):r(t):null==n[e]&&(n[e]=t))})}(t,this._theme.option),g(t,x,!1),this.mergeOption(t)}.call(this,e),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(e=i.getTimelineOption(this))&&(this.mergeOption(e),n=!0),t&&"recreate"!==t&&"media"!==t||(e=i.getMediaOption(this,this._api)).length&&u(e,function(t){this.mergeOption(t,n=!0)},this),n},mergeOption:function(n){var s=this.option,l=this._componentsMap,i=[];b(this),u(n,function(t,e){null!=t&&(v.hasClass(e)?e&&i.push(e):s[e]=null==s[e]?r(t):g(s[e],t,!0))}),v.topologicalTravel(i,v.getAllClassMainTypes(),function(a,t){var e=y.normalizeToArray(n[a]),e=y.mappingToExists(l.get(a),e),r=(y.makeIdAndName(e),u(e,function(t,e){var n,i=t.option;p(i)&&(t.keyInfo.mainType=a,t.keyInfo.subType=(n=a,i=i,t=t.exist,i.type||(t?t.subType:v.determineSubType(n,i))))}),function(e,t){h(t)||(t=t?[t]:[]);var n={};return u(t,function(t){n[t]=(e.get(t)||[]).slice()}),n}(l,t));s[a]=[],l.set(a,[]),u(e,function(t,e){var n,i=t.exist,o=t.option;f(p(o)||i,"Empty component definition"),o?(n=v.getClass(a,t.keyInfo.subType,!0),i&&i instanceof n?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(i=new n(o,this,this,n=m({dependentModels:r,componentIndex:e},t.keyInfo)),m(i,n),i.init(o,this,this,n),i.optionUpdated(null,!0))):(i.mergeOption({},this),i.optionUpdated({},!1)),l.get(a)[e]=i,s[a][e]=i.option},this),"series"===a&&S(this,l.get("series"))},this),this._seriesIndicesMap=o(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var i=r(this.option);return u(i,function(t,e){if(v.hasClass(e)){for(var n=(t=y.normalizeToArray(t)).length-1;0<=n;n--)y.isIdInner(t[n])&&t.splice(n,1);i[e]=t}}),delete i[w],i},getTheme:function(){return this._theme},getComponent:function(t,e){t=this._componentsMap.get(t);if(t)return t[e||0]},queryComponents:function(t){var e,n,i,o,a,r,s=t.mainType;return s&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(s))&&o.length?M(null!=e?(h(e)||(e=[e]),l(c(e,function(t){return o[t]}),function(t){return!!t})):null!=n?(a=h(n),l(o,function(t){return a&&0<=d(n,t.id)||!a&&t.id===n})):null!=i?(r=h(i),l(o,function(t){return r&&0<=d(i,t.name)||!r&&t.name===i})):o.slice(),t):[]},findComponents:function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",a=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[a]&&null==n[e]?null:{mainType:i,index:n[o],id:n[a],name:n[e]}),a=o?this.queryComponents(o):this._componentsMap.get(i);return n=M(a,t),t.filter?l(n,t.filter):n},eachComponent:function(t,i,o){var e=this._componentsMap;"function"==typeof t?(o=i,i=t,e.each(function(t,n){u(t,function(t,e){i.call(o,n,t,e)})})):a(t)?u(e.get(t),i,o):p(t)&&(e=this.findComponents(t),u(e,i,o))},getSeriesByName:function(e){var t=this._componentsMap.get("series");return l(t,function(t){return t.name===e})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return l(t,function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(n,i){u(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},eachRawSeries:function(t,e){u(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(n,i,o){u(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},eachRawSeriesByType:function(t,e,n){return u(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){t=l(this._componentsMap.get("series"),t,e);S(this,t)},restoreData:function(n){var i=this._componentsMap,o=(S(this,i.get("series")),[]);i.each(function(t,e){o.push(e)}),v.topologicalTravel(o,v.getAllClassMainTypes(),function(e,t){u(i.get(e),function(t){"series"===e&&function(t,e){{var n,i;if(e)return n=e.seiresIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})}});function S(t,e){t._seriesIndicesMap=o(t._seriesIndices=c(e,function(t){return t.componentIndex})||[])}function M(t,e){return e.hasOwnProperty("subType")?l(t,function(t){return t.subType===e.subType}):t}i(n,_),t.exports=n},function(t,e,n){var n=n(77),i=n.makeInner,s=n.normalizeToArray,l=i();t.exports={clearColorPalette:function(){l(this).colorIdx=0,l(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i,o,e=l(e=e||this),a=e.colorIdx||0,r=e.colorNameMap=e.colorNameMap||{};return r.hasOwnProperty(t)?r[t]:(i=s(this.get("color",!0)),o=this.get("colorLayer",!0),(o=(o=null!=n&&o?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(o,n):i)||i)&&o.length?(n=o[a],t&&(r[t]=n),e.colorIdx=(a+1)%o.length,n):void 0)}}},function(t,e,n){n(79).__DEV__;var n=n(3),i=n.createHashMap,l=(n.retrieve,n.each);var o={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis")[0],t=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),u(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),u(t)&&(i.set("y",t),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",t),u(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar")[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),u(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),u(t)&&(i.set("angle",t),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,a){var r=t.ecModel,t=r.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();l(t.parallelAxisIndex,function(t,e){var t=r.getComponent("parallelAxis",t),n=s[e];o.set(n,t),u(t)&&null==i.firstCategoryDimIndex&&(a.set(n,t),i.firstCategoryDimIndex=e)})}};function u(t){return"category"===t.get("type")}e.getCoordSysDefineBySeries=function(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:i(),categoryAxisMap:i()};if(e=o[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}},function(t,e,n){var r=n(61),s=r.round;function l(t){return r.getPrecisionSafe(t)+2}function i(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){isFinite(t[0])||(t[0]=e[0]),isFinite(t[1])||(t[1]=e[1]),i(t,0,e),i(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,n,i){var o={},a=t[1]-t[0],a=o.interval=r.nice(a/e,!0),e=(null!=n&&a<n&&(a=o.interval=n),null!=i&&i<a&&(a=o.interval=i),o.intervalPrecision=l(a));return u(o.niceTickExtent=[s(Math.ceil(t[0]/a)*a,e),s(Math.floor(t[1]/a)*a,e)],t),o},e.getIntervalPrecision=l,e.fixExtent=u,e.intervalScaleGetTicks=function(t,e,n,i){var o=[];if(t){e[0]<n[0]&&o.push(e[0]);for(var a=n[0];a<=n[1]&&(o.push(a),(a=s(a+t,i))!==o[o.length-1]);)if(1e4<o.length)return[];e[1]>(o.length?o[o.length-1]:n[1])&&o.push(e[1])}return o}},function(t,e,n){var h=n(3);t.exports=function(){var c=[],e=[];return{key:function(t){return c.push(t),this},sortKeys:function(t){return e[c.length-1]=t,this},entries:function(t){return function n(t,i){var o,a;return c.length<=i?t:(o=[],a=e[i++],h.each(t,function(t,e){o.push({key:e,values:n(t,i)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o)}(function n(t,i){if(c.length<=i)return t;for(var e=-1,o=t.length,a=c[i++],r={},s={};++e<o;){var l=a(t[e]),u=s[l];u?u.push(t[e]):s[l]=[t[e]]}return h.each(s,function(t,e){r[e]=n(t,i)}),r}(t,0),0)}}}},function(t,e,n){var i=n(3),o={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]}};t.exports={get:function(t,e,n){t=i.clone((o[t]||{})[e]);return n&&i.isArray(t)?t[t.length-1]:t}}},function(t,e){var n,i,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}function r(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}var s,l=[],u=!1,c=-1;function h(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length)&&d()}function d(){if(!u){for(var t=r(h),e=(u=!0,l.length);e;){for(s=l,l=[];++c<e;)s&&s[c].run();c=-1,e=l.length}s=null,u=!1,!function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return(i=clearTimeout)(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||r(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.prependListener=f,t.prependOnceListener=f,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,n){function i(t){r.call(this,t),a.call(this,t),s.call(this,t),this.id=t.id||o()}var o=n(371),a=n(174),r=n(280),s=n(944),l=n(3);i.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){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]))[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){var n;"position"===t||"scale"===t||"origin"===t?e&&((n=(n=this[t])||(this[t]=[]))[0]=e[0],n[1]=e[1]):this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(l.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),(this.clipPath=t).__zr=e,(t.__clipTarget=this).dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},l.mixin(i,s),l.mixin(i,r),l.mixin(i,a),t.exports=i},function(t,e,n){var k=n(923),O=n(148),E=n(3).isArrayLike,l=Array.prototype.slice;function o(t,e){return t[e]}function a(t,e,n){t[e]=n}function R(t,e,n){return(e-t)*n+t}function N(t,e,n,i,o){var a=t.length;if(1==o)for(var r=0;r<a;r++)i[r]=R(t[r],e[r],n);else for(var s=a&&t[0].length,r=0;r<a;r++)for(var l=0;l<s;l++)i[r][l]=R(t[r][l],e[r][l],n)}function z(t,e,n){var i=t.length,o=e.length;if(i!==o)if(o<i)t.length=o;else for(var a=i;a<o;a++)t.push(1===n?e[a]:l.call(e[a]));for(var r=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===n)isNaN(t[a])&&(t[a]=e[a]);else for(var s=0;s<r;s++)isNaN(t[a][s])&&(t[a][s]=e[a][s])}function V(t,e,n,i,o,a,r,s,l){var u=t.length;if(1==l)for(var c=0;c<u;c++)s[c]=B(t[c],e[c],n[c],i[c],o,a,r);else for(var h=t[0].length,c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=B(t[c][d],e[c][d],n[c][d],i[c][d],o,a,r)}function B(t,e,n,i,o,a,r){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*r+(-3*(e-n)-2*t-i)*a+t*o+e}function G(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function u(t,e,n,i,a,o){var r=t._getter,s=t._setter,l="spline"===e,u=i.length;if(u){for(var c,h=i[0].value,d=E(h),p=!1,f=!1,g=d?(h=(h=i)[h.length-1].value,E(h&&h[0])?2:1):0,m=(i.sort(function(t,e){return t.time-e.time}),c=i[u-1].time,[]),y=[],v=i[0].value,x=!0,_=0;_<u;_++){m.push(i[_].time/c);var b,w=i[_].value;d&&function(t,e,n){if(t===e)return 1;var i=t.length;if(i===e.length){if(1===n){for(var o=0;o<i;o++)if(t[o]!==e[o])return}else for(var a=t[0].length,o=0;o<i;o++)for(var r=0;r<a;r++)if(t[o][r]!==e[o][r])return;return 1}}(w,v,g)||!d&&w===v||(x=!1),"string"==typeof(v=w)&&((b=O.parse(w))?(w=b,p=!0):f=!0),y.push(w)}if(o||!x){for(var S=y[u-1],_=0;_<u-1;_++)d?z(y[_],S,g):!isNaN(y[_])||isNaN(S)||f||p||(y[_]=S);d&&z(r(t._target,a),S,g);var M,I,T,A,D,C,L=0,P=0,h=(p&&(C=[0,0,0,0]),new k({target:t._target,life:c,loop:t._loop,delay:t._delay,onframe:function(t,e){var n;if(e<0)n=0;else if(e<P){for(n=Math.min(L+1,u-1);0<=n&&!(m[n]<=e);n--);n=Math.min(n,u-2)}else{for(n=L;n<u&&!(e<m[n]);n++);n=Math.min(n-1,u-2)}P=e;var i,o=m[(L=n)+1]-m[n];if(0!=o)if(M=(e-m[n])/o,l)if(T=y[n],I=y[0===n?n:n-1],A=y[u-2<n?u-1:n+1],D=y[u-3<n?u-1:n+2],d)V(I,T,A,D,M,M*M,M*M*M,r(t,a),g);else{if(p)i=V(I,T,A,D,M,M*M,M*M*M,C,1),i=G(C);else{if(f)return.5<M?A:T;i=B(I,T,A,D,M,M*M,M*M*M)}s(t,a,i)}else if(d)N(y[n],y[n+1],M,r(t,a),g);else{if(p)N(y[n],y[n+1],M,C,1),i=G(C);else{if(f)return.5<M?y[n+1]:y[n];i=R(y[n],y[n+1],M)}s(t,a,i)}},ondestroy:n}));return e&&"spline"!==e&&(h.easing=e),h}}}function i(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||o,this._setter=i||a,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]}i.prototype={when:function(t,e){var n,i=this._tracks;for(n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var o=this._getter(this._target,n);if(null==o)continue;0!==t&&i[n].push({time:0,value:function(t){if(E(t)){var e=t.length;if(E(t[0])){for(var n=[],i=0;i<e;i++)n.push(l.call(t[i]));return n}return l.call(t)}return t}(o)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t,e){function n(){--l||s._doneCallback()}var i,o,a,r,s=this,l=0;for(o in this._tracks)this._tracks.hasOwnProperty(o)&&(a=u(this,t,n,this._tracks[o],o,e))&&(this._clipList.push(a),l++,this.animation&&this.animation.addClip(a),i=a);return i&&(r=i.onframe,i.onframe=function(t,e){r(t,e);for(var n=0;n<s._onframeList.length;n++)s._onframeList[n](t,e)}),l||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var o=e[i];t&&o.onframe(this._target,1),n&&n.removeClip(o)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},t.exports=i},function(t,e){var n="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=n},function(t,e){e.containStroke=function(t,e,n,i,o,a,r){var s;return 0!==o&&(s=0,!(e+(o=o)<r&&i+o<r||r<e-o&&r<i-o||t+o<a&&n+o<a||a<t-o&&a<n-o))&&(t===n?Math.abs(a-t)<=o/2:(a=(s=(e-i)/(t-n))*a-r+(t*i-n*e)/(t-n))*a/(s*s+1)<=o/2*o/2)}},function(t,e,n){var l=n(369),i=1e-8;function u(t,e){return Math.abs(t-e)<i}e.contain=function(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var a=1;a<t.length;a++){var r=t[a];i+=l(o[0],o[1],r[0],r[1],e,n),o=r}var s=t[0];return u(o[0],s[0])&&u(o[1],s[1])||(i+=l(o[0],o[1],s[0],s[1],e,n)),0!==i}},function(t,e,n){var u=n(152).quadraticProjectPoint;e.containStroke=function(t,e,n,i,o,a,r,s,l){return 0!==r&&!(e+(r=r)<l&&i+r<l&&a+r<l||l<e-r&&l<i-r&&l<a-r||t+r<s&&n+r<s&&o+r<s||s<t-r&&s<n-r&&s<o-r)&&u(t,e,n,i,o,a,s,l,null)<=r/2}},function(t,e){var n=2*Math.PI;e.normalizeRadian=function(t){return(t%=n)<0&&(t+=n),t}},function(t,e){t.exports=function(t,e,n,i,o,a){var r;return e<a&&i<a||a<e&&a<i||i===e?0:(r=i<e?1:-1,1!=(a=(a-e)/(i-e))&&0!=a||(r=i<e?.5:-.5),(i=a*(n-t)+t)===o?1/0:o<i?r:0)}},function(t,e){function n(){this.head=null,this.tail=null,this._len=0}function i(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null}var o=n.prototype,s=(o.insert=function(t){t=new s(t);return this.insertEntry(t),t},o.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},o.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},o.len=function(){return this._len},o.clear=function(){this.head=this.tail=null,this._len=0},function(t){this.value=t,this.next,this.prev}),o=i.prototype;o.put=function(t,e){var n,i,o=this._list,a=this._map,r=null;return null==a[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete a[i.key],r=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new s(e),n.key=t,o.insertEntry(n),a[t]=n),r},o.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}},t.exports=i},function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){function i(t,e,n,i,o,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,r.call(this,o)}var o=n(3),r=n(219);i.prototype={constructor:i},o.inherits(i,r),t.exports=i},function(t,e){function n(t,e){this.image=t,this.repeat=e,this.type="pattern"}n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")},t.exports=n},function(t,e,n){function i(t,e){this.extendFrom(t,!1),this.host=e}var u=n(376),c=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function r(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,r=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,r=r*n.height+n.y),i=isNaN(i)?0:i,o=isNaN(o)?1:o,a=isNaN(a)?0:a,r=isNaN(r)?0:r,t.createLinearGradient(i,a,o,r)}function s(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(r=r*i+n.x,s=s*o+n.y,l*=a),t.createRadialGradient(r,s,0,r,s,l)}for(var o=i.prototype={constructor:i,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){for(var i=this,o=n&&n.style,a=!o,r=0;r<c.length;r++){var s=c[r],l=s[0];!a&&i[l]===o[l]||(t[l]=u(t,l,i[l]||s[1]))}!a&&i.fill===o.fill||(t.fillStyle=i.fill),!a&&i.stroke===o.stroke||(t.strokeStyle=i.stroke),!a&&i.opacity===o.opacity||(t.globalAlpha=null==i.opacity?1:i.opacity),!a&&i.blend===o.blend||(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()&&(n=i.lineWidth,t.lineWidth=n/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1))},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&0<this.lineWidth},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=("radial"===e.type?s:r)(t,e,n),o=e.colorStops,a=0;a<o.length;a++)i.addColorStop(o[a].offset,o[a].color);return i}},a=0;a<c.length;a++){var l=c[a];l[0]in o||(o[l[0]]=l[1])}i.getGradient=o.getGradient,t.exports=i},function(t,e,n){var i=n(121),l=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=function(s){return i.browser.ie&&11<=i.browser.version?function(){var t,e=this.__clipPaths,n=this.style;if(e)for(var i=0;i<e.length;i++){var o=e[i],a=o&&o.shape,o=o&&o.type;if(a&&("sector"===o&&a.startAngle===a.endAngle||"rect"===o&&(!a.width||!a.height))){for(var r=0;r<l.length;r++)l[r][2]=n[l[r][0]],n[l[r][0]]=l[r][1];t=!0;break}}if(s.apply(this,arguments),t)for(r=0;r<l.length;r++)n[l[r][0]]=l[r][2]}:s}},function(t,e){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,e,n){return i.hasOwnProperty(e)?n*t.dpr:n}},function(t,e,n){var d=n(934),p=n(933);e.buildPath=function(t,e,n){var i=e.points,o=e.smooth;if(i&&2<=i.length){if(o&&"spline"!==o)for(var a=p(i,o,n,e.smoothConstraint),r=(t.moveTo(i[0][0],i[0][1]),i.length),s=0;s<(n?r:r-1);s++){var l=a[2*s],u=a[2*s+1],c=i[(s+1)%r];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}else{"spline"===o&&(i=d(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}},function(t,e){e.buildPath=function(t,e){var n,i,o,a,r,s=e.x,l=e.y,u=e.width,c=e.height,e=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof e?n=i=o=a=e:e instanceof Array?1===e.length?n=i=o=a=e[0]:2===e.length?(n=o=e[0],i=a=e[1]):3===e.length?(n=e[0],i=a=e[1],o=e[2]):(n=e[0],i=e[1],o=e[2],a=e[3]):n=i=o=a=0,u<n+i&&(n*=u/(r=n+i),i*=u/r),u<o+a&&(o*=u/(r=o+a),a*=u/r),c<i+o&&(i*=c/(r=i+o),o*=c/r),c<n+a&&(n*=c/(r=n+a),a*=c/r),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-o),0!==o&&t.arc(s+u-o,l+c-o,o,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},function(t,e,n){function i(){}var a=n(220),r=new(n(118));i.prototype={constructor:i,drawRectText:function(t,e){var n,i=this.style,o=(e=i.textRect||e,this.__dirty&&a.normalizeTextStyle(i,!0),i.text);null!=o&&(o+=""),a.needDrawText(o,i)&&(t.save(),n=this.transform,i.transformText?this.setTransform(t):n&&(r.copy(e),r.applyTransform(n),e=r),a.renderText(this,t,o,i,e),t.restore())}},t.exports=i},function(t,e,n){var i,n=n(121),o="urn:schemas-microsoft-com:vml",a="undefined"==typeof window?null:window,r=!1,s=a&&a.document;if(s&&!n.canvasSupported)try{s.namespaces.zrvml||s.namespaces.add("zrvml",o),i=function(t){return s.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){i=function(t){return s.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}e.doc=s,e.createNode=function(t){return i(t)},e.initVML=function(){var t;!r&&s&&(r=!0,((t=s.styleSheets).length<31?s.createStyleSheet():t[0]).addRule(".zrvml","behavior:url(#default#VML)"))}},,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=u(n(78)),o=u(n(23)),a=u(n(43)),r=u(n(40)),s=n(18),l=u(n(289));function u(t){return t&&t.__esModule?t:{default:t}}c=(0,a.default)(o.default.mark(function t(e){var n,i;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new s.HttpResetClass,0===l.default.gasbrands.length&&0===l.default.prices.length&&0===l.default.adjustables.length)return t.next=4,n.load("POST","api/af-revenue/logic/getSaleInitData",{data:{f_orgid:e||r.default.$login.f.orgid}},{resolveMsg:null,rejectMsg:"获取营收参数出错!!!"});t.next=8;break;case 4:(i=t.sent).data&&i.data.data?d.organizeData(i.data.data):i.data&&d.organizeData(i.data),t.next=15;break;case 8:return l.default.gasbrands=[],l.default.prices=[],l.default.adjustables=[],t.next=13,n.load("POST","api/af-revenue/logic/getSaleInitData",{data:{f_orgid:e||r.default.$login.f.orgid}},{resolveMsg:null,rejectMsg:"获取营收参数出错!!!"});case 13:(i=t.sent).data&&i.data.data?d.organizeData(i.data.data):i.data&&d.organizeData(i.data);case 15:case"end":return t.stop()}},t,this)}));var c,h=function(t){return c.apply(this,arguments)},d={install:function(t,e){t.MagLoadParams=t.prototype.$MagLoadParams=d},loadParam:function(e){var n=this;return(0,a.default)(o.default.mark(function t(){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h(e);case 2:case"end":return t.stop()}},t,n)}))()},organizeData:function(t){t.gasbrands.forEach(function(t,e){l.default.gasbrands[e]={},l.default.gasbrands[e].label=t.f_meter_brand;var n=[];Array.isArray(t.gasmodel)&&t.gasmodel.forEach(function(t,e){n[e]={},n[e].label=t.f_meter_style+t.f_type,n[e].value=t}),t.gasmodel=n,l.default.gasbrands[e].value=t}),t.adjustable.forEach(function(t,e){l.default.adjustables[e]={},l.default.adjustables[e].label=t.f_adjustable_name,l.default.adjustables[e].value=t}),l.default.prices=[].concat((0,i.default)(l.default.prices),(0,i.default)(t.price))}};e.default=d},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=function(){return this}()||Function("return this")(),o=i.regeneratorRuntime&&0<=Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime"),a=o&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=n(447),o)i.regeneratorRuntime=a;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}},function(A,t){!function(t){"use strict";var l,u,c,h,d,p,e,n=Object.prototype,f=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",r=i.toStringTag||"@@toStringTag",i="object"==typeof A,s=t.regeneratorRuntime;function g(t,e,n,i){var o,a,r,s,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),i=new M(i||[]);return e._invoke=(o=t,a=n,r=i,s=u,function(t,e){if(s===h)throw new Error("Generator is already running");if(s===d){if("throw"===t)throw e;return T()}for(r.method=t,r.arg=e;;){var n=r.delegate;if(n){n=function t(e,n){var i=e.iterator[n.method];if(i===l){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=l,t(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}i=m(i,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;i=i.arg;if(!i)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p;{if(!i.done)return i;n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=l)}n.delegate=null;return p}(n,r);if(n){if(n===p)continue;return n}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(s===u)throw s=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);s=h;n=m(o,a,r);if("normal"===n.type){if(s=r.done?d:c,n.arg!==p)return{value:n.arg,done:r.done}}else"throw"===n.type&&(s=d,r.method="throw",r.arg=n.arg)}}),e}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function y(){}function v(){}function x(){}function _(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function b(r){var e;this._invoke=function(n,i){function t(){return new Promise(function(t,e){!function e(t,n,i,o){t=m(r[t],r,n);if("throw"===t.type)o(t.arg);else{var a=t.arg;if((n=a.value)&&"object"==typeof n&&f.call(n,"__await"))return Promise.resolve(n.__await).then(function(t){e("next",t,i,o)},function(t){e("throw",t,i,o)});Promise.resolve(n).then(function(t){a.value=t,i(a)},o)}}(n,i,t,e)})}return e=e?e.then(t,t):t()}}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function I(e){if(e){var n,t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=l,t.done=!0,t}).next=t}return{next:T}}function T(){return{value:l,done:!0}}s?i&&(A.exports=s):((s=t.regeneratorRuntime=i?A.exports:{}).wrap=g,u="suspendedStart",c="suspendedYield",h="executing",d="completed",p={},(t={})[o]=function(){return this},i=(i=Object.getPrototypeOf)&&i(i(I([]))),i&&i!==n&&f.call(i,o)&&(t=i),e=x.prototype=y.prototype=Object.create(t),(v.prototype=e.constructor=x).constructor=v,x[r]=v.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(e),t},s.awrap=function(t){return{__await:t}},_(b.prototype),b.prototype[a]=function(){return this},s.AsyncIterator=b,s.async=function(t,e,n,i){var o=new b(g(t,e,n,i));return s.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(e),e[r]="Generator",e[o]=function(){return this},e.toString=function(){return"[object Generator]"},s.keys=function(n){var t,i=[];for(t in n)i.push(t);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},s.values=I,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=l)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function t(t,e){return a.type="throw",a.arg=n,i.next=t,e&&(i.method="next",i.arg=l),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var r=f.call(o,"catchLoc"),s=f.call(o,"finallyLoc");if(r&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(r){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&f.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,i,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(n=o.completion).type&&(i=n.arg,S(o)),i}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=l),p}})}(function(){return this}()||Function("return this")())},function(t,e,n){n(45),n(471),t.exports=n(4).Array.from},function(t,e,n){n(68),n(45),n(47),n(473),n(475),n(476),t.exports=n(4).Promise},function(t,e,n){n(68),n(45),n(47),n(474),n(479),n(478),n(477),t.exports=n(4).Set},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(184);t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},function(t,e,n){var l=n(8),u=n(202),c=n(469);t.exports=function(s){return function(t,e,n){var i,o=l(t),a=u(o.length),r=c(n,a);if(s&&e!=e){for(;r<a;)if((i=o[r++])!=i)return!0}else for(;r<a;r++)if((s||r in o)&&o[r]===e)return s||r||0;return!s&&-1}}},function(t,e,n){var x=n(149),_=n(291),b=n(55),w=n(202),i=n(456);t.exports=function(h,t){var d=1==h,p=2==h,f=3==h,g=4==h,m=6==h,y=5==h||m,v=t||i;return function(t,e,n){for(var i,o,a=b(t),r=_(a),s=x(e,n,3),l=w(r.length),u=0,c=d?v(t,l):p?v(t,0):void 0;u<l;u++)if((y||u in r)&&(o=s(i=r[u],u,a),h))if(d)c[u]=o;else if(o)switch(h){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(g)return!1;return m?-1:f||g?g:c}}},function(t,e,n){var i=n(59),o=n(72),a=n(22)("species");t.exports=function(t){var e;return void 0===(e=o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),i(e))&&null===(e=e[a])?void 0:e)?Array:e}},function(t,e,n){var i=n(455);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){"use strict";function r(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n}var s=n(24).f,l=n(66),u=n(235),c=n(149),h=n(229),d=n(184),i=n(233),o=n(295),a=n(298),p=n(25),f=n(65).fastKey,g=n(301),m=p?"_s":"size";t.exports={getConstructor:function(t,o,n,i){var a=t(function(t,e){h(t,a,o,"_i"),t._t=o,t._i=l(null),t._f=void 0,t._l=void 0,t[m]=0,null!=e&&d(e,n,t[i],t)});return u(a.prototype,{clear:function(){for(var t=g(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var e,n,i=g(this,o),t=r(i,t);return t&&(e=t.n,n=t.p,delete i._i[t.i],t.r=!0,n&&(n.n=e),e&&(e.p=n),i._f==t&&(i._f=e),i._l==t&&(i._l=n),i[m]--),!!t},forEach:function(t){g(this,o);for(var e,n=c(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!r(g(this,o),t)}}),p&&s(a.prototype,"size",{get:function(){return g(this,o)[m]}}),a},def:function(t,e,n){var i,o=r(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:r,setStrong:function(t,n,e){i(t,n,function(t,e){this._t=g(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?o(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,o(1))},e?"entries":"values",!e,!0),a(n)}}},function(t,e,n){var i=n(230),o=n(452);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,n){"use strict";var h=n(20),d=n(50),p=n(65),f=n(52),g=n(60),m=n(235),y=n(184),v=n(229),x=n(59),_=n(62),b=n(24).f,w=n(454)(0),S=n(25);t.exports=function(n,t,e,i,o,a){var r=h[n],s=r,l=o?"set":"add",u=s&&s.prototype,c={};return S&&"function"==typeof s&&(a||u.forEach&&!f(function(){(new s).entries().next()}))?(s=t(function(t,e){v(t,s,n,"_c"),t._c=new r,null!=e&&y(e,o,t[l],t)}),w("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(n){var i="add"==n||"set"==n;n in u&&(!a||"clear"!=n)&&g(s.prototype,n,function(t,e){return v(this,s,n),i||!a||x(t)?(t=this._c[n](0===t?0:t,e),i?this:t):"get"==n&&void 0})}),a||b(s.prototype,"size",{get:function(){return this._c.size}})):(s=i.getConstructor(t,n,o,l),m(s.prototype,e),p.NEED=!0),_(s,n),c[n]=s,d(d.G+d.W+d.F,c),a||i.setStrong(s,n,o),s}},function(t,e,n){"use strict";var i=n(24),o=n(28);t.exports=function(t,e,n){e in t?i.f(t,e,o(0,n)):t[e]=n}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var i=n(66),o=n(28),a=n(62),r={};n(60)(r,n(22)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(r,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var s=n(20),l=n(300).set,u=s.MutationObserver||s.WebKitMutationObserver,c=s.process,h=s.Promise,d="process"==n(183)(c);t.exports=function(){function t(){var t,e;for(d&&(t=c.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?o():i=void 0,t}}i=void 0,t&&t.enter()}var n,i,e,o,a,r;return o=d?function(){c.nextTick(t)}:!u||s.navigator&&s.navigator.standalone?h&&h.resolve?(e=h.resolve(void 0),function(){e.then(t)}):function(){l.call(s,t)}:(a=!0,r=document.createTextNode(""),new u(t).observe(r,{characterData:!0}),function(){r.data=a=!a}),function(t){t={fn:t,next:void 0};i&&(i.next=t),n||(n=t,o()),i=t}}},function(t,e,n){var r=n(24),s=n(42),l=n(19);t.exports=n(25)?Object.defineProperties:function(t,e){s(t);for(var n,i=l(e),o=i.length,a=0;a<o;)r.f(t,n=i[a++],e[n]);return t}},function(t,e,n){var i=n(26),o=n(55),a=n(236)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,n){"use strict";var i=n(50),r=n(182),s=n(149),l=n(184);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,o,a=arguments[1];return r(this),(e=void 0!==a)&&r(a),null==t?new this:(n=[],e?(i=0,o=s(a,arguments[2],2),l(t,!1,function(t){n.push(o(t,i++))})):l(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var i=n(50);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var a=n(237),r=n(231);t.exports=function(o){return function(t,e){var n,t=String(r(t)),e=a(e),i=t.length;return e<0||i<=e?o?"":void 0:(n=t.charCodeAt(e))<55296||56319<n||e+1===i||(i=t.charCodeAt(e+1))<56320||57343<i?o?t.charAt(e):n:o?t.slice(e,e+2):i-56320+(n-55296<<10)+65536}}},function(t,e,n){var i=n(237),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){n=n(20).navigator;t.exports=n&&n.userAgent||""},function(t,e,n){"use strict";var h=n(149),i=n(50),d=n(55),p=n(293),f=n(292),g=n(202),m=n(460),y=n(80);i(i.S+i.F*!n(294)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,o,a=d(t),t="function"==typeof this?this:Array,r=arguments.length,s=1<r?arguments[1]:void 0,l=void 0!==s,u=0,c=y(a);if(l&&(s=h(s,2<r?arguments[2]:void 0,2)),null==c||t==Array&&f(c))for(n=new t(e=g(a.length));u<e;u++)m(n,u,l?s(a[u],u):a[u]);else for(o=c.call(a),n=new t;!(i=o.next()).done;u++)m(n,u,l?p(o,s,[i.value,u],!0):i.value);return n.length=u,n}})},function(t,e,n){"use strict";var i=n(451),o=n(295),a=n(185),r=n(8);t.exports=n(233)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(R,N,n){"use strict";function i(){}var e,o,a,r,s=n(27),d=n(20),l=n(149),t=n(230),u=n(50),c=n(59),h=n(182),p=n(229),f=n(184),g=n(299),m=n(300).set,y=n(463)(),v=n(234),x=n(296),_=n(470),b=n(297),w="Promise",S=d.TypeError,M=d.process,I=M&&M.versions,T=I&&I.v8||"",A=d[w],D="process"==t(M),C=o=v.f,I=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(22)("species")]=function(t){t(i,i)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(i)instanceof e&&0!==T.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},P=function(h,n){var i;h._n||(h._n=!0,i=h._c,y(function(){for(var o,u=h._v,c=1==h._s,t=0,e=function(t){var e,n,i,o,a=c?t.ok:t.fail,r=t.resolve,s=t.reject,l=t.domain;try{a?(c||(2==h._h&&(o=h,m.call(d,function(){var t;D?M.emit("rejectionHandled",o):(t=d.onrejectionhandled)&&t({promise:o,reason:o._v})})),h._h=1),!0===a?e=u:(l&&l.enter(),e=a(u),l&&(l.exit(),i=!0)),e===t.promise?s(S("Promise-chain cycle")):(n=L(e))?n.call(e,r,s):r(e)):s(u)}catch(t){l&&!i&&l.exit(),s(t)}};i.length>t;)e(i[t++]);h._c=[],h._n=!1,n&&!h._h&&(o=h,m.call(d,function(){var t,e,n=o._v,i=k(o);if(i&&(t=x(function(){D?M.emit("unhandledRejection",n,o):(e=d.onunhandledrejection)?e({promise:o,reason:n}):(e=d.console)&&e.error&&e.error("Unhandled promise rejection",n)}),o._h=D||k(o)?2:1),o._a=void 0,i&&t.e)throw t.v}))}))},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},O=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},E=function(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(n=L(t))?y(function(){var e={_w:i,_d:!1};try{n.call(t,l(E,e,1),l(O,e,1))}catch(t){O.call(e,t)}}):(i._v=t,i._s=1,P(i,!1))}catch(t){O.call({_w:i,_d:!1},t)}}};I||(A=function(t){p(this,A,w,"_h"),h(t),e.call(this);try{t(l(E,this,1),l(O,this,1))}catch(t){O.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(235)(A.prototype,{then:function(t,e){var n=C(g(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=D?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new e;this.promise=t,this.resolve=l(E,t,1),this.reject=l(O,t,1)},v.f=C=function(t){return t===A||t===r?new a:o(t)}),u(u.G+u.W+u.F*!I,{Promise:A}),n(62)(A,w),n(298)(w),r=n(4)[w],u(u.S+u.F*!I,w,{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(s||!I),w,{resolve:function(t){return b(s&&this===r?A:this,t)}}),u(u.S+u.F*!(I&&n(294)(function(t){A.all(t).catch(i)})),w,{all:function(t){var r=this,e=C(r),s=e.resolve,l=e.reject,n=x(function(){var i=[],o=0,a=1;f(t,!1,function(t){var e=o++,n=!1;i.push(void 0),a++,r.resolve(t).then(function(t){n||(n=!0,i[e]=t,--a)||s(i)},l)}),--a||s(i)});return n.e&&l(n.v),e.promise},race:function(t){var e=this,n=C(e),i=n.reject,o=x(function(){f(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},function(t,e,n){"use strict";var i=n(457),o=n(301);t.exports=n(459)("Set",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{add:function(t){return i.def(o(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i=n(50),o=n(4),a=n(20),r=n(299),s=n(297);i(i.P+i.R,"Promise",{finally:function(e){var n=r(this,o.Promise||a.Promise),t="function"==typeof e;return this.then(t?function(t){return s(n,e()).then(function(){return t})}:e,t?function(t){return s(n,e()).then(function(){throw t})}:e)}})},function(t,e,n){"use strict";var i=n(50),o=n(234),a=n(296);i(i.S,"Promise",{try:function(t){var e=o.f(this),t=a(t);return(t.e?e.reject:e.resolve)(t.v),e.promise}})},function(t,e,n){n(466)("Set")},function(t,e,n){n(467)("Set")},function(t,e,n){var i=n(50);i(i.P+i.R,"Set",{toJSON:n(458)("Set")})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(17),o=n(3),a=n(210),r=a.layout,a=a.largeLayout;n(251),n(523),n(524),n(190),i.registerLayout(o.curry(r,"bar")),i.registerLayout(a),i.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},function(t,e,n){n=n(306).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t}});t.exports=n},function(t,e,n){n(79).__DEV__;var i=n(17),h=n(3),d=n(48),p=n(307).setLabel,o=n(122),a=n(527),n=n(119),r=["itemStyle","barBorderWidth"],o=(h.extend(o.prototype,a),i.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){t=t.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(o,t,e){var a,r=this.group,s=o.getData(),l=this._data,u=o.coordinateSystem,n=u.getBaseAxis(),c=("cartesian2d"===u.type?a=n.isHorizontal():"polar"===u.type&&(a="angle"===n.dim),o.isAnimationEnabled()?o:null);s.diff(l).add(function(t){var e,n,i;s.hasValue(t)&&(e=s.getItemModel(t),n=y[u.type](s,t,e),i=f[u.type](s,t,e,n,a,c),s.setItemGraphicEl(t,i),r.add(i),v(i,s,t,e,n,o,a,"polar"===u.type))}).update(function(t,e){var n,i,e=l.getItemGraphicEl(e);s.hasValue(t)?(n=s.getItemModel(t),i=y[u.type](s,t,n),e?d.updateProps(e,{shape:i},c,t):e=f[u.type](s,t,n,i,a,c,!0),s.setItemGraphicEl(t,e),r.add(e),v(e,s,t,n,i,o,a,"polar"===u.type)):r.remove(e)}).remove(function(t){var e=l.getItemGraphicEl(t);"cartesian2d"===u.type?e&&g(t,c,e):e&&m(t,c,e)}).execute(),this._data=s},_renderLarge:function(t,e,n){this._clear(),l(t,this.group)},_incrementalRenderLarge:function(t,e){l(e,this.group,!0)},dispose:h.noop,remove:function(t){this._clear(t)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(t){("sector"===t.type?m:g)(t.dataIndex,e,t)}):t.removeAll(),this._data=null}})),f={cartesian2d:function(t,e,n,i,o,a,r){var s,l=new d.Rect({shape:h.extend({},i)});return a&&(s={},l.shape[o=o?"height":"width"]=0,s[o]=i[o],d[r?"updateProps":"initProps"](l,{shape:s},a,e)),l},polar:function(t,e,n,i,o,a,r){var s,l,u=i.startAngle<i.endAngle,u=new d.Sector({shape:h.defaults({clockwise:u},i)});return a&&(l={},u.shape[s=o?"r":"endAngle"]=o?0:i.startAngle,l[s]=i[s],d[r?"updateProps":"initProps"](u,{shape:l},a,e)),u}};function g(t,e,n){n.style.text=null,d.updateProps(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function m(t,e,n){n.style.text=null,d.updateProps(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}var y={cartesian2d:function(t,e,n){var t=t.getItemLayout(e),e=function(t,e){t=t.get(r)||0;return Math.min(t,Math.abs(e.width),Math.abs(e.height))}(n,t),n=0<t.width?1:-1,i=0<t.height?1:-1;return{x:t.x+n*e/2,y:t.y+i*e/2,width:t.width-n*e,height:t.height-i*e}},polar:function(t,e,n){t=t.getItemLayout(e);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle}}};function v(t,e,n,i,o,a,r,s){var l=e.getItemVisual(n,"color"),e=e.getItemVisual(n,"opacity"),u=i.getModel("itemStyle"),c=i.getModel("emphasis.itemStyle").getBarItemStyle(),e=(s||t.setShape("r",u.get("barBorderRadius")||0),t.useStyle(h.defaults({fill:l,opacity:e},u.getBarItemStyle())),i.getShallow("cursor")),u=(e&&t.attr("cursor",e),r?0<o.height?"bottom":"top":0<o.width?"left":"right");s||p(t.style,c,i,l,a,n,u),d.setHoverStyle(t,c)}var s=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,o=this.__valueIdx,a=0;a<n.length;a+=2)i[this.__valueIdx]=n[a+o],t.moveTo(i[0],i[1]),t.lineTo(n[a],n[a+1])}});function l(t,e,n){var i=t.getData(),o=[],a=i.getLayout("valueAxisHorizontal")?1:0,n=(o[1-a]=i.getLayout("valueAxisStart"),new s({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:o,__valueIdx:a}));e.add(n),o=n,a=t,n=(e=i).getVisual("borderColor")||e.getVisual("color"),a=a.getModel("itemStyle").getItemStyle(["color","borderColor"]),o.useStyle(a),o.style.fill=null,o.style.stroke=n,o.style.lineWidth=e.getLayout("barWidth")}t.exports=o},function(t,e,n){var i=n(306).extend({type:"series.pictorialBar",dependencies:["grid"],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%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}});t.exports=i},function(t,e,n){var i=n(17),S=n(3),p=n(48),o=n(134).createSymbol,a=n(61),M=a.parsePercent,I=a.isNumeric,h=n(307).setLabel,T=["itemStyle","borderWidth"],r=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],A=new p.Circle,a=i.extendChartView({type:"pictorialBar",render:function(t,e,n){var u=this.group,c=t.getData(),h=this._data,i=t.coordinateSystem,o=!!i.getBaseAxis().isHorizontal(),a=i.grid.getRect(),d={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:i,coordSysExtent:[[a.x,a.x+a.width],[a.y,a.y+a.height]],isHorizontal:o,valueDim:r[+o],categoryDim:r[1-o]};return c.diff(h).add(function(t){var e,n;c.hasValue(t)&&(e=_(c,t),e=f(c,t,e,d),n=w(c,d,e),c.setItemGraphicEl(t,n),u.add(n),O(n,d,e))}).update(function(t,e){var n,i,o,a,r,s,l,e=h.getItemGraphicEl(e);c.hasValue(t)?(n=_(c,t),n=f(c,t,n,d),i=L(c,n),e&&i!==e.__pictorialShapeStr&&(u.remove(e),c.setItemGraphicEl(t,null),e=null),e?(i=e,o=d,r=(a=n).animationModel,s=a.dataIndex,l=i.__pictorialBundle,p.updateProps(l,{position:a.bundlePosition.slice()},r,s),(a.symbolRepeat?g:m)(i,o,a,!0),v(i,a,!0),x(i,o,a,!0)):e=w(c,d,n,!0),c.setItemGraphicEl(t,e),e.__pictorialSymbolMeta=n,u.add(e),O(e,d,n)):u.remove(e)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&C(h,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=c,this.group},dispose:S.noop,remove:function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){C(i,t.dataIndex,e,t)}):n.removeAll()}});function f(t,e,n,i){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),r=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),r={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverAnimation:c&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0},c=n,h=a,d=o,p=i,f=r,g=p.valueDim,c=c.get("symbolBoundingData"),m=p.coordSys.getOtherAxis(p.coordSys.getBaseAxis()),y=m.toGlobalCoord(m.dataToCoord(0)),v=1-(d[g.wh]<=0),m=(x=S.isArray(c)?((x=[D(m,c[0])-y,D(m,c[1])-y])[1]<x[0]&&x.reverse(),x[v]):null!=c?D(m,c)-y:h?p.coordSysExtent[g.index][v]-y:d[g.wh],f.boundingLength=x,h&&(f.repeatCutLength=d[g.wh]),f.pxSign=0<x?1:x<0?-1:0,t),c=e,p=o,v=a,y=r.boundingLength,h=r.pxSign,d=u,g=i,f=r,x=g.valueDim,t=g.categoryDim,p=Math.abs(p[t.wh]),m=m.getItemVisual(c,"symbolSize"),e=((m=S.isArray(m)?m.slice():[m=null==m?"100%":m,m])[t.index]=M(m[t.index],p),m[x.index]=M(m[x.index],v?p:Math.abs(y)),f.symbolSize=m,(f.symbolScale=[m[0]/d,m[1]/d])[x.index]*=(g.isHorizontal?-1:1)*h,n),u=r.symbolScale,c=l,t=i,v=r,p=((e=e.get(T)||0)&&(A.attr({scale:u.slice(),rotation:c}),A.updateTransform(),e=(e/=A.getLineScale())*u[t.valueDim.index]),v.valueLineWidth=e,r.symbolSize),y=n.get("symbolOffset"),f=(S.isArray(y)&&(y=[M(y[0],p[0]),M(y[1],p[1])]),n),m=p,d=o,g=a,h=y,l=s,c=r.valueLineWidth,u=r.boundingLength,t=r.repeatCutLength,v=i,e=r,n=v.categoryDim,p=v.valueDim,o=e.pxSign,a=c=Math.max(m[p.index]+c,0),_=(g&&(_=Math.abs(u),f=S.retrieve(f.get("symbolMargin"),"15%")+"",b=!1,f.lastIndexOf("!")===f.length-1&&(b=!0,f=f.slice(0,f.length-1)),f=M(f,m[p.index]),m=Math.max(c+2*f,0),y=b?0:2*f,w=I(g),s=w?g:E((_+y)/m),m=c+2*(f=(_-s*c)/2/(b?s:s-1)),y=b?0:2*f,w||"fixed"===g||(s=t?E((Math.abs(t)+y)/m):0),a=s*m-y,e.repeatTimes=s,e.symbolMargin=f),o*(a/2)),b=((c=e.pathPosition=[])[n.index]=d[n.wh]/2,c[p.index]="start"===l?_:"end"===l?u-_:u/2,h&&(c[0]+=h[0],c[1]+=h[1]),e.bundlePosition=[]),w=(b[n.index]=d[n.xy],b[p.index]=d[p.xy],e.barRectShape=S.extend({},d));return w[p.wh]=o*Math.max(Math.abs(d[p.wh]),Math.abs(c[p.index]+_)),w[n.wh]=d[n.wh],(g=e.clipShape={})[n.xy]=-d[n.xy],g[n.wh]=v.ecSize[n.wh],g[p.xy]=0,g[p.wh]=d[p.wh],r}function D(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function y(t){var e=t.symbolPatternSize,e=o(t.symbolType,-e/2,-e/2,e,e,t.color);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function g(t,e,o,n){var i=t.__pictorialBundle,a=o.symbolSize,r=o.valueLineWidth,s=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,c=0,h=a[e.valueDim.index]+r+2*o.symbolMargin;for(P(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?k(t,null,f(c),o,n):k(t,null,{scale:[0,0]},o,n,function(){i.remove(t)}),b(t,o),c++});c<u;c++){var d=y(o),p=(d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d),f(c));k(d,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},o,n),d.on("mouseover",g).on("mouseout",m),b(d,o)}function f(t){var e=s.slice(),n=o.pxSign,i=t;return("start"===o.symbolRepeatDirection?0<n:n<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{position:e,scale:o.symbolScale.slice(),rotation:o.rotation}}function g(){P(t,function(t){t.trigger("emphasis")})}function m(){P(t,function(t){t.trigger("normal")})}}function m(t,e,n,i){var o=t.__pictorialBundle,a=t.__pictorialMainPath;a?k(a,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(a=t.__pictorialMainPath=y(n),o.add(a),k(a,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),a.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),b(a,n)}function v(t,e,n){var i=S.extend({},e.barRectShape),o=t.__pictorialBarRect;o?k(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new p.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function x(t,e,n,i){var o,a,r,s;n.symbolClip&&(o=t.__pictorialClipPath,s=S.extend({},n.clipShape),e=e.valueDim,a=n.animationModel,r=n.dataIndex,o?p.updateProps(o,{shape:s},a,r):(s[e.wh]=0,o=new p.Rect({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o,(s={})[e.wh]=n.clipShape[e.wh],p[i?"updateProps":"initProps"](o,{shape:s},a,r)))}function _(t,e){t=t.getItemModel(e);return t.getAnimationDelayParams=s,t.isAnimationEnabled=l,t}function s(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function l(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function b(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function w(t,e,n,i){var o=new p.Group,a=new p.Group;return o.add(a),(o.__pictorialBundle=a).attr("position",n.bundlePosition.slice()),n.symbolRepeat?g(o,e,n):m(o,0,n),v(o,n,i),x(o,e,n,i),o.__pictorialShapeStr=L(t,n),o.__pictorialSymbolMeta=n,o}function C(t,e,n,i){var o=i.__pictorialBarRect,a=(o&&(o.style.text=null),[]);P(i,function(t){a.push(t)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),S.each(a,function(t){p.updateProps(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function L(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function P(e,n,i){S.each(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function k(t,e,n,i,o,a){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&p[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function O(t,e,n){var i=n.color,o=n.dataIndex,a=n.itemModel,r=a.getModel("itemStyle").getItemStyle(["color"]),s=a.getModel("emphasis.itemStyle").getItemStyle(),l=a.getShallow("cursor"),u=(P(t,function(t){t.setColor(i),t.setStyle(S.defaults({fill:i,opacity:n.opacity},r)),p.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=n.z2}),{}),c=e.valueDim.posDesc[+(0<n.boundingLength)],t=t.__pictorialBarRect;h(t.style,u,a,i,e.seriesModel,o,c),p.setHoverStyle(t,u)}function E(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}t.exports=a},function(t,e,n){var i=n(179)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e,t=i(this,t);return this.getBorderLineDash&&(e=this.getBorderLineDash())&&(t.lineDash=e),t}}},function(t,e,n){var i=n(17),o=(n(529),n(530),n(532)),n=n(531);i.registerVisual(o),i.registerLayout(n)},function(t,e,n){var i=n(3),o=n(123),n=n(313).seriesModelMixin,o=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(o,n,!0),t.exports=o},function(t,e,n){var l=n(3),i=n(144),r=n(48),n=n(119),s=["itemStyle"],u=["emphasis","itemStyle"],i=i.extend({type:"boxplot",render:function(t,e,n){var i=t.getData(),o=this.group,a=this._data,r=(this._data||o.removeAll(),"horizontal"===t.get("layout")?1:0);i.diff(a).add(function(t){var e;i.hasValue(t)&&(e=h(i.getItemLayout(t),i,t,r,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n,e=a.getItemGraphicEl(e);i.hasValue(t)?(n=i.getItemLayout(t),e?d(n,e,i,t):e=h(n,i,t,r),o.add(e),i.setItemGraphicEl(t,e)):o.remove(e)}).remove(function(t){t=a.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:l.noop}),c=n.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),t.lineTo(n[++i][0],n[i][1])}});function h(t,e,n,i,o){var a,r,s=t.ends,i=new c({shape:{points:o?(a=i,r=t,l.map(s,function(t){return(t=t.slice())[a]=r.initBaseline,t})):s}});return d(t,i,e,n,o),i}function d(t,e,n,i,o){var a=n.hostModel,o=((0,r[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,i),n.getItemModel(i)),t=o.getModel(s),a=n.getItemVisual(i,"color"),n=t.getItemStyle(["borderColor"]),i=(n.stroke=a,n.strokeNoScale=!0,e.useStyle(n),e.z2=100,o.getModel(u).getItemStyle());r.setHoverStyle(e,i)}t.exports=i},function(t,e,n){var p=n(3),f=n(61).parsePercent,g=p.each;t.exports=function(t){var i,o;i=[],o=[],t.eachSeriesByType("boxplot",function(t){var e=t.getBaseAxis(),n=p.indexOf(o,e);n<0&&(n=o.length,o[n]=e,i[n]={axis:e,seriesModels:[]}),i[n].seriesModels.push(t)}),g(i,function(_){var t,e,n,i,o,a,r,s,l,u,c,h,d=_.seriesModels;d.length&&(l=(t=_).axis,n=t.seriesModels,i=n.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],r=[],"category"===l.type?e=l.getBandWidth():(s=0,g(n,function(t){s=Math.max(s,t.getData().count())}),t=l.getExtent(),Math.abs(t[1]-t[0])),g(n,function(t){t=t.get("boxWidth");p.isArray(t)||(t=[t,t]),r.push([f(t[0],e)||0,f(t[1],e)||0])}),u=(l=.8*e-2)/i*.3,h=(c=(l-u*(i-1))/i)/2-l/2,g(n,function(t,e){a.push(h),h+=u+c,o.push(Math.min(Math.max(c,r[e][0]),r[e][1]))}),g(d,function(t,e){var o=_.boxOffsetList[e],e=_.boxWidthList[e],a=t.coordinateSystem,r=t.getData(),s=e/2,l="horizontal"===t.get("layout")?0:1,u=1-l,e=["x","y"],n=r.mapDimension(e[l]),i=r.mapDimension(e[u],!0);if(!(null==n||i.length<5))for(var c=0;c<r.count();c++){var h=r.get(n,c),d=y(h,i[2],c),p=y(h,i[0],c),f=y(h,i[1],c),g=y(h,i[3],c),h=y(h,i[4],c),m=[];v(m,f,0),v(m,g,1),m.push(p,f,h,g),x(m,p),x(m,h),x(m,d),r.setItemLayout(c,{initBaseline:d[u],ends:m})}function y(t,e,n){var i,e=r.get(e,n),n=[];return n[l]=t,n[u]=e,isNaN(t)||isNaN(e)?i=[NaN,NaN]:(i=a.dataToPoint(n))[l]+=o,i}function v(t,e,n){var i=e.slice(),e=e.slice();i[l]+=s,e[l]-=s,n?t.push(i,e):t.push(e,i)}function x(t,e){var n=e.slice(),e=e.slice();n[l]-=s,e[l]+=s,t.push(n,e)}}))})}},function(t,e){var a=["itemStyle","borderColor"];t.exports=function(i,t){var o=i.get("color");i.eachRawSeriesByType("boxplot",function(t){var e=o[t.seriesIndex%o.length],n=t.getData();n.setVisual({legendSymbol:"roundRect",color:t.get(a)||e}),i.isSeriesFiltered(t)||n.each(function(t){var e=n.getItemModel(t);n.setItemVisual(t,{color:e.get(a,!0)})})})}},function(t,e,n){var i=n(17),o=(n(534),n(535),n(538)),a=n(537),n=n(536);i.registerPreprocessor(o),i.registerVisual(a),i.registerLayout(n)},function(t,e,n){var i=n(3),o=n(123),n=n(313).seriesModelMixin,o=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:5e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){e=e.getItemLayout(t);return e&&n.rect(e.brushRect)}});i.mixin(o,n,!0),t.exports=o},function(t,e,n){var a=n(3),i=n(144),l=n(48),n=n(119),s=["itemStyle"],u=["emphasis","itemStyle"],c=["color","color0","borderColor","borderColor0"],i=i.extend({type:"candlestick",render:function(t,e,n){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){t=t.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(i){var o=i.getData(),a=this._data,r=this.group,s=o.getLayout("isSimpleBox");this._data||r.removeAll(),o.diff(a).add(function(t){var e,n;o.hasValue(t)&&(n=h(e=o.getItemLayout(t),0,!0),l.initProps(n,{shape:{points:e.ends}},i,t),d(n,o,t,s),r.add(n),o.setItemGraphicEl(t,n))}).update(function(t,e){var n,e=a.getItemGraphicEl(e);o.hasValue(t)?(n=o.getItemLayout(t),e?l.updateProps(e,{shape:{points:n.ends}},i,t):e=h(n),d(e,o,t,s),r.add(e),o.setItemGraphicEl(t,e)):r.remove(e)}).remove(function(t){t=a.getItemGraphicEl(t);t&&r.remove(t)}).execute(),this._data=o},_renderLarge:function(t){this._clear(),o(t,this.group)},_incrementalRenderNormal:function(t,e){for(var n,i=e.getData(),o=i.getLayout("isSimpleBox");null!=(n=t.next());){var a=h(i.getItemLayout(n));d(a,i,n,o),a.incremental=!0,this.group.add(a)}},_incrementalRenderLarge:function(t,e){o(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:a.noop}),r=n.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){e=e.points;this.__simpleBox?(t.moveTo(e[4][0],e[4][1]),t.lineTo(e[6][0],e[6][1])):(t.moveTo(e[0][0],e[0][1]),t.lineTo(e[1][0],e[1][1]),t.lineTo(e[2][0],e[2][1]),t.lineTo(e[3][0],e[3][1]),t.closePath(),t.moveTo(e[4][0],e[4][1]),t.lineTo(e[5][0],e[5][1]),t.moveTo(e[6][0],e[6][1]),t.lineTo(e[7][0],e[7][1]))}});function h(t,e,n){var i,o=t.ends;return new r({shape:{points:n?(i=t,a.map(o,function(t){return(t=t.slice())[1]=i.initBaseline,t})):o},z2:100})}function d(t,e,n,i){var o=e.getItemModel(n),a=o.getModel(s),r=e.getItemVisual(n,"color"),e=e.getItemVisual(n,"borderColor")||r,n=a.getItemStyle(c),a=(t.useStyle(n),t.style.strokeNoScale=!0,t.style.fill=r,t.style.stroke=e,t.__simpleBox=i,o.getModel(u).getItemStyle());l.setHoverStyle(t,a)}var p=n.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n,i=e.points,o=0;o<i.length;)this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3}});function o(t,e,n){var i=t.getData(),o=i.getLayout("largePoints"),a=new p({shape:{points:o},__sign:1}),o=(e.add(a),new p({shape:{points:o},__sign:-1}));e.add(o),f(1,a,t,i),f(-1,o,t,i),n&&(a.incremental=!0,o.incremental=!0)}function f(t,e,n,i){t=0<t?"P":"N",i=i.getVisual("borderColor"+t)||i.getVisual("color"+t),t=n.getModel(s).getItemStyle(c);e.useStyle(t),e.style.fill=null,e.style.stroke=i}t.exports=i},function(t,e,n){var S=n(48).subPixelOptimize,i=n(176),r=n(61).parsePercent,s=n(3).retrieve2,d="undefined"!=typeof Float32Array?Float32Array:Array,n={seriesType:"candlestick",plan:i(),reset:function(t){var e,n,m=t.coordinateSystem,i=t.getData(),y=(e=i,a="category"===(a=(o=t).getBaseAxis()).type?a.getBandWidth():(a=a.getExtent(),Math.abs(a[1]-a[0])/e.count()),e=r(s(o.get("barMaxWidth"),a),a),n=r(s(o.get("barMinWidth"),1),a),null!=(o=o.get("barWidth"))?r(o,a):Math.max(Math.min(a/2,e),n)),o=["x","y"],v=i.mapDimension(o[0]),a=i.mapDimension(o[1],!0),x=a[0],_=a[1],b=a[2],w=a[3];if(i.setLayout({candleWidth:y,isSimpleBox:y<=1.3}),!(null==v||a.length<4))return{progress:t.pipelineContext.large?function(t,e){var n,i=new d(5*t.count),o=0,a=[],r=[];for(;null!=(n=t.next());){var s=e.get(v,n),l=e.get(x,n),u=e.get(_,n),c=e.get(b,n),h=e.get(w,n);isNaN(s)||isNaN(c)||isNaN(h)?(i[o++]=NaN,o+=4):(i[o++]=M(e,n,l,u,_),a[0]=s,a[1]=c,n=m.dataToPoint(a,null,r),i[o++]=n?n[0]:NaN,i[o++]=n?n[1]:NaN,a[1]=h,n=m.dataToPoint(a,null,r),i[o++]=n?n[1]:NaN)}e.setLayout("largePoints",i)}:function(t,e){var n;for(;null!=(n=t.next());){var i=e.get(v,n),o=e.get(x,n),a=e.get(_,n),r=e.get(b,n),s=e.get(w,n),l=Math.min(o,a),u=Math.max(o,a),l=p(l,i),u=p(u,i),c=p(r,i),h=p(s,i),d=[];f(d,u,0),f(d,l,1),d.push(g(h),g(u),g(c),g(l)),e.setItemLayout(n,{sign:M(e,n,o,a,_),initBaseline:(a<o?u:l)[1],ends:d,brushRect:function(t,e,n){t=p(t,n),e=p(e,n);return t[0]-=y/2,e[0]-=y/2,{x:t[0],y:t[1],width:y,height:e[1]-t[1]}}(r,s,i)})}function p(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:m.dataToPoint(n)}function f(t,e,n){var i=e.slice(),e=e.slice();i[0]=S(i[0]+y/2,1,!1),e[0]=S(e[0]-y/2,1,!0),n?t.push(i,e):t.push(e,i)}function g(t){return t[0]=S(t[0],1),t}}}}};function M(t,e,n,i,o){n=!(i<n)&&(n<i||!(0<e)||t.get(o,e-1)<=i)?1:-1;return n}t.exports=n},function(t,e,n){var n=n(176),o=["itemStyle","borderColor"],s=["itemStyle","borderColor0"],l=["itemStyle","color"],u=["itemStyle","color0"],n={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.pipelineContext.large;if(n.setVisual({legendSymbol:"roundRect",colorP:a(1,t),colorN:a(-1,t),borderColorP:r(1,t),borderColorN:r(-1,t)}),!e.isSeriesFiltered(t))return!i&&{progress:function(t,e){var n;for(;null!=(n=t.next());){var i=e.getItemModel(n),o=e.getItemLayout(n).sign;e.setItemVisual(n,{color:a(o,i),borderColor:r(o,i)})}}};function a(t,e){return e.get(0<t?l:u)}function r(t,e){return e.get(0<t?o:s)}}};t.exports=n},function(t,e,n){var i=n(3);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,n){n(79).__DEV__;var i=n(17),x=n(3),_=n(48),v=n(242).getDefaultLabel,o=n(141),b=n(210).getLayoutOnAxis,w=n(162),a=n(731),r=n(738),s=n(756),l=n(749),n=n(726),S=["itemStyle"],M=["emphasis","itemStyle"],I=["label"],T=["emphasis","label"],u="e\0\0",A={cartesian2d:a,geo:r,singleAxis:s,polar:l,calendar:n};function D(t,e,n,i,o){null==n[t]||o||(e[t]=n[t],n[t]=i[t])}function c(o,a,e,n){var i,r,s,l,u,c,h,d=o.get("renderItem"),p=o.coordinateSystem,t={},f=(p&&(t=p.prepareCustoms?p.prepareCustoms():A[p.type](p)),x.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,e){return null==e&&(e=s),a.get(a.getDimension(t||0),e)},style:function(t,e){y(e=null==e?s:e);var n=l.getModel(S).getItemStyle(),i=(null!=h&&(n.fill=h),a.getItemVisual(e,"opacity"));return null!=i&&(n.opacity=i),_.setTextStyle(n,u,null,{autoColor:h,isRectText:!0}),n.text=u.getShallow("show")?x.retrieve2(o.getFormattedLabel(e,"normal"),v(a,e)):null,t&&x.extend(n,t),n},styleEmphasis:function(t,e){y(e=null==e?s:e);var n=l.getModel(M).getItemStyle();return _.setTextStyle(n,c,null,{isRectText:!0},!0),n.text=c.getShallow("show")?x.retrieve3(o.getFormattedLabel(e,"emphasis"),o.getFormattedLabel(e,"normal"),v(a,e)):null,t&&x.extend(n,t),n},visual:function(t,e){return null==e&&(e=s),a.getItemVisual(e,t)},barLayout:function(t){{var e;if(p.getBaseAxis)return e=p.getBaseAxis(),b(x.defaults({axis:e},t),n)}},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return _.getFont(t,e)}},t.api||{})),g={context:{},seriesId:o.id,seriesName:o.name,seriesIndex:o.seriesIndex,coordSys:t.coordSys,dataInsideLength:a.count(),encode:(i=o.getData(),r={},x.each(i.dimensions,function(t,e){var n,t=i.getDimensionInfo(t);t.isExtraCoord||(n=t.coordDim,(r[n]=r[n]||[])[t.coordDimIndex]=e)}),r)},m=!0;return function(t){return s=t,m=!0,d&&d(x.defaults({dataIndexInside:t,dataIndex:a.getRawIndex(t)},g),f)||{}};function y(t){null==t&&(t=s),m&&(l=a.getItemModel(t),u=l.getModel(I),c=l.getModel(T),h=a.getItemVisual(t,"color"),m=!1)}}function h(t,e,n,i,o,a){return(t=C(t,e,n,i,o,a))&&a.setItemGraphicEl(e,t),t}function C(t,e,n,i,o,a){var r=n.type;if(!t||r===t.__customGraphicType||"path"===r&&n.pathData===t.__customPathData||"image"===r&&n.style.image===t.__customImagePath||"text"===r&&n.style.text===t.__customText||(o.remove(t),t=null),null!=r){var s,l,u,c,h,d,p,f,g=!t;if(t||("path"===(l=(u=n).type)?(d=u.shape,(d=_.makePath(d.pathData,null,{x:d.x||0,y:d.y||0,width:d.width||0,height:d.height||0},"center")).__customPathData=u.pathData):"image"===l?(d=new _.Image({})).__customImagePath=u.style.image:"text"===l?(d=new _.Text({})).__customText=u.style.text:d=new _[l.charAt(0).toUpperCase()+l.slice(1)],d.__customGraphicType=l,d.name=u.name,t=d),s=t,l=e,u=i,c=g,d={},p=(g=n).style||{},g.shape&&(d.shape=x.clone(g.shape)),g.position&&(d.position=g.position.slice()),g.scale&&(d.scale=g.scale.slice()),g.origin&&(d.origin=g.origin.slice()),g.rotation&&(d.rotation=g.rotation),"image"===s.type&&g.style&&(h=d.style={},x.each(["x","y","width","height"],function(t){D(t,h,p,s.style,c)})),"text"===s.type&&g.style&&(h=d.style={},x.each(["x","y"],function(t){D(t,h,p,s.style,c)}),!p.hasOwnProperty("textFill")&&p.fill&&(p.textFill=p.fill),!p.hasOwnProperty("textStroke"))&&p.stroke&&(p.textStroke=p.stroke),"group"!==s.type&&(s.useStyle(p),c)&&(s.style.opacity=0,f=p.opacity,_.initProps(s,{style:{opacity:f=null==f?1:f}},u,l)),c?s.attr(d):_.updateProps(s,d,u,l),s.attr({z2:g.z2||0,silent:g.silent}),!1!==g.styleEmphasis&&_.setHoverStyle(s,g.styleEmphasis),"group"===r){var m=t.children()||[],y=n.children||[];if(n.diffChildrenByName)new w((f={oldChildren:m,newChildren:y,dataIndex:e,animatableModel:i,group:t,data:a}).oldChildren,f.newChildren,L,L,f).add(P).update(P).remove(k).execute();else{for(var v=0;v<y.length;v++)C(t.childAt(v),e,y[v],i,t,a);for(;v<m.length;v++)m[v]&&t.remove(m[v])}}return o.add(t),t}}function L(t,e){t=t&&t.name;return null!=t?t:u+e}function P(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null;C(null!=e?n.oldChildren[e]:null,n.dataIndex,t,n.animatableModel,n.group,n.data)}function k(t){var e=this.context,t=e.oldChildren[t];t&&e.group.remove(t)}i.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return o(this.getSource(),this)}}),i.extendChartView({type:"custom",_data:null,render:function(n,t,e){var i=this._data,o=n.getData(),a=this.group,r=c(n,o,t,e);this.group.removeAll(),o.diff(i).add(function(t){h(null,t,r(t),n,a,o)}).update(function(t,e){h(i.getItemGraphicEl(e),t,r(t),n,a,o)}).remove(function(t){t=i.getItemGraphicEl(t);t&&a.remove(t)}).execute(),this._data=o},incrementalPrepareRender:function(t,e,n){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,n,i){var o=e.getData(),a=c(e,o,n,i);function r(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var s=t.start;s<t.end;s++)h(null,s,a(s),e,this.group,o).traverse(r)},dispose:x.noop})},function(t,e,n){var i=n(17),o=(n(541),n(542),n(167)),n=n(195);i.registerVisual(o("effectScatter","circle")),i.registerLayout(n("effectScatter"))},function(t,e,n){var i=n(141),n=n(123).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});t.exports=n},function(t,e,n){var i=n(17),o=n(186),a=n(569),r=n(129),s=n(195),n=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new o(a)},render:function(t,e,n){var t=t.getData(),i=this._symbolDraw;i.updateData(t),this.group.add(i.group)},updateTransform:function(t,e,n){var i=t.getData(),t=(this.group.dirty(),s().reset(t));t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(t){t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=r.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=n},function(t,e,n){var i=n(17),o=(n(544),n(545),n(215)),a=n(546),n=n(196);i.registerVisual(o("funnel")),i.registerLayout(a),i.registerProcessor(n("funnel"))},function(t,e,n){var i=n(17),o=n(175),a=n(77).defaultEmphasis,r=i.extendSeriesModel({type:"series.funnel",init:function(t){r.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return o(this,["value"])},_defaultLabelLine:function(t){a(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),n=r.superCall(this,"getDataParams",t),i=e.mapDimension("value"),o=e.getSum(i);return n.percent=o?+(e.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});t.exports=r},function(t,e,n){var c=n(48),l=n(3),n=n(144);function r(t,e){c.Group.call(this);var n=new c.Polygon,i=new c.Polyline,o=new c.Text;function a(){i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore}function r(){i.ignore=i.normalIgnore,o.ignore=o.normalIgnore}this.add(n),this.add(i),this.add(o),this.updateData(t,e,!0),this.on("emphasis",a).on("normal",r).on("mouseover",a).on("mouseout",r)}var i=r.prototype,u=["itemStyle","opacity"],i=(i.updateData=function(t,e,n){var i=this.childAt(0),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),s=null==(s=t.getItemModel(e).get(u))?1:s,n=(i.useStyle({}),n?(i.setShape({points:r.points}),i.setStyle({opacity:0}),c.initProps(i,{style:{opacity:s}},o,e)):c.updateProps(i,{style:{opacity:s},shape:{points:r.points}},o,e),a.getModel("itemStyle")),s=t.getItemVisual(e,"color");i.setStyle(l.defaults({lineJoin:"round",fill:s},n.getItemStyle(["opacity"]))),i.hoverStyle=n.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),c.setHoverStyle(this)},i._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e).label,o=(t.getItemVisual(e,"color"),c.updateProps(n,{shape:{points:r.linePoints||r.linePoints}},o,e),c.updateProps(i,{style:{x:r.x,y:r.y}},o,e),i.attr({rotation:r.rotation,origin:[r.x,r.y],z2:10}),a.getModel("label")),s=a.getModel("emphasis.label"),l=a.getModel("labelLine"),a=a.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");c.setLabelStyle(i.style,i.hoverStyle={},o,s,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!r.inside},{textAlign:r.textAlign,textVerticalAlign:r.verticalAlign}),i.ignore=i.normalIgnore=!o.get("show"),i.hoverIgnore=!s.get("show"),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!a.get("show"),n.setStyle({stroke:u}),n.setStyle(l.getModel("lineStyle").getLineStyle()),n.hoverStyle=a.getModel("lineStyle").getLineStyle()},l.inherits(r,c.Group),n.extend({type:"funnel",render:function(t,e,n){var i=t.getData(),o=this._data,a=this.group;i.diff(o).add(function(t){var e=new r(i,t);i.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){e=o.getItemGraphicEl(e);e.updateData(i,t),a.add(e),i.setItemGraphicEl(t,e)}).remove(function(t){t=o.getItemGraphicEl(t);a.remove(t)}).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}));t.exports=i},function(t,e,n){var w=n(109),n=n(61),S=n.parsePercent,M=n.linearMap;t.exports=function(t,b,e){t.eachSeriesByType("funnel",function(t){function e(t,e){var n,t=o.get(a,t)||0,i=M(t,[u,c],s,!0);switch(h){case"left":n=r.x;break;case"center":n=r.x+(r.width-i)/2;break;case"right":n=r.x+r.width-i}return[[n,e],[n+i,e]]}var o=t.getData(),a=o.mapDimension("value"),n=t.get("sort"),r=(l=b,w.getLayoutRect(t.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),i=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),o=[],a="ascending"===e,r=0,s=t.count();r<s;r++)o[r]=r;return"function"==typeof e?o.sort(e):"none"!==e&&o.sort(function(t,e){return a?i[t]-i[e]:i[e]-i[t]}),o}(o,n),s=[S(t.get("minSize"),r.width),S(t.get("maxSize"),r.width)],l=o.getDataExtent(a),u=t.get("min"),c=t.get("max"),h=(null==u&&(u=Math.min(l[0],0)),null==c&&(c=l[1]),t.get("funnelAlign")),d=t.get("gap"),p=(r.height-d*(o.count()-1))/o.count(),f=r.y;"ascending"===n&&(p=-p,d=-d,f+=r.height,i=i.reverse());for(var g,m=0;m<i.length;m++){var y=i[m],v=i[m+1],x=o.getItemModel(y).get("itemStyle.height"),_=(null==x?x=p:(x=S(x,r.height),"ascending"===n&&(x=-x)),e(y,f)),v=e(v,f+x);f+=x+d,o.setItemLayout(y,{points:_.concat(v.slice().reverse())})}(g=o).each(function(t){var e,n,i,o,a,r,s,l=g.getItemModel(t),u=l.getModel("label").get("position"),l=l.getModel("labelLine"),t=g.getItemLayout(t),c=t.points,h="inner"===u||"inside"===u||"center"===u;h?(a="center",r=[[e=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,s=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4],[e,s]]):(l=l.get("length"),a="left"===u?(n=(c[3][0]+c[0][0])/2,i=(c[3][1]+c[0][1])/2,e=(o=n-l)-5,"right"):(n=(c[1][0]+c[2][0])/2,i=(c[1][1]+c[2][1])/2,e=(o=n+l)+5,"left"),r=[[n,i],[o,i]],s=i),t.label={linePoints:r,x:e,y:s,verticalAlign:"middle",textAlign:a,inside:h}})})}},function(t,e,n){n(548),n(549)},function(t,e,n){var i=n(175),o=n(123),a=n(3),n=o.extend({type:"series.gauge",getInitialData:function(t,e){var n=t.data||[];return a.isArray(n)||(n=[n]),t.data=n,i(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});t.exports=n},function(t,e,n){var f=n(550),E=n(48),i=n(144),n=n(61),R=n.parsePercent,N=n.round,g=n.linearMap;function z(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var y=2*Math.PI,n=i.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var i,o,a,r,s=t.get("axisLine.lineStyle.color"),l=(o=n,a=(i=t).get("center"),r=o.getWidth(),l=o.getHeight(),r=Math.min(r,l),{cx:R(a[0],o.getWidth()),cy:R(a[1],o.getHeight()),r:R(i.get("radius"),r/2)});this._renderMain(t,e,n,s,l)},dispose:function(){},_renderMain:function(t,e,n,i,o){for(var a=this.group,r=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=((p=-t.get("endAngle")/180*Math.PI)-l)%y,c=l,h=r.get("width"),d=0;d<i.length;d++){var p=l+u*Math.min(Math.max(i[d][0],0),1),f=new E.Sector({shape:{startAngle:c,endAngle:p,cx:o.cx,cy:o.cy,clockwise:s,r0:o.r-h,r:o.r},silent:!0});f.setStyle({fill:i[d][1]}),f.setStyle(r.getLineStyle(["color","borderWidth","borderColor"])),a.add(f),c=p}function g(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}var m;s||(m=l,l=p,p=m),this._renderTicks(t,e,n,g,o,l,p,s),this._renderPointer(t,e,n,g,o,l,p,s),this._renderTitle(t,e,n,g,o),this._renderDetail(t,e,n,g,o)},_renderTicks:function(t,e,n,i,o,a,r,s){for(var l=this.group,u=o.cx,c=o.cy,h=o.r,d=+t.get("min"),p=+t.get("max"),f=t.getModel("splitLine"),g=t.getModel("axisTick"),m=t.getModel("axisLabel"),y=t.get("splitNumber"),v=g.get("splitNumber"),x=R(f.get("length"),h),_=R(g.get("length"),h),b=a,w=(r-a)/y,S=w/v,M=f.getModel("lineStyle").getLineStyle(),I=g.getModel("lineStyle").getLineStyle(),T=0;T<=y;T++){var A,D,C,L=Math.cos(b),P=Math.sin(b);if(f.get("show")&&(A=new E.Line({shape:{x1:L*h+u,y1:P*h+c,x2:L*(h-x)+u,y2:P*(h-x)+c},style:M,silent:!0}),"auto"===M.stroke&&A.setStyle({stroke:i(T/y)}),l.add(A)),m.get("show")&&(A=z(N(T/y*(p-d)+d),m.get("formatter")),D=m.get("distance"),C=i(T/y),l.add(new E.Text({style:E.setTextStyle({},m,{text:A,x:L*(h-x-D)+u,y:P*(h-x-D)+c,textVerticalAlign:P<-.4?"top":.4<P?"bottom":"middle",textAlign:L<-.4?"left":.4<L?"right":"center"},{autoColor:C}),silent:!0}))),g.get("show")&&T!==y){for(var k=0;k<=v;k++){var L=Math.cos(b),P=Math.sin(b),O=new E.Line({shape:{x1:L*h+u,y1:P*h+c,x2:L*(h-_)+u,y2:P*(h-_)+c},silent:!0,style:I});"auto"===I.stroke&&O.setStyle({stroke:i((T+k/v)/y)}),l.add(O),b+=S}b-=S}else b+=w}},_renderPointer:function(n,t,e,o,a,i,r,s){var l,u,c,h,d=this.group,p=this._data;n.get("pointer.show")?(l=[+n.get("min"),+n.get("max")],u=[i,r],c=n.getData(),h=c.mapDimension("value"),c.diff(p).add(function(t){var e=new f({shape:{angle:i}});E.initProps(e,{shape:{angle:g(c.get(h,t),l,u,!0)}},n),d.add(e),c.setItemGraphicEl(t,e)}).update(function(t,e){e=p.getItemGraphicEl(e);E.updateProps(e,{shape:{angle:g(c.get(h,t),l,u,!0)}},n),d.add(e),c.setItemGraphicEl(t,e)}).remove(function(t){t=p.getItemGraphicEl(t);d.remove(t)}).execute(),c.eachItemGraphicEl(function(t,e){var n=c.getItemModel(e),i=n.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:R(i.get("width"),a.r),r:R(i.get("length"),a.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",o(g(c.get(h,e),l,[0,1],!0))),E.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())}),this._data=c):p&&p.eachItemGraphicEl(function(t){d.remove(t)})},_renderTitle:function(t,e,n,i,o){var a,r,s,l=t.getData(),u=l.mapDimension("value"),c=t.getModel("title");c.get("show")&&(r=c.get("offsetCenter"),a=o.cx+R(r[0],o.r),r=o.cy+R(r[1],o.r),o=+t.get("min"),s=+t.get("max"),t=t.getData().get(u,0),u=i(g(t,[o,s],[0,1],!0)),this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},c,{x:a,y:r,text:l.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:u,forceRich:!0})})))},_renderDetail:function(t,e,n,i,o){var a,r,s,l=t.getModel("detail"),u=+t.get("min"),c=+t.get("max");l.get("show")&&(r=l.get("offsetCenter"),a=o.cx+R(r[0],o.r),r=o.cy+R(r[1],o.r),s=R(l.get("width"),o.r),o=R(l.get("height"),o.r),t=(t=t.getData()).get(t.mapDimension("value"),0),i=i(g(t,[u,c],[0,1],!0)),this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},l,{x:a,y:r,text:z(t,l.get("formatter")),textWidth:isNaN(s)?null:s,textHeight:isNaN(o)?null:o,textAlign:"center",textVerticalAlign:"middle"},{autoColor:i,forceRich:!0})})))}});t.exports=n},function(t,e,n){n=n(119).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,o=e.r,a=e.width,r=e.angle,s=e.x-n(r)*a*(o/3<=a?1:2),l=e.y-i(r)*a*(o/3<=a?1:2),r=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(r)*a,e.y+i(r)*a),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(r)*a,e.y-i(r)*a),t.lineTo(s,l)}});t.exports=n},function(t,e,n){var i=n(17),o=(n(552),n(553),n(562),n(555)),a=n(167),r=n(556),s=n(559),l=n(563),u=n(557),c=n(561),n=n(558);i.registerProcessor(o),i.registerVisual(a("graph","circle",null)),i.registerVisual(r),i.registerVisual(s),i.registerLayout(l),i.registerLayout(u),i.registerLayout(c),i.registerCoordinateSystem("graphView",{create:n})},function(t,e,n){var i=n(17),o=n(133),a=n(3),r=n(77).defaultEmphasis,s=n(122),l=n(116).encodeHTML,u=n(312),c=i.extendSeriesModel({type:"series.graph",init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){c.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){c.superApply(this,"mergeDefaultAndTheme",arguments),r(t,["edgeLabel"],["show"])},getInitialData:function(t,a){var e=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&e)return u(t,e,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var t=r.getModel("edgeLabel"),n=new s({label:t.option},t.parentModel,a),t=r.getModel("emphasis.edgeLabel"),i=new s({emphasis:{label:t.option}},t.parentModel,a);function o(t){return(t=this.parsePath(t))&&"label"===t[0]?n:t&&"emphasis"===t[0]&&"label"===t[1]?i:this.parentModel}e.wrapMethod("getItemModel",function(t){return t.customizeGetParent(o),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){var i,o,a,r;return"edge"===n?(a=this.getData(),i=this.getDataParams(t,n),r=a.graph.getEdgeByIndex(t),o=a.getName(r.node1.dataIndex),a=a.getName(r.node2.dataIndex),r=[],null!=o&&r.push(o),null!=a&&r.push(a),r=l(r.join(" > ")),i.value&&(r+=" : "+l(i.value)),r):c.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],function(t){return null!=t.value?t:a.extend({value:0},t)}),e=new o(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return c.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}});t.exports=c},function(t,e,n){var i=n(17),r=n(3),a=n(186),s=n(241),l=n(206),u=n(331),c=n(246).onIrrelevantElement,p=n(48),f=n(554),h=["itemStyle","opacity"],d=["lineStyle","opacity"];function g(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function m(t,e,n){var i=t.getGraphicEl(),o=g(t,e);null!=n&&(null==o&&(o=1),o*=n),i.downplay&&i.downplay(),i.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",o)})}function y(t,e){var n=g(t,e),e=t.getGraphicEl();e.highlight&&e.highlight(),e.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",n)})}n=i.extendChartView({type:"graph",init:function(t,e){var n=new a,i=new s,o=this.group;this._controller=new l(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(o,t,a){var e=o.coordinateSystem,n=(this._model=o,this._nodeScaleRatio=o.get("nodeScaleRatio"),this._symbolDraw),i=this._lineDraw,r=this.group,s=("view"===e.type&&(e={position:e.position,scale:e.scale},this._firstRender?r.attr(e):p.updateProps(r,e,o)),f(o.getGraph(),this._getNodeGlobalScale(o)),o.getData()),r=(n.updateData(s),o.getEdgeData()),l=(i.updateData(r),this._updateNodeAndLinkScale(),this._updateController(o,t,a),clearTimeout(this._layoutTimeout),o.forceLayout),u=o.get("force.layoutAnimation"),c=(l&&this._startForceLayoutIteration(l,u),s.eachItemGraphicEl(function(t,e){var n=s.getItemModel(e),i=(t.off("drag").off("dragend"),s.getItemModel(e).get("draggable"));i&&t.on("drag",function(){l&&(l.warmUp(),this._layouting||this._startForceLayoutIteration(l,u),l.setFixed(e),s.setItemLayout(e,t.position))},this).on("dragend",function(){l&&l.setUnfixed(e)},this),t.setDraggable(i&&l),t.off("mouseover",t.__focusNodeAdjacency),t.off("mouseout",t.__unfocusNodeAdjacency),n.get("focusNodeAdjacency")&&(t.on("mouseover",t.__focusNodeAdjacency=function(){a.dispatchAction({type:"focusNodeAdjacency",seriesId:o.id,dataIndex:t.dataIndex})}),t.on("mouseout",t.__unfocusNodeAdjacency=function(){a.dispatchAction({type:"unfocusNodeAdjacency",seriesId:o.id})}))},this),s.graph.eachEdge(function(t){var e=t.getGraphicEl();e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),t.getModel().get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){a.dispatchAction({type:"focusNodeAdjacency",seriesId:o.id,edgeDataIndex:t.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){a.dispatchAction({type:"unfocusNodeAdjacency",seriesId:o.id})}))}),"circular"===o.get("layout")&&o.get("circular.rotateLabel")),h=s.getLayout("cx"),d=s.getLayout("cy");s.eachItemGraphicEl(function(t,e){var n,t=t.getSymbolPath();c?(e=s.getItemLayout(e),(n=Math.atan2(e[1]-d,e[0]-h))<0&&(n=2*Math.PI+n),(e=e[0]<h)&&(n-=Math.PI),t.setStyle({textRotation:-n,textPosition:n=e?"left":"right",textOrigin:"center"}),t.hoverStyle&&(t.hoverStyle.textPosition=n)):t.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,n,i){var o=this._model.getData().graph,a=i.dataIndex,i=i.edgeDataIndex,a=o.getNodeByIndex(a),i=o.getEdgeByIndex(i);(a||i)&&(o.eachNode(function(t){m(t,h,.1)}),o.eachEdge(function(t){m(t,d,.1)}),a&&(y(a,h),r.each(a.edges,function(t){t.dataIndex<0||(y(t,d),y(t.node1,h),y(t.node2,h))})),i)&&(y(i,d),y(i.node1,h),y(i.node2,h))},unfocusNodeAdjacency:function(t,e,n,i){var o=this._model.getData().graph;o.eachNode(function(t){m(t,h)}),o.eachEdge(function(t){m(t,d)})},_startForceLayoutIteration:function(t,n){var i=this;!function e(){t.step(function(t){i.updateLayout(i._model),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(e,16):e())})}()},_updateController:function(o,t,a){var e=this._controller,i=this._controllerHost,r=this.group;e.setPointerChecker(function(t,e,n){var i=r.getBoundingRect();return i.applyTransform(r.transform),i.contain(e,n)&&!c(t,a,o)}),"view"!==o.coordinateSystem.type?e.disable():(e.enable(o.get("roam")),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.coordinateSystem.getZoom(),e.off("pan").off("zoom").on("pan",function(t,e){u.updateViewOnPan(i,t,e),a.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t,dy:e})}).on("zoom",function(t,e,n){u.updateViewOnZoom(i,t,e,n),a.dispatchAction({seriesId:o.id,type:"graphRoam",zoom:t,originX:e,originY:n}),this._updateNodeAndLinkScale(),f(o.getGraph(),this._getNodeGlobalScale(o)),this._lineDraw.updateLayout()},this))},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),t=this._getNodeGlobalScale(t),n=[t,t];e.eachItemGraphicEl(function(t,e){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e,n,t=t.coordinateSystem;return"view"!==t.type?1:(e=this._nodeScaleRatio,n=(n=t.scale)&&n[0]||1,((t.getZoom()-1)*e+1)/n)},updateLayout:function(t){f(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=n},function(t,e,n){var i=n(152),g=n(111),f=[],m=[],y=[],v=i.quadraticAt,x=g.distSquare,_=Math.abs;function b(t,e,n){for(var i,o=t[0],a=t[1],r=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)f[0]=v(o[0],a[0],r[0],c),f[1]=v(o[1],a[1],r[1],c),(p=_(x(f,e)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u,p=(m[0]=v(o[0],a[0],r[0],i),m[1]=v(o[1],a[1],r[1],i),y[0]=v(o[0],a[0],r[0],d),y[1]=v(o[1],a[1],r[1],d),x(m,e)-l);if(_(p)<.01)break;d=x(y,e)-l;u/=2,p<0?0<=d?i+=u:i-=u:0<=d?i-=u:i+=u}return i}t.exports=function(t,l){var u=[],c=i.quadraticSubdivide,h=[[],[],[]],d=[[],[]],p=[];function f(t){t=t.getVisual("symbolSize");return t=t instanceof Array?(t[0]+t[1])/2:t}l/=2,t.eachEdge(function(t,e){var n,i,o=t.getLayout(),a=t.getVisual("fromSymbol"),r=t.getVisual("toSymbol"),s=(o.__original||(o.__original=[g.clone(o[0]),g.clone(o[1])],o[2]&&o.__original.push(g.clone(o[2]))),o.__original);null!=o[2]?(g.copy(h[0],s[0]),g.copy(h[1],s[2]),g.copy(h[2],s[1]),a&&"none"!=a&&(i=f(t.node1),n=b(h,s[0],i*l),c(h[0][0],h[1][0],h[2][0],n,u),h[0][0]=u[3],h[1][0]=u[4],c(h[0][1],h[1][1],h[2][1],n,u),h[0][1]=u[3],h[1][1]=u[4]),r&&"none"!=r&&(i=f(t.node2),n=b(h,s[1],i*l),c(h[0][0],h[1][0],h[2][0],n,u),h[1][0]=u[1],h[2][0]=u[2],c(h[0][1],h[1][1],h[2][1],n,u),h[1][1]=u[1],h[2][1]=u[2]),g.copy(o[0],h[0]),g.copy(o[1],h[2]),g.copy(o[2],h[1])):(g.copy(d[0],s[0]),g.copy(d[1],s[1]),g.sub(p,d[1],d[0]),g.normalize(p,p),a&&"none"!=a&&(i=f(t.node1),g.scaleAndAdd(d[0],d[0],p,i*l)),r&&"none"!=r&&(i=f(t.node2),g.scaleAndAdd(d[1],d[1],p,-i*l)),g.copy(o[0],d[0]),g.copy(o[1],d[1]))})}},function(t,e){t.exports=function(t){var a=t.findComponents({mainType:"legend"});a&&a.length&&t.eachSeriesByType("graph",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,o=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){"number"==typeof e&&(e=o[e]);for(var n=0;n<a.length;n++)if(!a[n].isSelected(e))return!1}return!0})},this)}},function(t,e){t.exports=function(t){var r={};t.eachSeriesByType("graph",function(n){var i=n.getCategoriesData(),o=n.getData(),a={};i.each(function(t){var e=i.getName(t);a["ec-"+e]=t;e=i.getItemModel(t).get("itemStyle.color")||n.getColorFromPalette(e,r);i.setItemVisual(t,"color",e)}),i.count()&&o.each(function(t){var e=o.getItemModel(t).getShallow("category");null!=e&&("string"==typeof e&&(e=a["ec-"+e]),o.getItemVisual(t,"color",!0)||o.setItemVisual(t,"color",i.getItemVisual(e,"color")))})})}},function(t,e,n){var i=n(308).circularLayout;t.exports=function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&i(t)})}},function(t,e,n){var h=n(343),d=n(109).getLayoutRect,p=n(276);t.exports=function(t,u){var c=[];return t.eachSeriesByType("graph",function(t){var e,n,i,o,a,r,s,l=t.get("coordinateSystem");l&&"view"!==l||(l=(e=t.getData()).mapArray(function(t){t=e.getItemModel(t);return[+t.get("x"),+t.get("y")]}),p.fromPoints(l,l=[],i=[]),i[0]-l[0]==0&&(i[0]+=1,--l[0]),i[1]-l[1]==0&&(i[1]+=1,--l[1]),n=(i[0]-l[0])/(i[1]-l[1]),r=u,s=n,(a=(a=t).getBoxLayoutParams()).aspect=s,s=d(a,{width:r.getWidth(),height:r.getHeight()}),isNaN(n)&&(l=[s.x,s.y],i=[s.x+s.width,s.y+s.height]),a=i[0]-l[0],r=i[1]-l[1],n=s.width,i=s.height,(o=t.coordinateSystem=new h).zoomLimit=t.get("scaleLimit"),o.setBoundingRect(l[0],l[1],a,r),o.setViewRect(s.x,s.y,n,i),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),c.push(o))}),c}},function(t,e){function u(t){return t=t instanceof Array?t:[t,t]}t.exports=function(t){t.eachSeriesByType("graph",function(t){var a=t.getGraph(),r=t.getEdgeData(),e=u(t.get("edgeSymbol")),n=u(t.get("edgeSymbolSize")),s="lineStyle.color".split("."),l="lineStyle.opacity".split(".");r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),r.setVisual("color",t.get(s)),r.setVisual("opacity",t.get(l)),r.each(function(t){var e=r.getItemModel(t),n=a.getEdgeByIndex(t),t=u(e.getShallow("symbol",!0)),i=u(e.getShallow("symbolSize",!0)),o=e.get(s),e=e.get(l);switch(o){case"source":o=n.node1.getVisual("color");break;case"target":o=n.node2.getVisual("color")}t[0]&&n.setVisual("fromSymbol",t[0]),t[1]&&n.setVisual("toSymbol",t[1]),i[0]&&n.setVisual("fromSymbolSize",i[0]),i[1]&&n.setVisual("toSymbolSize",i[1]),n.setVisual("color",o),n.setVisual("opacity",e)})})}},function(t,e,n){var y=n(111),v=y.scaleAndAdd;e.forceLayout=function(d,p,t){for(var e=t.rect,n=e.width,i=e.height,f=[e.x+n/2,e.y+i/2],g=null==t.gravity?.1:t.gravity,o=0;o<d.length;o++){var a=d[o];a.p||(a.p=y.create(n*(Math.random()-.5)+f[0],i*(Math.random()-.5)+f[1])),a.pp=y.clone(a.p),a.edges=null}var m=.6;return{warmUp:function(){m=.5},setFixed:function(t){d[t].fixed=!0},setUnfixed:function(t){d[t].fixed=!1},step:function(t){for(var e=[],n=d.length,i=0;i<p.length;i++){var o=p[i],a=o.n1,r=o.n2,s=(y.sub(e,r.p,a.p),y.len(e)-o.d),o=r.w/(a.w+r.w);isNaN(o)&&(o=0),y.normalize(e,e),a.fixed||v(a.p,a.p,e,o*s*m),r.fixed||v(r.p,r.p,e,-(1-o)*s*m)}for(i=0;i<n;i++)(c=d[i]).fixed||(y.sub(e,f,c.p),v(c.p,c.p,e,g*m));for(i=0;i<n;i++)for(var a=d[i],l=i+1;l<n;l++){r=d[l];y.sub(e,r.p,a.p);0===(s=y.len(e))&&(y.set(e,Math.random()-.5,Math.random()-.5),s=1);var u=(a.rep+r.rep)/s/s;a.fixed||v(a.pp,a.pp,e,u),r.fixed||v(r.pp,r.pp,e,-u)}for(var c,h=[],i=0;i<n;i++)(c=d[i]).fixed||(y.sub(h,c.p,c.pp),v(c.p,c.p,h,m),y.copy(c.pp,c.p));m*=.992,t&&t(d,p,m<.01)}}}},function(t,e,n){var f=n(560).forceLayout,g=n(309).simpleLayout,m=n(308).circularLayout,y=n(61).linearMap,v=n(111),x=n(3);t.exports=function(t){t.eachSeriesByType("graph",function(t){var h,d,p,e,i,n,o,a,r,s,l,u,c=t.coordinateSystem;c&&"view"!==c.type||("force"===t.get("layout")?(h=t.preservedPoints||{},d=t.getGraph(),p=d.data,l=d.edgeData,s=(e=t.getModel("force")).get("initLayout"),t.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&m(t):g(t),i=p.getDataExtent("value"),n=l.getDataExtent("value"),o=e.get("repulsion"),a=e.get("edgeLength"),x.isArray(o)||(o=[o,o]),a=[(a=x.isArray(a)?a:[a,a])[1],a[0]],r=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=y(t,i,o);return{w:t=isNaN(t)?(o[0]+o[1])/2:t,rep:t,fixed:p.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),s=l.mapArray("value",function(t,e){e=d.getEdgeByIndex(e),t=y(t,n,a);return isNaN(t)&&(t=(a[0]+a[1])/2),{n1:r[e.node1.dataIndex],n2:r[e.node2.dataIndex],d:t,curveness:e.getModel().get("lineStyle.curveness")||0}}),l=(c=t.coordinateSystem).getBoundingRect(),c=f(r,s,{rect:l,gravity:e.get("gravity")}),u=c.step,c.step=function(c){for(var t=0,e=r.length;t<e;t++)r[t].fixed&&v.copy(r[t].p,d.getNodeByIndex(t).getLayout());u(function(t,e,n){for(var i=0,o=t.length;i<o;i++)t[i].fixed||d.getNodeByIndex(i).setLayout(t[i].p),h[p.getId(i)]=t[i].p;for(i=0,o=e.length;i<o;i++){var a=e[i],r=d.getEdgeByIndex(i),s=a.n1.p,l=a.n2.p,u=r.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],v.copy(u[0],s),v.copy(u[1],l),+a.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*a.curveness,(s[1]+l[1])/2-(l[0]-s[0])*a.curveness]),r.setLayout(u)}c&&c(n)})},t.forceLayout=c,t.preservedPoints=h,c.step()):t.forceLayout=null)})}},function(t,e,n){var i=n(17),o=n(305).updateCenterAndZoom;i.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(n,t){t.eachComponent({mainType:"series",query:n},function(t){var e=t.coordinateSystem,e=o(e,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})}),i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e,n){var c=n(3).each,n=n(309),h=n.simpleLayout,d=n.simpleLayoutEdge;t.exports=function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];c(n.dimensions,function(t){o=o.concat(i.mapDimension(t,!0))});for(var a=0;a<i.count();a++){for(var r=[],s=!1,l=0;l<o.length;l++){var u=i.get(o[l],a);isNaN(u)||(s=!0),r.push(u)}s?i.setItemLayout(a,n.dataToPoint(r)):i.setItemLayout(a,[NaN,NaN])}d(i.graph)}else e&&"none"!==e||h(t)})}},function(t,e,n){n(566),n(567)},function(t,e,n){var o=n(3);function i(){var t=o.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}i.prototype={update:function(t,e,n,i,o,a){var r=this._getBrush(),s=this._getGradient(t,o,"inRange"),l=this._getGradient(t,o,"outOfRange"),u=this.pointSize+this.blurSize,o=this.canvas,c=o.getContext("2d"),h=t.length;o.width=e,o.height=n;for(var d=0;d<h;++d){var p=t[d],f=p[0],g=p[1],m=i(p[2]);c.globalAlpha=m,c.drawImage(r,f-u,g-u)}if(o.width&&o.height){for(var e=c.getImageData(0,0,o.width,o.height),y=e.data,v=0,x=y.length,_=this.minOpacity,b=this.maxOpacity-_;v<x;){var w,m=y[v+3]/256,S=4*Math.floor(255*m);0<m?(w=a(m)?s:l,0<m&&(m=m*b+_),y[v++]=w[S],y[v++]=w[1+S],y[v++]=w[2+S],y[v++]=w[3+S]*m*256):v+=4}c.putImageData(e,0,0)}return o},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=o.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext("2d"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,o=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,s=0;s<256;s++)e[n](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},t.exports=i},function(t,e,n){var i=n(123),o=n(141),a=n(135),n=i.extend({type:"series.heatmap",getInitialData:function(t,e){return o(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=a.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=n},function(t,e,n){n(79).__DEV__;var i=n(17),M=n(48),x=n(565),I=n(3);n=i.extendChartView({type:"heatmap",render:function(n,t,e){t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var i,o,t=n.coordinateSystem;"cartesian2d"===t.type||"calendar"===t.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):"lng"===(o=(o=t).dimensions)[0]&&"lat"===o[1]&&this._renderOnGeo(t,n,i,e)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,i,o){for(var a,r,s,l,u=t.coordinateSystem,c=("cartesian2d"===u.type&&(a=u.getAxis("x"),r=u.getAxis("y"),s=a.getBandWidth(),l=r.getBandWidth()),this.group),h=t.getData(),d="emphasis.itemStyle",p="emphasis.label",f=t.getModel("itemStyle").getItemStyle(["color"]),g=t.getModel(d).getItemStyle(),m=t.getModel("label"),y=t.getModel(p),v=u.type,x="cartesian2d"===v?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],_=n;_<i;_++){if("cartesian2d"===v){if(isNaN(h.get(x[2],_)))continue;var b=u.dataToPoint([h.get(x[0],_),h.get(x[1],_)]),b=new M.Rect({shape:{x:b[0]-s/2,y:b[1]-l/2,width:s,height:l},style:{fill:h.getItemVisual(_,"color"),opacity:h.getItemVisual(_,"opacity")}})}else{if(isNaN(h.get(x[1],_)))continue;b=new M.Rect({z2:1,shape:u.dataToRect([h.get(x[0],_)]).contentShape,style:{fill:h.getItemVisual(_,"color"),opacity:h.getItemVisual(_,"opacity")}})}var w=h.getItemModel(_),w=(h.hasItemOption&&(f=w.getModel("itemStyle").getItemStyle(["color"]),g=w.getModel(d).getItemStyle(),m=w.getModel("label"),y=w.getModel(p)),t.getRawValue(_)),S="-";w&&null!=w[2]&&(S=w[2]),M.setLabelStyle(f,g,m,y,{labelFetcher:t,labelDataIndex:_,defaultText:S,isRectText:!0}),b.setStyle(f),M.setHoverStyle(b,h.hasItemOption?g:I.extend({},g)),(b.incremental=o)&&(b.useHoverLayer=!0),c.add(b),h.setItemGraphicEl(_,b)}},_renderOnGeo:function(i,t,e,n){var o,a,r,s,l,u,c,h=e.targetVisuals.inRange,d=e.targetVisuals.outOfRange,p=t.getData(),f=this._hmLayer||this._hmLayer||new x,t=(f.blurSize=t.get("blurSize"),f.pointSize=t.get("pointSize"),f.minOpacity=t.get("minOpacity"),f.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),g=i.getRoamTransform(),m=(t.applyTransform(g),Math.max(t.x,0)),y=Math.max(t.y,0),g=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=g-m,g=t-y,t=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],p=p.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=m,t[1]-=y,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(c=e.option.range,v=t[1]-t[0],c=[(c[0]-t[0])/v,(c[1]-t[0])/v],function(t){return t>=c[0]&&t<=c[1]}):(o=t,a=e.getPieceList(),r=e.option.selected,s=o[1]-o[0],l=(a=I.map(a,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,u=0,function(t){for(var e=u;e<l;e++)if((n=a[e].interval)[0]<=t&&t<=n[1]){u=e;break}if(e===l)for(var n,e=u-1;0<=e;e--)if((n=a[e].interval)[0]<=t&&t<=n[1]){u=e;break}return 0<=e&&e<l&&r[e]}),t=(f.update(p,n,g,h.color.getNormalizer(),{inRange:h.color.getColorMapper(),outOfRange:d.color.getColorMapper()},v),new M.Image({style:{width:n,height:g,x:m,y:y,image:f.canvas},silent:!0}));this.group.add(t)},dispose:function(){}});t.exports=n},function(t,e,n){var i=n(311),o=n(3),a=n(310),s=n(111);function r(t,e,n){a.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}n=r.prototype;n.createLine=function(t,e,n){return new i(t,e,n)},n.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var a=e[o-1],r=e[o];i+=s.dist(a,r),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}},n.getLineLength=function(t){return this._length},n.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var a=this._lastFrame;if(e<this._lastFramePercent){for(r=Math.min(a+1,o-1);0<=r&&!(i[r]<=e);r--);r=Math.min(r,o-2)}else{for(var r=a;r<o&&!(i[r]>e);r++);r=Math.min(r-1,o-2)}s.lerp(t.position,n[r],n[r+1],(e-i[r])/(i[r+1]-i[r]));a=n[r+1][0]-n[r][0],n=n[r+1][1]-n[r][1];t.rotation=-Math.atan2(n,a)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},o.inherits(r,a),t.exports=r},function(t,e,n){var d=n(3),s=n(134).createSymbol,o=n(48).Group,p=n(61).parsePercent,a=n(203);function l(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function i(t,e){o.call(this);var n=new a(t,e),i=new o;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}n=i.prototype;n.stopEffectAnimation=function(){this.childAt(1).removeAll()},n.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),o=0;o<3;o++){var a=s(e,-1,-1,2,2,n),r=(a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]}),-o/3*t.period+t.effectOffset);a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),i.add(a)}l(i,t)},n.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],o=0;o<i.length;o++){var a=i[o];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}l(n,t)},n.highlight=function(){this.trigger("emphasis")},n.downplay=function(){this.trigger("normal")},n.updateData=function(t,e){var n,i,o=t.hostModel,a=(this.childAt(0).updateData(t,e),this.childAt(1)),r=t.getItemModel(e),s=t.getItemVisual(e,"symbol"),l=(l=t.getItemVisual(e,"symbolSize"),l=d.isArray(l)?l:[+l,+l]),u=t.getItemVisual(e,"color"),c=(a.attr("scale",l),a.traverse(function(t){t.attr({fill:u})}),r.getShallow("symbolOffset")),h=(c&&((i=a.position)[0]=p(c[0],l[0]),i[1]=p(c[1],l[1])),a.rotation=(r.getShallow("symbolRotate")||0)*Math.PI/180||0,{});h.showEffectOn=o.get("showEffectOn"),h.rippleScale=r.get("rippleEffect.scale"),h.brushType=r.get("rippleEffect.brushType"),h.period=1e3*r.get("rippleEffect.period"),h.effectOffset=e/t.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=s,h.color=u,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),n=this.childAt(0),i=function(){n.downplay(),"render"!==h.showEffectOn&&this.stopEffectAnimation()},this.on("mouseover",c=function(){n.highlight(),"render"!==h.showEffectOn&&this.startEffectAnimation(h)},this).on("mouseout",i,this).on("emphasis",c,this).on("normal",i,this)),this._effectCfg=h},n.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},d.inherits(i,o),t.exports=i},function(t,e,n){var i=n(48),o=n(278),p=n(365),f=n(367),a=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o<n.length;){var a=n[o++];if(0<a){t.moveTo(n[o++],n[o++]);for(var r=1;r<a;r++)t.lineTo(n[o++],n[o++])}}else for(o=0;o<n.length;){var s=n[o++],l=n[o++],u=n[o++],c=n[o++];t.moveTo(s,l),0<i?t.quadraticCurveTo((s+u)/2-(l-c)*i,(l+c)/2-(u-s)*i,u,c):t.lineTo(u,c)}},findDataIndex:function(t,e){var n=this.shape,i=n.segs,o=n.curveness;if(n.polyline)for(var a=0,r=0;r<i.length;){var s=i[r++];if(0<s)for(var l=i[r++],u=i[r++],c=1;c<s;c++){var h=i[r++],d=i[r++];if(p.containStroke(l,u,h,d))return a}a++}else for(a=0,r=0;r<i.length;){l=i[r++],u=i[r++],h=i[r++],d=i[r++];if(0<o){if(f.containStroke(l,u,(l+h)/2-(u-d)*o,(u+d)/2-(h-l)*o,h,d))return a}else if(p.containStroke(l,u,h,d))return a;a++}return-1}});function r(){this.group=new i.Group}n=r.prototype;n.isPersistent=function(){return!this._incremental},n.updateData=function(t){this.group.removeAll();var e=new a({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},n.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),5e5<t.count()?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},n.incrementalUpdate=function(t,e){var n=new a;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._setCommon=function(e,t,n){var i=t.hostModel,t=(e.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0,t.getVisual("color"));t&&e.setStyle("stroke",t),e.setStyle("fill"),n||(e.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<t&&(e.dataIndex=t+e.__startIndex)}))},n._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t.exports=r},function(t,e,n){var i=n(48),a=n(134).createSymbol,o=n(278),r=i.extendShape({shape:{points:null},symbolProxy:null,buildPath:function(t,e){var n=e.points,i=e.size,o=this.symbolProxy,a=o.shape,e=(t.getContext?t.getContext():t)&&i[0]<4;if(!e)for(var r=0;r<n.length;){var s=n[r++],l=n[r++];isNaN(s)||isNaN(l)||(a.x=s-i[0]/2,a.y=l-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0))}},afterBrush:function(t){var e=this.shape,n=e.points,i=e.size;if(i[0]<4){this.setTransform(t);for(var o=0;o<n.length;){var a=n[o++],r=n[o++];isNaN(a)||isNaN(r)||t.fillRect(a-i[0]/2,r-i[1]/2,i[0],i[1])}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,n=n.size,o=Math.max(n[0],4),a=Math.max(n[1],4),r=i.length/2-1;0<=r;r--){var s=2*r,l=i[s]-o/2,s=i[1+s]-a/2;if(l<=t&&s<=e&&t<=l+o&&e<=s+a)return r}return-1}});function s(){this.group=new i.Group}n=s.prototype;n.isPersistent=function(){return!this._incremental},n.updateData=function(t){this.group.removeAll();var e=new r({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},n.updateLayout=function(t){var i;this._incremental||(i=t.getLayout("symbolPoints"),this.group.eachChild(function(t){var e,n;null!=t.startIndex&&(e=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2,i=new Float32Array(i.buffer,n,e)),t.setShape("points",i)}))},n.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),2e6<t.count()?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},n.incrementalUpdate=function(t,e){var n;this._incremental?(n=new r,this._incremental.addDisplayable(n,!0)):((n=new r({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!!this._incremental)},n._setCommon=function(e,t,n){var i=t.hostModel,o=t.getVisual("symbolSize"),o=(e.setShape("size",o instanceof Array?o:[o,o]),e.symbolProxy=a(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.shape.size[0]<4),o=(e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"])),t.getVisual("color"));o&&e.setColor(o),n||(e.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<=t&&(e.dataIndex=t+(e.startIndex||0))}))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t.exports=s},function(t,e,n){var i=n(48),o=n(111),a=i.Line.prototype,r=i.BezierCurve.prototype;function s(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}n=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(s(e)?a:r).buildPath(t,e)},pointAt:function(t){return(s(this.shape)?a:r).pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,e=s(e)?[e.x2-e.x1,e.y2-e.y1]:r.tangentAt.call(this,t);return o.normalize(e,e)}});t.exports=n},function(t,e,n){var i=n(17),o=(n(574),n(575),n(167)),a=n(195),r=n(771);n(190),i.registerVisual(o("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,r("line"))},function(t,e,n){n(79).__DEV__;var i=n(141),n=n(123).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return i(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});t.exports=n},function(t,e,n){n(79).__DEV__;var w=n(3),i=n(186),l=n(203),m=n(576),S=n(48),u=n(77),o=n(315),a=o.Polyline,r=o.Polygon,c=n(144),d=n(61).round,o=n(314),M=o.prepareDataCoordInfo,I=o.getStackedOnPoint;function T(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i[0]!==o[0]||i[1]!==o[1])return}return 1}}function A(t){return"number"==typeof t?t:t?.5:0}function p(t){var e,n=t.getGlobalExtent();return t.onBand&&(t=t.getBandWidth()/2-1,e=n[1]>n[0]?1:-1,n[0]+=e*t,n[1]-=e*t),n}function D(t,e,n,i){return"polar"===t.type?(a=e,r=n,s=i,l=(o=t).getAngleAxis(),(u=o.getRadiusAxis().getExtent().slice())[0]>u[1]&&u.reverse(),c=l.getExtent(),h=Math.PI/180,r&&(u[0]-=.5,u[1]+=.5),r=new S.Sector({shape:{cx:d(o.cx,1),cy:d(o.cy,1),r0:d(u[0],1),r:d(u[1],1),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:l.inverse}}),a&&(r.shape.endAngle=-c[0]*h,S.initProps(r,{shape:{endAngle:-c[1]*h}},s)),r):(o=e,u=n,l=i,c=p((a=t).getAxis("x")),h=p(a.getAxis("y")),a=a.getBaseAxis().isHorizontal(),s=Math.min(c[0],c[1]),r=Math.min(h[0],h[1]),c=Math.max(c[0],c[1])-s,h=Math.max(h[0],h[1])-r,u?(s-=.5,c+=.5,r-=.5,h+=.5):(u=l.get("lineStyle.width")||2,u=l.get("clipOverflow")?u/2:Math.max(c,h),a?(r-=u,h+=2*u):(s-=u,c+=2*u)),u=new S.Rect({shape:{x:s,y:r,width:c,height:h}}),o&&(u.shape[a?"width":"height"]=0,S.initProps(u,{shape:{width:c,height:h}},l)),u);var o,a,r,s,l,u,c,h}function C(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],a=0;a<t.length-1;a++){var r=t[a+1],s=t[a],l=(o.push(s),[]);switch(n){case"end":l[i]=r[i],l[1-i]=s[1-i],o.push(l);break;case"middle":var u=(s[i]+r[i])/2,c=[];l[i]=c[i]=u,l[1-i]=s[1-i],c[1-i]=r[1-i],o.push(l),o.push(c);break;default:l[i]=s[i],l[1-i]=r[1-i],o.push(l)}}return t[a]&&o.push(t[a]),o}function L(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,a,t=n.getAxesByScale("ordinal")[0];if(t)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),a=Math.max(1,Math.round(o/5)),r=0;r<o;r+=a)if(1.5*l.getSymbolSize(e,r)[t.isHorizontal()?1:0]>i)return;return 1}(t,e))return o=e.mapDimension(t.dim),a={},w.each(t.getViewLabels(),function(t){a[t.tickValue]=1}),function(t){return!a.hasOwnProperty(e.get(o,t))}}}n=c.extend({type:"line",init:function(){var t=new S.Group,e=new i;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,o=this.group,a=t.getData(),r=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=a.mapArray(a.getItemLayout),u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=t.get("animation"),m=!s.isEmpty(),y=s.get("origin"),v=function(t,e,n){if(!n.valueDim)return[];for(var i=[],o=0,a=e.count();o<a;o++)i.push(I(n,t,e,o));return i}(i,a,M(i,a,y)),x=t.get("showSymbol"),_=x&&!u&&L(t,a,i),b=this._data,u=(b&&b.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),b.setItemGraphicEl(e,null))}),x||h.remove(),o.add(f),!u&&t.get("step")),c=(d&&c.type===i.type&&u===this._step?(m&&!p?p=this._newPolygon(l,v,i,g):p&&!m&&(f.remove(p),p=this._polygon=null),f.setClipPath(D(i,!1,!1,t)),x&&h.updateData(a,{isIgnore:_,clipShape:D(i,!1,!0,t)}),a.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),T(this._stackedOnPoints,v)&&T(this._points,l)||(g?this._updateAnimation(a,v,i,n,u,y):(u&&(l=C(l,i,u),v=C(v,i,u)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:v})))):(x&&h.updateData(a,{isIgnore:_,clipShape:D(i,!1,!0,t)}),u&&(l=C(l,i,u),v=C(v,i,u)),d=this._newPolyline(l,i,g),m&&(p=this._newPolygon(l,v,i,g)),f.setClipPath(D(i,!0,!1,t))),function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=n.length-1;0<=o;o--){var a,r=n[o].dimension,r=t.dimensions[r],r=t.getDimensionInfo(r);if("x"===(a=r&&r.coordDim)||"y"===a){i=n[o];break}}if(i){var s=e.getAxis(a),e=w.map(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),l=e.length,u=i.outerColors.slice(),c=(l&&e[0].coord>e[l-1].coord&&(e.reverse(),u.reverse()),e[0].coord-10),h=e[l-1].coord+10,d=h-c;if(d<.001)return"transparent";w.each(e,function(t){t.offset=(t.coord-c)/d}),e.push({offset:l?e[l-1].offset:.5,color:u[1]||"transparent"}),e.unshift({offset:l?e[0].offset:.5,color:u[0]||"transparent"});l=new S.LinearGradient(0,0,0,0,e,!0);return l[a]=c,l[a+"2"]=h,l}}}(a,i)||a.getVisual("color")),n=(d.useStyle(w.defaults(r.getLineStyle(),{fill:"none",stroke:c,lineJoin:"bevel"})),t.get("smooth"),A(t.get("smooth")));d.setShape({smooth:n,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p&&(x=a.getCalculationInfo("stackedOnSeries"),h=0,p.useStyle(w.defaults(s.getAreaStyle(),{fill:c,opacity:.7,lineJoin:"bevel"})),x&&(h=A(x.get("smooth"))),p.setShape({smooth:n,stackedOnSmooth:h,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})),this._data=a,this._coordSys=i,this._stackedOnPoints=v,this._points=l,this._step=u,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,n,i){var o=t.getData(),a=u.queryDataIndex(o,i);if(!(a instanceof Array)&&null!=a&&0<=a){var r=o.getItemGraphicEl(a);if(!r){var s=o.getItemLayout(a);if(!s)return;(r=new l(o,a)).position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,o.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else c.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var o,a=t.getData(),r=u.queryDataIndex(a,i);null!=r&&0<=r?(o=a.getItemGraphicEl(r))&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay()):c.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new a({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new r({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n},_updateAnimation:function(t,e,n,i,o,a){for(var r,s=this._polyline,l=this._polygon,u=t.hostModel,e=m(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),a=e.current,c=e.stackedOnCurrent,h=e.next,d=e.stackedOnNext,p=(o&&(a=C(e.current,n,o),c=C(e.stackedOnCurrent,n,o),h=C(e.next,n,o),d=C(e.stackedOnNext,n,o)),s.shape.__points=e.current,s.shape.points=a,S.updateProps(s,{shape:{points:h}},u),l&&(l.setShape({points:a,stackedOnPoints:c}),S.updateProps(l,{shape:{points:h,stackedOnPoints:d}},u)),[]),f=e.status,g=0;g<f.length;g++)"="===f[g].cmd&&(r=t.getItemGraphicEl(f[g].idx1))&&p.push({el:r,ptIdx:g});s.animators&&s.animators.length&&s.animators[0].during(function(){for(var t=0;t<p.length;t++)p[t].el.attr("position",s.shape.__points[p[t].ptIdx])})},remove:function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=n},function(t,e,n){var n=n(314),L=n.prepareDataCoordInfo,P=n.getStackedOnPoint;t.exports=function(t,e,n,i,o,a,r,s){l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute();for(var l,u=l,c=[],h=[],d=[],p=[],f=[],g=[],m=[],y=L(o,e,r),v=L(a,t,s),x=0;x<u.length;x++){var _=u[x],b=!0;switch(_.cmd){case"=":var w=t.getItemLayout(_.idx),S=e.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=S.slice()),c.push(w),h.push(S),d.push(n[_.idx]),p.push(i[_.idx1]),m.push(e.getRawIndex(_.idx1));break;case"+":var M=_.idx;c.push(o.dataToPoint([e.get(y.dataDimsForPoint[0],M),e.get(y.dataDimsForPoint[1],M)])),h.push(e.getItemLayout(M).slice()),d.push(P(y,o,e,M)),p.push(i[M]),m.push(e.getRawIndex(M));break;case"-":var M=_.idx,w=t.getRawIndex(M);w!==M?(c.push(t.getItemLayout(M)),h.push(a.dataToPoint([t.get(v.dataDimsForPoint[0],M),t.get(v.dataDimsForPoint[1],M)])),d.push(n[M]),p.push(P(v,a,t,M)),m.push(w)):b=!1}b&&(f.push(_),g.push(g.length))}g.sort(function(t,e){return m[t]-m[e]});for(var I=[],T=[],A=[],D=[],C=[],x=0;x<g.length;x++){M=g[x];I[x]=c[M],T[x]=h[M],A[x]=d[M],D[x]=p[M],C[x]=f[M]}return{current:I,next:T,stackedOnCurrent:A,stackedOnNext:D,status:C}}},function(t,e,n){var i=n(17),o=(n(578),n(579),n(316)),n=n(580);i.registerLayout(o),i.registerVisual(n)},function(t,e,n){n(79).__DEV__;var i=n(123),a=n(133),o=n(3),r=o.concatArray,s=o.mergeAll,l=o.map,u=n(116).encodeHTML,p=(n(135),"undefined"==typeof Uint32Array?Array:Uint32Array),f="undefined"==typeof Float64Array?Array:Float64Array;function c(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=l(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),s([e,t[0],t[1]])}))}var h=i.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],c(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),h.superApply(this,"init",arguments)},mergeOption:function(t){var e;t.data=t.data||[],c(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords)&&(t.data=new Float32Array(e.count)),h.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=r(this._flatCoords,e.flatCoords),this._flatCoordsOffset=r(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){t=this.getData().getItemModel(t);return t.option instanceof Array?t.option:t.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}for(var a=this._getCoordsFromItemModel(t),o=0;o<a.length;o++)e[o]=e[o]||[],e[o][0]=a[o][0],e[o][1]=a[o][1];return a.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"!=typeof t[0])return{flatCoordsOffset:null,flatCoords:null,count:t.length};for(var n=t.length,i=new p(n),o=new f(n),a=0,r=0,s=0,l=0;l<n;){s++;var u=t[l++];i[r++]=a+e,i[r++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];o[a++]=h,o[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,r),flatCoords:o,count:s}},getInitialData:function(t,e){var o=new a(["value"],this);return o.hasItemOption=!1,o.initData(t.data,[],function(t,e,n,i){if(t instanceof Array)return NaN;o.hasItemOption=!0;t=t.value;return null!=t?t instanceof Array?t[i]:t:void 0}),o},formatTooltip:function(t){var e,t=this.getData().getItemModel(t),n=t.get("name");return n||(n=t.get("fromName"),t=t.get("toName"),e=[],null!=n&&e.push(n),null!=t&&e.push(t),u(e.join(" > ")))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!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,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});t.exports=h},function(t,e,n){n(79).__DEV__;var i=n(17),a=n(241),r=n(310),s=n(240),l=n(311),u=n(568),c=n(570),h=n(316),n=i.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),a=t.get("zlevel"),r=t.get("effect.trailLength"),n=n.getZr(),s="svg"===n.painter.getType();s||n.painter.getLayer(a).clear(!0),null==this._lastZlevel||s||n.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r&&(s||n.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),o.updateData(i),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=h.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),e=e.pipelineContext.large;return n&&i===this._hasEffet&&o===this._isPolyline&&e===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=e?new c:new a(o?i?u:l:i?r:s),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){t=t.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=n},function(t,e){function r(t){return t=t instanceof Array?t:[t,t]}var s="lineStyle.opacity".split(".");t.exports={seriesType:"lines",reset:function(t,e,n){var i=r(t.get("symbol")),o=r(t.get("symbolSize")),a=t.getData();return a.setVisual("fromSymbol",i&&i[0]),a.setVisual("toSymbol",i&&i[1]),a.setVisual("fromSymbolSize",o&&o[0]),a.setVisual("toSymbolSize",o&&o[1]),a.setVisual("opacity",t.get(s)),{dataEach:a.hasItemOption?function(t,e){var n=r((o=t.getItemModel(e)).getShallow("symbol",!0)),i=r(o.getShallow("symbolSize",!0)),o=o.get(s);n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1]),t.setItemVisual(e,"opacity",o)}:null}}}},function(t,e,n){var i=n(17),o=(n(582),n(583),n(304),n(208),n(586)),a=n(587),r=n(585),s=n(584),n=n(303);i.registerLayout(o),i.registerVisual(a),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,r),i.registerPreprocessor(s),n("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(t,e,n){var i=n(3),o=n(175),a=n(123),r=n(116),u=r.encodeHTML,c=r.addCommas,r=n(247),s=n(163).retrieveRawAttr,l=n(208),h=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){h.superApply(this,"init",arguments),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t){return o(this,["value"])},mergeOption:function(t){h.superApply(this,"mergeOption",arguments),this.updateSelectedMap(this._createSelectableList())},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,o=t.count();i<o;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:s(t,i,"selected")});return n=l.getFilledRegions(n,this.getMapType(),this.option.nameMap)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),n=c(this.getRawValue(t)),i=e.getName(t),o=this.seriesGroup,a=[],r=0;r<o.length;r++){var s=o[r].originalData.indexOfName(i),l=e.mapDimension("value");isNaN(o[r].originalData.get(l,s))||a.push(u(o[r].name))}return a.join(", ")+"<br />"+u(i+" : "+n)},getTooltipPosition:function(t){var e;if(null!=t)return t=this.getData().getName(t),(t=(e=this.coordinateSystem).getRegion(t))&&e.dataToPoint(t.center)},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}}}});i.mixin(h,r),t.exports=h},function(t,e,n){var i=n(17),p=n(3),f=n(48),r=n(327),n=i.extendChartView({type:"map",render:function(t,e,n,i){var o,a;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel())||(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(a=this._mapDraw)&&o.add(a.group):t.needsDrawMap?(a=this._mapDraw||new r(n,!0),o.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n))},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(c,t,e){var h=c.originalData,d=this.group;h.each(h.mapDimension("value"),function(t,e){var n,i,o,a,r,s,l,u;isNaN(t)||(t=h.getItemLayout(e))&&t.point&&(u=t.point,t=t.offset,n=new f.Circle({style:{fill:c.getData().getVisual("color")},shape:{cx:u[0]+9*t,cy:u[1],r:3},silent:!0,z2:t?8:10}),t||(u=c.mainSeries.getData(),t=h.getName(e),l=u.indexOfName(t),a=h.getItemModel(e),i=a.getModel("label"),o=a.getModel("emphasis.label"),a=u.getItemGraphicEl(l),r=p.retrieve2(c.getFormattedLabel(e,"normal"),t),s=p.retrieve2(c.getFormattedLabel(e,"emphasis"),r),u=function(){f.setTextStyle(n.style,i,{text:i.get("show")?r:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null)},a.on("mouseover",l=function(){var t=f.setTextStyle({},o,{text:o.get("show")?s:null},{isRectText:!0,useInsideStyle:!1},!0);n.style.extendFrom(t),n.__mapOriginalZ2=n.z2,n.z2+=1}).on("mouseout",u).on("emphasis",l).on("normal",u),u()),d.add(n))})}});t.exports=n},function(t,e,n){var i=n(3);t.exports=function(t){var e=[];i.each(t.series,function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,i.defaults(t,t.mapLocation))})}},function(t,e,n){var o=n(3);t.exports=function(t){var n={};t.eachSeriesByType("map",function(t){var e=t.getHostGeoModel(),e=e?"o"+e.id:"i"+t.getMapType();(n[e]=n[e]||[]).push(t)}),o.each(n,function(t,e){l=o.map(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),c={},o.each(l,function(n){n.each(n.mapDimension("value"),function(t,e){e="ec-"+n.getName(e);c[e]=c[e]||[],isNaN(t)||c[e].push(t)})});for(var l,u,c,n=l[0].map(l[0].mapDimension("value"),function(t,e){for(var n="ec-"+l[0].getName(e),i=0,o=1/0,a=-1/0,r=c[n].length,s=0;s<r;s++)o=Math.min(o,c[n][s]),a=Math.max(a,c[n][s]),i+=c[n][s];return e="min"===u?o:"max"===u?a:"average"===u?i/r:i,0===r?NaN:e}),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)(t[i].seriesGroup=t)[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}},function(t,e,n){var a=n(3);t.exports=function(n){var o={};n.eachSeriesByType("map",function(t){var r,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(r={},a.each(t.seriesGroup,function(t){var o=t.coordinateSystem,a=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&a.each(a.mapDimension("value"),function(t,e){var n=a.getName(e),i=o.getRegion(n);i&&!isNaN(t)&&(t=r[n]||0,i=o.dataToPoint(i.center),r[n]=t+1,a.setItemLayout(e,{point:i,offset:t}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!r[e],i.setItemLayout(t,n)}),o[e]=!0)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t.getModel("itemStyle"),i=n.get("areaColor"),n=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:n})})}},function(t,e,n){var i=n(17),n=(n(334),n(589),n(590),n(591));i.registerVisual(n)},function(t,e,n){var i=n(3),r=i.each,s=i.createHashMap,i=n(123),l=n(141),n=i.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var n,i,o,a=this.getSource();return i=this,(n=a).encodeDefine||(i=i.ecModel.getComponent("parallel",i.get("parallelIndex")))&&(o=n.encodeDefine=s(),r(i.dimensions,function(t){var e=+t.replace("dim","");o.set(t,e)})),l(a,this)},getRawIndicesByActiveState:function(n){var t=this.coordinateSystem,i=this.getData(),o=[];return t.eachActiveState(i,function(t,e){n===t&&o.push(i.getRawIndex(e))}),o},defaultOption:{zlevel:0,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"}});t.exports=n},function(t,e,n){var g=n(48),n=(n(3),n(144)),n=n.extend({type:"parallel",init:function(){this._dataGroup=new g.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(o,t,e,a){var n,i,r,s,l,u=this._dataGroup,c=o.getData(),h=this._data,d=o.coordinateSystem,p=d.dimensions,f=v(o);c.diff(h).add(function(t){x(y(c,u,t,p,d),c,t,f)}).update(function(t,e){var e=h.getItemGraphicEl(e),n=m(c,t,p,d),i=(c.setItemGraphicEl(t,e),a&&!1===a.animation?null:o);g.updateProps(e,{shape:{points:n}},i,t),x(e,c,t,f)}).remove(function(t){t=h.getItemGraphicEl(t);u.remove(t)}).execute(),this._initialized||(this._initialized=!0,i=o,r=function(){setTimeout(function(){u.removeClipPath()})},s=(n=d).model,n=n.getRect(),l=new g.Rect({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),s="horizontal"===s.get("layout")?"width":"height",l.setShape(s,0),g.initProps(l,{shape:{width:n.width,height:n.height}},i,r),s=l,u.setClipPath(s)),this._data=c},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,a=o.dimensions,r=v(e),s=t.start;s<t.end;s++){var l=y(i,this._dataGroup,s,a,o);l.incremental=!0,x(l,i,s,r)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(t,e,n,i){for(var o,a=[],r=0;r<n.length;r++){var s=n[r],l=t.get(t.mapDimension(s),e);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||a.push(i.dataToPoint(l,s))}return a}function y(t,e,n,i,o){i=m(t,n,i,o),o=new g.Polyline({shape:{points:i},silent:!0,z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function v(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:.3}}function x(t,e,n,i){var o=i.lineStyle,o=(e.hasItemOption&&(o=e.getItemModel(n).getModel("lineStyle").getLineStyle()),t.useStyle(o),t.style);o.fill=null,o.stroke=e.getItemVisual(n,"color"),o.opacity=e.getItemVisual(n,"opacity"),i.smooth&&(t.shape.smooth=i.smooth)}t.exports=n},function(t,e){var l=["lineStyle","normal","opacity"];t.exports={seriesType:"parallel",reset:function(t,e,n){var i=t.getModel("itemStyle"),o=t.getModel("lineStyle"),e=e.get("color"),o=o.get("color")||i.get("color")||e[t.seriesIndex%e.length],i=t.get("inactiveOpacity"),e=t.get("activeOpacity"),a=t.getModel("lineStyle").getLineStyle(),r=t.coordinateSystem,t=t.getData(),s={normal:a.opacity,active:e,inactive:i};return t.setVisual("color",o),{progress:function(t,i){r.eachActiveState(i,function(t,e){var n=s[t];"normal"===t&&i.hasItemOption&&null!=(t=i.getItemModel(e).get(l,!0))&&(n=t),i.setItemVisual(e,"opacity",n)},t.start,t.end)}}}}},function(t,e,n){var i=n(17),o=n(3);n(251),n(525),n(526);var a=n(210).layout,r=n(167);n(190),i.registerLayout(o.curry(a,"pictorialBar")),i.registerVisual(r("pictorialBar","roundRect"))},function(t,e,n){var i=n(17),o=n(3),a=(n(594),n(595),n(303)),r=n(215),s=n(597),n=n(196);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(r("pie")),i.registerLayout(o.curry(s,"pie")),i.registerProcessor(n("pie"))},function(t,e,n){var i=n(17),o=n(175),a=n(3),r=n(77),s=n(61).getPercentWithPrecision,l=n(247),u=n(163).retrieveRawAttr,c=i.extendSeriesModel({type:"series.pie",init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){c.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return o(this,["value"])},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,o=t.count();i<o;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:u(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=c.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=s(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){r.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});a.mixin(c,l),t.exports=c},function(t,e,n){var h=n(3),c=n(48),n=n(144);function d(t,e,n,i){var o=e.getData(),a=this.dataIndex,a=o.getName(a),r=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),o.each(function(t){p(o.getItemGraphicEl(t),o.getItemLayout(t),e.isSelected(o.getName(t)),r,n)})}function p(t,e,n,i,o){e=(e.startAngle+e.endAngle)/2,n=n?i:0,i=[Math.cos(e)*n,Math.sin(e)*n];o?t.animate().when(200,{position:i}).start("bounceOut"):t.attr("position",i)}function f(t,e){c.Group.call(this);var n=new c.Sector({z2:2}),i=new c.Polyline,o=new c.Text;function a(){i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore}function r(){i.ignore=i.normalIgnore,o.ignore=o.normalIgnore}this.add(n),this.add(i),this.add(o),this.updateData(t,e,!0),this.on("emphasis",a).on("normal",r).on("mouseover",a).on("mouseout",r)}var i=f.prototype,i=(i.updateData=function(t,e,n){var i=this.childAt(0),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),s=h.extend({},r),n=(s.label=null,n?(i.setShape(s),"scale"===o.getShallow("animationType")?(i.shape.r=r.r0,c.initProps(i,{shape:{r:r.r}},o,e)):(i.shape.endAngle=r.startAngle,c.updateProps(i,{shape:{endAngle:r.endAngle}},o,e))):c.updateProps(i,{shape:s},o,e),t.getItemVisual(e,"color")),s=(i.useStyle(h.defaults({lineJoin:"bevel",fill:n},a.getModel("itemStyle").getItemStyle())),i.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),a.getShallow("cursor"));function l(){i.stopAnimation(!0),i.animateTo({shape:{r:r.r+o.get("hoverOffset")}},300,"elasticOut")}function u(){i.stopAnimation(!0),i.animateTo({shape:{r:r.r}},300,"elasticOut")}s&&i.attr("cursor",s),p(this,t.getItemLayout(e),o.isSelected(null,e),o.get("selectedOffset"),o.get("animation")),i.off("mouseover").off("mouseout").off("emphasis").off("normal"),a.get("hoverAnimation")&&o.isAnimationEnabled()&&i.on("mouseover",l).on("mouseout",u).on("emphasis",l).on("normal",u),this._updateLabel(t,e),c.setHoverStyle(this)},i._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e).label,o=(t.getItemVisual(e,"color"),c.updateProps(n,{shape:{points:r.linePoints||[[r.x,r.y],[r.x,r.y],[r.x,r.y]]}},o,e),c.updateProps(i,{style:{x:r.x,y:r.y}},o,e),i.attr({rotation:r.rotation,origin:[r.x,r.y],z2:10}),a.getModel("label")),s=a.getModel("emphasis.label"),l=a.getModel("labelLine"),a=a.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color"),r=(c.setLabelStyle(i.style,i.hoverStyle={},o,s,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:u,useInsideStyle:!!r.inside},{textAlign:r.textAlign,textVerticalAlign:r.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),i.ignore=i.normalIgnore=!o.get("show"),i.hoverIgnore=!s.get("show"),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!a.get("show"),n.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(l.getModel("lineStyle").getLineStyle()),n.hoverStyle=a.getModel("lineStyle").getLineStyle(),l.get("smooth"));n.setShape({smooth:r=r&&!0===r?.4:r})},h.inherits(f,c.Group),n.extend({type:"pie",init:function(){var t=new c.Group;this._sectorGroup=t},render:function(t,e,n,i){var o,a,r,s,l,u,c;i&&i.from===this.uid||(o=t.getData(),a=this._data,r=this.group,i=e.get("animation"),s=!a,l=t.get("animationType"),u=h.curry(d,this.uid,t,i,n),c=t.get("selectedMode"),o.diff(a).add(function(t){var e=new f(o,t);s&&"scale"!==l&&e.eachChild(function(t){t.stopAnimation(!0)}),c&&e.on("click",u),o.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){e=a.getItemGraphicEl(e);e.updateData(o,t),e.off("click"),c&&e.on("click",u),r.add(e),o.setItemGraphicEl(t,e)}).remove(function(t){t=a.getItemGraphicEl(t);r.remove(t)}).execute(),i&&s&&0<o.count()&&"scale"!==l&&(e=o.getItemLayout(0),i=Math.max(n.getWidth(),n.getHeight())/2,n=h.bind(r.removeClipPath,r),r.setClipPath(this._createClipPath(e.cx,e.cy,i,e.startAngle,e.clockwise,n,t))),this._data=o)},dispose:function(){},_createClipPath:function(t,e,n,i,o,a,r){t=new c.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:o}});return c.initProps(t,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},r,a),t},containPoint:function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0}}));t.exports=i},function(t,e,n){var S=n(137);function h(o,t,e,n,i,a,r){function s(t,e){for(var n=t;0<=n&&(o[n].y-=e,!(0<n&&o[n].y>o[n-1].y+o[n-1].height));n--);}function l(t,e,n,i,o,a){for(var r,s,l,u=e?Number.MAX_VALUE:0,c=0,h=t.length;c<h;c++)"center"!==t[c].position&&(r=Math.abs(t[c].y-i),l=t[c].len,s=t[c].len2,l=r<o+l?Math.sqrt((o+l+s)*(o+l+s)-r*r):Math.abs(t[c].x-n),e&&u<=l&&(l=u-10),!e&&l<=u&&(l=u+10),t[c].x=n+l*a,u=l)}o.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=o.length,d=[],p=[],f=0;f<h;f++)(u=o[f].y-c)<0&&!function(t,e,n){for(var i=t;i<e;i++)if(o[i].y+=n,t<i&&i+1<e&&o[i+1].y>o[i].y+o[i].height)return s(i,n/2);s(e-1,n/2)}(f,h,-u),c=o[f].y+o[f].height;r-c<0&&s(h-1,c-r);for(f=0;f<h;f++)(o[f].y>=e?p:d).push(o[f]);l(d,!1,t,e,n,i),l(p,!0,t,e,n,i)}t.exports=function(m,y,t,e){var v,x,_=m.getData(),b=[],w=!1;if(_.each(function(t){var e,n,i,o=_.getItemLayout(t),a=_.getItemModel(t),r=a.getModel("label"),s=r.get("position")||a.get("emphasis.label.position"),a=a.getModel("labelLine"),l=a.get("length"),a=a.get("length2"),u=(o.startAngle+o.endAngle)/2,c=Math.cos(u),h=Math.sin(u),d=(v=o.cx,x=o.cy,"inside"===s||"inner"===s),p="center"===s?(e=o.cx,n=o.cy,"center"):(e=(g=(d?(o.r+o.r0)/2*c:o.r*c)+v)+3*c,n=(p=(d?(o.r+o.r0)/2*h:o.r*h)+x)+3*h,d||(e=(f=(i=g+c*(l+y-o.r))+(c<0?-1:1)*a)+(c<0?-5:5),i=[[g,p],[i,n=g=p+h*(l+y-o.r)],[f,g]]),d?"center":0<c?"left":"right"),h=r.getFont(),f=r.get("rotate")?c<0?-u+Math.PI:-u:0,g=m.getFormattedLabel(t,"normal")||_.getName(t),r=S.getBoundingRect(g,h,p,"top");w=!!f,o.label={x:e,y:n,position:s,height:r.height,len:l,len2:a,linePoints:i,textAlign:p,verticalAlign:"middle",rotation:f,inside:d},d||b.push(o.label)}),!w&&m.get("avoidLabelOverlap")){for(var n=b,i=v,o=x,a=y,r=[],s=[],l=0;l<n.length;l++)(n[l].x<i?r:s).push(n[l]);for(h(s,i,o,a,1,0,e),h(r,i,o,a,-1,0,e),l=0;l<n.length;l++){var u,c=n[l].linePoints;c&&(u=c[1][0]-c[2][0],n[l].x<i?c[2][0]=n[l].x+3:c[2][0]=n[l].x-3,c[1][1]=c[2][1]=n[l].y,c[1][0]=c[2][0]+u)}}}},function(t,e,n){var i=n(61),A=i.parsePercent,D=i.linearMap,C=n(596),L=n(3),P=2*Math.PI,k=Math.PI/180;t.exports=function(t,e,T,n){e.eachSeriesByType(t,function(t){var n,o=t.getData(),e=o.mapDimension("value"),i=t.get("center"),a=t.get("radius"),r=(L.isArray(a)||(a=[0,a]),L.isArray(i)||(i=[i,i]),T.getWidth()),s=T.getHeight(),l=Math.min(r,s),u=A(i[0],r),c=A(i[1],s),h=A(a[0],l/2),d=A(a[1],l/2),p=-t.get("startAngle")*k,f=t.get("minAngle")*k,g=0,m=(o.each(e,function(t){isNaN(t)||g++}),o.getSum(e)),y=Math.PI/(m||g)*2,v=t.get("clockwise"),x=t.get("roseType"),_=t.get("stillShowZeroSum"),b=o.getDataExtent(e),w=(b[0]=0,P),S=0,M=p,I=v?1:-1;o.each(e,function(t,e){var n,i;isNaN(t)?o.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:u,cy:c,r0:h,r:x?NaN:d}):((n="area"!==x?0===m&&_?y:t*y:P/g)<f?w-=n=f:S+=t,i=M+I*n,o.setItemLayout(e,{angle:n,startAngle:M,endAngle:i,clockwise:v,cx:u,cy:c,r0:h,r:x?D(t,b,[h,d]):d}),M=i)}),w<P&&g&&(w<=.001?(n=P/g,o.each(e,function(t,e){isNaN(t)||((t=o.getItemLayout(e)).angle=n,t.startAngle=p+I*e*n,t.endAngle=p+I*(e+1)*n)})):(y=w/S,M=p,o.each(e,function(t,e){isNaN(t)||(t=(e=o.getItemLayout(e)).angle===f?f:t*y,e.startAngle=M,e.endAngle=M+I*t,M+=I*t)}))),C(t,d,r,s)})}},function(t,e,n){var i=n(17),o=(n(690),n(599),n(600),n(215)),a=n(167),r=n(602),s=n(196),n=n(601);i.registerVisual(o("radar")),i.registerVisual(a("radar","circle")),i.registerLayout(r),i.registerProcessor(s("radar")),i.registerPreprocessor(n)},function(t,e,n){var i=n(123),o=n(175),a=n(3),r=n(116).encodeHTML,s=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(i){var o=this.getData(),t=this.coordinateSystem.getIndicatorAxes(),e=this.getData().getName(i);return r(""===e?this.name:e)+"<br/>"+a.map(t,function(t,e){var n=o.get(o.mapDimension(t.dim),i);return r(t.name+" : "+n)}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});t.exports=s},function(t,e,n){var i=n(17),v=n(48),x=n(3),o=n(134);n=i.extendChartView({type:"radar",render:function(l,t,e){var n=l.coordinateSystem,m=this.group,y=l.getData(),r=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n)return t=t.getItemVisual(e,"symbolSize"),e=t=x.isArray(t)?t:[+t,+t],(t=o.createSymbol(n,-1,-1,2,2,i)).attr({style:{strokeNoScale:!0},z2:100,scale:[e[0]/2,e[1]/2]}),t}function s(t,e,n,i,o,a){n.removeAll();for(var r=0;r<e.length-1;r++){var s=u(i,o);s&&(t[s.__dimIdx=r]?(s.attr("position",t[r]),v[a?"initProps":"updateProps"](s,{position:e[r]},l,o)):s.attr("position",e[r]),n.add(s))}}function c(t){return x.map(t,function(t){return[n.cx,n.cy]})}y.diff(r).add(function(t){var e,n,i,o,a=y.getItemLayout(t);a&&(e=new v.Polygon,n=new v.Polyline,i={shape:{points:a}},e.shape.points=c(a),n.shape.points=c(a),v.initProps(e,i,l,t),v.initProps(n,i,l,t),i=new v.Group,o=new v.Group,i.add(n),i.add(e),i.add(o),s(n.shape.points,a,o,y,t,!0),y.setItemGraphicEl(t,i))}).update(function(t,e){var e=r.getItemGraphicEl(e),n=e.childAt(0),i=e.childAt(1),o=e.childAt(2),a={shape:{points:y.getItemLayout(t)}};a.shape.points&&(s(n.shape.points,a.shape.points,o,y,t,!1),v.updateProps(n,a,l),v.updateProps(i,a,l),y.setItemGraphicEl(t,e))}).remove(function(t){m.remove(r.getItemGraphicEl(t))}).execute(),y.eachItemGraphicEl(function(t,e){var n=y.getItemModel(e),i=t.childAt(0),o=t.childAt(1),a=t.childAt(2),r=y.getItemVisual(e,"color"),i=(m.add(t),i.useStyle(x.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:r})),i.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle(),n.getModel("areaStyle")),s=n.getModel("emphasis.areaStyle"),l=i.isEmpty()&&i.parentModel.isEmpty(),u=s.isEmpty()&&s.parentModel.isEmpty()&&l,c=(o.ignore=l,o.useStyle(x.defaults(i.getAreaStyle(),{fill:r,opacity:.7})),o.hoverStyle=s.getAreaStyle(),n.getModel("itemStyle").getItemStyle(["color"])),h=n.getModel("emphasis.itemStyle").getItemStyle(),d=n.getModel("label"),p=n.getModel("emphasis.label");function f(){o.attr("ignore",u)}function g(){o.attr("ignore",l)}a.eachChild(function(t){t.setStyle(c),t.hoverStyle=x.clone(h),v.setLabelStyle(t.style,t.hoverStyle,d,p,{labelFetcher:y.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:y.get(y.dimensions[t.__dimIdx],e),autoColor:r,isRectText:!0})}),t.off("mouseover").off("mouseout").off("normal").off("emphasis"),t.on("emphasis",f).on("mouseover",f).on("normal",g).on("mouseout",g),v.setHoverStyle(t)}),this._data=y},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=n},function(t,e,n){var o=n(3);t.exports=function(n){var i,t=n.polar;t&&(o.isArray(t)||(t=[t]),i=[],o.each(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],o.isArray(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),o.each(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){for(var o=i.getIndicatorAxes(),a=0;a<o.length;a++)e.each(e.mapDimension(o[a].dim),r);e.each(function(t){n[t][0]&&n[t].push(n[t][0].slice()),e.setItemLayout(t,n[t])})}function r(t,e){n[e]=n[e]||[],n[e][a]=i.dataToPoint(t,a)}})}},function(t,e,n){var i=n(17),o=(n(604),n(605),n(606),n(607)),n=n(608);i.registerLayout(o),i.registerVisual(n)},function(t,e,n){var i=n(123),o=n(312),a=n(116).encodeHTML,r=i.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,t=t.data||t.nodes;if(t&&e)return o(t,e,this,!0).data},setNodePosition:function(t,e){t=this.option.data[t];t.localX=e[0],t.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){var i;return"edge"===n?(i=(i=(n=this.getDataParams(t,n)).data).source+" -- "+i.target,n.value&&(i+=" : "+n.value),a(i)):r.superCall(this,"formatTooltip",t,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});t.exports=r},function(t,e,n){var m=n(48),n=n(17),y=m.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var n=e.extent/2;t.moveTo(e.x1,e.y1-n),t.bezierCurveTo(e.cpx1,e.cpy1-n,e.cpx2,e.cpy2-n,e.x2,e.y2-n),t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n),t.closePath()}}),n=n.extendChartView({type:"sankey",_model:null,render:function(h,t,i){var e,n,o=h.getGraph(),d=this.group,a=h.layoutInfo,p=a.width,f=a.height,s=h.getData(),g=h.getData("edge");this._model=h,d.removeAll(),d.attr("position",[a.x,a.y]),o.eachEdge(function(t){var e=new y,n=(e.dataIndex=t.dataIndex,e.seriesIndex=h.seriesIndex,e.dataType="edge",t.getModel("lineStyle")),i=n.get("curveness"),o=t.node1.getLayout(),a=t.node1.getModel(),r=a.get("localX"),a=a.get("localY"),s=t.node2.getLayout(),l=t.node2.getModel(),u=l.get("localX"),l=l.get("localY"),c=t.getLayout(),r=(e.shape.extent=Math.max(1,c.dy),(null!=r?r*p:o.x)+o.dx),a=(null!=a?a*f:o.y)+c.sy+c.dy/2,o=null!=u?u*p:s.x,u=(null!=l?l*f:s.y)+c.ty+c.dy/2;switch(e.setShape({x1:r,y1:a,x2:o,y2:u,cpx1:r*(1-i)+o*i,cpy1:a,cpx2:r*i+o*(1-i),cpy2:u}),e.setStyle(n.getItemStyle()),e.style.fill){case"source":e.style.fill=t.node1.getVisual("color");break;case"target":e.style.fill=t.node2.getVisual("color")}m.setHoverStyle(e,t.getModel("emphasis.lineStyle").getItemStyle()),d.add(e),g.setItemGraphicEl(t.dataIndex,e)}),o.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get("localX"),o=n.get("localY"),a=n.getModel("label"),r=n.getModel("emphasis.label"),i=new m.Rect({shape:{x:null!=i?i*p:e.x,y:null!=o?o*f:e.y,width:e.dx,height:e.dy},style:n.getModel("itemStyle").getItemStyle()}),o=t.getModel("emphasis.itemStyle").getItemStyle();m.setLabelStyle(i.style,o,a,r,{labelFetcher:h,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),i.setStyle("fill",t.getVisual("color")),m.setHoverStyle(i,o),d.add(i),s.setItemGraphicEl(t.dataIndex,i),i.dataType="node"}),h.get("draggable")&&s.eachItemGraphicEl(function(t,n){t.drift=function(t,e){this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:h.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/p,localY:this.shape.y/f})},t.draggable=!0,t.cursor="move"}),!this._data&&h.get("animation")&&d.setClipPath((a=d.getBoundingRect(),o=h,e=function(){d.removeClipPath()},n=new m.Rect({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}}),m.initProps(n,{shape:{width:a.width+20,height:a.height+20}},o,e),n)),this._data=h.getData()},dispose:function(){}});t.exports=n},function(t,e,n){n(17).registerAction({type:"dragNode",event:"dragNode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(t,e,n){var D=n(109),C=n(359),L=n(3);n(79).__DEV__;function P(t,s,l){L.each(t,function(t){var e,n,i,o=0,a=t.length;for(t.sort(u),e=0;e<a;e++)0<(i=o-(n=t[e]).getLayout().y)&&(r=n.getLayout().y+i,n.setLayout({y:r},!0)),o=n.getLayout().y+n.getLayout().dy+s;if(0<(i=o-s-l)){var r=n.getLayout().y-i;for(n.setLayout({y:r},!0),o=n.getLayout().y,e=a-2;0<=e;--e)0<(i=(n=t[e]).getLayout().y+n.getLayout().dy+s-o)&&(r=n.getLayout().y-i,n.setLayout({y:r},!0)),o=n.getLayout().y}})}function k(t){return z(t.node2)*t.getValue()}function O(t){return z(t.node1)*t.getValue()}function E(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function R(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function N(t,e){for(var n=0,i=t.length,o=-1;++o<i;){var a=+e.call(t,t[o],o);isNaN(a)||(n+=a)}return n}function z(t){return t.getLayout().y+t.getLayout().dy/2}function u(t,e){return t.getLayout().y-e.getLayout().y}function V(t,e){return t-e}function B(t){return t.getValue()}t.exports=function(t,A,e){t.eachSeriesByType("sankey",function(t){var e=t.get("nodeWidth"),n=t.get("nodeGap"),i=(i=A,D.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})),o=(t.layoutInfo=i).width,i=i.height,a=t.getGraph(),r=a.nodes,a=a.edges;L.each(r,function(t){var e=N(t.outEdges,B),n=N(t.inEdges,B),e=Math.max(e,n);t.setLayout({value:e},!0)});for(var t=0!==L.filter(r,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),s=(n=n,i=i,t=t,r),l=a,u=e,e=o,c=[],h=[],d=[],p=[],f=0,g=0;g<l.length;g++)c[g]=1;for(g=0;g<s.length;g++)h[g]=s[g].inEdges.length,0===h[g]&&d.push(s[g]);for(;d.length;)L.each(d,function(t){t.setLayout({x:f},!0),t.setLayout({dx:u},!0),L.each(t.outEdges,function(t){var e=l.indexOf(t),e=(c[e]=0,t.node2),t=s.indexOf(e);0==--h[t]&&p.push(e)})}),++f,d=p,p=[];for(g=0;g<c.length;g++);var o=s,m=f,o=(L.each(o,function(t){t.outEdges.length||t.setLayout({x:m-1},!0)}),s),y=(e-u)/(f-1),e=(L.each(o,function(t){var e=t.getLayout().x*y;t.setLayout({x:e},!0)}),r),o=a,v=i,x=n,_=t,b=C().key(function(t){return t.getLayout().x}).sortKeys(V).entries(e).map(function(t){return t.values}),a=b,i=o,w=v,S=x,M=[],I=(L.each(a,function(t){var e=t.length,n=0,t=(L.each(t,function(t){n+=t.getLayout().value}),(w-(e-1)*S)/n);M.push(t)}),M.sort(function(t,e){return t-e}),M[0]);L.each(a,function(t){L.each(t,function(t,e){t.setLayout({y:e},!0);e=t.getLayout().value*I;t.setLayout({dy:e},!0)})}),L.each(i,function(t){var e=+t.getValue()*I;t.setLayout({dy:e},!0)}),P(b,x,v);for(var T=1;0<_;_--)!function(t,n){L.each(t.slice().reverse(),function(t){L.each(t,function(t){var e;t.outEdges.length&&(e=N(t.outEdges,k)/N(t.outEdges,B),e=t.getLayout().y+(e-z(t))*n,t.setLayout({y:e},!0))})})}(b,T*=.99),P(b,x,v),function(t,n){L.each(t,function(t){L.each(t,function(t){var e;t.inEdges.length&&(e=N(t.inEdges,O)/N(t.inEdges,B),e=t.getLayout().y+(e-z(t))*n,t.setLayout({y:e},!0))})})}(b,T),P(b,x,v);n=r;L.each(n,function(t){t.outEdges.sort(E),t.inEdges.sort(R)}),L.each(n,function(t){var e=0,n=0;L.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),L.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}},function(t,e,n){var a=n(166),r=n(3);t.exports=function(t,e){t.eachSeriesByType("sankey",function(n){var i,o,t=n.getGraph().nodes;t.length&&(i=1/0,o=-1/0,r.each(t,function(t){t=t.getLayout().value;t<i&&(i=t),o<t&&(o=t)}),r.each(t,function(t){var e=new a({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:n.get("color")}).mapValueToVisual(t.getLayout().value);t.setVisual("color",e);e=t.getModel().get("itemStyle.color");null!=e&&t.setVisual("color",e)}))})}},function(t,e,n){var i=n(17),o=(n(610),n(611),n(167)),a=n(195);n(190),i.registerVisual(o("scatter","circle")),i.registerLayout(a("scatter"))},function(t,e,n){var i=n(141),n=n(123).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}});t.exports=n},function(t,e,n){var i=n(17),o=n(186),a=n(571),r=n(195);i.extendChartView({type:"scatter",render:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i),this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count()||!this._symbolDraw.isPersistent())return{update:!0};t=r().reset(t);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateSymbolDraw:function(t,e){var n=this._symbolDraw,e=e.pipelineContext.large;return n&&e===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(e?a:o),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},function(t,e,n){var i=n(17),o=n(3),a=(n(614),n(615),n(616),n(215)),r=n(617),n=n(196);i.registerVisual(o.curry(a,"sunburst")),i.registerLayout(o.curry(r,"sunburst")),i.registerProcessor(o.curry(n,"sunburst"))},function(t,e,n){var p=n(3),f=n(48),i="none",o="ancestor",a="self";function r(t,e,n){f.Group.call(this);var i=new f.Sector({z2:2}),o=(i.seriesIndex=e.seriesIndex,new f.Text({z2:4,silent:t.getModel("label").get("silent")}));function a(){o.ignore=o.hoverIgnore}function r(){o.ignore=o.normalIgnore}this.add(i),this.add(o),this.updateData(!0,t,"normal",e,n),this.on("emphasis",a).on("normal",r).on("mouseover",a).on("mouseout",r)}n=r.prototype;n.updateData=function(t,e,n,i,o){(this.node=e).piece=this,i=i||this._seriesModel,o=o||this._ecModel;var a,r=this.childAt(0),s=(r.dataIndex=e.dataIndex,e.getModel()),l=e.getLayout(),u=p.extend({},l),c=(u.label=null,function(t,e){var n=t.getVisual("color"),i=t.getVisual("visualMeta");i&&0!==i.length||(n=null);i=t.getModel("itemStyle").get("color");if(!i){if(n)return n;if(0===t.depth)return e.option.color[0];n=e.option.color.length;i=e.option.color[function(t){var e=t;for(;1<e.depth;)e=e.parentNode;t=t.getAncestors()[0];return p.indexOf(t.children,e)}(t)%n]}return i}(e,o)),h=s.getModel("itemStyle").getItemStyle(),h=(a="normal"===n?h:(a=s.getModel(n+".itemStyle").getItemStyle(),p.merge(a,h)),a=p.defaults({lineJoin:"bevel",fill:a.fill||c},a),t?(r.setShape(u),r.shape.r=l.r0,f.updateProps(r,{shape:{r:l.r}},i,e.dataIndex),r.useStyle(a)):"object"==typeof a.fill&&a.fill.type||"object"==typeof r.style.fill&&r.style.fill.type?(f.updateProps(r,{shape:u},i),r.useStyle(a)):f.updateProps(r,{shape:u,style:a},i),this._updateLabel(i,c,n),s.getShallow("cursor"));h&&r.attr("cursor",h),t&&(l=i.getShallow("highlightPolicy"),this._initEvents(r,e,i,l)),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel},n.onEmphasis=function(e){var n=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(n.node===t?t.piece.updateData(!1,t,"emphasis"):!function(t,e,n){if(n!==i)return n===a?t===e:n===o?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e)}(t,n.node,e)?e!==i&&t.piece.childAt(0).trigger("downplay"):t.piece.childAt(0).trigger("highlight"))})},n.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},n.onHighlight=function(){this.updateData(!1,this.node,"highlight")},n.onDownplay=function(){this.updateData(!1,this.node,"downplay")},n._updateLabel=function(t,e,n){var i,o=this.node.getModel(),a=o.getModel("label"),r="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),n=o.getModel("emphasis.label"),o=p.retrieve(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name),t=(!1===d("show")&&(o=""),this.node.getLayout()),s=r.get("minAngle"),l=(s=(s=null==s?a.get("minAngle"):s)/180*Math.PI,t.endAngle-t.startAngle),l=(null!=s&&Math.abs(l)<s&&(o=""),this.childAt(1)),s=(f.setLabelStyle(l.style,l.hoverStyle||{},a,n,{defaultText:r.getShallow("show")?o:null,autoColor:e,useInsideStyle:!0}),(t.startAngle+t.endAngle)/2),n=Math.cos(s),e=Math.sin(s),u=d("position"),c=d("distance")||0,h=d("align"),u=("outside"===u?(i=t.r+c,h=s>Math.PI/2?"right":"left"):h&&"center"!==h?"left"===h?(i=t.r0+c,s>Math.PI/2&&(h="right")):"right"===h&&(i=t.r-c,s>Math.PI/2)&&(h="left"):(i=(t.r+t.r0)/2,h="center"),l.attr("style",{text:o,textAlign:h,textVerticalAlign:d("verticalAlign")||"middle",opacity:d("opacity")}),i*n+t.cx),c=i*e+t.cy,o=(l.attr("position",[u,c]),d("rotate")),h=0;function d(t){var e=r.get(t);return null==e?a.get(t):e}"radial"===o?(h=-s)<-Math.PI/2&&(h+=Math.PI):"tangential"===o?(h=Math.PI/2-s)>Math.PI/2?h-=Math.PI:h<-Math.PI/2&&(h+=Math.PI):"number"==typeof o&&(h=o*Math.PI/180),l.attr("rotation",h)},n._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");function o(){r.onEmphasis(i)}function a(){r.onNormal()}var r=this;n.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},p.inherits(r,f.Group),t.exports=r},function(t,e,n){var o=n(3),i=n(123),a=n(253),r=n(159).wrapTreePathInfo,n=i.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var n={name:t.name,children:t.data},t=(!function e(t){var n=0;o.each(t.children,function(t){e(t);t=t.value;o.isArray(t)&&(t=t[0]),n+=t});var i=t.value;o.isArray(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);o.isArray(t.value)?t.value[0]=i:t.value=i}(n),t.levels||[]),i={};return i.levels=t,a.createTree(n,this,i).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=r(n,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},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)}});t.exports=n},function(t,e,n){var m=n(3),i=n(144),y=n(613),v=n(162),n=i.extend({type:"sunburst",init:function(){},render:function(i,o,t,e){var a,r,n,s=this,l=(this.seriesModel=i,this.api=t,this.ecModel=o,i.getData()),u=l.tree.root,t=i.getViewRoot(),c=this.group,h=i.get("renderLabelForZeroData"),d=[],p=(t.eachNode(function(t){d.push(t)}),this._oldChildren||[]);function f(t){return t.getId()}function g(t,e){var n,t=null==t?null:a[t],e=null==e?null:r[e];(t=h||!t||t.getValue()?t:null)!==u&&e!==u&&(e&&e.piece?t?(e.piece.updateData(!1,t,"normal",i,o),l.setItemGraphicEl(t.dataIndex,e.piece)):(n=e)&&n.piece&&(c.remove(n.piece),n.piece=null):t&&(e=new y(t,i,o),c.add(e),l.setItemGraphicEl(t.dataIndex,e)))}r=p,0===(a=d).length&&0===r.length||new v(r,a,f,f).add(g).update(g).remove(m.curry(g,null)).execute(),p=u,0<(n=t).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,p,"normal",i,o):(s.virtualPiece=new y(p,i,o),c.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent),p=function(t){s._rootToNode(n.parentNode)},n.piece._onclickEvent=p,s.virtualPiece.on("click",p)):s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null),e&&e.highlight&&e.highlight.piece?(t=i.getShallow("highlightPolicy"),e.highlight.piece.onEmphasis(t)):e&&e.unhighlight&&(p=!(p=this.virtualPiece)&&u.children.length?u.children[0].piece:p)&&p.onNormal(),this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){function t(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece.childAt(0)===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"===e&&(t=(e=t.getModel()).get("link"))&&(e=e.get("target",!0)||"_blank",window.open(t,e)),i=!0)})}var o=this;this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0}});t.exports=n},function(t,e,n){var i=n(17),a=n(159),r="sunburstRootToNode",o=(i.registerAction({type:r,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n=a.retrieveTargetInfo(o,[r],t);{var i;n&&((i=t.getViewRoot())&&(o.direction=a.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node))}})}),"sunburstHighlight");i.registerAction({type:o,update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){t=a.retrieveTargetInfo(n,[o],t);t&&(n.highlight=t.node)})});i.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){n.unhighlight=!0})})},function(t,e,n){var S=n(61).parsePercent,M=n(3),s=(Math.PI,Math.PI/180);function I(t,e){var i;return"function"==typeof e?t.sort(e):(i="asc"===e,t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}t.exports=function(t,e,r,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius"),i=(M.isArray(n)||(n=[0,n]),M.isArray(e)||(e=[e,e]),r.getWidth()),o=r.getHeight(),l=Math.min(i,o),u=S(e[0],i),c=S(e[1],o),h=S(n[0],l/2),i=S(n[1],l/2),e=-t.get("startAngle")*s,d=t.get("minAngle")*s,p=t.getData().tree.root,o=t.getViewRoot(),f=o.depth,n=t.get("sort"),a=(null!=n&&!function e(t,n){var i=t.children||[];t.children=I(i,n);i.length&&M.each(t.children,function(t){e(t,n)})}(o,n),0),g=(M.each(o.children,function(t){isNaN(t.getValue())||a++}),o.getValue()),m=Math.PI/(g||a)*2,y=0<o.depth,n=o.height-(y?-1:1),v=(i-h)/(n||1),x=t.get("clockwise"),_=t.get("stillShowZeroSum"),b=x?1:-1,w=function(t,e){var n,i,o,a,r,s;if(t)return n=e,t!==p&&(a=t.getValue(),(i=0===g&&_?m:a*m)<d?i=d:0,n=e+b*i,a=t.depth-f-(y?-1:1),o=h+v*a,a=h+v*(1+a),null!=(r=t.getModel()).get("r0")&&(o=S(r.get("r0"),l/2)),null!=r.get("r")&&(a=S(r.get("r"),l/2)),t.setLayout({angle:i,startAngle:e,endAngle:n,clockwise:x,cx:u,cy:c,r0:o,r:a})),t.children&&t.children.length&&(s=0,M.each(t.children,function(t){s+=w(t,e+s)})),n-e};y&&(i=2*Math.PI,p.setLayout({angle:i,startAngle:e,endAngle:e+i,clockwise:x,cx:u,cy:c,r0:h,r:h+v})),w(o,e)})}},function(t,e,n){var i=n(17),o=(n(335),n(619),n(620),n(621)),a=n(622),n=n(196);i.registerLayout(o),i.registerVisual(a),i.registerProcessor(n("themeRiver"))},function(t,e,n){var i=n(123),s=n(178),l=n(193).getDimensionTypeByAxis,u=n(133),m=n(3),o=n(116).encodeHTML,y=n(359),a=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=y().key(function(t){return t[2]}).entries(t),i=m.map(n,function(t){return{name:t.key,dataList:t.values}}),o=i.length,a=-1,r=-1,s=0;s<o;++s){var l=i[s].dataList.length;a<l&&(a=l,r=s)}for(var u=0;u<o;++u)if(u!==r)for(var c=i[u].name,h=0;h<a;++h){for(var d=i[r].dataList[h][0],p=i[u].dataList.length,f=-1,g=0;g<p;++g)if(i[u].dataList[g][0]===d){f=g;break}-1===f&&(t[e]=[],t[e][0]=d,t[e][1]=0,t[e][2]=c,e++)}return t},getInitialData:function(t,e){for(var e=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),t=m.filter(t.data,function(t){return void 0!==t[2]}),n=this.fixData(t||[]),i=[],o=this.nameMap=m.createHashMap(),a=0,r=0;r<n.length;++r)i.push(n[r][2]),o.get(n[r][2])||(o.set(n[r][2],a),a++);t=s(n,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:l(e)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),e=new u(t,this);return e.initData(n),e},getLayerSeries:function(){for(var n=this.getData(),t=n.count(),e=[],i=0;i<t;++i)e[i]=i;for(var o=y().key(function(t){return n.get("name",t)}).entries(e),a=m.map(o,function(t){return{name:t.key,indices:t.values}}),r=n.mapDimension("single"),s=0;s<a.length;++s)a[s].indices.sort(l);function l(t,e){return n.get(r,t)-n.get(r,e)}return a},getAxisTooltipData:function(t,e,n){m.isArray(t)||(t=t?[t]:[]);for(var i,o=this.getData(),a=this.getLayerSeries(),r=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=a[l].indices.length,d=0;d<h;++d){var p=o.get(t[0],a[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=a[l].indices[d])}r.push(c)}return{dataIndices:r,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.getName(t),e=e.get(e.mapDimension("value"),t);return!isNaN(e)&&null!=e||(e="-"),o(n+" : "+e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});t.exports=a},function(i,t,o){!function(t){var e=o(17),A=o(315).Polygon,D=o(48),n=o(3),r=n.bind,C=n.extend,s=o(162),n=e.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(w,t,e){var S=w.getData(),M=this.group,I=w.getLayerSeries(),n=S.getLayout("layoutInfo"),i=n.rect,n=n.boundaryGap;function o(t){return t.name}M.attr("position",[0,i.y+n[0]]);var i=new s(this._layersSeries||[],I,o,o),T={};function a(t,e,n){var i=this._layers;if("remove"===t)M.remove(i[e]);else{for(var o,a=[],r=[],s=I[e].indices,l=0;l<s.length;l++){var u=S.getItemLayout(s[l]),c=u.x,h=u.y0,u=u.y;a.push([c,h]),r.push([c,h+u]),o=S.getItemVisual(s[l],"color")}var d,p,f,g,m,y=S.getItemLayout(s[0]),v=S.getItemModel(s[l-1]),x=v.getModel("label"),_=x.get("margin"),t=("add"===t?(f=T[e]=new D.Group,d=new A({shape:{points:a,stackedOnPoints:r,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new D.Text({style:{x:y.x-_,y:y.y0+y.y/2}}),f.add(d),f.add(p),M.add(f),d.setClipPath((t=d.getBoundingRect(),b=w,g=function(){d.removeClipPath()},m=new D.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}}),D.initProps(m,{shape:{width:t.width+20,height:t.height+20}},b,g),m))):(f=i[n],d=f.childAt(0),p=f.childAt(1),M.add(f),T[e]=f,D.updateProps(d,{shape:{points:a,stackedOnPoints:r}},w),D.updateProps(p,{style:{x:y.x-_,y:y.y0+y.y/2}},w)),v.getModel("emphasis.itemStyle")),b=v.getModel("itemStyle");D.setTextStyle(p.style,x,{text:x.get("show")?w.getFormattedLabel(s[l-1],"normal")||S.getName(s[l-1]):null,textVerticalAlign:"middle"}),d.setStyle(C({fill:o},b.getItemStyle(["color"]))),D.setHoverStyle(d,t.getItemStyle())}}i.add(r(a,this,"add")).update(r(a,this,"update")).remove(r(a,this,"remove")).execute(),this._layersSeries=I,this._layers=T},dispose:function(){}});i.exports=n}.call(t,o(361))},function(t,e,n){var g=n(3),r=n(61);function s(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,a=t.getLayerSeries(),r=n.mapDimension("single"),s=n.mapDimension("value"),l=g.map(a,function(t){return g.map(t.indices,function(t){var e=o.dataToPoint(n.get(r,t));return e[1]=n.get(s,t),e})}),t=function(t){for(var e=t.length,n=t[0].length,i=[],o=[],a=0,r={},s=0;s<n;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];a<u&&(a=u),i.push(u)}for(var c=0;c<n;++c)o[c]=(a-i[c])/2;for(var h=a=0;h<n;++h){var d=i[h]+o[h];a<d&&(a=d)}return r.y0=o,r.max=a,r}(l),u=t.y0,c=e/t.max,h=a.length,d=a[0].indices.length,p=0;p<d;++p){i=u[p]*c,n.setItemLayout(a[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*c});for(var f=1;f<h;++f)i+=l[f-1][p][1]*c,n.setItemLayout(a[f].indices[p],{layerIndex:f,x:l[f][p][0],y0:i,y:l[f][p][1]*c})}}t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect(),a=(i.rect=o,t.get("boundaryGap")),n=n.getAxis();i.boundaryGap=a,"horizontal"===n.orient?(a[0]=r.parsePercent(a[0],o.height),a[1]=r.parsePercent(a[1],o.height),s(e,t,o.height-a[0]-a[1])):(a[0]=r.parsePercent(a[0],o.width),a[1]=r.parsePercent(a[1],o.width),s(e,t,o.width-a[0]-a[1])),e.setLayout("layoutInfo",i)})}},function(t,e,n){var s=n(3).createHashMap;t.exports=function(t){t.eachSeriesByType("themeRiver",function(n){var i=n.getData(),o=n.getRawData(),a=n.get("color"),r=s();i.each(function(t){r.set(i.getRawIndex(t),t)}),o.each(function(t){var e=o.getName(t),e=a[(n.nameMap.get(e)-1)%a.length],t=(o.setItemVisual(t,"color",e),r.get(t));null!=t&&i.setItemVisual(t,"color",e)})})}},function(t,e,n){var i=n(17),o=(n(624),n(625),n(627),n(167)),n=n(628);i.registerVisual(o("tree","circle")),i.registerLayout(n)},function(t,e,n){var i=n(123),r=n(253),a=n(116).encodeHTML,n=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i={},n=(i.leaves=n,r.createTree(e,this,i)),o=0;n.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return n.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),n.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),e=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return a(o+(isNaN(e)||null==e?"":" : "+e))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=n},function(t,e,n){var g=n(3),m=n(48),y=n(203),v=n(317).radialCoordinate,n=n(17).extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new m.Group,this.group.add(this._mainGroup)},render:function(i,t,n,e){var o=i.getData(),a=i.layoutInfo,r=this._mainGroup,s=i.get("layout"),l=("radial"===s?r.attr("position",[a.x+a.width/2,a.y+a.height/2]):r.attr("position",[a.x,a.y]),this._data),u={expandAndCollapse:i.get("expandAndCollapse"),layout:s,orient:i.getOrient(),curvature:i.get("lineStyle.curveness"),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};o.diff(l).add(function(t){c(o,t)&&h(o,t,null,r,i,u)}).update(function(t,e){var n=l.getItemGraphicEl(e);c(o,t)?h(o,t,n,r,i,u):n&&d(l,e,n,r,i,u)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&d(l,t,e,r,i,u)}).execute(),!0===u.expandAndCollapse&&o.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=o},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}});function c(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function x(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function h(t,e,n,i,o,a){var r,s,l,u=!n,c=t.tree.getNodeByDataIndex(e),h=c.getModel(),a=x(c,h,a),h=t.tree.root,d=c.parentNode!==h&&c.parentNode||c,p=t.getItemGraphicEl(d.dataIndex),d=d.getLayout(),p=p?{x:p.position[0],y:p.position[1],rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,f=c.getLayout(),u=(u?(n=new y(t,e,a)).attr("position",[p.x,p.y]):n.updateData(t,e,a),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),t.setItemGraphicEl(e,n),m.updateProps(n,{position:[f.x,f.y]},o),n.getSymbolPath());"radial"===a.layout&&(e=(t=h.children[0]).getLayout(),r=t.children.length,f.x===e.x&&!0===c.isExpand?((l={}).x=(t.children[0].getLayout().x+t.children[r-1].getLayout().x)/2,l.y=(t.children[0].getLayout().y+t.children[r-1].getLayout().y)/2,(s=Math.atan2(l.y-e.y,l.x-e.x))<0&&(s=2*Math.PI+s),(l=l.x<e.x)&&(s-=Math.PI)):((s=Math.atan2(f.y-e.y,f.x-e.x))<0&&(s=2*Math.PI+s),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(l=f.x<e.x)&&(s-=Math.PI):(l=f.x>e.x)||(s-=Math.PI)),u.setStyle({textPosition:l?"left":"right",textRotation:-s,textOrigin:"center",verticalAlign:"middle"})),c.parentNode&&c.parentNode!==h&&(t=(t=n.__edge)||(n.__edge=new m.BezierCurve({shape:_(a,p,p),style:g.defaults({opacity:0},a.lineStyle)})),m.updateProps(t,{shape:_(a,d,f),style:{opacity:1}},o),i.add(t))}function d(t,e,n,i,o,a){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),a=x(s,u,a),c=s.parentNode!==l&&s.parentNode||s;null==(r=c.getLayout());)c=c.parentNode!==l&&c.parentNode||c;m.updateProps(n,{position:[r.x+1,r.y+1]},o,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var h=n.__edge;h&&m.updateProps(h,{shape:_(a,r,r),style:{opacity:0}},o,function(){i.remove(h)})}function _(t,e,n){var i,o,a,r,s,l,u,c,h,d,p,f,g=t.orient;return"radial"===t.layout?(h=e.rawX,d=e.rawY,p=n.rawX,f=n.rawY,s=v(h,d),l=v(h,d+(f-d)*t.curvature),u=v(p,f+(d-f)*t.curvature),c=v(p,f),{x1:s.x,y1:s.y,x2:c.x,y2:c.y,cpx1:l.x,cpy1:l.y,cpx2:u.x,cpy2:u.y}):(h=e.x,d=e.y,p=n.x,f=n.y,"LR"!==g&&"RL"!==g||(i=h+(p-h)*t.curvature,o=d,a=p+(h-p)*t.curvature,r=f),"TB"!==g&&"BT"!==g||(i=h,o=d+(f-d)*t.curvature,a=p,r=f+(d-f)*t.curvature),{x1:h,y1:d,x2:p,y2:f,cpx1:i,cpy1:o,cpx2:a,cpy2:r})}t.exports=n},function(t,e){e.eachAfter=function(t,e,n){for(var i,o=[t],a=[];i=o.pop();)if(a.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;s<r.length;s++)o.push(r[s])}for(;i=a.pop();)e(i,n)},e.eachBefore=function(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var a=o.length-1;0<=a;a--)i.push(o[a])}}},function(t,e,n){n(17).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,t=t.getData().tree.getNodeByDataIndex(e);t.isExpand=!t.isExpand})})},function(t,e,n){var i=n(626),y=i.eachAfter,v=i.eachBefore,i=n(317),x=i.init,_=i.firstWalk,b=i.secondWalk,w=i.separation,S=i.radialCoordinate,M=i.getViewRect;t.exports=function(t,m){t.eachSeriesByType("tree",function(t){var e=M(t,e=m),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,a=null;a="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,w(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,w());var r,s,l,u,c,h,d,p,f,g=(e=t.getData().tree.root).children[0];g&&(x(e),y(g,_,a),e.hierNode.modifier=-g.hierNode.prelim,v(g,b),v(l=s=r=g,function(t){var e=t.getLayout().x;e<r.getLayout().x&&(r=t),e>s.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=r===s?1:a(r,s)/2,u=e-r.getLayout().x,p=d=h=c=0,"radial"===n?(c=i/(s.getLayout().x+e+u),h=o/(l.depth-1||1),v(g,function(t){d=(t.getLayout().x+u)*c,p=(t.depth-1)*h;var e=S(d,p);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:p},!0)})):"RL"===(f=t.getOrient())||"LR"===f?(h=o/(s.getLayout().x+e+u),c=i/(l.depth-1||1),v(g,function(t){p=(t.getLayout().x+u)*h,d="LR"===f?(t.depth-1)*c:i-(t.depth-1)*c,t.setLayout({x:d,y:p},!0)})):"TB"!==f&&"BT"!==f||(c=i/(s.getLayout().x+e+u),h=o/(l.depth-1||1),v(g,function(t){d=(t.getLayout().x+u)*c,p="TB"===f?(t.depth-1)*h:o-(t.depth-1)*h,t.setLayout({x:d,y:p},!0)})))})}},function(t,e,n){var i=n(17),o=(n(631),n(632),n(633),n(635)),n=n(634);i.registerVisual(o),i.registerLayout(n)},function(t,e,n){var b=n(48),w=n(109),S=n(3),M=n(159).wrapTreePathInfo;function i(t){this.group=new b.Group,t.add(this.group)}i.prototype={constructor:i,render:function(t,e,n,i){var o,a,r=t.getModel("breadcrumb"),s=this.group;s.removeAll(),r.get("show")&&n&&(a=(o=r.getModel("itemStyle")).getModel("textStyle"),e={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(n,e,a),this._renderContent(t,e,o,a,i),w.positionElement(s,e.pos,e.box))},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var o=i.getModel().get("name"),a=n.getTextRect(o),a=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:o,width:a})}},_renderContent:function(t,e,n,i,o){for(var a,r,s,l,u,c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),p=w.getAvailableSize(e.pos,e.box),f=e.totalWidth,g=e.renderList,m=g.length-1;0<=m;m--){var y=g[m],v=y.node,x=y.width,y=y.text,_=(f>p.width&&(f-=x-h,x=h,y=null),new b.Polygon({shape:{points:(a=c,r=0,_=x,s=d,l=m===g.length-1,u=void 0,u=[[l?a:a-5,r],[a+_,r],[a+_,r+s],[l?a:a-5,r+s]],0===m||u.splice(2,0,[a+_+5,r+s/2]),l||u.push([a,r+s/2]),u)},style:S.defaults(n.getItemStyle(),{lineJoin:"bevel",text:y,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:S.curry(o,v)}));this.group.add(_),l=t,a=v,_.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:a&&a.dataIndex,name:a&&a.name},treePathInfo:a&&M(a,l)},c+=x+8}},remove:function(){this.group.removeAll()}},t.exports=i},function(t,e,n){var o=n(3),i=n(123),a=n(253),r=n(122),s=n(116),l=s.encodeHTML,u=s.addCommas,c=n(159).wrapTreePathInfo,s=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,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)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;o.each(t.children,function(t){e(t);t=t.value;o.isArray(t)&&(t=t[0]),n+=t});var i=t.value;o.isArray(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);o.isArray(t.value)?t.value[0]=i:t.value=i}(n),t.levels||[]),i=t.levels=function(t,e){var n,e=e.get("color");if(e)return t=t||[],o.each(t,function(t){var t=new r(t),e=t.get("color");(t.get("itemStyle.color")||e&&"none"!==e)&&(n=!0)}),n||((t[0]||(t[0]={})).color=e.slice()),t}(i,e),t={};return t.levels=i,a.createTree(n,this,t).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),n=o.isArray(n)?u(n[0]):u(n),e=e.getName(t);return l(e+": "+n)},getDataParams:function(t){var e=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},o.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=o.createHashMap(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},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)}});t.exports=s},function(t,e,n){function O(t){return(t=W(t)).stroke=t.fill=t.lineWidth=null,t}var i=n(17),E=n(3),R=n(48),d=n(162),l=n(159),o=n(630),a=n(206),r=n(118),s=n(129),c=n(779),n=n(179),h=E.bind,N=R.Group,z=R.Rect,p=E.each,V=["label"],B=["emphasis","label"],G=["upperLabel"],F=["emphasis","upperLabel"],H=10,W=n([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),n=i.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=f(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,i){var o,a,r,s=e.findComponents({mainType:"series",subType:"treemap",query:i});E.indexOf(s,t)<0||(this.seriesModel=t,this.api=n,this.ecModel=e,s=l.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],t),e=i&&i.type,r=t.layoutInfo,o=!this._oldTree,a=this._storage,a="treemapRootToNode"===e&&s&&a?{rootNodeGroup:a.nodeGroup[s.node.getRawIndex()],direction:i.direction}:null,i=this._giveContainerGroup(r),r=this._doRender(i,t,a),o||e&&"treemapZoomToNode"!==e&&"treemapRootToNode"!==e?r.renderFinally():this._doAnimation(i,r,t,a),this._resetController(n),this._renderBreadcrumb(t,n,s))},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new N,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var i,o=e.getData().tree,a=this._oldTree,r=f(),s=f(),l=this._storage,u=[],c=E.curry(g,e,s,l,n,r,u),h=(!function i(o,a,r,s,l){s?p(a=o,function(t,e){t.isRemoved()||n(e,e)}):new d(a,o,t,t).add(n).update(n).remove(E.curry(n,null)).execute();function t(t){return t.getId()}function n(t,e){var t=null!=t?o[t]:null,e=null!=e?a[e]:null,n=c(t,e,r,l);n&&i(t&&t.viewChildren||[],e&&e.viewChildren||[],n,s,l+1)}}(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0),i=f(),(e=l)&&p(e,function(t,e){var n=i[e];p(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),i);return this._oldTree=o,this._storage=s,{lastsForAnimation:r,willDeleteEls:h,renderFinally:function(){p(h,function(t){p(t,function(t){t.parent&&t.parent.remove(t)})}),p(u,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,o,e,r){var s,l,u;e.get("animation")&&(s=e.get("animationDurationUpdate"),l=e.get("animationEasing"),u=c.createWrap(),p(o.willDeleteEls,function(t,a){p(t,function(t,e){var n,i,o;!t.invisible&&(o=t.parent,o=r&&"drillDown"===r.direction?o===r.rootNodeGroup?{shape:{x:0,y:0,width:o.__tmNodeWidth,height:o.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(i=n=0,o.__tmWillDelete||(n=o.__tmNodeWidth/2,i=o.__tmNodeHeight/2),"nodeGroup"===a?{position:[n,i],style:{opacity:0}}:{shape:{x:n,y:i,width:0,height:0},style:{opacity:0}}))&&u.add(t,o,s,l)})}),p(this._storage,function(t,i){p(t,function(t,e){var e=o.lastsForAnimation[i][e],n={};e&&("nodeGroup"===i?e.old&&(n.position=t.position.slice(),t.attr("position",e.old)):(e.old&&(n.shape=E.extend({},t.shape),t.setShape(e.old)),e.fadein?(t.setStyle("opacity",0),n.style={opacity:1}):1!==t.style.opacity&&(n.style={opacity:1})),u.add(t,n,s,l))})},this),this._state="animating",u.done(h(function(){this._state="ready",o.renderFinally()},this)).start())},_resetController:function(t){var e=this._controller,i=(e||((e=this._controller=new a(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",h(this._onPan,this)),e.on("zoom",h(this._onZoom,this))),new r(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&t.dispose()},_onPan:function(t,e){var n;"animating"!==this._state&&(3<Math.abs(t)||3<Math.abs(e))&&(n=this.seriesModel.getData().tree.root)&&(n=n.getLayout())&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})},_onZoom:function(t,e,n){var i,o;"animating"!==this._state&&(i=this.seriesModel.getData().tree.root)&&(i=i.getLayout())&&(i=new r(i.x,i.y,i.width,i.height),e-=(o=this.seriesModel.layoutInfo).x,n-=o.y,o=s.create(),s.translate(o,o,[-e,-n]),s.scale(o,o,[t,t]),s.translate(o,o,[e,n]),i.applyTransform(o),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x,y:i.y,width:i.width,height:i.height}}))},_initEvents:function(t){t.on("click",function(t){var e,n;"ready"===this._state&&(n=this.seriesModel.get("nodeClick",!0))&&(e=this.findTarget(t.offsetX,t.offsetY))&&((t=e.node).getLayout().isLeafRoot?this._rootToNode(e):"zoomToNode"===n?this._zoomToNode(e):"link"===n&&(n=(e=t.hostTree.data.getItemModel(t.dataIndex)).get("link",!0),t=e.get("target",!0)||"blank",n)&&window.open(n,t))},this)},_renderBreadcrumb:function(e,t,n){n=(n=n||(null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2)))||{node:e.getData().tree.root},(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(e,t,n.node,h(function(t){"animating"!==this._state&&(l.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=f(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(i,o){var a;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(t){var e=this._storage.background[t.getRawIndex()];if(e){var n=e.transformCoordToLocal(i,o),e=e.shape;if(!(e.x<=n[0]&&n[0]<=e.x+e.width&&e.y<=n[1]&&n[1]<=e.y+e.height))return!1;a={node:t,offsetX:n[0],offsetY:n[1]}}},this),a}});function f(){return{nodeGroup:[],background:[],content:[]}}function g(c,l,u,h,d,n,p,t,e,i){if(p){var f=p.getLayout();if(f&&f.isInView){var o,a,r,s,g,m,y,v,x,_=f.width,b=f.height,w=f.borderWidth,S=f.invisible,M=p.getRawIndex(),I=t&&t.getRawIndex(),t=p.viewChildren,T=f.upperHeight,t=t&&t.length,A=p.getModel("itemStyle"),D=p.getModel("emphasis.itemStyle"),C=k("nodeGroup",N);if(C)return e.add(C),C.attr("position",[f.x||0,f.y||0]),C.__tmNodeWidth=_,C.__tmNodeHeight=b,f.isAboveViewRoot||((e=k("background",z,i,1))&&(g=C,o=e,a=t&&f.upperHeight,o.dataIndex=p.dataIndex,o.seriesIndex=c.seriesIndex,o.setShape({x:0,y:0,width:_,height:b}),r=p.getVisual("borderColor",!0),s=D.get("borderColor"),L(o,function(){var t,e=O(A),n=(e.fill=r,W(D));n.fill=s,a?P(e,n,r,t=_-2*w,T,{x:w,y:0,width:t,height:T}):e.text=n.text=null,o.setStyle(e),R.setHoverStyle(o,n)}),g.add(o)),t)||(e=k("content",z,i,2))&&(g=C,(m=e).dataIndex=p.dataIndex,m.seriesIndex=c.seriesIndex,y=Math.max(_-2*w,0),v=Math.max(b-2*w,0),m.culling=!0,m.setShape({x:w,y:w,width:y,height:v}),x=p.getVisual("color",!0),L(m,function(){var t=O(A),e=(t.fill=x,W(D));P(t,e,x,y,v),m.setStyle(t),R.setHoverStyle(m,e)}),g.add(m)),C}}function L(t,e){S?t.invisible||n.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function P(t,e,n,i,o,a){var r=p.getModel(),s=E.retrieve(c.getFormattedLabel(p.dataIndex,"normal",null,null,a?"upperLabel":"label"),r.get("name")),l=(!a&&f.isLeafRoot&&(s=(l=c.get("drillDownIcon",!0))?l+" "+s:s),r.getModel(a?G:V)),r=r.getModel(a?F:B),u=l.getShallow("show");R.setLabelStyle(t,e,l,r,{defaultText:u?s:null,autoColor:n,isRectText:!0}),a&&(t.textRect=E.clone(a)),t.truncate=u&&l.get("ellipsis")?{outerWidth:i,outerHeight:o,minChar:2}:null}function k(t,e,n,i){var o,a,r=null!=I&&u[t][I],s=d[t];return r?(u[t][I]=null,o=r,a=t,(s[M]={}).old="nodeGroup"===a?o.position.slice():E.extend({},o.shape)):S||((r=new e({z:function(t,e){t=t*H+e;return(t-1)/t}(n,i)})).__tmDepth=n,a=r.__tmStorageName=t,o=(o=s)[M]={},!(e=p.parentNode)||h&&"drillDown"!==h.direction||(n=i=0,e=d.background[e.getRawIndex()],!h&&e&&e.old&&(i=e.old.width,n=e.old.height),o.old="nodeGroup"===a?[0,n]:{x:i,y:n,width:0,height:0}),o.fadein="nodeGroup"!==a),l[t][M]=r}}t.exports=n},function(t,e,n){function i(){}for(var o=n(17),a=n(159),r=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<r.length;s++)o.registerAction({type:r[s],update:"updateView"},i);o.registerAction({type:"treemapRootToNode",update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"treemap",query:o},function(t,e){var n=a.retrieveTargetInfo(o,["treemapZoomToNode","treemapRootToNode"],t);{var i;n&&((i=t.getViewRoot())&&(o.direction=a.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node))}})})},function(t,e,n){var f=n(3),g=n(118),i=n(61),m=i.parsePercent,y=i.MAX_SAFE_INTEGER,v=n(109),x=n(159),w=Math.max,S=Math.min,_=f.retrieve,b=f.each,M=["itemStyle","borderWidth"],I=["itemStyle","gapWidth"],o=["upperLabel","show"],a=["upperLabel","height"];function T(t,e,n,i,o,a){var r,s=t.children||[],l=i.sort,i=("asc"!==l&&"desc"!==l&&(l=null),null!=i.leafDepth&&i.leafDepth<=a);if(o&&!i)return t.viewChildren=[];s=f.filter(s,function(t){return!t.isRemoved()}),a=s,(r=l)&&a.sort(function(t,e){var n="asc"===r?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===r?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n});var u=function(t,e,n){for(var i=0,o=0,a=e.length;o<a;o++)i+=e[o].getValue();var r=t.get("visualDimension");{var s;e&&e.length?"value"===r&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&s.reverse()):(s=[1/0,-1/0],b(e,function(t){t=t.getValue(r);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})):s=[NaN,NaN]}return{sum:i,dataExtent:s}}(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(i){for(var a=t.get("visibleMin"),r=o.length,s=r,l=r-1;0<=l;l--){var u=o["asc"===i?r-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}"asc"===i?o.splice(0,r-s):o.splice(s,r-s)}return n}(e,n,u.sum,l,s),0===u.sum)return t.viewChildren=[];for(var c=0,h=s.length;c<h;c++){var d=s[c].getValue()/u.sum*n;s[c].setLayout({area:d})}return i&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function A(t,e,n){for(var i,o=0,a=1/0,r=0,s=t.length;r<s;r++)(i=t[r].getLayout().area)&&(i<a&&(a=i),o<i)&&(o=i);var l=t.area*t.area,e=e*e*n;return l?w(e*o/l,l/(e*a)):1/0}function D(t,e,n,i,o){var a=e===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(o||c>n[l[r]])&&(c=n[l[r]]);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[r]]=w(c-2*i,0),y=n[s[a]]+n[l[a]]-u,y=h===d-1||y<g?y:g,g=f[l[a]]=w(y-2*i,0);f[s[r]]=n[s[r]]+S(i,m/2),f[s[a]]=u+S(i,g/2),u+=y,p.setLayout(f,!0)}n[s[r]]+=c,n[l[r]]-=c}function C(t){return t.get(o)?t.get(a):0}t.exports={seriesType:"treemap",reset:function(t,e,n,i){var o,a=n.getWidth(),r=n.getHeight(),s=t.option,n=v.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],u=m(_(n.width,l[0]),a),l=m(_(n.height,l[1]),r),c=i&&i.type,h=x.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===c||"treemapMove"===c?i.rootRect:null,d=t.getViewRoot(),p=x.getPathToRoot(d),u=("treemapMove"!==c&&(c="treemapZoomToNode"===c?function(t,e,n,i,o){var a,r=(e||{}).node,s=[i,o];if(!r||r===n)return s;var e=i*o,l=e*t.option.zoomToNodeRatio;for(;a=r.parentNode;){for(var u=0,c=a.children,h=0,d=c.length;h<d;h++)u+=c[h].getValue();var p=r.getValue();if(0===p)return s;l*=u/p;var p=a.getModel(),f=p.get(M),p=Math.max(f,C(p));l+=4*f*f+(3*f+p)*Math.pow(l,.5),y<l&&(l=y),r=a}l<e&&(l=e);n=Math.pow(l/e,.5);return[i*n,o*n]}(t,h,d,u,l):i?[i.width,i.height]:[u,l],u=s.sort,l={squareRatio:s.squareRatio,sort:u=u&&"asc"!==u&&"desc"!==u?"desc":u,leafDepth:s.leafDepth},d.hostTree.clearLayouts(),o={x:0,y:0,width:c[0],height:c[1],area:c[0]*c[1]},d.setLayout(o),function t(e,n,i,o){var a;if(e.isRemoved())return;var r=e.getLayout();a=r.width;r=r.height;var s=e.getModel();var l=s.get(M);var u=s.get(I)/2;var c=C(s);var h=Math.max(l,c);var d=l-u;var p=h-u;s=e.getModel();e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);a=w(a-2*d,0);r=w(r-d-p,0);l=a*r;var f=T(e,s,l,n,i,o);if(!f.length)return;var g={x:d,y:p,width:a,height:r};var m=S(a,r);var y=1/0;var v=[];v.area=0;for(var x=0,_=f.length;x<_;){var b=f[x],b=(v.push(b),v.area+=b.getLayout().area,A(v,m,n.squareRatio));y=b<=y?(x++,b):(v.area-=v.pop().getLayout().area,D(v,m,g,u,!1),m=S(g.width,g.height),1/(v.length=v.area=0))}v.length&&D(v,m,g,u,!0);i||null!=(h=s.get("childrenVisibleMin"))&&l<h&&(i=!0);for(x=0,_=f.length;x<_;x++)t(f[x],n,i,o+1)}(d,l,!1,0),o=d.getLayout(),b(p,function(t,e){e=(p[e+1]||d).getValue();t.setLayout(f.extend({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))})),t.getData().tree.root);u.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};e={x:0,y:0};if(!n)return e;var n=n.node,i=n.getLayout();if(!i)return e;var o=[i.width/2,i.height/2],a=n;for(;a;){var r=a.getLayout();o[0]+=r.x,o[1]+=r.y,a=a.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(n,i,h),!0),t.setLayoutInfo(n),function e(t,n,i,o,a){var r=t.getLayout();var s=i[a];var l=s&&s===t;if(s&&!l||a===i.length&&t!==o)return;t.setLayout({isInView:!0,invisible:!l&&!n.intersect(r),isAboveViewRoot:l},!0);var u=new g(n.x-r.x,n.y-r.y,n.width,n.height);b(t.viewChildren||[],function(t){e(t,u,i,o,a+1)})}(u,new g(-n.x,-n.y,a,r),p,d,0)}}},function(t,e,n){var s=n(166),i=n(148),f=n(3),o=f.isArray,g="itemStyle";function m(n,i,o,a){var r=f.extend({},i);return f.each(["color","colorAlpha","colorSaturation"],function(t){var e=n.get(t,!0);null!=(e=null==(e=null==(e=null==e&&o?o[t]:e)?i[t]:e)?a.get(t):e)&&(r[t]=e)}),r}function y(t){var e,n=a(t,"color");if(n)return e=a(t,"colorAlpha"),(t=a(t,"colorSaturation"))&&(n=i.modifyHSL(n,null,null,t)),e?i.modifyAlpha(n,e):n}function v(t,e){return null!=e?i.modifyHSL(e,null,null,t):null}function a(t,e){t=t[e];if(null!=t&&"none"!==t)return t}function x(t,e,n,i,o,a){if(a&&a.length){var r,a=l(e,"color")||null!=o.color&&"none"!==o.color&&(l(e,"colorAlpha")||l(e,"colorSaturation"));if(a)return o=e.get("visualMin"),r=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&o<n[0]&&(n[0]=o),null!=r&&r>n[1]&&(n[1]=r),o=e.get("colorMappingBy"),"color"!==(r={type:a.name,dataExtent:n,visual:a.range}).type||"index"!==o&&"id"!==o?r.mappingMethod="linear":(r.mappingMethod="category",r.loop=!0),(e=new s(r)).__drColorMappingBy=o,e}}function l(t,e){t=t.get(e);return o(t)&&t.length?{name:e,range:t}:null}function _(t,e,n,i,o,a){var r,s,e=f.extend({},e);return o&&(i="index"===(s="color"===(r=o.type)&&o.__drColorMappingBy)?i:"id"===s?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[r]=o.mapValueToVisual(i)),e}t.exports={seriesType:"treemap",reset:function(t,e,n,i){var o=t.getData().tree,a=o.root,r=t.getModel(g);a.isRemoved()||!function n(t,e,i,o,a,r){var s=t.getModel();var l=t.getLayout();if(!l||l.invisible||!l.isInView)return;var u=t.getModel(g);var c=i[t.depth];var h=m(u,e,c,o);e=u.get("borderColor");c=u.get("borderColorSaturation");var d;null!=c&&(d=y(h),e=v(c,d));t.setVisual("borderColor",e);c=t.viewChildren;{var p;c&&c.length?(p=x(0,s,l,0,h,c),f.each(c,function(t,e){(t.depth>=a.length||t===a[t.depth])&&(e=_(s,h,t,e,p,r),n(t,e,i,o,a,r))})):(d=y(h),t.setVisual("color",d))}}(a,{},f.map(o.levelModels,function(t){return t?t.get(g):null}),r,t.getViewRoot().getAncestors(),t)}}},function(t,e,n){n(252),n(643)},function(t,e,n){n(345),n(644)},function(t,e,n){n=n(17).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}});t.exports=n},function(t,e,n){var i=n(17),o=n(320),a=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";o.register("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){o.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){o.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}});t.exports=a},function(t,e,n){var h=n(116),i=n(243),d=n(48),p=n(205),f=n(129),g=n(160),n=n(161),i=i.extend({makeElOption:function(t,e,n,i,o){var a,r=n.axis,s=("angle"===r.dim&&(this.animationThreshold=Math.PI/18),r.polar),l=s.getOtherAxis(r).getExtent(),u=r["dataTo"+h.capitalFirst(r.dim)](e),c=i.get("type");c&&"none"!==c&&(a=p.buildElStyle(i),(c=m[c](r,s,u,l,a)).style=a,t.graphicKey=c.type,t.pointer=c);r=function(t,e,n,i){var o,a,r=e.axis,t=r.dataToCoord(t),s=(l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI,n.getRadiusAxis().getExtent());{var l;s="radius"===r.dim?(r=f.create(),f.rotate(r,r,l),f.translate(r,r,[n.cx,n.cy]),o=d.applyTransform([t,-i],r),r=e.getModel("axisLabel").get("rotate")||0,e=g.innerTextLayout(l,r*Math.PI/180,-1),a=e.textAlign,e.textVerticalAlign):(l=s[1],o=n.coordToPoint([l+i,t]),r=n.cx,e=n.cy,a=Math.abs(o[0]-r)/l<.3?"center":o[0]>r?"left":"right",Math.abs(o[1]-e)/l<.3?"middle":o[1]>e?"top":"bottom")}return{position:o,align:a,verticalAlign:s}}(e,n,s,i.get("label.margin"));p.buildLabelElOption(t,n,i,o,r)}});var m={line:function(t,e,n,i,o){return"angle"===t.dim?{type:"Line",shape:p.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,o){var a=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:p.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:p.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};n.registerAxisPointerClass("PolarAxisPointer",i),t.exports=i},function(t,e,n){var o=n(48),i=n(243),c=n(205),h=n(350),n=n(161),a=["x","y"],r=["width","height"],i=i.extend({makeElOption:function(t,e,n,i,o){var a,r=n.axis,s=r.coordinateSystem,l=f(s,1-p(r)),s=s.dataToPoint(e)[0],u=i.get("type"),r=(u&&"none"!==u&&(a=c.buildElStyle(i),(u=d[u](r,s,l,a)).style=a,t.graphicKey=u.type,t.pointer=u),h.layout(n));c.buildCartesianSingleLabelElOption(e,t,r,n,i,o)},getHandleTransform:function(t,e,n){var i=h.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:c.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=p(n),a=f(o,n),r=t.position,e=(r[n]+=e[n],r[n]=Math.min(a[1],r[n]),r[n]=Math.max(a[0],r[n]),f(o,1-n)),a=(e[1]+e[0])/2,o=[a,a];return o[n]=r[n],{position:r,rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}}}),d={line:function(t,e,n,i){e=c.makeLineShape([e,n[0]],[e,n[1]],p(t));return o.subPixelOptimizeLine({shape:e,style:i}),{type:"Line",shape:e}},shadow:function(t,e,n,i){var o=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:c.makeRectShape([e-o/2,n[0]],[o,a],p(t))}}};function p(t){return t.isHorizontal()?0:1}function f(t,e){t=t.getRect();return[t[a[e]],t[a[e]]+t[r[e]]]}n.registerAxisPointerClass("SingleAxisPointer",i),t.exports=i},function(t,e,n){var w=n(3),i=n(77).makeInner,u=n(204),S=n(319),M=w.each,I=w.curry,T=i();function A(t,e,n,i,o){var a,r,s,l,u,c,h,d,p,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(r=e,s=t.axis,l=s.dim,u=r,c=[],h=Number.MAX_VALUE,d=-1,M(t.seriesModels,function(e,t){var n,i=e.getData().mapDimension(l,!0);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,r,s),a=o.dataIndices,o=o.nestestValue;else{if(!(a=e.getData().indicesOfNearest(i[0],r,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],a[0])}null!=o&&isFinite(o)&&(i=r-o,(n=Math.abs(i))<=h)&&((n<h||0<=i&&d<0)&&(h=n,d=i,u=o,c.length=0),M(a,function(t){c.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(a={payloadBatch:c,snapToValue:u}).snapToValue,(p=a.payloadBatch)[0]&&null==o.seriesIndex&&w.extend(o,p[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,p,o),n.showTooltip(t,a,f)):n.showPointer(t,e))}function D(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function C(t,e,n,i){var o,a,n=n.payloadBatch,r=e.axis,s=r.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(e=e.coordSys.model,o=u.makeKey(e),(a=t.map[o])||(a=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(a)),a.dataByAxis.push({axisDim:r.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:n.slice()}))}function L(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function P(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,n){var a,r,i,s,l,o,u,c,h,d,p,f,g,m,y=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||w.bind(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return P(v)&&(v=S({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),a=P(v),r=x.axesInfo,i=b.axesInfo,s="leave"===y||P(v),l={},e={list:[],map:{}},u={showPointer:I(D,o={}),showTooltip:I(C,e)},M(b.coordSysMap,function(t,e){var o=a||t.containPoint(v);M(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(r,t);s||!o||r&&!i||null!=(i=null!=(i=i&&i.value)||a?i:n.pointToData(v))&&A(t,i,u,!1,l)})}),c={},M(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&M(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,L(t),L(n)))),c[n.key]=e)})}),M(c,function(t,e){A(i[e],t,u,!0,l)}),h=o,x=i,d=l.axesInfo=[],M(x,function(t,e){var n=t.axisPointerModel.option,e=h[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&d.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),y=e,x=t,e=_,P(t=v)||!y.list.length?e({type:"hideTip"}):(_=((y.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:y.list})),e=i,x=(t=n).getZr(),_="axisPointerLastHighlights",p=T(x)[_]||{},f=T(x)[_]={},M(e,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&M(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],m=[],w.each(p,function(t,e){f[e]||m.push(t)}),w.each(f,function(t,e){p[e]||g.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,batch:m}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,batch:g}),l}},function(t,e,n){var g=n(3),m=n(48),f=n(122),n=n(161),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function c(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function y(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}n=n.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){var n,i,o,a,r;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),l(r=g.map(n.getViewLabels(),function(t){return(t=g.clone(t)).coord=n.dataToCoord(t.tickValue),t})),l(a),g.each(s,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,a,o,r)},this))},_axisLine:function(t,e,n,i){t=t.getModel("axisLine.lineStyle"),i=new m.Circle({shape:{cx:e.cx,cy:e.cy,r:i[y(e)]},style:t.getLineStyle(),z2:1,silent:!0});i.style.fill=null,this.group.add(i)},_axisTick:function(t,e,n,i){var o=t.getModel("axisTick"),a=(o.get("inside")?-1:1)*o.get("length"),r=i[y(e)],i=g.map(n,function(t){return new m.Line({shape:c(e,[r,r+a],t.coord)})});this.group.add(m.mergePath(i,{style:g.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(l,u,t,c,e){var h=l.getCategories(!0),d=l.getModel("axisLabel"),p=d.get("margin");g.each(e,function(t,e){var n=d,i=t.tickValue,o=c[y(u)],a=u.coordToPoint([o+p,t.coord]),r=u.cx,s=u.cy,r=Math.abs(a[0]-r)/o<.3?"center":a[0]>r?"left":"right",o=Math.abs(a[1]-s)/o<.3?"middle":a[1]>s?"top":"bottom",s=(h&&h[i]&&h[i].textStyle&&(n=new f(h[i].textStyle,d,d.ecModel)),new m.Text({silent:!0}));this.group.add(s),m.setTextStyle(s.style,n,{x:a[0],y:a[1],textFill:n.getTextColor()||l.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:r,textVerticalAlign:o})},this)},_splitLine:function(t,e,n,i){for(var o=t.getModel("splitLine").getModel("lineStyle"),a=0,r=(r=o.get("color"))instanceof Array?r:[r],s=[],l=0;l<n.length;l++){var u=a++%r.length;s[u]=s[u]||[],s[u].push(new m.Line({shape:c(e,i,n[l].coord)}))}for(l=0;l<s.length;l++)this.group.add(m.mergePath(s[l],{style:g.defaults({stroke:r[l%r.length]},o.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,n,i){if(n.length){for(var o=t.getModel("splitArea").getModel("areaStyle"),a=0,r=(r=o.get("color"))instanceof Array?r:[r],s=[],l=Math.PI/180,u=-n[0].coord*l,c=Math.min(i[0],i[1]),h=Math.max(i[0],i[1]),d=t.get("clockwise"),p=1;p<n.length;p++){var f=a++%r.length;s[f]=s[f]||[],s[f].push(new m.Sector({shape:{cx:e.cx,cy:e.cy,r0:c,r:h,startAngle:u,endAngle:-n[p].coord*l,clockwise:d},silent:!0})),u=-n[p].coord*l}for(p=0;p<s.length;p++)this.group.add(m.mergePath(s[p],{style:g.defaults({fill:r[p%r.length]},o.getAreaStyle()),silent:!0}))}}});t.exports=n},function(t,e,n){var _=n(3),b=n(48),s=n(160),i=n(161),l=n(346),u=["axisLine","axisTickLabel","axisName"],c=["splitArea","splitLine"],h=i.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,i){this.group.removeAll();var o,a,r=this._axisGroup;this._axisGroup=new b.Group,this.group.add(this._axisGroup),e.get("show")&&(o=e.getCoordSysModel(),a=l.layout(o,e),a=new s(e,a),_.each(u,a.add,a),this._axisGroup.add(a.getGroup()),_.each(c,function(t){e.get(t+".show")&&this["_"+t](e,o)},this),b.groupTransition(r,this._axisGroup,e),h.superCall(this,"render",e,t,n,i))},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank())for(var t=t.getModel("splitLine"),i=t.getModel("lineStyle"),o=i.get("color"),o=_.isArray(o)?o:[o],a=e.coordinateSystem.getRect(),r=n.isHorizontal(),s=0,l=n.getTicksCoords({tickModel:t}),u=[],c=[],h=i.getLineStyle(),d=0;d<l.length;d++){var p=n.toGlobalCoord(l[d].coord),p=(r?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p),s++%o.length),f=l[d].tickValue;this._axisGroup.add(new b.Line(b.subPixelOptimizeLine({anid:null!=f?"line_"+l[d].tickValue:null,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:_.defaults({stroke:o[p]},h),silent:!0})))}},_splitArea:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var t=t.getModel("splitArea"),i=t.getModel("areaStyle"),o=i.get("color"),a=e.coordinateSystem.getRect(),r=n.getTicksCoords({tickModel:t,clamp:!0});if(r.length){var s=o.length,l=this._splitAreaColors,u=_.createHashMap(),c=0;if(l)for(var h=0;h<r.length;h++){var d=l.get(r[h].tickValue);if(null!=d){c=(d+(s-1)*h)%s;break}}for(var p=n.toGlobalCoord(r[0].coord),f=i.getAreaStyle(),o=_.isArray(o)?o:[o],h=1;h<r.length;h++){var g,m,y,v,x=n.toGlobalCoord(r[h].coord),p=n.isHorizontal()?(g=p,m=a.y,v=a.height,g+(y=x-g)):(g=a.x,m=p,y=a.width,m+(v=x-m)),x=r[h-1].tickValue;null!=x&&u.set(x,c),this._axisGroup.add(new b.Rect({anid:null!=x?"area_"+x:null,shape:{x:g,y:m,width:y,height:v},style:_.defaults({fill:o[c]},f),silent:!0})),c=(c+1)%s}this._splitAreaColors=u}}}});h.extend({type:"xAxis"}),h.extend({type:"yAxis"})},function(t,e,n){var i=n(17),c=n(3),u=n(160),o=n(245),h=n(328),d=n(48),p=["axisLine","axisTickLabel","axisName"],a=i.extendComponentView({type:"parallelAxis",init:function(t,e){a.superApply(this,"init",arguments),(this._brushController=new o(e.getZr())).on("brush",c.bind(this._onBrush,this))},render:function(t,e,n,i){var o,a,r,s,l;l=t,o=e,(a=i)&&"axisAreaSelect"===a.type&&o.findComponents({mainType:"parallelAxis",query:a})[0]===l||(this.axisModel=t,this.api=n,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new d.Group,this.group.add(this._axisGroup),t.get("show")&&(l=(a=e.getComponent("parallel",t.get("parallelIndex"))).coordinateSystem,r=(e=t.getAreaSelectStyle()).width,s=t.axis.dim,l=l.getAxisLayout(s),s=c.extend({strokeContainThreshold:r},l),l=new u(t,s),c.each(p,l.add,l),this._axisGroup.add(l.getGroup()),this._refreshBrushController(s,e,t,a,r,n),l=i&&!1===i.animation?null:t,d.groupTransition(o,this._axisGroup,l)))},_refreshBrushController:function(t,e,n,i,o,a){var r,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),s=d.BoundingRect.create({x:s[0],y:-o/2,width:l,height:o});s.x-=u,s.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:h.makeRectPanelClipPath(s),isTargetByCursor:h.makeRectIsTargetByCursor(s,a,i),getLinearBrushOtherExtent:h.makeLinearBrushOtherExtent(s,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((r=n.axis,c.map(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[r.dataToCoord(t[0],!0),r.dataToCoord(t[1],!0)]}})))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,t=c.map(t,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});!n.option.realtime!==e.isEnd&&!e.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:t})},dispose:function(){this._brushController.dispose()}});t.exports=a},function(t,e,n){var d=n(3),p=n(48),l=n(160),n=n(161),u=["axisLine","axisTickLabel","axisName"],c=["splitLine","splitArea"],n=n.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){var n,i,o,a,r,s;this.group.removeAll(),e.get("show")&&(n=e.axis,s=(i=n.polar).getAngleAxis(),o=n.getTicksCoords(),a=s.getExtent()[0],r=n.getExtent(),s={position:[i.cx,i.cy],rotation:a/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1},s=new l(e,s),d.each(u,s.add,s),this.group.add(s.getGroup()),d.each(c,function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,i,a,r,o)},this))},_splitLine:function(t,e,n,i,o){for(var a=t.getModel("splitLine").getModel("lineStyle"),r=0,s=(s=a.get("color"))instanceof Array?s:[s],l=[],u=0;u<o.length;u++){var c=r++%s.length;l[c]=l[c]||[],l[c].push(new p.Circle({shape:{cx:e.cx,cy:e.cy,r:o[u].coord},silent:!0}))}for(u=0;u<l.length;u++)this.group.add(p.mergePath(l[u],{style:d.defaults({stroke:s[u%s.length],fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(t,e,n,i,o){if(o.length){for(var a=t.getModel("splitArea").getModel("areaStyle"),r=0,s=(s=a.get("color"))instanceof Array?s:[s],l=[],u=o[0].coord,c=1;c<o.length;c++){var h=r++%s.length;l[h]=l[h]||[],l[h].push(new p.Sector({shape:{cx:e.cx,cy:e.cy,r0:u,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=o[c].coord}for(c=0;c<l.length;c++)this.group.add(p.mergePath(l[c],{style:d.defaults({fill:s[c%s.length]},a.getAreaStyle()),silent:!0}))}}});t.exports=n},function(t,e,n){var r=n(3),s=n(160),g=n(48),l=n(350),n=n(161),u=["axisLine","axisTickLabel","axisName"],c=n.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var o=this.group,a=(o.removeAll(),l.layout(t)),a=new s(t,a);r.each(u,a.add,a),o.add(a.getGroup()),t.get("splitLine.show")&&this._splitLine(t),c.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){for(var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),o=i.get("width"),a=(a=i.get("color"))instanceof Array?a:[a],r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,c=e.getTicksCoords({tickModel:n}),h=[],d=[],p=0;p<c.length;++p){var f=e.toGlobalCoord(c[p].coord),f=(s?(h[0]=f,h[1]=r.y,d[0]=f,d[1]=r.y+r.height):(h[0]=r.x,h[1]=f,d[0]=r.x+r.width,d[1]=f),u++%a.length);l[f]=l[f]||[],l[f].push(new g.Line(g.subPixelOptimizeLine({shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:{lineWidth:o},silent:!0})))}for(p=0;p<l.length;++p)this.group.add(g.mergePath(l[p],{style:{stroke:a[p%a.length],lineDash:i.getLineDash(o),lineWidth:o},silent:!0}))}}});t.exports=c},function(t,e,n){n=n(17);n.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})},function(t,e,n){var i=n(17),o=n(653);n(655),n(650),n(651),n(652),n(706),i.registerPreprocessor(o)},function(t,e,n){n(79).__DEV__;var i=n(17),o=n(3),a=n(216),r=n(122),s=["#ddd"],n=i.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option,e=(e||a.replaceVisualOption(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:s},e.hasOwnProperty("liftZ")||(e.liftZ=5)},setAreas:function(t){t&&(this.areas=o.map(t,function(t){return l(this.option,t)},this))},setBrushOption:function(t){this.brushOption=l(this.option,t),this.brushType=this.brushOption.brushType}});function l(t,e){return o.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new r(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}t.exports=n},function(t,e,n){var i=n(17),o=n(3),a=n(245),n=i.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new a(e.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,r.apply(this,arguments)},updateTransform:r,updateView:r,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),e.isEnd&&!e.removeOnClick||this.api.dispatchAction({type:"brush",brushId:n,areas:o.clone(t),$from:n})}});function r(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=n},function(t,e,n){n=n(17);n.registerAction({type:"brush",event:"brush"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(t,e,n){var r=n(3),s=["rect","polygon","keep","clear"];t.exports=function(t,e){var n,i,o,a=t&&t.brush;(a=r.isArray(a)?a:a?[a]:[]).length&&(n=[],r.each(a,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),a=t&&t.toolbox,(a=r.isArray(a)?a[0]:a)||(t.toolbox=[a={feature:{}}]),(t=(a=(t=a.feature||(a.feature={})).brush||(t.brush={})).type||(a.type=[])).push.apply(t,n),i=t,o={},r.each(i,function(t){o[t]=1}),i.length=0,r.each(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,s)}},function(t,e,n){var l=n(366),u=n(118),n={lineX:i(0),lineY:i(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&l.contain(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,a,r,s,n=n.range;return!(!t||n.length<=1)&&(i=t.x,o=t.y,a=t.width,r=t.height,s=n[0],!!(l.contain(n,i,o)||l.contain(n,i+a,o)||l.contain(n,i,o+r)||l.contain(n,i+a,o+r)||u.create(t).contain(s[0],s[1])||c(i,o,i+a,o,n)||c(i,o,i,o+r,n)||c(i+a,o,i+a,o+r,n)||c(i,o+r,i+a,o+r,n))||void 0)}}};function i(i){var o=["x","y"],a=["width","height"];return{point:function(t,e,n){if(t)return n=n.range,r(t[i],n)},rect:function(t,e,n){if(t)return n=n.range,(t=[t[o[i]],t[o[i]]+t[a[i]]])[1]<t[0]&&t.reverse(),r(t[0],n)||r(t[1],n)||r(n[0],t)||r(n[1],t)}}}function r(t,e){return e[0]<=t&&t<=e[1]}function c(t,e,n,i,o){for(var a=0,r=o[o.length-1];a<o.length;a++){var s=o[a];if(function(t,e,n,i,o,a,r,s){var l=h(n-t,o-r,i-e,a-s);if(function(t){return t<=1e-6&&-1e-6<=t}(l))return;r=h(o-t,o-r,a-e,a-s)/l;if(r<0||1<r)return;s=h(n-t,o-t,i-e,a-e)/l;if(s<0||1<s)return;return 1}(t,e,n,i,s[0],s[1],r[0],r[1]))return 1;r=s}}function h(t,e,n,i){return t*i-e*n}t.exports=n},function(t,e,n){var i=n(17),v=n(3),o=n(118),u=n(216),x=n(654),s=n(165),a=n(326),_=["inBrush","outOfBrush"],c="__ecBrushSelect",h="__ecInBrushSelectEvent",n=i.PRIORITY.VISUAL.BRUSH;function d(t,e){var n;t.isDisposed()||((n=t.getZr())[h]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[h]=!1)}function b(t,e,n,i){for(var o=0,a=e.length;o<a;o++){var r=e[o];if(t[r.brushType](i,n,r.selectors,r))return 1}}function w(t){var e,n,a=t.brushSelector;return v.isString(a)?(e=[],v.each(x,function(o,t){e[t]=function(t,e,n,i){e=e.getItemLayout(t);return o[a](e,n,i)}}),e):v.isFunction(a)?(n={},v.each(x,function(t,e){n[e]=a}),n):a}i.registerLayout(n,function(e,t,n){e.eachComponent({mainType:"brush"},function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1}),(t.brushTargetManager=new a(t.option,e)).setInputRanges(t.areas,e)})}),i.registerVisual(n,function(y,t,e){var o,a,n,i,r,l=[];y.eachComponent({mainType:"brush"},function(c,t){var r={brushId:c.id,brushIndex:t,brushName:c.name,areas:v.clone(c.areas),selected:[]},e=(l.push(r),c.option),n=e.brushLink,i=[],h=[],d=[],p=0,f=(t||(o=e.throttleType,a=e.throttleDelay),v.map(c.areas,function(t){return n=v.defaults({boundingRect:S[t.brushType](t)},t),i=n.selectors={},v.each(x[n.brushType],function(e,t){i[t]=function(t){return e(t,i,n)}}),n;var n,i})),s=u.createVisualMappings(c.option,_,function(t){t.mappingMethod="fixed"});function g(t){return"all"===n||i[t]}function m(t){return!!t.length}v.isArray(n)&&v.each(n,function(t){i[t]=1}),y.eachSeries(function(t,e){var n,i,o,a,r,s,l,u=d[e]=[];"parallel"===t.subType?(s=e,l=(r=t).coordinateSystem,p|=l.hasAxisBrushed(),g(s)&&l.eachActiveState(r.getData(),function(t,e){"active"===t&&(h[e]=1)})):(s=e,i=u,(a=w(n=t))&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(v.isArray(t)?v.indexOf(t,e)<0:e!==t)}(c,s)&&(v.each(f,function(t){a[t.brushType]&&c.brushTargetManager.controlSeries(t,n,y)&&i.push(t),p|=m(i)}),g(s))&&m(i)&&(o=n.getData()).each(function(t){b(a,i,o,t)&&(h[t]=1)}))}),y.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]},i=(r.selected.push(n),w(t)),o=d[e],a=t.getData(),t=g(e)?function(t){return h[t]?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return b(i,o,a,t)?(n.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(e)?p:m(o))&&u.applyVisual(_,s,a,t)})}),t=t,n=o,i=a,r=l,(e=e)&&!(e=t.getZr())[h]&&(e[c]||(e[c]=d),s.createOrUpdate(e,c,i,n)(t,r))});var S={lineX:v.noop,lineY:v.noop,rect:function(t){return r(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n<i;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],a=e[n];a[0]<o[0][0]&&(o[0][0]=a[0]),a[0]>o[0][1]&&(o[0][1]=a[0]),a[1]<o[1][0]&&(o[1][0]=a[1]),a[1]>o[1][1]&&(o[1][1]=a[1])}return o&&r(o)}};function r(t){return new o(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},function(t,e,n){n(724),n(725),n(657)},function(t,e,n){var i=n(17),m=n(3),y=n(48),o=n(116),v=n(61),x={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},_={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},n=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),a=o.getRangeInfo(),o=o.getOrient();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,o,i),this._renderWeekText(t,a,o,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new y.Rect({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});n.add(l)}},_renderLines:function(e,t,n,i){for(var o=this,a=e.coordinateSystem,r=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=r.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],t.start),c=0;u.time<=t.end.time;c++){d(u.formatedDate);var h=(u=0===c?a.getDateInfo(t.start.y+"-"+t.start.m):u).date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(t){o._firstDayOfMonth.push(a.getDateInfo(t)),o._firstDayPoints.push(a.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,r,i)}d(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),r,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),r,i)},_getEdgesPoints:function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},_drawSplitline:function(t,e,n){t=new y.Polyline({z2:20,shape:{points:t},style:e});n.add(t)},_getLinePointsOfOneWeek:function(t,e,n){for(var i=t.coordinateSystem,o=(e=i.getDateInfo(e),[]),a=0;a<7;a++){var r=i.getNextNDay(e.time,a),s=i.dataToRect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===n?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,o){e=e.slice();var a=["center","bottom"],o=("bottom"===i?(e[1]+=o,a=["center","top"]):"left"===i?e[0]-=o:"right"===i?(e[0]+=o,a=["center","top"]):e[1]-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,n,i){var o,a,r,s,l,u,t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),a=(a=t.get("position"))||("horizontal"!==n?"top":"left"),r=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,r={top:[r,u[s="horizontal"===n?0:1][1]],bottom:[r,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),u=new y.Text({z2:30}),y.setTextStyle(u.style,t,{text:e}),u.attr(this._yearTextPositionControl(u,r[a],n,a,o)),i.add(u))},_monthTextPositionControl:function(t,e,n,i,o){var a="left",r="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(a="center"),"start"===i&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===i&&(a="right")),{x:s,y:t,textAlign:a,textVerticalAlign:r}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show"))for(var o=i.get("nameMap"),a=i.get("margin"),r=i.get("position"),t=i.get("align"),s=[this._tlpoints,this._blpoints],l=(m.isString(o)&&(o=x[o.toUpperCase()]||[]),"start"===r?0:1),u="horizontal"===e?0:1,a="start"===r?-a:a,c="center"===t,h=0;h<s[l].length-1;h++){var d=s[l][h].slice(),p=this._firstDayOfMonth[h],f=(c&&(f=this._firstDayPoints[h],d[u]=(f[u]+s[0][h+1][u])/2),i.get("formatter")),g=o[+p.m-1],p={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:g},g=this._formatterLabel(f,p),p=new y.Text({z2:30});m.extend(y.setTextStyle(p.style,i,{text:g}),this._monthTextPositionControl(d,c,e,r,a)),n.add(p)}},_weekTextPositionControl:function(t,e,n,i,o){var a="center",r="middle",s=t[0],t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,a=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,r=n?"bottom":"top"),{x:s,y:t,textAlign:a,textVerticalAlign:r}},_renderWeekText:function(t,e,n,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,r=o.get("position"),s=o.get("nameMap"),l=o.get("margin"),u=a.getFirstDayOfWeek(),c=(m.isString(s)&&(s=_[s.toUpperCase()]||[]),a.getNextNDay(e.end.time,7-e.lweek).time),h=[a.getCellWidth(),a.getCellHeight()],l=v.parsePercent(l,h["horizontal"===n?0:1]);"start"===r&&(c=a.getNextNDay(e.start.time,-(7+e.fweek)).time,l=-l);for(var d=0;d<7;d++){var p=a.getNextNDay(c,d),p=a.dataToRect([p.time],!1).center,f=Math.abs((d+u)%7),g=new y.Text({z2:30});m.extend(y.setTextStyle(g.style,o,{text:s[f]}),this._weekTextPositionControl(p,n,r,l,h)),i.add(g)}}}});t.exports=n},function(t,e,n){n(324),n(188),n(189),n(665),n(666),n(661),n(662),n(322),n(321)},function(t,e,n){n(324),n(188),n(189),n(663),n(664),n(322),n(321)},function(t,e,n){function i(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n}var o=n(3),u=n(61),a=n(244),h=o.each,c=u.asc;function r(t,e){var n,i=t.getAxisModel(),o=t._percentWindow,t=t._valueWindow;o&&(n=u.getPixelPrecision(t,[0,500]),n=Math.min(n,20),e=e||0===o[0]&&100===o[1],i.setRange(e?null:+t[0].toFixed(n),e?null:+t[1].toFixed(n)))}i.prototype={constructor:i,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var n=[],i=this.ecModel;return i.eachSeries(function(t){var e;a.isCoordSupported(t.get("coordinateSystem"))&&(e=this._dimName,e=i.queryComponents({mainType:e+"Axis",index:t.get(e+"AxisIndex"),id:t.get(e+"AxisId")})[0],this._axisIndex===(e&&e.componentIndex))&&n.push(t)},this),n},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,n,t=this._dimName,i=this.ecModel,o=this.getAxisModel(),t="x"===t||"y"===t?(e="gridIndex","x"===t?"y":"x"):(e="polarIndex","angle"===t?"radius":"angle");return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(n=t)}),n},getMinMaxSpan:function(){return o.clone(this._minMaxSpan)},calculateDataWindow:function(e){var i=this._dataExtent,o=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),r=[0,100],s=[e.start,e.end],l=[];return h(["startValue","endValue"],function(t){l.push(null!=e[t]?o.parse(e[t]):null)}),h([0,1],function(t){var e=l[t],n=s[t];"percent"===a[t]?e=o.parse(u.linearMap(n=null==n?r[t]:n,r,i,!0)):n=u.linearMap(e,i,r,!0),l[t]=e,s[t]=n}),{valueWindow:c(l),percentWindow:c(s)}},reset:function(t){var e,i,o,a;t===this._dataZoomModel&&(e=this.getTargetSeriesModels(),this._dataExtent=function(t,n,e){var i=[1/0,-1/0];h(e,function(t){var e=t.getData();e&&h(e.mapDimension(n,!0),function(t){t=e.getApproximateExtent(t);t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1])})}),i[1]<i[0]&&(i=[NaN,NaN]);return function(t,e){var t=t.getAxisModel(),n=t.getMin(!0),i="category"===t.get("type"),o=i&&t.getCategories().length;null!=n&&"dataMin"!==n&&"function"!=typeof n?e[0]=n:i&&(e[0]=0<o?0:NaN);n=t.getMax(!0);null!=n&&"dataMax"!==n&&"function"!=typeof n?e[1]=n:i&&(e[1]=0<o?o-1:NaN);t.get("scale",!0)||(0<e[0]&&(e[0]=0),e[1]<0&&(e[1]=0));return e}(t,i),i}(this,this._dimName,e),e=this.calculateDataWindow(t.option),this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,o=(i=this)._minMaxSpan={},a=i._dataZoomModel,h(["min","max"],function(t){o[t+"Span"]=a.get(t+"Span");var e,n=a.get(t+"ValueSpan");null!=n&&(o[t+"ValueSpan"]=n,null!=(n=i.getAxisModel().axis.scale.parse(n)))&&(e=i._dataExtent,o[t+"Span"]=u.linearMap(e[0]+n,e,[0,100],!0))}),r(this))},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,r(this,!0))},filterData:function(t,e){var i,n,o,c;t===this._dataZoomModel&&(i=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),c=this._valueWindow,"none"!==o)&&h(n,function(n){var l=n.getData(),u=l.mapDimension(i,!0);"weakFilter"===o?l.filterSelf(function(t){for(var e,n,i,o=0;o<u.length;o++){var a=l.get(u[o],t),r=!isNaN(a),s=a<c[0],a=a>c[1];if(r&&!s&&!a)return!0;r&&(i=!0),s&&(e=!0),a&&(n=!0)}return i&&e&&n}):h(u,function(t){var e;"empty"===o?n.setData(l.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,l.selectRange(e))}),h(u,function(t){l.setApproximateExtent(c,t)})})}},t.exports=i},function(t,e,n){n=n(188).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});t.exports=n},function(t,e,n){var i=n(3),o=n(189),d=n(191),s=n(667),l=i.bind,u=o.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(a,t,r,e){u.superApply(this,"render",arguments),this._range=a.getPercentRange(),i.each(this.getTargetCoordInfo(),function(t,n){var o=i.map(t,function(t){return s.generateCoordId(t.model)});i.each(t,function(t){var i=t.model,e=a.option;s.register(r,{coordId:s.generateCoordId(i),allCoordIds:o,containsPoint:function(t,e,n){return i.coordinateSystem.containPoint([e,n])},dataZoomId:a.id,throttleRate:a.get("throttle",!0),panGetRange:l(this._onPan,this,t,n),zoomGetRange:l(this._onZoom,this,t,n),zoomLock:e.zoomLock,disabled:e.disabled,roamControllerOpt:{zoomOnMouseWheel:e.zoomOnMouseWheel,moveOnMouseMove:e.moveOnMouseMove,preventDefaultMouseMove:e.preventDefaultMouseMove}})},this)},this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id),u.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,n,i,o,a,r,s,l){var u=this._range,c=u.slice(),h=t.axisModels[0];if(h)return a=(e=p[e]([a,r],[s,l],h,n,t)).signal*(c[1]-c[0])*e.pixel/e.pixelLength,d(a,c,[0,100],"all"),this._range=c,u[0]!==c[0]||u[1]!==c[1]?c:void 0},_onZoom:function(t,e,n,i,o,a){var r=this._range,s=r.slice(),l=t.axisModels[0];if(l)return o=(0<(e=p[e](null,[o,a],l,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(s[1]-s[0])+s[0],i=Math.max(1/i,0),s[0]=(s[0]-o)*i+o,s[1]=(s[1]-o)*i+o,a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(),d(0,s,[0,100],0,a.minSpan,a.maxSpan),this._range=s,r[0]!==s[0]||r[1]!==s[1]?s:void 0}}),p={grid:function(t,e,n,i,o){var n=n.axis,a={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(a.pixel=e[0]-t[0],a.pixelLength=o.width,a.pixelStart=o.x,a.signal=n.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=o.height,a.pixelStart=o.y,a.signal=n.inverse?-1:1),a},polar:function(t,e,n,i,o){var a=n.axis,r={},o=o.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(r.pixel=e[0]-t[0],r.pixelLength=s[1]-s[0],r.pixelStart=s[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,n,i,o){var n=n.axis,o=o.model.coordinateSystem.getRect(),a={};return t=t||[0,0],"horizontal"===n.orient?(a.pixel=e[0]-t[0],a.pixelLength=o.width,a.pixelStart=o.x,a.signal=n.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=o.height,a.pixelStart=o.y,a.signal=n.inverse?-1:1),a}};t.exports=u},function(t,e,n){n=n(188).extend({type:"dataZoom.select"});t.exports=n},function(t,e,n){n=n(189).extend({type:"dataZoom.select"});t.exports=n},function(t,e,n){n=n(188).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=n},function(t,e,n){var d=n(3),s=n(147),p=n(48),o=n(165),i=n(189),l=n(61),a=n(109),u=n(191),c=p.Rect,f=l.linearMap,h=l.asc,g=d.bind,m=d.each,y="horizontal",v=["line","bar","candlestick","scatter"],r=i.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){r.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1===this.dataZoomModel.get("show")?this.group.removeAll():(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},remove:function(){r.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){r.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group,e=(t.removeAll(),this._resetLocation(),this._resetInterval(),this._displayables.barGroup=new p.Group);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},i=this._orient===y?{right:e.width-n.x-n.width,top:e.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=a.getLayoutParams(t.option),n=(d.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=i[t])}),a.getLayoutRect(o,e,t.padding));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==y||i?n===y&&i?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||i?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]}),t.getBoundingRect([o]));t.attr("position",[e.x-n.x,e.y-n.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new c({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new c({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:d.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t,e,n,i,o,a,r,s,l,u,c,h=this._dataShadowInfo=this._prepareDataShadowInfo();h&&(t=this._size,e=(n=h.series).getRawData(),null!=(n=n.getShadowDim?n.getShadowDim():h.otherDim))&&(h=.3*((i=e.getDataExtent(n))[1]-i[0]),i=[i[0]-h,i[1]+h],o=[0,t[1]],h=[0,t[0]],a=[[t[0],0],[0,0]],r=[],s=h[1]/(e.count()-1),l=0,u=Math.round(e.count()/t[0]),e.each([n],function(t,e){var n;0<u&&e%u?l+=s:(t=(n=null==t||isNaN(t)||""===t)?0:f(t,i,o,!0),n&&!c&&e?(a.push([a[a.length-1][0],0]),r.push([r[r.length-1][0],0])):!n&&c&&(a.push([l,0]),r.push([l,0])),a.push([l,t]),r.push([l,t]),l+=s,c=n)}),h=this.dataZoomModel,this._displayables.barGroup.add(new p.Polygon({shape:{points:a},style:d.defaults({fill:h.get("dataBackgroundColor")},h.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new p.Polyline({shape:{points:r},style:h.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19})))},_prepareDataShadowInfo:function(){var s,l,e=this.dataZoomModel,u=e.get("showDataShadow");if(!1!==u)return l=this.ecModel,e.eachTargetAxis(function(a,r){var t=e.getAxisProxy(a.name,r).getTargetSeriesModels();d.each(t,function(t){var e,n,i,o;s||!0!==u&&d.indexOf(v,t.get("type"))<0||(e=l.getComponent(a.axis,r).axis,n={x:"y",y:"x",radius:"angle",angle:"radius"}[a.name],o=t.coordinateSystem,null!=n&&o.getOtherAxis&&(i=o.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),s={thisAxis:e,series:t,thisDim:a.name,otherDim:n,otherAxisInverse:i})},this)},this),s},_renderHandle:function(){var t=this._displayables,i=t.handles=[],o=t.handleLabels=[],a=this._displayables.barGroup,e=this._size,r=this.dataZoomModel;a.add(t.filler=new c({draggable:!0,cursor:x(this._orient),drift:g(this._onDragMove,this,"all"),onmousemove:function(t){s.stop(t.event)},ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),a.add(new c(p.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),m([0,1],function(t){var e=p.createIcon(r.get("handleIcon"),{cursor:x(this._orient),draggable:!0,drift:g(this._onDragMove,this,t),onmousemove:function(t){s.stop(t.event)},ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),n=e.getBoundingRect(),n=(this._handleHeight=l.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(r.getModel("handleStyle").getItemStyle()),r.get("handleColor")),n=(null!=n&&(e.style.fill=n),a.add(i[t]=e),r.textStyleModel);this.group.add(o[t]=new p.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:n.getTextColor(),textFont:n.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[f(t[0],[0,100],e,!0),f(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100],e=(u(e,i,o,n.get("zoomLock")?"all":t,null!=a.minSpan?f(a.minSpan,r,o,!0):null,null!=a.maxSpan?f(a.maxSpan,r,o,!0):null),this._range),n=this._range=h([f(i[0],o,r,!0),f(i[1],o,r,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},_updateView:function(t){var i=this._displayables,o=this._handleEnds,e=h(o.slice()),a=this._size;m([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scale:[n/2,n/2],position:[o[t],a[1]/2-n/2]})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e,n,i=this.dataZoomModel,o=this._displayables,a=o.handleLabels,r=this._orient,s=["",""],l=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),h(this._handleEnds.slice()));function u(t){var e=p.getTransform(o.handles[t].parent,this.group),n=p.transformDirection(0===t?"right":"left",e),i=this._handleWidth/2+5,i=p.applyTransform([l[t]+(0===t?-i:i),this._size[1]/2],e);a[t].setStyle({x:i[0],y:i[1],textVerticalAlign:r===y?"middle":n,textAlign:r===y?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(n,20)));return d.isFunction(i)?i(t,e):d.isString(i)?i.replace("{value}",e):e},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),e=p.applyTransform([e,n],i,!0),n=this._updateInterval(t,e[0]),i=this.dataZoomModel.get("realtime");this._updateView(!i),n&&i&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,t=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction())},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t,e,n;return m(this.getTargetCoordInfo(),function(t){!n&&t.length&&(t=t[0].model.coordinateSystem,n=t.getRect&&t.getRect())}),n||(t=this.api.getWidth(),e=this.api.getHeight(),n={x:.2*t,y:.2*e,width:.6*t,height:.6*e}),n}});function x(t){return"vertical"===t?"ns-resize":"ew-resize"}t.exports=r},function(t,e,n){var u=n(3),c=n(206),h=n(165),d=u.curry,i="\0_ec_dataZoom_roams";function p(t){t=t.getZr();return t[i]||(t[i]={})}function f(n){u.each(n,function(t,e){t.count||(t.controller.dispose(),delete n[e])})}function g(e,n,i,o,a,r,s){l(e,function(t){return t.panGetRange(e.controller,n,i,o,a,r,s)})}function m(e,n,i,o){l(e,function(t){return t.zoomGetRange(e.controller,n,i,o)})}function l(t,n){var i=[];u.each(t.dataZoomInfos,function(t){var e=n(t);!t.disabled&&e&&i.push({dataZoomId:t.dataZoomId,start:e[0],end:e[1]})}),i.length&&t.dispatchAction(i)}function y(t,e){t.dispatchAction({type:"dataZoom",batch:e})}e.register=function(t,i){var n,o,a,e=p(t),r=i.dataZoomId,s=i.coordId,l=(u.each(e,function(t,e){var n=t.dataZoomInfos;n[r]&&u.indexOf(i.allCoordIds,s)<0&&(delete n[r],t.count--)}),f(e),e[s]),t=(l||((l=e[s]={coordId:s,dataZoomInfos:{},count:0}).controller=function(t,e){t=new c(t.getZr());return t.on("pan",d(g,e)),t.on("zoom",d(m,e)),t}(t,l),l.dispatchAction=u.curry(y,t)),l.dataZoomInfos[r]||l.count++,l.dataZoomInfos[r]=i,e=l.dataZoomInfos,o={},a={type_true:2,type_move:1,type_false:0,type_undefined:-1},u.each(e,function(t){var e=!t.disabled&&(!t.zoomLock||"move");a["type_"+n]<a["type_"+e]&&(n=e),u.extend(o,t.roamControllerOpt)}),{controlType:n,opt:o});l.controller.enable(t.controlType,t.opt),l.controller.setPointerChecker(i.containsPoint),h.createOrUpdate(l,"dispatchAction",i.throttleRate,"fixRate")},e.unregister=function(t,n){t=p(t),u.each(t,function(t){t.controller.dispose();var e=t.dataZoomInfos;e[n]&&(delete e[n],t.count--)}),f(t)},e.generateCoordId=function(t){return t.type+"\0_"+t.id}},function(t,e,n){var i=n(17),a=n(3);function o(o,t){t.update="updateView",i.registerAction(t,function(n,t){var i={};return t.eachComponent({mainType:"geo",query:n},function(e){e[o](n.name);var t=e.coordinateSystem;a.each(t.regions,function(t){i[t.name]=e.isSelected(t.name)||!1})}),{selected:i,name:n.name}})}n(733),n(208),n(669),n(304),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,n){var i=n(327),n=n(17).extendComponentView({type:"geo",init:function(t,e){e=new i(e,!0);this._mapDraw=e,this.group.add(e.group)},render:function(t,e,n,i){var o;i&&"geoToggleSelect"===i.type&&i.from===this.uid||(o=this._mapDraw,t.get("show")?o.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent"))},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=n},function(t,e,n){n(79).__DEV__;var i=n(17),c=n(3),o=n(77),a=n(48),h=n(109),r=(i.registerPreprocessor(function(t){var e=t.graphic;c.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}),i.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,r.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,e=[],n=(this._flatten(t,e),o.mappingToExists(l,e)),u=(o.makeIdAndName(n),this._elOptionsToUpdate=[]);c.each(n,function(t,e){var n,i,o,a,r,s=t.option;s&&(u.push(s),a=s,n=(t=t).exist,a.id=t.keyInfo.id,!a.type&&n&&(a.type=n.type),null==a.parentId&&((t=a.parentOption)?a.parentId=t.id:n&&(a.parentId=n.parentId)),a.parentOption=null,t=l,n=e,a=s,r=c.extend({},a),i=t[n],"merge"===(o=a.$action||"merge")?i?(c.merge(i,r,!0),h.mergeLayoutParam(i,r,{ignoreSize:!0}),h.copyLayoutParams(a,i)):t[n]=r:"replace"===o?t[n]=r:"remove"===o&&i&&(t[n]=null),a=l[e],r=s,a)&&(a.hv=r.hv=[p(r,["left","right"]),p(r,["top","bottom"])],"group"===a.type)&&(null==a.width&&(a.width=r.width=0),null==a.height)&&(a.height=r.height=0)},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},_flatten:function(t,n,i){c.each(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}}));function u(t,e,n,i){var o=n.type,o=new a[o.charAt(0).toUpperCase()+o.slice(1)](n);e.add(o),i.set(t,o),o.__ecGraphicId=t}function d(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){d(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function p(e,t){var n;return c.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}i.extendComponentView({type:"graphic",init:function(t,e){this._elMap=c.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,n),this._relocate(t,n)},_updateElements:function(t,e){var s,l,t=t.useElOptionsToUpdate();t&&(s=this._elMap,l=this.group,c.each(t,function(t){var e,n=t.$action,i=t.id,o=s.get(i),a=t.parentId,a=null!=a?s.get(a):l,r=("text"===t.type&&(r=t.style,t.hv&&t.hv[1]&&(r.textVerticalAlign=r.textBaseline=null),!r.hasOwnProperty("textFill")&&r.fill&&(r.textFill=r.fill),!r.hasOwnProperty("textStroke"))&&r.stroke&&(r.textStroke=r.stroke),e=t,e=c.extend({},e),c.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(t){delete e[t]}),e),n=(n&&"merge"!==n?"replace"===n?(d(o,s),u(i,a,r,s)):"remove"===n&&d(o,s):o?o.attr(r):u(i,a,r,s),s.get(i));n&&(n.__ecGraphicWidth=t.width,n.__ecGraphicHeight=t.height)}))},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,a=n.length-1;0<=a;a--){var r,s=n[a],l=o.get(s.id);l&&(r=(r=l.parent)===i?{width:e.getWidth(),height:e.getHeight()}:{width:r.__ecGraphicWidth||0,height:r.__ecGraphicHeight||0},h.positionElement(l,s,r,null,{hv:s.hv,boundingMode:s.bounding}))}},_clear:function(){var e=this._elMap;e.each(function(t){d(t,e)}),this._elMap=c.createHashMap()},dispose:function(){this._clear()}})},function(t,e,n){n(190),n(318),n(187)},function(t,e,n){var i=n(17),o=(n(332),n(676),n(333),n(677)),n=n(120);i.registerProcessor(o),n.registerSubTypeDefaulter("legend",function(){return"plain"})},function(t,e,n){n(672),n(674),n(675),n(678)},function(t,e,n){var i=n(332),n=n(109),o=n.mergeLayoutParam,a=n.getLayoutParams,r=i.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},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},init:function(t,e,n,i){var o=a(t);r.superCall(this,"init",t,e,n,i),s(this,t,o)},mergeOption:function(t,e){r.superCall(this,"mergeOption",t,e),s(this,this.option,t)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}});function s(t,e,n){var i=[1,1];i[t.getOrient().index]=0,o(e,n,{type:"box",ignoreSize:i})}t.exports=r},function(t,e,n){var y=n(3),v=n(48),x=n(109),n=n(333),i=v.Group,_=["width","height"],b=["x","y"],l=n.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){l.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new i),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new i),this._showController},resetInner:function(){l.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,i,e,o){var a=this,r=(l.superCall(this,"renderInner",t,i,e,o),this._controllerGroup),s=i.get("pageIconSize",!0),t=(y.isArray(s)||(s=[s,s]),n("pagePrev",0),i.getModel("pageTextStyle"));function n(t,e){var n=t+"DataIndex",e=v.createIcon(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:y.bind(a._pageGo,a,n,i,o)},{x:-s[0]/2,y:-s[1]/2,width:s[0],height:s[1]});e.name=t,r.add(e)}r.add(new v.Text({name:"pageText",style:{textFill:t.getTextColor(),font:t.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),n("pageNext",1)},layoutInner:function(t,e,n){var i=this.getContentGroup(),o=this._containerGroup,a=this._controllerGroup,r=t.getOrient().index,s=_[r],l=_[1-r],u=b[1-r],c=(x.box(t.get("orient"),i,t.get("itemGap"),r?n.width:null,r?null:n.height),x.box("horizontal",a,t.get("pageButtonItemGap",!0)),i.getBoundingRect()),h=a.getBoundingRect(),d=this._showController=c[s]>n[s],p=[-c.x,-c.y],f=(p[r]=i.position[r],[0,0]),g=[-h.x,-h.y],m=y.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0)),p=(d&&("end"===t.get("pageButtonPosition",!0)?g[r]+=n[s]-h[s]:f[r]+=h[s]+m),g[1-r]+=c[l]/2-h[l]/2,i.attr("position",p),o.attr("position",f),a.attr("position",g),this.group.getBoundingRect()),c=((p={x:0,y:0})[s]=(d?n:c)[s],p[l]=Math.max(c[l],h[l]),p[u]=Math.min(0,h[u]+g[1-r]),o.__rectSize=n[s],d?((f={x:0,y:0})[s]=Math.max(n[s]-h[s]-m,0),f[l]=p[l],o.setClipPath(new v.Rect({shape:f})),o.__rectSize=f[s]):a.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&v.updateProps(i,{position:c.contentPosition},d&&t),this._updatePageInfoView(t,c),p},_pageGo:function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},_updatePageInfoView:function(n,i){var o=this._controllerGroup,t=(y.each(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),a=i.pageIndex,a=null!=a?a+1:0,r=i.pageCount;t&&e&&t.setStyle("text",y.isString(e)?e.replace("{current}",a).replace("{total}",r):e({current:a,total:r}))},_getPageInfo:function(t){var e,i,n,o=t.get("scrollDataIndex",!0),a=this.getContentGroup(),r=a.getBoundingRect(),s=this._containerGroup.__rectSize,l=t.getOrient().index,u=_[l],t=_[1-l],c=b[l],h=a.position.slice(),d=(this._showController?a.eachChild(function(t){t.__legendDataIndex===o&&(n=t)}):n=a.childAt(0),s?Math.ceil(r[u]/s):0);if(n){var p,f=n.getBoundingRect(),g=n.position[l]+f[c],m=(h[l]=-g-r[c],g=Math.floor(d*(g+f[c]+s/2)/r[u]),g=r[u]&&d?Math.max(0,Math.min(d-1,g)):-1,{x:0,y:0}),y=(m[u]=s,m[t]=r[t],m[c]=-h[l]-r[c],a.children());if(a.eachChild(function(t,e){var n=v(t);n.intersect(m)&&(null==p&&(p=e),i=t.__legendDataIndex),e===y.length-1&&n[c]+n[u]<=m[c]+m[u]&&(i=null)}),null!=p){f=v(y[p]);if(m[c]=f[c]+f[u]-m[u],p<=0&&f[c]>=m[c])e=null;else{for(;0<p&&v(y[p-1]).intersect(m);)p--;e=y[p].__legendDataIndex}}}return{contentPosition:h,pageIndex:g,pageCount:d,pagePrevDataIndex:e,pageNextDataIndex:i};function v(t){var e=t.getBoundingRect().clone();return e[c]+=t.position[l],e}}});t.exports=l},function(t,e,n){var i=n(17),s=n(3);function o(e,i,t){var o,a={},r="toggleSelected"===e;return t.eachComponent("legend",function(n){r&&null!=o?n[o?"select":"unSelect"](i.name):(n[e](i.name),o=n.isSelected(i.name));var t=n.getData();s.each(t,function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),a.hasOwnProperty(t)?a[t]=a[t]&&e:a[t]=e)})}),{name:i.name,selected:a}}i.registerAction("legendToggleSelect","legendselectchanged",s.curry(o,"toggleSelected")),i.registerAction("legendSelect","legendselected",s.curry(o,"select")),i.registerAction("legendUnSelect","legendunselected",s.curry(o,"unSelect"))},function(t,e){t.exports=function(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}},function(t,e,n){n(17).registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})},function(t,e,n){var i=n(17);n(682),n(683),i.registerPreprocessor(function(t){t.markArea=t.markArea||{}})},function(t,e,n){var i=n(17);n(684),n(685),i.registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,n){var i=n(17);n(686),n(687),i.registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,n){n=n(248).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});t.exports=n},function(t,e,n){function c(t,e,n,i){var o=s.dataTransform(t,i[0]),t=s.dataTransform(t,i[1]),i=h.retrieve,a=o.coord,r=t.coord;return a[0]=i(a[0],-1/0),a[1]=i(a[1],-1/0),r[0]=i(r[0],1/0),r[1]=i(r[1],1/0),(a=h.mergeAll([{},o,t])).coord=[o.coord,t.coord],a.x0=o.x,a.y0=o.y,a.x1=t.x,a.y1=t.y,a}var h=n(3),d=n(148),p=n(133),f=n(61),g=n(48),s=n(250),n=n(249);function m(t){return!isNaN(t)&&!isFinite(t)}function o(t,e,n){t=1-t;return m(e[t])&&m(n[t])}function y(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!o(1,n,i)&&!o(0,n,i))||s.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||s.dataFilter(t,{coord:i,x:e.x1,y:e.y1})}function v(t,e,n,i,o){var a,r,s,l=i.coordinateSystem,u=t.getItemModel(e),c=f.parsePercent(u.get(n[0]),o.getWidth()),u=f.parsePercent(u.get(n[1]),o.getHeight());return isNaN(c)||isNaN(u)?(s=i.getMarkerPosition?i.getMarkerPosition(t.getValues(n,e)):(o=[a=t.get(n[0],e),r=t.get(n[1],e)],l.clampData&&l.clampData(o,o),l.dataToPoint(o,!0)),"cartesian2d"===l.type&&(i=l.getAxis("x"),o=l.getAxis("y"),a=t.get(n[0],e),r=t.get(n[1],e),m(a)?s[0]=i.toGlobalCoord(i.getExtent()["x0"===n[0]?0:1]):m(r)&&(s[1]=o.toGlobalCoord(o.getExtent()["y0"===n[1]?0:1]))),isNaN(c)||(s[0]=c),isNaN(u)||(s[1]=u)):s=[c,u],s}var x=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];n.extend({type:"markArea",updateTransform:function(t,e,o){e.eachSeries(function(n){var i,t=n.markAreaModel;t&&(i=t.getData()).each(function(e){var t=h.map(x,function(t){return v(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},renderSeries:function(n,r,t,i){var e=n.coordinateSystem,o=n.id,a=n.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new g.Group}),u=(this.group.add(l.group),l.__keep=!0,function(t,n,e){var i,o;o=t?(i=h.map(t&&t.dimensions,function(t){var e=n.getData(),e=e.getDimensionInfo(e.mapDimension(t))||{};return h.defaults({name:t},e)}),new p(h.map(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),e)):new p(i=[{name:"value",type:"float"}],e);e=h.map(e.get("data"),h.curry(c,n,t,e));t&&(e=h.filter(e,h.curry(y,t)));t=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return o.initData(e,null,t),o.hasItemOption=!0,o}(e,n,r));r.setData(u),u.each(function(e){u.setItemLayout(e,h.map(x,function(t){return v(u,e,t,n,i)})),u.setItemVisual(e,{color:a.getVisual("color")})}),u.diff(l.__data).add(function(t){var e=new g.Polygon({shape:{points:u.getItemLayout(t)}});u.setItemGraphicEl(t,e),l.group.add(e)}).update(function(t,e){e=l.__data.getItemGraphicEl(e);g.updateProps(e,{shape:{points:u.getItemLayout(t)}},r,t),l.group.add(e),u.setItemGraphicEl(t,e)}).remove(function(t){t=l.__data.getItemGraphicEl(t);l.group.remove(t)}).execute(),u.eachItemGraphicEl(function(t,e){var n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel("emphasis.label"),a=u.getItemVisual(e,"color");t.useStyle(h.defaults(n.getModel("itemStyle").getItemStyle(),{fill:d.modifyAlpha(a,.4),stroke:a})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),g.setLabelStyle(t.style,t.hoverStyle,i,o,{labelFetcher:r,labelDataIndex:e,defaultText:u.getName(e)||"",isRectText:!0,autoColor:a}),g.setHoverStyle(t,{}),t.dataModel=r}),l.__data=u,l.group.silent=r.get("silent")||n.get("silent")}})},function(t,e,n){n=n(248).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=n},function(t,e,n){function f(t,e,n,i){var o,a,r,s=t.getData(),l=i.type;return g.isArray(i)||"min"!==l&&"max"!==l&&"average"!==l&&"median"!==l&&null==i.xAxis&&null==i.yAxis||(e=null!=i.yAxis||null!=i.xAxis?(r=null!=i.yAxis?"y":"x",e.getAxis(r),g.retrieve(i.yAxis,i.xAxis)):(r=(e=y.getAxisInfo(i,s,e,t)).valueDataDim,e.valueAxis,y.numCalculate(s,r,l)),r=1-(s="x"===r?0:1),a={},(o=g.clone(i)).type=null,o.coord=[],a.coord=[],o.coord[r]=-1/0,a.coord[r]=1/0,0<=(r=n.get("precision"))&&"number"==typeof e&&(e=+e.toFixed(Math.min(r,20))),o.coord[s]=a.coord[s]=e,i=[o,a,{type:l,valueIndex:i.valueIndex,value:e}]),(i=[y.dataTransform(t,i[0]),y.dataTransform(t,i[1]),g.extend({},i[2])])[2].type=i[2].type||"",g.merge(i[2],i[0]),g.merge(i[2],i[1]),i}var g=n(3),m=n(133),c=n(61),y=n(250),v=n(241),n=n(249);function h(t){return!isNaN(t)&&!isFinite(t)}function o(t,e,n,i){var o=1-t,a=i.dimensions[t];return h(e[o])&&h(n[o])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function x(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(o(1,n,i,t)||o(0,n,i,t)))return!0}return y.dataFilter(t,e[0])&&y.dataFilter(t,e[1])}function _(t,e,n,i,o){var a,r,s=i.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get("x"),o.getWidth()),l=c.parsePercent(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(a=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(r=s.dimensions,o=t.get(r[0],e),i=t.get(r[1],e),s.dataToPoint([o,i])),"cartesian2d"===s.type&&(o=s.getAxis("x"),i=s.getAxis("y"),r=s.dimensions,h(t.get(r[0],e))?a[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):h(t.get(r[1],e))&&(a[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(a[0]=u),isNaN(l)||(a[1]=l)):a=[u,l],t.setItemLayout(e,a)}n=n.extend({type:"markLine",updateTransform:function(t,e,a){e.eachSeries(function(e){var n,i,o,t=e.markLineModel;t&&(n=t.getData(),i=t.__from,o=t.__to,i.each(function(t){_(i,t,!0,e,a),_(o,t,!1,e,a)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},renderSeries:function(o,n,t,a){var e=o.coordinateSystem,i=o.id,r=o.getData(),s=this.markerGroupMap,s=s.get(i)||s.set(i,new v),i=(this.group.add(s.group),function(t,n,e){o=t?g.map(t&&t.dimensions,function(t){var e=n.getData().getDimensionInfo(n.getData().mapDimension(t))||{};return g.defaults({name:t},e)}):[{name:"value",type:"float"}];var i=new m(o,e),o=new m(o,e),a=new m([],e),e=g.map(e.get("data"),g.curry(f,n,t,e));t&&(e=g.filter(e,g.curry(x,t)));t=t?y.dimValueGetter:function(t){return t.value};return i.initData(g.map(e,function(t){return t[0]}),null,t),o.initData(g.map(e,function(t){return t[1]}),null,t),a.initData(g.map(e,function(t){return t[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}(e,o,n)),l=i.from,u=i.to,c=i.line,h=(n.__from=l,n.__to=u,n.setData(c),n.get("symbol")),d=n.get("symbolSize");function p(t,e,n){var i=t.getItemModel(e);_(t,e,n,o,a),t.setItemVisual(e,{symbolSize:i.get("symbolSize")||d[n?0:1],symbol:i.get("symbol",!0)||h[n?0:1],color:i.get("itemStyle.color")||r.getVisual("color")})}g.isArray(h)||(h=[h,h]),"number"==typeof d&&(d=[d,d]),i.from.each(function(t){p(l,t,!0),p(u,t,!1)}),c.each(function(t){var e=c.getItemModel(t).get("lineStyle.color");c.setItemVisual(t,{color:e||l.getItemVisual(t,"color")}),c.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),c.setItemVisual(t,{fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol")})}),s.updateData(c),i.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){t.dataModel=n})}),s.__keep=!0,s.group.silent=n.get("silent")||o.get("silent")}});t.exports=n},function(t,e,n){n=n(248).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=n},function(t,e,n){var u=n(3),c=n(186),h=n(61),d=n(133),p=n(250);function f(r,s,l){var u=s.coordinateSystem;r.each(function(t){var e,n,i,o=r.getItemModel(t),a=h.parsePercent(o.get("x"),l.getWidth()),o=h.parsePercent(o.get("y"),l.getHeight());isNaN(a)||isNaN(o)?s.getMarkerPosition?i=s.getMarkerPosition(r.getValues(r.dimensions,t)):u&&(e=r.get(u.dimensions[0],t),n=r.get(u.dimensions[1],t),i=u.dataToPoint([e,n])):i=[a,o],isNaN(a)||(i[0]=a),isNaN(o)||(i[1]=o),r.setItemLayout(t,i)})}n=n(249).extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(f(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,i,e,n){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,s=s.get(a)||s.set(a,new c),l=function(t,n,e){i=t?u.map(t&&t.dimensions,function(t){var e=n.getData().getDimensionInfo(n.getData().mapDimension(t))||{};return u.defaults({name:t},e)}):[{name:"value",type:"float"}];var i=new d(i,e),e=u.map(e.get("data"),u.curry(p.dataTransform,n));t&&(e=u.filter(e,u.curry(p.dataFilter,t)));return i.initData(e,null,t?p.dimValueGetter:function(t){return t.value}),i}(o,t,i);i.setData(l),f(i.getData(),t,n),l.each(function(t){var e=l.getItemModel(t),n=e.getShallow("symbolSize");"function"==typeof n&&(n=n(i.getRawValue(t),i.getDataParams(t))),l.setItemVisual(t,{symbolSize:n,color:e.get("itemStyle.color")||r.getVisual("color"),symbol:e.getShallow("symbol")})}),s.updateData(l),this.group.add(s.group),l.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=i})}),s.__keep=!0,s.group.silent=i.get("silent")||t.get("silent")}});t.exports=n},function(t,e,n){n(349),n(648),n(645)},function(t,e,n){var i=n(17),o=n(3),a=n(760);n(252),n(636),n(692),n(187),n(640),i.registerLayout(o.curry(a,"bar")),i.extendComponentView({type:"polar"})},function(t,e,n){n(751),n(752),n(691)},function(t,e,n){n(79).__DEV__;var i=n(17),I=n(3),o=n(160),T=n(48),a=["axisLine","axisTickLabel","axisName"],n=i.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,t=e.getIndicatorAxes(),t=I.map(t,function(t){return new o(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});I.each(t,function(t){I.each(a,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){var n=t.coordinateSystem,e=n.getIndicatorAxes();if(e.length){var i=t.get("shape"),o=t.getModel("splitLine"),t=t.getModel("splitArea"),a=o.getModel("lineStyle"),r=t.getModel("areaStyle"),s=o.get("show"),l=t.get("show"),u=a.get("color"),c=r.get("color"),u=I.isArray(u)?u:[u],c=I.isArray(c)?c:[c],h=[],d=[];if("circle"===i)for(var p=e[0].getTicksCoords(),f=n.cx,g=n.cy,m=0;m<p.length;m++)s&&h[M(h,u,m)].push(new T.Circle({shape:{cx:f,cy:g,r:p[m].coord}})),l&&m<p.length-1&&d[M(d,c,m)].push(new T.Ring({shape:{cx:f,cy:g,r0:p[m].coord,r:p[m+1].coord}}));else for(var y,v=I.map(e,function(t,e){t=t.getTicksCoords();return y=null==y?t.length-1:Math.min(t.length-1,y),I.map(t,function(t){return n.coordToPoint(t.coord,e)})}),x=[],m=0;m<=y;m++){for(var _=[],b=0;b<e.length;b++)_.push(v[b][m]);_[0]&&_.push(_[0].slice()),s&&h[M(h,u,m)].push(new T.Polyline({shape:{points:_}})),l&&x&&d[M(d,c,m-1)].push(new T.Polygon({shape:{points:_.concat(x)}})),x=_.slice().reverse()}var w=a.getLineStyle(),S=r.getAreaStyle();I.each(d,function(t,e){this.group.add(T.mergePath(t,{style:I.defaults({stroke:"none",fill:c[e%c.length]},S),silent:!0}))},this),I.each(h,function(t,e){this.group.add(T.mergePath(t,{style:I.defaults({fill:"none",stroke:u[e%u.length]},w),silent:!0}))},this)}function M(t,e,n){n%=e.length;return t[n]=t[n]||[],n}}});t.exports=n},function(t,e,n){n(252),n(646)},function(t,e,n){var i=n(17),o=n(699);n(701),n(700),n(694),n(695),i.registerPreprocessor(o)},function(t,e,n){var i=n(3),o=n(697),n=n(254),o=o.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});i.mixin(o,n),t.exports=o},function(t,e,n){var d=n(3),p=n(118),f=n(129),g=n(48),b=n(109),i=n(698),r=n(696),l=n(134).createSymbol,s=n(136),u=n(61),c=n(116).encodeHTML,m=d.bind,h=d.each,w=Math.PI,n=i.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){var o,a,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(o=this._layout(e,n),a=this._createGroup("mainGroup"),t=this._createGroup("labelGroup"),r=this._axis=this._createAxis(o,e),e.formatTooltip=function(t){return c(r.scale.getLabel(t))},h(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](o,a,r,e)},this),this._renderAxisLabel(o,t,r,e),this._position(o,e)),this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n,i,o,a=t.get("label.position"),r=t.get("orient"),s=(l=t,s=e,b.getLayoutRect(l.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=(null==a||"auto"===a?a="horizontal"===r?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":isNaN(a)&&(a={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][a]),{horizontal:"center",vertical:0<=a||"+"===a?"left":"right"}),e={horizontal:0<=a||"+"===a?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:w/2},c="vertical"===r?s.height:s.width,h=t.getModel("controlStyle"),d=h.get("show",!0),p=d?h.get("itemSize"):0,f=d?h.get("itemGap"):0,g=p+f,m=(t.get("label.rotate")||0)*w/180,y=h.get("position",!0),v=d&&h.get("showPlayBtn",!0),x=d&&h.get("showPrevBtn",!0),d=d&&h.get("showNextBtn",!0),h=0,_=c;return"left"===y||"bottom"===y?(v&&(n=[0,0],h+=g),x&&(i=[h,0],h+=g)):(v&&(n=[_-p,0],_-=g),x&&(i=[0,0],h+=g)),d&&(o=[_-p,0],_-=g),y=[h,_],t.get("inverse")&&y.reverse(),{viewRect:s,mainLength:c,orient:r,rotation:u[r],labelRotation:m,labelPosOpt:a,labelAlign:t.get("label.align")||l[r],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||e[r],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:y,controlSize:p,controlGap:f}},_position:function(t,e){var n,i=this._mainGroup,o=this._labelGroup,a=t.viewRect,r=("vertical"===t.orient&&(u=f.create(),s=a.x,l=a.y+a.height,f.translate(u,u,[-s,-l]),f.rotate(u,u,-w/2),f.translate(u,u,[s,l]),(a=a.clone()).applyTransform(u)),d(a)),s=d(i.getBoundingRect()),l=d(o.getBoundingRect()),u=i.position,a=o.position,c=(a[0]=u[0]=r[0][0],t.labelPosOpt);function h(t){var e=t.position;t.origin=[r[0][0]-e[0],r[1][0]-e[1]]}function d(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function p(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}isNaN(c)?(p(u,s,r,1,n="+"===c?0:1),p(a,l,r,1,1-n)):(p(u,s,r,1,n=0<=c?0:1),a[1]=u[1]+c),i.attr("position",u),o.attr("position",a),i.rotation=o.rotation=t.rotation,h(i),h(o)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),o=s.createScaleByModel(e,i),a=(o.getTicks=function(){return n.mapArray(["value"],function(t){return t})},n.getDataExtent("value")),a=(o.setExtent(a[0],a[1]),o.niceTicks(),new r("value",o,t.axisExtent,i));return a.model=e,a},_createGroup:function(t){t=this["_"+t]=new g.Group;return this.group.add(t),t},_renderAxisLine:function(t,e,n,i){n=n.getExtent();i.get("lineStyle.show")&&e.add(new g.Line({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:d.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,a,r,s){var l=s.getData(),e=r.scale.getTicks();h(e,function(t){var e=r.dataToCoord(t),n=l.getItemModel(t),i=n.getModel("itemStyle"),o=n.getModel("emphasis.itemStyle"),e={position:[e,0],onclick:m(this._changeTimeline,this,t)},i=y(n,i,a,e);g.setHoverStyle(i,o.getItemStyle()),n.get("tooltip")?(i.dataIndex=t,i.dataModel=s):i.dataIndex=i.dataModel=null},this)},_renderAxisLabel:function(a,r,s,t){var l;s.getLabelModel().get("show")&&(l=t.getData(),t=s.getViewLabels(),h(t,function(t){var e=t.tickValue,n=l.getItemModel(e),i=n.getModel("label"),n=n.getModel("emphasis.label"),o=s.dataToCoord(t.tickValue),o=new g.Text({position:[o,0],rotation:a.labelRotation-a.rotation,onclick:m(this._changeTimeline,this,e),silent:!1});g.setTextStyle(o.style,i,{text:t.formattedLabel,textAlign:a.labelAlign,textVerticalAlign:a.labelBaseline}),r.add(o),g.setHoverStyle(o,g.setTextStyle({},n))},this))},_renderControl:function(t,a,e,r){var s=t.controlSize,l=t.rotation,u=r.getModel("controlStyle").getItemStyle(),c=r.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-s/2,s,s],n=r.getPlayState(),i=r.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=h,t={position:t,origin:[s/2,0],rotation:i?-l:0,rectHover:!0,style:u,onclick:n},i=g.makePath(r.get(e).replace(/^path:\/\//,""),d.clone(t||{}),new p(o[0],o[1],o[2],o[3]),"center"),a.add(i),g.setHoverStyle(i,c))}o(t.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,"controlStyle."+(n?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!n),!0)},_renderCurrentPointer:function(t,e,n,i){var o=i.getData(),a=i.getCurrentIndex(),o=o.getItemModel(a).getModel("checkpointStyle"),r=this;this._currentPointer=y(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=m(r._handlePointerDrag,r),t.ondragend=m(r._handlePointerDragend,r),v(t,a,n,i,!0)},onUpdate:function(t){v(t,a,n,i)}})},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var t=this._toAxisCoord(t)[0],n=this._axis,n=u.asc(n.getExtent().slice()),n=((t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.position[0]=t,this._currentPointer.dirty(),this._findNearestTick(t)),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(m(function(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return g.applyTransform(t,e,!0)},_findNearestTick:function(n){var i,t=this.model.getData(),o=1/0,a=this._axis;return t.each(["value"],function(t,e){t=a.dataToCoord(t),t=Math.abs(t-n);t<o&&(o=t,i=e)}),i},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_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})}});function y(t,e,n,i,o,a){var r=e.get("color"),s=(o?(o.setColor(r),n.add(o),a&&a.onUpdate(o)):(s=t.get("symbol"),(o=l(s,-1,-1,2,2,r)).setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)),e.getItemStyle(["color","symbol","symbolSize"])),r=(o.setStyle(s),i=d.merge({rectHover:!0,z2:100},i,!0),t.get("symbolSize")),n=((r=r instanceof Array?r.slice():[+r,+r])[0]/=2,r[1]/=2,i.scale=r,t.get("symbolOffset")),e=(n&&((a=i.position=i.position||[0,0])[0]+=u.parsePercent(n[0],r[0]),a[1]+=u.parsePercent(n[1],r[1])),t.get("symbolRotate"));return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function v(t,e,n,i,o){var a;t.dragging||(a=i.getModel("checkpointStyle"),n=n.dataToCoord(i.getData().get(["value"],e)),o||!a.get("animation",!0)?t.attr({position:[n,0]}):(t.stopAnimation(!0),t.animateTo({position:[n,0]},a.get("animationDuration",!0),a.get("animationEasing",!0))))}t.exports=n},function(t,e,n){function i(t,e,n,i){a.call(this,t,e,n),this.type=i||"value",this.model=null}var o=n(3),a=n(151);i.prototype={constructor:i,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},o.inherits(i,a),t.exports=i},function(t,e,n){var r=n(3),i=n(120),s=n(133),l=n(77),o=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,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:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){o.superApply(this,"mergeOption",arguments),this._initData()},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},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var o,t=this.option,e=t.data||[],t=t.axisType,a=this._names=[],t=("category"===t&&(o=[],r.each(e,function(t,e){var n,i=l.getDataItemValue(t);r.isObject(t)?(n=r.clone(t)).value=e:n=e,o.push(n),r.isString(i)||null!=i&&!isNaN(i)||(i=""),a.push(i+"")}),e=o),{category:"ordinal",time:"time"}[t]||"number");(this._data=new s([{name:"value",type:t}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});t.exports=o},function(t,e,n){n=n(214).extend({type:"timeline"});t.exports=n},function(t,e,n){var o=n(3);function i(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},n=t.normal||(t.normal={}),i={normal:1,emphasis:1};o.each(t,function(t,e){i[e]||a(n,e)||(n[e]=t)}),e.label&&!a(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function a(t,e){return t.hasOwnProperty(e)}t.exports=function(t){t=t&&t.timeline,o.isArray(t)||(t=t?[t]:[]),o.each(t,function(t){var e,n;t&&(e=(t=t).type,(n={number:"value",time:"time"})[e]&&(t.axisType=n[e],delete t.type),i(t),a(t,"controlPosition")&&(a(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||a(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),o.each(t.data||[],function(t){o.isObject(t)&&!o.isArray(t)&&(!a(t,"value")&&a(t,"name")&&(t.value=t.name),i(t))}))})}},function(t,e,n){var i=n(17),o=n(3);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0))&&n.isIndexMax()&&n.setPlayState(!1),e.resetOption("timeline"),o.defaults({currentIndex:n.option.currentIndex},t)}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)})},function(t,e,n){n(120).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,n){var i=n(17),d=n(48),p=n(109).getLayoutRect;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(t,e,n){var i,o,a,r,s,l,u,c,h;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),c=t.get("textAlign"),h=t.get("textBaseline"),s=(u=new d.Text({style:d.setTextStyle({},u,{text:t.get("text"),textFill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new d.Text({style:d.setTextStyle({},o,{text:l,textFill:o.getTextColor(),y:s.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),a=t.get("link"),r=t.get("sublink"),u.silent=!a,o.silent=!r,a&&u.on("click",function(){window.open(a,"_"+t.get("target"))}),r&&o.on("click",function(){window.open(r,"_"+t.get("subtarget"))}),i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=p(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),c||("right"===(c="middle"===(c=t.get("left")||t.get("right"))?"center":c)?l.x+=l.width:"center"===c&&(l.x+=l.width/2)),h||("bottom"===(h="center"===(h=t.get("top")||t.get("bottom"))?"middle":h)?l.y+=l.height:"middle"===h&&(l.y+=l.height/2),h=h||"top"),i.attr("position",[l.x,l.y]),u.setStyle(n={textAlign:c,textVerticalAlign:h}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(c=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),h=new d.Rect({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:c,silent:!0}),d.subPixelOptimizeRect(h),i.add(h))}})},function(t,e,n){n(704),n(705),n(711),n(709),n(707),n(708),n(710)},function(t,e,n){var i=n(17),o=n(3),a=n(150),r=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){r.superApply(this,"optionUpdated",arguments),o.each(this.option.feature,function(t,e){e=a.get(e);e&&o.merge(t,e.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,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"}}}});t.exports=r},function(t,e,n){var i=n(17),b=n(3),a=n(137),w=n(150),S=n(48),M=n(122),o=n(162),r=n(330),n=i.extendComponentView({type:"toolbox",render:function(d,p,f,g){var m,y,v,x,_=this.group;function t(t,e){var n,i,o,a,r,s,l,u,t=x[t],e=x[e],c=y[t],c=new M(c,d,d.ecModel);if(t&&!e){if(0===t.indexOf("my"))n={model:c,onclick:c.option.onclick,featureName:t};else{var h=w.get(t);if(!h)return;n=new h(c,p,f)}v[t]=n}else{if(!(n=v[e]))return;n.model=c,n.ecModel=p,n.api=f}!t&&e?n.dispose&&n.dispose(p,f):!c.get("show")||n.unusable?n.remove&&n.remove(p,f):(o=n,h=t,a=(i=c).getModel("iconStyle"),r=i.getModel("emphasis.iconStyle"),e=o.getIcons?o.getIcons():i.get("icon"),s=i.get("title")||{},"string"==typeof e&&(t=e,l=s,s={},(e={})[h]=t,s[h]=l),u=i.iconPaths={},b.each(e,function(t,e){var n=S.createIcon(t,{},{x:-m/2,y:-m/2,width:m,height:m});n.setStyle(a.getItemStyle()),n.hoverStyle=r.getItemStyle(),S.setHoverStyle(n),d.get("showTitle")&&(n.__title=s[e],n.on("mouseover",function(){var t=r.getItemStyle();n.setStyle({text:s[e],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){n.setStyle({textFill:null})})),n.trigger(i.get("iconStatus."+e)||"normal"),_.add(n),n.on("click",b.bind(o.onclick,o,p,f,e)),u[e]=n}),c.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},n.render&&n.render(c,p,f,g))}_.removeAll(),d.get("show")&&(m=+d.get("itemSize"),y=d.get("feature")||{},v=this._features||(this._features={}),x=[],b.each(y,function(t,e){x.push(e)}),new o(this._featureNames||[],x).add(t).update(t).remove(b.curry(t,null)).execute(),this._featureNames=x,r.layout(_,d,f),_.add(r.makeBackground(_.getBoundingRect(),d)),_.eachChild(function(t){var e,n,i=t.__title,o=t.hoverStyle;o&&i&&(i=a.getBoundingRect(i,a.makeFont(o)),e=t.position[0]+_.position[0],n=!1,t.position[1]+_.position[1]+m+i.height>f.getHeight()&&(o.textPosition="top",n=!0),t=n?-5-i.height:m+8,e+i.width/2>f.getWidth()?(o.textPosition=["100%",t],o.textAlign="right"):e-i.width/2<0&&(o.textPosition=[0,t],o.textAlign="left"))}))},updateView:function(t,e,n,i){b.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(e,n){b.each(this._features,function(t){t.remove&&t.remove(e,n)}),this.group.removeAll()},dispose:function(e,n){b.each(this._features,function(t){t.dispose&&t.dispose(e,n)})}});t.exports=n},function(t,e,n){var r=n(3),i=n(150),n=n(164).toolbox.brush;function o(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}o.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:r.clone(n.title)};n=o.prototype;n.render=n.updateView=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=i,this._brushMode=o,r.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")})},n.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return r.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},n.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},i.register("brush",o),t.exports=o},function(t,e,n){var i=n(17),m=n(3),y=n(147),o=n(164),n=n(150),o=o.toolbox.dataView,s=new Array(60).join("-"),v="\t";function x(t){o={},a=[],r=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},r.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):a).push(t)});var o,a,r,e,c,t={seriesGroupByCategoryAxis:o,other:a,meta:r};return{value:m.filter([(e=t.seriesGroupByCategoryAxis,c=[],m.each(e,function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(m.map(t.series,function(t){return t.name})),a=[n.model.getCategories()],r=(m.each(t.series,function(t){a.push(t.getRawData().mapArray(i,function(t){return t}))}),[o.join(v)]),s=0;s<a[0].length;s++){for(var l=[],u=0;u<a.length;u++)l.push(a[u][s]);r.push(l.join(v))}c.push(r.join("\n"))}),c.join("\n\n"+s+"\n\n")),(e=t.other,m.map(e,function(t){var i=t.getRawData(),o=[t.name],a=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=i.getName(arguments[t-1]),n=0;n<t-1;n++)a[n]=arguments[n];o.push((e?e+v:"")+a.join(v))}),o.join("\n")}).join("\n\n"+s+"\n\n"))],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+s+"\n\n"),meta:t.meta}}function u(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var c=new RegExp("["+v+"]+","g");function _(t,o){var t=t.split(new RegExp("\n*"+s+"\n*","g")),a={series:[]};return m.each(t,function(t,e){var n,i;0<=t.slice(0,t.indexOf("\n")).indexOf(v)?(i=function(t){for(var e=t.split(/\n+/g),t=u(e.shift()).split(c),n=[],i=m.map(t,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=u(e[o]).split(c);n.push(a.shift());for(var r=0;r<a.length;r++)i[r]&&(i[r].data[o]=a[r])}return{series:i,categories:n}}(t),n=(e=o[e]).axisDim+"Axis",e&&(a[n]=a[n]||[],a[n][e.axisIndex]={data:i.categories},a.series=a.series.concat(i.series))):(i=function(t){for(var e=t.split(/\n+/g),t=u(e.shift()),n=[],i=0;i<e.length;i++){for(var o,a=u(e[i]).split(c),r=!1,s=isNaN(a[0])?(r=!0,o=a[0],a=a.slice(1),n[i]={name:o,value:[]},n[i].value):n[i]=[],l=0;l<a.length;l++)s.push(+a[l]);1===s.length&&(r?n[i].value=s[0]:n[i]=s[0])}return{name:t,data:n}}(t),a.series.push(i))}),a}function a(t){this._dom=null,this.model=t}a.defaultOption={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:m.clone(o.title),lang:m.clone(o.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},a.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model,o=(this._dom&&n.removeChild(this._dom),document.createElement("div")),a=(o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=i.get("backgroundColor")||"#fff",document.createElement("h4")),r=i.get("lang")||[],s=(a.innerHTML=r[0]||i.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=i.get("textColor"),document.createElement("div")),l=document.createElement("textarea"),u=(s.style.cssText="display:block;width:100%;overflow:auto;",i.get("optionToContent")),c=i.get("contentToOption"),t=x(t),h=("function"==typeof u?"string"==typeof(u=u(e.getOption()))?s.innerHTML=u:m.isDom(u)&&s.appendChild(u):(s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=t.value),t.meta),u=document.createElement("div"),t=(u.style.cssText="position:absolute;bottom:0;left:0;right:0;","float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px"),d=document.createElement("div"),p=document.createElement("div"),f=(t=(t+=";background-color:"+i.get("buttonColor"))+(";color:"+i.get("buttonTextColor")),this);function g(){n.removeChild(o),f._dom=null}y.addEventListener(d,"click",g),y.addEventListener(p,"click",function(){var t;try{t="function"==typeof c?c(s,e.getOption()):_(l.value,h)}catch(t){throw g(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),g()}),d.innerHTML=r[1],p.innerHTML=r[2],p.style.cssText=t,d.style.cssText=t,i.get("readOnly")||u.appendChild(p),u.appendChild(d),y.addEventListener(l,"keydown",function(t){var e,n,i;9===(t.keyCode||t.which)&&(e=this.value,n=this.selectionStart,i=this.selectionEnd,this.value=e.substring(0,n)+v+e.substring(i),this.selectionStart=this.selectionEnd=n+1,y.stop(t))}),o.appendChild(a),o.appendChild(s),o.appendChild(u),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},a.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},a.prototype.dispose=function(t,e){this.remove(t,e)},n.register("dataView",a),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var a=[];m.each(t.newOption.series,function(t){var e,n,i=o.getSeriesByName(t.name)[0];i?(i=i.get("data"),a.push({name:t.name,data:(e=t.data,n=i,m.map(e,function(t,e){e=n&&n[e];return m.isObject(e)&&!m.isArray(e)?(m.isObject(t)&&!m.isArray(t)&&(t=t.value),m.defaults({value:t},e)):t}))})):a.push(m.extend({type:"scatter"},t))}),o.mergeOption(m.defaults({series:a},t.newOption))}),t.exports=a},function(t,e,n){var i=n(17),s=n(3),o=n(245),u=n(326),c=n(323),h=n(191),a=n(164),r=n(150),n=(n(659),a.toolbox.dataZoom),l=s.each;function d(t,e,n){(this._brushController=new o(n.getZr())).on("brush",s.bind(this._onBrush,this)).mount(),this._isZoomActive}d.defaultOption={show:!0,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:s.clone(n.title)};var a=d.prototype,p=(a.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n;var o=t,a=e,r=this,s=r._isZoomActive;i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),r._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new u(f(o.option),a,{include:["grid"]}),r._brushController.setPanels(i.makePanelOpts(n,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!s&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}),t.setIconStatus("back",1<c.count(e)?"emphasis":"normal")},a.onclick=function(t,e,n){p[n].call(this)},a.remove=function(t,e){this._brushController.unmount()},a.dispose=function(t,e){this._brushController.dispose()},{zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}});function f(e){var n={};return s.each(["xAxisIndex","yAxisIndex"],function(t){n[t]=e[t],null==n[t]&&(n[t]="all"),!1!==n[t]&&"none"!==n[t]||(n[t]=[])}),n}a._onBrush=function(t,e){var s,l;function i(t,e,n){var i,o,a,e=e.getAxis(t),r=e.model,t=(i=t,o=r,l.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,o.componentIndex)&&(a=t)}),a),r=t.findRepresentativeAxisProxy(r).getMinMaxSpan();null==r.minValueSpan&&null==r.maxValueSpan||(n=h(0,n.slice(),e.scale.getExtent(),0,r.minValueSpan,r.maxValueSpan)),t&&(s[t.id]={dataZoomId:t.id,startValue:n[0],endValue:n[1]})}e.isEnd&&t.length&&(s={},l=this.ecModel,this._brushController.updateCovers([]),new u(f(this.model.option),l,{include:["grid"]}).matchOutputRanges(t,l,function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[t],n,e))}),c.push(l,s),this._dispatchZoomAction(s))},a._dispatchZoomAction=function(t){var n=[];l(t,function(t,e){n.push(s.clone(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},r.register("dataZoom",d),i.registerPreprocessor(function(n){var r,t;function e(i,t){var o,a,e;t&&(null==(a=t[o=i+"Index"])||"all"==a||s.isArray(a)||(a=!1===a||"none"===a?[]:[a]),t=function(t,e){var n;null!=a&&"all"!=a&&-1===s.indexOf(a,e)||((n={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+i+e})[o]=e,r.push(n))},e=n[e=i],s.isArray(e)||(e=e?[e]:[]),l(e,t))}n&&(r=n.dataZoom||(n.dataZoom=[]),s.isArray(r)||(n.dataZoom=r=[r]),t=(t=n.toolbox)&&(s.isArray(t)?t[0]:t))&&t.feature&&(e("xAxis",t=t.feature.dataZoom),e("yAxis",t))}),t.exports=d},function(t,e,n){var i=n(17),c=n(3),o=n(164),n=n(150),o=o.toolbox.magicType;function a(t){this.model=t}a.defaultOption={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",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:c.clone(o.title),option:{},seriesIndex:{}};var o=a.prototype,h=(o.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return c.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},{line:function(t,e,n,i){if("bar"===t)return c.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return c.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return c.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return c.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}}),d=[["line","bar"],["stack","tiled"]];o.onclick=function(r,t,s){var l,u=this.model,e=u.get("seriesIndex."+s);h[s]&&(l={series:[]},c.each(d,function(t){0<=c.indexOf(t,s)&&c.each(t,function(t){u.setIconStatus(t,"normal")})}),u.setIconStatus(s,"emphasis"),r.eachComponent({mainType:"series",query:null==e?null:{seriesIndex:e}},function(t){var e=t.subType,n=t.id,e=h[s](e,n,t,u),n=(e&&(c.defaults(e,t.option),l.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===s||"bar"===s)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=r.queryComponents({mainType:i,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;l[i]=l[i]||[];for(var a=0;a<=o;a++)l[i][o]=l[i][o]||{};l[i][o].boundaryGap="bar"===s}}}),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:l}))},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),n.register("magicType",a),t.exports=a},function(t,e,n){var i=n(17),o=n(323),a=n(164),n=n(150),a=a.toolbox.restore;function r(t){this.model=t}r.defaultOption={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:a.title},r.prototype.onclick=function(t,e,n){o.clear(t),e.dispatchAction({type:"restore",from:this.uid})},n.register("restore",r),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=r},function(t,e,n){var u=n(121),i=n(164),n=n(150),i=i.toolbox.saveAsImage;function o(t){this.model=t}o.defaultOption={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:i.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:i.lang.slice()},o.prototype.unusable=!u.canvasSupported,o.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=n.get("type",!0)||"png",e=(o.download=i+"."+a,o.target="_blank",e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}));if(o.href=e,"function"!=typeof MouseEvent||u.browser.ie||u.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var r=atob(e.split(",")[1]),s=r.length,l=new Uint8Array(s);s--;)l[s]=r.charCodeAt(s);t=new Blob([l]);window.navigator.msSaveOrOpenBlob(t,i+"."+a)}else{t=n.get("lang"),i='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(t&&t[0]||"")+'" /></body>';window.open().document.write(i)}else{a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(a)}},n.register("saveAsImage",o),t.exports=o},function(t,e,n){var i=n(17);n(187),n(714),n(715),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,n){var c=n(3),h=n(148),a=n(147),d=n(121),p=n(116),f=c.each,g=p.toCamelCase,m=["","-webkit-","-moz-","-o-"];function i(i){var e,n,o,t,a=[],r=i.get("transitionDuration"),s=i.get("backgroundColor"),l=i.getModel("textStyle"),u=i.get("padding");return r&&a.push((e="left "+r+"s "+(t="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+r+"s "+t,c.map(m,function(t){return t+"transition:"+e}).join(";"))),s&&(d.canvasSupported?a.push("background-Color:"+s):(a.push("background-Color:#"+h.toHex(s)),a.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(t){var e="border-"+t,n=g(e),n=i.get(n);null!=n&&a.push(e+":"+n+("color"===t?"":"px"))}),a.push((o=[],r=(n=l).get("fontSize"),(t=n.getTextColor())&&o.push("color:"+t),o.push("font:"+n.getFont()),r&&o.push("line-height:"+Math.round(3*r/2)+"px"),f(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=u&&a.push("padding:"+p.normalizeCssArray(u).join("px ")+"px"),a.join(";")+";"}function o(n,t){if(d.wxa)return null;var e=document.createElement("div"),i=this._zr=t.getZr(),o=(this.el=e,this._x=t.getWidth()/2,this._y=t.getHeight()/2,n.appendChild(e),this._container=n,this._show=!1,this._hideTimeout,this);e.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},e.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=i.handler,a.normalizeEvent(n,t,!0),e.dispatch("mousemove",t))},e.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}o.prototype={constructor:o,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),t=t.style;"absolute"!==t.position&&"absolute"!==e.position&&(t.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+i(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._zr,n=(n&&n.painter&&(n=n.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop),this.el.style);n.left=t+"px",n.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(c.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=o},function(t,e,n){n=n(17).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=n},function(t,e,n){var i=n(17),f=n(3),s=n(121),o=n(713),h=n(116),a=n(61),r=n(48),l=n(319),g=n(109),u=n(122),c=n(320),d=n(136),p=n(205),m=f.bind,y=f.each,v=a.parsePercent,x=new r.Rect({shape:{x:-1,y:-1,width:2,height:2}}),n=i.extendComponentView({type:"tooltip",init:function(t,e){s.node||(e=new o(e.getDom(),e),this._tooltipContent=e)},render:function(t,e,n){s.node||s.wxa||(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow())},_initGlobalListener:function(){var i=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,m(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY})}))},manuallyShowTip:function(t,e,n,i){var o,a,r;i.from===this.uid||s.node||(o=b(i,n),this._ticket="",r=i.dataByCoordSys,i.tooltip&&null!=i.x&&null!=i.y?((a=x).position=[i.x,i.y],a.update(),a.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):r?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(r=(a=l(i,e)).point[0],t=a.point[1],null!=r&&null!=t&&this._tryShow({offsetX:r,offsetY:t,position:i.position,target:a.el,event:{}},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},o)))},manuallyHideTip:function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(b(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var o=i.seriesIndex,a=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){r=e.getSeriesByIndex(o);if(r){t=_([r.getData().getItemModel(a),r,(r.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:i.position}),!0}}},_tryShow:function(t,e){var n,i=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e)))},_showOrMove:function(t,e){t=t.get("showDelay");e=f.bind(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},_showAxisTooltip:function(t,e){var l=this._ecModel,n=this._tooltipModel,i=[e.offsetX,e.offsetY],u=[],c=[],o=_([e.tooltipOption,n]),a=(y(t,function(t){y(t.dataByAxis,function(i){var o,a=l.getComponent(i.axisDim+"Axis",i.axisIndex),r=i.value,s=[];a&&null!=r&&(o=p.getValueLabel(r,a.axis,l,i.seriesDataIndices,i.valueLabelOpt),f.each(i.seriesDataIndices,function(t){var e=l.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,n=e&&e.getDataParams(t);n.axisDim=i.axisDim,n.axisIndex=i.axisIndex,n.axisType=i.axisType,n.axisId=i.axisId,n.axisValue=d.getAxisRawValue(a.axis,r),n.axisValueLabel=o,n&&(c.push(n),s.push(e.formatTooltip(t,!0)))}),u.push((o?h.encodeHTML(o)+"<br />":"")+s.join("<br />")))})},this),u.reverse(),u=u.join("<br /><br />"),e.position);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,a,i[0],i[1],this._tooltipContent,c):this._showTooltipContent(o,u,c,Math.random(),i[0],i[1],a)})},_showSeriesItemTooltip:function(t,e,n){var i,o,a,r=this._ecModel,s=e.seriesIndex,r=r.getSeriesByIndex(s),l=e.dataModel||r,u=e.dataIndex,e=e.dataType,c=l.getData(),h=_([c.getItemModel(u),l,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),r=h.get("trigger");null!=r&&"item"!==r||(i=l.getDataParams(u,e),o=l.formatTooltip(u,!1,e),a="item_"+l.name+"_"+u,this._showOrMove(h,function(){this._showTooltipContent(h,o,i,a,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:s,from:this.uid}))},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip,o=new u(i="string"==typeof i?{content:i,formatter:i}:i,this._tooltipModel,this._ecModel),a=o.get("content"),r=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},r,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(n,t,i,e,o,a,r,s){var l,u,c;this._ticket="",n.get("showContent")&&n.get("show")&&(l=this._tooltipContent,u=n.get("formatter"),r=r||n.get("position"),t=t,u&&"string"==typeof u?t=h.formatTpl(u,i,!0):"function"==typeof u&&(c=m(function(t,e){t===this._ticket&&(l.setContent(e),this._updatePosition(n,r,o,a,l,i,s))},this),this._ticket=e,t=u(i,e,c)),l.setContent(t),l.show(n),this._updatePosition(n,r,o,a,l,i,s))},_updatePosition:function(t,e,n,i,o,a,r){var s,l=this._api.getWidth(),u=this._api.getHeight(),c=(e=e||t.get("position"),o.getSize()),h=t.get("align"),d=t.get("verticalAlign"),p=r&&r.getBoundingRect().clone();r&&p.applyTransform(r.transform),"function"==typeof e&&(e=e([n,i],a,o.el,p,{viewSize:[l,u],contentSize:c.slice()})),f.isArray(e)?(n=v(e[0],l),i=v(e[1],u)):f.isObject(e)?(e.width=c[0],e.height=c[1],n=(a=g.getLayoutRect(e,{width:l,height:u})).x,i=a.y,d=h=null):i=(n=(s="string"==typeof e&&r?function(t,e,n){var i=n[0],o=n[1],a=0,r=0,s=e.width,l=e.height;switch(t){case"inside":a=e.x+s/2-i/2,r=e.y+l/2-o/2;break;case"top":a=e.x+s/2-i/2,r=e.y-o-5;break;case"bottom":a=e.x+s/2-i/2,r=e.y+l+5;break;case"left":a=e.x-i-5,r=e.y+l/2-o/2;break;case"right":a=e.x+s+5,r=e.y+l/2-o/2}return[a,r]}(e,p,c):function(t,e,n,i,o,a,r){var n=w(n),s=n.width,n=n.height;null!=a&&(i<t+s+a?t-=s+a:t+=a);null!=r&&(o<e+n+r?e-=n+r:e+=r);return[t,e]}(n,i,o.el,l,u,h?null:20,d?null:20))[0],s[1]),h&&(n-=S(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=S(d)?c[1]/2:"bottom"===d?c[1]:0),t.get("confine")&&(a=n,r=i,e=o.el,p=l,h=u,e=w(e),d=e.width,e=e.height,a=Math.min(a+d,p)-d,r=Math.min(r+e,h)-e,a=Math.max(a,0),r=Math.max(r,0),n=(s=[a,r])[0],i=s[1]),o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(n){var t=this._lastDataByCoordSys,a=!!t&&t.length===n.length;return a&&y(t,function(t,e){var t=t.dataByAxis||{},o=(n[e]||{}).dataByAxis||[];(a&=t.length===o.length)&&y(t,function(t,e){var e=o[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(a&=t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&y(n,function(t,e){e=i[e];a&=t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex})})}),this._lastDataByCoordSys=n,!!a},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){s.node||s.wxa||(this._tooltipContent.hide(),c.unregister("itemTooltip",e))}});function _(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(u.isInstance(n)&&(n=n.get("tooltip",!0)),e=new u(n="string"==typeof n?{formatter:n}:n,e,e.ecModel))}return e}function b(t,e){return t.dispatchAction||f.bind(e.dispatchAction,e)}function w(t){var e=t.clientWidth,n=t.clientHeight;return document.defaultView&&document.defaultView.getComputedStyle&&(t=document.defaultView.getComputedStyle(t))&&(e+=parseInt(t.paddingLeft,10)+parseInt(t.paddingRight,10)+parseInt(t.borderLeftWidth,10)+parseInt(t.borderRightWidth,10),n+=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10)+parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)),{width:e,height:n}}function S(t){return"center"===t||"middle"===t}t.exports=n},function(t,e,n){n(717),n(718)},function(t,e,n){var i=n(17),o=n(339);n(340),n(341),n(719),n(720),n(342),i.registerPreprocessor(o)},function(t,e,n){var i=n(17),o=n(339);n(340),n(341),n(721),n(722),n(342),i.registerPreprocessor(o)},function(t,e,n){var i=n(3),o=n(336),a=n(61),r=[20,140],s=o.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),null!=t[0]&&!isNaN(t[0])||(t[0]=r[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=r[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):i.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){o.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((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},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},getVisualMeta:function(n){var t=h(0,0,this.getExtent()),e=h(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var a=0,r=0,s=e.length,l=t.length;r<l&&(!e.length||t[r]<=e[0]);r++)t[r]<e[a]&&o(t[r],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&o(e[a],"outOfRange"),o(e[a],"inRange");for(u=1;r<l;r++)(!e.length||e[e.length-1]<t[r])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(t[r],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}}});function h(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],a=[],r=0;r<=200&&o<n[1];r++)a.push(o),o+=i;return a.push(n[1]),a}t.exports=s},function(t,e,n){var l=n(3),a=n(372),u=n(147),i=n(337),c=n(48),o=n(61),r=n(191),h=n(338),s=n(77),d=o.linearMap,p=l.each,f=Math.min,g=Math.max,m=i.extend({type:"visualMap.continuous",init:function(){m.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group,t=(this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e),t.get("text"));this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){var i,o,a;e&&(e=null!=(e=e[1-n])?e+"":"",o=(i=this.visualMapModel).get("textGap"),i=i.itemSize,a=this._shapes.barGroup,i=this._applyTransform([i[0]/2,0===n?-o:i[1]+o],a),o=this._applyTransform(0===n?"bottom":"top",a),n=this._orient,a=this.visualMapModel.textStyleModel,this.group.add(new c.Text({style:{x:i[0],y:i[1],textVerticalAlign:"horizontal"===n?"middle":o,textAlign:"horizontal"===n?o:"center",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})))},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,a=this._useHandle,r=h.getItemAlign(e,this.api,i),s=n.barGroup=this._createBarGroup(r),e=(s.add(n.outOfRange=y()),s.add(n.inRange=y(null,a?x(this._orient):null,l.bind(this._dragHandle,this,"all",!1),l.bind(this._dragHandle,this,"all",!0))),e.textStyleModel.getTextRect("国")),e=g(e.width,e.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(s,0,i,e,o,r),this._createHandle(s,1,i,e,o,r)),this._createIndicator(s,i,e,o),t.add(s)},_createHandle:function(t,e,n,i,o){var a=l.bind(this._dragHandle,this,e,!1),r=l.bind(this._dragHandle,this,e,!0),s=y((s=i,0===e?[[0,0],[s,0],[s,-s]]:[[0,0],[s,0],[s,s]]),x(this._orient),a,r),n=(s.position[0]=n[0],t.add(s),this.visualMapModel.textStyleModel),t=new c.Text({draggable:!0,drift:a,onmousemove:function(t){u.stop(t.event)},ondragend:r,style:{x:0,y:0,text:"",textFont:n.getFont(),textFill:n.getTextColor()}}),a=(this.group.add(t),["horizontal"===o?i/2:1.5*i,"horizontal"===o?0===e?-1.5*i:1.5*i:0===e?-i/2:i/2]),r=this._shapes;r.handleThumbs[e]=s,r.handleLabelPoints[e]=a,r.handleLabels[e]=t},_createIndicator:function(t,e,n,i){var o=y([[0,0]],"move"),e=(o.position[0]=e[0],o.attr({invisible:!0,silent:!0}),t.add(o),this.visualMapModel.textStyleModel),t=new c.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:e.getFont(),textFill:e.getTextColor()}}),e=(this.group.add(t),["horizontal"===i?n/2:9,0]),i=this._shapes;i.indicator=o,i.indicatorLabel=t,i.indicatorLabelPoint=e},_dragHandle:function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(n=this._applyTransform([n,i],this._shapes.barGroup,!0),this._updateInterval(t,n[1]),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():v(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[d(e[0],n,t,!0),d(e[1],n,t,!0)]},_updateInterval:function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]],e=(r(e=e||0,i,o,t,0),n.getExtent());this._dataInterval=[d(i[0],o,e,!0),d(i[1],o,e,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,e=[0,e.itemSize[1]],t=t?e:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,t,"inRange"),n=this._createBarVisual(n,n,e,"outOfRange");i.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:n.barColor,opacity:n.opacity}).setShape("points",n.barPoints),this._updateHandle(t,o)},_createBarVisual:function(t,e,n,i){var i={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),t=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],i=this._createBarPoints(n,t);return{barColor:new a(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var a=t[0]+i*o;if(a>t[1])break;n.push({color:this.getControllerVisual(a,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new c.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(n,i){var o,a,r,s;this._useHandle&&(o=this._shapes,a=this.visualMapModel,r=o.handleThumbs,s=o.handleLabels,p([0,1],function(t){var e=r[t],e=(e.setStyle("fill",i.handlesColor[t]),e.position[1]=n[t],c.applyTransform(o.handleLabelPoints[t],c.getTransform(e,this.group)));s[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===t?"bottom":"top":"left",o.barGroup)})},this))},_showIndicator:function(t,e,n,i){var o,a=this.visualMapModel,r=a.getExtent(),s=a.itemSize,l=[0,s[1]],r=d(t,r,l,!0),l=this._shapes,u=l.indicator;u&&(u.position[1]=r,u.attr("invisible",!1),u.setShape("points",(o=!!n,i=i,r=r,s=s[1],o?[[0,-f(i,g(r,0))],[6,0],[0,f(i,g(s-r,0))]]:[[0,0],[5,-5],[5,5]])),o=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),u.setStyle("fill",o),i=c.applyTransform(l.indicatorLabelPoint,c.getTransform(u,this.group)),(s=l.indicatorLabel).attr("invisible",!1),r=this._applyTransform("left",l.barGroup),t=this._orient,s.setStyle({text:(n||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===t?r:"middle",textAlign:"horizontal"===t?"center":r,x:i[0],y:i[1]}))},_enableHoverLinkToSeries:function(){var n=this;this._shapes.barGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.barGroup,!0,!0))[1]=f(g(0,t[1]),e[1]),n._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},_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()},_doHoverLinkToSeries:function(t,e){var n,i,o,a=this.visualMapModel,r=a.itemSize;a.option.hoverLink&&(r=[0,r[1]],i=a.getExtent(),o=[(t=f(g(r[0],t),r[1]))-(n=function(t,e,n){var i=6,t=t.get("hoverLinkDataSize");t&&(i=d(t,e,n,!0)/2);return i}(a,i,r)),t+n],t=d(t,r,i,!0),i=[d(o[0],r,i,!0),d(o[1],r,i,!0)],o[0]<r[0]&&(i[0]=-1/0),r[1]<o[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",n):i[1]===1/0?this._showIndicator(t,i[0],"> ",n):this._showIndicator(t,t,"≈ ",n)),r=this._hoverLinkDataIndices,o=[],(e||v(a))&&(o=this._hoverLinkDataIndices=a.findTargetDataIndices(i)),t=s.compressBatches(r,o),this._dispatchHighDown("downplay",h.convertDataIndex(t[0])),this._dispatchHighDown("highlight",h.convertDataIndex(t[1])))},_hoverLinkFromSeriesMouseOver:function(t){var e,t=t.target,n=this.visualMapModel;t&&null!=t.dataIndex&&(e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e))&&(n=(e=e.getData(t.dataType)).get(n.getDataDimension(e),t.dataIndex,!0),isNaN(n)||this._showIndicator(n,n))},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",h.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,i){e=c.getTransform(e,i?null:this.group);return c[l.isArray(t)?"applyTransform":"transformDirection"](t,e,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(t,e,n,i){return new c.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){u.stop(t.event)},ondragend:i})}function v(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function x(t){return"vertical"===t?"ns-resize":"ew-resize"}t.exports=m},function(t,e,n){n(79).__DEV__;var d=n(3),r=n(336),p=n(166),s=n(360),c=n(61).reformIntervals,o=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode(),i=(a[this._mode].call(this),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=d.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=d.map(this._pieceList,function(t){t=d.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){var i=this.option,n={},t=p.listVisualTypes(),o=this.isCategory();function a(t,e,n){return t&&t[e]&&(d.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}d.each(i.pieces,function(e){d.each(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),d.each(n,function(t,e){var n=0;d.each(this.stateList,function(t){n|=a(i,t,e)||a(i.target,t,e)},this),n||d.each(this.stateList,function(t){(i[t]||(i[t]={}))[e]=s.get(e,"inRange"===t?"active":"inactive",o)})},this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n,i=this.option,o=this._pieceList,a=(e?i:t).selected||{};i.selected=a,d.each(o,function(t,e){t=this.getSelectedMapKey(t);a.hasOwnProperty(t)||(a[t]=!0)},this),"single"===i.selectedMode&&(n=!1,d.each(o,function(t,e){t=this.getSelectedMapKey(t);a[t]&&(n?a[t]=!1:n=!0)},this))},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=d.clone(t)},getValueState:function(t){t=p.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){p.findPieceIndex(t,this._pieceList)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},getRepresentValue:function(t){return this.isCategory()||null!=t.value?t.value:(t=t.interval||[])[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2},getVisualMeta:function(i){var o,a,r,t,e,n;if(!this.isCategory())return o=[],a=[],(t=(r=this)._pieceList.slice()).length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]}),n=-1/0,d.each(t,function(t){t=t.interval;t&&(t[0]>n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:a};function s(t,e){var n=r.getRepresentValue({interval:t}),n=(e=e||r.getValueState(n),i(n,e));t[0]===-1/0?a[0]=n:t[1]===1/0?a[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}}}),a={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber,o=Math.max(parseInt(o,10),1);t.splitNumber=o;for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n;var a=+a.toFixed(n),r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=r+o;r<l;s+=a){var u=r===o-1?i[1]:s+a;e.push({index:r++,interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({index:r++,interval:[i[1],1/0],close:[0,0]}),c(e),d.each(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;d.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),i(t,this._pieceList)},pieces:function(){var t=this.option,h=this._pieceList;d.each(t.pieces,function(t,e){e={text:"",index:e};if(null!=(t=d.isObject(t)?t:{value:t}).label&&(e.text=t.label),t.hasOwnProperty("value")){var n=e.value=t.value;e.interval=[n,n],e.close=[1,1]}else{for(var i=e.interval=[],o=e.close=[0,0],a=[1,0,1],r=[-1/0,1/0],s=[],l=0;l<2;l++){for(var u=[["gte","gt","min"],["lte","lt","max"]][l],c=0;c<3&&null==i[l];c++)i[l]=t[u[c]],o[l]=a[c],s[l]=2===c;null==i[l]&&(i[l]=r[l])}s[0]&&i[1]===1/0&&(o[0]=0),s[1]&&i[0]===-1/0&&(o[1]=0),i[0]===i[1]&&o[0]&&o[1]&&(e.value=i[0])}e.visual=p.retrieveVisuals(t),h.push(e)},this),i(t,h),c(h),d.each(h,function(t){var e=t.close,e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}t.exports=o},function(t,e,n){var h=n(3),i=n(337),d=n(48),o=n(134).createSymbol,p=n(109),a=n(338),n=i.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group,o=(i.removeAll(),this.visualMapModel),a=o.get("textGap"),t=o.textStyleModel,r=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,c=h.retrieve(o.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],u,c,l),h.each(t.viewPieceList,function(t){var e=t.piece,n=new d.Group,t=(n.onclick=h.bind(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(n,t,[0,0,u[0],u[1]]),c&&(t=this.visualMapModel.getValueState(t),n.add(new d.Text({style:{x:"right"===l?-a:u[0]+a,y:u[1]/2,text:e.text,textVerticalAlign:"middle",textAlign:l,textFont:r,textFill:s,opacity:"outOfRange"===t?.5:1}})));i.add(n)},this),e&&this._renderEndsText(i,e[1],u,c,l),p.box(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},_enableHoverLink:function(t,n){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:a.convertDataIndex(e.findTargetDataIndices(n))})}t.on("mouseover",h.bind(e,this,"highlight")).on("mouseout",h.bind(e,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?a.getItemAlign(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},_renderEndsText:function(t,e,n,i,o){var a,r;e&&(a=new d.Group,r=this.visualMapModel.textStyleModel,a.add(new d.Text({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?o:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a))},_getViewData:function(){var t=this.visualMapModel,e=h.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(o(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=h.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,h.each(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=n},function(t,e,n){var l=n(3),f=n(137),i=n(77).makeInner,g=n(136).makeLabelFormatter,m=i();function u(t,e){var n,i=c(t,"labels"),e=v(e),o=h(i,e);return o||d(i,e,{labels:l.isFunction(e)?y(t,e):p(t,n="auto"===e?null!=(i=m(o=t).autoInterval)?i:m(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function c(t,e){return m(t)[e]||(m(t)[e]=[])}function h(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function d(t,e,n){return t.push({key:e,value:n}),n}function p(t,e,n){var i=g(t),o=t.scale,a=o.getExtent(),t=t.getLabelModel(),r=[],s=Math.max((e||0)+1,1),e=a[0],l=o.count();0!==e&&1<s&&2<l/s&&(e=Math.round(Math.ceil(e/s)*s));for(var l=t.get("showMinLabel"),t=t.get("showMaxLabel"),u=(l&&e!==a[0]&&c(a[0]),e);u<=a[1];u+=s)c(u);function c(t){r.push(n?t:{formattedLabel:i(t),rawLabel:o.getLabel(t),tickValue:t})}return t&&u!==a[1]&&c(a[1]),r}function y(t,n,i){var o=t.scale,a=g(t),r=[];return l.each(o.getTicks(),function(t){var e=o.getLabel(t);n(t,e)&&r.push(i?t:{formattedLabel:a(t),rawLabel:e,tickValue:t})}),r}function v(t){t=t.get("interval");return null==t?"auto":t}e.createAxisLabels=function(t){return"category"===t.type?(o=(e=t).getLabelModel(),a=u(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:a.labelCategoryInterval}:a):(o=(n=t).scale.getTicks(),i=g(n),{labels:l.map(o,function(t,e){return{formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t}})});var n,i,e,o,a},e.createAxisTicks=function(t,e){var n,i,o,a,r,s;return"category"===t.type?(e=e,a=c(n=t,"ticks"),r=v(e),(s=h(a,r))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=l.isFunction(r)?y(n,r,!0):"auto"===r?(s=u(n,n.getLabelModel()),o=s.labelCategoryInterval,l.map(s.labels,function(t){return t.tickValue})):p(n,o=r,!0),d(a,r,{ticks:i,tickCategoryInterval:o}))):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){a=(i=t).getLabelModel();var e={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:a.get("rotate")||0,font:a.getFont()},n=g(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=(a=t.scale).getExtent(),a=a.count();if(o[1]-o[0]<1)return 0;for(var r=1,s=(40<a&&(r=Math.max(1,Math.floor(a/40))),o[0]),l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l*Math.cos(i)),l=Math.abs(l*Math.sin(i)),c=0,h=0;s<=o[1];s+=r)var d=1.3*(p=f.getBoundingRect(n(s),e.font,"center","top")).width,p=1.3*p.height,c=Math.max(c,d,7),h=Math.max(h,p,7);return i=c/u,u=h/l,isNaN(i)&&(i=1/0),isNaN(u)&&(u=1/0),l=Math.max(0,Math.floor(Math.min(i,u))),i=m(t.model),u=i.lastAutoInterval,t=i.lastTickCount,null!=u&&null!=t&&Math.abs(u-l)<=1&&Math.abs(t-a)<=1&&l<u?l=u:(i.lastTickCount=a,i.lastAutoInterval=l),l}},function(t,e,n){var u=n(3),c=n(109),a=n(61),n=n(135);function i(t,e,n){this._model=t}function o(t,e,n,i){var o=n.calendarModel,n=n.seriesModel,o=o?o.coordinateSystem:n?n.coordinateSystem:null;return o===this?o[t](i):null}i.prototype={constructor:i,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=a.parseDate(t)).getFullYear(),n=(n=t.getMonth()+1)<10?"0"+n:n,i=(i=t.getDate())<10?"0"+i:i,o=t.getDay();return{y:e,m:n,d:i,day:Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return 0!==(e=e||0)&&(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},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 n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.get("cellSize").slice(),a=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[n,7]:[7,n],n=(u.each([0,1],function(t){l(o,t)&&(a[i[t]]=o[t]*r[t])}),{width:e.getWidth(),height:e.getHeight()}),s=this._rect=c.getLayoutRect(a,n);function l(t,e){return null!=t[e]&&"auto"!==t[e]}u.each([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/r[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){u.isArray(t)&&(t=t[0]),null==e&&(e=!0);var t=this.getDateInfo(t),n=this._rangeInfo,i=t.formatedDate;return!e||t.time>=n.start.time&&t.time<n.end.time+864e5?(e=t.day,t=this._getRangeInfo([n.start.time,i]).nthWeek,"vertical"===this._orient?[this._rect.x+e*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]):[NaN,NaN]},pointToData:function(t){t=this.pointToDate(t);return t&&t.time},dataToRect:function(t,e){t=this.dataToPoint(t,e);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,t=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(t,e-1,n):this._getDateByWeeksAndDay(e,t-1,n)},convertToPixel:u.curry(o,"dataToPoint"),convertFromPixel:u.curry(o,"pointToData"),_initRangeOption:function(){var t,e=this._model.get("range"),n=e,i=(u.isArray(n)&&1===n.length&&(n=n[0]),/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)&&((t=(i=this.getDateInfo(n)).date).setMonth(t.getMonth()+1),t=this.getNextNDay(t,-1),e=[i.formatedDate,t.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n]),this._getRangeInfo(e));return i.start.time>i.end.time&&e.reverse(),e},_getRangeInfo:function(t){(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var e,n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),o=i.getDate(),a=t[1].date.getDate();if(i.setDate(o+n-1),i.getDate()!==a)for(var r=0<i.getTime()-t[1].time?1:-1;i.getDate()!==a&&0<(i.getTime()-t[1].time)*r;)i.setDate(o+(n-=r)-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){n=this._getRangeInfo(n);return!(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)&&(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(n.start.d+t),this.getDateInfo(e))}},i.dimensions=i.prototype.dimensions,i.getDimensionsInfo=i.prototype.getDimensionsInfo,i.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new i(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},n.register("calendar",i),t.exports=i},function(t,e,n){var o=n(3),i=n(120),n=n(109),a=n.getLayoutParams,r=n.sizeCalculable,s=n.mergeLayoutParam,l=i.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,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%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var o=a(t);l.superApply(this,"init",arguments),u(t,o)},mergeOption:function(t,e){l.superApply(this,"mergeOption",arguments),u(this.option,t)}});function u(t,e){var n=t.cellSize,i=(o.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n],o.map([0,1],function(t){return r(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));s(t,e,{type:"box",ignoreSize:i})}t.exports=l},function(t,e){t.exports=function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}},function(t,e,n){function i(t,e,n,i,o){a.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom"}var o=n(3),a=n(151);i.prototype={constructor:i,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},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},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},o.inherits(i,a),t.exports=i},function(t,e,n){var i=n(3);function o(t){return this._axes[t]}function a(t){this._axes={},this._dimList=[],this.name=t||""}a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,o,this)},getAxesByScale:function(e){return e=e.toLowerCase(),i.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},o=0;o<n.length;o++){var a=n[o],r=this._axes[a];i[a]=r[e](t[a])}return i}},t.exports=a},function(t,e,n){var i=n(3),o=n(728);function a(t){o.call(this,t)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),o=this.getAxis("y");return(n=n||[])[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=o.toGlobalCoord(o.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),a=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),i),Math.max(a[0],a[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return(e=e||[])[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i.inherits(a,o),t.exports=a},function(t,e,n){n(345);n=n(120).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=n},function(t,e,n){var a=n(3);function i(i,o){return o=o||[0,0],a.map(["x","y"],function(t,e){var t=this.getAxis(t),n=o[e],e=i[e]/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(n-e)-t.dataToCoord(n+e))},this)}t.exports=function(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:a.bind(i,e)}}}},function(t,e,n){var s=n(3),r=n(118),l=n(348),a=n(343),u=[n(736),n(737),n(735),n(734)];function i(t,e,n,i,o){a.call(this,t),this.map=e,this._nameCoordMap=s.createHashMap(),this.loadGeoJson(n,i,o)}function o(t,e,n,i){var o=n.geoModel,n=n.seriesModel,o=o?o.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](i):null}i.prototype={constructor:i,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},loadGeoJson:function(t,e,n){try{this.regions=t?l(t):[]}catch(t){throw"Invalid geoJson format\n"+t.message}e=e||{},n=n||{};for(var i=this.regions,o=s.createHashMap(),a=0;a<i.length;a++){var r=i[a].name,r=n.hasOwnProperty(r)?n[r]:r,r=(i[a].name=r,o.set(r,i[a]),this.addGeoCoord(r,i[a].center),e[r]);r&&i[a].transformTo(r.left,r.top,r.width,r.height)}this._regionsMap=o,this._rect=null,s.each(u,function(t){t(this)},this)},transformTo:function(t,e,n,i){var o=this.getBoundingRect(),a=((o=o.clone()).y=-o.y-o.height,this._rawTransformable),o=(a.transform=o.calculateTransform(new r(t,e,n,i)),a.decomposeTransform(),a.scale);o[1]=-o[1],a.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){if(this._rect)return this._rect;for(var t=this.regions,e=0;e<t.length;e++){var n,i=t[e].getBoundingRect();(n=n||i.clone()).union(i)}return this._rect=n||new r(0,0,0,0)},dataToPoint:function(t,e,n){if(t="string"==typeof t?this.getGeoCoord(t):t)return a.prototype.dataToPoint.call(this,t,e,n)},convertToPixel:s.curry(o,"dataToPoint"),convertFromPixel:s.curry(o,"pointToData")},s.mixin(i,a),t.exports=i},function(t,e,n){var i=n(3),o=n(77),a=n(120),r=n(122),s=n(247),l=n(208),n=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){a.prototype.init.apply(this,arguments),o.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,n=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],function(t,e){return e.name&&t.set(e.name,new r(e,n)),t},i.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new r(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t).get("label."+e+".formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(n,s),t.exports=n},function(t,e){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];t.exports=function(t){if("china"===t.map)for(var e=0,n=t.regions.length;e<n;++e)"台湾"===t.regions[e].name&&t.regions[e].geometries.push({type:"polygon",exterior:i[0]})}},function(t,e,n){var i=n(3),o={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};t.exports=function(t){i.each(t.regions,function(t){var e=o[t.name];e&&((t=t.center)[0]=e[0],t[1]=e[1])})}},function(t,e,n){for(var i=n(3),o=n(347),a=[126,25],r=[[[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]]],s=0;s<r.length;s++)for(var l=0;l<r[s].length;l++)r[s][l][0]/=10.5,r[s][l][1]/=-14,r[s][l][0]+=a[0],r[s][l][1]+=a[1];t.exports=function(t){"china"===t.map&&t.regions.push(new o("南海诸岛",i.map(r,function(t){return{type:"polygon",exterior:t}}),a))}},function(t,e,n){var i=n(3),o={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};t.exports=function(t){i.each(t.regions,function(t){var e=o[t.name];e&&((t=t.center)[0]+=e[0]/10.5,t[1]+=-e[1]/14)})}},function(t,e,n){var i=n(3);function o(a,r){return r=r||[0,0],i.map([0,1],function(t){var e=r[t],n=a[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=r[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}t.exports=function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(o,e)}}}},function(t,e,n){var i=n(3),o=n(120),a=n(179),r=n(207),s=n(61),n=n(177),o=o.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;0<=n;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(t))if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}});i.merge(o.prototype,n),r("parallel",o,function(t,e){return e.type||(e.data?"category":"value")},{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10}),t.exports=o},function(t,e,n){var f=n(3),l=n(129),i=n(109),a=n(136),r=n(741),o=n(48),s=n(61),c=n(191),u=f.each,h=Math.min,d=Math.max,g=Math.floor,m=Math.ceil,y=s.round,p=Math.PI;function v(t,e,n){this._axesMap=f.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function x(t,e){return h(d(t,e[0]),e[1])}v.prototype={type:"parallel",constructor:v,_init:function(t,i,e){var n=t.dimensions,o=t.parallelAxisIndex;u(n,function(t,e){var e=o[e],n=i.getComponent("parallelAxis",e),t=this._axesMap.set(t,new r(t,a.createScaleByModel(n),[0,0],n.get("type"),e)),e="category"===t.type;t.onBand=e&&n.get("boundaryGap"),t.inverse=n.get("inverse"),(n.axis=t).model=n,t.coordinateSystem=n.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],t=t[o];return n<=a&&a<=n+e.axisLength&&i<=t&&t<=i+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),u(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),a.niceScaleExtent(e.scale,e.model)},this))},this)},resize:function(t,e){this._rect=i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,r=e[i[a]],s=[0,r],l=this.dimensions.length,u=x(t.get("axisExpandWidth"),s),c=x(t.get("axisExpandCount")||0,[0,l]),h=t.get("axisExpandable")&&3<l&&c<l&&1<c&&0<u&&0<r,d=t.get("axisExpandWindow"),s=(d?(p=x(d[1]-d[0],s),d[1]=d[0]+p):(p=x(u*(c-1),s),(d=[u*(t.get("axisExpandCenter")||g(l/2))-p/2])[1]=d[0]+p),(r-p)/(l-c)),t=(s<3&&(s=0),[g(y(d[0]/u,1))+1,m(y(d[1]/u,1))-1]),p=s/u*d[0];return{layout:o,pixelDimIndex:a,layoutBase:e[n[a]],layoutLength:r,axisBase:e[n[1-a]],axisLength:e[i[1-a]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:s,axisExpandWindow:d,axisCount:l,winInnerIndices:t,axisExpandWindow0Pos:p}},_layoutAxes:function(){var a=this._rect,t=this._axesMap,e=this.dimensions,r=this._makeLayoutInfo(),s=r.layout;t.each(function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),u(e,function(t,e){var e=(r.axisExpandable?function(t,e){var n,i,o=e.layoutLength,a=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(n=o-(r-1-t)*s,i=s);return{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}:function(t,e){e=e.layoutLength/(e.axisCount-1);return{position:e*t,axisNameAvailableWidth:e,axisLabelShow:!0}})(e,r),n={horizontal:{x:e.position,y:r.axisLength},vertical:{x:0,y:e.position}},n=[n[s].x+a.x,n[s].y+a.y],i={horizontal:p/2,vertical:0}[s],o=l.create();l.rotate(o,o,i),l.translate(o,o,n),this._axesLayout[t]={position:n,rotation:i,transform:o,axisNameAvailableWidth:e.axisNameAvailableWidth,axisLabelShow:e.axisLabelShow,nameTruncateMaxWidth:e.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());for(var o=this._axesMap,a=this.dimensions,r=[],s=[],l=(f.each(a,function(t){r.push(e.mapDimension(t)),s.push(o.get(t).model)}),this.hasAxisBrushed()),u=n;u<i;u++){if(l){for(var c="active",h=e.getValues(r,u),d=0,p=a.length;d<p;d++)if("inactive"===s[d].getActiveState(h[d])){c="inactive";break}}else c="normal";t(c,u)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){e=this._axesLayout[e];return o.applyTransform([t,0],e.transform)},getAxisLayout:function(t){return f.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e,n,i,o,a=this._makeLayoutInfo(),r=a.pixelDimIndex,s=a.axisExpandWindow.slice(),l=s[1]-s[0],u=[0,a.axisExpandWidth*(a.axisCount-1)];return this.containPoint(t)?(t=t[r]-a.layoutBase-a.axisExpandWindow0Pos,r="slide",n=a.axisCollapseWidth,o=null!=(i=this._model.get("axisExpandSlideTriggerArea"))[0],n?(o&&n&&t<l*i[0]?(r="jump",e=t-l*i[2]):o&&n&&t>l*(1-i[0])?(r="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=a.axisExpandWidth/n)?c(e,s,u,"all"):r="none"):(l=s[1]-s[0],(s=[d(0,u[1]*t/l-l/2)])[1]=h(u[1],s[0]+l),s[0]=s[1]-l),{axisExpandWindow:s,behavior:r}):{behavior:"none",axisExpandWindow:s}}},t.exports=v},function(t,e,n){function i(t,e,n,i,o){a.call(this,t,e,n),this.type=i||"value",this.axisIndex=o}var o=n(3),a=n(151);i.prototype={constructor:i,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},o.inherits(i,a),t.exports=i},function(t,e,n){var i=n(3),o=n(120),n=(n(739),o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,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},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){t=t.get("parallelIndex");return null!=t&&e.getComponent("parallel",t)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],t=i.filter(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);i.each(t,function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)})}}));t.exports=n},function(t,e,n){var o=n(3),a=n(77);t.exports=function(t){var e,n,i;(i=t).parallel||(e=!1,o.each(i.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(i.parallel=[{}])),n=t,i=a.normalizeToArray(n.parallelAxis),o.each(i,function(t){var e;o.isObject(t)&&(e=t.parallelIndex||0,e=a.normalizeToArray(n.parallel)[e])&&e.parallelAxisDefault&&o.merge(t,e.parallelAxisDefault,!1)})}},function(t,e,n){var i=n(3),o=n(151);function a(t,e){o.call(this,"angle",t,e=e||[0,360]),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData},i.inherits(a,o),t.exports=a},function(t,e,n){var i=n(3),o=n(120),a=n(207),n=n(177),o=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(o.prototype,n);i={splitNumber:5};function r(t,e){return e.type||(e.data?"category":"value")}a("angle",o,r,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),a("radius",o,r,i)},function(t,e,n){function i(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new o,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this}var o=n(748),a=n(744);i.prototype={type:"polar",axisPointerEnabled:!0,constructor:i,dimensions:["radius","angle"],model:null,containPoint:function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},pointToCoord:function(t){for(var e=t[0]-this.cx,t=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]),i=(n.inverse?o=a-360:a=o+360,Math.sqrt(e*e+t*t)),r=(e/=i,t/=i,Math.atan2(-t,e)/Math.PI*180),s=r<o?1:-1;r<o||a<r;)r+=360*s;return[i,r]},coordToPoint:function(t){var e=t[0],t=t[1]/180*Math.PI;return[Math.cos(t)*e+this.cx,-Math.sin(t)*e+this.cy]}},t.exports=i},function(t,e,n){var i=n(17),n=(n(745),i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}}));t.exports=n},function(t,e,n){var i=n(3),o=n(151);function a(t,e){o.call(this,"radius",t,e),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},i.inherits(a,o),t.exports=a},function(t,e,n){var s=n(3);function r(a,r){return s.map(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=a[e]/2,o="dataTo"+t,n="category"===n.type?n.getBandWidth():Math.abs(n[o](i-e)-n[o](i+e));return n="Angle"===t?n*Math.PI/180:n},this)}t.exports=function(i){var o=i.getRadiusAxis(),a=i.getAngleAxis(),t=o.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:s.bind(function(t){var e=o.dataToRadius(t[0]),t=a.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n}),size:s.bind(r,i)}}}},function(t,e,n){var i=n(3),o=n(151);function a(t,e,n){o.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(a,o),t.exports=a},function(t,e,n){var r=n(3),i=n(750),o=n(211),d=n(61),a=n(136),p=a.getScaleExtent,f=a.niceScaleExtent,a=n(135);function s(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),function(t,e){var e="indicator_"+e,n=new i(e,new o);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n},this),this.resize(t,n),this.cx,this.cy,this.r,this.startAngle}s.prototype.getIndicatorAxes=function(){return this._indicatorAxes},s.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},s.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},s.prototype.pointToData=function(t){for(var e,n=t[0]-this.cx,t=t[1]-this.cy,i=Math.sqrt(n*n+t*t),o=(n/=i,t/=i,Math.atan2(-t,n)),a=1/0,r=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(o-l.angle);u<a&&(e=l,r=s,a=u)}return[r,+(e&&e.coodToData(i))]},s.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),e=e.getHeight(),o=Math.min(i,e)/2;this.cx=d.parsePercent(n[0],i),this.cy=d.parsePercent(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,this.r=d.parsePercent(t.get("radius"),o),r.each(this._indicatorAxes,function(t,e){t.setExtent(0,this.r);e=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,e=Math.atan2(Math.sin(e),Math.cos(e));t.angle=e},this)},s.prototype.update=function(i,t){var o=this._indicatorAxes,a=this._model,c=(r.each(o,function(t){t.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(t,e){var n;"radar"===t.get("coordinateSystem")&&i.getComponent("radar",t.get("radarIndex"))===a&&(n=t.getData(),r.each(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),a.get("splitNumber"));function h(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),t=t/e;return 2===t?t=5:t*=2,t*e}r.each(o,function(t,e){var n,i,o=p(t.scale,t.model),a=(f(t.scale,t.model),t.model),r=t.scale,s=a.getMin(),l=a.getMax(),u=r.getInterval();if(null!=s&&null!=l)r.setExtent(+s,+l),r.setInterval((l-s)/c);else if(null!=s)for(;r.setExtent(+s,n=s+u*c),r.setInterval(u),u=h(u),n<o[1]&&isFinite(n)&&isFinite(o[1]););else if(null!=l)for(;r.setExtent(i=l-u*c,+l),r.setInterval(u),u=h(u),i>o[0]&&isFinite(i)&&isFinite(o[0]););else{t=r.getTicks().length-1,a=(c<t&&(u=h(u)),Math.round((o[0]+o[1])/2/u)*u),t=Math.round(c/2);r.setExtent(d.round(a-t*u),d.round(a+(c-t)*u)),r.setInterval(u)}})},s.dimensions=[],s.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new s(t,0,n);i.push(e),t.coordinateSystem=e}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},a.register("radar",s),t.exports=s},function(t,e,n){var i=n(17),p=n(3),o=n(344),f=n(122),g=n(177),n=o.valueAxis;function a(t,e){return p.defaults({show:e},t)}o=i.extendComponentModel({type:"radar",optionUpdated:function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),a=this.get("axisLine"),r=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("name"),u=this.get("name.show"),c=this.get("name.formatter"),h=this.get("nameGap"),d=this.get("triggerEvent"),t=p.map(this.get("indicator")||[],function(t){null!=t.max&&0<t.max&&!t.min?t.min=0:null!=t.min&&t.min<0&&!t.max&&(t.max=0);var e=l,e=(null!=t.color&&(e=p.defaults({color:t.color},l)),t=p.merge(p.clone(t),{boundaryGap:n,splitNumber:i,scale:o,axisLine:a,axisTick:r,axisLabel:s,name:t.text,nameLocation:"end",nameGap:h,nameTextStyle:e,triggerEvent:d},!1),u||(t.name=""),"string"==typeof c?(e=t.name,t.name=c.replace("{value}",null!=e?e:"")):"function"==typeof c&&(t.name=c(t.name,t)),p.extend(new f(t,null,this.ecModel),g));return e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this.getIndicatorModels=function(){return t}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:p.merge({lineStyle:{color:"#bbb"}},n.axisLine),axisLabel:a(n.axisLabel,!1),axisTick:a(n.axisTick,!1),splitLine:a(n.splitLine,!0),splitArea:a(n.splitArea,!0),indicator:[]}});t.exports=o},function(t,e,n){var i=n(3),o=n(120),a=n(207),n=n(177),o=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});i.merge(o.prototype,n),a("single",o,function(t,e){return e.type||(e.data?"category":"value")},{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}}),t.exports=o},function(t,e,n){var a=n(755),r=n(136),i=n(109).getLayoutRect,o=n(3).each;function s(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(t,e,n){var i=this.dimension,i=new a(i,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),(t.axis=i).model=t,(i.coordinateSystem=this)._axis=i},update:function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(e=t.getData(),o(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),r.niceScaleExtent(this._axis.scale,this._axis.model))},this)},resize:function(t,e){this._rect=i({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()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],n=t.isHorizontal();t.toGlobalCoord=n?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=n?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i}},t.exports=s},function(t,e,n){function i(t,e,n,i,o){a.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom",this.orient=null}var o=n(3),a=n(151);i.prototype={constructor:i,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},o.inherits(i,a),t.exports=i},function(t,e,n){var i=n(3);function o(t,e){var n=this.getAxis(),e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}t.exports=function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(o,e)}}}},function(t,e,n){var r=n(754);n(135).register("single",{create:function(i,o){var a=[];return i.eachComponent("singleAxis",function(t,e){var n=new r(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,a.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=i.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0],t.coordinateSystem=e&&e.coordinateSystem)}),a},dimensions:r.prototype.dimensions})},function(t,e,n){n(79).__DEV__;var i=n(3),n=n(143).enableClassCheck;function c(t){return"_EC_"+t}function a(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData}var o=a.prototype;function h(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function r(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}o.type="graph",o.isDirected=function(){return this._directed},o.addNode=function(t,e){t=t||""+e;var n=this._nodesMap;if(!n[c(t)])return((e=new h(t,e)).hostGraph=this).nodes.push(e),n[c(t)]=e},o.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},o.getNodeById=function(t){return this._nodesMap[c(t)]},o.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),h.isInstance(t)||(t=i[c(t)]),h.isInstance(e)||(e=i[c(e)]),t&&e){i=t.id+"-"+e.id;if(!o[i])return((n=new r(t,e,n)).hostGraph=this)._directed&&(t.outEdges.push(n),e.inEdges.push(n)),t.edges.push(n),t!==e&&e.edges.push(n),this.edges.push(n),o[i]=n}},o.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},o.getEdge=function(t,e){h.isInstance(t)&&(t=t.id),h.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},o.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&t.call(e,n[o],o)},o.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&0<=n[o].node1.dataIndex&&0<=n[o].node2.dataIndex&&t.call(e,n[o],o)},o.breadthFirstTraverse=function(t,e,n,i){if(e=h.isInstance(e)?e:this._nodesMap[c(e)]){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,e,null))for(var r=[e];r.length;)for(var s=r.shift(),l=s[o],a=0;a<l.length;a++){var u=l[a],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;r.push(u),u.__visited=!0}}}},o.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,a=n.length;o<a;o++)n[o].dataIndex=-1;for(o=0,a=t.count();o<a;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex});for(o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(o=0,a=e.count();o<a;o++)i[e.getRawIndex(o)].dataIndex=o},o.clone=function(){for(var t=new a(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},h.prototype={constructor:h,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}},r.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)};function s(n,i){return{getValue:function(t){var e=this[n][i];return e.get(e.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this[n][i].getItemVisual(this.dataIndex,t,e)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}i.mixin(h,s("hostGraph","data")),i.mixin(r,s("hostGraph","edgeData")),a.Node=h,a.Edge=r,n(h),n(r),t.exports=a},function(t,e,n){var i=n(3),o=n(141),a=n(136),r=n(177),s=n(122),l=n(109),l=(l.getLayoutRect,e.getLayoutRect=l.getLayoutRect,n(142)),u=l.enableDataStack,c=l.isDimensionStacked,l=l.getStackedDimension,h=n(352),h=(e.completeDimensions=h,n(178)),h=(e.createDimensions=h,n(134));e.createSymbol=h.createSymbol;n={isDimensionStacked:c,enableDataStack:u,getStackedDimension:l};e.createList=function(t){return o(t.getSource(),t)},e.dataStack=n,e.createScale=function(t,e){var n=e;return s.isInstance(e)||(n=new s(e),i.mixin(n,r)),(e=a.createScaleByModel(n)).setExtent(t[0],t[1]),a.niceScaleExtent(e,n),e},e.mixinAxisModelCommonMethods=function(t){i.mixin(t,r)}},function(t,e,n){var d=n(3),P=n(61).parsePercent,k=n(142).isDimensionStacked;function O(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}t.exports=function(t,e,n){var l,h,A=n.getWidth(),D=n.getHeight(),C={},L=(n=d.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}),l={},d.each(n,function(t,e){var n=t.getData(),i=t.coordinateSystem.getBaseAxis(),o=i.getExtent(),o="category"===i.type?i.getBandWidth():Math.abs(o[1]-o[0])/n.count(),n=l[i.dim]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=n.stacks,i=(l[i.dim]=n,O(t)),r=(a[i]||n.autoWidthCount++,a[i]=a[i]||{width:0,maxWidth:0},P(t.get("barWidth"),o)),o=P(t.get("barMaxWidth"),o),s=t.get("barGap"),t=t.get("barCategoryGap");r&&!a[i].width&&(r=Math.min(n.remainedWidth,r),a[i].width=r,n.remainedWidth-=r),o&&(a[i].maxWidth=o),null!=s&&(n.gap=s),null!=t&&(n.categoryGap=t)}),h={},d.each(l,function(t,n){h[n]={};var i,e=t.stacks,o=t.bandWidth,o=P(t.categoryGap,o),a=P(t.gap,1),r=t.remainedWidth,s=t.autoWidthCount,l=(r-o)/(s+(s-1)*a),l=Math.max(l,0),u=(d.each(e,function(t,e){var n=t.maxWidth;n&&n<l&&(n=Math.min(n,r),t.width&&(n=Math.min(n,t.width)),r-=n,t.width=n,s--)}),l=(r-o)/(s+(s-1)*a),l=Math.max(l,0),0),c=(d.each(e,function(t,e){t.width||(t.width=l),u+=(i=t).width*(1+a)}),i&&(u-=i.width*a),-u/2);d.each(e,function(t,e){h[n][e]=h[n][e]||{offset:c,width:t.width},c+=t.width*(1+a)})}),h);e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type)for(var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=O(t),a=L[i.dim][o],r=a.offset,s=a.width,l=n.getOtherAxis(i),a=t.get("center")||["50%","50%"],u=P(a[0],A),c=P(a[1],D),h=t.get("barMinHeight")||0,d=t.get("barMinAngle")||0,p=(C[o]=C[o]||[],e.mapDimension(l.dim)),f=e.mapDimension(i.dim),g=k(e,p),m=l.getExtent()[0],y=0,v=e.count();y<v;y++){var x,_,b,w,S,M,I=e.get(p,y),T=e.get(f,y);isNaN(I)||(x=0<=I?"p":"n",_=m,g&&(C[o][T]||(C[o][T]={p:m,n:m}),_=C[o][T][x]),"radius"===l.dim?(S=l.dataToRadius(I)-m,w=i.dataToAngle(T),S=(b=_)+(S=Math.abs(S)<h?(S<0?-1:1)*h:S),M=(w=w-r)-s,g&&(C[o][T][x]=S)):(I=l.dataToAngle(I,!0)-m,S=(b=i.dataToRadius(T)+r)+s,M=(w=_)+(I=Math.abs(I)<d?(I<0?-1:1)*d:I),g&&(C[o][T][x]=M)),e.setItemLayout(y,{cx:u,cy:c,r0:b,r:S,startAngle:-w*Math.PI/180,endAngle:-M*Math.PI/180}))}},this)}},function(t,e,n){var s=n(3),l=n(48),u=Math.PI;t.exports=function(i,t){s.defaults(t=t||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var o=new l.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),a=new l.Arc({shape:{startAngle:-u/2,endAngle:-u/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),r=new l.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});return a.animateShape(!0).when(1e3,{endAngle:3*u/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*u/2}).delay(300).start("circularInOut"),(t=new l.Group).add(a),t.add(r),t.add(o),t.resize=function(){var t=i.getWidth()/2,e=i.getHeight()/2,n=(a.setShape({cx:t,cy:e}),a.shape.r);r.setShape({x:t-n,y:e-n,width:2*n,height:2*n}),o.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}},function(t,e,n){var h=n(3),a=n(77),r=n(120),u=h.each,d=h.clone,p=h.map,s=h.merge,f=/^(min|max)?(.+)$/;function i(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}i.prototype={constructor:i,setOption:function(t,e){t&&h.each(a.normalizeToArray(t.series),function(t){t&&t.data&&h.isTypedArray(t.data)&&h.setAsPrimitive(t.data)}),t=d(t,!0);var o,n=this._optionBackup,t=function(t,n,i){var e,o,a=[],r=[],s=t.timeline;t.baseOption&&(o=t.baseOption);(s||t.options)&&(o=o||{},a=(t.options||[]).slice());{var l;t.media&&(o=o||{},l=t.media,u(l,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)}))}o=o||t;o.timeline||(o.timeline=s);return u([o].concat(a).concat(h.map(r,function(t){return t.option})),function(e){u(n,function(t){t(e,i)})}),{baseOption:o,timelineOptions:a,mediaDefault:e,mediaList:r}}.call(this,t,e,!n);this._newBaseOption=t.baseOption,n?(o=n.baseOption,e=t.baseOption,u(e=e||{},function(t,e){var n,i;null!=t&&(n=o[e],r.hasClass(e)?(t=a.normalizeToArray(t),n=a.normalizeToArray(n),i=a.mappingToExists(n,t),o[e]=p(i,function(t){return t.option&&t.exist?s(t.exist,t.option,!0):t.exist||t.option})):o[e]=s(n,t,!0))}),t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=p(e.timelineOptions,d),this._mediaList=p(e.mediaList,d),this._mediaDefault=d(e.mediaDefault),this._currentMediaIndices=[],d(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?d(n[t.getCurrentIndex()],!0):e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],r=[];if(i.length||o){for(var s,l,u=0,c=i.length;u<c;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return h.each(t,function(t,e){var n,e=e.match(f);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[u].query,e,n)||a.push(u);(a=!a.length&&o?[-1]:a).length&&(s=a,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(r=p(a,function(t){return d((-1===t?o:i[t]).option)})),this._currentMediaIndices=a}return r}},t.exports=i},function(t,e){var n="",n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:(n="undefined"!=typeof navigator?navigator.platform||"":n).match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=n},function(t,e,n){var i=n(179)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]);t.exports={getAreaStyle:function(t,e){return i(this,t,e)}}},function(t,e){t.exports={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")}}}},function(t,e,n){var i=n(179)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);t.exports={getItemStyle:function(t,e){t=i(this,t,e),e=this.getBorderLineDash();return e&&(t.lineDash=e),t},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,n){var i=n(179)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var t=i(this,t),e=this.getLineDash(t.lineWidth);return e&&(t.lineDash=e),t},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),t=4*t;return"solid"===e||null==e?null:"dashed"===e?[t,t]:[n,n]}}},function(t,e,n){var i=n(137),o=n(48),a=["textStyle","color"];t.exports={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return o.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}}},function(t,e,n){var i=n(3),o=i.each,a=i.isArray,l=i.isObject,r=n(770),s=n(77).normalizeToArray;function u(e){o(c,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(e,t){r(e,t),e.series=s(e.series),o(e.series,function(t){if(l(t)){var e=t.type;if("pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){e=function(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t,"pointer.color");if(null!=e){var n=t;var i="itemStyle.normal.color";var o=void 0;i=i.split(",");for(var a,r=n,s=0;s<i.length-1;s++)null==r[a=i[s]]&&(r[a]={}),r=r[a];!o&&null!=r[i[s]]||(r[i[s]]=e)}}u(t)}}),e.dataRange&&(e.visualMap=e.dataRange),o(h,function(t){t=e[t];t&&(a(t)||(t=[t]),o(t,function(t){u(t)}))})}},function(t,e,n){var u=n(3),r=n(77),i=u.each,c=u.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function h(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=s.length;n<i;n++){var o=s[n],a=e.normal,r=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?u.merge(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),r&&r[o]&&(t[o]=t[o]||{},t[o].emphasis?u.merge(t[o].emphasis,r[o]):t[o].emphasis=r[o],r[o]=null)}}function d(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,u.defaults(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o)}function p(t){d(t,"itemStyle"),d(t,"lineStyle"),d(t,"areaStyle"),d(t,"label"),d(t,"labelLine"),d(t,"upperLabel"),d(t,"edgeLabel")}function f(t,e){var n=c(t)&&t[e],i=c(n)&&n.textStyle;if(i)for(var o=0,a=r.TEXT_STYLE_OPTIONS.length;o<a;o++){e=r.TEXT_STYLE_OPTIONS[o];i.hasOwnProperty(e)&&(n[e]=i[e])}}function g(t){t&&(p(t),f(t,"label"),t.emphasis)&&f(t.emphasis,"label")}function o(t){return u.isArray(t)?t:t?[t]:[]}function a(t){return(u.isArray(t)?t[0]:t)||{}}t.exports=function(e,t){i(o(e.series),function(t){if(c(t))if(c(t)){h(t),p(t),f(t,"label"),f(t,"upperLabel"),f(t,"edgeLabel"),t.emphasis&&(f(t.emphasis,"label"),f(t.emphasis,"upperLabel"),f(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(h(e),g(e)),t.markLine),i=(n&&(h(n),g(n)),t.markArea),o=(i&&g(i),t.data);if("graph"===t.type){var o=o||t.nodes,a=t.links||t.edges;if(a&&!u.isTypedArray(a))for(var r=0;r<a.length;r++)g(a[r]);u.each(t.categories,function(t){p(t)})}if(o&&!u.isTypedArray(o))for(r=0;r<o.length;r++)g(o[r]);if((e=t.markPoint)&&e.data)for(var s=e.data,r=0;r<s.length;r++)g(s[r]);if((n=t.markLine)&&n.data)for(var l=n.data,r=0;r<l.length;r++)u.isArray(l[r])?(g(l[r][0]),g(l[r][1])):g(l[r]);"gauge"===t.type?(f(t,"axisLabel"),f(t,"title"),f(t,"detail")):"treemap"===t.type?(d(t.breadcrumb,"itemStyle"),u.each(t.levels,function(t){p(t)})):"tree"===t.type&&p(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),i(n,function(t){i(o(e[t]),function(t){t&&(f(t,"axisLabel"),f(t.axisPointer,"label"))})}),i(o(e.parallel),function(t){t=t&&t.parallelAxisDefault;f(t,"axisLabel"),f(t&&t.axisPointer,"label")}),i(o(e.calendar),function(t){d(t,"itemStyle"),f(t,"dayLabel"),f(t,"monthLabel"),f(t,"yearLabel")}),i(o(e.radar),function(t){f(t,"name")}),i(o(e.geo),function(t){c(t)&&(g(t),i(o(t.regions),function(t){g(t)}))}),i(o(e.timeline),function(t){g(t),d(t,"label"),d(t,"itemStyle"),d(t,"controlStyle",!0);t=t.data;u.isArray(t)&&u.each(t,function(t){u.isObject(t)&&(d(t,"label"),d(t,"itemStyle"))})}),i(o(e.toolbox),function(t){d(t,"iconStyle"),i(t.feature,function(t){d(t,"iconStyle")})}),f(a(e.axisPointer),"label"),f(a(e.tooltip).axisPointer,"label")}},function(t,e){function l(t,e){return Math.round(t.length/2)}var u={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}};t.exports=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,n){var i,o,a=t.getData(),r=t.get("sampling"),s=t.coordinateSystem;"cartesian2d"===s.type&&r&&(i=s.getBaseAxis(),s=s.getOtherAxis(i),i=(i=i.getExtent())[1]-i[0],1<(i=Math.round(a.count()/i)))&&("string"==typeof r?o=u[r]:"function"==typeof r&&(o=r),o)&&t.setData(a.downSample(a.mapDimension(s.dim),1/i,o,l))}}}},function(t,e,n){var n=n(3),o=n.createHashMap,i=n.each;function a(g){i(g,function(u,c){var h=[],d=[NaN,NaN],t=[u.stackResultDimension,u.stackedOverDimension],p=u.data,f=u.isStackedByIndex,t=p.map(t,function(t,e,n){var i,o,a=p.get(u.stackedDimension,n);if(isNaN(a))return d;f?o=p.getRawIndex(n):i=p.get(u.stackedByDimension,n);for(var r=NaN,s=c-1;0<=s;s--){var l=g[s];if(0<=(o=f?o:l.data.rawIndexOf(l.stackedByDimension,i))){l=l.data.getByRawIndex(l.stackResultDimension,o);if(0<=a&&0<l||a<=0&&l<0){a+=l,r=l;break}}}return h[0]=a,h[1]=r,h});p.hostModel.setData(t),u.data=t})}t.exports=function(t){var i=o();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(a)}},function(t,e,n){var a=n(3),i=n(212),r=n(61),o=n(211),s=i.prototype,l=o.prototype,u=r.getPrecisionSafe,c=r.round,h=Math.floor,d=Math.ceil,p=Math.pow,f=Math.log,g=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new o},getTicks:function(){var n=this._originalScale,i=this._extent,o=n.getExtent();return a.map(l.getTicks.call(this),function(t){var e=r.round(p(this.base,t)),e=t===i[0]&&n.__fixMin?m(e,o[0]):e;return t===i[1]&&n.__fixMax?m(e,o[1]):e},this)},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),p(this.base,t)},setExtent:function(t,e){var n=this.base;t=f(t)/f(n),e=f(e)/f(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this),t=(e[0]=p(t,e[0]),e[1]=p(t,e[1]),this._originalScale),n=t.getExtent();return t.__fixMin&&(e[0]=m(e[0],n[0])),t.__fixMax&&(e[1]=m(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=r.quantity(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[r.round(d(e[0]/i)*i),r.round(h(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return c(t,u(e))}a.each(["contain","normalize"],function(e){g.prototype[e]=function(t){return t=f(t)/f(this.base),s[e].call(this,t)}}),g.create=function(){return new g},t.exports=g},function(t,e,n){var i=n(3),o=n(212),a=n(351),r=o.prototype,s=o.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),r.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return r.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(r.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s},t.exports=s},function(t,e,n){var i=n(3),r=n(61),o=n(116),s=n(358),n=n(211),a=n.prototype,l=Math.ceil,u=Math.floor,c=864e5,h=n.extend({type:"time",getLabel:function(t){var e=this._stepLvl,t=new Date(t);return o.formatTime(e[0],t,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent,n=(e[0]===e[1]&&(e[0]-=c,e[1]+=c),e[1]===-1/0&&e[0]===1/0&&(n=new Date,e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-c),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=r.round(u(e[0]/n)*n)),t.fixMax||(e[1]=r.round(l(e[1]/n)*n))},niceTicks:function(t,e,n){var i=this._extent,o=i[1]-i[0],a=o/(t=t||10),e=(null!=e&&a<e&&(a=e),d.length),n=function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(d,a=null!=n&&n<a?n:a,0,e),a=d[Math.min(n,e-1)],n=a[1],e=("year"===a[0]&&(n*=r.nice(o/n/t,!0)),this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3),o=[Math.round(l((i[0]-e)/n)*n+e),Math.round(u((i[1]-e)/n)*n+e)];s.fixExtent(o,i),this._stepLvl=a,this._interval=n,this._niceExtent=o},parse:function(t){return+r.parseDate(t)}}),d=(i.each(["contain","normalize"],function(e){h.prototype[e]=function(t){return a[e].call(this,this.parse(t))}}),[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",c],["MM-dd\nyyyy",2*c],["MM-dd\nyyyy",3*c],["MM-dd\nyyyy",4*c],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",6*c],["week",7*c],["MM-dd\nyyyy",864e6],["week",14*c],["week",21*c],["month",31*c],["week",42*c],["month",62*c],["week",42*c],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]]);h.create=function(t){return new h({useUTC:t.ecModel.get("useUTC")})},t.exports=h},function(t,e,n){var i=n(3),w=i.each,o=i.map,a=(i.isArray,i.isFunction),S=i.createHashMap,r=i.noop,M=n(255).createTask,s=n(213).getUID,i=n(355),l=n(302),u=n(77).normalizeToArray;function c(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=S()}n=c.prototype;function h(s,t,l,u,c){var h;function d(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}c=c||{},w(t,function(i,t){var e,n,o,a,r;c.visualType&&c.visualType!==i.visualType||(e=(n=s._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((a=n.agentStubMap).each(function(t){d(c,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),p(n,u),r=s.getPerformArgs(n,c.block),a.each(function(t){t.perform(r)}),h|=n.perform(r)):e&&e.each(function(t,e){d(c,t)&&t.dirty();var n=s.getPerformArgs(t,c.block);n.skip=!i.performRawSeries&&l.isSeriesFiltered(t.context.model),p(t,u),h|=t.perform(n)}))}),s.unfinished|=h}n.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},n.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},n.getPipeline=function(t){return this._pipelineMap.get(t)},n.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},n.restorePipelines=function(t){var i=this,o=i._pipelineMap=S();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),P(i,t,t.dataTask)})},n.prepareStageTasks=function(){var x=this._stageTaskMap,_=this.ecInstance.getModel(),b=this.api;w(this._allHandlers,function(t){var n,i,o,a,r,s,l,e,u,c,h,d,p,f,g,m=x.get(t.uid)||x.set(t.uid,[]);function y(t){var e=t.uid,e=r.get(e)||r.set(e,M({plan:D,reset:C,count:L}));e.context={model:t,ecModel:o,api:a,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:n},P(n,t,e)}function v(t){var e=t.uid,n=h.get(e);n||(n=h.set(e,M({reset:T,onDirty:A})),c.dirty()),n.context={model:t,overallProgress:p,modifyOutputEnd:f},n.agent=c,n.__block=p,P(l,t,n)}t.reset&&(n=this,i=t,o=_,a=b,r=(e=m).seriesTaskMap||(e.seriesTaskMap=S()),e=i.seriesType,u=i.getTargetSeries,i.createOnAllSeries?o.eachRawSeries(y):e?o.eachRawSeriesByType(e,y):u&&u(o,a).each(y),s=n._pipelineMap,r.each(function(t,e){s.get(e)||(t.dispose(),r.removeKey(e))})),t.overallReset&&(l=this,e=t,u=_,t=b,(c=(m=m).overallTask=m.overallTask||M({reset:I})).context={ecModel:u,api:t,overallReset:e.overallReset,scheduler:l},h=c.agentStubMap=c.agentStubMap||S(),m=e.seriesType,d=e.getTargetSeries,p=!0,f=e.modifyOutputEnd,m?u.eachRawSeriesByType(m,v):d?d(u,t).each(v):(p=!1,w(u.getSeries(),v)),g=l._pipelineMap,h.each(function(t,e){g.get(e)||(t.dispose(),c.dirty(),h.removeKey(e))}))},this)},n.prepareView=function(t,e,n,i){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=n,a.api=i,o.__block=!t.incrementalPrepareRender,P(this,e,o)},n.performDataProcessorTasks=function(t,e){h(this,this._dataProcessorHandlers,t,e,{block:!0})},n.performVisualTasks=function(t,e,n){h(this,this._visualHandlers,t,e,n)},n.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},n.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})};var p=n.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function I(t){t.overallReset(t.ecModel,t.api,t.payload)}function T(t,e){return t.overallProgress&&d}function d(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function D(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function C(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=u(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?o(t,function(t,e){return g(e)}):f}var f=g(0);function g(a){return function(t,e){var n=e.data,i=e.resetDefines[a];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function L(t){return t.data.count()}function P(t,e,n){e=e.uid,t=t._pipelineMap.get(e);t.head||(t.head=n),t.tail&&t.tail.pipe(n),(t.tail=n).__idxInPipeline=t.count++,n.__pipeline=t}c.wrapStageHandler=function(t,e){return(t=a(t)?{overallReset:t,seriesType:function(t){m=null;try{t(y,v)}catch(t){}return m}(t)}:t).uid=s("stageHandler"),e&&(t.visualType=e),t};var m,y={},v={};function x(t,e){for(var n in e.prototype)t[n]=r}x(y,i),x(v,l),y.eachSeriesByType=y.eachRawSeriesByType=function(t){m=t},y.eachComponent=function(t){"series"===t.mainType&&t.subType&&(m=t.subType)},t.exports=c},function(t,e){function n(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}}var i="#eee",o=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],o={color:o,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:o[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:o},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};o.categoryAxis.splitLine.show=!1,t.exports=o},function(t,e){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];t.exports={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]}},function(t,e,n){var l=n(3);e.createWrap=function(){var a,r=[],s={};return{add:function(t,e,n,i,o){return l.isString(i)&&(o=i,i=0),!s[t.id]&&(s[t.id]=1,r.push({el:t,target:e,time:n,delay:i,easing:o}),!0)},done:function(t){return a=t,this},start:function(){for(var t=r.length,e=0,n=r.length;e<n;e++){var i=r[e];i.el.animateTo(i.target,i.time,i.delay,i.easing,o)}return this;function o(){--t||(r.length=0,s={},a&&a())}}}}},function(t,e,n){var i=n(3),f=n(164),g=n(163).retrieveRawValue;t.exports=function(t,e){var l,u,c,n,h,a=e.getModel("aria");function d(t,e){var n;return"string"!=typeof t?t:(n=t,i.each(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n)}function p(t){var e=a.get(t);if(null!=e)return e;for(var n=t.split("."),i=f.aria,o=0;o<n.length;++o)i=i[n[o]];return i}a.get("show")&&(a.get("description")?t.setAttribute("aria-label",a.get("description")):(l=0,e.eachSeries(function(t,e){++l},this),u=a.get("data.maxCount")||10,n=a.get("series.maxCount")||10,c=Math.min(l,n),l<1||(n=(n=function(){var t=e.getModel("title").option;t&&t.length&&(t=t[0]);return t&&t.text}())?d(p("general.withTitle"),{title:n}):p("general.withoutTitle"),h=[],n+=d(p(1<l?"series.multiple.prefix":"series.single.prefix"),{seriesCount:l}),e.eachSeries(function(t,e){if(e<c){var e=t.get("name"),n="series."+(1<l?"multiple":"single")+".",e=p(e?n+"withName":n+"withoutName");e=d(e,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(n=t.subType,f.series.typeNames[n]||"自定义图")});for(var i,o,a=t.getData(),r=((window.data=a).count()>u?e+=d(p("data.partialData"),{displayCnt:u}):e+=p("data.allData"),[]),s=0;s<a.count();s++)s<u&&(i=a.getName(s),o=g(a,s),r.push(d(p(i?"data.withName":"data.withoutName"),{name:i,value:o})));e+=r.join(p("data.separator.middle"))+p("data.separator.end"),h.push(e)}}),n+=h.join(p("series.multiple.separator.middle"))+p("series.multiple.separator.end"),t.setAttribute("aria-label",n))))}},function(t,e,n){var a=n(219);t.exports={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=(e.visualColorAccessPath||"itemStyle.color").split("."),o=e.get(i)||e.getColorFromPalette(e.name,null,t.getSeriesCount());if(n.setVisual("color",o),!t.isSeriesFiltered(e))return"function"!=typeof o||o instanceof a||n.each(function(t){n.setItemVisual(t,"color",o(e.getDataParams(t)))}),{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(i,!0);null!=n&&t.setItemVisual(e,"color",n)}:null}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(3),o=n(111),a=n(945),r=n(174);function s(){}s.prototype.dispose=function(){};function l(t,e,n,i){r.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new s,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,a.call(this),this.setHandlerProxy(n)}var u=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"];l.prototype={constructor:l,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(i.each(u,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,o=i.target,e=(o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target),this._hovered=this.findHover(e,n)),n=e.target,a=this.proxy;a.setCursor&&a.setCursor(n?n.cursor:"default"),o&&n!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(e,"mousemove",t),n&&n!==o&&this.dispatchToElement(e,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);for(var e,n=t.toElement||t.relatedTarget;(n=n&&n.parentNode)&&9!=n.nodeType&&!(e=n===this.painterRoot););e||this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){t=this[t];t&&t.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,a={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which};i&&(i[o]&&(a.cancelBubble=i[o].call(i,a)),i.trigger(e,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,n){for(var i,o=this.storage.getDisplayList(),a={x:t,y:e},r=o.length-1;0<=r;r--)if(o[r]!==n&&!o[r].ignore&&(i=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,o=t;o;){if(o.clipPath&&!o.clipPath.contain(e,n))return!1;o.silent&&(i=!0),o=o.parent}return!i||"silent"}return!1}(o[r],t,e))&&(a.topTarget||(a.topTarget=o[r]),"silent"!==i)){a.target=o[r];break}return a}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(i){l.prototype[i]=function(t){var e=this.findHover(t.zrX,t.zrY),n=e.target;if("mousedown"===i)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===i)this._upEl=n;else if("click"===i){if(this._downEl!==this._upEl||!this._downPoint||4<o.dist(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,i,t)}}),i.mixin(l,r),i.mixin(l,a),t.exports=l},function(t,e,n){var r=n(3),o=n(217).devicePixelRatio,u=n(374),c=n(373);function a(){return!1}function s(t,e,n){var i=r.createCanvas(),o=e.getWidth(),e=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=o+"px",a.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}function i(t,e,n){var i;n=n||o,"string"==typeof t?i=s(t,e,n):r.isObject(t)&&(t=(i=t).id),this.id=t,(t=(this.dom=i).style)&&(i.onselectstart=a,t["-webkit-user-select"]="none",t["user-select"]="none",t["-webkit-touch-callout"]="none",t["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",t.padding=0,t.margin=0,t["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n}i.prototype={constructor:i,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=s("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,o=i.style,a=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!=n)&&this.ctxBack.scale(n,n)},clear:function(t,e){var n,i=this.dom,o=this.ctx,a=i.width,r=i.height,e=e||this.clearColor,t=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;t&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/l,r/l)),o.clearRect(0,0,a,r),e&&"transparent"!==e&&(e.colorStops?(n=e.__canvasGradient||u.getGradient(o,e,{x:0,y:0,width:a,height:r}),e.__canvasGradient=n):e.image&&(n=c.prototype.getCanvasPattern.call(e,o)),o.save(),o.fillStyle=n||e,o.fillRect(0,0,a,r),o.restore()),t&&(i=this.domBack,o.save(),o.globalAlpha=s,o.drawImage(i,0,0,a,r),o.restore())}},t.exports=i},function(t,e,n){var r=n(217).devicePixelRatio,y=n(3),u=n(197),i=n(118),s=n(277),c=n(919),a=n(364),h=n(199),v=n(121),d=314159;function l(t){return parseInt(t,10)}var p=new i(0,0,0,0),f=new i(0,0,0,0);function o(t,e,n){this.type="canvas";var i,o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=y.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=o;(a=(this.root=t).style)&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],e=this._layers={};this._layerConfig={},this._needsManuallyCompositing=!1,o?(o=t.width,i=t.height,null!=n.width&&(o=n.width),null!=n.height&&(i=n.height),this.dpr=n.devicePixelRatio||1,t.width=o*this.dpr,t.height=i*this.dpr,this._width=o,this._height=i,(n=new c(t,this,this.dpr)).__builtin__=!0,n.initContext(),(e[d]=n).zlevel=d,a.push(d),this._domRoot=t):(this._width=this._getSize(0),this._height=this._getSize(1),n=this._domRoot=(o=this._width,i=this._height,(e=document.createElement("div")).style.cssText=["position:relative","overflow:hidden","width:"+o+"px","height:"+i+"px","padding:0","margin:0","border-width:0"].join(";")+";",e),t.appendChild(n)),this._hoverlayer=null,this._hoverElements=[]}o.prototype={constructor:o,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var o,a=n[i],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===i?this._backgroundColor:null,a.refresh(o))}return this.refreshHover(),this},addHover:function(t,e){var n;t.__hoverMir||((((n=new t.constructor({style:t.style,shape:t.shape})).__from=t).__hoverMir=n).setStyle(e),this._hoverElements.push(n))},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,e=y.indexOf(n,e);0<=e&&n.splice(e,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length;if((n=this._hoverlayer)&&n.clear(),e){s(t,this.storage.displayableSortFunc);var n,i={};(n=n||(this._hoverlayer=this.getLayer(1e5))).ctx.save();for(var o=0;o<e;){var a=t[o],r=a.__from;r&&r.__zr?(o++,r.invisible||(a.transform=r.transform,a.invTransform=r.invTransform,a.__clipPaths=r.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(o,1),r.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(t,e,n){var i,o;this._redrawId!==n||(e=e||!1,this._updateLayerStatus(t),i=this._doPaintList(t,e),this._needsManuallyCompositing&&this._compositeManually(),i)||(o=this,a(function(){o._paintList(t,e,n)}))},_compositeManually:function(){var e=this.getLayer(d).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];(s=this._layers[o]).__builtin__&&s!==this._hoverlayer&&(s.__dirty||e)&&n.push(s)}for(var a=!0,r=0;r<n.length;r++){var s,l,u=(s=n[r]).ctx,c={},h=(u.save(),e?s.__startIndex:s.__drawIndex),d=!e&&s.incremental&&Date.now,p=d&&Date.now(),f=s.zlevel===this._zlevelList[0]?this._backgroundColor:null;s.__startIndex!==s.__endIndex&&(h!==s.__startIndex||(l=t[h]).incremental&&l.notClear&&!e)||s.clear(!1,f);for(var g=h=-1===h?s.__startIndex:h;g<s.__endIndex;g++){var m=t[g];if(this._doPaintEl(m,s,e,c),m.__dirty=!1,d)if(15<Date.now()-p)break}s.__drawIndex=g,s.__drawIndex<s.__endIndex&&(a=!1),c.prevElClipPaths&&u.restore(),u.restore()}return v.wxa&&y.each(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),a},_doPaintEl:function(t,e,n,i){var o,a=e.ctx,r=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!r||r[0]||r[3])&&(!t.culling||(n=t,r=this._width,o=this._height,p.copy(n.getBoundingRect()),n.transform&&p.applyTransform(n.transform),f.width=r,f.height=o,p.intersect(f)))){n=t.__clipPaths;if((!i.prevElClipPaths||function(t,e){if(t!=e){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(n,i.prevElClipPaths))&&(i.prevElClipPaths&&(e.ctx.restore(),i.prevElClipPaths=null,i.prevEl=null),n)){a.save();for(var s=n,l=a,u=0;u<s.length;u++){var c=s[u];c.setTransform(l),l.beginPath(),c.buildPath(l,c.shape),l.clip(),c.restoreTransform(l)}i.prevElClipPaths=n}t.beforeBrush&&t.beforeBrush(a),t.brush(a,i.prevEl||null),(i.prevEl=t).afterBrush&&t.afterBrush(a)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=d);var n=this._layers[t];return n||((n=new c("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]&&y.merge(n,this._layerConfig[t],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n,i=this._layers,o=this._zlevelList,a=o.length,r=null,s=-1,l=this._domRoot;if(i[t])u("ZLevel "+t+" has been used already");else if((n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<a&&t>o[0]){for(s=0;s<a-1&&!(o[s]<t&&o[s+1]>t);s++);r=i[o[s]]}o.splice(s+1,0,t),(i[t]=e).virtual||(r?(n=r.dom).nextSibling?l.insertBefore(e.dom,n.nextSibling):l.appendChild(e.dom):l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom))}else u("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){for(var n,i=this._zlevelList,o=0;o<i.length;o++)n=i[o],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){for(var n,i,o=this._zlevelList,a=0;a<o.length;a++)i=o[a],(n=this._layers[i]).__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){for(var n,i,o=this._zlevelList,a=0;a<o.length;a++)i=o[a],(n=this._layers[i]).__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){i&&(i.__endIndex!==t&&(i.__dirty=!0),i.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((a=t[n]).zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}for(var i=null,o=0,n=0;n<t.length;n++){var a,r,s=(a=t[n]).zlevel;a.incremental?((r=this.getLayer(s+.001,this._needsManuallyCompositing)).incremental=!0,o=1):r=this.getLayer(s+(0<o?.01:0),this._needsManuallyCompositing),r.__builtin__||u("ZLevel "+s+" has been used by unkown layer "+r.id),r!==i&&(r.__used=!0,r.__startIndex!==n&&(r.__dirty=!0),r.__startIndex=n,r.incremental?r.__drawIndex=-1:r.__drawIndex=n,e(n),i=r),a.__dirty&&(r.__dirty=!0,r.incremental)&&r.__drawIndex<0&&(r.__drawIndex=n)}e(n),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?y.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||(o=this._layers[o],y.merge(o,n[t],!0))}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(y.indexOf(n,t),1))},resize:function(e,n){if(this._domRoot.style){var t=this._domRoot,i=(t.style.display="none",this._opts);if(null!=e&&(i.width=e),null!=n&&(i.height=n),e=this._getSize(0),n=this._getSize(1),t.style.display="",this._width!=e||n!=this._height){for(var o in t.style.width=e+"px",t.style.height=n+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);y.each(this._progressiveLayers,function(t){t.resize(e,n)}),this.refresh(!0)}this._width=e,this._height=n}else{if(null==e||null==n)return;this._width=e,this._height=n,this.getLayer(d).resize(e,n)}return this},clearLayer:function(t){t=this._layers[t];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[d].dom;var e=new c("image",this,(t=t||{}).pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,o=e.ctx;this.eachLayer(function(t){t.__builtin__?o.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var a={},r=this.storage.getDisplayList(!0),s=0;s<r.length;s++){var l=r[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||l(e[i])||l(n.style[i]))-(l(e[a])||0)-(l(e[t])||0)|0)},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=t.getBoundingRect(),a=t.style,r=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,a=a.hasStroke()?a.lineWidth:0,u=Math.max(a/2,r-s),s=Math.max(a/2,s+r),c=Math.max(a/2,r-l),a=Math.max(a/2,l+r),l=o.width+u+s,r=o.height+c+a,s=(n.width=l*e,n.height=r*e,i.scale(e,e),i.clearRect(0,0,l,r),i.dpr=e,{position:t.position,rotation:t.rotation,scale:t.scale});t.position=[u-o.x,c-o.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);a=new h({style:{x:0,y:0,image:n}});return null!=s.position&&(a.position=t.position=s.position),null!=s.rotation&&(a.rotation=t.rotation=s.rotation),null!=s.scale&&(a.scale=t.scale=s.scale),a}},t.exports=o},function(t,e,n){var a=n(3),r=n(121),s=n(218),l=n(277);function u(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function i(){this._roots=[],this._displayList=[],this._displayListLen=0}i.prototype={constructor:i,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,r.canvasSupported&&l(n,u)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),e.push(o),o=(a=o).clipPath}if(t.isGroup){for(var r=t._children,s=0;s<r.length;s++){var l=r[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof s&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof s&&n.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0}else if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var o=a.indexOf(this._roots,t);0<=o&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof s)&&t.delChildrenFromStorage(this)}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u},t.exports=i},function(t,e,n){function i(t){this.stage=(t=t||{}).stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)}var o=n(3),a=n(147).Dispatcher,r=n(364),s=n(363);i.prototype={constructor:i,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){t=o.indexOf(this._clips,t);0<=t&&this._clips.splice(t,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,o=[],a=[],r=0;r<i;r++){var s=n[r],l=s.step(t,e);l&&(o.push(l),a.push(s))}for(r=0;r<i;)n[r]._needsRemove?(n[r]=n[i-1],n.pop(),i--):r++;for(i=o.length,r=0;r<i;r++)a[r].fire(o[r]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;this._running=!0,r(function t(){e._running&&(r(t),e._paused||e._update())})},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){t=new s(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(t),t}},o.mixin(i,a),t.exports=i},function(t,e,n){var i=n(924);function o(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}o.prototype={constructor:o,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n,e=(t-this._startTime-this._pausedTime)/this._life;if(!(e<0))return e=Math.min(e,1),n="function"==typeof(n="string"==typeof(n=this.easing)?i[n]:n)?n(e):e,this.fire("frame",n),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},t.exports=o},function(t,e){var n={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,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-n.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*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,n){var u=n(368).normalizeRadian,c=2*Math.PI;e.containStroke=function(t,e,n,i,o,a,r,s,l){return 0!==r&&(s-=t,l-=e,t=Math.sqrt(s*s+l*l),!(n<t-r||t+r<n))&&(Math.abs(i-o)%c<1e-4||((o=a?(e=i,i=u(o),u(e)):(i=u(i),u(o)))<i&&(o+=c),(t=Math.atan2(l,s))<0&&(t+=c),i<=t&&t<=o)||i<=t+c&&t+c<=o)}},function(t,e,n){var h=n(152);e.containStroke=function(t,e,n,i,o,a,r,s,l,u,c){return 0!==l&&!(e+(l=l)<c&&i+l<c&&a+l<c&&s+l<c||c<e-l&&c<i-l&&c<a-l&&c<s-l||t+l<u&&n+l<u&&o+l<u&&r+l<u||u<t-l&&u<n-l&&u<o-l&&u<r-l)&&h.cubicProjectPoint(t,e,n,i,o,a,r,s,u,c,null)<=l/2}},function(t,e,n){var i=n(180),M=n(365),I=n(926),T=n(367),A=n(925),D=n(368).normalizeRadian,C=n(152),L=n(369),P=i.CMD,k=2*Math.PI,O=1e-4;var E=[-1,-1,-1],v=[-1,-1];function R(t,e,n,i,o,a,r,s,l,u){if(e<u&&i<u&&a<u&&s<u||u<e&&u<i&&u<a&&u<s)return 0;var c=C.cubicRootAt(e,i,a,s,u,E);if(0===c)return 0;for(var h,d,p=0,f=-1,g=0;g<c;g++){var m=E[g],y=0===m||1===m?.5:1;C.cubicAt(t,n,o,r,m)<l||(f<0&&(f=C.cubicExtrema(e,i,a,s,v),v[1]<v[0]&&1<f&&(d=void 0,d=v[0],v[0]=v[1],v[1]=d),d=C.cubicAt(e,i,a,s,v[0]),1<f)&&(h=C.cubicAt(e,i,a,s,v[1])),2==f?m<v[0]?p+=d<e?y:-y:m<v[1]?p+=h<d?y:-y:p+=s<h?y:-y:m<v[0]?p+=d<e?y:-y:p+=s<d?y:-y)}return p}function o(t,e,n,i,o){for(var a,r,s=0,l=0,u=0,c=0,h=0,d=0;d<t.length;){var p=t[d++];switch(p===P.M&&1<d&&(n||(s+=L(l,u,c,h,i,o))),1==d&&(c=l=t[d],h=u=t[d+1]),p){case P.M:l=c=t[d++],u=h=t[d++];break;case P.L:if(n){if(M.containStroke(l,u,t[d],t[d+1],e,i,o))return!0}else s+=L(l,u,t[d],t[d+1],i,o)||0;l=t[d++],u=t[d++];break;case P.C:if(n){if(I.containStroke(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,i,o))return!0}else s+=R(l,u,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],i,o)||0;l=t[d++],u=t[d++];break;case P.Q:if(n){if(T.containStroke(l,u,t[d++],t[d++],t[d],t[d+1],e,i,o))return!0}else s+=function(t,e,n,i,o,a,r,s){if(e<s&&i<s&&a<s||s<e&&s<i&&s<a)return 0;var l=C.quadraticRootAt(e,i,a,s,E);if(0===l)return 0;var u=C.quadraticExtremum(e,i,a);if(0<=u&&u<=1){for(var c=0,h=C.quadraticAt(e,i,a,u),d=0;d<l;d++){var p=0===E[d]||1===E[d]?.5:1;C.quadraticAt(t,n,o,E[d])<r||(E[d]<u?c+=h<e?p:-p:c+=a<h?p:-p)}return c}return p=0===E[0]||1===E[0]?.5:1,C.quadraticAt(t,n,o,E[0])<r?0:a<e?p:-p}(l,u,t[d++],t[d++],t[d],t[d+1],i,o)||0;l=t[d++],u=t[d++];break;case P.A:var f=t[d++],g=t[d++],m=t[d++],y=t[d++],v=t[d++],x=t[d++],_=(t[d++],1-t[d++]),b=Math.cos(v)*m+f,w=Math.sin(v)*y+g,S=(1<d?s+=L(l,u,b,w,i,o):(c=b,h=w),(i-f)*y/m+f);if(n){if(A.containStroke(f,g,y,v,v+x,_,e,S,o))return!0}else s+=function(t,e,n,i,o,a,r,s){if(n<(s-=e)||s<-n)return 0;if(e=Math.sqrt(n*n-s*s),E[0]=-e,E[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(n%k<1e-4)return o=k,c=a?1:-1,r>=E[i=0]+t&&r<=E[1]+t?c:0;(o=a?(e=i,i=D(o),D(e)):(i=D(i),D(o)))<i&&(o+=k);for(var l=0,u=0;u<2;u++){var c,h=E[u];r<h+t&&(c=a?1:-1,i<=(h=(h=Math.atan2(s,h))<0?k+h:h)&&h<=o||i<=h+k&&h+k<=o)&&(l+=c=h>Math.PI/2&&h<1.5*Math.PI?-c:c)}return l}(f,g,y,v,v+x,_,S,o);l=Math.cos(v+x)*m+f,u=Math.sin(v+x)*y+g;break;case P.R:c=l=t[d++],h=u=t[d++],b=c+t[d++],w=h+t[d++];if(n){if(M.containStroke(c,h,b,h,e,i,o)||M.containStroke(b,h,b,w,e,i,o)||M.containStroke(b,w,c,w,e,i,o)||M.containStroke(c,w,c,h,e,i,o))return!0}else s=(s+=L(b,h,b,w,i,o))+L(c,w,c,h,i,o);break;case P.Z:if(n){if(M.containStroke(l,u,c,h,e,i,o))return!0}else s+=L(l,u,c,h,i,o);l=c,u=h}}return n||(a=u,r=h,Math.abs(a-r)<O)||(s+=L(l,u,c,h,i,o)||0),0!==s}e.contain=function(t,e,n){return o(t,0,!1,e,n)},e.containStroke=function(t,e,n,i){return o(t,e,!0,n,i)}},function(t,e,n){function i(){this._track=[]}var u=n(147);function o(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}i.prototype={constructor:i,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},a=0,r=i.length;a<r;a++){var s=i[a],l=u.clientToLocal(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){e=a[e](this._track,t);if(e)return e}}};var a={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=o(n)/o(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};t.exports=i},function(t,e){function n(){}n.prototype={diff:function(g,m,t){this.equals=t=t||function(t,e){return t===e};var y=this,v=(g=g.slice(),(m=m.slice()).length),x=g.length,_=1,e=v+x,b=[{newPos:-1,components:[]}],t=this.extractCommon(b[0],m,g,0);if(b[0].newPos+1>=v&&x<=t+1){for(var n=[],i=0;i<m.length;i++)n.push(i);return[{indices:n,count:m.length}]}for(;_<=e;){var o=function(){for(var t=-1*_;t<=_;t+=2){var e,n=b[t-1],i=b[t+1],o=(i?i.newPos:0)-t,a=(n&&(b[t-1]=void 0),n&&n.newPos+1<v),r=i&&0<=o&&o<x;if(a||r){if(!a||r&&n.newPos<i.newPos?(e={newPos:i.newPos,components:i.components.slice(0)},y.pushComponent(e.components,void 0,!0)):((e=n).newPos++,y.pushComponent(e.components,!0,void 0)),o=y.extractCommon(e,m,g,t),e.newPos+1>=v&&x<=o+1){for(var s=e.components,l=0,u=s.length,c=0,h=0;l<u;l++){var d=s[l];if(d.removed){for(p=[],f=h;f<h+d.count;f++)p.push(f);d.indices=p,h+=d.count}else{for(var p=[],f=c;f<c+d.count;f++)p.push(f);d.indices=p,c+=d.count,d.added||(h+=d.count)}}return s}b[t]=e}else b[t]=void 0}_++}();if(o)return o}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var o=e.length,a=n.length,r=t.newPos,s=r-i,l=0;r+1<o&&s+1<a&&this.equals(e[r+1],n[s+1]);)r++,s++,l++;return l&&t.components.push({count:l}),t.newPos=r,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var i=new n;t.exports=function(t,e,n){return i.diff(t,e,n)}},function(t,e,n){var i=n(147),o=i.addEventListener,a=i.removeEventListener,r=i.normalizeEvent,s=n(3),l=n(174),u=n(121),c=n(928),h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=["touchstart","touchend","touchmove"],p={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},f=s.map(h,function(t){var e=t.replace("mouse","pointer");return p[e]?e:t});function g(t){return"mousewheel"===t&&u.browser.firefox?"DOMMouseScroll":t}function m(t,e,n){var i=t._gestureMgr,o=("start"===n&&i.clear(),i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom));"end"===n&&i.clear(),o&&(n=o.type,e.gestureEvent=n,t.handler.dispatchToElement({target:o.target},n,o.event))}function y(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}var v={mousemove:function(t){t=r(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=r(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=r(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,m(this,t,"start"),v.mousemove.call(this,t),v.mousedown.call(this,t),y(this)},touchmove:function(t){(t=r(this.dom,t)).zrByTouch=!0,m(this,t,"change"),v.mousemove.call(this,t),y(this)},touchend:function(t){(t=r(this.dom,t)).zrByTouch=!0,m(this,t,"end"),v.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&v.click.call(this,t),y(this)},pointerdown:function(t){v.mousedown.call(this,t)},pointermove:function(t){x(t)||v.mousemove.call(this,t)},pointerup:function(t){v.mouseup.call(this,t)},pointerout:function(t){x(t)||v.mouseout.call(this,t)}};function x(t){t=t.pointerType;return"pen"===t||"touch"===t}function _(i){s.each(d,function(t){i._handlers[t]=s.bind(v[t],i)}),s.each(f,function(t){i._handlers[t]=s.bind(v[t],i)}),s.each(h,function(t){var e,n;i._handlers[t]=(e=v[t],n=i,function(){if(!n._touching)return e.apply(n,arguments)})})}function b(n){function t(t,e){s.each(t,function(t){o(n,g(t),e._handlers[t])},e)}l.call(this),this.dom=n,this._touching=!1,this._touchTimer,this._gestureMgr=new c,this._handlers={},_(this),u.pointerEventsSupported?t(f,this):(u.touchEventsSupported&&t(d,this),t(h,this))}s.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){v[e]=function(t){t=r(this.dom,t),this.trigger(e,t)}});i=b.prototype;i.dispose=function(){for(var t=h.concat(d),e=0;e<t.length;e++){var n=t[e];a(this.dom,g(n),this._handlers[n])}},i.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},s.mixin(b,l),t.exports=b},function(t,e,n){var i=n(119),n=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});t.exports=n},function(t,e,n){function i(t,e,n,i,o){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,a.call(this,i)}var o=n(3),a=n(219);i.prototype={constructor:i},o.inherits(i,a),t.exports=i},function(t,e,n){var n=n(111),v=n.min,x=n.max,_=n.scale,b=n.distance,w=n.add,S=n.clone,M=n.sub;t.exports=function(t,e,n,i){var o,a,r=[],s=[],l=[],u=[];if(i){for(var c=[1/0,1/0],h=[-1/0,-1/0],d=0,p=t.length;d<p;d++)v(c,c,t[d]),x(h,h,t[d]);v(c,c,i[0]),x(h,h,i[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)o=t[d?d-1:p-1],a=t[(d+1)%p];else{if(0===d||d===p-1){r.push(S(t[d]));continue}o=t[d-1],a=t[d+1]}M(s,a,o),_(s,s,e);var g=b(f,o),m=b(f,a),y=g+m,y=(0!==y&&(g/=y,m/=y),_(l,s,-g),_(u,s,m),w([],f,l)),g=w([],f,u);i&&(x(y,y,c),v(y,y,h),x(g,g,c),v(g,g,h)),r.push(y),r.push(g)}return n&&r.push(r.shift()),r}},function(t,e,n){var f=n(111).distance;function g(t,e,n,i,o,a,r){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*r+(-3*(e-n)-2*t-i)*a+t*o+e}t.exports=function(t,e){for(var n=t.length,i=[],o=0,a=1;a<n;a++)o+=f(t[a-1],t[a]);for(var r=(r=o/2)<n?n:r,a=0;a<r;a++){var s,l,u=a/(r-1)*(e?n:n-1),c=Math.floor(u),u=u-c,h=t[c%n],c=e?(s=t[(c-1+n)%n],l=t[(c+1)%n],t[(c+2)%n]):(s=t[0===c?c:c-1],l=t[n-2<c?n-1:c+1],t[n-3<c?n-1:c+2]),d=u*u,p=u*d;i.push([g(s[0],h[0],l[0],c[0],u,d,p),g(s[1],h[1],l[1],c[1],u,d,p)])}return i}},function(t,e,n){n=n(119).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),a=e.startAngle,r=e.endAngle,e=e.clockwise,s=Math.cos(a),l=Math.sin(a);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,a,r,!e)}});t.exports=n},function(t,e,n){var i=n(119),o=n(111),n=n(152),c=n.quadraticSubdivide,h=n.cubicSubdivide,a=n.quadraticAt,r=n.cubicAt,s=n.quadraticDerivativeAt,l=n.cubicDerivativeAt,d=[];function u(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?l:r)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?l:r)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?s:a)(t.x1,t.cpx1,t.x2,e),(n?s:a)(t.y1,t.cpy1,t.y2,e)]}n=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,o=e.x2,a=e.y2,r=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(c(n,r,o,e,d),r=d[1],o=d[2],c(i,s,a,e,d),s=d[1],a=d[2]),t.quadraticCurveTo(r,s,o,a)):(e<1&&(h(n,r,l,o,e,d),r=d[1],l=d[2],o=d[3],h(i,s,u,a,e,d),s=d[1],u=d[2],a=d[3]),t.bezierCurveTo(r,s,l,u,o,a)))},pointAt:function(t){return u(this.shape,t,!1)},tangentAt:function(t){t=u(this.shape,t,!0);return o.normalize(t,t)}});t.exports=n},function(t,e,n){n=n(119).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=n},function(t,e,n){n=n(119).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,o=e.x2,a=e.y2,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,a=i*(1-e)+a*e),t.lineTo(o,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=n},function(t,e,n){var i=n(119),o=n(377),n=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){o.buildPath(t,e,!0)}});t.exports=n},function(t,e,n){var i=n(119),o=n(377),n=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){o.buildPath(t,e,!1)}});t.exports=n},function(t,e,n){var i=n(119),r=n(378),n=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width,a=e.height;e.r?r.buildPath(t,e):t.rect(n,i,o,a),t.closePath()}});t.exports=n},function(t,e,n){n=n(119).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)}});t.exports=n},function(t,e,n){var i=n(119),n=n(375),n=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:n(i.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),a=Math.max(e.r,0),r=e.startAngle,s=e.endAngle,e=e.clockwise,l=Math.cos(r),u=Math.sin(r);t.moveTo(l*o+n,u*o+i),t.lineTo(l*a+n,u*a+i),t.arc(n,i,a,r,s,!e),t.lineTo(Math.cos(s)*o+n,Math.sin(s)*o+i),0!==o&&t.arc(n,i,o,s,r,e),t.closePath()}});t.exports=n},function(t,e,n){function i(){this.animators=[]}var d=n(363),p=n(197),n=n(3),c=n.isString,h=n.isFunction,u=n.isObject,f=n.isArrayLike,g=n.indexOf;i.prototype={constructor:i,animate:function(t,e){var n,i,o,a=!1,r=this,s=this.__zr;if(t){for(var l=t.split("."),u=r,a="shape"===l[0],c=0,h=l.length;c<h;c++)u=u&&u[l[c]];u&&(n=u)}else n=r;if(n)return i=r.animators,(o=new d(n,e)).during(function(t){r.dirty(a)}).done(function(){i.splice(g(i,o),1)}),i.push(o),s&&s.animation.addAnimator(o),o;p('Property "'+t+'" is not existed in element '+r.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,o,a){c(n)?(o=i,i=n,n=0):h(i)?(o=i,i="linear",n=0):h(n)?(o=n,n=0):e=h(e)?(o=e,500):e||500,this.stopAnimation(),this._animateToShallow("",this,t,e,n);var r=this.animators.slice(),s=r.length;function l(){--s||o&&o()}s||o&&o();for(var u=0;u<r.length;u++)r[u].done(l).start(i,a)},_animateToShallow:function(t,e,n,i,o){var a,r,s={},l=0;for(a in n)n.hasOwnProperty(a)&&(null!=e[a]?u(n[a])&&!f(n[a])?this._animateToShallow(t?t+"."+a:a,e[a],n[a],i,o):(s[a]=n[a],l++):null!=n[a]&&(t?((r={})[t]={},r[t][a]=n[a],this.attr(r)):this.attr(a,n[a])));return 0<l&&this.animate(t,!1).when(null==i?500:i,s).delay(o||0),this}},t.exports=i},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function r(t,e){return{target:t,topTarget:e&&e.topTarget}}n.prototype={constructor:n,_dragStart:function(t){var e=t.target;e&&e.draggable&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(r(e,t),"dragstart",t.event))},_drag:function(t){var e,n,i,o,a=this._draggingTarget;a&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,a.drift(i,o,t),this.dispatchToElement(r(a,t),"drag",t.event),i=this.findHover(e,n,a).target,o=this._dropTarget,a!==(this._dropTarget=i))&&(o&&i!==o&&this.dispatchToElement(r(o,t),"dragleave",t.event),i)&&i!==o&&this.dispatchToElement(r(i,t),"dragenter",t.event)},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(r(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(r(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=n},function(t,e,n){var o=n(281).createElement,a=n(3),i=a.each,r=n(197),f=n(119),g=n(199),m=n(200),y=n(929),s=n(948),l=n(947),u=n(949),n=n(282),v=n.path,x=n.image,_=n.text;function c(t){return parseInt(t,10)}function h(t,e){return e&&t&&e.parentNode!==t}function b(t,e,n){h(t,e)&&n&&((n=n.nextSibling)?t.insertBefore(e,n):t.appendChild(e))}function w(t,e){var n;h(t,e)&&((n=t.firstChild)?t.insertBefore(e,n):t.appendChild(e))}function S(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function M(t){return t.__textSvgEl}function I(t){return t.__svgEl}function d(t,e,n,i){this.root=t,this.storage=e,this._opts=n=a.extend({},n||{}),(e=o("svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("version","1.1"),e.setAttribute("baseProfile","full"),e.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new s(i,e),this.clipPathManager=new l(i,e),this.shadowManager=new u(i,e),(i=document.createElement("div")).style.cssText="overflow:hidden;position:relative",this._svgRoot=e,this._viewport=i,t.appendChild(i),i.appendChild(e),this.resize(n.width,n.height),this._visibleList=[]}d.prototype={constructor:d,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();for(var e=this._svgRoot,n=this._visibleList,i=t.length,o=[],a=0;a<i;a++){var r=t[a],s=(s=r)instanceof f?v:s instanceof g?x:s instanceof m?_:v,l=I(r)||M(r);r.invisible||(r.__dirty&&(s&&s.brush(r),this.clipPathManager.update(r),r.style&&(this.gradientManager.update(r.style.fill),this.gradientManager.update(r.style.stroke),this.shadowManager.update(l,r)),r.__dirty=!1),o.push(r))}var u,c=y(n,o);for(a=0;a<c.length;a++)if((u=c[a]).removed)for(var h=0;h<u.count;h++){var l=I(r=n[u.indices[h]]),d=M(r);S(e,l),S(e,d)}for(a=0;a<c.length;a++)if((u=c[a]).added)for(h=0;h<u.count;h++){l=I(r=o[u.indices[h]]),d=M(r);p?b(e,l,p):w(e,l),l?b(e,d,l):p?b(e,d,p):w(e,d),b(e,d,l),p=d||l||p,this.gradientManager.addWithoutUpdate(l,r),this.shadowManager.addWithoutUpdate(p,r),this.clipPathManager.markUsed(r)}else if(!u.removed)for(h=0;h<u.count;h++){var p=l=M(r=o[u.indices[h]])||I(r)||p;this.gradientManager.markUsed(r),this.gradientManager.addWithoutUpdate(l,r),this.shadowManager.markUsed(r),this.shadowManager.addWithoutUpdate(l,r),this.clipPathManager.markUsed(r)}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(o("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(e)for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},resize:function(t,e){var n=this._viewport,i=(n.style.display="none",this._opts);null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width===t&&this._height===e||(this._width=t,this._height=e,(i=n.style).width=t+"px",i.height=e+"px",(n=this._svgRoot).setAttribute("width",t),n.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||c(e[i])||c(n.style[i]))-(c(e[a])||0)-(c(e[t])||0)|0)},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},i(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){var e;d.prototype[t]=(e=t,function(){r('In SVG mode painter not support method "'+e+'"')})}),t.exports=d},function(t,e,n){var i=n(283),o=n(3),l=n(129);function a(t,e){i.call(this,t,e,"clipPath","__clippath_in_use__")}o.inherits(a,i),a.prototype.update=function(t){var e=this.getSvgElement(t),e=(e&&this.updateDom(e,t.__clipPaths,!1),this.getTextSvgElement(t));e&&this.updateDom(e,t.__clipPaths,!0),this.markUsed(t)},a.prototype.updateDom=function(t,e,n){var i,o,a,r,s;e&&0<e.length?(r=this.getDefs(!0),(i=e[0])[s=n?"_textDom":"_dom"]?(a=i[s].getAttribute("id"),o=i[s],r.contains(o)||r.appendChild(o)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(o=this.createElement("clipPath")).setAttribute("id",a),r.appendChild(o),i[s]=o),r=this.getSvgProxy(i),i.transform&&i.parent.invTransform&&!n?(s=Array.prototype.slice.call(i.transform),l.mul(i.transform,i.parent.invTransform,i.transform),r.brush(i),i.transform=s):r.brush(i),s=this.getSvgElement(i),o.innerHTML="",o.appendChild(s.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),1<e.length&&this.updateDom(o,e.slice(1),n)):t&&t.setAttribute("clip-path","none")},a.prototype.markUsed=function(t){var e=this;t.__clipPaths&&0<t.__clipPaths.length&&o.each(t.__clipPaths,function(t){t._dom&&i.prototype.markUsed.call(e,t._dom),t._textDom&&i.prototype.markUsed.call(e,t._textDom)})},t.exports=a},function(t,e,n){var o=n(283),i=n(3),r=n(197);function a(t,e){o.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}i.inherits(a,o),a.prototype.addWithoutUpdate=function(o,a){var r;a&&a.style&&(r=this,i.each(["fill","stroke"],function(t){var e,n,i;!a.style[t]||"linear"!==a.style[t].type&&"radial"!==a.style[t].type||(e=a.style[t],i=r.getDefs(!0),e._dom?(n=e._dom,i.contains(e._dom)||r.addDom(n)):n=r.add(e),r.markUsed(a),i=n.getAttribute("id"),o.setAttribute(t,"url(#"+i+")"))}))},a.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return r("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},a.prototype.update=function(n){var i=this;o.prototype.update.call(this,n,function(){var t=n.type,e=n._dom.tagName;"linear"===t&&"linearGradient"===e||"radial"===t&&"radialGradient"===e?i.updateDom(n,n._dom):(i.removeDom(n),i.add(n))})},a.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void r("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,o=n.length;i<o;++i){var a=this.createElement("stop");a.setAttribute("offset",100*n[i].offset+"%"),a.setAttribute("stop-color",n[i].color),e.appendChild(a)}t._dom=e},a.prototype.markUsed=function(t){var e;t.style&&((e=t.style.fill)&&e._dom&&o.prototype.markUsed.call(this,e._dom),e=t.style.stroke)&&e._dom&&o.prototype.markUsed.call(this,e._dom)},t.exports=a},function(t,e,n){var o=n(283);function i(t,e){o.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function a(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}n(3).inherits(i,o),i.prototype.addWithoutUpdate=function(t,e){var n,i;e&&a(e.style)&&((i=e.style)._shadowDom?(n=i._shadowDom,this.getDefs(!0).contains(i._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e),i=n.getAttribute("id"),t.style.filter="url(#"+i+")")},i.prototype.add=function(t){var e=this.createElement("filter"),n=t.style;return n._shadowDomId=n._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(t,e),this.addDom(e),e},i.prototype.update=function(t,e){var n,i=e.style;a(i)?o.prototype.update.call(n=this,e,function(t){n.updateDom(e,t._shadowDom)}):this.remove(t,i)},i.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},i.prototype.updateDom=function(t,e){var n,i,o,a,r=0===(r=e.getElementsByTagName("feDropShadow")).length?this.createElement("feDropShadow"):r[0],s=t.style,l=t.scale&&t.scale[0]||1,t=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,i=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,i=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}r.setAttribute("dx",n/l),r.setAttribute("dy",i/t),r.setAttribute("flood-color",a),r.setAttribute("stdDeviation",o/2/l+" "+o/2/t),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(r),s._shadowDom=e},i.prototype.markUsed=function(t){t=t.style;t&&t._shadowDom&&o.prototype.markUsed.call(this,t._shadowDom)},t.exports=i},function(t,e,n){n(282),(0,n(221).registerPainter)("svg",n(946))},function(t,e,n){function f(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))}var r=n(119),T=n(180),i=n(952),A=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],g=Math.sqrt,m=Math.sin,y=Math.cos,v=Math.PI,o=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},x=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(o(t)*o(e))};function D(t,e,n,i,o,a,r,s,l,u,c){var l=l*(v/180),h=y(l)*(t-n)/2+m(l)*(e-i)/2,d=-1*m(l)*(t-n)/2+y(l)*(e-i)/2,p=h*h/(r*r)+d*d/(s*s),p=(1<p&&(r*=g(p),s*=g(p)),(o===a?-1:1)*g((r*r*(s*s)-r*r*(d*d)-s*s*(h*h))/(r*r*(d*d)+s*s*(h*h)))||0),o=p*r*d/s,p=p*-s*h/r,t=(t+n)/2+y(l)*o-m(l)*p,n=(e+i)/2+m(l)*o+y(l)*p,e=f([1,0],[(h-o)/r,(d-p)/s]),i=[(h-o)/r,(d-p)/s],h=[(-1*h-o)/r,(-1*d-p)/s],o=f(i,h);x(i,h)<=-1&&(o=v),1<=x(i,h)&&(o=0),0===a&&0<o&&(o-=2*v),1===a&&o<0&&(o+=2*v),c.addData(u,t,n,r,s,e,o,l,a)}function a(t,e){var n=function(t){if(!t)return[];for(var e=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,","),n=0;n<A.length;n++)e=e.replace(new RegExp(A[n],"g"),"|"+A[n]);var i,o=e.split("|"),a=0,r=0,s=new T,l=T.CMD;for(n=1;n<o.length;n++){var u,c=o[n],h=c.charAt(0),d=0,p=c.slice(1).replace(/e,-/g,"e-").split(",");0<p.length&&""===p[0]&&p.shift();for(var f=0;f<p.length;f++)p[f]=parseFloat(p[f]);for(;d<p.length&&!isNaN(p[d])&&!isNaN(p[0]);){var g,m,y,v,x,_=a,b=r;switch(h){case"l":a+=p[d++],r+=p[d++],u=l.L,s.addData(u,a,r);break;case"L":a=p[d++],r=p[d++],u=l.L,s.addData(u,a,r);break;case"m":a+=p[d++],r+=p[d++],u=l.M,s.addData(u,a,r),h="l";break;case"M":a=p[d++],r=p[d++],u=l.M,s.addData(u,a,r),h="L";break;case"h":a+=p[d++],u=l.L,s.addData(u,a,r);break;case"H":a=p[d++],u=l.L,s.addData(u,a,r);break;case"v":r+=p[d++],u=l.L,s.addData(u,a,r);break;case"V":r=p[d++],u=l.L,s.addData(u,a,r);break;case"C":u=l.C,s.addData(u,p[d++],p[d++],p[d++],p[d++],p[d++],p[d++]),a=p[d-2],r=p[d-1];break;case"c":u=l.C,s.addData(u,p[d++]+a,p[d++]+r,p[d++]+a,p[d++]+r,p[d++]+a,p[d++]+r),a+=p[d-2],r+=p[d-1];break;case"S":var w=a,S=r,M=s.len(),I=s.data;i===l.C&&(w+=a-I[M-4],S+=r-I[M-3]),u=l.C,_=p[d++],b=p[d++],a=p[d++],r=p[d++],s.addData(u,w,S,_,b,a,r);break;case"s":w=a,S=r;M=s.len(),I=s.data;i===l.C&&(w+=a-I[M-4],S+=r-I[M-3]),u=l.C,_=a+p[d++],b=r+p[d++],a+=p[d++],r+=p[d++],s.addData(u,w,S,_,b,a,r);break;case"Q":_=p[d++],b=p[d++],a=p[d++],r=p[d++],u=l.Q,s.addData(u,_,b,a,r);break;case"q":_=p[d++]+a,b=p[d++]+r,a+=p[d++],r+=p[d++],u=l.Q,s.addData(u,_,b,a,r);break;case"T":w=a,S=r;M=s.len(),I=s.data;i===l.Q&&(w+=a-I[M-4],S+=r-I[M-3]),a=p[d++],r=p[d++],u=l.Q,s.addData(u,w,S,a,r);break;case"t":w=a,S=r;M=s.len(),I=s.data;i===l.Q&&(w+=a-I[M-4],S+=r-I[M-3]),a+=p[d++],r+=p[d++],u=l.Q,s.addData(u,w,S,a,r);break;case"A":g=p[d++],m=p[d++],y=p[d++],v=p[d++],x=p[d++],D(_=a,b=r,a=p[d++],r=p[d++],v,x,g,m,y,u=l.A,s);break;case"a":g=p[d++],m=p[d++],y=p[d++],v=p[d++],x=p[d++],D(_=a,b=r,a+=p[d++],r+=p[d++],v,x,g,m,y,u=l.A,s)}}"z"!==h&&"Z"!==h||(u=l.Z,s.addData(u)),i=u}return s.toStatic(),s}(t);return(e=e||{}).buildPath=function(t){var e;t.setData?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e)):n.rebuildPath(e=t)},e.applyTransform=function(t){i(n,t),this.dirty(!0)},e}e.createFromString=function(t,e){return new r(a(t,e))},e.extendFromString=function(t,e){return r.extend(a(t,e))},e.mergePath=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var a=t[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}return(e=new r(e)).createPathProxy(),e.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},e}},function(t,e,n){var i=n(180),_=n(111).applyTransform,b=i.CMD,w=[[],[],[]],S=Math.sqrt,M=Math.atan2;t.exports=function(t,e){for(var n,i,o,a,r=t.data,s=b.M,l=b.C,u=b.L,c=b.R,h=b.A,d=b.Q,p=0,f=0;p<r.length;){switch(n=r[p++],f=p,i=0,n){case s:case u:i=1;break;case l:i=3;break;case d:i=2;break;case h:var g=e[4],m=e[5],y=S(e[0]*e[0]+e[1]*e[1]),v=S(e[2]*e[2]+e[3]*e[3]),x=M(-e[1]/v,e[0]/y);r[p]*=y,r[p++]+=g,r[p]*=v,r[p++]+=m,r[p++]*=y,r[p++]*=v,r[p++]+=x,r[p++]+=x,f=p+=2;break;case c:a[0]=r[p++],a[1]=r[p++],_(a,a,e),r[f++]=a[0],r[f++]=a[1],a[0]+=r[p++],a[1]+=r[p++],_(a,a,e),r[f++]=a[0],r[f++]=a[1]}for(o=0;o<i;o++)(a=w[o])[0]=r[p++],a[1]=r[p++],_(a,a,e),r[f++]=a[0],r[f++]=a[1]}}},function(t,e,n){var i=n(197),r=n(380),n=n(3).each;function o(t){return parseInt(t,10)}function a(t,e){r.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div"),o=(n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize(),e.delFromStorage),a=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),a.call(e,t)},this._firstPaint=!0}a.prototype={constructor:a,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush)&&i.afterBrush()),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var n,t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;this._width==t&&this._height==e||(this._width=t,this._height=e,(n=this._vmlViewport.style).width=t+"px",n.height=e+"px")},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||o(e.width))-o(e.paddingLeft)-o(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||o(e.height))-o(e.paddingTop)-o(e.paddingBottom)|0}},n(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){var e;a.prototype[t]=(e=t,function(){i('In IE8.0 VML mode painter not support method "'+e+'"')})}),t.exports=a},function(h,d,t){var p=t(121),N=t(111).applyTransform,f=t(118),i=t(148),w=t(137),Y=t(220),g=t(379),m=t(198),e=t(199),n=t(200),o=t(119),s=t(180),A=t(219),D=t(380),z=s.CMD,V=Math.round,B=Math.sqrt,y=Math.abs,G=Math.cos,F=Math.sin,C=Math.max;if(!p.canvasSupported){function L(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=H+","+H,t.coordorigin="0,0"}function P(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)}function k(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function O(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n}function S(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function M(t,e,n,i){var o="fill"==e,a=t.getElementsByTagName(e)[0];if(null!=n[e]&&"none"!==n[e]&&(o||!o&&n.lineWidth)){if(t[o?"filled":"stroked"]="true",n[e]instanceof A&&k(t,a),a=a||D.createNode(e),o){e=a;var r=n;var s=r.fill;if(null!=s)if(s instanceof A){for(var l,u,c,h,d,p=0,f=[0,0],g=0,m=1,y=i.getBoundingRect(),v=y.width,x=y.height,_=("linear"===s.type?(l="gradient",d=i.transform,h=[s.x*v,s.y*x],c=[s.x2*v,s.y2*x],d&&(N(h,h,d),N(c,c,d)),u=c[0]-h[0],c=c[1]-h[1],(p=180*Math.atan2(u,c)/Math.PI)<0&&(p+=360),p<1e-6&&(p=0)):(l="gradientradial",h=[s.x*v,s.y*x],d=i.transform,u=i.scale,f=[(h[0]-y.x)/(c=v),(h[1]-y.y)/(i=x)],d&&N(h,h,d),c/=u[0]*H,i/=u[1]*H,v=C(c,i),m=2*s.r/v-(g=0/v)),s.colorStops.slice()),b=(_.sort(function(t,e){return t.offset-e.offset}),_.length),w=[],S=[],M=0;M<b;M++){var I=_[M],T=q(I.color);S.push(I.offset*m+g+" "+T[0]),0!==M&&M!==b-1||w.push(T)}2<=b&&(y=w[0][0],x=w[1][0],h=w[0][1]*r.opacity,d=w[1][1]*r.opacity,e.type=l,e.method="none",e.focus="100%",e.angle=p,e.color=y,e.color2=x,e.colors=S.join(","),e.opacity=d,e.opacity2=h),"radial"===l&&(e.focusposition=f.join(","))}else R(e,s,r.opacity)}else u=a,null!=(c=n).lineDash&&(u.dashstyle=c.lineDash.join(" ")),null==c.stroke||c.stroke instanceof A||R(u,c.stroke,c.opacity);P(t,a)}else t[o?"filled":"stroked"]="false",k(t,a)}function v(t,e,n,i){var o=this.style;if(this.__dirty&&Y.normalizeTextStyle(o,!0),null!=(r=o.text)&&(r+=""),r){if(o.rich){for(var a=w.parseRichText(r,o),r=[],s=0;s<a.lines.length;s++){for(var l=a.lines[s].tokens,u=[],c=0;c<l.length;c++)u.push(l[c].text);r.push(u.join(""))}r=r.join("\n")}var h,d,p,f,g,m=o.textAlign,y=o.textVerticalAlign,v=function(t){var e=T[t];if(!e){X<U&&(U=0,T={});var n,i=K.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||I,variant:i.fontVariant||I,weight:i.fontWeight||I,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},T[t]=e,U++}return e}(o.font),v=v.style+" "+v.variant+" "+v.weight+" "+v.size+'px "'+v.family+'"',x=(n=n||w.getBoundingRect(r,v,m,y),this.transform),e=(x&&!i&&(Z.copy(e),Z.applyTransform(x),e=Z),i?(h=e.x,d=e.y):(b=o.textPosition,_=o.textDistance,b instanceof Array?(h=e.x+S(b[0],e.width),d=e.y+S(b[1],e.height),m=m||"left"):(h=(b=w.adjustTextPositionOnRect(b,e,_)).x,d=b.y,m=m||b.textAlign,y=y||b.textVerticalAlign)),h=w.adjustTextX(h,n.width,m),d=w.adjustTextY(d,n.height,y),d+=n.height/2,D.createNode),_=this._textVmlEl,b=(_?f=(p=(g=_.firstChild).nextSibling).nextSibling:(_=e("line"),p=e("path"),f=e("textpath"),g=e("skew"),f.style["v-text-align"]="left",L(_),p.textpathok=!0,f.on=!0,_.from="0 0",_.to="1000 0.05",P(_,g),P(_,p),P(_,f),this._textVmlEl=_),[h,d]),m=_.style;x&&i?(N(b,b,x),g.on=!0,g.matrix=x[0].toFixed(3)+","+x[2].toFixed(3)+","+x[1].toFixed(3)+","+x[3].toFixed(3)+",0,0",g.offset=(V(b[0])||0)+","+(V(b[1])||0),g.origin="0 0",m.left="0px",m.top="0px"):(g.on=!1,m.left=V(h)+"px",m.top=V(d)+"px"),f.string=String(r).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{f.style.font=v}catch(t){}M(_,"fill",{fill:o.textFill,opacity:o.opacity},this),M(_,"stroke",{stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash},this),_.style.zIndex=O(this.zlevel,this.z,this.z2),P(t,_)}}function x(t){k(t,this._textVmlEl),this._textVmlEl=null}function _(t){P(t,this._textVmlEl)}for(var a,E="progid:DXImageTransform.Microsoft",H=21600,W=H/2,r=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},R=function(t,e,n){e=i.parse(e);n=+n,isNaN(n)&&(n=1),e&&(t.color=r(e[0],e[1],e[2]),t.opacity=n*e[3])},q=function(t){t=i.parse(t);return[r(t[0],t[1],t[2]),t[3]]},j=[[],[],[]],I=(o.prototype.brushVML=function(t){var e,n=this.style,i=this._vmlEl,o=(i||(i=D.createNode("shape"),L(i),this._vmlEl=i),M(i,"fill",n,this),M(i,"stroke",n,this),this.transform),a=null!=o,r=i.getElementsByTagName("stroke")[0],o=(r&&(e=n.lineWidth,a&&!n.strokeNoScale&&(a=o[0]*o[3]-o[1]*o[2],e*=B(y(a))),r.weight=e+"px"),this.path||(this.path=new s));this.__dirtyPath&&(o.beginPath(),this.buildPath(o,this.shape),o.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){for(var n,i,o,a=z.M,r=z.C,s=z.L,l=z.A,u=z.Q,c=[],h=t.data,d=t.len(),p=0;p<d;){switch(m="",y=0,n=h[p++]){case a:m=" m ",y=1,i=h[p++],o=h[p++],j[0][0]=i,j[0][1]=o;break;case s:m=" l ",y=1,i=h[p++],o=h[p++],j[0][0]=i,j[0][1]=o;break;case u:case r:var f,g,m=" c ",y=3,v=h[p++],x=h[p++],_=h[p++],b=h[p++];n===u?(_=((f=_)+2*v)/3,b=((g=b)+2*x)/3,v=(i+2*v)/3,x=(o+2*x)/3):(f=h[p++],g=h[p++]),j[0][0]=v,j[0][1]=x,j[1][0]=_,j[1][1]=b,i=j[2][0]=f,o=j[2][1]=g;break;case l:var _=0,b=0,w=1,S=1,M=0,I=(e&&(_=e[4],b=e[5],w=B(e[0]*e[0]+e[1]*e[1]),S=B(e[2]*e[2]+e[3]*e[3]),M=Math.atan2(-e[1]/S,e[0]/w)),h[p++]),T=h[p++],A=h[p++],D=h[p++],C=h[p++]+M,M=h[p++]+C+M,L=(p++,h[p++]),P=I+G(C)*A,k=T+F(C)*D,v=I+G(M)*A,x=T+F(M)*D,O=L?" wa ":" at ";Math.abs(P-v)<1e-4&&(.01<Math.abs(M-C)?L&&(P+=270/H):Math.abs(k-T)<1e-4?L&&P<I||!L&&I<P?x-=270/H:x+=270/H:L&&k<T||!L&&T<k?v+=270/H:v-=270/H),c.push(O,V(((I-A)*w+_)*H-W),",",V(((T-D)*S+b)*H-W),",",V(((I+A)*w+_)*H-W),",",V(((T+D)*S+b)*H-W),",",V((P*w+_)*H-W),",",V((k*S+b)*H-W),",",V((v*w+_)*H-W),",",V((x*S+b)*H-W)),i=v,o=x;break;case z.R:M=j[0],C=j[1];M[0]=h[p++],M[1]=h[p++],C[0]=M[0]+h[p++],C[1]=M[1]+h[p++],e&&(N(M,M,e),N(C,C,e)),M[0]=V(M[0]*H-W),C[0]=V(C[0]*H-W),M[1]=V(M[1]*H-W),C[1]=V(C[1]*H-W),c.push(" m ",M[0],",",M[1]," l ",C[0],",",M[1]," l ",C[0],",",C[1]," l ",M[0],",",C[1]);break;case z.Z:c.push(" x ")}if(0<y){c.push(m);for(var E=0;E<y;E++){var R=j[E];e&&N(R,R,e),c.push(V(R[0]*H-W),",",V(R[1]*H-W),E<y-1?",":"")}}}return c.join("")}(o,this.transform),i.style.zIndex=O(this.zlevel,this.z,this.z2),P(t,i),null!=n.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},o.prototype.onRemove=function(t){k(t,this._vmlEl),this.removeRectText(t)},o.prototype.onAdd=function(t){P(t,this._vmlEl),this.appendRectText(t)},e.prototype.brushVML=function(t){var e,n,i,o,a,r,s,l,u,c,h,d,p,f,g,m,y,v,x,_,b,w,S,M,I=this.style,T=I.image;"object"==typeof(c=T)&&c.tagName&&"IMG"===c.tagName.toUpperCase()?((c=T.src)===this._imageSrc?(e=this._imageWidth,n=this._imageHeight):(i=(o=T.runtimeStyle).width,u=o.height,o.width="auto",o.height="auto",e=T.width,n=T.height,o.width=i,o.height=u,this._imageSrc=c,this._imageWidth=e,this._imageHeight=n),T=c):T===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight),T&&(i=I.x||0,o=I.y||0,a=I.width,r=I.height,s=I.sWidth,l=I.sHeight,u=I.sx||0,c=I.sy||0,h=s&&l,(d=this._vmlEl)||(d=D.doc.createElement("div"),L(d),this._vmlEl=d),p=d.style,M=!1,m=g=1,this.transform&&(f=this.transform,g=B(f[0]*f[0]+f[1]*f[1]),m=B(f[2]*f[2]+f[3]*f[3]),M=f[1]||f[2]),M?(M=[i+a,o],y=[i,o+r],v=[i+a,o+r],N(S=[i,o],S,f),N(M,M,f),N(y,y,f),N(v,v,f),w=C(S[0],M[0],y[0],v[0]),S=C(S[1],M[1],y[1],v[1]),(M=[]).push("M11=",f[0]/g,",","M12=",f[2]/m,",","M21=",f[1]/g,",","M22=",f[3]/m,",","Dx=",V(i*g+f[4]),",","Dy=",V(o*m+f[5])),p.padding="0 "+V(w)+"px "+V(S)+"px 0",p.filter=E+".Matrix("+M.join("")+", SizingMethod=clip)"):(f&&(i=i*g+f[4],o=o*m+f[5]),p.filter="",p.left=V(i)+"px",p.top=V(o)+"px"),y=this._imageEl,v=this._cropEl,y||(y=D.doc.createElement("div"),this._imageEl=y),x=y.style,h?(e&&n?(x.width=V(g*e*a/s)+"px",x.height=V(m*n*r/l)+"px"):(_=new Image,b=this,_.onload=function(){_.onload=null,e=_.width,n=_.height,x.width=V(g*e*a/s)+"px",x.height=V(m*n*r/l)+"px",b._imageWidth=e,b._imageHeight=n,b._imageSrc=T},_.src=T),v||((v=D.doc.createElement("div")).style.overflow="hidden",this._cropEl=v),(w=v.style).width=V((a+u*a/s)*g),w.height=V((r+c*r/l)*m),w.filter=E+".Matrix(Dx="+-u*a/s*g+",Dy="+-c*r/l*m+")",v.parentNode||d.appendChild(v),y.parentNode!=v&&v.appendChild(y)):(x.width=V(g*a)+"px",x.height=V(m*r)+"px",d.appendChild(y),v&&v.parentNode&&(d.removeChild(v),this._cropEl=null)),S="",(M=I.opacity)<1&&(S+=".Alpha(opacity="+V(100*M)+") "),S+=E+".AlphaImageLoader(src="+T+", SizingMethod=scale)",x.filter=S,d.style.zIndex=O(this.zlevel,this.z,this.z2),P(t,d),null!=I.text)&&this.drawRectText(t,this.getBoundingRect())},e.prototype.onRemove=function(t){k(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},e.prototype.onAdd=function(t){P(t,this._vmlEl),this.appendRectText(t)},"normal"),T={},U=0,X=100,K=document.createElement("div"),Z=(w.$override("measureText",function(t,e){var n=D.doc;a||((a=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",D.doc.body.appendChild(a));try{a.style.font=e}catch(t){}return a.innerHTML="",a.appendChild(n.createTextNode(t)),{width:a.offsetWidth}}),new f),l=[g,m,e,o,n],u=0;u<l.length;u++){var c=l[u].prototype;c.drawRectText=v,c.removeRectText=x,c.appendRectText=_}n.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},n.prototype.onRemove=function(t){this.removeRectText(t)},n.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,n){n(954),(0,n(221).registerPainter)("vml",n(953))}],l=window.webpackJsonp,window.webpackJsonp=function(t,e){for(var n,i,o=0,a=[];o<t.length;o++)i=t[o],u[i]&&a.push.apply(a,u[i]),u[i]=0;for(n in e)s[n]=e[n];for(l&&l(t,e);a.length;)a.shift().call(null,r)},o={},u={0:0},r.e=function(t,e){if(0===u[t])return e.call(null,r);var n;void 0!==u[t]?u[t].push(e):(u[t]=[e],e=document.getElementsByTagName("head")[0],(n=document.createElement("script")).type="text/javascript",n.charset="utf-8",n.async=!0,n.src=r.p+""+t+".lib.js",e.appendChild(n))},r.m=s,r.c=o,r.p="library/manage/webmeterManage/lib/",r(0);function r(t){var e;return(o[t]||(e=o[t]={exports:{},id:t,loaded:!1},s[t].call(e.exports,e,e.exports,r),e.loaded=!0,e)).exports}var s,l,o,u});