gds-plus-design-vue 1.2.62 → 1.2.71

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 (411) hide show
  1. package/lib/addPermission.179a09f4.mjs +443 -0
  2. package/lib/addPermission.c72ebbe0.js +1 -0
  3. package/lib/approvalModel.7b550187.mjs +340 -0
  4. package/lib/approvalModel.7cfcac3c.js +1 -0
  5. package/lib/attribute.3fed1dd9.js +1 -0
  6. package/lib/attribute.e9a8faa1.mjs +367 -0
  7. package/lib/businessRules.cf106f09.js +1 -0
  8. package/lib/businessRules.d7d35011.mjs +539 -0
  9. package/lib/buttonRule.2afe380d.mjs +396 -0
  10. package/lib/buttonRule.737e8e3f.js +1 -0
  11. package/lib/chartDisplayRules.370065e8.mjs +288 -0
  12. package/lib/chartDisplayRules.c9162f81.js +1 -0
  13. package/lib/components.chartbi.3bbac955.js +8 -0
  14. package/lib/components.chartbi.571c5ff5.mjs +1813 -0
  15. package/lib/components.coloreditor.06cf0433.mjs +1505 -0
  16. package/lib/components.coloreditor.f81d322a.js +6 -0
  17. package/lib/components.dataassign.21d3938b.mjs +147 -0
  18. package/lib/components.dataassign.565d22c0.js +1 -0
  19. package/lib/components.echarts.490abdfa.mjs +811 -0
  20. package/lib/components.echarts.fe84f881.js +4 -0
  21. package/lib/components.exception.374f2ad9.js +1 -0
  22. package/lib/components.exception.ee1c4f83.mjs +61 -0
  23. package/lib/components.form.5533a8c3.js +41 -0
  24. package/lib/components.form.db8af727.mjs +7813 -0
  25. package/lib/components.globalheader.2eb787a4.js +1 -0
  26. package/lib/components.globalheader.b3b35343.mjs +54 -0
  27. package/lib/components.iconselector.8940b1a9.mjs +1169 -0
  28. package/lib/components.iconselector.f5a58033.js +1 -0
  29. package/lib/components.imgpreview.d97cf25c.js +1 -0
  30. package/lib/components.imgpreview.f05b3e06.mjs +213 -0
  31. package/lib/components.lunccalendar.18f84642.js +1 -0
  32. package/lib/components.lunccalendar.2a097955.mjs +1137 -0
  33. package/lib/components.middleware.43b9b264.js +1 -0
  34. package/lib/components.middleware.de012955.mjs +148 -0
  35. package/lib/components.modaltitle.5060623f.mjs +127 -0
  36. package/lib/components.modaltitle.957cab33.js +1 -0
  37. package/lib/components.multitab.5eb6edff.mjs +140 -0
  38. package/lib/components.multitab.80eeb3ae.js +1 -0
  39. package/lib/components.selecttree.2fe70d88.js +1 -0
  40. package/lib/components.selecttree.756c4d22.mjs +170 -0
  41. package/lib/components.settingdrawer.29dbc31e.mjs +237 -0
  42. package/lib/components.settingdrawer.8c12650b.js +1 -0
  43. package/lib/components.sidemenu.0673fe0a.mjs +277 -0
  44. package/lib/components.sidemenu.240dfde7.js +1 -0
  45. package/lib/components.sidenavmenu.b1330d69.js +1 -0
  46. package/lib/components.sidenavmenu.fa81ff82.mjs +1147 -0
  47. package/lib/components.statuschange.858b72e8.js +1 -0
  48. package/lib/components.statuschange.fae4adba.mjs +116 -0
  49. package/lib/components.table.1e338902.js +8 -0
  50. package/lib/components.table.9ed77207.mjs +4650 -0
  51. package/lib/components.tableumy.1d804d70.js +1 -0
  52. package/lib/components.tableumy.3e1c9a5b.mjs +453 -0
  53. package/lib/components.tablevirtual.66890b2c.mjs +564 -0
  54. package/lib/components.tablevirtual.8e21a6e7.js +1 -0
  55. package/lib/components.teamsharing.3a17ddc0.mjs +373 -0
  56. package/lib/components.teamsharing.89e668fd.js +1 -0
  57. package/lib/components.tooltip.0ea7e2b1.js +1 -0
  58. package/lib/components.tooltip.376d95fe.mjs +86 -0
  59. package/lib/components.uploadfile.0a5a1608.mjs +228 -0
  60. package/lib/components.uploadfile.8e0e702c.js +1 -0
  61. package/lib/components.uploadimg.bc160e00.js +1 -0
  62. package/lib/components.uploadimg.decb0360.mjs +192 -0
  63. package/lib/components.verificationcode.140533c7.js +1 -0
  64. package/lib/components.verificationcode.7091b10b.mjs +71 -0
  65. package/lib/components.viewformdetails.940addba.js +1 -0
  66. package/lib/components.viewformdetails.d241c652.mjs +1081 -0
  67. package/lib/components.viewloading.1e9f4b3c.js +1 -0
  68. package/lib/components.viewloading.aae3aab4.mjs +99 -0
  69. package/lib/components.watermark.2ec3260c.mjs +53 -0
  70. package/lib/components.watermark.d9ec8130.js +2 -0
  71. package/lib/components.xlsxexport.0d1553b1.js +1 -0
  72. package/lib/components.xlsxexport.c33f83ca.mjs +263 -0
  73. package/lib/components.xlsximport.81df7841.mjs +922 -0
  74. package/lib/components.xlsximport.8c209857.js +1 -0
  75. package/lib/copy.8db86d9f.mjs +572 -0
  76. package/lib/copy.a8753f38.js +1 -0
  77. package/lib/createFile.04a6b293.js +1 -0
  78. package/lib/createFile.4cac1673.mjs +439 -0
  79. package/lib/createSubfolders.e105fa86.js +1 -0
  80. package/lib/createSubfolders.eac5ccae.mjs +154 -0
  81. package/lib/dialogLayout.bf435838.mjs +138 -0
  82. package/lib/dialogLayout.f0779aed.js +1 -0
  83. package/lib/drawerContainer.6ab3df46.mjs +163 -0
  84. package/lib/drawerContainer.8f9df583.js +1 -0
  85. package/lib/drawerLayout.b6c7c3c6.js +1 -0
  86. package/lib/drawerLayout.e3c0164d.mjs +119 -0
  87. package/lib/editForm.0f3fd3b0.js +1 -0
  88. package/lib/editForm.aef93ed0.mjs +434 -0
  89. package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
  90. package/lib/extendedAttributes.ef3ead02.js +1 -0
  91. package/lib/fileSearch.43465e1c.js +1 -0
  92. package/lib/fileSearch.5c8a883d.mjs +363 -0
  93. package/lib/flow.designer.81c29f62.mjs +7673 -0
  94. package/lib/flow.designer.ffd0aa8b.js +1 -0
  95. package/lib/flow.list.4c05f2f0.js +1 -0
  96. package/lib/flow.list.ab420927.mjs +3032 -0
  97. package/lib/form.build.724d3357.js +1 -0
  98. package/lib/form.build.d04773f0.mjs +259 -0
  99. package/lib/form.designer.build.c82cb559.mjs +2529 -0
  100. package/lib/form.designer.build.dac501fa.js +1 -0
  101. package/lib/formFiled.4b5062d7.js +1 -0
  102. package/lib/formFiled.c949a27f.mjs +507 -0
  103. package/lib/gd-initial.js +1 -35
  104. package/lib/gd-initial.mjs +245 -91338
  105. package/lib/http.appmanage.b998818f.js +1 -0
  106. package/lib/http.appmanage.e389782d.mjs +50 -0
  107. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  108. package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
  109. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  110. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  111. package/lib/http.currencymanage.37ab5ced.js +1 -0
  112. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  113. package/lib/http.datasource.294b01e2.js +1 -0
  114. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  115. package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
  116. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  117. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  118. package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
  119. package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
  120. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  121. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  122. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  123. package/lib/http.filedocument.6fdfc693.js +1 -0
  124. package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
  125. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  126. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  127. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  128. package/lib/http.languagemanage.e2c098ec.js +1 -0
  129. package/lib/http.loginmanage.05500c29.mjs +74 -0
  130. package/lib/http.loginmanage.326984c3.js +1 -0
  131. package/lib/http.logmanage.1e12a9bd.js +1 -0
  132. package/lib/http.logmanage.8ba72635.mjs +82 -0
  133. package/lib/http.machinemanage.29d72a65.js +1 -0
  134. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  135. package/lib/http.main.2f8a6936.js +1 -0
  136. package/lib/http.main.aefea27d.mjs +517 -0
  137. package/lib/http.menumanage.3060f4c7.mjs +66 -0
  138. package/lib/http.menumanage.6d740f2c.js +1 -0
  139. package/lib/http.message.87f319d7.js +1 -0
  140. package/lib/http.message.ceb0a1c6.mjs +178 -0
  141. package/lib/http.noticemanage.2507d094.js +1 -0
  142. package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
  143. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  144. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  145. package/lib/http.onlineusermanage.3893f897.js +1 -0
  146. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  147. package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
  148. package/lib/http.orgmanage.5162fd7a.js +1 -0
  149. package/lib/http.pluginmanage.54720675.mjs +82 -0
  150. package/lib/http.pluginmanage.6a876040.js +1 -0
  151. package/lib/http.posmanage.c0f80aec.js +1 -0
  152. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  153. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  154. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  155. package/lib/http.rolemanage.4d1101dd.js +1 -0
  156. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  157. package/lib/http.solution.b10d9197.mjs +91 -0
  158. package/lib/http.solution.c6b2634f.js +1 -0
  159. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  160. package/lib/http.sumberrules.176d3d06.mjs +34 -0
  161. package/lib/http.sysapps.469d47f7.js +1 -0
  162. package/lib/http.sysapps.932ba43b.mjs +58 -0
  163. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  164. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  165. package/lib/http.tabledevelopment.3dcb3e97.mjs +362 -0
  166. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  167. package/lib/http.team.a9c609d5.mjs +90 -0
  168. package/lib/http.team.e45400d5.js +1 -0
  169. package/lib/http.timersmanage.6e894942.js +1 -0
  170. package/lib/http.timersmanage.c79afb66.mjs +146 -0
  171. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  172. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  173. package/lib/http.translationmanage.1f9dce46.js +1 -0
  174. package/lib/http.translationmanage.f8694b51.mjs +104 -0
  175. package/lib/http.useraffiliation.af2013ad.js +1 -0
  176. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  177. package/lib/http.usermanage.6dcbc7de.js +1 -0
  178. package/lib/http.usermanage.f5491144.mjs +219 -0
  179. package/lib/http.webresource.1a1a768f.mjs +50 -0
  180. package/lib/http.webresource.7c01b9cd.js +1 -0
  181. package/lib/index.9deaa991.mjs +25906 -0
  182. package/lib/index.d95c407c.js +8 -0
  183. package/lib/layoutBlocks.26e1b57b.js +1 -0
  184. package/lib/layoutBlocks.31454610.mjs +413 -0
  185. package/lib/layoutItem.c1c836a1.js +1 -0
  186. package/lib/layoutItem.cf18143e.mjs +71 -0
  187. package/lib/layouts.2d06f3e9.js +2 -0
  188. package/lib/layouts.3b383d04.mjs +373 -0
  189. package/lib/main.09d48801.js +1 -0
  190. package/lib/main.28b7c398.js +1 -0
  191. package/lib/main.29e204f9.mjs +166 -0
  192. package/lib/main.33443996.mjs +231 -0
  193. package/lib/main.357c50d2.js +1 -0
  194. package/lib/{main.fb4a8edf.mjs → main.3e886f21.mjs} +113 -188
  195. package/lib/{main.7921130e.mjs → main.419a7b42.mjs} +4 -4
  196. package/lib/main.4a38d5f8.js +1 -0
  197. package/lib/{main.c569c0a5.mjs → main.60329866.mjs} +12 -10
  198. package/lib/main.60c2a1a2.js +1 -0
  199. package/lib/main.61c9e5c6.mjs +537 -0
  200. package/lib/main.643d21a0.mjs +552 -0
  201. package/lib/main.64ddb5f6.mjs +189 -0
  202. package/lib/main.728eaf53.js +1 -0
  203. package/lib/main.892caa37.js +1 -0
  204. package/lib/main.aea9b6a8.mjs +323 -0
  205. package/lib/main.b7a5a02b.js +1 -0
  206. package/lib/main.c71e5b11.js +1 -0
  207. package/lib/main.edc0b23b.js +1 -0
  208. package/lib/{main.5a6c881a.mjs → main.f520fcf5.mjs} +9 -8
  209. package/lib/manage.101f1aa9.js +1 -0
  210. package/lib/manage.f4000654.mjs +441 -0
  211. package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
  212. package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
  213. package/lib/messages.messagetemplate.32273e00.js +7 -0
  214. package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
  215. package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
  216. package/lib/messages.sendplan.fbac188d.js +1 -0
  217. package/lib/messages.sendrecord.ef80d44a.js +2 -0
  218. package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
  219. package/lib/messages.templatelibrary.ec512390.js +2 -0
  220. package/lib/messages.templatelibrary.ff151513.mjs +808 -0
  221. package/lib/mobile.designer.componentstree.03f61105.js +1 -0
  222. package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
  223. package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
  224. package/lib/mobile.designer.menutree.97bb4046.js +1 -0
  225. package/lib/moveFile.335ebc8d.js +1 -0
  226. package/lib/moveFile.d71c0824.mjs +276 -0
  227. package/lib/page.build.376104d5.mjs +3164 -0
  228. package/lib/page.build.37b26617.js +12 -0
  229. package/lib/page.designer.componentstree.0ffc933d.js +1 -0
  230. package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
  231. package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
  232. package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
  233. package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
  234. package/lib/page.designer.menutree.c49d9ee6.js +1 -0
  235. package/lib/page.designer.operation.6179b661.js +1 -0
  236. package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
  237. package/lib/page.designer.page.09402332.js +1 -0
  238. package/lib/page.designer.page.6d8232c7.mjs +10638 -0
  239. package/lib/personal.echarts.414b7e3d.mjs +268 -0
  240. package/lib/personal.echarts.b7ee86f4.js +1 -0
  241. package/lib/result.0c089066.mjs +639 -0
  242. package/lib/result.9282a717.js +1 -0
  243. package/lib/router.config.68077a12.js +1 -0
  244. package/lib/router.config.86225b11.mjs +1424 -0
  245. package/lib/solution.application.d459e382.js +1 -0
  246. package/lib/solution.application.e0d58df1.mjs +548 -0
  247. package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
  248. package/lib/solution.applicationmenu.ae295083.js +1 -0
  249. package/lib/solution.approvalflow.436b3502.js +1 -0
  250. package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
  251. package/lib/solution.dict.acbe9c55.js +1 -0
  252. package/lib/solution.dict.ef98b194.mjs +769 -0
  253. package/lib/solution.menu.5c17348f.mjs +432 -0
  254. package/lib/solution.menu.cca5e1f9.js +1 -0
  255. package/lib/solution.plugin.90f8dcc1.mjs +347 -0
  256. package/lib/solution.plugin.f9a8063f.js +1 -0
  257. package/lib/solution.processflow.2692dac6.js +1 -0
  258. package/lib/solution.processflow.c1544b05.mjs +392 -0
  259. package/lib/solution.role.b1ab40dd.mjs +456 -0
  260. package/lib/solution.role.b28c4dbe.js +1 -0
  261. package/lib/solution.webresources.0b51beba.mjs +379 -0
  262. package/lib/solution.webresources.6961cc68.js +1 -0
  263. package/lib/solution.workflow.11e49e25.js +1 -0
  264. package/lib/solution.workflow.c48545d1.mjs +395 -0
  265. package/lib/store.config.03dd7b19.mjs +547 -0
  266. package/lib/store.config.556bd56b.js +1 -0
  267. package/lib/style.css +3 -3
  268. package/lib/system.account.1cadbf03.mjs +2093 -0
  269. package/lib/system.account.5cc9fe8d.js +216 -0
  270. package/lib/system.config.a0b94e40.js +1 -0
  271. package/lib/{system.config.00dd0a29.mjs → system.config.a9a1ee96.mjs} +7 -6
  272. package/lib/system.datasource.6c30ce25.js +1 -0
  273. package/lib/{system.datasource.eb8d16df.mjs → system.datasource.c103a9c2.mjs} +15 -64
  274. package/lib/{system.dict.787ff1ec.mjs → system.dict.0c229d1c.mjs} +269 -344
  275. package/lib/system.dict.6b000092.js +1 -0
  276. package/lib/system.document.f67c2994.mjs +667 -0
  277. package/lib/system.document.f8fd7af0.js +1 -0
  278. package/lib/system.duplicatechecking.94c7ce17.mjs +722 -0
  279. package/lib/system.duplicatechecking.f4cab147.js +1 -0
  280. package/lib/system.email.11ab6f31.js +1 -0
  281. package/lib/system.email.13823361.mjs +133 -0
  282. package/lib/system.fieldsecurity.2ef2881c.js +1 -0
  283. package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.d35acd97.mjs} +486 -938
  284. package/lib/{system.file.eae6eac2.mjs → system.file.30d3e7bc.mjs} +84 -151
  285. package/lib/system.file.b9f8320c.js +1 -0
  286. package/lib/system.log.470d3efd.js +1 -0
  287. package/lib/{system.log.9bf208c1.mjs → system.log.815840d8.mjs} +24 -93
  288. package/lib/{system.machine.0130e762.mjs → system.machine.1665954f.mjs} +5 -25
  289. package/lib/system.machine.f8aff893.js +1 -0
  290. package/lib/{system.notice.dba4c597.mjs → system.notice.bef6c23c.mjs} +1075 -1255
  291. package/lib/system.notice.db26f308.js +1 -0
  292. package/lib/{system.noticereceived.0b88ef5d.mjs → system.noticereceived.0d293a87.mjs} +19 -27
  293. package/lib/system.noticereceived.84b88b9a.js +1 -0
  294. package/lib/system.onlineuser.985621a6.js +1 -0
  295. package/lib/{system.onlineuser.bfc3abf2.mjs → system.onlineuser.bccb1cd9.mjs} +36 -38
  296. package/lib/{system.org.6da23c73.mjs → system.org.92f4d7f1.mjs} +3 -3
  297. package/lib/system.org.9f87a010.js +1 -0
  298. package/lib/system.permissions.15e6b8b7.js +1 -0
  299. package/lib/system.permissions.be9238ee.mjs +972 -0
  300. package/lib/system.plugin.0bccfec4.js +1 -0
  301. package/lib/{system.plugin.f8765f96.mjs → system.plugin.af27d7ac.mjs} +503 -552
  302. package/lib/system.pos.61e58a92.js +1 -0
  303. package/lib/{system.pos.5645b45a.mjs → system.pos.fe067063.mjs} +31 -62
  304. package/lib/{system.promptmanagement.cd19d086.mjs → system.promptmanagement.0b9083c5.mjs} +318 -450
  305. package/lib/system.promptmanagement.e750de82.js +1 -0
  306. package/lib/{system.role.0c6c327d.mjs → system.role.67f62146.mjs} +512 -486
  307. package/lib/system.role.e86b60f1.js +1 -0
  308. package/lib/{system.sumberrules.b48c028c.mjs → system.sumberrules.093d998e.mjs} +169 -192
  309. package/lib/system.sumberrules.810f7b55.js +1 -0
  310. package/lib/system.team.58ee701b.js +1 -0
  311. package/lib/system.team.8911fd95.mjs +452 -0
  312. package/lib/system.teammembers.1880f962.js +1 -0
  313. package/lib/{system.teammembers.e23e15d9.mjs → system.teammembers.35564a00.mjs} +257 -199
  314. package/lib/{system.timers.63d03fc9.mjs → system.timers.4b2d509f.mjs} +2202 -2278
  315. package/lib/system.timers.9e956553.js +38 -0
  316. package/lib/system.translation.26b6bb39.js +1 -0
  317. package/lib/{system.translation.52452a24.mjs → system.translation.60ec676c.mjs} +437 -431
  318. package/lib/system.user.134a3988.js +14 -0
  319. package/lib/{system.user.8d97a219.mjs → system.user.9a02295e.mjs} +1082 -1025
  320. package/lib/{system.useraffiliation.3075aa2c.mjs → system.useraffiliation.96695aeb.mjs} +419 -412
  321. package/lib/system.useraffiliation.c2421c7e.js +1 -0
  322. package/lib/{system.webresource.7df0cf1e.mjs → system.webresource.016d0000.mjs} +177 -219
  323. package/lib/system.webresource.e92e8a8f.js +1 -0
  324. package/lib/{system.welcome.14785b50.mjs → system.welcome.127b5dd4.mjs} +10 -3
  325. package/lib/system.welcome.ff0c85e2.js +1 -0
  326. package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
  327. package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
  328. package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
  329. package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
  330. package/lib/tableDescriptions.a4196776.mjs +80 -0
  331. package/lib/tableDescriptions.b9b0d7fa.js +1 -0
  332. package/lib/tcheckboxs.7ea99d35.js +1 -0
  333. package/lib/tcheckboxs.999b7c2e.mjs +52 -0
  334. package/lib/tcurrency.4afb9192.mjs +85 -0
  335. package/lib/tcurrency.8a2361f2.js +1 -0
  336. package/lib/tdatepicker.606214fa.mjs +52 -0
  337. package/lib/tdatepicker.8e94a60c.js +1 -0
  338. package/lib/tdictSwitch.ccbdd153.js +1 -0
  339. package/lib/tdictSwitch.e016d4cf.mjs +60 -0
  340. package/lib/tfile.3f39223d.mjs +62 -0
  341. package/lib/tfile.b3ebdc71.js +1 -0
  342. package/lib/tparticipants.5fe27540.mjs +56 -0
  343. package/lib/tparticipants.78c8c175.js +1 -0
  344. package/lib/translation.mains.2688be5b.mjs +383 -0
  345. package/lib/translation.mains.a6f19343.js +1 -0
  346. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  347. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  348. package/lib/utils.echarts.js.461a74e7.js +54 -0
  349. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  350. package/lib/utils.mixins.js.750ca50e.js +1 -0
  351. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  352. package/lib/utils.plug.js.9313aead.mjs +31 -0
  353. package/lib/utils.plug.js.f62510ce.js +1 -0
  354. package/lib/utils.util.js.333daba2.mjs +439 -0
  355. package/lib/utils.util.js.c0ba699b.js +1 -0
  356. package/lib/versionControl.46a7f31a.js +1 -0
  357. package/lib/versionControl.c53bfb5d.mjs +488 -0
  358. package/lib/versionEdit.4246d5db.js +1 -0
  359. package/lib/versionEdit.5a8292ec.mjs +452 -0
  360. package/lib/view.build.85732408.mjs +1578 -0
  361. package/lib/view.build.e43a2077.js +1 -0
  362. package/lib/viewList.868edcd7.js +1 -0
  363. package/lib/viewList.978b72c5.mjs +324 -0
  364. package/lib/viewTree.7497ff90.js +1 -0
  365. package/lib/viewTree.bde43a3b.mjs +409 -0
  366. package/locale/en_US.js +82 -27
  367. package/locale/id_ID.js +66 -11
  368. package/locale/vi_VN.js +1968 -1913
  369. package/locale/zh_CN.js +88 -32
  370. package/package.json +106 -105
  371. package/lib/chartbi.114d32d7.js +0 -60
  372. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  373. package/lib/main.083e0ba3.js +0 -1
  374. package/lib/main.4a858284.js +0 -1
  375. package/lib/main.64cb2027.js +0 -1
  376. package/lib/main.70a46cbc.js +0 -1
  377. package/lib/messages.364eb728.js +0 -9
  378. package/lib/messages.5bcc42f9.mjs +0 -5863
  379. package/lib/system.account.95bd8508.js +0 -216
  380. package/lib/system.account.d6c7485b.mjs +0 -2552
  381. package/lib/system.config.63c0217d.js +0 -1
  382. package/lib/system.datasource.a2c0bad4.js +0 -1
  383. package/lib/system.dict.dfb4c376.js +0 -1
  384. package/lib/system.duplicatechecking.a58aad69.mjs +0 -2142
  385. package/lib/system.duplicatechecking.c4141ebd.js +0 -1
  386. package/lib/system.email.545cedff.mjs +0 -7432
  387. package/lib/system.email.ec0ac728.js +0 -41
  388. package/lib/system.fieldsecurity.eb217079.js +0 -1
  389. package/lib/system.file.1cb952a4.js +0 -1
  390. package/lib/system.log.348b3605.js +0 -1
  391. package/lib/system.machine.49fc6405.js +0 -1
  392. package/lib/system.notice.d7a3346d.js +0 -1
  393. package/lib/system.noticereceived.c0b24616.js +0 -1
  394. package/lib/system.onlineuser.b3c94b5b.js +0 -1
  395. package/lib/system.org.30063246.js +0 -1
  396. package/lib/system.permissions.1ff855c2.js +0 -9
  397. package/lib/system.permissions.fdad3c36.mjs +0 -212
  398. package/lib/system.plugin.2c7c8a5a.js +0 -1
  399. package/lib/system.pos.21294c28.js +0 -1
  400. package/lib/system.promptmanagement.7e8da777.js +0 -1
  401. package/lib/system.role.078fac85.js +0 -1
  402. package/lib/system.sumberrules.b0252f77.js +0 -1
  403. package/lib/system.team.296512d7.mjs +0 -1000
  404. package/lib/system.team.5d6169bc.js +0 -1
  405. package/lib/system.teammembers.313345f7.js +0 -1
  406. package/lib/system.timers.8246e6ba.js +0 -38
  407. package/lib/system.translation.fdff4956.js +0 -1
  408. package/lib/system.user.49457fd3.js +0 -14
  409. package/lib/system.useraffiliation.0e9da6a8.js +0 -1
  410. package/lib/system.webresource.2a341e05.js +0 -1
  411. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -0,0 +1,54 @@
1
+ "use strict";/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var Tf=function(r,t){return Tf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Tf(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var qx=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Kx=function(){function r(){this.browser=new qx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Mn=new Kx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mn.wxa=!0,Mn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mn.worker=!0:typeof navigator>"u"?(Mn.node=!0,Mn.svgSupported=!0):Qx(navigator.userAgent,Mn);function Qx(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const tt=Mn;var Bh=12,jx="sans-serif",Hn=Bh+"px "+jx,Jx=20,tS=100,eS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function rS(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-Jx)/tS;t[n]=i}return t}var nS=rS(eS),xr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=xr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Hn),r.measureText(e);e=e||"",n=n||Hn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Bh,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=nS[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function ky(r){for(var t in xr)r[t]&&(xr[t]=r[t])}var By=ir(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Vy=ir(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Fi=Object.prototype.toString,ll=Array.prototype,iS=ll.forEach,aS=ll.filter,Vh=ll.slice,oS=ll.map,wc=function(){}.constructor,xo=wc?wc.prototype:null,Fh="__proto__",sS=2311;function zh(){return sS++}function $r(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function K(r){if(r==null||typeof r!="object")return r;var t=r,e=Fi.call(r);if(e==="[object Array]"){if(!wi(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=K(r[n])}}else if(Vy[e]){if(!wi(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!By[e]&&!wi(r)&&!Ai(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Fh&&(t[o]=K(r[o]))}return t}function rt(r,t,e){if(!W(t)||!W(r))return e?K(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Fh){var i=r[n],a=t[n];W(a)&&W(i)&&!F(a)&&!F(i)&&!Ai(a)&&!Ai(i)&&!Cf(a)&&!Cf(i)&&!wi(a)&&!wi(i)?rt(i,a,e):(e||!(n in r))&&(r[n]=K(t[n]))}return r}function lS(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=rt(e,r[n],t);return e}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Fh&&(r[e]=t[e]);return r}function Y(r,t,e){for(var n=mt(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}var uS=xr.createCanvas;function ht(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Gh(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function ne(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else Y(r,t,e)}function Xt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function D(r,t,e){if(!!(r&&t))if(r.forEach&&r.forEach===iS)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function z(r,t,e){if(!r)return[];if(!t)return ul(r);if(r.map&&r.map===oS)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function ir(r,t,e,n){if(!!(r&&t)){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function _t(r,t,e){if(!r)return[];if(!t)return ul(r);if(r.filter&&r.filter===aS)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function fS(r,t,e){if(!!(r&&t)){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function mt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function hS(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Vh.call(arguments)))}}var vt=xo&&X(xo.bind)?xo.call.bind(xo.bind):hS;function dt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Vh.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):Fi.call(r)==="[object Array]"}function X(r){return typeof r=="function"}function H(r){return typeof r=="string"}function Va(r){return Fi.call(r)==="[object String]"}function ct(r){return typeof r=="number"}function W(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Cf(r){return!!By[Fi.call(r)]}function ee(r){return!!Vy[Fi.call(r)]}function Ai(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function io(r){return r.colorStops!=null}function Fy(r){return r.image!=null}function Hh(r){return Fi.call(r)==="[object RegExp]"}function Mi(r){return r!==r}function Sr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function nt(r,t){return r!=null?r:t}function Yr(r,t,e){return r!=null?r:t!=null?t:e}function ul(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Vh.apply(r,t)}function Wh(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function J(r,t){if(!r)throw new Error(t)}function ze(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var zy="__ec_primitive__";function Fa(r){r[zy]=!0}function wi(r){return r[zy]}var vS=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Gy=typeof Map=="function";function cS(){return Gy?new Map:new vS}var Hy=function(){function r(t){var e=F(t);this.data=cS();var n=this;t instanceof r?t.each(i):t&&D(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Gy?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function j(r){return new Hy(r)}function Wy(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function ao(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&k(e,t),e}function Uh(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ar(r,t){return r.hasOwnProperty(t)}function Yt(){}var Uy=180/Math.PI;const dS=Object.freeze(Object.defineProperty({__proto__:null,guid:zh,logError:$r,clone:K,merge:rt,mergeAll:lS,extend:k,defaults:Y,createCanvas:uS,indexOf:ht,inherits:Gh,mixin:ne,isArrayLike:Xt,each:D,map:z,reduce:ir,filter:_t,find:fS,keys:mt,bind:vt,curry:dt,isArray:F,isFunction:X,isString:H,isStringSafe:Va,isNumber:ct,isObject:W,isBuiltInObject:Cf,isTypedArray:ee,isDom:Ai,isGradientObject:io,isImagePatternObject:Fy,isRegExp:Hh,eqNaN:Mi,retrieve:Sr,retrieve2:nt,retrieve3:Yr,slice:ul,normalizeCssArray:Wh,assert:J,trim:ze,setAsPrimitive:Fa,isPrimitive:wi,HashMap:Hy,createHashMap:j,concatArray:Wy,createObject:ao,disableUserSelect:Uh,hasOwn:ar,noop:Yt,RADIAN_TO_DEGREE:Uy},Symbol.toStringTag,{value:"Module"}));function qn(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function pS(r,t){return r[0]=t[0],r[1]=t[1],r}function $y(r){return[r[0],r[1]]}function gS(r,t,e){return r[0]=t,r[1]=e,r}function Df(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function yS(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Yy(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function $h(r){return Math.sqrt(Yh(r))}var mS=$h;function Yh(r){return r[0]*r[0]+r[1]*r[1]}var _S=Yh;function xS(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function SS(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function wS(r,t){return r[0]*t[0]+r[1]*t[1]}function hs(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Xy(r,t){var e=$h(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ds(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var As=Ds;function Zy(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Nn=Zy;function bS(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Aa(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function te(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function zr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Gr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const TS=Object.freeze(Object.defineProperty({__proto__:null,create:qn,copy:pS,clone:$y,set:gS,add:Df,scaleAndAdd:yS,sub:Yy,len:$h,length:mS,lenSquare:Yh,lengthSquare:_S,mul:xS,div:SS,dot:wS,scale:hs,normalize:Xy,distance:Ds,dist:As,distanceSquare:Zy,distSquare:Nn,negate:bS,lerp:Aa,applyTransform:te,min:zr,max:Gr},Symbol.toStringTag,{value:"Module"}));var Jn=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),CS=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Jn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Jn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Jn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Jn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Jn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Jn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const DS=CS;var AS=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const Ue=AS;var MS=Math.log(2);function Af(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/MS);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[e][c]*Af(r,t-1,f,u,i|d,a),v++)}return a[o]=h,h}function bc(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=Af(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Af(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Tc="___zrEVENTSAVED",Xl=[];function ES(r,t,e,n,i){return Mf(Xl,t,n,i,!0)&&Mf(r,e,Xl[0],Xl[1])}function Mf(r,t,e,n,i){if(t.getBoundingClientRect&&tt.domSupported&&!qy(t)){var a=t[Tc]||(t[Tc]={}),o=LS(t,a),s=IS(o,a,i);if(s)return s(r,e,n),!0}return!1}function LS(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function IS(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?bc(s,o):bc(o,s))}function qy(r){return r.nodeName.toUpperCase()==="CANVAS"}var PS=/([&<>"'])/g,RS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ce(r){return r==null?"":(r+"").replace(PS,function(t,e){return RS[e]})}var OS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zl=[],NS=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function Ef(r,t,e,n){return e=e||{},n?Cc(r,t,e):NS&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Cc(r,t,e),e}function Cc(r,t,e){if(tt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(qy(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Mf(Zl,r,n,i)){e.zrX=Zl[0],e.zrY=Zl[1];return}}e.zrX=e.zrY=0}function Xh(r){return r||window.event}function Se(r,t,e){if(t=Xh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ef(r,o,t,e)}else{Ef(r,t,t,e);var a=kS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&OS.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function kS(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function BS(r,t,e,n){r.addEventListener(t,e,n)}function VS(r,t,e,n){r.removeEventListener(t,e,n)}var Ky=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},FS=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Ef(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in ql)if(ql.hasOwnProperty(e)){var n=ql[e](this._track,t);if(n)return n}},r}();function Dc(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function zS(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ql={pinch:function(r,t){var e=r.length;if(!!e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Dc(n)/Dc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=zS(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function wr(){return[1,0,0,1,0,0]}function oo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Zh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Xr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Ei(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function zi(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function Qy(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Gi(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function GS(r){var t=wr();return Zh(t,r),t}const HS=Object.freeze(Object.defineProperty({__proto__:null,create:wr,identity:oo,copy:Zh,mul:Xr,translate:Ei,rotate:zi,scale:Qy,invert:Gi,clone:GS},Symbol.toStringTag,{value:"Module"}));var WS=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const $=WS;var So=Math.min,wo=Math.max,on=new $,sn=new $,ln=new $,un=new $,Ki=new $,Qi=new $,US=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=So(t.x,this.x),n=So(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=wr();return Ei(a,a,[-e.x,-e.y]),Qy(a,a,[n,i]),Ei(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<l||u<i||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),x=Math.min(y,m);a<l||u<i?_>d&&(d=_,g<p?$.set(Qi,-g,0):$.set(Qi,p,0)):_<v&&(v=_,g<p?$.set(Ki,g,0):$.set(Ki,-p,0)),s<f||h<o?x>d&&(d=x,y<m?$.set(Qi,0,-y):$.set(Qi,0,m)):_<v&&(v=_,y<m?$.set(Ki,0,y):$.set(Ki,0,-m))}return e&&$.copy(e,c?Ki:Qi),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}on.x=ln.x=e.x,on.y=un.y=e.y,sn.x=un.x=e.x+e.width,sn.y=ln.y=e.y+e.height,on.transform(n),un.transform(n),sn.transform(n),ln.transform(n),t.x=So(on.x,sn.x,ln.x,un.x),t.y=So(on.y,sn.y,ln.y,un.y);var l=wo(on.x,sn.x,ln.x,un.x),u=wo(on.y,sn.y,ln.y,un.y);t.width=l-t.x,t.height=u-t.y},r}();const it=US;var jy="silent";function $S(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:YS}}function YS(){Ky(this.event)}var XS=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ue),ji=function(){function r(t,e){this.x=t,this.y=e}return r}(),ZS=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Kl=new it(0,0,0,0),Jy=function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new ji(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new XS,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new DS(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(ZS,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=tm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ji(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ji(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=$S(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new ji(e,n);if(Ac(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new it(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Kl.copy(c.getBoundingRect()),c.transform&&Kl.applyTransform(c.transform),Kl.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=n+p*Math.sin(y);if(Ac(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new FS);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new ji;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ue);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Jy.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=tm(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||As(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function qS(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?jy:!0}return!1}function Ac(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=qS(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==jy)){t.target=o;break}}}function tm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const KS=Jy;var em=32,Ji=7;function QS(r){for(var t=0;r>=em;)t|=r&1,r>>=1;return r+t}function Mc(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;jS(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function jS(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Ec(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Ql(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function jl(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function JS(r,t){var e=Ji,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],y=i[v+1];i[v]=g+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=jl(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=Ql(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,x=v;if(r[x++]=r[_++],--p===0){for(y=0;y<d;y++)r[x+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[x+y]=r[_+y];r[x+p]=o[m];return}for(var w=e,S,b,T;;){S=0,b=0,T=!1;do if(t(r[_],o[m])<0){if(r[x++]=r[_++],b++,S=0,--p===0){T=!0;break}}else if(r[x++]=o[m++],S++,b=0,--d===1){T=!0;break}while((S|b)<w);if(T)break;do{if(S=jl(r[_],o,m,d,0,t),S!==0){for(y=0;y<S;y++)r[x+y]=o[m+y];if(x+=S,m+=S,d-=S,d<=1){T=!0;break}}if(r[x++]=r[_++],--p===0){T=!0;break}if(b=Ql(o[m],r,_,p,0,t),b!==0){for(y=0;y<b;y++)r[x+y]=r[_+y];if(x+=b,_+=b,p-=b,p===0){T=!0;break}}if(r[x++]=o[m++],--d===1){T=!0;break}w--}while(S>=Ji||b>=Ji);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[x+y]=r[_+y];r[x+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[x+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,x=g+p-1,w=0,S=0;if(r[x--]=r[m--],--d===0){for(w=x-(p-1),y=0;y<p;y++)r[w+y]=o[y];return}if(p===1){for(x-=d,m-=d,S=x+1,w=m+1,y=d-1;y>=0;y--)r[S+y]=r[w+y];r[x]=o[_];return}for(var b=e;;){var T=0,A=0,M=!1;do if(t(o[_],r[m])<0){if(r[x--]=r[m--],T++,A=0,--d===0){M=!0;break}}else if(r[x--]=o[_--],A++,T=0,--p===1){M=!0;break}while((T|A)<b);if(M)break;do{if(T=d-jl(o[_],r,v,d,d-1,t),T!==0){for(x-=T,m-=T,d-=T,S=x+1,w=m+1,y=T-1;y>=0;y--)r[S+y]=r[w+y];if(d===0){M=!0;break}}if(r[x--]=o[_--],--p===1){M=!0;break}if(A=p-Ql(r[m],o,0,p,p-1,t),A!==0){for(x-=A,_-=A,p-=A,S=x+1,w=_+1,y=0;y<A;y++)r[S+y]=o[w+y];if(p<=1){M=!0;break}}if(r[x--]=r[m--],--d===0){M=!0;break}b--}while(T>=Ji||A>=Ji);if(M)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(x-=d,m-=d,S=x+1,w=m+1,y=d-1;y>=0;y--)r[S+y]=r[w+y];r[x]=o[_]}else{if(p===0)throw new Error;for(w=x-(p-1),y=0;y<p;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function vs(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<em){a=Mc(r,e,n,t),Ec(r,e,n,e+a,t);return}var o=JS(r,t),s=QS(i);do{if(a=Mc(r,e,n,t),a<s){var l=i;l>s&&(l=s),Ec(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var de=1,ma=2,yi=4,Lc=!1;function Jl(){Lc||(Lc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ic(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var tw=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ic}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,vs(n,Ic)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=de),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Jl(),f.z=0),isNaN(f.z2)&&(Jl(),f.z2=0),isNaN(f.zlevel)&&(Jl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=ht(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const ew=tw;var rm;rm=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Lf=rm;var cs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-cs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?cs.bounceIn(r*2)*.5:cs.bounceOut(r*2-1)*.5+.5}};const nm=cs;var bo=Math.pow,Zr=Math.sqrt,Ms=1e-8,im=1e-4,Pc=Zr(3),To=1/3,Qe=qn(),Te=qn(),bi=qn();function Hr(r){return r>-Ms&&r<Ms}function am(r){return r>Ms||r<-Ms}function Ot(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Rc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Es(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Hr(f)&&Hr(h))if(Hr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Hr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=Zr(g),_=f*s+1.5*o*(-h+m),x=f*s+1.5*o*(-h-m);_<0?_=-bo(-_,To):_=bo(_,To),x<0?x=-bo(-x,To):x=bo(x,To);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*Zr(f*f*f)),S=Math.acos(w)/3,b=Zr(f),T=Math.cos(S),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Pc*Math.sin(S)))/(3*o),A=(-s+b*(T-Pc*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function om(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Hr(o)){if(am(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Hr(f))i[0]=-a/(2*o);else if(f>0){var h=Zr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function qr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function sm(r,t,e,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,y;Qe[0]=l,Qe[1]=u;for(var m=0;m<1;m+=.05)Te[0]=Ot(r,e,i,o,m),Te[1]=Ot(t,n,a,s,m),p=Nn(Qe,Te),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<im);_++)d=h-c,g=h+c,Te[0]=Ot(r,e,i,o,d),Te[1]=Ot(t,n,a,s,d),p=Nn(Te,Qe),d>=0&&p<v?(h=d,v=p):(bi[0]=Ot(r,e,i,o,g),bi[1]=Ot(t,n,a,s,g),y=Nn(bi,Qe),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=Ot(r,e,i,o,h),f[1]=Ot(t,n,a,s,h)),Zr(v)}function rw(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,g=Ot(r,e,i,o,d),p=Ot(t,n,a,s,d),y=g-u,m=p-f;h+=Math.sqrt(y*y+m*m),u=g,f=p}return h}function Ut(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function Oc(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function nw(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Hr(a)){if(am(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Hr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Zr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function lm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ls(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function um(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Qe[0]=o,Qe[1]=s;for(var c=0;c<1;c+=.05){Te[0]=Ut(r,e,i,c),Te[1]=Ut(t,n,a,c);var v=Nn(Qe,Te);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<im);d++){var g=u-f,p=u+f;Te[0]=Ut(r,e,i,g),Te[1]=Ut(t,n,a,g);var v=Nn(Te,Qe);if(g>=0&&v<h)u=g,h=v;else{bi[0]=Ut(r,e,i,p),bi[1]=Ut(t,n,a,p);var y=Nn(bi,Qe);p<=1&&y<h?(u=p,h=y):f*=.5}}return l&&(l[0]=Ut(r,e,i,u),l[1]=Ut(t,n,a,u)),Zr(h)}function iw(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Ut(r,e,i,c),d=Ut(t,n,a,c),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var aw=/cubic-bezier\(([0-9,\.e ]+)\)/;function fm(r){var t=r&&aw.exec(r);if(t){var e=t[1].split(","),n=+ze(e[0]),i=+ze(e[1]),a=+ze(e[2]),o=+ze(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Es(0,n,a,1,l,s)&&Ot(0,i,o,1,s[0])}}}var ow=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Yt,this.ondestroy=t.ondestroy||Yt,this.onrestart=t.onrestart||Yt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=X(t)?t:nm[t]||fm(t)},r}();const sw=ow;var hm=function(){function r(t){this.value=t}return r}(),lw=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new hm(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.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--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),uw=function(){function r(t){this._list=new lw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new hm(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const so=uw;var Nc={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 He(r){return r=Math.round(r),r<0?0:r>255?255:r}function fw(r){return r=Math.round(r),r<0?0:r>360?360:r}function za(r){return r<0?0:r>1?1:r}function tu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?He(parseFloat(t)/100*255):He(parseInt(t,10))}function kn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?za(parseFloat(t)/100):za(parseFloat(t))}function eu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Wr(r,t,e){return r+(t-r)*e}function xe(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function If(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var vm=new so(20),Co=null;function ti(r,t){Co&&If(Co,t),Co=vm.put(r,Co||t.slice())}function pe(r,t){if(!!r){t=t||[];var e=vm.get(r);if(e)return If(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Nc)return If(t,Nc[n]),ti(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){xe(t,0,0,0,1);return}return xe(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ti(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xe(t,0,0,0,1);return}return xe(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ti(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xe(t,+u[0],+u[1],+u[2],1):xe(t,0,0,0,1);f=kn(u.pop());case"rgb":if(u.length>=3)return xe(t,tu(u[0]),tu(u[1]),tu(u[2]),u.length===3?f:kn(u[3])),ti(r,t),t;xe(t,0,0,0,1);return;case"hsla":if(u.length!==4){xe(t,0,0,0,1);return}return u[3]=kn(u[3]),Pf(u,t),ti(r,t),t;case"hsl":if(u.length!==3){xe(t,0,0,0,1);return}return Pf(u,t),ti(r,t),t;default:return}}xe(t,0,0,0,1)}}function Pf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=kn(r[1]),i=kn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],xe(t,He(eu(o,a,e+1/3)*255),He(eu(o,a,e)*255),He(eu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function hw(r){if(!!r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Rf(r,t){var e=pe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return tn(e,e.length===4?"rgba":"rgb")}}function vw(r){var t=pe(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function cm(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=He(Wr(o[0],s[0],l)),e[1]=He(Wr(o[1],s[1],l)),e[2]=He(Wr(o[2],s[2],l)),e[3]=za(Wr(o[3],s[3],l)),e}}var cw=cm;function qh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=pe(t[i]),s=pe(t[a]),l=n-i,u=tn([He(Wr(o[0],s[0],l)),He(Wr(o[1],s[1],l)),He(Wr(o[2],s[2],l)),za(Wr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var dw=qh;function pw(r,t,e,n){var i=pe(r);if(r)return i=hw(i),t!=null&&(i[0]=fw(t)),e!=null&&(i[1]=kn(e)),n!=null&&(i[2]=kn(n)),tn(Pf(i),"rgba")}function gw(r,t){var e=pe(r);if(e&&t!=null)return e[3]=za(t),tn(e,"rgba")}function tn(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ga(r,t){var e=pe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function yw(){return tn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const mw=Object.freeze(Object.defineProperty({__proto__:null,parse:pe,lift:Rf,toHex:vw,fastLerp:cm,fastMapToColor:cw,lerp:qh,mapToColor:dw,modifyHSL:pw,modifyAlpha:gw,stringify:tn,lum:Ga,random:yw},Symbol.toStringTag,{value:"Module"}));function _w(r){return r.type==="linear"}function xw(r){return r.type==="radial"}(function(){return tt.hasGlobalWindow&&X(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&$r("Base64 isn't natively supported in the current environment."),null}})();var Of=Array.prototype.slice;function dr(r,t,e){return(t-r)*e+r}function ru(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=dr(t[a],e[a],n);return r}function Sw(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=dr(t[o][s],e[o][s],n)}return r}function Do(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function kc(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function ww(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function bw(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:Of.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function ds(r){if(Xt(r)){var t=r.length;if(Xt(r[0])){for(var e=[],n=0;n<t;n++)e.push(Of.call(r[n]));return e}return Of.call(r)}return r}function ps(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Tw(r){return Xt(r&&r[0])?2:1}var Ao=0,gs=1,dm=2,_a=3,Nf=4,kf=5,Bc=6;function Vc(r){return r===Nf||r===kf}function Mo(r){return r===gs||r===dm}var ta=[0,0,0,0],Cw=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Bc,l=e;if(Xt(e)){var u=Tw(e);s=u,(u===1&&!ct(e[0])||u===2&&!ct(e[0][0]))&&(o=!0)}else if(ct(e)&&!Mi(e))s=Ao;else if(H(e))if(!isNaN(+e))s=Ao;else{var f=pe(e);f&&(l=f,s=_a)}else if(io(e)){var h=k({},l);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:pe(v.color)}}),_w(e)?s=Nf:xw(e)&&(s=kf),l=h}a===0?this.valType=s:(s!==this.valType||s===Bc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=X(n)?n:nm[n]||fm(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Mo(i),u=Vc(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?bw(c,v,i):u&&ww(c.colorStops,v.colorStops))}if(!s&&i!==kf&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===Ao?n[f].additiveValue=n[f].value-d:i===_a?n[f].additiveValue=Do([],n[f].value,d,-1):Mo(i)&&(n[f].additiveValue=i===gs?Do([],n[f].value,d,-1):kc([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===_a,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?ta:t[l];if((Mo(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Mo(a))a===gs?ru(m,v[i],d[i],y):Sw(m,v[i],d[i],y);else if(Vc(a)){var _=v[i],x=d[i],w=a===Nf;t[l]={type:w?"linear":"radial",x:dr(_.x,x.x,y),y:dr(_.y,x.y,y),colorStops:z(_.colorStops,function(b,T){var A=x.colorStops[T];return{offset:dr(b.offset,A.offset,y),color:ps(ru([],b.color,A.color,y))}}),global:x.global},w?(t[l].x2=dr(_.x2,x.x2,y),t[l].y2=dr(_.y2,x.y2,y)):t[l].r=dr(_.r,x.r,y)}else if(u)ru(m,v[i],d[i],y),n||(t[l]=ps(m));else{var S=dr(v[i],d[i],y);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Ao?t[n]=t[n]+i:e===_a?(pe(t[n],ta),Do(ta,ta,i,1),t[n]=ps(ta)):e===gs?Do(t[n],t[n],i,1):e===dm&&kc(t[n],t[n],i,1)},r}(),Dw=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){$r("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,mt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Cw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===_a&&u&&(u=ps(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,ds(u),i),this._trackKeys.push(s)}l.addKeyframe(t,ds(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new sw({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(e._target,v);var y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(!!this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(!!t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=ds(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||mt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Kh=Dw;function _i(){return new Date().getTime()}var Aw=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=_i()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Lf(n),!e._paused&&e.update())}Lf(n)},t.prototype.start=function(){this._running||(this._time=_i(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_i(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_i()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Kh(e,n.loop);return this.addAnimator(i),i},t}(Ue);const Mw=Aw;var Ew=300,nu=tt.domSupported,iu=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Fc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zc=!1;function Bf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Lw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function au(r){r&&(r.zrByTouch=!0)}function Iw(r,t){return Se(r.dom,new Pw(r,t),!0)}function pm(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Pw=function(){function r(t,e){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Be={mousedown:function(r){r=Se(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Se(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Se(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Se(this.dom,r);var t=r.toElement||r.relatedTarget;pm(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){zc=!0,r=Se(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){zc||(r=Se(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Se(this.dom,r),au(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Be.mousemove.call(this,r),Be.mousedown.call(this,r)},touchmove:function(r){r=Se(this.dom,r),au(r),this.handler.processGesture(r,"change"),Be.mousemove.call(this,r)},touchend:function(r){r=Se(this.dom,r),au(r),this.handler.processGesture(r,"end"),Be.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Ew&&Be.click.call(this,r)},pointerdown:function(r){Be.mousedown.call(this,r)},pointermove:function(r){Bf(r)||Be.mousemove.call(this,r)},pointerup:function(r){Be.mouseup.call(this,r)},pointerout:function(r){Bf(r)||Be.mouseout.call(this,r)}};D(["click","dblclick","contextmenu"],function(r){Be[r]=function(t){t=Se(this.dom,t),this.trigger(r,t)}});var Vf={pointermove:function(r){Bf(r)||Vf.mousemove.call(this,r)},pointerup:function(r){Vf.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Rw(r,t){var e=t.domHandlers;tt.pointerEventsSupported?D(iu.pointer,function(n){ys(t,n,function(i){e[n].call(r,i)})}):(tt.touchEventsSupported&&D(iu.touch,function(n){ys(t,n,function(i){e[n].call(r,i),Lw(t)})}),D(iu.mouse,function(n){ys(t,n,function(i){i=Xh(i),t.touching||e[n].call(r,i)})}))}function Ow(r,t){tt.pointerEventsSupported?D(Fc.pointer,e):tt.touchEventsSupported||D(Fc.mouse,e);function e(n){function i(a){a=Xh(a),pm(r,a.target)||(a=Iw(r,a),t.domHandlers[n].call(r,a))}ys(t,n,i,{capture:!0})}}function ys(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,BS(r.domTarget,t,e,n)}function ou(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&VS(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Gc=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Nw=function(r){N(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Gc(e,Be),nu&&(i._globalHandlerScope=new Gc(document,Vf)),Rw(i,i._localHandlerScope),i}return t.prototype.dispose=function(){ou(this._localHandlerScope),nu&&ou(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,nu&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Ow(this,n):ou(n)}},t}(Ue);const kw=Nw;var gm=1;tt.hasGlobalWindow&&(gm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Is=gm,Ff=.4,zf="#333",Gf="#ccc",Bw="#eee",Hc=oo,Wc=5e-5;function fn(r){return r>Wc||r<-Wc}var hn=[],ei=[],su=wr(),lu=Math.abs,Vw=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return fn(this.rotation)||fn(this.x)||fn(this.y)||fn(this.scaleX-1)||fn(this.scaleY-1)||fn(this.skewX)||fn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Hc(n),this.invTransform=null);return}n=n||wr(),e?this.getLocalTransform(n):Hc(n),t&&(e?Xr(n,t,n):Zh(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(hn);var n=hn[0]<0?-1:1,i=hn[1]<0?-1:1,a=((hn[0]-n)*e+n)/hn[0]||0,o=((hn[1]-i)*e+i)/hn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wr(),Gi(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Xr(ei,t.invTransform,e),e=ei);var n=this.originX,i=this.originY;(n||i)&&(su[4]=n,su[5]=i,Xr(ei,e,su),ei[4]-=n,ei[5]-=i,e=ei),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&te(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&te(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&lu(t[0]-1)>1e-10&&lu(t[3]-1)>1e-10?Math.sqrt(lu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Fw(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&zi(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Ha=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Fw(r,t){for(var e=0;e<Ha.length;e++){var n=Ha[e];r[n]=t[n]}}const lo=Vw;var Uc={};function ge(r,t){t=t||Hn;var e=Uc[t];e||(e=Uc[t]=new so(500));var n=e.get(r);return n==null&&(n=xr.measureText(r,t).width,e.put(r,n)),n}function $c(r,t,e,n){var i=ge(r,t),a=Qh(t),o=xa(0,i,e),s=mi(0,a,n),l=new it(o,s,i,a);return l}function fl(r,t,e,n){var i=((r||"")+"").split(`
15
+ `),a=i.length;if(a===1)return $c(i[0],t,e,n);for(var o=new it(0,0,0,0),s=0;s<i.length;s++){var l=$c(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function xa(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function mi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Qh(r){return ge("\u56FD",r)}function Kr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ps(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Kr(n[0],e.width),u+=Kr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var uu="__zr_normal__",fu=Ha.concat(["ignore"]),zw=ir(Ha,function(r,t){return r[t]=!0,r},{ignore:!1}),ri={},Gw=new it(0,0,0,0),jh=function(){function r(t){this.id=zh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=Gw;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ri,n,f):Ps(ri,n,f),a.x=ri.x,a.y=ri.y,o=ri.align,s=ri.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Kr(h[0],f.width),v=Kr(h[1],f.height)),u=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=de,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gf:zf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&pe(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,tn(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(W(t))for(var n=t,i=mt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==uu)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,fu)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(uu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===uu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){$r("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~de),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~de)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ht(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=ht(i,t),o=ht(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];k(e,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<fu.length;f++){var h=fu[f],c=a&&zw[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new lo,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=de;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==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),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(!!this.__zr){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),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!i){$r('Property "'+t+'" is not existed in element '+this.id);return}var a=new Kh(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=ht(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){hu(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){hu(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=hu(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=de;var e={};function n(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();ne(jh,Ue);ne(jh,lo);function hu(r,t,e,n,i){e=e||{};var a=[];ym(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function vu(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function Hw(r){return Xt(r[0])}function Ww(r,t,e){if(Xt(t[e]))if(Xt(r[e])||(r[e]=[]),ee(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),vu(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(Hw(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?vu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else vu(a,i,o);a.length=i.length}else r[e]=t[e]}function Uw(r,t){return r===t||Xt(r)&&Xt(t)&&$w(r,t)}function $w(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function ym(r,t,e,n,i,a,o,s){for(var l=mt(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!W(a),d=r.animators,g=[],p=0;p<l.length;p++){var y=l[p],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(W(m)&&!Xt(m)&&!io(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}ym(r,y,e[y],m,i,a&&a[y],o,s)}else g.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var x=0;x<d.length;x++){var w=d[x];if(w.targetName===t){var S=w.stopTracks(g);if(S){var b=ht(d,w);d.splice(b,1)}}}if(i.force||(g=_t(g,function(C){return!Uw(n[C],e[C])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,A=void 0,M=void 0;if(s){A={},c&&(T={});for(var x=0;x<_;x++){var y=g[x];A[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){M={};for(var x=0;x<_;x++){var y=g[x];M[y]=ds(e[y]),Ww(e,n,y)}}var w=new Kh(e,!1,!1,h?_t(d,function(E){return E.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(u==null?500:u,s?A:n,g).delay(f||0),r.addAnimator(w,t),o.push(w)}}const mm=jh;var _m=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),process.env.NODE_ENV!=="production"&&e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=ht(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=ht(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new it(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(it.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(mm);_m.prototype.type="group";const Dt=_m;/*!
16
+ * ZRender, a high performance 2d drawing library.
17
+ *
18
+ * Copyright (c) 2013, Baidu Inc.
19
+ * All rights reserved.
20
+ *
21
+ * LICENSE
22
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
23
+ */var Sa={},In={};function Yw(r){delete In[r]}function Xw(r){if(!r)return!1;if(typeof r=="string")return Ga(r,1)<Ff;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Ga(t[i].color,1);return e/=n,e<Ff}return!1}var Zw=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new ew,o=n.renderer||"canvas";if(Sa[o]||(o=mt(Sa)[0]),process.env.NODE_ENV!=="production"&&!Sa[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Sa[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!tt.node&&!tt.worker&&!l?new kw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?tt.touchEventsSupported:!!f,c=44,v;h&&(v=nt(n.pointerSize,c)),this.handler=new KS(a,s,u,s.root,v),this.animation=new Mw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Xw(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,n=_i();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=_i();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Dt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Yw(this.id)},r}();function Hf(r,t){var e=new Zw(zh(),r,t);return In[e.id]=e,e}function qw(r){r.dispose()}function Kw(){for(var r in In)In.hasOwnProperty(r)&&In[r].dispose();In={}}function Qw(r){return In[r]}function xm(r,t){Sa[r]=t}var jw="5.4.4";const Jw=Object.freeze(Object.defineProperty({__proto__:null,init:Hf,dispose:qw,disposeAll:Kw,getInstance:Qw,registerPainter:xm,version:jw},Symbol.toStringTag,{value:"Module"}));var Yc=1e-4,Sm=20;function tb(r){return r.replace(/^\s+|\s+$/g,"")}function Li(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function Q(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?tb(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Ct(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Sm),r=(+r).toFixed(t),e?r:+r}function wm(r){return r.sort(function(t,e){return t-e}),r}function Je(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Rs(r)}function Rs(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function bm(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function eb(r,t,e){if(!r[t])return 0;var n=Tm(r,e);return n[t]||0}function Tm(r,t){var e=ir(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=z(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=z(i,function(v){return Math.floor(v)}),s=ir(o,function(v,d){return v+d},0),l=z(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return z(o,function(v){return v/n})}function rb(r,t){var e=Math.max(Je(r),Je(t)),n=r+t;return e>Sm?n:Ct(n,e)}var nb=9007199254740991;function Jh(r){var t=Math.PI*2;return(r%t+t)%t}function Wa(r){return r>-Yc&&r<Yc}var ib=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Me(r){if(r instanceof Date)return r;if(H(r)){var t=ib.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Cm(r){return Math.pow(10,uo(r))}function uo(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function tv(r,t){var e=uo(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function ab(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function ob(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function br(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function ev(r){return!isNaN(br(r))}function Dm(){return Math.round(Math.random()*9)}function Am(r,t){return t===0?r:Am(t,r%t)}function Xc(r,t){return r==null?t:t==null?r:r*t/Am(r,t)}var sb="[ECharts] ",Zc={},lb=typeof console<"u"&&console.warn&&console.log;function hl(r,t,e){if(lb){if(e){if(Zc[t])return;Zc[t]=!0}console[r](sb+t)}}function ub(r,t){hl("log",r,t)}function kt(r,t){hl("warn",r,t)}function Zt(r,t){hl("error",r,t)}function We(r){process.env.NODE_ENV!=="production"&&hl("warn","DEPRECATED: "+r,!0)}function Pt(r,t,e){process.env.NODE_ENV!=="production"&&We((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function he(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Mi(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":X(i)?"function () { ... }":Hh(i)?i+"":null};e=z(r,function(i){if(H(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l==null?s:l})}catch{return"?"}else return"?"}).join(" ")}return e}function lt(r){throw new Error(r)}function qc(r,t,e){return(t-r)*e+r}var Mm="series\0",fb="\0_ec_\0";function wt(r){return r instanceof Array?r:r==null?[]:[r]}function Os(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Kc=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function fo(r){return W(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function hb(r){return W(r)&&!(r instanceof Array)}function vb(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=j();D(t,function(l,u){if(!W(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!jc(l.id)&&Qc(l.id),l.name!=null&&!jc(l.name)&&Qc(l.name))});var s=cb(r,o,e);return(n||i)&&db(s,r,o,t),n&&pb(s,t),n||i?gb(s,t,i):a&&yb(s,t),mb(s),s}function cb(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Ii(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function db(r,t,e,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=Ma(i.id),s=e.get(o);if(s!=null){var l=r[s];J(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function pb(r,t){D(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Ii(e)&&!Ii(a)&&Em("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function gb(r,t,e){D(t,function(n){if(!!n){for(var i,a=0;(i=r[a])&&(i.newOption||Ii(i.existing)||i.existing&&n.id!=null&&!Em("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function yb(r,t){D(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function mb(r){var t=j();D(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),D(r,function(e){var n=e.newOption;J(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),D(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(!!W(a)){if(o.name=a.name!=null?Ma(a.name):i?i.name:Mm+n,i)o.id=Ma(i.id);else if(a.id!=null)o.id=Ma(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Em(r,t,e){var n=rr(t[r],null),i=rr(e[r],null);return n!=null&&i!=null&&n===i}function Ma(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return rr(r,"")}function rr(r,t){return r==null?t:H(r)?r:ct(r)||Va(r)?r+"":t}function Qc(r){process.env.NODE_ENV!=="production"&&kt("`"+r+"` is invalid id or name. Must be a string or number.")}function jc(r){return Va(r)||ev(r)}function rv(r){var t=r.name;return!!(t&&t.indexOf(Mm))}function Ii(r){return r&&r.id!=null&&Ma(r.id).indexOf(fb)===0}function _b(r,t,e){D(r,function(n){var i=n.newOption;W(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=xb(t,i,n.existing,e))})}function xb(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function Wn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function xt(){var r="__ec_inner_"+Sb++;return function(t){return t[r]||(t[r]={})}}var Sb=Dm();function cu(r,t,e){var n=nv(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ho(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function nv(r,t){var e;if(H(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=j(),a={},o=!1;return D(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ht(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ue={useDefault:!0,enableAll:!1,enableNone:!1};function ho(r,t,e,n){n=n||ue;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(J(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(J(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Lm(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function wb(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function bb(r){return r==="auto"?tt.domSupported?"html":"richText":r||"html"}function Im(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ct(n)){var o=qc(e||0,n,i);return Ct(o,a?Math.max(Je(e||0),Je(n)):t)}else{if(H(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=qc(v,d,i);s[h]=Ct(o,a?Math.max(Je(v),Je(d)):t)}}return s}}var Tb=".",vn="___EC__COMPONENT__CONTAINER___",Pm="___EC__EXTENDED_CLASS___";function tr(r){var t={main:"",sub:""};if(r){var e=r.split(Tb);t.main=e[0]||"",t.sub=e[1]||""}return t}function Cb(r){J(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Db(r){return!!(r&&r[Pm])}function iv(r,t){r.$constructor=r,r.extend=function(e){process.env.NODE_ENV!=="production"&&D(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var n=this,i;return Ab(n)?i=function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Gh(i,this)),k(i.prototype,e),i[Pm]=!0,i.extend=this.extend,i.superCall=Lb,i.superApply=Ib,i.superClass=n,i}}function Ab(r){return X(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Rm(r,t){r.extend=t.extend}var Mb=Math.round(Math.random()*10);function Eb(r){var t=["__\0is_clz",Mb++].join("_");r.prototype[t]=!0,process.env.NODE_ENV!=="production"&&J(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function Lb(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function Ib(r,t,e){return this.superClass.prototype[t].apply(r,e)}function vl(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Cb(i),n.prototype.type=i;var a=tr(i);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==vn){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[vn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=tr(n),a=[],o=t[i.main];return o&&o[vn]?D(o,function(s,l){l!==vn&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=tr(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=tr(n),a=t[i.main];return a&&a[vn]};function e(n){var i=t[n.main];return(!i||!i[vn])&&(i=t[n.main]={},i[vn]=!0),i}}function Pi(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ht(i,l)>=0||a&&ht(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Pb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Rb=Pi(Pb),Ob=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Rb(this,t,e)},r}(),Wf=new so(50);function Nb(r){if(typeof r=="string"){var t=Wf.get(r);return t&&t.image}else return r}function Om(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Wf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!cl(t)&&a.pending.push(o)):(t=xr.loadImage(r,Jc,Jc),t.__zrImageSrc=r,Wf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Jc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function cl(r){return r&&r.width&&r.height}var du=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Nm(r,t,e,n,i){if(!t)return"";var a=(r+"").split(`
24
+ `);i=km(t,e,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=Bm(a[o],i);return a.join(`
25
+ `)}function km(r,t,e,n){n=n||{};var i=k({},n);i.font=t,e=nt(e,"..."),i.maxIterations=nt(n.maxIterations,2);var a=i.minChar=nt(n.minChar,0);i.cnCharWidth=ge("\u56FD",t);var o=i.ascCharWidth=ge("a",t);i.placeholder=nt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=ge(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Bm(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=ge(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?kb(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=ge(r,n)}return r===""&&(r=t.placeholder),r}function kb(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function Bb(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Qh(i),s=nt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?Vm(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
26
+ `):[];var c=h.length*s,v=nt(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=km(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=Bm(h[p],g);for(var y=v,m=0,p=0;p<h.length;p++)m=Math.max(ge(h[p],i),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var Vb=function(){function r(){}return r}(),td=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),Fb=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function zb(r,t){var e=new Fb;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=du.lastIndex=0,l;(l=du.exec(r))!=null;){var u=l.index;u>s&&pu(e,r.substring(s,u),t,o),pu(e,l[2],t,o,l[1]),s=du.lastIndex}s<r.length&&pu(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate";function p(O,B,G){O.width=B,O.lineHeight=G,h+=G,c=Math.max(c,B)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var S=m.tokens[w],b=S.styleName&&t.rich[S.styleName]||{},T=S.textPadding=b.padding,A=T?T[1]+T[3]:0,M=S.font=b.font||t.font;S.contentHeight=Qh(M);var C=nt(b.height,S.contentHeight);if(S.innerHeight=C,T&&(C+=T[0]+T[2]),S.height=C,S.lineHeight=Yr(b.lineHeight,t.lineHeight,C),S.align=b&&b.align||t.align,S.verticalAlign=b&&b.verticalAlign||"middle",g&&i!=null&&h+S.lineHeight>i){w>0?(m.tokens=m.tokens.slice(0,w),p(m,x,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var E=b.width,L=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,f.push(S),S.contentWidth=ge(S.text,M);else{if(L){var I=b.backgroundColor,P=I&&I.image;P&&(P=Nb(P),cl(P)&&(S.width=Math.max(S.width,P.width*C/P.height)))}var R=d&&n!=null?n-x:null;R!=null&&R<S.width?!L||R<A?(S.text="",S.width=S.contentWidth=0):(S.text=Nm(S.text,R-A,M,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=ge(S.text,M)):S.contentWidth=ge(S.text,M)}S.width+=A,x+=S.width,b&&(_=Math.max(_,S.lineHeight))}p(m,x,_)}e.outerWidth=e.width=nt(n,c),e.outerHeight=e.height=nt(i,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var S=f[y],V=S.percentWidth;S.width=parseInt(V,10)/100*e.width}return e}function pu(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Kr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
27
+ `),u=!0),n.accumWidth=d}else{var g=Vm(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
28
+ `);for(var p=0;p<f.length;p++){var y=f[p],m=new Vb;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:ge(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new td)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=m:(y||!x||a)&&_.push(m)}else s.push(new td([m]))}}function Gb(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Hb=ir(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Wb(r){return Gb(r)?!!Hb[r]:!0}function Vm(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
29
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=ge(c,t),d=n?!1:!Wb(c);if(a.length?f+v>e:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Uf="__zr_style_"+Math.round(Math.random()*10),Bn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Bn[Uf]=!0;var ed=["z","z2","invisible"],Ub=["invisible"],$b=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=mt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yb(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new it(0,0,0,0)),n?it.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new it(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:k(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=ma,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ma)},t.prototype.styleUpdated=function(){this.__dirty&=~ma},t.prototype.createStyle=function(e){return ao(Bn,e)},t.prototype.useStyle=function(e){e[Uf]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Uf]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ed)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=mt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=mt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?Ub:ed,c=0;c<g.length;c++){var v=g[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return k(e,n),e},t.prototype.getAnimationStyleProps=function(){return dl},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=de|ma}(),t}(mm),gu=new it(0,0,0,0),yu=new it(0,0,0,0);function Yb(r,t,e){return gu.copy(r.getBoundingRect()),r.transform&&gu.applyTransform(r.transform),yu.width=t,yu.height=e,!gu.intersect(yu)}const Hi=$b;var oe=Math.min,se=Math.max,mu=Math.sin,_u=Math.cos,cn=Math.PI*2,Eo=qn(),Lo=qn(),Io=qn();function Fm(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=oe(i,n[0]),a=se(a,n[0]),o=oe(o,n[1]),s=se(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function rd(r,t,e,n,i,a){i[0]=oe(r,e),i[1]=oe(t,n),a[0]=se(r,e),a[1]=se(t,n)}var nd=[],id=[];function Xb(r,t,e,n,i,a,o,s,l,u){var f=om,h=Ot,c=f(r,e,i,o,nd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,i,o,nd[v]);l[0]=oe(d,l[0]),u[0]=se(d,u[0])}c=f(t,n,a,s,id);for(var v=0;v<c;v++){var g=h(t,n,a,s,id[v]);l[1]=oe(g,l[1]),u[1]=se(g,u[1])}l[0]=oe(r,l[0]),u[0]=se(r,u[0]),l[0]=oe(o,l[0]),u[0]=se(o,u[0]),l[1]=oe(t,l[1]),u[1]=se(t,u[1]),l[1]=oe(s,l[1]),u[1]=se(s,u[1])}function Zb(r,t,e,n,i,a,o,s){var l=lm,u=Ut,f=se(oe(l(r,e,i),1),0),h=se(oe(l(t,n,a),1),0),c=u(r,e,i,f),v=u(t,n,a,h);o[0]=oe(r,i,c),o[1]=oe(t,a,v),s[0]=se(r,i,c),s[1]=se(t,a,v)}function qb(r,t,e,n,i,a,o,s,l){var u=zr,f=Gr,h=Math.abs(i-a);if(h%cn<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Eo[0]=_u(i)*e+r,Eo[1]=mu(i)*n+t,Lo[0]=_u(a)*e+r,Lo[1]=mu(a)*n+t,u(s,Eo,Lo),f(l,Eo,Lo),i=i%cn,i<0&&(i=i+cn),a=a%cn,a<0&&(a=a+cn),i>a&&!o?a+=cn:i<a&&o&&(i+=cn),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Io[0]=_u(v)*e+r,Io[1]=mu(v)*n+t,u(s,Io,s),f(l,Io,l))}var pt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dn=[],pn=[],Ye=[],Er=[],Xe=[],Ze=[],xu=Math.min,Su=Math.max,gn=Math.cos,yn=Math.sin,hr=Math.abs,$f=Math.PI,Br=$f*2,wu=typeof Float32Array<"u",ea=[];function bu(r){var t=Math.round(r/$f*1e8)/1e8;return t%2*$f}function Kb(r,t){var e=bu(r[0]);e<0&&(e+=Br);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Br?i=e+Br:t&&e-i>=Br?i=e-Br:!t&&e>i?i=e+(Br-bu(e-i)):t&&e<i&&(i=e-(Br-bu(i-e))),r[0]=e,r[1]=i}var Qb=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=hr(n/Is/t)||0,this._uy=hr(n/Is/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(pt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=hr(t-this._xi),i=hr(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(pt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(pt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(pt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),ea[0]=i,ea[1]=a,Kb(ea,o),i=ea[0],a=ea[1];var s=a-i;return this.addData(pt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=gn(a)*n+t,this._yi=yn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(pt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(pt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&wu&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();wu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,wu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ye[0]=Ye[1]=Xe[0]=Xe[1]=Number.MAX_VALUE,Er[0]=Er[1]=Ze[0]=Ze[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case pt.M:e=i=t[o++],n=a=t[o++],Xe[0]=i,Xe[1]=a,Ze[0]=i,Ze[1]=a;break;case pt.L:rd(e,n,t[o],t[o+1],Xe,Ze),e=t[o++],n=t[o++];break;case pt.C:Xb(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Xe,Ze),e=t[o++],n=t[o++];break;case pt.Q:Zb(e,n,t[o++],t[o++],t[o],t[o+1],Xe,Ze),e=t[o++],n=t[o++];break;case pt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];l&&(i=gn(v)*h+u,a=yn(v)*c+f),qb(u,f,h,c,v,d,g,Xe,Ze),e=gn(d)*h+u,n=yn(d)*c+f;break;case pt.R:i=e=t[o++],a=n=t[o++];var p=t[o++],y=t[o++];rd(i,a,i+p,a+y,Xe,Ze);break;case pt.Z:e=i,n=a;break}zr(Ye,Ye,Xe),Gr(Er,Er,Ze)}return o===0&&(Ye[0]=Ye[1]=Er[0]=Er[1]=0),new it(Ye[0],Ye[1],Er[0]-Ye[0],Er[1]-Ye[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,l=o);var g=-1;switch(v){case pt.M:a=s=t[c++],o=l=t[c++];break;case pt.L:{var p=t[c++],y=t[c++],m=p-a,_=y-o;(hr(m)>n||hr(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case pt.C:{var x=t[c++],w=t[c++],p=t[c++],y=t[c++],S=t[c++],b=t[c++];g=rw(a,o,x,w,p,y,S,b,10),a=S,o=b;break}case pt.Q:{var x=t[c++],w=t[c++],p=t[c++],y=t[c++];g=iw(a,o,x,w,p,y,10),a=p,o=y;break}case pt.A:var T=t[c++],A=t[c++],M=t[c++],C=t[c++],E=t[c++],L=t[c++],I=L+E;c+=1,t[c++],d&&(s=gn(E)*M+T,l=yn(E)*C+A),g=Su(M,C)*xu(Br,Math.abs(L)),a=gn(I)*M+T,o=yn(I)*C+A;break;case pt.R:{s=a=t[c++],l=o=t[c++];var P=t[c++],R=t[c++];g=P*2+R*2;break}case pt.Z:{var m=s-a,_=l-o;g=Math.sqrt(m*m+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,x,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m))return;t:for(var S=0;S<o;){var b=n[S++],T=S===1;switch(T&&(u=n[S],f=n[S+1],s=u,l=f),b!==pt.L&&_>0&&(t.lineTo(x,w),_=0),b){case pt.M:s=u=n[S++],l=f=n[S++],t.moveTo(u,f);break;case pt.L:{h=n[S++],c=n[S++];var A=hr(h-u),M=hr(c-f);if(A>i||M>a){if(v){var C=d[y++];if(p+C>m){var E=(m-p)/C;t.lineTo(u*(1-E)+h*E,f*(1-E)+c*E);break t}p+=C}t.lineTo(h,c),u=h,f=c,_=0}else{var L=A*A+M*M;L>_&&(x=h,w=c,_=L)}break}case pt.C:{var I=n[S++],P=n[S++],R=n[S++],V=n[S++],O=n[S++],B=n[S++];if(v){var C=d[y++];if(p+C>m){var E=(m-p)/C;qr(u,I,R,O,E,dn),qr(f,P,V,B,E,pn),t.bezierCurveTo(dn[1],pn[1],dn[2],pn[2],dn[3],pn[3]);break t}p+=C}t.bezierCurveTo(I,P,R,V,O,B),u=O,f=B;break}case pt.Q:{var I=n[S++],P=n[S++],R=n[S++],V=n[S++];if(v){var C=d[y++];if(p+C>m){var E=(m-p)/C;Ls(u,I,R,E,dn),Ls(f,P,V,E,pn),t.quadraticCurveTo(dn[1],pn[1],dn[2],pn[2]);break t}p+=C}t.quadraticCurveTo(I,P,R,V),u=R,f=V;break}case pt.A:var G=n[S++],U=n[S++],q=n[S++],et=n[S++],ft=n[S++],At=n[S++],yt=n[S++],zt=!n[S++],Gt=q>et?q:et,It=hr(q-et)>.001,St=ft+At,Z=!1;if(v){var C=d[y++];p+C>m&&(St=ft+At*(m-p)/C,Z=!0),p+=C}if(It&&t.ellipse?t.ellipse(G,U,q,et,yt,ft,St,zt):t.arc(G,U,Gt,ft,St,zt),Z)break t;T&&(s=gn(ft)*q+G,l=yn(ft)*et+U),u=gn(St)*q+G,f=yn(St)*et+U;break;case pt.R:s=u=n[S],l=f=n[S+1],h=n[S++],c=n[S++];var at=n[S++],$e=n[S++];if(v){var C=d[y++];if(p+C>m){var Nt=m-p;t.moveTo(h,c),t.lineTo(h+xu(Nt,at),c),Nt-=at,Nt>0&&t.lineTo(h+at,c+xu(Nt,$e)),Nt-=$e,Nt>0&&t.lineTo(h+Su(at-Nt,0),c+$e),Nt-=at,Nt>0&&t.lineTo(h,c+Su($e-Nt,0));break t}p+=C}t.rect(h,c,at,$e);break;case pt.Z:if(v){var C=d[y++];if(p+C>m){var E=(m-p)/C;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}p+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=pt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Tr=Qb;function ni(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function jb(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var c=sm(r,t,e,n,i,a,o,s,u,f,null);return c<=h/2}function Jb(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=um(r,t,e,n,i,a,s,l,null);return f<=u/2}var ad=Math.PI*2;function gr(r){return r%=ad,r<0&&(r+=ad),r}var ra=Math.PI*2;function tT(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%ra<1e-4)return!0;if(a){var h=n;n=gr(i),i=gr(h)}else n=gr(n),i=gr(i);n>i&&(i+=ra);var c=Math.atan2(l,s);return c<0&&(c+=ra),c>=n&&c<=i||c+ra>=n&&c+ra<=i}function pr(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var Lr=Tr.CMD,mn=Math.PI*2,eT=1e-4;function rT(r,t){return Math.abs(r-t)<eT}var Qt=[-1,-1,-1],be=[-1,-1];function nT(){var r=be[0];be[0]=be[1],be[1]=r}function iT(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Es(t,n,a,s,u,Qt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Qt[g],y=p===0||p===1?.5:1,m=Ot(r,e,i,o,p);m<l||(c<0&&(c=om(t,n,a,s,be),be[1]<be[0]&&c>1&&nT(),v=Ot(t,n,a,s,be[0]),c>1&&(d=Ot(t,n,a,s,be[1]))),c===2?p<be[0]?h+=v<t?y:-y:p<be[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<be[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function aT(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=nw(t,n,a,s,Qt);if(l===0)return 0;var u=lm(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Ut(t,n,a,u),c=0;c<l;c++){var v=Qt[c]===0||Qt[c]===1?.5:1,d=Ut(r,e,i,Qt[c]);d<o||(Qt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Qt[0]===0||Qt[0]===1?.5:1,d=Ut(r,e,i,Qt[0]);return d<o?0:a<t?v:-v}}function oT(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Qt[0]=-l,Qt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=mn-1e-4){n=0,i=mn;var f=a?1:-1;return o>=Qt[0]+r&&o<=Qt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=mn,i+=mn);for(var c=0,v=0;v<2;v++){var d=Qt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=mn+g),(g>=n&&g<=i||g+mn>=n&&g+mn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function zm(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===Lr.M&&d>1&&(e||(s+=pr(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),g){case Lr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Lr.L:if(e){if(ni(l,u,a[d],a[d+1],t,n,i))return!0}else s+=pr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Lr.C:if(e){if(jb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=iT(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Lr.Q:if(e){if(Jb(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=aT(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Lr.A:var y=a[d++],m=a[d++],_=a[d++],x=a[d++],w=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+y,v=Math.sin(w)*x+m,p?(f=c,h=v):s+=pr(l,u,c,v,n,i);var T=(n-y)*x/_+y;if(e){if(tT(y,m,x,w,w+S,b,t,T,i))return!0}else s+=oT(y,m,x,w,w+S,b,T,i);l=Math.cos(w+S)*_+y,u=Math.sin(w+S)*x+m;break;case Lr.R:f=l=a[d++],h=u=a[d++];var A=a[d++],M=a[d++];if(c=f+A,v=h+M,e){if(ni(f,h,c,h,t,n,i)||ni(c,h,c,v,t,n,i)||ni(c,v,f,v,t,n,i)||ni(f,v,f,h,t,n,i))return!0}else s+=pr(c,h,c,v,n,i),s+=pr(f,v,f,h,n,i);break;case Lr.Z:if(e){if(ni(l,u,f,h,t,n,i))return!0}else s+=pr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!rT(u,h)&&(s+=pr(l,u,f,h,n,i)||0),s!==0}function sT(r,t,e){return zm(r,0,!1,t,e)}function lT(r,t,e,n){return zm(r,t,!0,e,n)}var Gm=Y({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Bn),uT={style:Y({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dl.style)},Tu=Ha.concat(["invisible","culling","z","z2","zlevel","parent"]),fT=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Tu.length;++s)i[Tu[s]]=this[Tu[s]];i.__dirty|=de}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=mt(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(H(e)){var n=Ga(e,0);return n>.5?zf:n>.2?Bw:Gf}else if(e)return Gf}return zf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(H(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ga(e,0)<Ff;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~yi},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Tr(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&yi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),lT(s,l/u,e,n)))return!0}if(this.hasFill())return sT(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:k(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yi)},t.prototype.createStyle=function(e){return ao(Gm,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=k({},i.shape),k(u,n.shape)):(u=k({},a?this.shape:i.shape),k(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=k({},this.shape);for(var f={},h=mt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return uT},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){N(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return K(e.style)},o.prototype.getDefaultShape=function(){return K(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=de|ma|yi}(),t}(Hi);const ot=fT;var hT=Y({strokeFirst:!0,font:Hn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Gm),Hm=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ao(hT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=fl(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Hi);Hm.prototype.type="tspan";const Yf=Hm;var vT=Y({x:0,y:0},Bn),cT={style:Y({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dl.style)};function dT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Wm=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ao(vT,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=dT(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return cT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new it(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Hi);Wm.prototype.type="image";const en=Wm;function pT(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var xi=Math.round;function Um(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(xi(n*2)===xi(i*2)&&(r.x1=r.x2=Pn(n,s,!0)),xi(a*2)===xi(o*2)&&(r.y1=r.y2=Pn(a,s,!0))),r}}function $m(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Pn(n,s,!0),r.y=Pn(i,s,!0),r.width=Math.max(Pn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Pn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Pn(r,t,e){if(!t)return r;var n=xi(r*2);return(n+xi(t))%2===0?n/2:(n+(e?1:-1))/2}var gT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),yT={},Ym=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new gT},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=$m(yT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?pT(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ot);Ym.prototype.type="rect";const bt=Ym;var od={fill:"#000"},sd=2,mT={style:Y({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},dl.style)},Xm=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=od,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,bT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new it(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||od},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return k(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=mt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},k(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return mT},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Hn,i=e.padding,a=dd(e),o=Bb(a,e),s=Cu(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,g=e.x||0,p=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=g,x=mi(p,o.contentHeight,m);if(s||i){var w=xa(g,f,y),S=mi(p,u,m);s&&this._renderBackground(e,e,w,S,f,u)}x+=v/2,i&&(_=cd(g,y,i),m==="top"?x+=i[0]:m==="bottom"&&(x-=i[2]));for(var b=0,T=!1,A=vd("fill"in e?e.fill:(T=!0,d.fill)),M=hd("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(b=sd,d.stroke):null),C=e.textShadowBlur>0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<c.length;I++){var P=this._getOrCreateChild(Yf),R=P.createStyle();P.useStyle(R),R.text=c[I],R.x=_,R.y=x,y&&(R.textAlign=y),R.textBaseline="middle",R.opacity=e.opacity,R.strokeFirst=!0,C&&(R.shadowBlur=e.textShadowBlur||0,R.shadowColor=e.textShadowColor||"transparent",R.shadowOffsetX=e.textShadowOffsetX||0,R.shadowOffsetY=e.textShadowOffsetY||0),R.stroke=M,R.fill=A,M&&(R.lineWidth=e.lineWidth||b,R.lineDash=e.lineDash,R.lineDashOffset=e.lineDashOffset||0),R.font=n,ud(R,e),x+=v,E&&P.setBoundingRect(new it(xa(R.x,e.width,R.textAlign),mi(R.y,L,R.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=dd(e),i=zb(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign,d=xa(u,o,c),g=mi(f,s,v),p=d,y=g;l&&(p+=l[3],y+=l[0]);var m=p+a;Cu(e)&&this._renderBackground(e,e,d,g,o,s);for(var _=!!e.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],S=w.tokens,b=S.length,T=w.lineHeight,A=w.width,M=0,C=p,E=m,L=b-1,I=void 0;M<b&&(I=S[M],!I.align||I.align==="left");)this._placeToken(I,e,T,y,C,"left",_),A-=I.width,C+=I.width,M++;for(;L>=0&&(I=S[L],I.align==="right");)this._placeToken(I,e,T,y,E,"right",_),A-=I.width,E-=I.width,L--;for(C+=(a-(C-p)-(m-E)-A)/2;M<=L;)I=S[M],this._placeToken(I,e,T,y,C+I.width/2,"center",_),C+=I.width,M++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Cu(u);c&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=cd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Yf),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,x=vd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=hd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=sd,y.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,S&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Hn,p.opacity=Yr(u.opacity,n.opacity,1),ud(p,u),w&&(p.lineWidth=Yr(u.lineWidth,n.lineWidth,_),p.lineDash=nt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),x&&(p.fill=x);var b=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new it(xa(p.x,b,p.textAlign),mi(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||u&&f){g=this._getOrCreateChild(bt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=l||null,m.fillOpacity=nt(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(en),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(g||p).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=Yr(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return wT(e)&&(n=[e.fontStyle,e.fontWeight,ST(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&ze(n)||e.textFont||e.font},t}(Hi),_T={left:!0,right:1,center:1},xT={top:1,bottom:1,middle:1},ld=["fontStyle","fontWeight","fontSize","fontFamily"];function ST(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Bh+"px":r+"px"}function ud(r,t){for(var e=0;e<ld.length;e++){var n=ld[e],i=t[n];i!=null&&(r[n]=i)}}function wT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function bT(r){return fd(r),D(r.rich,fd),r}function fd(r){if(r){r.font=Xm.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||_T[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||xT[e]?e:"top";var n=r.padding;n&&(r.padding=Wh(r.padding))}}function hd(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function vd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function cd(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function dd(r){var t=r.text;return t!=null&&(t+=""),t}function Cu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Rt=Xm;var ut=xt(),TT=function(r,t,e,n){if(n){var i=ut(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},pd=1,gd={},Zm=xt(),av=xt(),ov=0,pl=1,gl=2,Ee=["emphasis","blur","select"],Ns=["normal","emphasis","blur","select"],CT=10,DT=9,Vn="highlight",ms="downplay",Ea="select",_s="unselect",La="toggleSelect";function ii(r){return r!=null&&r!=="none"}var yd=new so(100);function md(r){if(H(r)){var t=yd.get(r);return t||(t=Rf(r,-.1),yd.put(r,t)),t}else if(io(r)){var e=k({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:Rf(n.color,-.1)}}),e}return r}function yl(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function qm(r){yl(r,"emphasis",gl)}function Km(r){r.hoverState===gl&&yl(r,"normal",ov)}function sv(r){yl(r,"blur",pl)}function Qm(r){r.hoverState===pl&&yl(r,"normal",ov)}function AT(r){r.selected=!0}function MT(r){r.selected=!1}function _d(r,t,e){t(r,e)}function Dr(r,t,e){_d(r,t,e),r.isGroup&&r.traverse(function(n){_d(n,t,e)})}function xd(r,t){switch(t){case"emphasis":r.hoverState=gl;break;case"normal":r.hoverState=ov;break;case"blur":r.hoverState=pl;break;case"select":r.selected=!0}}function ET(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function LT(r,t,e,n){var i=e&&ht(e,"select")>=0,a=!1;if(r instanceof ot){var o=Zm(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ii(s)||ii(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=k({},n),u=k({},u),u.fill=s):!ii(u.fill)&&ii(s)?(a=!0,n=k({},n),u=k({},u),u.fill=md(s)):!ii(u.stroke)&&ii(l)&&(a||(n=k({},n),u=k({},u)),u.stroke=md(l)),n.style=u}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:CT)}return n}function IT(r,t,e){if(e&&e.z2==null){e=k({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:DT)}return e}function PT(r,t,e){var n=ht(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:ET(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Du(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return LT(this,r,t,e);if(r==="blur")return PT(this,r,e);if(r==="select")return IT(this,r,e)}return e}function RT(r){r.stateProxy=Du;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Du),e&&(e.stateProxy=Du)}function Sd(r,t){!e0(r,t)&&!r.__highByOuter&&Dr(r,qm)}function wd(r,t){!e0(r,t)&&!r.__highByOuter&&Dr(r,Km)}function ks(r,t){r.__highByOuter|=1<<(t||0),Dr(r,qm)}function Bs(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Dr(r,Km)}function OT(r){Dr(r,sv)}function jm(r){Dr(r,Qm)}function Jm(r){Dr(r,AT)}function t0(r){Dr(r,MT)}function e0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function r0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=av(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Qm(u)}),s&&e.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Xf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&jm(c)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||sv(p)}),Xt(t))a(u.getData(),t);else if(W(t))for(var d=mt(t),g=0;g<d.length;g++)a(u.getData(d[g]),t[d[g]]);l.push(u),av(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Zf(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(!!n){av(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){sv(a)})}}}function NT(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(!i){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+t.dataType);return}var a=Wn(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ut(o);Xf(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Xf(n,f,h,e)}}function lv(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Oi(s[u])&&Zt("param should be highDownDispatcher"),ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function kT(r,t,e){process.env.NODE_ENV!=="production"&&!Oi(r)&&Zt("param should be highDownDispatcher");var n=ut(r),i=lv(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&Zf(n.componentMainType,n.componentIndex,e),D(a,function(s){return Sd(s,t)})):(Xf(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&Zf(n.componentMainType,n.componentIndex,e),Sd(r,t))}function BT(r,t,e){process.env.NODE_ENV!=="production"&&!Oi(r)&&Zt("param should be highDownDispatcher"),r0(e);var n=ut(r),i=lv(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?D(i,function(a){return wd(a,t)}):wd(r,t)}function VT(r,t,e){if(!!qf(t)){var n=t.dataType,i=r.getData(n),a=Wn(i,t);F(a)||(a=[a]),r[t.type===La?"toggleSelect":t.type===Ea?"select":"unselect"](a,n)}}function bd(r){var t=r.getAllData();D(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?Jm(a):t0(a)})})}function FT(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();D(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Vs(r,t,e){n0(r,!0),Dr(r,RT),GT(r,t,e)}function zT(r){n0(r,!1)}function Ri(r,t,e,n){n?zT(r):Vs(r,t,e)}function GT(r,t,e){var n=ut(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Td=["emphasis","blur","select"],HT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ua(r,t,e,n){e=e||"itemStyle";for(var i=0;i<Td.length;i++){var a=Td[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[HT[e]]()}}function n0(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Oi(r){return!!(r&&r.__highDownDispatcher)}function WT(r){var t=gd[r];return t==null&&pd<=32&&(t=gd[r]=pd++),t}function qf(r){var t=r.type;return t===Ea||t===_s||t===La}function Cd(r){var t=r.type;return t===Vn||t===ms}function UT(r){var t=Zm(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ai=Tr.CMD,$T=[[],[],[]],Dd=Math.sqrt,YT=Math.atan2;function i0(r,t){if(!!t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=ai.M,h=ai.C,c=ai.L,v=ai.R,d=ai.A,g=ai.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var p=t[4],y=t[5],m=Dd(t[0]*t[0]+t[1]*t[1]),_=Dd(t[2]*t[2]+t[3]*t[3]),x=YT(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=p,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],te(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],te(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var w=$T[l];w[0]=e[o++],w[1]=e[o++],te(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var Au=Math.sqrt,Po=Math.sin,Ro=Math.cos,na=Math.PI;function Ad(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Kf(r,t){return(r[0]*t[0]+r[1]*t[1])/(Ad(r)*Ad(t))}function Md(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Kf(r,t))}function Ed(r,t,e,n,i,a,o,s,l,u,f){var h=l*(na/180),c=Ro(h)*(r-e)/2+Po(h)*(t-n)/2,v=-1*Po(h)*(r-e)/2+Ro(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Au(d),s*=Au(d));var g=(i===a?-1:1)*Au((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+Ro(h)*p-Po(h)*y,_=(t+n)/2+Po(h)*p+Ro(h)*y,x=Md([1,0],[(c-p)/o,(v-y)/s]),w=[(c-p)/o,(v-y)/s],S=[(-1*c-p)/o,(-1*v-y)/s],b=Md(w,S);if(Kf(w,S)<=-1&&(b=na),Kf(w,S)>=1&&(b=0),b<0){var T=Math.round(b/na*1e6)/1e6;b=na*2+T%2*na}f.addData(u,m,_,o,s,x,b,h,a)}var XT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ZT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qT(r){var t=new Tr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Tr.CMD,l=r.match(XT);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(ZT)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,T=e,A=n,M=void 0,C=void 0;switch(h){case"l":e+=v[p++],n+=v[p++],c=s.L,t.addData(c,e,n);break;case"L":e=v[p++],n=v[p++],c=s.L,t.addData(c,e,n);break;case"m":e+=v[p++],n+=v[p++],c=s.M,t.addData(c,e,n),i=e,a=n,h="l";break;case"M":e=v[p++],n=v[p++],c=s.M,t.addData(c,e,n),i=e,a=n,h="L";break;case"h":e+=v[p++],c=s.L,t.addData(c,e,n);break;case"H":e=v[p++],c=s.L,t.addData(c,e,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,e,n);break;case"V":n=v[p++],c=s.L,t.addData(c,e,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),e=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+e,v[p++]+n,v[p++]+e,v[p++]+n,v[p++]+e,v[p++]+n),e+=v[p-2],n+=v[p-1];break;case"S":y=e,m=n,M=t.len(),C=t.data,o===s.C&&(y+=e-C[M-4],m+=n-C[M-3]),c=s.C,T=v[p++],A=v[p++],e=v[p++],n=v[p++],t.addData(c,y,m,T,A,e,n);break;case"s":y=e,m=n,M=t.len(),C=t.data,o===s.C&&(y+=e-C[M-4],m+=n-C[M-3]),c=s.C,T=e+v[p++],A=n+v[p++],e+=v[p++],n+=v[p++],t.addData(c,y,m,T,A,e,n);break;case"Q":T=v[p++],A=v[p++],e=v[p++],n=v[p++],c=s.Q,t.addData(c,T,A,e,n);break;case"q":T=v[p++]+e,A=v[p++]+n,e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,T,A,e,n);break;case"T":y=e,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=e-C[M-4],m+=n-C[M-3]),e=v[p++],n=v[p++],c=s.Q,t.addData(c,y,m,e,n);break;case"t":y=e,m=n,M=t.len(),C=t.data,o===s.Q&&(y+=e-C[M-4],m+=n-C[M-3]),e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,y,m,e,n);break;case"A":_=v[p++],x=v[p++],w=v[p++],S=v[p++],b=v[p++],T=e,A=n,e=v[p++],n=v[p++],c=s.A,Ed(T,A,e,n,S,b,_,x,w,c,t);break;case"a":_=v[p++],x=v[p++],w=v[p++],S=v[p++],b=v[p++],T=e,A=n,e+=v[p++],n+=v[p++],c=s.A,Ed(T,A,e,n,S,b,_,x,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=i,n=a),o=c}return t.toStatic(),t}var a0=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(ot);function o0(r){return r.setData!=null}function s0(r,t){var e=qT(r),n=k({},t);return n.buildPath=function(i){if(o0(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){i0(e,i),this.dirtyShape()},n}function KT(r,t){return new a0(s0(r,t))}function QT(r,t){var e=s0(r,t),n=function(i){N(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(a0);return n}function jT(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new ot(t);return o.createPathProxy(),o.buildPath=function(s){if(o0(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function uv(r,t){t=t||{};var e=new ot;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?i0(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var JT=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),l0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new JT},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ot);l0.prototype.type="circle";const Qr=l0;var tC=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),u0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tC},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(ot);u0.prototype.type="ellipse";const fv=u0;var f0=Math.PI,Mu=f0*2,_n=Math.sin,oi=Math.cos,eC=Math.acos,Ht=Math.atan2,Ld=Math.abs,Ia=Math.sqrt,wa=Math.max,qe=Math.min,ke=1e-4;function rC(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<ke))return c=(f*(t-a)-h*(r-i))/c,[r+c*l,t+c*u]}function Oo(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Ia(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,g=n+h,p=(c+d)/2,y=(v+g)/2,m=d-c,_=g-v,x=m*m+_*_,w=i-a,S=c*g-d*v,b=(_<0?-1:1)*Ia(wa(0,w*w*x-S*S)),T=(S*_-m*b)/x,A=(-S*m-_*b)/x,M=(S*_+m*b)/x,C=(-S*m+_*b)/x,E=T-p,L=A-y,I=M-p,P=C-y;return E*E+L*L>I*I+P*P&&(T=M,A=C),{cx:T,cy:A,x0:-f,y0:-h,x1:T*(i/w-1),y1:A*(i/w-1)}}function nC(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function iC(r,t){var e,n=wa(t.r,0),i=wa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Ld(u-l),d=v>Mu&&v%Mu;if(d>ke&&(v=d),!(n>ke))r.moveTo(f,h);else if(v>Mu-ke)r.moveTo(f+n*oi(l),h+n*_n(l)),r.arc(f,h,n,l,u,!c),i>ke&&(r.moveTo(f+i*oi(u),h+i*_n(u)),r.arc(f,h,i,u,l,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,T=void 0,A=void 0,M=void 0,C=void 0,E=void 0,L=void 0,I=void 0,P=n*oi(l),R=n*_n(l),V=i*oi(u),O=i*_n(u),B=v>ke;if(B){var G=t.cornerRadius;G&&(e=nC(G),g=e[0],p=e[1],y=e[2],m=e[3]);var U=Ld(n-i)/2;if(_=qe(U,y),x=qe(U,m),w=qe(U,g),S=qe(U,p),A=b=wa(_,x),M=T=wa(w,S),(b>ke||T>ke)&&(C=n*oi(u),E=n*_n(u),L=i*oi(l),I=i*_n(l),v<f0)){var q=rC(P,R,L,I,C,E,V,O);if(q){var et=P-q[0],ft=R-q[1],At=C-q[0],yt=E-q[1],zt=1/_n(eC((et*At+ft*yt)/(Ia(et*et+ft*ft)*Ia(At*At+yt*yt)))/2),Gt=Ia(q[0]*q[0]+q[1]*q[1]);A=qe(b,(n-Gt)/(zt+1)),M=qe(T,(i-Gt)/(zt-1))}}}if(!B)r.moveTo(f+P,h+R);else if(A>ke){var It=qe(y,A),St=qe(m,A),Z=Oo(L,I,P,R,n,It,c),at=Oo(C,E,V,O,n,St,c);r.moveTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),A<b&&It===St?r.arc(f+Z.cx,h+Z.cy,A,Ht(Z.y0,Z.x0),Ht(at.y0,at.x0),!c):(It>0&&r.arc(f+Z.cx,h+Z.cy,It,Ht(Z.y0,Z.x0),Ht(Z.y1,Z.x1),!c),r.arc(f,h,n,Ht(Z.cy+Z.y1,Z.cx+Z.x1),Ht(at.cy+at.y1,at.cx+at.x1),!c),St>0&&r.arc(f+at.cx,h+at.cy,St,Ht(at.y1,at.x1),Ht(at.y0,at.x0),!c))}else r.moveTo(f+P,h+R),r.arc(f,h,n,l,u,!c);if(!(i>ke)||!B)r.lineTo(f+V,h+O);else if(M>ke){var It=qe(g,M),St=qe(p,M),Z=Oo(V,O,C,E,i,-St,c),at=Oo(P,R,L,I,i,-It,c);r.lineTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),M<T&&It===St?r.arc(f+Z.cx,h+Z.cy,M,Ht(Z.y0,Z.x0),Ht(at.y0,at.x0),!c):(St>0&&r.arc(f+Z.cx,h+Z.cy,St,Ht(Z.y0,Z.x0),Ht(Z.y1,Z.x1),!c),r.arc(f,h,i,Ht(Z.cy+Z.y1,Z.cx+Z.x1),Ht(at.cy+at.y1,at.cx+at.x1),c),It>0&&r.arc(f+at.cx,h+at.cy,It,Ht(at.y1,at.x1),Ht(at.y0,at.x0),!c))}else r.lineTo(f+V,h+O),r.arc(f,h,i,u,l,c)}r.closePath()}}}var aC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),h0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aC},t.prototype.buildPath=function(e,n){iC(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ot);h0.prototype.type="sector";const Le=h0;var oC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),v0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new oC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(ot);v0.prototype.type="ring";const vo=v0;function sC(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)zr(f,f,r[c]),Gr(h,h,r[c]);zr(f,f,n[0]),Gr(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){i.push($y(r[c]));continue}else l=r[c-1],u=r[c+1];Yy(a,u,l),hs(a,a,t);var g=Ds(d,l),p=Ds(d,u),y=g+p;y!==0&&(g/=y,p/=y),hs(o,a,-g),hs(s,a,p);var m=Df([],d,o),_=Df([],d,s);n&&(Gr(m,m,f),zr(m,m,h),Gr(_,_,f),zr(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function c0(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=sC(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var lC=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),d0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new lC},t.prototype.buildPath=function(e,n){c0(e,n,!0)},t}(ot);d0.prototype.type="polygon";const Kn=d0;var uC=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),p0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uC},t.prototype.buildPath=function(e,n){c0(e,n,!1)},t}(ot);p0.prototype.type="polyline";const rn=p0;var fC={},hC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),g0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hC},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=Um(fC,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(ot);g0.prototype.type="line";const Ae=g0;var ie=[],vC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function Id(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Rc:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Rc:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Oc:Ut)(r.x1,r.cpx1,r.x2,t),(e?Oc:Ut)(r.y1,r.cpy1,r.y2,t)]}var y0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vC},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(e.moveTo(i,a),f==null||h==null?(c<1&&(Ls(i,l,o,c,ie),l=ie[1],o=ie[2],Ls(a,u,s,c,ie),u=ie[1],s=ie[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(qr(i,l,f,o,c,ie),l=ie[1],f=ie[2],o=ie[3],qr(a,u,h,s,c,ie),u=ie[1],h=ie[2],s=ie[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return Id(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=Id(this.shape,e,!0);return Xy(n,n)},t}(ot);y0.prototype.type="bezier-curve";const hv=y0;var cC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),m0=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,l,!u)},t}(ot);m0.prototype.type="arc";const ml=m0;var dC=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ot.prototype.getBoundingRect.call(this)},t}(ot);const _0=dC;var pC=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const x0=pC;var gC=function(r){N(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(x0);const vv=gC;var yC=function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(x0);const S0=yC;var xn=[0,0],Sn=[0,0],No=new $,ko=new $,mC=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $;for(var n=0;n<2;n++)this._axes[n]=new $;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);$.sub(i[0],n[1],n[0]),$.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return No.set(1/0,1/0),ko.set(0,0),!this._intersectCheckOneSide(this,t,No,ko,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,No,ko,i,-1)&&(n=!1,i)||i||$.copy(e,n?No:ko),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,xn),this._getProjMinMaxOnAxis(l,e._corners,Sn),xn[1]<Sn[0]||xn[0]>Sn[1]){if(s=!1,a)return s;var f=Math.abs(Sn[0]-xn[1]),h=Math.abs(xn[0]-Sn[1]);Math.min(f,h)>i.len()&&(f<h?$.scale(i,u,-f*o):$.scale(i,u,h*o))}else if(n){var f=Math.abs(Sn[0]-xn[1]),h=Math.abs(xn[0]-Sn[1]);Math.min(f,h)<n.len()&&(f<h?$.scale(n,u,f*o):$.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Fs=mC;var _C=[],xC=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new it(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(_C)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Hi);const w0=xC;var b0=xt();function _l(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=nt(n.duration,200),f=nt(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),X(h)&&(h=h(e,i)),X(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function cv(r,t,e,n,i,a,o){var s=!1,l;X(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=_l(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Lt(r,t,e,n,i,a){cv("update",r,t,e,n,i,a)}function Bt(r,t,e,n,i,a){cv("enter",r,t,e,n,i,a)}function Ti(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function zs(r,t,e,n,i,a){Ti(r)||cv("leave",r,t,e,n,i,a)}function Pd(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),zs(r,{style:{opacity:0}},t,e,n)}function $a(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||Pd(i,t,e,n)}):Pd(r,t,e,n)}function xl(r){b0(r).oldStyle=r.style}function SC(r){return b0(r).oldStyle}var Gs=Math.max,Hs=Math.min,Qf={};function T0(r){return ot.extend(r)}var wC=QT;function C0(r,t){return wC(r,t)}function Pe(r,t){Qf[r]=t}function D0(r){if(Qf.hasOwnProperty(r))return Qf[r]}function Sl(r,t,e,n){var i=KT(r,t);return e&&(n==="center"&&(e=A0(e,i.getBoundingRect())),pv(i,e)),i}function dv(r,t,e){var n=new en({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(A0(t,a))}}});return n}function A0(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Ce=jT;function pv(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ya(r,t){return Um(r,r,{lineWidth:t}),r}function bC(r){return $m(r.shape,r.shape,r.style),r}var TC=Pn;function gv(r,t){for(var e=oo([]);r&&r!==t;)Xr(e,r.getLocalTransform(),e),r=r.parent;return e}function co(r,t,e){return t&&!Xt(t)&&(t=lo.getLocalTransform(t)),e&&(t=Gi([],t)),te([],r,t)}function M0(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=co(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Rd(r){return!r.isGroup}function CC(r){return r.shape!=null}function wl(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Rd(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return CC(o)&&(s.shape=k({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Rd(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,e,ut(o).dataIndex)}}})}function yv(r,t){return z(r,function(e){var n=e[0];n=Gs(n,t.x),n=Hs(n,t.x+t.width);var i=e[1];return i=Gs(i,t.y),i=Hs(i,t.y+t.height),[n,i]})}function E0(r,t){var e=Gs(r.x,t.x),n=Hs(r.x+r.width,t.x+t.width),i=Gs(r.y,t.y),a=Hs(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function bl(r,t,e){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Y(i,e),new en(n)):Sl(r.replace("path://",""),n,e,"center")}function DC(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(L0(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function L0(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=Eu(f,h,l,u);if(AC(c))return!1;var v=r-i,d=t-a,g=Eu(v,d,l,u)/c;if(g<0||g>1)return!1;var p=Eu(v,d,f,h)/c;return!(p<0||p>1)}function Eu(r,t,e,n){return r*n-e*t}function AC(r){return r<=1e-6&&r>=-1e-6}function mv(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=H(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&D(mt(l),function(f){ar(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Y({content:n,formatterParams:s},i)}}function Od(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Tl(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)Od(r[e],t);else Od(r,t)}Pe("circle",Qr);Pe("ellipse",fv);Pe("sector",Le);Pe("ring",vo);Pe("polygon",Kn);Pe("polyline",rn);Pe("rect",bt);Pe("line",Ae);Pe("bezierCurve",hv);Pe("arc",ml);const MC=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Lt,initProps:Bt,removeElement:zs,removeElementWithFadeOut:$a,isElementRemoved:Ti,extendShape:T0,extendPath:C0,registerShape:Pe,getShapeClass:D0,makePath:Sl,makeImage:dv,mergePath:Ce,resizePath:pv,subPixelOptimizeLine:Ya,subPixelOptimizeRect:bC,subPixelOptimize:TC,getTransform:gv,applyTransform:co,transformDirection:M0,groupTransition:wl,clipPointsByRect:yv,clipRectByRect:E0,createIcon:bl,linePolygonIntersect:DC,lineLineIntersect:L0,setTooltipConfig:mv,traverseElements:Tl,Group:Dt,Image:en,Text:Rt,Circle:Qr,Ellipse:fv,Sector:Le,Ring:vo,Polygon:Kn,Polyline:rn,Rect:bt,Line:Ae,BezierCurve:hv,Arc:ml,IncrementalDisplayable:w0,CompoundPath:_0,LinearGradient:vv,RadialGradient:S0,BoundingRect:it,OrientedBoundingRect:Fs,Point:$,Path:ot},Symbol.toStringTag,{value:"Module"}));var Cl={};function I0(r,t){for(var e=0;e<Ee.length;e++){var n=Ee[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function jf(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=X(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<Ee.length;u++){var f=Ee[u],h=t[f];l[f]=nt(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Wi(r,t,e,n){e=e||Cl;for(var i=r instanceof Rt,a=!1,o=0;o<Ns.length;o++){var s=t[Ns[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Rt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=jf(e,t),f=t.normal,h=!!f.getShallow("show"),c=or(f,n&&n.normal,e,!1,!i);c.text=u.normal,i||r.setTextConfig(Nd(f,e,!1));for(var o=0;o<Ee.length;o++){var v=Ee[o],s=t[v];if(s){var d=l.ensureState(v),g=!!nt(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=or(s,n&&n[v],e,!0,!i),d.style.text=u[v],!i){var p=r.ensureState(v);p.textConfig=Nd(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&($i(l).setLabelText=function(y){var m=jf(e,t,y);I0(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ui(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Ee.length;n++){var i=Ee[n];e[i]=r.getModel([i,t])}return e}function or(r,t,e,n,i){var a={};return EC(a,r,e,n,i),t&&k(a,t),a}function Nd(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=nt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function EC(r,t,e,n,i){e=e||Cl;var a=t.ecModel,o=a&&a.option.textStyle,s=LC(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Fd(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),Fd(r,t,o,e,n,i,!0,!1)}function LC(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Cl).rich;if(e){t=t||{};for(var n=mt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var kd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Bd=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Vd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Fd(r,t,e,n,i,a,o,s){e=!i&&e||Cl;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=nt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Pt("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(f==="inherit"||f==="auto")&&(process.env.NODE_ENV!=="production"&&f==="auto"&&Pt("color: 'auto'","color: 'inherit'"),l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=nt(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=nt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=nt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<kd.length;g++){var p=kd[g],y=nt(t.getShallow(p),e[p]);y!=null&&(r[p]=y)}for(var g=0;g<Bd.length;g++){var p=Bd[g],y=t.getShallow(p);y!=null&&(r[p]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var g=0;g<Vd.length;g++){var p=Vd[g],y=t.getShallow(p);y!=null&&(r[p]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&Pt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&Pt("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function IC(r,t){var e=t&&t.getModel("textStyle");return ze([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var $i=xt();function PC(r,t,e,n){if(!!r){var i=$i(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function RC(r,t,e,n,i){var a=$i(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=nt(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var h=Im(e,a.precision,s,l,f);a.interpolatedValue=f===1?null:h;var c=jf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);I0(r,c)}r.percent=0,(a.prevValue==null?Bt:Lt)(r,{percent:1},n,t,null,u)}var OC=["textStyle","color"],Lu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Iu=new Rt,NC=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(OC):null)},r.prototype.getFont=function(){return IC({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Lu.length;n++)e[Lu[n]]=this.getShallow(Lu[n]);return Iu.useStyle(e),Iu.update(),Iu.getBoundingRect()},r}();const kC=NC;var P0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BC=Pi(P0),VC=function(){function r(){}return r.prototype.getLineStyle=function(t){return BC(this,t)},r}(),R0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],FC=Pi(R0),zC=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return FC(this,t,e)},r}(),Qn=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){rt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(K(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(!!t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();iv(Qn);Eb(Qn);ne(Qn,VC);ne(Qn,zC);ne(Qn,Ob);ne(Qn,kC);const Et=Qn;var GC=Math.round(Math.random()*10);function Dl(r){return[r||"",GC++].join("_")}function HC(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=tr(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=tr(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function WC(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(D(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),D(d.successor,g?y:p)}D(c,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=he("Circular dependency may exists: ",c,a,o)),new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,p(m)}};function e(a){var o={},s=[];return D(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),D(h,function(c){ht(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);ht(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return D(a,function(l){ht(o,l)>=0&&s.push(l)}),s}}function O0(r,t){return rt(rt({},r,!0),t,!0)}const UC={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$C={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ws="ZH",_v="EN",Xa=_v,xs={},xv={},N0=tt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ws)>-1?Ws:Xa}():Xa;function Sv(r,t){r=r.toUpperCase(),xv[r]=new Et(t),xs[r]=t}function YC(r){if(H(r)){var t=xs[r.toUpperCase()]||{};return r===Ws||r===_v?K(t):rt(K(t),K(xs[Xa]),!1)}else return rt(K(r),K(xs[Xa]),!1)}function XC(r){return xv[r]}function ZC(){return xv[Xa]}Sv(_v,UC);Sv(Ws,$C);var wv=1e3,bv=wv*60,Pa=bv*60,De=Pa*24,zd=De*365,ba={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Bo="{yyyy}-{MM}-{dd}",Gd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bo,hour:Bo+" "+ba.hour,minute:Bo+" "+ba.minute,second:Bo+" "+ba.second,millisecond:ba.none},Pu=["year","month","day","hour","minute","second","millisecond"],k0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function jt(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ci(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function qC(r){return r===Ci(r)}function KC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function po(r,t,e,n){var i=Me(r),a=i[Tv(e)](),o=i[Di(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[Al(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Za(e)](),h=(f-1)%12+1,c=i[Ml(e)](),v=i[El(e)](),d=i[Ll(e)](),g=n instanceof Et?n:XC(n||N0)||ZC(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),x=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,jt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,jt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,jt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,jt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,jt(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,jt(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,jt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,jt(d,3)).replace(/{S}/g,d+"")}function QC(r,t,e,n,i){var a=null;if(H(e))a=e;else if(X(e))a=e(r.value,t,{level:r.level});else{var o=k({},ba);if(r.level>0)for(var s=0;s<Pu.length;++s)o[Pu[s]]="{primary|"+o[Pu[s]]+"}";var l=e?e.inherit===!1?e:Y(e,o):o,u=B0(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=k0.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return po(new Date(r.value),a,i,n)}function B0(r,t){var e=Me(r),n=e[Di(t)]()+1,i=e[Al(t)](),a=e[Za(t)](),o=e[Ml(t)](),s=e[El(t)](),l=e[Ll(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Hd(r,t,e){var n=ct(r)?Me(r):r;switch(t=t||B0(r,e),t){case"year":return n[Tv(e)]();case"half-year":return n[Di(e)]()>=6?1:0;case"quarter":return Math.floor((n[Di(e)]()+1)/4);case"month":return n[Di(e)]();case"day":return n[Al(e)]();case"half-day":return n[Za(e)]()/24;case"hour":return n[Za(e)]();case"minute":return n[Ml(e)]();case"second":return n[El(e)]();case"millisecond":return n[Ll(e)]()}}function Tv(r){return r?"getUTCFullYear":"getFullYear"}function Di(r){return r?"getUTCMonth":"getMonth"}function Al(r){return r?"getUTCDate":"getDate"}function Za(r){return r?"getUTCHours":"getHours"}function Ml(r){return r?"getUTCMinutes":"getMinutes"}function El(r){return r?"getUTCSeconds":"getSeconds"}function Ll(r){return r?"getUTCMilliseconds":"getMilliseconds"}function jC(r){return r?"setUTCFullYear":"setFullYear"}function V0(r){return r?"setUTCMonth":"setMonth"}function F0(r){return r?"setUTCDate":"setDate"}function z0(r){return r?"setUTCHours":"setHours"}function G0(r){return r?"setUTCMinutes":"setMinutes"}function H0(r){return r?"setUTCSeconds":"setSeconds"}function W0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function JC(r,t,e,n,i,a,o,s){var l=new Rt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Cv(r){if(!ev(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var go=Wh;function Jf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Me(r):r;if(isNaN(+l)){if(s)return"-"}else return po(l,n,e)}if(t==="ordinal")return Va(r)?i(r):ct(r)&&a(r)?r+"":"-";var u=br(r);return a(u)?Cv(u):Va(r)?i(r):typeof r=="boolean"?r+"":"-"}var Wd=["a","b","c","d","e","f","g"],Ru=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Av(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Wd[a];r=r.replace(Ru(o),Ru(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Ru(Wd[l],s),e?ce(u):u)}return r}function U0(r,t){var e=H(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ce(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ce(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function tD(r,t,e){process.env.NODE_ENV!=="production"&&Pt("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
30
+ yyyy`);var n=Me(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",jt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",jt(a%100+"",2)).replace("dd",jt(s,2)).replace("d",s).replace("hh",jt(l,2)).replace("h",l).replace("mm",jt(u,2)).replace("m",u).replace("ss",jt(f,2)).replace("s",f).replace("SSS",jt(h,3)),r}function eD(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Un(r,t){return t=t||"transparent",H(r)?r:W(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ud(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ss=D,rD=["left","right","top","bottom","width","height"],Vo=[["width","left","right"],["height","top","bottom"]];function Mv(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Ra=Mv;dt(Mv,"vertical");dt(Mv,"horizontal");function Cr(r,t,e){e=go(e||0);var n=t.width,i=t.height,a=Q(r.left,n),o=Q(r.top,i),s=Q(r.right,n),l=Q(r.bottom,i),u=Q(r.width,n),f=Q(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new it(a+e[3],o+e[0],u,f);return d.margin=e,d}function qa(r){var t=r.layoutMode||r.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function Ni(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(Vo[0],0),a=o(Vo[1],1);u(Vo[0],r,i),u(Vo[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Ss(f,function(_){d[_]=r[_]}),Ss(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&g++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){Ss(f,function(v){h[v]=c[v]})}}function Il(r){return nD({},r)}function nD(r,t){return t&&r&&Ss(rD,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var iD=xt(),Yi=function(r){N(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Dl("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=qa(this),a=i?Il(e):{},o=n.getTheme();rt(e,o.get(this.mainType)),rt(e,this.getDefaultOption()),i&&Ni(e,a,i)},t.prototype.mergeOption=function(e,n){rt(this.option,e,!0);var i=qa(this);i&&Ni(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Db(e))return e.defaultOption;var n=iD(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=rt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return ho(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Et);Rm(Yi,Et);vl(Yi);HC(Yi);WC(Yi,aD);function aD(r){var t=[];return D(Yi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return tr(e).main}),r!=="dataset"&&ht(t,"dataset")<=0&&t.unshift("dataset"),t}const st=Yi;var $0="";typeof navigator<"u"&&($0=navigator.platform||"");var si="rgba(0, 0, 0, 0.2)";const oD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:si,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:si,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:si,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:si,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:si,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:si,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$0.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var th=j(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Re="original",re="arrayRows",Oe="objectRows",lr="keyedColumns",_r="typedArray",Y0="unknown",nr="column",Xi="row",Vt={Must:1,Might:2,Not:3},X0=xt();function sD(r){X0(r).datasetMap=j()}function lD(r,t,e){var n={},i=Ev(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=X0(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),D(r,function(g,p){var y=W(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});D(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Z0(r,t,e){var n={},i=Ev(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Oe||a===lr)&&D(o,function(f,h){(W(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var g=K0(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Vt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Vt.Not)&&(f.n=v),y(f)&&c[f.n]!==Vt.Not)return f;p||(g===Vt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ev(r){var t=r.get("data",!0);if(!t)return ho(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ue).models[0]}function uD(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ho(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ue).models}function q0(r,t){return K0(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function K0(r,t,e,n,i,a){var o,s=5;if(ee(r))return Vt.Not;var l,u;if(n){var f=n[a];W(f)?(l=f.name,u=f.type):H(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===re){var h=r;if(e===Xi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=x(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=x(d[a]))!=null)return o}}else if(t===Oe){var g=r;if(!l)return Vt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=x(p[l]))!=null)return o}}else if(t===lr){var y=r;if(!l)return Vt.Not;var c=y[l];if(!c||ee(c))return Vt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=x(c[v]))!=null)return o}else if(t===Re)for(var m=r,v=0;v<m.length&&v<s;v++){var p=m[v],_=fo(p);if(!F(_))return Vt.Not;if((o=x(_[a]))!=null)return o}function x(w){var S=H(w);if(w!=null&&isFinite(w)&&w!=="")return S?Vt.Might:Vt.Not;if(S&&w!=="-")return Vt.Must}return Vt.Not}var fD=j();function hD(r,t,e){var n=fD.get(t);if(!n)return e;var i=n(r);if(!i)return e;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)J(Ii(i[a]));return e.concat(i)}var $d=xt();xt();var Lv=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=wt(this.get("color",!0)),a=this.get("colorLayer",!0);return cD(this,$d,i,a,t,e,n)},r.prototype.clearColorPalette=function(){dD(this,$d)},r}();function vD(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function cD(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:vD(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function dD(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Fo,ia,Yd,Ou="\0_ec_inner",Xd=1,pD={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},gD={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Us={};function yD(r){D(r,function(t,e){if(!st.hasClass(e)){var n=pD[e];n&&!Us[n]&&(Zt("Component "+e+` is used but not imported.
31
+ import { `+n+` } from 'echarts/components';
32
+ echarts.use([`+n+"]);"),Us[n]=!0)}})}var Q0=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Et(a),this._locale=new Et(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){process.env.NODE_ENV!=="production"&&(J(e!=null,"option is null/undefined"),J(e[Ou]!==Xd,"please use chart.getOption()"));var a=Kd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Kd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");process.env.NODE_ENV!=="production"&&yD(o),!this.option||e==="recreate"?Yd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=j(),u=n&&n.replaceMergeMainTypeMap;sD(this),D(e,function(h,c){h!=null&&(st.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?K(h):rt(i[c],h,!0))}),u&&u.each(function(h,c){st.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(h){var c=hD(this,h,wt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=vb(v,c,d);_b(g,h,st),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_,x;D(g,function(w,S){var b=w.existing,T=w.newOption;if(!T)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var A=h==="series",M=st.getClass(h,w.keyInfo.subType,!A);if(!M){if(process.env.NODE_ENV!=="production"){var C=w.keyInfo.subType,E=gD[C];Us[C]||(Us[C]=!0,Zt(E?"Series "+C+` is used but not imported.
33
+ import { `+E+` } from 'echarts/charts';
34
+ echarts.use([`+E+"]);":"Unknown series "+C))}return}if(h==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(x||(kt("Currently only one tooltip component is allowed."),x=!0));return}_=!0}if(b&&b.constructor===M)b.name=w.keyInfo.name,b.mergeOption(T,this),b.optionUpdated(T,!1);else{var L=k({componentIndex:S},w.keyInfo);b=new M(T,this,this,L),k(b,L),w.brandNew&&(b.__requireNewView=!0),b.init(T,this,this),b.optionUpdated(null,!0)}}b?(p.push(b.option),y.push(b),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&Fo(this)}this._seriesIndices||Fo(this)},t.prototype.getOption=function(){var e=K(this.option);return D(e,function(n,i){if(st.hasClass(i)){for(var a=wt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ii(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Ou],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],D(wt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Zd("id",a,s):o!=null?l=Zd("name",o,s):l=_t(s,function(u){return!!u}),qd(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):_t(this._componentsMap.get(i),function(u){return!!u});return l(qd(o,e));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?_t(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(X(e)){var o=n,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=H(e)?a.get(e):W(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=rr(e,null);return _t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return _t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return _t(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){ia(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){D(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){ia(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return D(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return ia(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){ia(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=j(i)},t.prototype.restoreData=function(e){Fo(this);var n=this._componentsMap,i=[];n.each(function(a,o){st.hasClass(o)&&i.push(o)}),st.topologicalTravel(i,st.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!mD(o,e))&&o.restoreData()})})},t.internalField=function(){Fo=function(e){var n=e._seriesIndices=[];D(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=j(n)},ia=function(e){if(process.env.NODE_ENV!=="production"&&!e._seriesIndices)throw new Error("Option should contains series.")},Yd=function(e,n){e.option={},e.option[Ou]=Xd,e._componentsMap=j({series:[]}),e._componentsCount=j();var i=n.aria;W(i)&&i.enabled==null&&(i.enabled=!0),_D(n,e._theme.option),rt(n,oD,!1),e._mergeOption(n,null)}}(),t}(Et);function mD(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function _D(r,t){var e=r.color&&!r.colorLayer;D(t,function(n,i){i==="colorLayer"&&e||st.hasClass(i)||(typeof n=="object"?r[i]=r[i]?rt(r[i],n,!1):K(n):r[i]==null&&(r[i]=n))})}function Zd(r,t,e){if(F(t)){var n=j();return D(t,function(a){if(a!=null){var o=rr(a,null);o!=null&&n.set(a,!0)}}),_t(e,function(a){return a&&n.get(a[r])})}else{var i=rr(t,null);return _t(e,function(a){return a&&i!=null&&a[r]===i})}}function qd(r,t){return t.hasOwnProperty("subType")?_t(r,function(e){return e&&e.subType===t.subType}):r}function Kd(r){var t=j();return r&&D(wt(r.replaceMerge),function(e){process.env.NODE_ENV!=="production"&&J(st.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ne(Q0,Lv);const j0=Q0;var xD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],SD=function(){function r(t){D(xD,function(e){this[e]=vt(t[e],t)},this)}return r}();const J0=SD;var Nu={},wD=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];D(Nu,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){D(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Nu[t]=e},r.get=function(t){return Nu[t]},r}();const Pl=wD;var bD=/^(min|max)?(.+)$/,TD=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(D(wt(t.series),function(o){o&&o.data&&ee(o.data)&&Fa(o.data)}),D(wt(t.dataset),function(o){o&&o.source&&ee(o.source)&&Fa(o.source)})),t=K(t);var i=this._optionBackup,a=CD(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],K(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=K(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)DD(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!MD(o,this._currentMediaIndices)&&(s=z(o,function(f){return K(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function CD(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&(F(u)?D(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&W(v.query)&&W(v.query.option)&&Zt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&Zt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),D(l,function(v){return c(v)}),D(n,function(v){return c(v.option)});function c(v){D(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function DD(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return D(r,function(a,o){var s=o.match(bD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();AD(n[u],a,l)||(i=!1)}}),i}function AD(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function MD(r,t){return r.join(",")===t.join(",")}const ED=TD;var ye=D,Ka=W,Qd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ku(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Qd.length;e<n;e++){var i=Qd[e],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&Pt("itemStyle.normal."+i,i),r[i]=r[i]||{},r[i].normal?rt(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&Pt("itemStyle.emphasis."+i,"emphasis."+i),r[i]=r[i]||{},r[i].emphasis?rt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function $t(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&We("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,Y(r[t],n)):r[t]=n),i&&(process.env.NODE_ENV!=="production"&&We(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function Ta(r){$t(r,"itemStyle"),$t(r,"lineStyle"),$t(r,"areaStyle"),$t(r,"label"),$t(r,"labelLine"),$t(r,"upperLabel"),$t(r,"edgeLabel")}function Mt(r,t){var e=Ka(r)&&r[t],n=Ka(e)&&e.textStyle;if(n){process.env.NODE_ENV!=="production"&&We("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=Kc.length;i<a;i++){var o=Kc[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}}function we(r){r&&(Ta(r),Mt(r,"label"),r.emphasis&&Mt(r.emphasis,"label"))}function LD(r){if(!!Ka(r)){ku(r),Ta(r),Mt(r,"label"),Mt(r,"upperLabel"),Mt(r,"edgeLabel"),r.emphasis&&(Mt(r.emphasis,"label"),Mt(r.emphasis,"upperLabel"),Mt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(ku(t),we(t));var e=r.markLine;e&&(ku(e),we(e));var n=r.markArea;n&&we(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!ee(a))for(var o=0;o<a.length;o++)we(a[o]);D(r.categories,function(u){Ta(u)})}if(i&&!ee(i))for(var o=0;o<i.length;o++)we(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)we(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)F(l[o])?(we(l[o][0]),we(l[o][1])):we(l[o]);r.type==="gauge"?(Mt(r,"axisLabel"),Mt(r,"title"),Mt(r,"detail")):r.type==="treemap"?($t(r.breadcrumb,"itemStyle"),D(r.levels,function(u){Ta(u)})):r.type==="tree"&&Ta(r.leaves)}}function vr(r){return F(r)?r:r?[r]:[]}function jd(r){return(F(r)?r[0]:r)||{}}function ID(r,t){ye(vr(r.series),function(n){Ka(n)&&LD(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ye(e,function(n){ye(vr(r[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),ye(vr(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),ye(vr(r.calendar),function(n){$t(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),ye(vr(r.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&We("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&We("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&ye(n.indicator,function(i){i.text&&Pt("text","name","radar.indicator")})}),ye(vr(r.geo),function(n){Ka(n)&&(we(n),ye(vr(n.regions),function(i){we(i)}))}),ye(vr(r.timeline),function(n){we(n),$t(n,"label"),$t(n,"itemStyle"),$t(n,"controlStyle",!0);var i=n.data;F(i)&&D(i,function(a){W(a)&&($t(a,"label"),$t(a,"itemStyle"))})}),ye(vr(r.toolbox),function(n){$t(n,"iconStyle"),ye(n.feature,function(i){$t(i,"iconStyle")})}),Mt(jd(r.axisPointer),"label"),Mt(jd(r.tooltip).axisPointer,"label")}function PD(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function RD(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function Jd(r){r&&D(OD,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var OD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ND=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function aa(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Bu.length;e++){var n=Bu[e][1],i=Bu[e][0];t[n]!=null&&(t[i]=t[n],process.env.NODE_ENV!=="production"&&Pt(n,i))}}function tp(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Pt("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function ep(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&Pt("downplay","blur","sunburst"))}function kD(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Pt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function t_(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&t_(r[e].children,t)}function e_(r,t){ID(r,t),r.series=wt(r.series),D(r.series,function(e){if(!!W(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!=="production"&&Pt("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!=="production"&&Pt("clockWise","clockwise")),tp(e.label);var i=e.data;if(i&&!ee(i))for(var a=0;a<i.length;a++)tp(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Pt("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=PD(e,"pointer.color");o!=null&&RD(e,"itemStyle.color",o)}else if(n==="bar"){aa(e),aa(e.backgroundStyle),aa(e.emphasis);var i=e.data;if(i&&!ee(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(aa(i[a]),aa(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Pt("highlightPolicy","emphasis.focus","sunburst"))),ep(e),t_(e.data,ep)}else n==="graph"||n==="sankey"?kD(e):n==="map"&&(e.mapType&&!e.map&&(process.env.NODE_ENV!=="production"&&Pt("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!=="production"&&We("`mapLocation` is not used anymore."),Y(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Pt("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),Jd(e)}}),r.dataRange&&(r.visualMap=r.dataRange),D(ND,function(e){var n=r[e];n&&(F(n)||(n=[n]),D(n,function(i){Jd(i)}))})}function BD(r){var t=j();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(VD)}function VD(r){D(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=e-1;p>=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=rb(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Rl=function(){function r(t){this.data=t.data||(t.sourceFormat===lr?{}:[]),this.sourceFormat=t.sourceFormat||Y0,this.seriesLayoutBy=t.seriesLayoutBy||nr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&q0(this,n)===Vt.Must&&(i.type="ordinal")}}return r}();function Iv(r){return r instanceof Rl}function eh(r,t,e){e=e||r_(r);var n=t.seriesLayoutBy,i=zD(r,e,n,t.sourceHeader,t.dimensions),a=new Rl({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:K(t)});return a}function Pv(r){return new Rl({data:r,sourceFormat:ee(r)?_r:Re})}function FD(r){return new Rl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:K(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function r_(r){var t=Y0;if(ee(r))t=_r;else if(F(r)){r.length===0&&(t=re);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(F(i)){t=re;break}else if(W(i)){t=Oe;break}}}}else if(W(r)){for(var a in r)if(ar(r,a)&&Xt(r[a])){t=lr;break}}return t}function zD(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:rp(i),startIndex:o,dimensionsDetectedCount:a};if(t===re){var s=r;n==="auto"||n==null?np(function(u){u!=null&&u!=="-"&&(H(u)?o==null&&(o=1):o=0)},e,s,10):o=ct(n)?n:n?1:0,!i&&o===1&&(i=[],np(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===Xi?s.length:s[0]?s[0].length:null}else if(t===Oe)i||(i=GD(r));else if(t===lr)i||(i=[],D(r,function(u,f){i.push(f)}));else if(t===Re){var l=fo(r[0]);a=F(l)&&l.length||1}else t===_r&&process.env.NODE_ENV!=="production"&&J(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:rp(i),dimensionsDetectedCount:a}}function GD(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return mt(e)}function rp(r){if(!!r){var t=j();return z(r,function(e,n){e=W(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function np(r,t,e,n){if(t===Xi)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function n_(r){var t=r.sourceFormat;return t===Oe||t===lr}var wn,bn,Tn,ip,ap,i_=function(){function r(t,e){var n=Iv(t)?t:Pv(t);this._source=n;var i=this._data=n.data;if(n.sourceFormat===_r){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=i}ap(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;ap=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=ip[Rv(u,f)];if(process.env.NODE_ENV!=="production"&&J(v,"Invalide sourceFormat: "+u),k(o,v),u===_r)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=a_(u,f);o.getItem=vt(d,null,s,h,c);var g=o_(u,f);o.count=vt(g,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,y=l[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};ip=(t={},t[re+"_"+nr]={pure:!0,appendData:a},t[re+"_"+Xi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oe]={pure:!0,appendData:a},t[lr]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Re]={appendData:a},t[_r]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&J(ee(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),op=function(r,t,e,n){return r[n]},HD=(wn={},wn[re+"_"+nr]=function(r,t,e,n){return r[n+t]},wn[re+"_"+Xi]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},wn[Oe]=op,wn[lr]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=r[s];a[o]=l?l[n]:null}return a},wn[Re]=op,wn);function a_(r,t){var e=HD[Rv(r,t)];return process.env.NODE_ENV!=="production"&&J(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var sp=function(r,t,e){return r.length},WD=(bn={},bn[re+"_"+nr]=function(r,t,e){return Math.max(0,r.length-t)},bn[re+"_"+Xi]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},bn[Oe]=sp,bn[lr]=function(r,t,e){var n=e[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var i=r[n];return i?i.length:0},bn[Re]=sp,bn);function o_(r,t){var e=WD[Rv(r,t)];return process.env.NODE_ENV!=="production"&&J(e,'Do not support count on "'+r+'", "'+t+'".'),e}var Vu=function(r,t,e){return r[t]},UD=(Tn={},Tn[re]=Vu,Tn[Oe]=function(r,t,e){return r[e]},Tn[lr]=Vu,Tn[Re]=function(r,t,e){var n=fo(r);return n instanceof Array?n[t]:n},Tn[_r]=Vu,Tn);function s_(r){var t=UD[r];return process.env.NODE_ENV!=="production"&&J(t,'Do not support get value on "'+r+'".'),t}function Rv(r,t){return r===re?r+"_"+t:r}function ki(r,t,e){if(!!r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return s_(a)(n,o,s)}else{var l=n;return a===Re&&(l=fo(n)),l}}}}var $D=/\{@(.+?)\}/g,YD=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&F(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(X(a))return l.status=e,l.dimensionIndex=i,a(l);if(H(a)){var f=Av(a,l);return f.replace($D,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&Zt("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var g=ki(s,t,d);if(o&&F(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return ki(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function lp(r){var t,e;return W(r)?r.type?e=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+he(r)):t=r,{text:t,frag:e}}function Oa(r){return new XD(r)}var XD=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?(process.env.NODE_ENV!=="production"&&J(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(process.env.NODE_ENV!=="production"&&J(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var g=this._progress;if(F(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&J(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){up.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:up.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&J(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),up=function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function ws(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ct(r)&&r!=null&&r!=="-"&&(r=+Me(r)),r==null||r===""?NaN:+r)}var ZD=j({number:function(r){return parseFloat(r)},time:function(r){return+Me(r)},trim:function(r){return H(r)?ze(r):r}});function l_(r){return ZD.get(r)}var u_={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},qD=function(){function r(t,e){if(!ct(e)){var n="";process.env.NODE_ENV!=="production"&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),lt(n)}this._opFn=u_[t],this._rvalFloat=br(e)}return r.prototype.evaluate=function(t){return ct(t)?this._opFn(t,this._rvalFloat):this._opFn(br(t),this._rvalFloat)},r}(),f_=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ct(t)?t:br(t),i=ct(e)?e:br(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=H(t),l=H(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),KD=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=br(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=br(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function QD(r,t){return r==="eq"||r==="ne"?new KD(r==="eq",t):ar(u_,r)?new qD(r,t):null}var jD=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ws(t,e)},r}();function JD(r,t){var e=new jD,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==nr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),lt(o));var s=[],l={},u=r.dimensionsDefine;if(u)D(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";ar(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),lt(_)),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=a_(i,nr);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(n,a,s,g)},e.getRawData=vt(tA,null,r)),e.cloneRawData=vt(eA,null,r);var c=o_(i,nr);e.count=vt(c,null,n,a,s);var v=s_(i);e.retrieveValue=function(g,p){var y=h(n,a,s,g);return d(y,p)};var d=e.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return e.getDimensionInfo=vt(rA,null,s,l),e.cloneAllDimensionInfo=vt(nA,null,s),e}function tA(r){var t=r.sourceFormat;if(!Ov(t)){var e="";process.env.NODE_ENV!=="production"&&(e="`getRawData` is not supported in source format "+t),lt(e)}return r.data}function eA(r){var t=r.sourceFormat,e=r.data;if(!Ov(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),lt(n)}if(t===re){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===Oe){for(var i=[],a=0,o=e.length;a<o;a++)i.push(k({},e[a]));return i}}function rA(r,t,e){if(e!=null){if(ct(e)||!isNaN(e)&&!ar(t,e))return r[e];if(ar(t,e))return t[e]}}function nA(r){return K(r)}var h_=j();function iA(r){r=K(r);var t=r.type,e="";t||(process.env.NODE_ENV!=="production"&&(e="Must have a `type` when `registerTransform`."),lt(e));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(e='Name must include namespace like "ns:regression".'),lt(e));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,h_.set(t,r)}function aA(r,t,e){var n=wt(r),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),lt(a));for(var o=0,s=i;o<s;o++){var l=n[o];t=oA(l,t,e,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function oA(r,t,e,n){var i="";t.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),lt(i)),W(r)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof r+"."),lt(i));var a=r.type,o=h_.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),lt(i));var s=z(t,function(f){return JD(f,o)}),l=wt(o.transform({upstream:s[0],upstreamList:s,config:K(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var u=z(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",he(f.data),"- transform result dimensions:",he(f.dimensions)].join(`
35
+ `)}).join(`
36
+ `);ub(u)}return z(l,function(f,h){var c="";W(f)||(process.env.NODE_ENV!=="production"&&(c="A transform should not return some empty results."),lt(c)),f.data||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be not be null or undefined"),lt(c));var v=r_(f.data);Ov(v)||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be array rows or object rows."),lt(c));var d,g=t[0];if(g&&h===0&&!f.dimensions){var p=g.startIndex;p&&(f.data=g.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:nr,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:nr,sourceHeader:0,dimensions:f.dimensions};return eh(f.data,d,null)})}function Ov(r){return r===re||r===Oe}var Ol="undefined",sA=typeof Uint32Array===Ol?Array:Uint32Array,lA=typeof Uint16Array===Ol?Array:Uint16Array,v_=typeof Int32Array===Ol?Array:Int32Array,fp=typeof Float64Array===Ol?Array:Float64Array,c_={float:fp,int:v_,ordinal:Array,number:Array,time:fp},Fu;function oa(r){return r>65535?sA:lA}function li(){return[1/0,-1/0]}function uA(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function hp(r,t,e,n,i){var a=c_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var fA=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return r.prototype.initData=function(t,e,n){process.env.NODE_ENV!=="production"&&J(X(t.getItem)&&X(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Fu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=n_(i);this._dimensions=z(e,function(s){return process.env.NODE_ENV!=="production"&&o&&J(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new c_[e||"float"](this._rawCount),this._rawExtent[a]=li(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=li());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&J(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];hp(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],g=Fu.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=li()),hp(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(c,u[d],v,d);g[v]=p;var y=l[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=oa(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=oa(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var g=h[f][d];v=e(g,c)}else{for(var p=0;p<l;p++)s[p]=h[t[p]][d];s[p]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=mt(t),a=i.length;if(!a)return this;var o=e.count(),s=oa(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var g=0;if(a===1){for(var p=v[i[0]],y=0;y<n;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=p[y],S=_[y];(m>=h&&m<=c||isNaN(m))&&(S>=x&&S<=w||isNaN(S))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var b=e.getRawIndex(y),m=v[i[0]][b];(m>=h&&m<=c||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=e.getRawIndex(y),A=0;A<a;A++){var M=i[A],m=v[M][b];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=li();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=i[e[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=e[f],p=d[f],y=u[g],m=i[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(oa(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var x=this.getRawIndex(_),w=a[x];isNaN(w)||(m+=w)}m/=p-g;var S=d,b=Math.min(d+l,o),T=d-1,A=a[u];f=-1,c=S;for(var M=-1,C=0,_=S;_<b;_++){var x=this.getRawIndex(_),w=a[x];if(isNaN(w)){C++,M<0&&(M=x);continue}h=Math.abs((T-y)*(w-A)-(T-_)*(m-A)),h>f&&(f=h,c=x)}C>0&&C<b-S&&(v[s++]=Math.min(M,c),c=Math.max(M,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=li(),c=new(oa(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=li();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&ir(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?uA(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=K(this._extent),t._rawExtent=K(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ws(e[a],this._dimensions[a])}Fu={arrayRows:t,objectRows:function(e,n,i,a){return ws(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ws(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const rh=fA;var d_=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(sa(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ee(s)?_r:Re,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=nt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=nt(h.sourceHeader,c.sourceHeader),g=nt(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[eh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[eh(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&J(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&J(i!=null||n!=null),i!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),cp(a))}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+i),cp(h)),s.push(f),l.push(u._getVersionSign())}),n?o=aA(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[FD(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&J(sa(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];sa(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new rh,s.initData(new i_(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(sa(t)){var e=Ev(t);return e?[e.getSourceManager()]:[]}else return z(uD(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(sa(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function vp(r){var t=r.option.transform;t&&Fa(r.option.transform)}function sa(r){return r.mainType==="series"}function cp(r){throw new Error(r)}var p_="line-height:1";function g_(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ce(n+"")+"px;color:"+ce(e)+";font-weight:"+ce(i+""),valueStyle:"font-size:"+ce(o+"")+"px;color:"+ce(a)+";font-weight:"+ce(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var hA=[0,10,20,30],vA=["",`
37
+ `,`
38
+
39
+ `,`
40
+
41
+
42
+ `];function Qa(r,t){return t.type=r,t}function nh(r){return r.type==="section"}function y_(r){return nh(r)?cA:dA}function m_(r){if(nh(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return D(r.blocks,function(i){var a=m_(i);a>=t&&(t=a+ +(n&&(!a||nh(i)&&!i.noHeader)))}),t}return 0}function cA(r,t,e,n){var i=t.noHeader,a=pA(m_(t)),o=[],s=t.blocks||[];J(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ar(u,l)){var f=new f_(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,g){var p=t.valueFormatter,y=y_(d)(p?k(k({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):ih(o.join(""),i?e:a.html);if(i)return h;var c=Jf(t.header,"ordinal",r.useUTC),v=g_(n,r.renderMode).nameStyle;return r.renderMode==="richText"?__(r,c,v)+a.richText+h:ih('<div style="'+v+";"+p_+';">'+ce(c)+"</div>"+h,e)}function dA(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=F(x)?x:[x],z(x,function(w,S){return Jf(w,F(v)?v[S]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":Jf(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=g_(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":__(r,c,m))+(o?"":mA(r,d,g,p,_)):ih((s?"":h)+(a?"":gA(c,!s,m))+(o?"":yA(d,g,p,_)),e)}}function dp(r,t,e,n,i,a){if(!!r){var o=y_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function pA(r){return{html:hA[r],richText:vA[r]}}function ih(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+p_+';">'+r+e+"</div>"}function gA(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+ce(r)+"</span>"}function yA(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],'<span style="'+a+";"+n+'">'+z(r,function(o){return ce(o)}).join("&nbsp;&nbsp;")+"</span>"}function __(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function mA(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function _A(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Un(n)}function x_(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var zu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Dm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=U0({color:e,type:t,renderMode:n,markerId:i});return H(a)?a:(process.env.NODE_ENV!=="production"&&J(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?D(e,function(a){return k(n,a)}):k(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function xA(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=F(s),u=_A(t,e),f,h,c,v;if(o>1||l&&!o){var d=SA(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=ki(i,e,a[0]),h=g.type}else v=f=l?s[0]:s;var p=rv(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return Qa("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[Qa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:f,valueType:h})].concat(c||[])})}function SA(r,t,e,n,i){var a=t.getData(),o=ir(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(h){f(ki(a,e,h),h)}):D(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Qa("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ir=xt();function zo(r,t){return r.getName(t)||r.getId(t)}var bs="__universalTransitionEnabled",Nl=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Oa({count:bA,reset:TA}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Ir(this).sourceManager=new d_(this);a.prepareSource();var o=this.getInitialData(e,i);gp(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&J(o,"getInitialData returned invalid data."),Ir(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=qa(this),a=i?Il(e):{},o=this.subType;st.hasClass(o)&&(o+="Series"),rt(e,n.getTheme().get(this.subType)),rt(e,this.getDefaultOption()),Os(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ni(e,a,i)},t.prototype.mergeOption=function(e,n){e=rt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=qa(this);i&&Ni(this.option,e,i);var a=Ir(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);gp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ir(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ee(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Os(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=ah(this);if(n){var i=n.context.data;return e==null?i:i.getLinkedData(e)}else return Ir(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=ah(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Ir(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return j(e)},t.prototype.getSourceManager=function(){return Ir(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ir(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return xA({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(tt.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=Lv.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=zo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=mt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[zo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){W(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=zo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=zo(e,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return st.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(st);ne(Nl,YD);ne(Nl,Lv);Rm(Nl,st);function pp(r){var t=r.name;rv(r)||(r.name=wA(r)||t)}function wA(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return D(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function bA(r){return r.model.getRawData().count()}function TA(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),CA}function CA(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gp(r,t){D(Wy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,dt(DA,t))})}function DA(r,t){var e=ah(r);return e&&e.setOutputEnd((t||this).count()),t}function ah(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Ie=Nl;var Nv=function(){function r(){this.group=new Dt,this.uid=Dl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();iv(Nv);vl(Nv);const Ft=Nv;function kv(){var r=xt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var S_=xt(),AA=kv(),Bv=function(){function r(){this.group=new Dt,this.uid=Dl("viewChart"),this.renderTask=Oa({plan:MA,reset:EA}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+i.dataType);return}mp(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Zt("Unknown dataType "+i.dataType);return}mp(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Tl(this.group,t)},r.markUpdateMethod=function(t,e){S_(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yp(r,t,e){r&&Oi(r)&&(t==="emphasis"?ks:Bs)(r,e)}function mp(r,t,e){var n=Wn(r,t),i=t&&t.highlightKey!=null?WT(t.highlightKey):null;n!=null?D(wt(n),function(a){yp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){yp(a,e,i)})}iv(Bv,["dispose"]);vl(Bv);function MA(r){return AA(r.model)}function EA(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&S_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),LA[l]}var LA={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const fe=Bv;var $s="\0__throttleOriginMethod",_p="\0__throttleRate",xp="\0__throttleType";function kl(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var g=f||t,p=f||e;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Vv(r,t,e,n){var i=r[t];if(!!i){var a=i[$s]||i,o=i[xp],s=i[_p];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=kl(a,e,n==="debounce"),i[$s]=a,i[xp]=n,i[_p]=e}return i}}function Ys(r,t){var e=r[t];e&&e[$s]&&(e.clear&&e.clear(),r[t]=e[$s])}var Sp=xt(),wp={itemStyle:Pi(R0,!0),lineStyle:Pi(P0,!0)},IA={lineStyle:"stroke",itemStyle:"fill"};function w_(r,t){var e=r.visualStyleMapper||wp[t];return e||(console.warn("Unknown style type '"+t+"'."),wp.itemStyle)}function b_(r,t){var e=r.visualDrawType||IA[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var PA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=w_(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=b_(r,n),u=o[l],f=X(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=k({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},la=new Et,RA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=w_(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){la.option=l[n];var u=i(la),f=o.ensureUniqueItemVisual(s,"style");k(f,u),la.option.decal&&(o.setItemVisual(s,"decal",la.option.decal),la.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},OA={performRawSeries:!0,overallReset:function(r){var t=j();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Sp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Sp(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=b_(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},Go=Math.PI;function NA(r,t){t=t||{},Y(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Dt,n=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new ml({shape:{startAngle:-Go/2,endAngle:-Go/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Go*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Go*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var kA=function(){function r(t,e,n,i){this._stageTaskMap=j(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=j();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),J(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=j(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Oa({plan:GA,reset:HA,count:UA}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Oa({reset:BA});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=j(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),J(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,D(n.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(c=!0,Oa({reset:VA,onDirty:zA})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:$A(t)}),t.uid=Dl("stageHandler"),e&&(t.visualType=e),t},r}();function BA(r){r.overallReset(r.ecModel,r.api,r.payload)}function VA(r){return r.overallProgress&&FA}function FA(){this.agent.dirty(),this.getDownstream().dirty()}function zA(){this.agent&&this.agent.dirty()}function GA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function HA(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=wt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return T_(n)}):WA}var WA=T_(0);function T_(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function UA(r){return r.data.count()}function $A(r){Xs=null;try{r(ja,C_)}catch{}return Xs}var ja={},C_={},Xs;D_(ja,j0);D_(C_,J0);ja.eachSeriesByType=ja.eachRawSeriesByType=function(r){Xs=r};ja.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Xs=r.subType)};function D_(r,t){for(var e in t.prototype)r[e]=Yt}const A_=kA;var bp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const YA={color:bp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],bp]};var Kt="#B9B8CE",Tp="#100C2A",Ho=function(){return{axisLine:{lineStyle:{color:Kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Cp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],M_={darkMode:!0,color:Cp,backgroundColor:Tp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Kt}},textStyle:{color:Kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Kt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Kt}},timeline:{lineStyle:{color:Kt},label:{color:Kt},controlStyle:{color:Kt,borderColor:Kt}},calendar:{itemStyle:{color:Tp},dayLabel:{color:Kt},monthLabel:{color:Kt},yearLabel:{color:Kt}},timeAxis:Ho(),logAxis:Ho(),valueAxis:Ho(),categoryAxis:Ho(),line:{symbol:"circle"},graph:{color:Cp},gauge:{title:{color:Kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};M_.categoryAxis.splitLine.show=!1;const XA=M_;var ZA=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(H(t)){var a=tr(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),oh=["symbol","symbolSize","symbolRotate","symbolOffset"],Dp=oh.concat(["symbolKeepAspect"]),qA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<oh.length;o++){var s=oh[o],l=r.get(s);X(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(k({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=mt(i);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),g=0;g<u.length;g++){var p=u[g];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},KA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Dp.length;s++){var l=Dp[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function QA(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function jA(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function JA(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}D([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=k({},i),process.env.NODE_ENV!=="production"&&Pt(i.type,n[1]),o.dispatchAction(k(i,{type:n[1],seriesIndex:e(a,i)}))})})}function ui(r,t,e,n,i){var a=r+t;e.isSilent(a)||(process.env.NODE_ENV!=="production"&&We("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=Wn(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(c)?h.getName(c[0]):h.getName(c),selected:H(l)?l:k({},l)})}}))}function tM(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(ui("map","selectchanged",t,i,n),ui("pie","selectchanged",t,i,n)):n.fromAction==="select"?(ui("map","selected",t,i,n),ui("pie","selected",t,i,n)):n.fromAction==="unselect"&&(ui("map","unselected",t,i,n),ui("pie","unselected",t,i,n))})}function Ca(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var eM=Math.round(Math.random()*9),rM=typeof Object.defineProperty=="function",nM=function(){function r(){this._id="__ec_inner_"+eM++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return rM?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const iM=nM;var aM=ot.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),oM=ot.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),sM=ot.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),lM=ot.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),uM={line:Ae,rect:bt,roundRect:bt,square:bt,circle:Qr,diamond:oM,pin:sM,arrow:lM,triangle:aM},fM={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},sh={};D(uM,function(r,t){sh[t]=new r});var hM=ot.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Ps(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=sh[n];i||(n="rect",i=sh[n]),fM[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function vM(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function $n(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=dv(r.slice(8),new it(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Sl(r.slice(7),{},new it(t,e,n,i),o?"center":"cover"):l=new hM({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=vM,a&&l.setColor(a),l}function cM(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function E_(r,t){if(r!=null)return F(r)||(r=[r,r]),[Q(r[0],t[0])||0,Q(nt(r[1],r[0]),t[1])||0]}function Rn(r){return isFinite(r)}function dM(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=Rn(n)?n:0,i=Rn(i)?i:1,a=Rn(a)?a:0,o=Rn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function pM(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=Rn(o)?o:.5,s=Rn(s)?s:.5,l=l>=0&&Rn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function lh(r,t,e){for(var n=t.type==="radial"?pM(r,t,e):dM(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function gM(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Wo(r){return parseInt(r,10)}function Uo(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Wo(s[n])||Wo(r.style[n]))-(Wo(s[a])||0)-(Wo(s[o])||0)|0}function yM(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ct(r)?[r]:F(r)?r:null}function L_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&yM(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=z(e,function(a){return a/i}),n/=i)}return[e,n]}var mM=new Tr(!0);function Zs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ap(r){return typeof r=="string"&&r!=="none"}function qs(r){var t=r.fill;return t!=null&&t!=="none"}function Mp(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Ep(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function uh(r,t,e){var n=Om(t.image,t.__image,e);if(cl(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Uy),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function _M(r,t,e,n){var i,a=Zs(e),o=qs(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||mM,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0;(d||g)&&(S=t.getBoundingRect()),d&&(m=h?lh(r,c,S):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?lh(r,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(x=h||!t.__canvasFillPattern?uh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=h||!t.__canvasStrokePattern?uh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=m:p&&(x?r.fillStyle=x:o=!1),g?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,A;r.setLineDash&&e.lineDash&&(i=L_(t),T=i[0],A=i[1]);var M=!0;(u||h&yi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=A),n||(e.strokeFirst?(a&&Ep(r,e),o&&Mp(r,e)):(o&&Mp(r,e),a&&Ep(r,e))),T&&r.setLineDash([])}function xM(r,t,e){var n=t.__image=Om(e.image,t.__image,t,t.onload);if(!(!n||!cl(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function SM(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Hn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=L_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Zs(e)&&r.strokeText(i,e.x,e.y),qs(e)&&r.fillText(i,e.x,e.y)):(qs(e)&&r.fillText(i,e.x,e.y),Zs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Lp=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ip=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function I_(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){le(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Bn.opacity:o}(n||t.blend!==e.blend)&&(a||(le(r,i),a=!0),r.globalCompositeOperation=t.blend||Bn.blend);for(var s=0;s<Lp.length;s++){var l=Lp[s];(n||t[l]!==e[l])&&(a||(le(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(le(r,i),a=!0),r.shadowColor=t.shadowColor||Bn.shadowColor),a}function Pp(r,t,e,n,i){var a=Ja(t,i.inHover),o=n?null:e&&Ja(e,i.inHover)||{};if(a===o)return!1;var s=I_(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(le(r,i),s=!0),Ap(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(le(r,i),s=!0),Ap(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(le(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(le(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<Ip.length;f++){var h=Ip[f],c=h[0];(n||a[c]!==o[c])&&(s||(le(r,i),s=!0),r[c]=a[c]||h[1])}return s}function wM(r,t,e,n,i){return I_(r,Ja(t,i.inHover),e&&Ja(e,i.inHover),n,i)}function P_(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function bM(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),P_(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function TM(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Rp=1,Op=2,Np=3,kp=4;function CM(r){var t=qs(r),e=Zs(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function le(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Ja(r,t){return t&&r.__hoverStyle||r.style}function Fv(r,t){On(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function On(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~de,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||gM(a,o))&&(o&&o.length&&(le(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(le(r,e),r.save(),bM(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof ot&&t.autoBatch&&CM(t.style);s||TM(i,u.transform)?(le(r,e),P_(r,t)):f||le(r,e);var h=Ja(t,e.inHover);t instanceof ot?(e.lastDrawType!==Rp&&(l=!0,e.lastDrawType=Rp),Pp(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),_M(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Yf?(e.lastDrawType!==Np&&(l=!0,e.lastDrawType=Np),Pp(r,t,u,l,e),SM(r,t,h)):t instanceof en?(e.lastDrawType!==Op&&(l=!0,e.lastDrawType=Op),wM(r,t,u,l,e),xM(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==kp&&(l=!0,e.lastDrawType=kp),DM(r,t,e)),f&&n&&le(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function DM(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),On(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),On(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Gu=new iM,Bp=new so(100),Vp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fh(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&Gu.delete(r);var a=Gu.get(r);if(a)return a;var o=Y(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,Gu.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<Vp.length;++c){var v=o[Vp[c]];if(v!=null&&!F(v)&&!H(v)&&!ct(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var g=Bp.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=O_(o.dashArrayX),y=AM(o.dashArrayY),m=R_(o.symbol),_=MM(p),x=N_(y),w=!i&&xr.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=A(),T;w&&(w.width=b.width*e,w.height=b.height*e,T=w.getContext("2d")),M(),h&&Bp.put(d,w||S),u.image=w,u.svgElement=S,u.svgWidth=b.width,u.svgHeight=b.height;function A(){for(var C=1,E=0,L=_.length;E<L;++E)C=Xc(C,_[E]);for(var I=1,E=0,L=m.length;E<L;++E)I=Xc(I,m[E].length);C*=I;var P=x*_.length*m.length;if(process.env.NODE_ENV!=="production"){var R=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};C>o.maxTileWidth&&R("maxTileWidth"),P>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var C=0,E=0;E<y.length;++E)C+=y[E];if(C<=0)return;for(var L=-x,I=0,P=0,R=0;L<b.height;){if(I%2===0){for(var V=P/2%m.length,O=0,B=0,G=0;O<b.width*2;){for(var U=0,E=0;E<p[R].length;++E)U+=p[R][E];if(U<=0)break;if(B%2===0){var q=(1-o.symbolSize)*.5,et=O+p[R][B]*q,ft=L+y[I]*q,At=p[R][B]*o.symbolSize,yt=y[I]*o.symbolSize,zt=G/2%m[V].length;Gt(et,ft,At,yt,m[V][zt])}O+=p[R][B],++G,++B,B===p[R].length&&(B=0)}++R,R===p.length&&(R=0)}L+=y[I],++P,++I,I===y.length&&(I=0)}function Gt(It,St,Z,at,$e){var Nt=i?1:e,Mr=$n($e,It*Nt,St*Nt,Z*Nt,at*Nt,o.color,o.symbolKeepAspect);if(i){var fr=n.painter.renderOneToVNode(Mr);fr&&S.children.push(fr)}else Fv(T,Mr)}}}}function R_(r){if(!r||r.length===0)return[["rect"]];if(H(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!H(r[e])){t=!1;break}if(t)return R_([r]);for(var n=[],e=0;e<r.length;++e)H(r[e])?n.push([r[e]]):n.push(r[e]);return n}function O_(r){if(!r||r.length===0)return[[0,0]];if(ct(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!ct(r[n])){e=!1;break}if(e)return O_([r]);for(var i=[],n=0;n<r.length;++n)if(ct(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=z(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function AM(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ct(r)){var t=Math.ceil(r);return[t,t]}var e=z(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function MM(r){return z(r,function(t){return N_(t)})}function N_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function EM(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=fh(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=fh(i,t)}}})}var LM=new Ue;const Ve=LM;var Ks={};function IM(r,t){process.env.NODE_ENV!=="production"&&Ks[r]&&Zt("Already has an implementation of "+r+"."),Ks[r]=t}function k_(r){return process.env.NODE_ENV!=="production"&&(Ks[r]||Zt("Implementation of "+r+" doesn't exists.")),Ks[r]}var PM="5.4.3",RM={zrender:"5.4.4"},OM=1,NM=800,kM=900,BM=1e3,VM=2e3,FM=5e3,B_=1e3,zM=1100,zv=2e3,V_=3e3,GM=4e3,Bl=4500,HM=4600,WM=5e3,UM=6e3,F_=7e3,z_={PROCESSOR:{FILTER:BM,SERIES_FILTER:NM,STATISTIC:FM},VISUAL:{LAYOUT:B_,PROGRESSIVE_LAYOUT:zM,GLOBAL:zv,CHART:V_,POST_CHART_LAYOUT:HM,COMPONENT:GM,BRUSH:WM,CHART_ITEM:Bl,ARIA:UM,DECAL:F_}},Wt="__flagInMainProcess",ae="__pendingUpdate",Hu="__needsUpdateStatus",Fp=/^[a-zA-Z0-9_]+$/,Wu="__connectUpdateStatus",zp=0,$M=1,YM=2;function G_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){ve(this.id);return}return W_(this,r,t)}}function H_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return W_(this,r,t)}}function W_(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ue.prototype[t].apply(r,e)}var U_=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ue),$_=U_.prototype;$_.on=H_("on");$_.off=H_("off");var fi,Uu,$o,Pr,$u,Yu,Xu,ua,fa,Gp,Hp,Zu,Wp,Yo,Up,Y_,me,$p,Qs=function(r){N(t,r);function t(e,n,i){var a=r.call(this,new ZA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},H(n)&&(n=X_[n]),a._dom=e;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=tt.hasGlobalWindow?window:global;o=u.__ECHARTS__DEFAULT__RENDERER__||o,s=nt(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var f=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=f==null?l:f}var h=a._zr=Hf(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nt(i.useDirtyRect,l),useCoarsePointer:nt(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=kl(vt(h.flush,h),17),n=K(n),n&&e_(n,!0),a._theme=n,a._locale=YC(i.locale||N0),a._coordSysMgr=new Pl;var c=a._api=Up(a);function v(d,g){return d.__prio-g.__prio}return vs(Js,v),vs(hh,v),a._scheduler=new A_(a,c,hh,Js),a._messageCenter=new U_,a._initEvents(),a.resize=vt(a.resize,a),h.animation.on("frame",a._onframe,a),Gp(h,a),Hp(h,a),Fa(a),a}return t.prototype._onframe=function(){if(!this._disposed){$p(this);var e=this._scheduler;if(this[ae]){var n=this[ae].silent;this[Wt]=!0;try{fi(this),Pr.update.call(this,null,this[ae].updateParams)}catch(l){throw this[Wt]=!1,this[ae]=null,l}this._zr.flush(),this[Wt]=!1,this[ae]=null,ua.call(this,n),fa.call(this,n)}else if(e.unfinished){var i=OM,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Yu(this,a),e.performVisualTasks(a),Yo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(this[Wt]){process.env.NODE_ENV!=="production"&&Zt("`setOption` should not be called during main process.");return}if(this._disposed){ve(this.id);return}var a,o,s;if(W(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wt]=!0,!this._model||n){var l=new ED(this._api),u=this._theme,f=this._model=new j0;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},vh);var h={seriesTransition:s,optionChanged:!0};if(i)this[ae]={silent:a,updateParams:h},this[Wt]=!1,this.getZr().wakeUp();else{try{fi(this),Pr.update.call(this,null,h)}catch(c){throw this[ae]=null,this[Wt]=!1,c}this._ssr||this._zr.flush(),this[ae]=null,this[Wt]=!1,ua.call(this,a),fa.call(this,a)}},t.prototype.setTheme=function(){We("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!=="production"&&Pt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!tt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){ve(this.id);return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){ve(this.id);return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(tl[i]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();D(Fn,function(_,x){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(K(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:w,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=xr.createCanvas(),y=Hf(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return D(c,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),D(c,function(_){var x=new en({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return $u(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return $u(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){ve(this.id);return}var i=this._model,a,o=cu(i,e);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):process.env.NODE_ENV!=="production"&&kt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&kt(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=cu(i,e,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||kt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?QA(s,l,n):jA(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;D(XM,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ca(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=k({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(c&&v)&&kt("model or view can not be found by params"),l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),D(Na,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),D(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),tM(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){ve(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){ve(this.id);return}this._disposed=!0;var e=this.getDom();e&&Lm(this.getDom(),Hv,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Fn[n.id]},t.prototype.resize=function(e){if(this[Wt]){process.env.NODE_ENV!=="production"&&Zt("`resize` should not be called during main process.");return}if(this._disposed){ve(this.id);return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ae]&&(a==null&&(a=this[ae].silent),i=!0,this[ae]=null),this[Wt]=!0;try{i&&fi(this),Pr.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Wt]=!1,o}this[Wt]=!1,ua.call(this,a),fa.call(this,a)}},t.prototype.showLoading=function(e,n){if(this._disposed){ve(this.id);return}if(W(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!ch[e]){process.env.NODE_ENV!=="production"&&kt("Loading effects "+e+" not exists.");return}var i=ch[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){ve(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=k({},e);return n.type=Na[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){ve(this.id);return}if(W(n)||(n={silent:!!n}),!!js[e.type]&&!!this._model){if(this[Wt]){this._pendingActions.push(e);return}var i=n.silent;Xu.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),ua.call(this,i),fa.call(this,i)}},t.prototype.updateLabelLayout=function(){Ve.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){ve(this.id);return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&J(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){fi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Uu(h,!0),Uu(h,!1),c.plan()},Uu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(S,b){S!=="series"&&x(b)}):v.eachSeries(x);function x(S){var b=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,A=!b&&p[T];if(!A){var M=tr(S.type),C=c?Ft.getClass(M.main,M.sub):fe.getClass(M.sub);process.env.NODE_ENV!=="production"&&J(C,M.sub+" does not exist."),A=new C,A.init(v,m),p[T]=A,g.push(A),y.add(A.group)}S.__viewId=A.__id=T,A.__alive=!0,A.__model=S,A.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(A,S,v,m)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!c&&w.renderTask.dispose(),y.remove(w.group),w.dispose(v,m),g.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},$o=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){D([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,x;_!=null&&(x=j(),D(wt(_),function(S){var b=rr(S,null);b!=null&&x.set(b,!0)})),p&&p.eachComponent(m,function(S){var b=x&&x.get(S.id)!=null;if(!b)if(Cd(v))if(S instanceof Ie)v.type===Vn&&!v.notBlur&&!S.get(["emphasis","disabled"])&&NT(S,v,h._api);else{var T=lv(S.mainType,S.componentIndex,v.name,h._api),A=T.focusSelf,M=T.dispatchers;v.type===Vn&&A&&!v.notBlur&&Zf(S.mainType,S.componentIndex,h._api),M&&D(M,function(C){v.type===Vn?ks(C):Bs(C)})}else qf(v)&&S instanceof Ie&&(VT(S,v,h._api),bd(S),me(h))},h),p&&p.eachComponent(m,function(S){var b=x&&x.get(S.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function w(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},Pr={prepareAndUpdate:function(h){fi(this),Pr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),Yu(this,v),p.update(v,d),e(v),y.performVisualTasks(v,h),Zu(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),Ve.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,v,d,h);x&&x.update&&g.push(_)}else g.push(_)}});var p=j();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),Yo(this,v,d,h,{},p),Ve.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),fe.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Zu(this,c,this._api,h,{}),Ve.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),fe.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),Ve.trigger("afterupdate",v,this._api))},updateLayout:function(h){Pr.update.call(this,h)}},$u=function(h,c,v,d){if(h._disposed){ve(h.id);return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=cu(g,v),_=0;_<p.length;_++){var x=p[_];if(x[c]&&(y=x[c](g,m,d))!=null)return y}process.env.NODE_ENV!=="production"&&kt("No coordinate system that supports "+c+" found by the given finder.")},Yu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Xu=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=js[g],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&tr(_[0]);this[Wt]=!0;var S=[h],b=!1;h.batch&&(b=!0,S=z(h.batch,function(I){return I=Y(k({},I),h),I.batch=null,I}));var T=[],A,M=qf(h),C=Cd(h);if(C&&r0(this._api),D(S,function(I){if(A=y.action(I,v._model,v._api),A=A||k({},I),A.type=m.event||A.type,T.push(A),C){var P=nv(h),R=P.queryOptionMap,V=P.mainTypeSpecified,O=V?R.keys()[0]:"series";$o(v,x,I,O),me(v)}else M?($o(v,x,I,"series"),me(v)):w&&$o(v,x,I,w.main,w.sub)}),x!=="none"&&!C&&!M&&!w)try{this[ae]?(fi(this),Pr.update.call(this,h),this[ae]=null):Pr[x].call(this,h)}catch(I){throw this[Wt]=!1,I}if(b?A={type:m.event||g,escapeConnect:p,batch:T}:A=T[0],this[Wt]=!1,!c){var E=this._messageCenter;if(E.trigger(A.type,A),M){var L={type:"selectchanged",escapeConnect:p,selected:FT(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};E.trigger(L.type,L)}}},ua=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Xu.call(this,v,h)}},fa=function(h){!h&&this.trigger("updated")},Gp=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[ae]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Hp=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Ca(d,Oi);g&&(kT(g,v,c._api),me(c))}).on("mouseout",function(v){var d=v.target,g=Ca(d,Oi);g&&(BT(g,v,c._api),me(c))}).on("click",function(v){var d=v.target,g=Ca(d,function(m){return ut(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=ut(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(m==="series"?v:c).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:S})}),d){var g=c.concat(v),p,y;vs(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(g,function(m){var _=h.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;p!=null&&(x=Math.max(p,x)),w?(x===p&&w!==y&&x++,y=w):y&&(x===p&&x++,y=""),p=x,_.setZLevel(x)})}}Zu=function(h,c,v,d,g){n(c),Wp(h,c,v,d,g),D(h._chartsViews,function(p){p.__alive=!1}),Yo(h,c,v,d,g),D(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},Wp=function(h,c,v,d,g,p){D(p||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},Yo=function(h,c,v,d,g,p){var y=h._scheduler;g=k(g||{},{updatedSeries:c.getSeries()}),Ve.trigger("series:beforeupdate",c,v,g);var m=!1;c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,d),u(_,x),p&&p.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),bd(_)}),y.unfinished=m||y.unfinished,Ve.trigger("series:layoutlabels",c,v,g),Ve.trigger("series:transition",c,v,g),c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];s(_,x),f(_,x)}),a(h,c),Ve.trigger("series:afterupdate",c,v,g)},me=function(h){h[Hu]=!0,h.getZr().wakeUp()},$p=function(h){!h[Hu]||(h.getZr().storage.traverse(function(c){Ti(c)||i(c)}),h[Hu]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===gl&&h.states.emphasis?c.push("emphasis"):h.hoverState===pl&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var x=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(x&&x.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!Ti(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ti(y))return;if(y instanceof ot&&UT(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=p),x&&(x.stateTransition=p)}y.__dirty&&i(y)}})}Up=function(h){return new(function(c){N(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){ks(d,g),me(h)},v.prototype.leaveEmphasis=function(d,g){Bs(d,g),me(h)},v.prototype.enterBlur=function(d){OT(d),me(h)},v.prototype.leaveBlur=function(d){jm(d),me(h)},v.prototype.enterSelect=function(d){Jm(d),me(h)},v.prototype.leaveSelect=function(d){t0(d),me(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(J0))(h)},Y_=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Wu]=d}}D(Na,function(v,d){h._messageCenter.on(d,function(g){if(tl[h.group]&&h[Wu]!==zp){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];D(Fn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,zp),D(y,function(m){m[Wu]!==$M&&m.dispatchAction(p)}),c(y,YM)}})})}}(),t}(Ue),Gv=Qs.prototype;Gv.on=G_("on");Gv.off=G_("off");Gv.one=function(r,t,e){var n=this;We("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var XM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ve(r){process.env.NODE_ENV!=="production"&&kt("Instance "+r+" has been disposed")}var js={},Na={},hh=[],vh=[],Js=[],X_={},ch={},Fn={},tl={},ZM=+new Date-0,qM=+new Date-0,Hv="_echarts_instance_";function KM(r,t,e){var n=!(e&&e.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var i=Wv(r);if(i)return process.env.NODE_ENV!=="production"&&kt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Ai(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&kt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var a=new Qs(r,t,e);return a.id="ec_"+ZM++,Fn[a.id]=a,n&&Lm(r,Hv,a.id),Y_(a),Ve.trigger("afterinit",a),a}function QM(r){if(F(r)){var t=r;r=null,D(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+qM++,D(t,function(e){e.group=r})}return tl[r]=!0,r}function Z_(r){tl[r]=!1}var jM=Z_;function JM(r){H(r)?r=Fn[r]:r instanceof Qs||(r=Wv(r)),r instanceof Qs&&!r.isDisposed()&&r.dispose()}function Wv(r){return Fn[wb(r,Hv)]}function tE(r){return Fn[r]}function Uv(r,t){X_[r]=t}function $v(r){ht(vh,r)<0&&vh.push(r)}function Yv(r,t){Xv(hh,r,t,VM)}function q_(r){Vl("afterinit",r)}function K_(r){Vl("afterupdate",r)}function Vl(r,t){Ve.on(r,t)}function nn(r,t,e){X(t)&&(e=t,t="");var n=W(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Na[t]&&(J(Fp.test(n)&&Fp.test(t)),js[n]||(js[n]={action:e,actionInfo:r}),Na[t]=n)}function Q_(r,t){Pl.register(r,t)}function eE(r){var t=Pl.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function j_(r,t){Xv(Js,r,t,B_,"layout")}function an(r,t){Xv(Js,r,t,V_,"visual")}var Yp=[];function Xv(r,t,e,n,i){if((X(t)||W(t))&&(e=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");D(r,function(o){J(o.__raw!==e)})}if(!(ht(Yp,e)>=0)){Yp.push(e);var a=A_.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Zv(r,t){ch[r]=t}function rE(r){process.env.NODE_ENV!=="production"&&We("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),ky({createCanvas:r})}function J_(r,t,e){var n=k_("registerMap");n&&n(r,t,e)}function nE(r){var t=k_("getMap");return t&&t(r)}var t1=iA;an(zv,PA);an(Bl,RA);an(Bl,OA);an(zv,qA);an(Bl,KA);an(F_,EM);$v(e_);Yv(kM,BD);Zv("default",NA);nn({type:Vn,event:Vn,update:Vn},Yt);nn({type:ms,event:ms,update:ms},Yt);nn({type:Ea,event:Ea,update:Ea},Yt);nn({type:_s,event:_s,update:_s},Yt);nn({type:La,event:La,update:La},Yt);Uv("light",YA);Uv("dark",XA);var iE={};function ha(r){return r==null?0:r.length||1}function Xp(r){return r}var aE=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Xp,this._newKeyGetter=i||Xp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ha(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=ha(u),c=ha(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=ha(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=ha(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const el=aE;var oE=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function sE(r,t){var e={},n=e.encode={},i=j(),a=[],o=[],s={};D(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&J(th.get(d)==null);var g=v.coordDimIndex;qu(n,d)[g]=c,v.isExtraCoord||(i.set(d,1),uE(v.type)&&(a[0]=c),qu(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}th.each(function(p,y){var m=qu(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=z(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new oE(s,t),e}function qu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function lE(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function uE(r){return!(r==="ordinal"||r==="time")}var fE=function(){function r(t){this.otherDims={},t!=null&&k(this,t)}return r}();const Ts=fE;var hE=xt(),vE={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},e1=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=i1(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=n_(this.source),n=!a1(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=vE[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function r1(r){return r instanceof e1}function n1(r){for(var t=j(),e=0;e<(r||[]).length;e++){var n=r[e],i=W(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function i1(r){var t=hE(r);return t.dimNameMap||(t.dimNameMap=n1(r.dimensionsDefine))}function a1(r){return r>30}var va=W,Rr=z,cE=typeof Int32Array>"u"?Array:Int32Array,dE="e\0\0",Zp=-1,pE=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gE=["_approximateExtent"],qp,Xo,ca,hi,Ku,Zo,Qu,yE=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;r1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=H(h)?new Ts({name:h}):h instanceof Ts?h:new Ts(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),process.env.NODE_ENV!=="production"&&J(i||c.storeDimIndex>=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=j();D(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ct(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&e==null)throw new Error("Unknown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof rh&&(a=t),!a){var o=this.dimensions,s=Iv(t)||Xt(t)?new i_(t,o.length):t;a=new rh;var l=Rr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=sE(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&Qu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==_r&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Re;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&hb(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=rr(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=rr(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Qu(this,f);qp(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){va(t)?k(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=ca(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Xo(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(Rr(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n[e];return i==null||isNaN(i)?Zp:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var i=n||this,a=Rr(hi(t),this._getStoreDimIndex,this);this._store.each(a,i?vt(e,i):e)},r.prototype.filterSelf=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var i=n||this,a=Rr(hi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?vt(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=mt(t);return D(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){X(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Rr(hi(t),this._getStoreDimIndex,this),s=Zo(this);return s._store=this._store.map(o,a?vt(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&D(hi(t),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Rr(hi(t),this._getStoreDimIndex,this);this._store.modify(s,o?vt(e,o):e)},r.prototype.downSample=function(t,e,n,i){var a=Zo(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.lttbDownSample=function(t,e){var n=Zo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Et(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new el(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xo(t,n)},function(n){return Xo(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},va(t)?k(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i==null?this.getVisual(e):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():va(a)&&(a=k({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,va(e)?k(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){va(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;TT(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){D(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Rr(this.dimensions,this._getDimInfo,this),this.hostModel)),Ku(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!X(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(ul(arguments)))})},r.internalField=function(){qp=function(t){var e=t._invertedIndicesMap;D(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new cE(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Zp;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ca=function(t,e,n){return rr(t._getCategory(e,n),null)},Xo=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=ca(t,t._idDimIdx,e)),n==null&&(n=dE+e),n},hi=function(t){return F(t)||(t=t!=null?[t]:[]),t},Zo=function(t){var e=new r(t._schema?t._schema:Rr(t.dimensions,t._getDimInfo,t),t.hostModel);return Ku(e,t),e},Ku=function(t,e){D(pE.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,D(gE,function(n){t[n]=K(e[n])}),t._calculationInfo=k({},e._calculationInfo)},Qu=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=ca(t,a,e)),l==null&&o!=null&&(i[e]=l=ca(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const qv=yE;function mE(r,t){return Kv(r,t).dimensions}function Kv(r,t){Iv(r)||(r=Pv(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=j(),a=[],o=xE(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&a1(o),l=n===r.dimensionsDefine,u=l?i1(r):n1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=j(f),c=new v_(o),v=0;v<c.length;v++)c[v]=-1;function d(A){var M=c[A];if(M<0){var C=n[A],E=W(C)?C:{name:C},L=new Ts,I=E.name;I!=null&&u.get(I)!=null&&(L.name=L.displayName=I),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var P=a.length;return c[A]=P,L.storeDimIndex=A,a.push(L),L}return a[M]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(A,M){var C=wt(A).slice();if(C.length===1&&!H(C[0])&&C[0]<0){h.set(M,!1);return}var E=h.set(M,[]);D(C,function(L,I){var P=H(L)?u.get(L):L;P!=null&&P<o&&(E[I]=P,p(d(P),M,I))})});var g=0;D(e,function(A){var M,C,E,L;if(H(A))M=A,L={};else{L=A,M=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=I,C=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=h.get(M);if(P!==!1){if(P=wt(P),!P.length)for(var R=0;R<(C&&C.length||1);R++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&P.push(g++)}D(P,function(V,O){var B=d(V);if(l&&L.type!=null&&(B.type=L.type),p(Y(B,L),M,O),B.name==null&&C){var G=C[O];!W(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}E&&Y(B.otherDims,E)})}});function p(A,M,C){th.get(M)!=null?A.otherDims[M]=C:(A.coordDim=M,A.coordDimIndex=C,i.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(A){A.name==null&&(A.name=A.coordDim)}if(s)D(a,function(A){w(A)}),a.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var S=0;S<o;S++){var b=d(S),T=b.coordDim;T==null&&(b.coordDim=SE(x,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(q0(r,S)===Vt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return _E(a),new e1({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function _E(r){for(var t=j(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function xE(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return D(t,function(a){var o;W(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function SE(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var wE=function(){function r(t){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=t}return r}();function bE(r){var t=r.get("coordinateSystem"),e=new wE(t),n=TE[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var TE={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ue).models[0],a=r.getReferringComponents("yAxis",ue).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Sr(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Sr(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),vi(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),vi(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ue).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",i),vi(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ue).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),vi(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),vi(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),vi(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function vi(r){return r.get("type")==="category"}function o1(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;CE(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(D(a,function(m,_){H(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;D(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function CE(r){return!r1(r.schema)}function jr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function s1(r,t){return jr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function DE(r,t){var e=r.get("coordinateSystem"),n=Pl.get(e),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=lE(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function AE(r,t,e){var n,i;return e&&D(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Fl(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Pv(r)):(i=n.getSource(),a=i.sourceFormat===Re);var o=bE(t),s=DE(t,o),l=e.useEncodeDefaulter,u=X(l)?l:l?dt(lD,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Kv(i,f),c=AE(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=o1(t,{schema:h,store:v}),g=new qv(h,t);g.setCalculationInfo(d);var p=c!=null&&ME(i)?function(y,m,_,x){return x===c?_:this.defaultDimValueGetter(y,m,_,x)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function ME(r){if(r.sourceFormat===Re){var t=EE(r.data||[]);return!F(fo(t))}}function EE(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var l1=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();vl(l1);const Ar=l1;var LE=0,IE=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LE}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&z(n,PE);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!H(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},r}();function PE(r){return W(r)&&r.value!=null?r.value:r+""}const dh=IE;function RE(r){var t=Math.pow(10,uo(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function ph(r){return r.type==="interval"||r.type==="log"}function OE(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=tv(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=u1(o),l=i.niceTickExtent=[Ct(Math.ceil(r[0]/o)*o,s),Ct(Math.floor(r[1]/o)*o,s)];return NE(l,r),i}function ju(r){var t=Math.pow(10,uo(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Ct(e*t)}function u1(r){return Je(r)+2}function Kp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function NE(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Kp(r,0,t),Kp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function zl(r,t){return r>=t[0]&&r<=t[1]}function Gl(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Hl(r,t){return r*(t[1]-t[0])+t[0]}var f1=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dh({})),F(i)&&(i=new dh({categories:z(i,function(a){return W(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),zl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Gl(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Hl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ar);Ar.registerClass(f1);const h1=f1;var Cn=Ct,v1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return zl(e,this._extent)},t.prototype.normalize=function(e){return Gl(e,this._extent)},t.prototype.scale=function(e){return Hl(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=u1(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:Cn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Cn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:Cn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=Cn(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=Je(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Cn(e.value,i,!0);return Cv(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(!!isFinite(o)){o<0&&(o=-o,a.reverse());var s=OE(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=Cn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=Cn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Ar);Ar.registerClass(v1);const Yn=v1;var c1=typeof Float32Array<"u",kE=c1?Float32Array:Array;function yr(r){return F(r)?c1?new Float32Array(r):r:new kE(r)}var BE="__ec_stack_";function Qv(r){return r.get("stack")||BE+r.seriesIndex}function jv(r){return r.dim+r.index}function d1(r,t){var e=[];return t.eachSeriesByType(r,function(n){g1(n)&&e.push(n)}),e}function VE(r){var t={};D(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function p1(r){var t=VE(r),e=[];return D(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Q(n.get("barWidth"),s),g=Q(n.get("barMaxWidth"),s),p=Q(n.get("barMinWidth")||(y1(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:jv(a),stackId:Qv(n)})}),FE(e)}function FE(r){var t={};D(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return D(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Q(s,o),f=Q(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),D(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,h-=x+f*x,c--}else{var x=v;m&&m<x&&(x=Math.min(m,h)),_&&_>x&&(x=_),x!==v&&(y.width=x,h-=x+f*x,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;D(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;D(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function zE(r,t,e){if(r&&t){var n=r[jv(t)];return n!=null&&e!=null?n[Qv(e)]:n}}function GE(r,t){var e=d1(r,t),n=p1(e);D(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Qv(i),u=n[jv(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function HE(r){return{seriesType:r,plan:kv(),reset:function(t){if(!!g1(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=jr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=WE(i,a),d=y1(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,x){for(var w=_.count,S=d&&yr(w*3),b=d&&l&&yr(w*3),T=d&&yr(w),A=n.master.getRect(),M=c?A.width:A.height,C,E=x.getStore(),L=0;(C=_.next())!=null;){var I=E.get(h?p:o,C),P=E.get(s,C),R=v,V=void 0;h&&(V=+I-E.get(o,C));var O=void 0,B=void 0,G=void 0,U=void 0;if(c){var q=n.dataToPoint([I,P]);if(h){var et=n.dataToPoint([V,P]);R=et[0]}O=R,B=q[1]+m,G=q[0]-R,U=y,Math.abs(G)<g&&(G=(G<0?-1:1)*g)}else{var q=n.dataToPoint([P,I]);if(h){var et=n.dataToPoint([P,V]);R=et[1]}O=q[0]+m,B=R,G=y,U=q[1]-R,Math.abs(U)<g&&(U=(U<=0?-1:1)*g)}d?(S[L]=O,S[L+1]=B,S[L+2]=c?G:U,b&&(b[L]=c?A.x:O,b[L+1]=c?B:A.y,b[L+2]=M),T[C]=C):x.setItemLayout(C,{x:O,y:B,width:G,height:U}),L+=3}d&&x.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function g1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function y1(r){return r.pipelineContext&&r.pipelineContext.large}function WE(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var UE=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},m1=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return po(e.value,Gd[KC(Ci(this._minLevelUnit))]||Gd.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return QC(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=QE(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=De,n[1]+=De),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-De}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=qo.length,l=Math.min(UE(qo,this._approxInterval,0,s),s-1);this._interval=qo[l][1],this._minLevelUnit=qo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ct(e)?e:+Me(e)},t.prototype.contain=function(e){return zl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Gl(this.parse(e),this._extent)},t.prototype.scale=function(e){return Hl(e,this._extent)},t.type="time",t}(Yn),qo=[["second",wv],["minute",bv],["hour",Pa],["quarter-day",Pa*6],["half-day",Pa*12],["day",De*1.2],["half-week",De*3.5],["week",De*7],["month",De*31],["quarter",De*95],["half-year",zd/2],["year",zd]];function $E(r,t,e,n){var i=Me(t),a=Me(e),o=function(d){return Hd(i,d,n)===Hd(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function YE(r,t){return r/=De,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function XE(r){var t=30*De;return r/=t,r>6?6:r>3?3:r>2?2:1}function ZE(r){return r/=Pa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qp(r,t){return r/=t?bv:wv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function qE(r){return tv(r,!0)}function KE(r,t,e){var n=new Date(r);switch(Ci(t)){case"year":case"month":n[V0(e)](0);case"day":n[F0(e)](1);case"hour":n[z0(e)](0);case"minute":n[G0(e)](0);case"second":n[H0(e)](0),n[W0(e)](0)}return n.getTime()}function QE(r,t,e,n){var i=1e4,a=k0,o=0;function s(M,C,E,L,I,P,R){for(var V=new Date(C),O=C,B=V[L]();O<E&&O<=n[1];)R.push({value:O}),B+=M,V[I](B),O=V.getTime();R.push({value:O,notAdd:!0})}function l(M,C,E){var L=[],I=!C.length;if(!$E(Ci(M),n[0],n[1],e)){I&&(C=[{value:KE(new Date(n[0]),M,e)},{value:n[1]}]);for(var P=0;P<C.length-1;P++){var R=C[P].value,V=C[P+1].value;if(R!==V){var O=void 0,B=void 0,G=void 0,U=!1;switch(M){case"year":O=Math.max(1,Math.round(t/De/365)),B=Tv(e),G=jC(e);break;case"half-year":case"quarter":case"month":O=XE(t),B=Di(e),G=V0(e);break;case"week":case"half-week":case"day":O=YE(t),B=Al(e),G=F0(e),U=!0;break;case"half-day":case"quarter-day":case"hour":O=ZE(t),B=Za(e),G=z0(e);break;case"minute":O=Qp(t,!0),B=Ml(e),G=G0(e);break;case"second":O=Qp(t,!1),B=El(e),G=H0(e);break;case"millisecond":O=qE(t),B=Ll(e),G=W0(e);break}s(O,R,V,B,G,U,L),M==="year"&&E.length>1&&P===0&&E.unshift({value:E[0].value-O})}}for(var P=0;P<L.length;P++)E.push(L[P]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=Ci(a[v]);if(!!qC(a[v])){l(a[v],u[u.length-1]||[],f);var g=a[v+1]?Ci(a[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(M,C){return M.value-C.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===a[v]))break}f=[]}}}process.env.NODE_ENV!=="production"&&o>=i&&kt("Exceed safe limit.");for(var x=_t(z(u,function(M){return _t(M,function(C){return C.value>=n[0]&&C.value<=n[1]&&!C.notAdd})}),function(M){return M.length>0}),w=[],S=x.length-1,v=0;v<x.length;++v)for(var b=x[v],T=0;T<b.length;++T)w.push({value:b[T].value,level:S-v});w.sort(function(M,C){return M.value-C.value});for(var A=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&A.push(w[v]);return A}Ar.registerClass(m1);const jE=m1;var jp=Ar.prototype,ka=Yn.prototype,JE=Ct,tL=Math.floor,eL=Math.ceil,Ko=Math.pow,Ne=Math.log,Jv=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Yn,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=ka.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=Ct(Ko(this.base,l));return u=l===i[0]&&this._fixMin?Qo(u,a[0]):u,u=l===i[1]&&this._fixMax?Qo(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Ne(this.base);e=Ne(Math.max(0,e))/i,n=Ne(Math.max(0,n))/i,ka.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=jp.getExtent.call(this);n[0]=Ko(e,n[0]),n[1]=Ko(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Qo(n[0],a[0])),this._fixMax&&(n[1]=Qo(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Ne(e[0])/Ne(n),e[1]=Ne(e[1])/Ne(n),jp.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Cm(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ct(eL(n[0]/a)*a),Ct(tL(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ka.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ne(e)/Ne(this.base),zl(e,this._extent)},t.prototype.normalize=function(e){return e=Ne(e)/Ne(this.base),Gl(e,this._extent)},t.prototype.scale=function(e){return e=Hl(e,this._extent),Ko(this.base,e)},t.type="log",t}(Ar),_1=Jv.prototype;_1.getMinorTicks=ka.getMinorTicks;_1.getLabel=ka.getLabel;function Qo(r,t){return JE(r,Je(t))}Ar.registerClass(Jv);const rL=Jv;var nL=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);X(a)?this._modelMinNum=jo(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=jo(t,a));var o=this._modelMaxRaw=e.get("max",!0);if(X(o)?this._modelMaxNum=jo(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=jo(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=F(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Kr(l[0],1),Kr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Mi(s)||Mi(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){process.env.NODE_ENV!=="production"&&J(!this.frozen),this[aL[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=iL[t];process.env.NODE_ENV!=="production"&&J(!this.frozen&&this[n]==null),this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),iL={min:"_determinedMin",max:"_determinedMax"},aL={min:"_dataMin",max:"_dataMax"};function oL(r,t,e){var n=r.rawExtentInfo;return n||(n=new nL(r,t,e),r.rawExtentInfo=n,n)}function jo(r,t){return t==null?null:Mi(t)?NaN:r.parse(t)}function x1(r,t){var e=r.type,n=oL(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=d1("bar",o),l=!1;if(D(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=p1(s),f=sL(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function sL(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=zE(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Bi(r,t){var e=t,n=x1(r,e),i=n.extent,a=e.get("splitNumber");r instanceof rL&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Wl(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new h1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new jE({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ar.getClass(t)||Yn)}}function lL(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function yo(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):H(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):X(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(tc(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function tc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function uL(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof h1?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=yo(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=fL(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function fL(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new it(r.x,r.y,a,o);return s}function ec(r){var t=r.get("interval");return t==null?"auto":t}function S1(r){return r.type==="category"&&ec(r.getLabelModel())===0}function gh(r,t){var e={};return D(r.mapDimensionsAll(t),function(n){e[s1(r,n)]=!0}),mt(e)}var mo=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function hL(r){return Fl(null,r)}var vL={isDimensionStacked:jr,enableDataStack:o1,getStackedDimension:s1};function cL(r,t){var e=t;t instanceof Et||(e=new Et(t));var n=Wl(e);return n.setExtent(r[0],r[1]),Bi(n,e),n}function dL(r){ne(r,mo)}function pL(r,t){return t=t||{},or(r,null,null,t.state!=="normal")}const gL=Object.freeze(Object.defineProperty({__proto__:null,createList:hL,getLayoutRect:Cr,dataStack:vL,createScale:cL,mixinAxisModelCommonMethods:dL,getECData:ut,createTextStyle:pL,createDimensions:mE,createSymbol:$n,enableHoverEmphasis:Vs},Symbol.toStringTag,{value:"Module"}));var Jp=[],yL={registerPreprocessor:$v,registerProcessor:Yv,registerPostInit:q_,registerPostUpdate:K_,registerUpdateLifecycle:Vl,registerAction:nn,registerCoordinateSystem:Q_,registerLayout:j_,registerVisual:an,registerTransform:t1,registerLoading:Zv,registerMap:J_,registerImpl:IM,PRIORITY:z_,ComponentModel:st,ComponentView:Ft,SeriesModel:Ie,ChartView:fe,registerComponentModel:function(r){st.registerClass(r)},registerComponentView:function(r){Ft.registerClass(r)},registerSeriesModel:function(r){Ie.registerClass(r)},registerChartView:function(r){fe.registerClass(r)},registerSubTypeDefaulter:function(r,t){st.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){xm(r,t)}};function sr(r){if(F(r)){D(r,function(t){sr(t)});return}ht(Jp,r)>=0||(Jp.push(r),X(r)&&(r={install:r}),r.install(yL))}var mL=1e-8;function tg(r,t){return Math.abs(r-t)<mL}function eg(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=pr(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!tg(i[0],s[0])||!tg(i[1],s[1]))&&(n+=pr(i[0],i[1],s[0],s[1],t,e)),n!==0}var _L=[];function Ju(r,t){for(var e=0;e<r.length;e++)te(r[e],r[e],t)}function rg(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(zr(t,t,a),Gr(e,e,a))}}function xL(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var w1=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),ng=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),ig=function(){function r(t){this.type="linestring",this.points=t}return r}(),SL=function(r){N(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return xL(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?rg(s.exterior,i,a,e):D(s.points,function(l){rg(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(eg(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(eg(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new it(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(Ju(c.exterior,u),D(c.interiors,function(v){Ju(v,u)})):D(c.points,function(v){Ju(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(w1);(function(r){N(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=oo(_L),o=e;o&&!o.isGeoSVGGraphicRoot;)Xr(a,o.getLocalTransform(),a),o=o.parent;return Gi(a,a),te(i,i,a),i},t})(w1);function wL(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return D(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(!!o)switch(a.type){case"LineString":a.coordinates=b1(s,o,e);break;case"Polygon":tf(s,o,e);break;case"MultiLineString":tf(s,o,e);break;case"MultiPolygon":D(s,function(l,u){return tf(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function tf(r,t,e){for(var n=0;n<r.length;n++)r[n]=b1(r[n],t[n],e)}function b1(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function ag(r,t){return r=wL(r),z(_t(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new ng(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new ng(l[0],l.slice(1)))});break;case"LineString":a.push(new ig([i.coordinates]));break;case"MultiLineString":a.push(new ig(i.coordinates))}var s=new SL(n[t||"name"],a,n.cp);return s.properties=n,s})}const bL=Object.freeze(Object.defineProperty({__proto__:null,linearMap:Li,round:Ct,asc:wm,getPrecision:Je,getPrecisionSafe:Rs,getPixelPrecision:bm,getPercentWithPrecision:eb,MAX_SAFE_INTEGER:nb,remRadian:Jh,isRadianAroundZero:Wa,parseDate:Me,quantity:Cm,quantityExponent:uo,nice:tv,quantile:ab,reformIntervals:ob,isNumeric:ev,numericToNumber:br},Symbol.toStringTag,{value:"Module"})),TL=Object.freeze(Object.defineProperty({__proto__:null,parse:Me,format:po},Symbol.toStringTag,{value:"Module"})),CL=Object.freeze(Object.defineProperty({__proto__:null,extendShape:T0,extendPath:C0,makePath:Sl,makeImage:dv,mergePath:Ce,resizePath:pv,createIcon:bl,updateProps:Lt,initProps:Bt,getTransform:gv,clipPointsByRect:yv,clipRectByRect:E0,registerShape:Pe,getShapeClass:D0,Group:Dt,Image:en,Text:Rt,Circle:Qr,Ellipse:fv,Sector:Le,Ring:vo,Polygon:Kn,Polyline:rn,Rect:bt,Line:Ae,BezierCurve:hv,Arc:ml,IncrementalDisplayable:w0,CompoundPath:_0,LinearGradient:vv,RadialGradient:S0,BoundingRect:it},Symbol.toStringTag,{value:"Module"})),DL=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Cv,toCamelCase:Dv,normalizeCssArray:go,encodeHTML:ce,formatTpl:Av,getTooltipMarker:U0,formatTime:tD,capitalFirst:eD,truncateText:Nm,getTextRect:JC},Symbol.toStringTag,{value:"Module"})),AL=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:D,indexOf:ht,inherits:Gh,reduce:ir,filter:_t,bind:vt,curry:dt,isArray:F,isString:H,isObject:W,isFunction:X,extend:k,defaults:Y,clone:K,merge:rt},Symbol.toStringTag,{value:"Module"}));var to=xt();function ML(r){return r.type==="category"?LL(r):PL(r)}function EL(r,t){return r.type==="category"?IL(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function LL(r){var t=r.getLabelModel(),e=T1(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function T1(r,t){var e=C1(r,"labels"),n=ec(t),i=D1(e,n);if(i)return i;var a,o;return X(n)?a=E1(r,n):(o=n==="auto"?RL(r):n,a=M1(r,o)),A1(e,n,{labels:a,labelCategoryInterval:o})}function IL(r,t){var e=C1(r,"ticks"),n=ec(t),i=D1(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),X(n))a=E1(r,n,!0);else if(n==="auto"){var s=T1(r,r.getLabelModel());o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tickValue})}else o=n,a=M1(r,o,!0);return A1(e,n,{ticks:a,tickCategoryInterval:o})}function PL(r){var t=r.scale.getTicks(),e=yo(r);return{labels:z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function C1(r,t){return to(r)[t]||(to(r)[t]=[])}function D1(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function A1(r,t,e){return r.push({key:t,value:e}),e}function RL(r){var t=to(r).autoInterval;return t!=null?t:to(r).autoInterval=r.calculateCategoryInterval()}function OL(r){var t=NL(r),e=yo(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),c=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=fl(e({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=to(r.model),w=r.getExtent(),S=x.lastAutoInterval,b=x.lastTickCount;return S!=null&&b!=null&&Math.abs(S-_)<=1&&Math.abs(b-o)<=1&&S>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=S:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function NL(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function M1(r,t,e){var n=yo(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=S1(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function E1(r,t,e){var n=r.scale,i=yo(r),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var og=[0,1],kL=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return bm(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),sg(n,i.count())),Li(t,og,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),sg(n,i.count()));var a=Li(t,n,og,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=EL(this,e),i=n.ticks,a=z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return BL(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return ML(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return OL(this)},r}();function sg(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function BL(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Ct(v),d=Ct(d),h?v>d:v<d}}const ur=kL;function VL(r){var t=st.extend(r);return st.registerClass(t),t}function FL(r){var t=Ft.extend(r);return Ft.registerClass(t),t}function zL(r){var t=Ie.extend(r);return Ie.registerClass(t),t}function GL(r){var t=fe.extend(r);return fe.registerClass(t),t}var da=Math.PI*2,Dn=Tr.CMD,HL=["top","right","bottom","left"];function WL(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function UL(r,t,e,n,i,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(n-i)%da<1e-4)return l[0]=f,l[1]=h,u-e;if(a){var c=n;n=gr(i),i=gr(c)}else n=gr(n),i=gr(i);n>i&&(i+=da);var v=Math.atan2(s,o);if(v<0&&(v+=da),v>=n&&v<=i||v+da>=n&&v+da<=i)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=p,l[1]=y,Math.sqrt(_))}function rl(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function L1(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var Fe=[];function $L(r,t,e){var n=L1(t.x,t.y,t.width,t.height,r.x,r.y,Fe);return e.set(Fe[0],Fe[1]),n}function YL(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var g=u;switch(d){case Dn.M:a=f[v++],o=f[v++],n=a,i=o;break;case Dn.L:g=rl(n,i,f[v],f[v+1],h,c,Fe,!0),n=f[v++],i=f[v++];break;case Dn.C:g=sm(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Fe),n=f[v++],i=f[v++];break;case Dn.Q:g=um(n,i,f[v++],f[v++],f[v],f[v+1],h,c,Fe),n=f[v++],i=f[v++];break;case Dn.A:var p=f[v++],y=f[v++],m=f[v++],_=f[v++],x=f[v++],w=f[v++];v+=1;var S=!!(1-f[v++]);s=Math.cos(x)*m+p,l=Math.sin(x)*_+y,v<=1&&(a=s,o=l);var b=(h-p)*_/m+p;g=UL(p,y,_,x,x+w,S,b,c,Fe),n=Math.cos(x+w)*m+p,i=Math.sin(x+w)*_+y;break;case Dn.R:a=n=f[v++],o=i=f[v++];var T=f[v++],A=f[v++];g=L1(a,o,T,A,h,c,Fe);break;case Dn.Z:g=rl(n,i,a,o,h,c,Fe,!0),n=a,i=o;break}g<u&&(u=g,e.set(Fe[0],Fe[1]))}return u}var Ge=new $,gt=new $,Tt=new $,er=new $,je=new $;function lg(r,t){if(!!r){var e=r.getTextGuideLine(),n=r.getTextContent();if(!!(n&&e)){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||HL,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),h=f&&Gi([],f),c=t.get("length2")||0;u&&Tt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];WL(d,0,s,Ge,er),$.scaleAndAdd(gt,Ge,er,c),gt.transform(h);var g=r.getBoundingRect(),p=u?u.distance(gt):r instanceof ot?YL(gt,r.path,Tt):$L(gt,g,Tt);p<l&&(l=p,gt.transform(f),Tt.transform(f),Tt.toArray(a[0]),gt.toArray(a[1]),Ge.toArray(a[2]))}I1(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var nl=[],Jt=new $;function I1(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ge.fromArray(r[0]),gt.fromArray(r[1]),Tt.fromArray(r[2]),$.sub(er,Ge,gt),$.sub(je,Tt,gt);var e=er.len(),n=je.len();if(!(e<.001||n<.001)){er.scale(1/e),je.scale(1/n);var i=er.dot(je),a=Math.cos(t);if(a<i){var o=rl(gt.x,gt.y,Tt.x,Tt.y,Ge.x,Ge.y,nl,!1);Jt.fromArray(nl),Jt.scaleAndAdd(je,o/Math.tan(Math.PI-t));var s=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(s))return;s<0?$.copy(Jt,gt):s>1&&$.copy(Jt,Tt),Jt.toArray(r[1])}}}}function XL(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ge.fromArray(r[0]),gt.fromArray(r[1]),Tt.fromArray(r[2]),$.sub(er,gt,Ge),$.sub(je,Tt,gt);var n=er.len(),i=je.len();if(!(n<.001||i<.001)){er.scale(1/n),je.scale(1/i);var a=er.dot(t),o=Math.cos(e);if(a<o){var s=rl(gt.x,gt.y,Tt.x,Tt.y,Ge.x,Ge.y,nl,!1);Jt.fromArray(nl);var l=Math.PI/2,u=Math.acos(je.dot(t)),f=l+u-e;if(f>=l)$.copy(Jt,Tt);else{Jt.scaleAndAdd(je,s/Math.tan(Math.PI/2-f));var h=Tt.x!==gt.x?(Jt.x-gt.x)/(Tt.x-gt.x):(Jt.y-gt.y)/(Tt.y-gt.y);if(isNaN(h))return;h<0?$.copy(Jt,gt):h>1&&$.copy(Jt,Tt)}Jt.toArray(r[1])}}}}function ug(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function ZL(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=As(n[0],n[1]),a=As(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Aa([],n[1],n[0],o/i),l=Aa([],n[1],n[2],o/a),u=Aa([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function rc(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Ns.length;l++){var u=Ns[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:nt(i.states[u]&&i.states[u].ignore,s);if(v||!nt(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new rn,r.setTextGuideLine(n),!h&&(s||!o)&&ug(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),ug(n,!1,u,f)}}if(n){Y(n.style,e),n.style.fill=null;var g=a.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=ZL}}function nc(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Ee.length;n++){var i=Ee[n];e[i]=r.getModel([i,t])}return e}function P1(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Fs(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function R1(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(T,A){return T.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&a&&w(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&S(-y,.8),m<0&&S(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function x(T,A,M){if(T<0){var C=Math.min(A,-T);if(C>0){w(C*M,0,o);var E=C+T;E<0&&S(-E*M,1)}else S(-T*M,1)}}function w(T,A,M){T!==0&&(u=!0);for(var C=A;C<M;C++){var E=r[C],L=E.rect;L[t]+=T,E.label[t]+=T}}function S(T,A){for(var M=[],C=0,E=1;E<o;E++){var L=r[E-1].rect,I=Math.max(r[E].rect[t]-L[t]-L[e],0);M.push(I),C+=I}if(!!C){var P=Math.min(Math.abs(T)/C,A);if(T>0)for(var E=0;E<o-1;E++){var R=M[E]*P;w(R,0,E+1)}else for(var E=o-1;E>0;E--){var R=M[E-1]*P;w(-R,E,o)}}}function b(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),C=0;C<o-1;C++)if(A>0?w(M,0,C+1):w(-M,o-C-1,o),T-=M,T<=0)return}return u}function qL(r,t,e,n){return R1(r,"x","width",t,e,n)}function O1(r,t,e,n){return R1(r,"y","height",t,e,n)}function N1(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new it(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Fs(d.localRect,d.transform)),h||(h=new Fs(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function KL(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function QL(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:KL(n&&n.shape.points)}}var fg=["align","verticalAlign","width","height","fontSize"],qt=new lo,ef=xt(),jL=xt();function Jo(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var ts=["x","y","rotation"],JL=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();it.applyTransform(f,f,u),u?qt.setLocalTransform(u):(qt.x=qt.y=qt.rotation=qt.originX=qt.originY=0,qt.scaleX=qt.scaleY=1),qt.rotation=gr(qt.rotation);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();it.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:qt.x,y:qt.y,scaleX:qt.scaleX,scaleY:qt.scaleY,rotation:qt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");!(X(i)||mt(i).length)||t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(_,x){return function(){lg(_,x)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;X(o.layoutOption)?f=o.layoutOption(QL(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=Q(f.x,e),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Q(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=ef(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<fg.length;g++){var p=fg[g];s.setStyle(p,f[p]!=null?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=P1(this._labelList),a=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=_t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});qL(a,0,e),O1(o,0,n);var s=_t(i,function(l){return l.layoutOption.hideOverlap});N1(s)},r.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=ef(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");rc(t,nc(s),l),lg(t,h)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ti(t))){var a=ef(n),o=a.oldLayout,s=ut(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(ht(c,"select")>=0&&n.attr(a.oldLayoutSelect),ht(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,e,l)}else if(n.attr(u),!$i(n).valueAnimation){var h=nt(n.style.opacity,1);n.style.opacity=0,Bt(n,{style:{opacity:h}},e,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};Jo(v,u,ts),Jo(v,n.states.select,ts)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Jo(d,u,ts),Jo(d,n.states.emphasis,ts)}RC(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=jL(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Bt(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}();const tI=JL;var rf=xt();function eI(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=rf(e).labelManager;i||(i=rf(e).labelManager=new tI),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=rf(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}const rI=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:Sv,version:PM,dependencies:RM,PRIORITY:z_,init:KM,connect:QM,disconnect:Z_,disConnect:jM,dispose:JM,getInstanceByDom:Wv,getInstanceById:tE,registerTheme:Uv,registerPreprocessor:$v,registerProcessor:Yv,registerPostInit:q_,registerPostUpdate:K_,registerUpdateLifecycle:Vl,registerAction:nn,registerCoordinateSystem:Q_,getCoordinateSystemDimensions:eE,registerLayout:j_,registerVisual:an,registerLoading:Zv,setCanvasCreator:rE,registerMap:J_,getMap:nE,registerTransform:t1,dataTool:iE,throttle:kl,use:sr,setPlatformAPI:ky,parseGeoJSON:ag,parseGeoJson:ag,env:tt,Model:Et,Axis:ur,innerDrawElementOnCanvas:Fv,zrender:Jw,matrix:HS,vector:TS,zrUtil:dS,color:mw,helper:gL,number:bL,time:TL,graphic:CL,format:DL,util:AL,List:qv,ComponentModel:st,ComponentView:Ft,SeriesModel:Ie,ChartView:fe,extendComponentModel:VL,extendComponentView:FL,extendSeriesModel:zL,extendChartView:GL},Symbol.toStringTag,{value:"Module"}));var nI=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!=="production"){var n=e.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Fl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Dt,i=$n("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=$n(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ie);const iI=nI;function ic(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=ki(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(ki(r,t,e[o]));return a.join(" ")}}function k1(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var aI=function(r){N(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=$n(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=oI,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ks(this.childAt(0))},t.prototype.downplay=function(){Bs(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Lt(c,v,s,n),xl(c)}if(this._updateCommon(e,n,l,i,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Bt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Ui(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var x=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=E_(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=e.getItemVisual(n,"style"),b=S.fill;if(s instanceof en){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(k({},S)):s.useStyle(S),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var C=o&&o.useNameLabel;Wi(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:b,defaultOpacity:S.opacity});function E(P){return C?e.getName(P):ic(e,P)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I,this.setSymbolScale(1),Ri(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&zs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();zs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return cM(e.getItemVisual(n,"symbolSize"))},t}(Dt);function oI(r,t){this.parent.drift(r,t)}const ac=aI;function nf(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function hg(r){return r!=null&&!W(r)&&(r={isIgnore:r}),r||{}}function vg(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ui(t),cursorStyle:t.get("cursor")}}var sI=function(){function r(t){this.group=new Dt,this._SymbolCtor=t||ac}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=hg(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=vg(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(nf(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!nf(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Lt(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vg(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=hg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(nf(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Tl(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();const lI=sI;function B1(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=uI(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=z(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return jr(t,h[0])&&(c=!0,h[0]=v),jr(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function uI(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ct(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function V1(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function fI(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function hI(r,t,e,n,i,a,o,s){for(var l=fI(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=B1(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,S=void 0,b=void 0;switch(x.cmd){case"=":S=x.idx*2,b=x.idx1*2;var T=y[S],A=y[S+1],M=m[b],C=m[b+1];(isNaN(T)||isNaN(A))&&(T=M,A=C),u.push(T,A),f.push(M,C),h.push(e[S],e[S+1]),c.push(n[b],n[b+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,L=p.dataDimsForPoint,I=i.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);b=E*2,u.push(I[0],I[1]),f.push(m[b],m[b+1]);var P=V1(p,i,t,E);h.push(P[0],P[1]),c.push(n[b],n[b+1]),g.push(t.getRawIndex(E));break;case"-":w=!1}w&&(v.push(x),d.push(d.length))}d.sort(function(At,yt){return g[At]-g[yt]});for(var R=u.length,V=yr(R),O=yr(R),B=yr(R),G=yr(R),U=[],_=0;_<d.length;_++){var q=d[_],et=_*2,ft=q*2;V[et]=u[ft],V[et+1]=u[ft+1],O[et]=f[ft],O[et+1]=f[ft+1],B[et]=h[ft],B[et+1]=h[ft+1],G[et]=c[ft],G[et+1]=c[ft+1],U[_]=v[q]}return{current:V,next:O,stackedOnCurrent:B,stackedOnNext:G,status:U}}var Or=Math.min,Nr=Math.max;function zn(r,t){return isNaN(r)||isNaN(t)}function yh(r,t,e,n,i,a,o,s,l){for(var u,f,h,c,v,d,g=e,p=0;p<n;p++){var y=t[g*2],m=t[g*2+1];if(g>=i||g<0)break;if(zn(y,m)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,x=m-f;if(_*_+x*x<.5){g+=a;continue}if(o>0){for(var w=g+a,S=t[w*2],b=t[w*2+1];S===y&&b===m&&p<n;)p++,w+=a,g+=a,S=t[w*2],b=t[w*2+1],y=t[g*2],m=t[g*2+1],_=y-u,x=m-f;var T=p+1;if(l)for(;zn(S,b)&&T<n;)T++,w+=a,S=t[w*2],b=t[w*2+1];var A=.5,M=0,C=0,E=void 0,L=void 0;if(T>=n||zn(S,b))v=y,d=m;else{M=S-u,C=b-f;var I=y-u,P=S-y,R=m-f,V=b-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(I),B=Math.abs(P);var G=M>0?1:-1;v=y-G*O*o,d=m,E=y+G*B*o,L=m}else if(s==="y"){O=Math.abs(R),B=Math.abs(V);var U=C>0?1:-1;v=y,d=m-U*O*o,E=y,L=m+U*B*o}else O=Math.sqrt(I*I+R*R),B=Math.sqrt(P*P+V*V),A=B/(B+O),v=y-M*o*(1-A),d=m-C*o*(1-A),E=y+M*o*A,L=m+C*o*A,E=Or(E,Nr(S,y)),L=Or(L,Nr(b,m)),E=Nr(E,Or(S,y)),L=Nr(L,Or(b,m)),M=E-y,C=L-m,v=y-M*O/B,d=m-C*O/B,v=Or(v,Nr(u,y)),d=Or(d,Nr(f,m)),v=Nr(v,Or(u,y)),d=Nr(d,Or(f,m)),M=y-v,C=m-d,E=y+M*B/O,L=m+C*B/O}r.bezierCurveTo(h,c,v,d,y,m),h=E,c=L}else r.lineTo(y,m)}u=y,f=m,g+=a}return p}var F1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),vI=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new F1},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&zn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&zn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=yh(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Tr.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,g=void 0,p=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(v-s)*_+s;return u?[e,x]:[x,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var w=u?Es(s,v,g,y,e,f):Es(l,d,p,m,e,f);if(w>0)for(var S=0;S<w;S++){var b=f[S];if(b<=1&&b>=0){var x=u?Ot(l,d,p,m,b):Ot(s,v,g,y,b);return u?[e,x]:[x,e]}}s=y,l=m;break}}},t}(ot),cI=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(F1),dI=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new cI},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&zn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&zn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=yh(e,i,o,s,s,1,n.smooth,l,n.connectNulls);yh(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(ot);function z1(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new bt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=X(i)?function(p){i(p,h)}:null;Bt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,g)}return h}function G1(r,t,e){var n=r.getArea(),i=Ct(n.r0,1),a=Ct(n.r,1),o=new Le({shape:{cx:Ct(r.cx,1),cy:Ct(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Bt(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function pI(r,t,e,n,i){if(r){if(r.type==="polar")return G1(r,t,e);if(r.type==="cartesian2d")return z1(r,t,e,n,i)}else return null;return null}function oc(r,t){return r.type===t}function cg(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function dg(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function pg(r,t){var e=dg(r),n=e[0],i=e[1],a=dg(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function gg(r){return ct(r)?r:r?.5:0}function gI(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=yr(n*2),a=0;a<n;a++){var o=V1(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function kr(r,t,e,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var c=(u[a]+f[a])/2,v=[];l[a]=v[a]=c,l[1-a]=u[1-a],v[1-a]=f[1-a],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function yI(r,t){var e=[],n=r.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=qh(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function mI(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=yI(u,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";D(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new vv(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}function _I(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&xI(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function xI(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(ac.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function SI(r,t){return isNaN(r)||isNaN(t)}function wI(r){for(var t=r.length/2;t>0&&SI(r[t*2-2],r[t*2-1]);t--);return t-1}function yg(r,t){return[r[t*2],r[t*2+1]]}function bI(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function H1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ee.length;t++)if(r.get([Ee[t],"endLabel","show"]))return!0;return!1}function af(r,t,e,n){if(oc(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=H1(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=z1(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),G1(t,e,n)}function TI(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var CI=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Dt,n=new lI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,y=this._lineGroup,m=!n.ssr&&e.isAnimationEnabled(),_=!f.isEmpty(),x=f.get("origin"),w=B1(o,l,x),S=_&&gI(o,l,w),b=e.get("showSymbol"),T=e.get("connectNulls"),A=b&&!c&&_I(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(yt,zt){yt.__temp&&(s.remove(yt),M.setItemGraphicEl(zt,null))}),b||d.remove(),s.add(y);var C=c?!1:e.get("step"),E;o&&o.getArea&&e.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var L=mI(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&v.type===o.type&&C===this._step))b&&d.updateData(l,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[h[yt*2],h[yt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,E),C&&(h=kr(h,o,C,T),S&&(S=kr(S,o,C,T))),g=this._newPolyline(h),_?p=this._newPolygon(h,S):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Un(L)),y.setClipPath(af(this,o,!0,e));else{_&&!p?p=this._newPolygon(h,S):p&&!_&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,Un(L));var I=y.getClipPath();if(I){var P=af(this,o,!1,e);Bt(I,{shape:P.shape},e)}else y.setClipPath(af(this,o,!0,e));b&&d.updateData(l,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(yt){return[h[yt*2],h[yt*2+1]]}}),(!cg(this._stackedOnPoints,S)||!cg(this._points,h))&&(m?this._doUpdateAnimation(l,S,o,i,C,x,T):(C&&(h=kr(h,o,C,T),S&&(S=kr(S,o,C,T))),g.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:S})))}var R=e.getModel("emphasis"),V=R.get("focus"),O=R.get("blurScope"),B=R.get("disabled");if(g.useStyle(Y(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Ua(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=g.getState("emphasis").style;G.lineWidth=+g.style.lineWidth+1}ut(g).seriesIndex=e.seriesIndex,Ri(g,V,O,B);var U=gg(e.get("smooth")),q=e.get("smoothMonotone");if(g.setShape({smooth:U,smoothMonotone:q,connectNulls:T}),p){var et=l.getCalculationInfo("stackedOnSeries"),ft=0;p.useStyle(Y(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),et&&(ft=gg(et.get("smooth"))),p.setShape({smooth:U,stackedOnSmooth:ft,smoothMonotone:q,connectNulls:T}),Ua(p,e,"areaStyle"),ut(p).seriesIndex=e.seriesIndex,Ri(p,V,O,B)}var At=function(yt){a._changePolyState(yt)};l.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=At)}),this._polyline.onHoverStateChange=At,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=h,this._step=C,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Wn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new ac(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else fe.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Wn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else fe.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;xd(this._polyline,e),n&&xd(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new vI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new dI({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=X(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var x=i,w=n.pointToCoord(p);a?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var S=i;a?(y=S.x,m=S.x+S.width,_=v.x):(y=S.y+S.height,m=S.y,_=v.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=X(h)?h(d):f*b+c,A=g.getSymbolPath(),M=A.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(H1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=wI(l);f>=0&&(Wi(s,Ui(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?k1(o,v):ic(o,h)},enableTextSetter:!0},TI(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?g:0)*(m?-1:1),S=(y?0:-g)*(m?-1:1),b=y?"x":"y",T=bI(h,x,b),A=T.range,M=A[1]-A[0],C=void 0;if(M>=1){if(M>1&&!v){var E=yg(h,A[0]);u.attr({x:E[0]+w,y:E[1]+S}),o&&(C=c.getRawValue(A[0]))}else{var E=f.getPointOn(x,b);E&&u.attr({x:E[0]+w,y:E[1]+S});var L=c.getRawValue(A[0]),I=c.getRawValue(A[1]);o&&(C=Im(i,d,L,I,T.t))}a.lastFrameIndex=A[0]}else{var P=e===1||a.lastFrameIndex>0?A[0]:0,E=yg(h,P);o&&(C=c.getRawValue(P)),u.attr({x:E[0]+w,y:E[1]+S})}if(o){var R=$i(u);typeof R.setLabelText=="function"&&R.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=hI(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=kr(c.current,i,o,l),d=kr(c.stackedOnCurrent,i,o,l),g=kr(c.next,i,o,l),p=kr(c.stackedOnNext,i,o,l)),pg(v,g)>3e3||f&&pg(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Lt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Lt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var S=e.getItemGraphicEl(_[x].idx1);S&&m.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<m.length;T++){var A=m[T].el,M=m[T].ptIdx*2;A.x=b[M],A.y=b[M+1],A.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(fe);const DI=CI;function AI(r,t){return{seriesType:r,plan:kv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(!!i){var s=z(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");jr(n,s[0])&&(s[0]=u),jr(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var g=v.end-v.start,p=o&&yr(g*l),y=[],m=[],_=v.start,x=0;_<v.end;_++){var w=void 0;if(l===1){var S=f.get(h,_);w=i.dataToPoint(S,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),w=i.dataToPoint(y,null,m);o?(p[x++]=w[0],p[x++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",p)}}}}}}var MI={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},EI=function(r){return Math.round(r.length/2)};function W1(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;H(a)?d=MI[a]:X(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,EI))}}}}}function LI(r){r.registerChartView(DI),r.registerSeriesModel(iI),r.registerLayout(AI("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,W1("line"))}var U1=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Fl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=o[v],p=n[v]==="x1"||n[v]==="y1";if(p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[p?1:0]);return}for(var y=void 0,m=void 0,_=1,x=0;x<d.length;x++){var w=d[x].coord,S=x===d.length-1?d[x-1].tickValue+_:d[x].tickValue;if(S===g){m=w;break}else if(S<g)y=w;else if(y!=null&&S>g){m=(w+y)/2;break}x===1&&(_=S-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[v]=c.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ie);Ie.registerClass(U1);const mg=U1;var II=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Fl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=O0(mg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(mg);const PI=II;var RI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),OI=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new RI},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(g*o+i,p*o+a),e.arc(g*u+i,p*u+a,l,-Math.PI+f,f,!c)):e.moveTo(g*s+i,p*s+a),e.arc(i,a,s,f,h,!c),e.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(i,a,o,h,f,c)},t}(ot);const _g=OI;function NI(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ps(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,g=u.startAngle,p=u.endAngle,y=(g+p)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,x=Math.sin,w=f+c*_(g),S=h+c*x(g),b="left",T="top";switch(s){case"startArc":w=f+(v-l)*_(y),S=h+(v-l)*x(y),b="center",T="top";break;case"insideStartArc":w=f+(v+l)*_(y),S=h+(v+l)*x(y),b="center",T="bottom";break;case"startAngle":w=f+d*_(g)+es(g,l+m,!1),S=h+d*x(g)+rs(g,l+m,!1),b="right",T="middle";break;case"insideStartAngle":w=f+d*_(g)+es(g,-l+m,!1),S=h+d*x(g)+rs(g,-l+m,!1),b="left",T="middle";break;case"middle":w=f+d*_(y),S=h+d*x(y),b="center",T="middle";break;case"endArc":w=f+(c+l)*_(y),S=h+(c+l)*x(y),b="center",T="bottom";break;case"insideEndArc":w=f+(c-l)*_(y),S=h+(c-l)*x(y),b="center",T="top";break;case"endAngle":w=f+d*_(p)+es(p,l+m,!0),S=h+d*x(p)+rs(p,l+m,!0),b="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+es(p,-l+m,!0),S=h+d*x(p)+rs(p,-l+m,!0),b="right",T="middle";break;default:return Ps(n,i,a)}return n=n||{},n.x=w,n.y=S,n.align=b,n.verticalAlign=T,n}}function kI(r,t,e,n){if(ct(n)){r.setTextConfig({rotation:n});return}else if(F(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function es(r,t,e){return t*Math.sin(r)*(e?-1:1)}function rs(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Da(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(n,function(a){return Kr(a,i)})}}var of=Math.max,sf=Math.min;function BI(r,t){var e=r.getArea&&r.getArea();if(oc(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var VI=function(r){N(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a)):process.env.NODE_ENV!=="production"&&kt("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){Tl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=FI(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,g=BI(u,s);o.removeClipPath();var p=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,S=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function T(C){var E=ns[u.type](s,C),L=YI(u,h,E);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[C]=L,L}s.diff(l).add(function(C){var E=s.getItemModel(C),L=ns[u.type](s,C,E);if(y&&T(C),!(!s.hasValue(C)||!Tg[u.type](L))){var I=!1;d&&(I=xg[u.type](g,L));var P=Sg[u.type](e,s,C,L,h,c,f.model,!1,p);v&&(P.forceLabelAnimation=!0),Cg(P,s,C,E,L,e,h,u.type==="polar"),S?P.attr({shape:L}):v?wg(v,c,P,L,C,h,!1,!1):Bt(P,{shape:L},e,C),s.setItemGraphicEl(C,P),o.add(P),P.ignore=I}}).update(function(C,E){var L=s.getItemModel(C),I=ns[u.type](s,C,L);if(y){var P=void 0;w.length===0?P=T(E):(P=w[E],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[C]=P);var R=ns[u.type](s,C),V=Y1(h,R,u);Lt(P,{shape:V},c,C)}var O=l.getItemGraphicEl(E);if(!s.hasValue(C)||!Tg[u.type](I)){o.remove(O);return}var B=!1;if(d&&(B=xg[u.type](g,I),B&&o.remove(O)),O?xl(O):O=Sg[u.type](e,s,C,I,h,c,f.model,!!O,p),v&&(O.forceLabelAnimation=!0),b){var G=O.getTextContent();if(G){var U=$i(G);U.prevValue!=null&&(U.prevValue=U.value)}}else Cg(O,s,C,L,I,e,h,u.type==="polar");S?O.attr({shape:I}):v?wg(v,c,O,I,C,h,!0,b):Lt(O,{shape:I},e,C,null),s.setItemGraphicEl(C,O),O.ignore=B,o.add(O)}).remove(function(C){var E=l.getItemGraphicEl(C);E&&$a(E,e,C)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new Dt);A.removeAll();for(var M=0;M<x.length;++M)A.add(x[M]);o.add(A),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),Ag(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),Ag(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&pI(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(!!n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){$a(a,e,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(fe),xg={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=of(t.x,r.x),s=sf(t.x+t.width,i),l=of(t.y,r.y),u=sf(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=sf(t.r,r.r),a=of(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Sg={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new bt({shape:k({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?_g:Le,f=new u({shape:n,z2:1});f.name="item";var h=$1(i);if(f.calculateTextPosition=NI(h,{isRoundCap:u===_g}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Lt:Bt)(f,{shape:d},a)}return f}};function FI(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&e&&(n.type!=="category"&&kt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&kt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function wg(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lt:Bt)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Lt:Bt)(e,{shape:u},f,i)}function bg(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var zI=["x","y","width","height"],GI=["cx","cy","r","startAngle","endAngle"],Tg={cartesian2d:function(r){return!bg(r,zI)},polar:function(r){return!bg(r,GI)}},ns={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?WI(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function HI(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function $1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Cg(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Da(n.getModel("itemStyle"),f,!0);k(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ui(n);Wi(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:ic(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,kI(r,p==="outside"?v:p,$1(o),n.get(["label","rotate"]))}PC(g,d,a.getRawValue(e),function(m){return k1(t,m)});var y=n.getModel(["emphasis"]);Ri(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ua(r,n),HI(i)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function WI(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var UI=function(){function r(){}return r}(),Dg=function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new UI},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(ot);function Ag(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Dg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new Dg({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),ut(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Mg),h.on("mousemove",Mg)),e&&e.push(h)}var Mg=kl(function(r){var t=this,e=$I(t,r.offsetX,r.offsetY);ut(t).dataIndex=e>=0?e:null},30,!1);function $I(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Y1(r,t,e){if(oc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function YI(r,t,e){var n=r.type==="polar"?Le:bt;return new n({shape:Y1(t,e,r),silent:!0,z2:0})}const XI=VI;function ZI(r){r.registerChartView(XI),r.registerSeriesModel(PI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,dt(GE,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HE("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,W1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var is=Math.PI*2,Eg=Math.PI/180;function X1(r,t){return Cr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Z1(r,t){var e=X1(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]);var a=Q(e.width,t.getWidth()),o=Q(e.height,t.getHeight()),s=Math.min(a,o),l=Q(i[0],s/2),u=Q(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else F(n)||(n=[n,n]),f=Q(n[0],a)+e.x,h=Q(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function qI(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=X1(n,e),s=Z1(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Eg,v=n.get("minAngle")*Eg,d=0;i.each(a,function(M){!isNaN(M)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var w=is,S=0,b=c,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,C){var E;if(isNaN(M)){i.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?E=g===0&&_?p:M*p:E=is/d,E<v?(E=v,w-=v):S+=M;var L=b+T*E;i.setItemLayout(C,{angle:E,startAngle:b,endAngle:L,clockwise:y,cx:l,cy:u,r0:h,r:m?Li(M,x,[h,f]):f}),b=L}),w<is&&d)if(w<=.001){var A=is/d;i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C);E.angle=A,E.startAngle=c+T*C*A,E.endAngle=c+T*(C+1)*A}})}else p=w/S,b=c,i.each(a,function(M,C){if(!isNaN(M)){var E=i.getItemLayout(C),L=E.angle===v?v:M*p;E.startAngle=b,E.endAngle=b+T*L,b+=T*L}})})}function q1(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var KI=Math.PI/180;function Lg(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],x=Math.abs(_.label.y-e),w=n+_.len,S=w*w,b=Math.sqrt((1-Math.abs(x*x/y))*S),T=t+(b+_.len2)*i,A=T-_.label.x,M=_.targetTextWidth-A*i;K1(_,M,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],x=_.label.y>e?y:p,w=Math.abs(_.label.y-e);if(w>=x.maxY){var S=_.label.x-t-_.len2*i,b=n+_.len,T=Math.abs(S)<b?Math.sqrt(w*w/(1-S*S/b/b)):b;x.rB=T,x.maxY=w}x.list.push(_)}f(p),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}O1(r,l,l+o)&&h(r)}function QI(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;lf(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!lf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,K1(d,p)}}Lg(u,t,e,n,1,i,a,o,s,h),Lg(l,t,e,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!lf(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,x=v.style.backgroundColor?0:_,w=d.rect.width+x,S=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+w+d.labelDistance:g[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(v.x<t?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=v.y}}}function K1(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function lf(r){return r.position==="center"}function jI(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*KI,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var b in S.states)if(S.states[b].ignore===!1)return!0;return!1}t.each(function(S){var b=t.getItemGraphicEl(S),T=b.shape,A=b.getTextContent(),M=b.getTextGuideLine(),C=t.getItemModel(S),E=C.getModel("label"),L=E.get("position")||C.get(["emphasis","label","position"]),I=E.get("distanceToLabelLine"),P=E.get("alignTo"),R=Q(E.get("edgeDistance"),u),V=E.get("bleedMargin"),O=C.getModel("labelLine"),B=O.get("length");B=Q(B,u);var G=O.get("length2");if(G=Q(G,u),Math.abs(T.endAngle-T.startAngle)<o){D(A.states,v),A.ignore=!0,M&&(D(M.states,v),M.ignore=!0);return}if(!!d(A)){var U=(T.startAngle+T.endAngle)/2,q=Math.cos(U),et=Math.sin(U),ft,At,yt,zt;n=T.cx,i=T.cy;var Gt=L==="inside"||L==="inner";if(L==="center")ft=T.cx,At=T.cy,zt="center";else{var It=(Gt?(T.r+T.r0)/2*q:T.r*q)+n,St=(Gt?(T.r+T.r0)/2*et:T.r*et)+i;if(ft=It+q*3,At=St+et*3,!Gt){var Z=It+q*(B+l-T.r),at=St+et*(B+l-T.r),$e=Z+(q<0?-1:1)*G,Nt=at;P==="edge"?ft=q<0?f+R:f+u-R:ft=$e+(q<0?-I:I),At=Nt,yt=[[It,St],[Z,at],[$e,Nt]]}zt=Gt?"center":P==="edge"?q>0?"right":"left":q>0?"left":"right"}var Mr=Math.PI,fr=0,Zi=E.get("rotate");if(ct(Zi))fr=Zi*(Mr/180);else if(L==="center")fr=0;else if(Zi==="radial"||Zi===!0){var Xx=q<0?-U+Mr:-U;fr=Xx}else if(Zi==="tangential"&&L!=="outside"&&L!=="outer"){var jn=Math.atan2(q,et);jn<0&&(jn=Mr*2+jn);var Zx=et>0;Zx&&(jn=Mr+jn),fr=jn-Mr}if(a=!!fr,A.x=ft,A.y=At,A.rotation=fr,A.setStyle({verticalAlign:"middle"}),Gt){A.setStyle({align:zt});var Yl=A.states.select;Yl&&(Yl.x+=A.x,Yl.y+=A.y)}else{var qi=A.getBoundingRect().clone();qi.applyTransform(A.getComputedTransform());var Sc=(A.style.margin||0)+2.1;qi.y-=Sc/2,qi.height+=Sc,e.push({label:A,labelLine:M,position:L,len:B,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new $(q,et),linePoints:yt,textAlign:zt,labelDistance:I,labelAlignTo:P,edgeDistance:R,bleedMargin:V,rect:qi,unconstrainedWidth:qi.width,labelStyleWidth:A.style.width})}b.setTextConfig({inside:Gt})}}),!a&&r.get("avoidLabelOverlap")&&QI(e,n,i,l,u,c,f,h);for(var g=0;g<e.length;g++){var p=e[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(D(y.states,v),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=p.linePoints;_||!w?(D(m.states,v),m.ignore=!0):(I1(w,p.minTurnAngle),XL(w,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new $(w[0][0],w[0][1])})}}}var JI=function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Rt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=k(Da(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Lt(o,{shape:{endAngle:f.endAngle}},s,n))}else xl(o),Lt(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),Ua(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Da(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:g,y:p,shape:Da(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:Da(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:g,y:p}),k(_.ensureState("select"),{x:g,y:p}),Ri(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Wi(a,Ui(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new rn,this.setTextGuideLine(v)),rc(this,nc(o),{stroke:u,opacity:Yr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Le),tP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=new Le({shape:Z1(e,i)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var d=new JI(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var g=s.getItemGraphicEl(d);g.updateData(o,v,u),g.off("click"),l.add(g),o.setItemGraphicEl(v,g)}).remove(function(v){var d=s.getItemGraphicEl(v);$a(d,e,v)}).execute(),jI(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(fe);const eP=tP;function Q1(r,t,e){t=F(t)&&{coordDimensions:t}||k({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Kv(n,t).dimensions,a=new qv(i,r);return a.initData(n,e),a}var rP=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const j1=rP;var nP=xt(),iP=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new j1(vt(this.getData,this),vt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Q1(this,{coordDimensions:["value"],encodeDefaulter:dt(Z0,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=nP(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Tm(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Os(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ie);const aP=iP;function oP(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ct(o)&&!isNaN(o)&&o<0)})}}}function sP(r){r.registerChartView(eP),r.registerSeriesModel(aP),JA("pie",r.registerAction),r.registerLayout(dt(qI,"pie")),r.registerProcessor(q1("pie")),r.registerProcessor(oP("pie"))}var lP=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(st);const uP=lP;var mh=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ue).models[0]},t.type="cartesian2dAxis",t}(st);ne(mh,mo);var J1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fP=rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},J1),sc=rt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},J1),hP=rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sc),vP=Y({logBase:10},sc);const tx={category:fP,value:sc,time:hP,log:vP};var cP={value:1,category:1,time:1,log:1};function eo(r,t,e,n){D(cP,function(i,a){var o=rt(rt({},tx[a],!0),n,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=qa(this),v=c?Il(f):{},d=h.getTheme();rt(f,d.get(a+"Axis")),rt(f,this.getDefaultOption()),f.type=Ig(f),c&&Ni(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dh.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Ig)}function Ig(r){return r.type||(r.data?"category":"value")}var dP=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_t(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const pP=dP;var _h=["x","y"];function Pg(r){return r.type==="interval"||r.type==="time"}var gP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_h,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Pg(e)||!Pg(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Gi([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return te(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return te(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new it(i,a,o,s)},t}(pP),yP=function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ur);const mP=yP;function xh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Sr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function Rg(r){return r.get("coordinateSystem")==="cartesian2d"}function Og(r){var t={xAxisModel:null,yAxisModel:null};return D(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ue).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+Yr(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');t[n]=a}),t}var uf=Math.log;function ex(r,t,e){var n=Yn.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=x1(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=uf(r.base);u=[uf(u[0])/c,uf(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=n.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=ju(d),p=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=ju(d),g=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=ju(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=Ct(p-m),g<0&&u[0]>=0?(g=0,p=Ct(m)):p>0&&u[1]<=0&&(p=0,g=-Ct(m))}var _=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;if(n.setExtent.call(r,g+d*_,p+d*x),n.setInterval.call(r,d),(_||x)&&n.setNiceExtent.call(r,g+d,p-d),process.env.NODE_ENV!=="production"){var w=n.getTicks.call(r);w[1]&&(!RE(d)||Rs(w[1].value)>Rs(d))&&kt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var _P=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_h,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=mt(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,g=v.scale;ph(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Bi(g,d),ph(g)&&(s=v))}f.length&&(s||(s=f.pop(),Bi(s.scale,s.model)),D(f,function(p){ex(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){Ng(n,"y",o,a)}),D(n.y,function(o){Ng(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Cr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=uL(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),xP(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}W(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ue).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",ue).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ht(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,h){D(s.y,function(c,v){var d="x"+h+"y"+v,g=new gP(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function u(f){return function(h,c){if(!!ff(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new mP(f,Wl(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){D(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Rg(i)){var a=Og(i),o=a.xAxisModel,s=a.yAxisModel;if(!ff(o,e)||!ff(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){D(gh(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return D(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ht(e,a)<0&&e.push(a),ht(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(!!Rg(i)){var a=Og(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Yr(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=_h,r}();function ff(r,t){return r.getCoordSysModel()===t}function Ng(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)kg(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&kg(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function kg(r){return r&&r.type!=="category"&&r.type!=="time"&&lL(r)}function xP(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const SP=_P;var Ur=Math.PI,Gn=function(){function r(t,e){this.group=new Dt,this.opt=e,this.axisModel=t,Y(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Dt({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!Bg[t]},r.prototype.add=function(t){Bg[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=Jh(e-t),a,o;return Wa(i)?(o=n>0?"top":"bottom",a="center"):Wa(i-Ur)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ur?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Bg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(te(s,s,o),te(l,l,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ae({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ya(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||ct(v))&&(v=[v,v]);var d=E_(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];D([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=$n(c[m],-g/2,-p/2,g,p,f.stroke,!0),x=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+x*Math.cos(r.rotation),y:w[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=TP(e,n,t,r),a=DP(e,n,t,r);if(bP(t,a,i),CP(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=P1(z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));N1(o)}},axisName:function(r,t,e,n){var i=Sr(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Fg(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*Ur/180);var d;Fg(a)?c=Gn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=wP(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Sr(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Rt({x:h[0],y:h[1],rotation:c.rotation,silent:Gn.isLabelSilent(t),style:or(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(mv({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=Gn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,ut(_).eventData=x}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function wP(r,t,e,n){var i=Jh(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Wa(i-Ur/2)?(o=l?"bottom":"top",a="center"):Wa(i-Ur*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ur*1.5&&i>Ur/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bP(r,t,e){if(!S1(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(_e(a),_e(u)):Vg(a,o)&&(n?(_e(o),_e(f)):(_e(a),_e(u))),i===!1?(_e(s),_e(h)):Vg(l,s)&&(i?(_e(l),_e(c)):(_e(s),_e(h)))}}function _e(r){r&&(r.ignore=!0)}function Vg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=oo([]);return zi(i,i,-r.rotation),e.applyTransform(Xr([],i,r.getLocalTransform())),n.applyTransform(Xr([],i,t.getLocalTransform())),e.intersect(n)}}function Fg(r){return r==="middle"||r==="center"}function rx(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(te(o,o,t),te(s,s,t));var f=new Ae({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ya(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function TP(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=rx(u,t.transform,l,Y(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function CP(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Y(s.getLineStyle(),Y(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=rx(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function DP(r,t,e,n){var i=e.axis,a=Sr(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Sr(n.labelRotate,o.get("rotate"))||0)*Ur/180,f=Gn.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=Gn.isLabelSilent(e),d=e.get("triggerEvent");return D(l,function(g,p){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,x=o;if(h&&h[y]){var w=h[y];W(w)&&w.textStyle&&(x=new Et(w.textStyle,o,e.ecModel))}var S=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(y),T=new Rt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:or(x,{text:m,align:x.getShallow("align",!0)||f.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,fill:X(S)?S(i.type==="category"?_:i.type==="value"?y+"":y,p):S})});if(T.anid="label_"+y,d){var A=Gn.makeAxisEventDataBase(e);A.targetType="axisLabel",A.value=_,A.tickIndex=p,i.type==="category"&&(A.dataIndex=y),ut(T).eventData=A}t.add(T),T.updateTransform(),c.push(T),r.add(T),T.decomposeTransform()}),c}}const Jr=Gn;function AP(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return MP(e,r,t),e.seriesInvolved&&LP(e,r),e}function MP(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ro(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(D(s.getAxes(),dt(g,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&D(d.baseAxes,dt(g,v?"cross":!0,c)),v&&D(d.otherAxes,dt(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!p&&!Sh(_))){y==null&&(y=_.get("triggerTooltip")),_=p?EP(m,h,i,t,p,y):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),b=ro(m.model),T=y||w||m.type==="category",A=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:S,involveSeries:T,snap:w,useHandle:Sh(_),seriesModels:[],linkGroup:null};u[b]=A,r.seriesInvolved=r.seriesInvolved||T;var M=IP(a,m);if(M!=null){var C=o[M]||(o[M]={axesInfo:{}});C.axesInfo[b]=A,C.mapper=a[M].mapper,A.linkGroup=C}}}})}function EP(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(c){l[c]=K(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Y(u,h.textStyle)}}return r.model.getModel("axisPointer",new Et(l,e,n))}function LP(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||D(r.coordSysAxesInfo[ro(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function IP(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(hf(a[n+"AxisId"],e.id)||hf(a[n+"AxisIndex"],e.componentIndex)||hf(a[n+"AxisName"],e.name))return i}}function hf(r,t){return r==="all"||F(r)&&ht(r,t)>=0||r===t}function PP(r){var t=lc(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Sh(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function lc(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ro(r)]}function RP(r){var t=lc(r);return t&&t.axisPointerModel}function Sh(r){return!!r.get(["handle","show"])}function ro(r){return r.type+"||"+r.id}var vf={},OP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&PP(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=RP(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){if(process.env.NODE_ENV!=="production"&&vf[e])throw new Error("axisPointer "+e+" exists");vf[e]=n},t.getAxisPointerClass=function(e){return e&&vf[e]},t.type="axis",t}(Ft);const _o=OP;var wh=xt();function NP(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(!!u.length){var f=s.length,h=wh(r).splitAreaColors,c=j(),v=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=p,x=l.y,w=m-_,S=l.height,p=_+w):(_=l.x,x=p,w=l.width,S=m-x,p=x+S);var b=u[d-1].tickValue;b!=null&&c.set(b,v),t.add(new bt({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:w,height:S},style:Y({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}wh(r).splitAreaColors=c}}}function kP(r){wh(r).splitAreaColors=null}var BP=["axisLine","axisTickLabel","axisName"],VP=["splitArea","splitLine","minorSplitLine"],nx=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=xh(s,e),u=new Jr(e,k({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(ph(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));D(BP,u.add,u),this._axisGroup.add(u.getGroup()),D(VP,function(h){e.get([h,"show"])&&FP[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||wl(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){kP(this)},t.type="cartesianAxis",t}(_o),FP={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=F(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:a}),c=[],v=[],d=o.getLineStyle(),g=0;g<h.length;g++){var p=i.toGlobalCoord(h[g].coord);u?(c[0]=p,c[1]=l.y,v[0]=p,v[1]=l.y+l.height):(c[0]=l.x,c[1]=p,v[0]=l.x+l.width,v[1]=p);var y=f++%s.length,m=h[g].tickValue,_=new Ae({anid:m!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Y({stroke:s[y]},d),silent:!0});Ya(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=i.toGlobalCoord(u[v][d].coord);l?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var p=new Ae({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Ya(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,n){NP(r,t,e,n)}},ix=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(nx),zP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ix.type,e}return t.type="yAxis",t}(nx),GP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:Y({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ft),zg={offset:0};function HP(r){r.registerComponentView(GP),r.registerComponentModel(uP),r.registerCoordinateSystem("cartesian2d",SP),eo(r,"x",mh,zg),eo(r,"y",mh,zg),r.registerComponentView(ix),r.registerComponentView(zP),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var pa=tx.value;function as(r,t){return Y({show:t},r)}var WP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=Y({color:d.color},l));var p=rt(K(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:c},!1);if(H(f)){var y=p.name;p.name=f.replace("{value}",y!=null?y:"")}else X(f)&&(p.name=f(p.name,p));var m=new Et(p,null,this.ecModel);return ne(m,mo.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:rt({lineStyle:{color:"#bbb"}},pa.axisLine),axisLabel:as(pa.axisLabel,!1),axisTick:as(pa.axisTick,!1),splitLine:as(pa.splitLine,!0),splitArea:as(pa.splitArea,!0),indicator:[]},t}(st);const UP=WP;var $P=["axisLine","axisTickLabel","axisName"],YP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Jr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D($P,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),d=F(c)?c:[c],g=F(v)?v:[v],p=[],y=[];function m(P,R,V){var O=V%R.length;return P[O]=P[O]||[],O}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,w=n.cy,S=0;S<_.length;S++){if(f){var b=m(p,d,S);p[b].push(new Qr({shape:{cx:x,cy:w,r:_[S].coord}}))}if(h&&S<_.length-1){var b=m(y,g,S);y[b].push(new vo({shape:{cx:x,cy:w,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,A=z(i,function(P,R){var V=P.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),z(V,function(O){return n.coordToPoint(O.coord,R)})}),M=[],S=0;S<=T;S++){for(var C=[],E=0;E<i.length;E++)C.push(A[E][S]);if(C[0]?C.push(C[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+S),f){var b=m(p,d,S);p[b].push(new rn({shape:{points:C}}))}if(h&&M){var b=m(y,g,S-1);y[b].push(new Kn({shape:{points:C.concat(M)}}))}M=C.slice().reverse()}var L=l.getLineStyle(),I=u.getAreaStyle();D(y,function(P,R){this.group.add(Ce(P,{style:Y({stroke:"none",fill:g[R%g.length]},I),silent:!0}))},this),D(p,function(P,R){this.group.add(Ce(P,{style:Y({fill:"none",stroke:d[R%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Ft);const XP=YP;var ZP=function(r){N(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(ur);const qP=ZP;var KP=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new qP(o,new Yn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=Q(n[0],i),this.cy=Q(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(H(s)||ct(s))&&(s=[0,s]),this.r0=Q(s[0],o),this.r=Q(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();D(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Yn;o.setExtent(0,a),o.setInterval(1),D(n,function(s,l){ex(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const QP=KP;function jP(r){r.registerCoordinateSystem("radar",QP),r.registerComponentModel(UP),r.registerComponentView(XP),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var Gg="\0_ec_interaction_mutex";function JP(r,t,e){var n=ax(r);n[t]=e}function t2(r,t,e){var n=ax(r),i=n[t];i===e&&(n[t]=null)}function ax(r){return r[Gg]||(r[Gg]={})}nn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Yt);var e2={axisPointer:1,tooltip:1,brush:1};function r2(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!e2.hasOwnProperty(n.mainType)&&i&&i.model!==e}var n2=["itemStyle","opacity"],i2=function(r){N(t,r);function t(e,n){var i=r.call(this)||this,a=i,o=new rn,s=new Rt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return t.prototype.updateData=function(e,n,i){var a=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(n2);f=f==null?1:f,i||xl(a),a.useStyle(e.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Bt(a,{style:{opacity:f}},o,n)):Lt(a,{style:{opacity:f},shape:{points:l.points}},o,n),Ua(a,s),this._updateLabel(e,n),Ri(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,h=e.getItemVisual(n,"style"),c=h.fill;Wi(o,Ui(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:h.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var v=f.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new $(v[0][0],v[0][1]):null},Lt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),rc(i,nc(l),{stroke:c})},t}(Kn),a2=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new i2(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);$a(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(fe);const o2=a2;var s2=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new j1(vt(this.getData,this),vt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return Q1(this,{coordDimensions:["value"],encodeDefaulter:dt(Z0,this)})},t.prototype._defaultLabelLine=function(e){Os(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),i=r.prototype.getDataParams.call(this,e),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ie);const l2=s2;function u2(r,t){return Cr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function f2(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=r.count();o<s;o++)i[o]=o;return X(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function h2(r){var t=r.hostModel,e=t.get("orient");r.each(function(n){var i=r.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,c,v,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,h="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),d=[[c,v],[c,v]];else{var g=void 0,p=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(e==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),e==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,y=g-_,c=y-5,h="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,y=g+_,c=y+5,h="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=p-_,v=m-5,h="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=p+_,v=m+5,h="center"):o==="rightTop"?(g=e==="horizontal"?u[3][0]:u[1][0],p=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=p-_,v=m-5,h="center"):(y=g+_,c=y+5,h="top")):o==="rightBottom"?(g=u[2][0],p=u[2][1],e==="horizontal"?(m=p+_,v=m+5,h="center"):(y=g+_,c=y+5,h="bottom")):o==="leftTop"?(g=u[0][0],p=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=p-_,v=m-5,h="center"):(y=g-_,c=y-5,h="right")):o==="leftBottom"?(g=e==="horizontal"?u[1][0]:u[3][0],p=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=p+_,v=m+5,h="center"):(y=g-_,c=y-5,h="right")):(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=p+_,v=m+5,h="center"):(y=g+_,c=y+5,h="left")),e==="horizontal"?(y=g,c=y):(m=p,v=m),d=[[g,p],[y,m]]}l.label={linePoints:d,x:c,y:v,verticalAlign:"middle",textAlign:h,inside:f}})}function v2(r,t){r.eachSeriesByType("funnel",function(e){var n=e.getData(),i=n.mapDimension("value"),a=e.get("sort"),o=u2(e,t),s=e.get("orient"),l=o.width,u=o.height,f=f2(n,a),h=o.x,c=o.y,v=s==="horizontal"?[Q(e.get("minSize"),u),Q(e.get("maxSize"),u)]:[Q(e.get("minSize"),l),Q(e.get("maxSize"),l)],d=n.getDataExtent(i),g=e.get("min"),p=e.get("max");g==null&&(g=Math.min(d[0],0)),p==null&&(p=d[1]);var y=e.get("funnelAlign"),m=e.get("gap"),_=s==="horizontal"?l:u,x=(_-m*(n.count()-1))/n.count(),w=function(I,P){if(s==="horizontal"){var R=n.get(i,I)||0,V=Li(R,[g,p],v,!0),O=void 0;switch(y){case"top":O=c;break;case"center":O=c+(u-V)/2;break;case"bottom":O=c+(u-V);break}return[[P,O],[P,O+V]]}var B=n.get(i,I)||0,G=Li(B,[g,p],v,!0),U;switch(y){case"left":U=h;break;case"center":U=h+(l-G)/2;break;case"right":U=h+l-G;break}return[[U,P],[U+G,P]]};a==="ascending"&&(x=-x,m=-m,s==="horizontal"?h+=l:c+=u,f=f.reverse());for(var S=0;S<f.length;S++){var b=f[S],T=f[S+1],A=n.getItemModel(b);if(s==="horizontal"){var M=A.get(["itemStyle","width"]);M==null?M=x:(M=Q(M,l),a==="ascending"&&(M=-M));var C=w(b,h),E=w(T,h+M);h+=M+m,n.setItemLayout(b,{points:C.concat(E.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);L==null?L=x:(L=Q(L,u),a==="ascending"&&(L=-L));var C=w(b,c),E=w(T,c+L);c+=L+m,n.setItemLayout(b,{points:C.concat(E.slice().reverse())})}}h2(n)})}function c2(r){r.registerChartView(o2),r.registerSeriesModel(l2),r.registerLayout(v2),r.registerProcessor(q1("funnel"))}function d2(r){p2(r),g2(r)}function p2(r){if(!r.parallel){var t=!1;D(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function g2(r){var t=wt(r.parallelAxis);D(t,function(e){if(!!W(e)){var n=e.parallelIndex||0,i=wt(r.parallel)[n];i&&i.parallelAxisDefault&&rt(e,i.parallelAxisDefault,!1)}})}var y2=5,m2=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this._model=e,this._api=i,this._handlers||(this._handlers={},D(_2,function(a,o){i.getZr().on(o,this._handlers[o]=vt(a,this))},this)),Vv(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){Ys(this,"_throttledDispatchExpand"),D(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(k({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ft),_2={mousedown:function(r){cf(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(cf(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>y2)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!cf(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function cf(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const x2=m2;var S2=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&rt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=_t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){e.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(st);const w2=S2;var b2=function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ur);const T2=b2;function C2(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ci(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ci(s,[0,o]),i=a=ci(s,[i,a]),n=0}t[0]=ci(t[0],e),t[1]=ci(t[1],e);var l=df(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=ci(t[n],f);var h;return h=df(t,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-n]=t[n]+l.sign*i),h=df(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function df(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ci(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var pf=D,ox=Math.min,sx=Math.max,Hg=Math.floor,D2=Math.ceil,Wg=Ct,A2=Math.PI,M2=function(){function r(t,e,n){this.type="parallel",this._axesMap=j(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;pf(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new T2(o,Wl(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(!!t.contains(n,e)){var i=n.getData();pf(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Bi(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Cr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,f=os(t.get("axisExpandWidth"),l),h=os(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=os(v[1]-v[0],l),v[1]=v[0]+d;else{d=os(f*(h-1),l);var g=t.get("axisExpandCenter")||Hg(u/2);v=[f*g-d/2],v[1]=v[0]+d}var p=(s-d)/(u-h);p<3&&(p=0);var y=[Hg(Wg(v[0]/f,1))+1,D2(Wg(v[1]/f,1))-1],m=p/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),pf(n,function(o,s){var l=(i.axisExpandable?L2:E2)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:A2/2,vertical:0},h=[u[a].x+t.x,u[a].y+t.y],c=f[a],v=wr();zi(v,v,c),Ei(v,v,h),this._axesLayout[o]={position:h,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(p){s.push(t.mapDimension(p)),l.push(a.get(p).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var c=t.getValues(s,f),v=0,d=o.length;v<d;v++){var g=l[v].getActiveState(c[v]);if(g==="inactive"){h="inactive";break}}}e(h,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return co([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return K(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=h[0]!=null;if(f)c&&f&&s<a*h[0]?(u="jump",l=s-a*h[2]):c&&f&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?C2(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[sx(0,d-v/2)],i[1]=ox(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},r}();function os(r,t){return ox(sx(r,t[0]),t[1])}function E2(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function L2(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(i-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const I2=M2;function P2(r,t){var e=[];return r.eachComponent("parallel",function(n,i){var a=new I2(n,r,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",ue).models[0];n.coordinateSystem=i.coordinateSystem}}),e}var R2={create:P2};const O2=R2;var lx=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Pi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=K(e);if(n)for(var i=n.length-1;i>=0;i--)wm(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=e&&e<=n[a][1])return"active";return"inactive"},t}(st);ne(lx,mo);const Ug=lx;var Xn=!0,no=Math.min,Vi=Math.max,N2=Math.pow,k2=1e4,B2=6,V2=6,$g="globalPan",F2={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},z2={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Yg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},G2=0,H2=function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&J(e),n._zr=e,n.group=new Dt,n._uid="brushController_"+G2++,D(q2,function(i,a){this._handlers[a]=vt(i,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||JP(n,$g,this._uid),D(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=rt(K(Yg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;t2(e,$g,this._uid),D(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};D(e,function(i){n[i.panelId]=K(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!=="production"&&J(this._mounted),e=z(e,function(c){return rt(K(Yg),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new el(i,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var g=a[c]=v!=null?(i[v].__brushOption=d,i[v]):fx(o,ux(o,d));uc(o,g)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),bh(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ue);function ux(r,t){var e=Ul[t.brushType].createCover(r,t);return e.__brushOption=t,vx(e,t),r.group.add(e),e}function fx(r,t){var e=fc(t);return e.endCreating&&(e.endCreating(r,t),vx(t,t.__brushOption)),t}function hx(r,t){var e=t.__brushOption;fc(t).updateCoverShape(r,t,e.range,e)}function vx(r,t){var e=t.z;e==null&&(e=k2),r.traverse(function(n){n.z=e,n.z2=e})}function uc(r,t){fc(t).updateCommon(r,t),hx(r,t)}function fc(r){return Ul[r.__brushOption.brushType]}function hc(r,t,e){var n=r._panels;if(!n)return Xn;var i,a=r._transform;return D(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function cx(r,t){var e=r._panels;if(!e)return Xn;var n=t.__brushOption.panelId;return n!=null?e[n]:Xn}function bh(r){var t=r._covers,e=t.length;return D(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Zn(r,t){var e=z(r._covers,function(n){var i=n.__brushOption,a=K(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function W2(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=N2(i*i+a*a,.5);return o>B2}function dx(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function px(r,t,e,n){var i=new Dt;return i.add(new bt({name:"main",style:vc(e),silent:!0,draggable:!0,cursor:"move",drift:dt(Xg,r,t,i,["n","s","w","e"]),ondragend:dt(Zn,t,{isEnd:!0})})),D(n,function(a){i.add(new bt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:dt(Xg,r,t,i,a),ondragend:dt(Zn,t,{isEnd:!0})}))}),i}function gx(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Vi(i,V2),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,g=h-s,p=d+i,y=g+i;cr(r,t,"main",o,s,d,g),n.transformable&&(cr(r,t,"w",l,u,a,y),cr(r,t,"e",c,u,a,y),cr(r,t,"n",l,u,p,a),cr(r,t,"s",l,v,p,a),cr(r,t,"nw",l,u,a,a),cr(r,t,"ne",c,u,a,a),cr(r,t,"sw",l,v,a,a),cr(r,t,"se",c,v,a,a))}function Th(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(vc(e)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Ch(r,a[0]):$2(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?z2[s]+"-resize":null})})}function cr(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(X2(cc(r,t,[[n,i],[n+a,i+o]])))}function vc(r){return Y({strokeNoScale:!0},r.brushStyle)}function yx(r,t,e,n){var i=[no(r,e),no(t,n)],a=[Vi(r,e),Vi(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function U2(r){return gv(r.group)}function Ch(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=M0(e[t],U2(r));return n[i]}function $2(r,t){var e=[Ch(r,t[0]),Ch(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Xg(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=mx(t,i,a);D(n,function(u){var f=F2[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(yx(s[0][0],s[1][0],s[0][1],s[1][1])),uc(t,e),Zn(t,{isEnd:!1})}function Y2(r,t,e,n){var i=t.__brushOption.range,a=mx(r,e,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),uc(r,t),Zn(r,{isEnd:!1})}function mx(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function cc(r,t,e){var n=cx(r,t);return n&&n!==Xn?n.clipPath(e,r._transform):K(e)}function X2(r){var t=no(r[0][0],r[1][0]),e=no(r[0][1],r[1][1]),n=Vi(r[0][0],r[1][0]),i=Vi(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function Z2(r,t,e){if(!(!r._brushType||K2(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=hc(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Xn||s.panelId===a.panelId)&&Ul[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Dh(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Ah(r,t,e){return r.childOfName("main").contain(t,e)}function _x(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),W2(r)||i){if(a&&!i){o.brushMode==="single"&&bh(r);var l=K(o);l.brushType=Zg(l.brushType,a),l.panelId=a===Xn?null:a.panelId,i=r._creatingCover=ux(r,l),r._covers.push(i)}if(i){var u=Ul[Zg(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(cc(r,i,r._track)),n&&(fx(r,i),u.updateCommon(r,i)),hx(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&hc(r,t,e)&&bh(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Zg(r,t){return r==="auto"?(process.env.NODE_ENV!=="production"&&J(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):r}var q2={mousedown:function(r){if(this._dragging)qg(this,r);else if(!r.target||!r.target.draggable){Dh(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=hc(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(Z2(this,r,n),this._dragging){Dh(r);var i=_x(this,r,n,!1);i&&Zn(this,i)}},mouseup:function(r){qg(this,r)}};function qg(r,t){if(r._dragging){Dh(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=_x(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Zn(r,a)}}function K2(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Ul={lineX:Kg(0),lineY:Kg(1),rect:{createCover:function(r,t){function e(n){return n}return px({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=dx(r);return yx(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){gx(r,t,e,n)},updateCommon:Th,contain:Ah},polygon:{createCover:function(r,t){var e=new Dt;return e.add(new rn({name:"main",style:vc(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Kn({name:"main",draggable:!0,drift:dt(Y2,r,t),ondragend:dt(Zn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:cc(r,t,e)})},updateCommon:Th,contain:Ah}};function Kg(r){return{createCover:function(t,e){return px({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=dx(t),n=no(e[0][r],e[1][r]),i=Vi(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=cx(t,e);if(o!==Xn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),gx(t,e,l,i)},updateCommon:Th,contain:Ah}}const Q2=H2;function j2(r){return r=dc(r),function(t){return yv(t,r)}}function J2(r,t){return r=dc(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function tR(r,t,e){var n=dc(r);return function(i,a){return n.contain(a[0],a[1])&&!r2(i,t,e)}}function dc(r){return it.create(r)}var eR=["axisLine","axisTickLabel","axisName"],rR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new Q2(n.getZr())).on("brush",vt(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!nR(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Dt,this.group.add(this._axisGroup),!!e.get("show")){var s=aR(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,c=l.getAxisLayout(h),v=k({strokeContainThreshold:f},c),d=new Jr(e,v);D(eR,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,i),wl(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=it.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:j2(h),isTargetByCursor:tR(h,s,a),getLinearBrushOtherExtent:J2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(iR(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ft);function nR(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function iR(r){var t=r.axis;return z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function aR(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const oR=rR;var sR={type:"axisAreaSelect",event:"axisAreaSelected"};function lR(r){r.registerAction(sR,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var uR={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fR(r){r.registerComponentView(x2),r.registerComponentModel(w2),r.registerCoordinateSystem("parallel",O2),r.registerPreprocessor(d2),r.registerComponentModel(Ug),r.registerComponentView(oR),eo(r,"parallel",Ug,uR),lR(r)}var Ln=xt(),Qg=K,gf=vt,hR=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Dt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var c=dt(jg,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}ty(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=lc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Ln(t).pointerEl=new MC[a.type](Qg(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Ln(t).labelEl=new Rt(Qg(e.label));t.add(a),Jg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Ln(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Ln(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Jg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=bl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ky(u.event)},onmousedown:gf(this._onHandleDragMove,this,0,0),drift:gf(this._onHandleDragMove,this),ondragend:gf(this._onHandleDragEnd,this)}),n.add(i)),ty(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");F(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Vv(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){jg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,yf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(yf(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(yf(i)),Ln(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ys(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function jg(r,t,e,n){xx(Ln(e).lastProp,n)||(Ln(e).lastProp=n,t?Lt(e,n,r):(e.stopAnimation(),e.attr(n)))}function xx(r,t){if(W(r)&&W(t)){var e=!0;return D(t,function(n,i){e=e&&xx(r[i],n)}),!!e}else return r===t}function Jg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function yf(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function ty(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const Sx=hR;function bx(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function Tx(r,t,e,n,i){var a=e.get("value"),o=Cx(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=go(s.get("padding")||0),u=s.getFont(),f=fl(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),vR(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:or(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function vR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Cx(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:tc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?a=o.replace("{value}",a):X(o)&&(a=o(s))}return a}function Dx(r,t,e){var n=wr();return zi(n,n,e.rotation),Ei(n,n,e.position),co([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function cR(r,t,e,n,i,a){var o=Jr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),Tx(t,n,i,a,{position:Dx(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ax(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function dR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function ey(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var pR=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=ry(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=bx(a),v=gR[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=xh(l.model,i);cR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=xh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Dx(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ry(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(Sx);function ry(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var gR={line:function(r,t,e){var n=Ax([t,e[0]],[t,e[1]],ny(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:dR([t-n/2,e[0]],[n,i],ny(r))}}};function ny(r){return r.dim==="x"?0:1}const yR=pR;var mR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(st);const _R=mR;var mr=xt(),xR=D;function Mx(r,t,e){if(!tt.node){var n=t.getZr();mr(n).records||(mr(n).records={}),SR(n,t);var i=mr(n).records[r]||(mr(n).records[r]={});i.handler=e}}function SR(r,t){if(mr(r).initialized)return;mr(r).initialized=!0,e("click",dt(iy,"click")),e("mousemove",dt(iy,"mousemove")),e("globalout",bR);function e(n,i){r.on(n,function(a){var o=TR(t);xR(mr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),wR(o.pendings,t)})}}function wR(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function bR(r,t,e){r.handler("leave",null,e)}function iy(r,t,e,n){t.handler(r,e,n)}function TR(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Mh(r,t){if(!tt.node){var e=t.getZr(),n=(mr(e).records||{})[r];n&&(mr(e).records[r]=null)}}var CR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Mx("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){Mh("axisPointer",n)},t.prototype.dispose=function(e,n){Mh("axisPointer",n)},t.type="axisPointer",t}(Ft);const DR=CR;function Ex(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Wn(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(z(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var ay=xt();function AR(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||vt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Cs(i)&&(i=Ex({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Cs(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Cs(i),c={},v={},d={list:[],map:{}},g={showPointer:dt(ER,v),showTooltip:dt(LR,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);D(s.coordSysAxesInfo[m],function(x,w){var S=x.axis,b=OR(u,x);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=S.pointToData(i)),T!=null&&oy(x,T,g,!1,c)}})});var p={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(x,w){var S=v[w];if(x!==y&&S){var b=S.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,sy(x),sy(y)))),p[y.key]=b}})}),D(p,function(y,m){oy(f[m],y,g,!0,c)}),IR(v,f,c),PR(d,i,r,o),RR(f,o,e),c}}function oy(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=MR(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function MR(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=h,a.length=0),D(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function ER(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function LR(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=ro(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function IR(r,t,e){var n=e.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function PR(r,t,e,n){if(Cs(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function RR(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=ay(n)[i]||{},o=ay(n)[i]={};D(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&D(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];D(a,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function OR(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function sy(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Cs(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $l(r){_o.registerAxisPointerClass("CartesianAxisPointer",yR),r.registerComponentModel(_R),r.registerComponentView(DR),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=AP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},AR)}function NR(r){sr(HP),sr($l)}var kR=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(n),c=a.get("type");if(c&&c!=="none"){var v=bx(a),d=VR[c](s,l,h,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var g=a.get(["label","margin"]),p=BR(n,i,a,l,g);Tx(e,i,a,o,p)},t}(Sx);function BR(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var c=wr();zi(c,c,s),Ei(c,c,[n.cx,n.cy]),u=co([o,-i],c);var v=t.getModel("axisLabel").get("rotate")||0,d=Jr.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var p=n.cx,y=n.cy;f=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",h=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var VR={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:Ax(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:ey(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:ey(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const FR=kR;var zR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(st);const GR=zR;var pc=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ue).models[0]},t.type="polarAxis",t}(st);ne(pc,mo);var HR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(pc),WR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(pc),gc=function(r){N(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(ur);gc.prototype.dataToRadius=ur.prototype.dataToCoord;gc.prototype.radiusToData=ur.prototype.coordToData;const UR=gc;var $R=xt(),yc=function(r){N(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=fl(s==null?"":s+"",n.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),d=$R(e.model),g=d.lastAutoInterval,p=d.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(ur);yc.prototype.dataToAngle=ur.prototype.dataToCoord;yc.prototype.angleToData=ur.prototype.coordToData;const YR=yc;var Lx=["radius","angle"],XR=function(){function r(t){this.dimensions=Lx,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UR,this._angleAxis=new YR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.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},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,c=this.r0;return f<=h*h&&f>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var i=ly(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=ly(e);return i===this?this.pointToData(n):null},r}();function ly(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const ZR=XR;function qR(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=Q(n[0],i),r.cy=Q(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:F(l)||(l=[0,l]);var u=[Q(l[0],s),Q(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function KR(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();D(gh(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(gh(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Bi(n.scale,n.model),Bi(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function QR(r){return r.mainType==="angleAxis"}function uy(r,t){if(r.type=t.get("type"),r.scale=Wl(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),QR(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var jR={dimensions:Lx,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new ZR(i+"");a.update=KR;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");uy(o,l),uy(s,u),qR(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",ue).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Sr(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=i.coordinateSystem}}),e}};const JR=jR;var tO=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ss(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function ls(r){var t=r.getRadiusAxis();return t.inverse?0:1}function fy(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var eO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=z(i.getViewLabels(),function(f){f=K(f);var h=i.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(c),f});fy(u),fy(s),D(tO,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&rO[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(_o),rO={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=ls(e),l=s?0:1,u;a[l]===0?u=new Qr({shape:{cx:e.cx,cy:e.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new vo({shape:{cx:e.cx,cy:e.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[ls(e)],u=z(n,function(f){return new Ae({shape:ss(e,[l,l+s],f.coord)})});r.add(Ce(u,{style:Y(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(!!i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[ls(e)],f=[],h=0;h<i.length;h++)for(var c=0;c<i[h].length;c++)f.push(new Ae({shape:ss(e,[u,u+l],i[h][c].coord)}));r.add(Ce(f,{style:Y(s.getModel("lineStyle").getLineStyle(),Y(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(h,c){var v=l,d=h.tickValue,g=a[ls(e)],p=e.coordToPoint([g+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(p[0]-y)/g<.3?"center":p[0]>y?"left":"right",x=Math.abs(p[1]-m)/g<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];W(w)&&w.textStyle&&(v=new Et(w.textStyle,l,l.ecModel))}var S=new Rt({silent:Jr.isLabelSilent(t),style:or(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:x})});if(r.add(S),f){var b=Jr.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=h.rawLabel,ut(S).eventData=b}},this)},splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<n.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Ae({shape:ss(e,a,n[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Ce(f[h],{style:Y({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,i,a){if(!!i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new Ae({shape:ss(e,a,i[u][f].coord)}));r.add(Ce(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,i,a){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-n[0].coord*h,v=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),g=t.get("clockwise"),p=1,y=n.length;p<=y;p++){var m=p===y?n[0].coord:n[p].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Le({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:c,endAngle:-m*h,clockwise:g},silent:!0})),c=-m*h}for(var p=0;p<f.length;p++)r.add(Ce(f[p],{style:Y({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};const nO=eO;var iO=["axisLine","axisTickLabel","axisName"],aO=["splitLine","splitArea","minorSplitLine"],oO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new Dt;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=lO(s,e,h),d=new Jr(e,v);D(iO,d.add,d),a.add(d.getGroup()),wl(i,a,e),D(aO,function(g){e.get([g,"show"])&&!o.scale.isBlank()&&sO[g](this.group,e,s,h,c,u,f)},this)}},t.type="radiusAxis",t}(_o),sO={splitLine:function(r,t,e,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<a.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Qr({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[h].coord,0)}}))}for(var h=0;h<f.length;h++)r.add(Ce(f[h],{style:Y({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,i,a,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Qr({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(Ce(u,{style:Y({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,i,a){if(!!a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=a[0].coord,c=1;c<a.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Le({shape:{cx:e.cx,cy:e.cy,r0:h,r:a[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[c].coord}for(var c=0;c<f.length;c++)r.add(Ce(f[c],{style:Y({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function lO(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const uO=oO;function Ix(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Px(r,t){return t.dim+r.model.componentIndex}function fO(r,t,e){var n={},i=hO(_t(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=Px(s,l),f=Ix(a),h=i[u][f],c=h.offset,v=h.width,d=s.getOtherAxis(l),g=a.coordinateSystem.cx,p=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),w=jr(o,_),S=l.dim!=="radius"||!a.get("roundCap",!0),b=d.dataToCoord(0),T=0,A=o.count();T<A;T++){var M=o.get(_,T),C=o.get(x,T),E=M>=0?"p":"n",L=b;w&&(n[f][C]||(n[f][C]={p:b,n:b}),L=n[f][C][E]);var I=void 0,P=void 0,R=void 0,V=void 0;if(d.dim==="radius"){var O=d.dataToCoord(M)-b,B=l.dataToCoord(C);Math.abs(O)<y&&(O=(O<0?-1:1)*y),I=L,P=L+O,R=B-c,V=R-v,w&&(n[f][C][E]=P)}else{var G=d.dataToCoord(M,S)-b,U=l.dataToCoord(C);Math.abs(G)<m&&(G=(G<0?-1:1)*m),I=U+c,P=I+v,R=L,V=L+G,w&&(n[f][C][E]=V)}o.setItemLayout(T,{cx:g,cy:p,r0:I,r:P,startAngle:-R*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:R>=V})}}})}function hO(r){var t={};D(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Px(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;t[l]=h;var v=Ix(n);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var d=Q(n.get("barWidth"),f),g=Q(n.get("barMaxWidth"),f),p=n.get("barGap"),y=n.get("barCategoryGap");d&&!c[v].width&&(d=Math.min(h.remainedWidth,d),c[v].width=d,h.remainedWidth-=d),g&&(c[v].maxWidth=g),p!=null&&(h.gap=p),y!=null&&(h.categoryGap=y)});var e={};return D(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=Q(n.categoryGap,o),l=Q(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),D(a,function(g,p){var y=g.maxWidth;y&&y<h&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;D(a,function(g,p){g.width||(g.width=h),v=g,c+=g.width*(1+l)}),v&&(c-=v.width*l);var d=-c/2;D(a,function(g,p){e[i][p]=e[i][p]||{offset:d,width:g.width},d+=g.width*(1+l)})}),e}var vO={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cO={splitNumber:5},dO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Ft);function pO(r){sr($l),_o.registerAxisPointerClass("PolarAxisPointer",FR),r.registerCoordinateSystem("polar",JR),r.registerComponentModel(GR),r.registerComponentView(dO),eo(r,"angle",HR,vO),eo(r,"radius",WR,cO),r.registerComponentView(nO),r.registerComponentView(uO),r.registerLayout(dt(fO,"bar"))}function gO(r,t){var e=go(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new bt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var yO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(st);const mO=yO;function Rx(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Ox(r){if(!!tt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var Nx=Ox(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_O=Ox(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kx(r,t){if(!r)return t;t=Dv(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function xO(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var SO=kx(_O,"transition"),mc=kx(Nx,"transform"),wO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tt.transform3dSupported?"will-change:transform;":"");function bO(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function TO(r,t,e){if(!H(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Un(t);var a=bO(e),o=Math.max(Math.round(i)*1.5,6),s="",l=mc+":",u;ht(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function CO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=tt.transformSupported?","+mc+n:",left"+n+",top"+n),SO+":"+i}function hy(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+mc+":"+o+";":[["top",0],["left",0],[Nx,o]]}function DO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function AO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=x_(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(CO(i,e)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(v){var d="border-"+v,g=Dv(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(DO(f)),h!=null&&n.push("padding:"+go(h).join("px ")+"px"),n.join(";")+";"}function vy(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&ES(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var MO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;vy(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Se(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=xO(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=wO+AO(t,!this._firstShow,this._longHide)+hy(a[0],a[1],!0)+("border-color:"+Un(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(a)&&n.get("trigger")==="item"&&!Rx(n)&&(s=TO(n,i,a)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var l=0;l<t.length;l++)Ai(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(vy(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=hy(n[0],n[1]);D(a,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",tt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const EO=MO;var LO=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),dy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;W(t)&&lt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Rt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:x_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=cy(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;dy(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=Vr(a.borderWidth||0),s=cy(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Vr(r){return Math.max(0,r)}function cy(r){var t=Vr(r.shadowBlur||0),e=Vr(r.shadowOffsetX||0),n=Vr(r.shadowOffsetY||0);return{left:Vr(t-e),right:Vr(t+e),top:Vr(t-n),bottom:Vr(t+n)}}function dy(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const IO=LO;var PO=new bt({shape:{x:-1,y:-1,width:2,height:2}}),RO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(tt.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=bb(i.get("renderMode"));this._tooltipContent=a==="richText"?new IO(n):new EO(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(e,n,i){if(!(tt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Vv(this,"_updatePosition",50,"fixRate"):Ys(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");Mx("itemTooltip",this._api,vt(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=py(a,i);this._ticket="";var s=a.dataByCoordSys,l=BO(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=PO;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=Ex(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(py(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=ga([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;Ca(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=vt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ga([n.tooltipOption],a),l=this._renderMode,u=[],f=Qa("section",{blocks:[],noHeader:!0}),h=[],c=new zu;D(e,function(m){D(m.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var S=Cx(w,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=Qa("section",{header:S,noHeader:!ze(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),D(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,C=A.getDataParams(M);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=tc(x.axis,{value:w}),C.axisValueLabel=S,C.marker=c.makeTooltipMarker("item",Un(C.color),l);var E=lp(A.formatTooltip(M,!0,null)),L=E.frag;if(L){var I=ga([A],a).get("valueFormatter");b.blocks.push(I?k({valueFormatter:I},L):L)}E.text&&h.push(E.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=dp(f,c,l,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?`
43
+
44
+ `:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=ga([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new zu;y.marker=m.makeTooltipMarker("item",Un(y.color),v);var _=lp(u.formatTooltip(f,!1,h)),x=g.get("order"),w=g.get("valueFormatter"),S=_.frag,b=S?dp(w?k({valueFormatter:w},S):S,m,v,x,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(H(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,c=ga(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new zu;this._showOrMove(c,function(){var p=K(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=po(y.axisValue,v,p)),v=Av(v,i,!0)}else if(X(c)){var _=vt(function(x,w){x===this._ticket&&(h.setContent(w,f,e,g,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),X(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(n))i=Q(n[0],u),a=Q(n[1],f);else if(W(n)){var g=n;g.width=h[0],g.height=h[1];var p=Cr(g,{width:u,height:f});i=p.x,a=p.y,c=null,v=null}else if(H(n)&&l){var y=kO(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=OO(i,a,o,u,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=gy(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=gy(v)?h[1]/2:v==="bottom"?h[1]:0),Rx(e)){var y=NO(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&D(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&D(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){tt.node||!n.getDom()||(Ys(this,"_updatePosition"),this._tooltipContent.dispose(),Mh("itemTooltip",n))},t.type="tooltip",t}(Ft);function ga(r,t,e){var n=t.ecModel,i;e?(i=new Et(e,n,n),i=new Et(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Et&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(i=new Et(o,i,n)))}return i}function py(r,t){return r.dispatchAction||vt(t.dispatchAction,t)}function OO(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function NO(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function kO(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function gy(r){return r==="center"||r==="middle"}function BO(r,t,e){var n=nv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ho(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const VO=RO;function FO(r){sr($l),r.registerComponentModel(mO),r.registerComponentView(VO),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yt)}var zO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(st),GO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Rt({style:or(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Rt({style:or(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Ud(d,"_"+e.get("target"))}),g&&v.on("click",function(){Ud(g,"_"+e.get("subtarget"))}),ut(f).eventData=ut(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Cr(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),v.setStyle(x),y=a.getBoundingRect();var w=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var b=new bt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(Ft);function HO(r){r.registerComponentModel(zO),r.registerComponentView(GO)}var WO=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},UO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),F(n)&&D(n,function(a,o){H(a)&&(a={type:a}),n[o]=rt(a,WO(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&rv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=j(),s=z(a,function(l){return(H(l)||ct(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Et(l,this,this.ecModel))},this);this._data=_t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;D(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;D(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;D(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&ht(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(st);const Eh=UO;var di=dt,Lh=D,us=Dt,$O=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new us),this.group.add(this._selectorGroup=new us),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=Cr(f,h,c),d=this.layoutInner(e,o,v,a,l,u),g=Cr(Y({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gO(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=j(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Lh(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
45
+ `)){var p=new us;p.newline=!0,u.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),S=this._createItem(y,g,d,v,n,e,_,w,x,h,a);S.on("click",di(yy,g,null,a,c)).on("mouseover",di(Ih,y.name,null,a,c)).on("mouseout",di(Ph,y.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(b){if(!f.get(g)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(g))return;var A=T.indexOfName(g),M=T.getItemVisual(A,"style"),C=T.getItemVisual(A,"legendIcon"),E=pe(M.fill);E&&E[3]===0&&(E[3]=.2,M=k(k({},M),{fill:tn(E,"rgba")}));var L=this._createItem(b,g,d,v,n,e,{},M,C,h,a);L.on("click",di(yy,null,g,a,c)).on("mouseover",di(Ih,null,g,a,c)).on("mouseout",di(Ph,null,g,a,c)),f.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Lh(e,function(u){var f=u.type,h=new Rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Wi(h,{normal:c,emphasis:v},{defaultText:u.title}),Vs(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=YO(f,a,l,u,v,p,c),w=new us,S=a.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(XO({itemWidth:d,itemHeight:g,icon:f,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,A=s,M=o.get("formatter"),C=n;H(M)&&M?C=M.replace("{name}",n!=null?n:""):X(M)&&(C=M(n));var E=p?S.getTextColor():a.get("inactiveColor");w.add(new Rt({style:or(S,{text:C,x:T,y:g/2,fill:E,align:A,verticalAlign:"middle"},{inheritColor:E})}));var L=new bt({shape:w.getBoundingRect(),invisible:!0}),I=a.getModel("tooltip");return I.get("show")&&mv({el:L,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(L),w.eachChild(function(P){P.silent=!0}),L.silent=!h,this.getContentGroup().add(w),Vs(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ra(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ra("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ft);function YO(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Lh(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:fh(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function XO(r){var t=r.icon||"roundRect",e=$n(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function yy(r,t,e,n){Ph(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Ih(r,t,e,n)}function Bx(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Ih(r,t,e,n){Bx(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Ph(r,t,e,n){Bx(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const Vx=$O;function ZO(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function ya(r,t,e){var n={},i=r==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
46
+ `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function qO(r){r.registerAction("legendToggleSelect","legendselectchanged",dt(ya,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",dt(ya,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",dt(ya,"inverseSelect")),r.registerAction("legendSelect","legendselected",dt(ya,"select")),r.registerAction("legendUnSelect","legendunselected",dt(ya,"unSelect"))}function Fx(r){r.registerComponentModel(Eh),r.registerComponentView(Vx),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,ZO),r.registerSubTypeDefaulter("legend",function(){return"plain"}),qO(r)}var KO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=Il(e);r.prototype.init.call(this,e,n,i),my(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),my(this,this.option,e)},t.type="legend.scroll",t.defaultOption=O0(Eh.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}),t}(Eh);function my(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,Ni(t,e,{type:"box",ignoreSize:!!i})}const QO=KO;var _y=Dt,mf=["width","height"],_f=["x","y"],jO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new _y),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new _y)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=F(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Rt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=bl(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:vt(u._pageGo,u,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=mf[u],h=_f[u],c=mf[1-u],v=_f[1-u];o&&Ra("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],y=K(i);o&&(y[f]=i[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-u]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Ra(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Ra("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],g){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new bt({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Lt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},g?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=mf[o],l=_f[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=x(h);d.contentPosition[o]=-g.s;for(var p=u+1,y=g,m=g,_=null;p<=c;++p)_=x(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=x(f[p]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(S){if(S){var b=S.getBoundingRect(),T=b[l]+S[l];return{s:T,e:T+b[s],i:S.__legendDataIndex}}}function w(S,b){return S.e>=b&&S.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Vx);const JO=jO;function tN(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function eN(r){sr(Fx),r.registerComponentModel(QO),r.registerComponentView(JO),tN(r)}function rN(r){sr(Fx),sr(eN)}var xy={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},nN=function(){function r(t){var e=this._condVal=H(t)?new RegExp(t):Hh(t)?t:null;if(e==null){var n="";process.env.NODE_ENV!=="production"&&(n=he("Illegal regexp",t,"in")),lt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):ct(e)?this._condVal.test(t+""):!1},r}(),iN=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),aN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),oN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),sN=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),lN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r}();function _c(r,t){if(r===!0||r===!1){var e=new iN;return e.value=r,e}var n="";return zx(r)||(process.env.NODE_ENV!=="production"&&(n=he("Illegal config. Expect a plain object but actually",r)),lt(n)),r.and?Sy("and",r,t):r.or?Sy("or",r,t):r.not?uN(r,t):fN(r,t)}function Sy(r,t,e){var n=t[r],i="";process.env.NODE_ENV!=="production"&&(i=he('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",t)),F(n)||lt(i),n.length||lt(i);var a=r==="and"?new aN:new oN;return a.children=z(n,function(o){return _c(o,e)}),a.children.length||lt(i),a}function uN(r,t){var e=r.not,n="";process.env.NODE_ENV!=="production"&&(n=he('"not" condition should only be `not: {}`.',"Illegal condition:",r)),zx(e)||lt(n);var i=new sN;return i.child=_c(e,t),i.child||lt(n),i}function fN(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=mt(r),o=r.parser,s=o?l_(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=ar(xy,u)?xy[u]:u,h=r[u],c=s?s(h):h,v=QD(f,c)||f==="reg"&&new nN(c);v||(process.env.NODE_ENV!=="production"&&(e=he('Illegal relational operation: "'+u+'" in condition:',r)),lt(e)),i.push(v)}}i.length||(process.env.NODE_ENV!=="production"&&(e=he("Relational condition must have at least one operator.","Illegal condition:",r)),lt(e));var d=new lN;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function zx(r){return W(r)&&!Xt(r)}var hN=function(){function r(t,e){this._cond=_c(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function vN(r,t){return new hN(r,t)}var cN={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=vN(r.config,{valueGetterAttrMap:j({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ar(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=he('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),lt(l));var f=t.getDimensionInfo(u);return f||(process.env.NODE_ENV!=="production"&&(l=he("Can not find dimension info via: "+u+`.
47
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
48
+ `,"Illegal condition:",s,`.
49
+ `)),lt(l)),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},Rh="";process.env.NODE_ENV!=="production"&&(Rh=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var dN={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=wt(e);i.length||(process.env.NODE_ENV!=="production"&&(n="Empty `config` in sort transform."),lt(n));var a=[];D(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "dimension" specified.'+Rh),lt(n)),c!=="asc"&&c!=="desc"&&(process.env.NODE_ENV!=="production"&&(n='Sort transform config must has "order" specified.'+Rh),lt(n)),d&&d!=="min"&&d!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+d+'".'),lt(g)}if(c!=="asc"&&c!=="desc"){var p="";process.env.NODE_ENV!=="production"&&(p='order must be "asc" or "desc" rather than "'+c+'".'),lt(p)}var y=t.getDimensionInfo(h);y||(process.env.NODE_ENV!=="production"&&(n=he("Can not find dimension info via: "+h+`.
50
+ `,"Existing dimensions: ",t.cloneAllDimensionInfo(),`.
51
+ `,"Illegal config:",f,`.
52
+ `)),lt(n));var m=v?l_(v):null;v&&!m&&(process.env.NODE_ENV!=="production"&&(n=he("Invalid parser name "+v+`.
53
+ `,"Illegal config:",f,`.
54
+ `)),lt(n)),a.push({dimIdx:y.index,parser:m,comparator:new f_(c,d)})});var o=t.sourceFormat;o!==re&&o!==Oe&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),lt(n));for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function pN(r){r.registerTransform(cN),r.registerTransform(dN)}var gN=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new d_(this),vp(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),vp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:nr},t}(st),yN=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Ft);function mN(r){r.registerComponentModel(gN),r.registerComponentView(yN)}var Ke=Tr.CMD;function Si(r,t){return Math.abs(r-t)<1e-5}function Oh(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function u(L,I){i&&i.length>2&&n.push(i),i=[L,I]}function f(L,I,P,R){Si(L,P)&&Si(I,R)||i.push(L,I,P,R,P,R)}function h(L,I,P,R,V,O){var B=Math.abs(I-L),G=Math.tan(B/4)*4/3,U=I<L?-1:1,q=Math.cos(L),et=Math.sin(L),ft=Math.cos(I),At=Math.sin(I),yt=q*V+P,zt=et*O+R,Gt=ft*V+P,It=At*O+R,St=V*G*U,Z=O*G*U;i.push(yt-St*et,zt+Z*q,Gt+St*At,It-Z*ft,Gt,It)}for(var c,v,d,g,p=0;p<e;){var y=t[p++],m=p===1;switch(m&&(a=t[p],o=t[p+1],s=a,l=o,(y===Ke.L||y===Ke.C||y===Ke.Q)&&(i=[s,l])),y){case Ke.M:a=s=t[p++],o=l=t[p++],u(s,l);break;case Ke.L:c=t[p++],v=t[p++],f(a,o,c,v),a=c,o=v;break;case Ke.C:i.push(t[p++],t[p++],t[p++],t[p++],a=t[p++],o=t[p++]);break;case Ke.Q:c=t[p++],v=t[p++],d=t[p++],g=t[p++],i.push(a+2/3*(c-a),o+2/3*(v-o),d+2/3*(c-d),g+2/3*(v-g),d,g),a=d,o=g;break;case Ke.A:var _=t[p++],x=t[p++],w=t[p++],S=t[p++],b=t[p++],T=t[p++]+b;p+=1;var A=!t[p++];c=Math.cos(b)*w+_,v=Math.sin(b)*S+x,m?(s=c,l=v,u(s,l)):f(a,o,c,v),a=Math.cos(T)*w+_,o=Math.sin(T)*S+x;for(var M=(A?-1:1)*Math.PI/2,C=b;A?C>T:C<T;C+=M){var E=A?Math.max(C+M,T):Math.min(C+M,T);h(C,E,_,x,w,S)}break;case Ke.R:s=a=t[p++],l=o=t[p++],c=s+t[p++],v=l+t[p++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case Ke.Z:i&&f(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function Nh(r,t,e,n,i,a,o,s,l,u){if(Si(r,e)&&Si(t,n)&&Si(i,o)&&Si(a,s)){l.push(o,s);return}var f=2/u,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,x=y*y+m*m;if(_<h&&x<h){l.push(o,s);return}var w=c*g+v*p,S=-c*y-v*m,b=_-w*w,T=x-S*S;if(b<h&&w>=0&&T<h&&S>=0){l.push(o,s);return}var A=[],M=[];qr(r,e,i,o,.5,A),qr(t,n,a,s,.5,M),Nh(A[0],M[0],A[1],M[1],A[2],M[2],A[3],M[3],l,u),Nh(A[4],M[4],A[5],M[5],A[6],M[6],A[7],M[7],l,u)}function _N(r,t){var e=Oh(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var f=a[u++],h=a[u++],c=a[u++],v=a[u++],d=a[u++],g=a[u++];Nh(s,l,f,h,c,v,d,g,o,t),s=d,l=g}n.push(o)}return n}function Gx(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=e-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function wy(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,f=l>Math.abs(u),h=Gx([l,u],f?0:1,t),c=(f?s:u)/h.length,v=0;v<h.length;v++)for(var d=(f?u:s)/h[v],g=0;g<h[v];g++){var p={};f?(p.startAngle=a+c*v,p.endAngle=a+c*(v+1),p.r0=n+d*g,p.r=n+d*(g+1)):(p.startAngle=a+d*g,p.endAngle=a+d*(g+1),p.r0=n+c*v,p.r=n+c*(v+1)),p.clockwise=r.clockwise,p.cx=r.cx,p.cy=r.cy,e.push(p)}}function xN(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=Gx([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],d=0;d<o[c];d++){var g={};g[u]=c*h,g[f]=d*v,g[s]=h,g[l]=v,g.x+=r.x,g.y+=r.y,e.push(g)}}function by(r,t,e,n){return r*n-e*t}function SN(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=by(f,h,l,u);if(Math.abs(c)<1e-6)return null;var v=r-i,d=t-a,g=by(v,d,f,h)/c;return g<0||g>1?null:new $(g*l+r,g*u+t)}function wN(r,t,e){var n=new $;$.sub(n,e,t),n.normalize();var i=new $;$.sub(i,r,t);var a=i.dot(n);return a}function pi(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function bN(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=SN(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:wN(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(p,y){return p.projPt-y.projPt});var u=i[0],f=i[i.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[c],g=[v],a=u.idx+1;a<=f.idx;a++)pi(d,r[a].slice());pi(d,v),pi(d,c);for(var a=f.idx+1;a<=u.idx+n;a++)pi(g,r[a%n].slice());return pi(g,c),pi(g,v),[{points:d},{points:g}]}function Ty(r){var t=r.points,e=[],n=[];Fm(t,e,n);var i=new it(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new $,f=new $;return a>o?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),bN(t,u,f)}function il(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);il(r,a[0],i,n),il(r,a[1],e-i,n)}return n}function TN(r,t){for(var e=[],n=0;n<t;n++)e.push(uv(r));return e}function CN(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function DN(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function AN(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":xN(n,t,e),i=bt;break;case"sector":wy(n,t,e),i=Le;break;case"circle":wy({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=Le;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=z(_N(r.getUpdatedPathProxy(),o),function(y){return DN(y)}),l=s.length;if(l===0)il(Ty,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,h=z(s,function(y){var m=[],_=[];Fm(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return f+=x,{poly:y,area:x}});h.sort(function(y,m){return m.area-y.area});for(var c=t,u=0;u<l;u++){var v=h[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(v.area/f*t);d<0||(il(Ty,{points:v.poly},d,e),c-=d)}}i=Kn;break}if(!i)return TN(r,t);for(var g=[],u=0;u<e.length;u++){var p=new i;p.setShape(e[u]),CN(r,p),g.push(p)}return g}function MN(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],c=l,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],y=o[v++],m=o[v++],_=o[v++],x=o[v++],w=o[v++];if(c<=0){h.push(p,y,m,_,x,w);continue}for(var S=Math.min(c,f-1)+1,b=1;b<=S;b++){var T=b/S;qr(d,p,m,x,T,i),qr(g,y,_,w,T,a),d=i[3],g=a[3],h.push(i[1],a[1],i[2],a[2],d,g),p=i[5],y=a[5],m=i[6],_=a[6]}c-=S-1}return o===r?[h,t]:[r,h]}function Cy(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function EN(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,h=void 0;l?u?(e=MN(l,u),f=e[0],h=e[1],n=f,i=h):(h=Cy(i||l,l),f=l):(f=Cy(n||u,u),h=u),a.push(f),o.push(h)}return[a,o]}function Dy(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],f=r[a+1],h=s*f-u*l;t+=h,e+=(s+u)*h,n+=(l+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function LN(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,u=0;u<i;u++){for(var f=u*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,d=r[v]-e[0],g=r[v+1]-e[1],p=t[c]-n[0],y=t[c+1]-n[1],m=p-d,_=y-g;h+=m*m+_*_}h<a&&(a=h,o=u)}return o}function IN(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function PN(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],u=Dy(s),f=Dy(l);a==null&&(a=u[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,g=[],p=s.length;a&&(s=IN(s));for(var y=LN(s,l,u,f)*6,m=p-2,_=0;_<m;_+=2){var x=(y+_)%m+2;h[_+2]=s[x]-u[0],h[_+3]=s[x+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],e>0)for(var w=n/e,S=-n/2;S<=n/2;S+=w){for(var b=Math.sin(S),T=Math.cos(S),A=0,_=0;_<s.length;_+=2){var M=h[_],C=h[_+1],E=l[_]-f[0],L=l[_+1]-f[1],I=E*T-L*b,P=E*b+L*T;g[_]=I,g[_+1]=P;var R=I-M,V=P-C;A+=R*R+V*V}if(A<d){d=A,v=S;for(var O=0;O<g.length;O++)c[O]=g[O]}}else for(var B=0;B<p;B+=2)c[B]=l[B]-f[0],c[B+1]=l[B+1]-f[1];i.push({from:h,to:c,fromCp:u,toCp:f,rotation:-v})}return i}function al(r){return r.__isCombineMorphing}var Hx="__mOriginal_";function ol(r,t,e){var n=Hx+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Ba(r,t){var e=Hx+t;r[e]&&(r[t]=r[e],r[e]=null)}function Ay(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function Wx(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=EN(Oh(e),Oh(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Ay(a,s),l&&Ay(o,l),ol(t,"updateTransform",{replace:u}),t.transform=null;var f=PN(a,o,10,Math.PI),h=[];ol(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,g=[],p=0;p<f.length;p++){var y=f[p],m=y.from,_=y.to,x=y.rotation*v,w=y.fromCp,S=y.toCp,b=Math.sin(x),T=Math.cos(x);Aa(g,w,S,v);for(var A=0;A<m.length;A+=2){var M=m[A],C=m[A+1],E=_[A],L=_[A+1],I=M*d+E*v,P=C*d+L*v;h[A]=I*T-P*b+g[0],h[A+1]=I*b+P*T+g[1]}var R=h[0],V=h[1];c.moveTo(R,V);for(var A=2;A<m.length;){var E=h[A++],L=h[A++],O=h[A++],B=h[A++],G=h[A++],U=h[A++];R===E&&V===L&&O===G&&B===U?c.lineTo(G,U):c.bezierCurveTo(E,L,O,B,G,U),R=G,V=U}}}})}function xc(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;Wx(r,t),t.__morphT=0;function a(){Ba(t,"buildPath"),Ba(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Y({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function RN(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function sl(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=z(a,function(s,l){return{cp:s,z:RN(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ux(r){return AN(r.path,r.count)}function kh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ON(r,t,e){var n=[];function i(w){for(var S=0;S<w.length;S++){var b=w[S];al(b)?i(b.childrenRef()):b instanceof ot&&n.push(b)}}i(r);var a=n.length;if(!a)return kh();var o=e.dividePath||Ux,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),kh();n=sl(n),s=sl(s);for(var l=e.done,u=e.during,f=e.individualDelay,h=new lo,c=0;c<a;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||Wx(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(w){for(var S=0;S<s.length;S++)s[S].addSelfToZr(w)}ol(t,"addSelfToZr",{after:function(w){g(w)}}),ol(t,"removeSelfFromZr",{after:function(w){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(w)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ba(t,"addSelfToZr"),Ba(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(p(),l&&l())},c=0;c<y;c++){var x=f?Y({delay:(e.delay||0)+f(c,y,n[c],s[c]),done:_},e):e;xc(n[c],s[c],x)}else t.__morphT=0,t.animateTo({__morphT:1},Y({during:function(w){for(var S=0;S<y;S++){var b=s[S];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(w)},done:function(){p();for(var w=0;w<r.length;w++)Ba(r[w],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function NN(r,t,e){var n=t.length,i=[],a=e.dividePath||Ux;function o(v){for(var d=0;d<v.length;d++){var g=v[d];al(g)?o(g.childrenRef()):g instanceof ot&&i.push(g)}}if(al(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(uv(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),kh()}i=sl(i),t=sl(t);for(var h=e.individualDelay,u=0;u<n;u++){var c=h?Y({delay:(e.delay||0)+h(u,n,i[u],t[u])},e):e;xc(i[u],t[u],c)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function My(r){return F(r[0])}function Ey(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var kN={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=uv(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function xf(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=_l("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;My(r)&&(u=r,f=t),My(t)&&(u=t,f=r);function h(y,m,_,x,w){var S=y.many,b=y.one;if(S.length===1&&!w){var T=m?S[0]:b,A=m?b:S[0];if(al(T))h({many:[T],one:A},!0,_,x,!0);else{var M=s?Y({delay:s(_,x)},l):l;xc(T,A,M),a(T,A,T,A,M)}}else for(var C=Y({dividePath:kN[e],individualDelay:s&&function(V,O,B,G){return s(V+_,x)}},l),E=m?ON(S,b,C):NN(b,S,C),L=E.fromIndividuals,I=E.toIndividuals,P=L.length,R=0;R<P;R++){var M=s?Y({delay:s(R,P)},l):l;a(L[R],I[R],m?S[R]:y.one,m?y.one:S[R],M)}}for(var c=u?u===r:r.length>t.length,v=u?Ey(f,u):Ey(c?t:r,[c?r:t]),d=0,g=0;g<v.length;g++)d+=v[g].many.length;for(var p=0,g=0;g<v.length;g++)h(v[g],c,p,d),p+=v[g].many.length}function En(r){if(!r)return[];if(F(r)){for(var t=[],e=0;e<r.length;e++)t.push(En(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof ot&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var $x=1e4,BN=xt();function VN(r){for(var t=r.dimensions,e=0;e<t.length;e++){var n=r.getDimensionInfo(t[e]);if(n&&n.otherDims.itemGroupId===0)return t[e]}}function Ly(r){var t=[];return D(r,function(e){var n=e.data;if(n.count()>$x){process.env.NODE_ENV!=="production"&&kt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),a=VN(n),o=0;o<i.length;o++)t.push({dataGroupId:e.dataGroupId,data:n,dim:e.dim||a,divide:e.divide,dataIndex:o})}),t}function Sf(r,t,e){r.traverse(function(n){n instanceof ot&&Bt(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function wf(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function gi(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function FN(r,t,e){var n=_l("update",e,t);n&&r.traverse(function(i){if(i instanceof Hi){var a=SC(i);a&&i.animateFrom({style:a},n)}})}function zN(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Yx(r,t,e){var n=Ly(r),i=Ly(t);function a(y,m,_,x,w){(_||y)&&m.animateFrom({style:_&&_!==y?k(k({},_.style),y.style):y.style},w)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(i),u=!1;function f(y,m){return function(_){var x=_.data,w=_.dataIndex;if(m)return x.getId(w);var S=_.dataGroupId,b=y?s||l:l||s,T=b&&x.getDimensionInfo(b),A=T&&T.ordinalMeta;if(T){var M=x.get(T.name,w);return A&&A.categories[M]||M+""}var C=x.getRawDataItem(w);return C&&C.groupId?C.groupId+"":S||x.getId(w)}}var h=zN(n,i),c={};if(!h)for(var v=0;v<i.length;v++){var d=i[v],g=d.data.getItemGraphicEl(d.dataIndex);g&&(c[g.id]=!0)}function p(y,m){var _=n[m],x=i[y],w=x.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),b=x.data.getItemGraphicEl(x.dataIndex);if(S===b){b&&FN(b,x.dataIndex,w);return}S&&c[S.id]||b&&(gi(b),S?(gi(S),wf(S),u=!0,xf(En(S),En(b),x.divide,w,y,a)):Sf(b,w,y))}new el(n,i,f(!0,h),f(!1,h),null,"multiple").update(p).updateManyToOne(function(y,m){var _=i[y],x=_.data,w=x.hostModel,S=x.getItemGraphicEl(_.dataIndex),b=_t(z(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==S&&!c[T.id]});S&&(gi(S),b.length?(D(b,function(T){gi(T),wf(T)}),u=!0,xf(En(b),En(S),_.divide,w,y,a)):Sf(S,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],x=_.data.getItemGraphicEl(_.dataIndex);if(!(x&&c[x.id])){var w=_t(z(y,function(b){return i[b].data.getItemGraphicEl(i[b].dataIndex)}),function(b){return b&&b!==x}),S=i[y[0]].data.hostModel;w.length&&(D(w,function(b){return gi(b)}),x?(gi(x),wf(x),u=!0,xf(En(x),En(w),_.divide,S,y[0],a)):D(w,function(b){return Sf(b,S,y[0])}))}}).updateManyToMany(function(y,m){new el(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,x){p(y[_],m[x])}).execute()}).execute(),u&&D(t,function(y){var m=y.data,_=m.hostModel,x=_&&e.getViewOfSeriesModel(_),w=_l("update",_,0);x&&_.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(S){S instanceof ot&&!S.animators.length&&S.animateFrom({style:{opacity:0}},w)})})}function Iy(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Py(r){return F(r)?r.sort().join(","):r}function Fr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function GN(r,t){var e=j(),n=j(),i=j();D(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=Iy(o),h=Py(f);n.set(h,{dataGroupId:l,data:u}),F(f)&&D(f,function(c){i.set(c,{key:h,dataGroupId:l,data:u})})});function a(o){e.get(o)&&kt("Duplicated seriesKey in universalTransition "+o)}return D(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=Iy(o),f=Py(u),h=n.get(f);if(h)process.env.NODE_ENV!=="production"&&a(f),e.set(f,{oldSeries:[{dataGroupId:h.dataGroupId,divide:Fr(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:Fr(l),data:l}]});else if(F(u)){process.env.NODE_ENV!=="production"&&a(f);var c=[];D(u,function(g){var p=n.get(g);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Fr(p.data),data:p.data})}),c.length&&e.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:Fr(l)}]})}else{var v=i.get(u);if(v){var d=e.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Fr(v.data)}],newSeries:[]},e.set(v.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Fr(l)})}}}}),e}function Ry(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function HN(r,t,e,n){var i=[],a=[];D(wt(r.from),function(o){var s=Ry(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fr(t.oldData[s]),dim:o.dimension})}),D(wt(r.to),function(o){var s=Ry(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fr(l),dim:o.dimension})}}),i.length>0&&a.length>0&&Yx(i,a,n)}function WN(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){D(wt(n.seriesTransition),function(i){D(wt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][bs]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=BN(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)D(wt(a),function(v){HN(v,i,n,e)});else{var o=GN(i,n);D(o.keys(),function(v){var d=o.get(v);Yx(d.oldSeries,d.newSeries,e)})}D(n.updatedSeries,function(v){v[bs]&&(v[bs]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],f=i.oldData=[],h=0;h<s.length;h++){var c=s[h].getData();c.count()<$x&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(c))}})}function Oy(r,t,e){var n=xr.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var UN=function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Is,typeof e=="string"?o=Oy(e,n,i):W(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Uh(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Oy("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new it(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new it(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,S=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(m)){var A=new it(0,0,0,0);A.copy(T),A.union(m),o[b]=A,x=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,C=T.width*T.height,E=u.width*u.height,L=E-M-C;L<w&&(w=L,S=b)}}if(l&&(o[S].union(m),x=!0),!x){var _=new it(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&de||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&de||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(io(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||lh(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Fy(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=uh(o,n,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&D(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Ue);const bf=UN;var Ny=1e5,An=314159,fs=.01,$N=.001;function YN(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function XN(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var ZN=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||Is,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Uh(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new bf(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[An]=v,v.zlevel=An,s.push(An),this._domRoot=t}else{this._width=Uo(t,0,n),this._height=Uo(t,1,n);var u=this._domRoot=XN(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ny)),a||(a=n.ctx,a.save()),On(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Ny)},r.prototype.paintOne=function(t,e){Fv(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Lf(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(An).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,x=!n&&p.incremental&&Date.now,w=x&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,m);else if(_===p.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&p.clear(!1,S,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,A=function(L){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var P=t[T];if(P.__inHover&&(h=!0),i._doPaintEl(P,p,o,L,I,T===p.__endIndex-1),x){var R=Date.now()-w;if(R>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=v.dpr,C=0;C<m.length;++C){var E=m[C];y.save(),y.beginPath(),y.rect(E.x*M,E.y*M,E.width*M,E.height*M),y.clip(),A(E),y.restore()}else y.save(),A(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return tt.wxa&&D(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(On(s,t,a,o),t.setPrevPaintRect(l))}else On(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=An);var n=this._layers[t];return n||(n=new bf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?rt(n,this._layerConfig[t],!0):this._layerConfig[t-fs]&&rt(n,this._layerConfig[t-fs],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&$r("ZLevel "+t+" has been used already");return}if(!YN(e)){process.env.NODE_ENV!=="production"&&$r("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+$N,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?fs:0),this._needsManuallyCompositing),f.__builtin__||$r("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&de&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?rt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+fs){var o=this._layers[a];rt(o,n[t],!0)}}}},r.prototype.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(ht(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=Uo(a,0,i),e=Uo(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(An).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[An].dom;var e=new bf("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];On(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const qN=ZN;function KN(r){r.registerPainter("canvas",qN)}sr([HO,FO,NR,mN,pN,rN,pO,$l,fR,jP,ZI,LI,sP,c2,eI,WN,KN]);exports.echarts=rI;