mixdashboards 1.0.32 → 1.0.39

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 (413) hide show
  1. package/dist/CoordinateSystem-BMkAxlii.js +6 -0
  2. package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
  3. package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
  4. package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
  5. package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
  6. package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
  7. package/dist/MarkerView-BG_nYESR.cjs +1 -0
  8. package/dist/MarkerView-CtWJi5UZ.js +192 -0
  9. package/dist/RoamController--cgD3aNm.cjs +1 -0
  10. package/dist/RoamController-DmBIwcAZ.js +124 -0
  11. package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
  12. package/dist/UniverSheet-MSHzUXq0.js +180 -0
  13. package/dist/VisualMapping-D-MA7S0X.js +260 -0
  14. package/dist/VisualMapping-MilpZvD_.cjs +1 -0
  15. package/dist/accelerationChart-B1HPMmd2.js +577 -0
  16. package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
  17. package/dist/actionItem-BYCPoQK7.cjs +1 -0
  18. package/dist/actionItem-Bb2xiYlY.js +686 -0
  19. package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
  20. package/dist/alarmLevelChart-CCioESvL.js +182 -0
  21. package/dist/alertTable-CQwr8YYt.js +301 -0
  22. package/dist/alertTable-oaX5eJC0.cjs +1 -0
  23. package/dist/annualRainfallChart-C21jEMBe.js +185 -0
  24. package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
  25. package/dist/api-C0GhBpqd.js +125 -0
  26. package/dist/api-P_s372dW.cjs +1 -0
  27. package/dist/aqi-DlY2r7OA.cjs +3 -0
  28. package/dist/aqi-iLwQH4rc.js +145 -0
  29. package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
  30. package/dist/aqiIndass-DBeVSBdy.js +301 -0
  31. package/dist/arrayCard-DNNUEPvW.js +93 -0
  32. package/dist/arrayCard-OlVAAsZq.cjs +1 -0
  33. package/dist/audio-CAP4D-J2.js +301 -0
  34. package/dist/audio-CThzVIDU.cjs +1 -0
  35. package/dist/axisAlignTicks-BqVUa467.js +481 -0
  36. package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
  37. package/dist/bar-BjR566__.cjs +2 -0
  38. package/dist/bar-D8C06GO4.js +232 -0
  39. package/dist/bmp-Cjizh2x6.js +226 -0
  40. package/dist/bmp-DsmTzyce.cjs +1 -0
  41. package/dist/box-DqewT3MF.js +352 -0
  42. package/dist/box-qgu_67OD.cjs +1 -0
  43. package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
  44. package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
  45. package/dist/circleBar-CO89T7kj.cjs +4 -0
  46. package/dist/circleBar-DGHDWQih.js +196 -0
  47. package/dist/clock-32hGccm4.cjs +1 -0
  48. package/dist/clock-CT8YXEU3.js +274 -0
  49. package/dist/clt-5bP_g1O-.cjs +1 -0
  50. package/dist/clt-FfIEfGtn.js +293 -0
  51. package/dist/cmc-B2nQFZIS.js +269 -0
  52. package/dist/cmc-dbuLkE8o.cjs +1 -0
  53. package/dist/cmp-QQlYcnqo.js +378 -0
  54. package/dist/cmp-l3U9fIrz.cjs +6 -0
  55. package/dist/composite-CbsUYl-u.js +136 -0
  56. package/dist/composite-Cf24lSyN.cjs +1 -0
  57. package/dist/composite-DjhrBgG1.js +323 -0
  58. package/dist/composite-DlY2_x6P.cjs +3 -0
  59. package/dist/config-BLSroAzs.cjs +1 -0
  60. package/dist/config-Cc2W4vke.js +9 -0
  61. package/dist/controlList-BdF8xNAi.js +879 -0
  62. package/dist/controlList-De6PXdOc.cjs +1 -0
  63. package/dist/controlRecordList-CKpAr1ON.js +421 -0
  64. package/dist/controlRecordList-u5a7chIX.cjs +1 -0
  65. package/dist/crd-BVAf41oX.js +113 -0
  66. package/dist/crd-BoaXQhFQ.cjs +1 -0
  67. package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
  68. package/dist/createSeriesData-E53TTCAt.js +116 -0
  69. package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
  70. package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
  71. package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
  72. package/dist/ctrBtn-ZPRYWE66.js +215 -0
  73. package/dist/ctrSet-C87dxLfQ.js +247 -0
  74. package/dist/ctrSet-CNCrnLSs.cjs +1 -0
  75. package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
  76. package/dist/ctrSwitch-CkC_Axtp.js +207 -0
  77. package/dist/cursorHelper-DE0KU4_J.js +29 -0
  78. package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
  79. package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
  80. package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
  81. package/dist/dataManagement-CjlNfeYq.js +672 -0
  82. package/dist/dataManagement-n711sd1g.cjs +1 -0
  83. package/dist/dataReport-BsVjW3p7.cjs +4 -0
  84. package/dist/dataReport-ByjswEqq.js +787 -0
  85. package/dist/dataSample-BXwc06Sb.js +114 -0
  86. package/dist/dataSample-D4ycwmll.cjs +1 -0
  87. package/dist/dataTable-DX500R1i.js +217 -0
  88. package/dist/dataTable-K7j4fhnq.cjs +1 -0
  89. package/dist/datetime-DVbJtALf.js +113 -0
  90. package/dist/datetime-DYXWKrXI.cjs +1 -0
  91. package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
  92. package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
  93. package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
  94. package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
  95. package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
  96. package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
  97. package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
  98. package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
  99. package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
  100. package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
  101. package/dist/deepDisplacementView-BedWJsx7.js +231 -0
  102. package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
  103. package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
  104. package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
  105. package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
  106. package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
  107. package/dist/deepTemperatureField-B-y94GPV.js +398 -0
  108. package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
  109. package/dist/deepTrendChart-DCkV2HNv.js +345 -0
  110. package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
  111. package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
  112. package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
  113. package/dist/deviceStatus-B2ibBDSi.js +194 -0
  114. package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
  115. package/dist/displacementDataTable-BDqG1IvI.js +256 -0
  116. package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
  117. package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
  118. package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
  119. package/dist/displacementTrendChart-10n_lC9j.js +364 -0
  120. package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
  121. package/dist/dxf-D8zHpz5g.js +2768 -0
  122. package/dist/dxf-DDh_DcQy.cjs +1 -0
  123. package/dist/dzc-DLCdTCwW.js +144 -0
  124. package/dist/dzc-uNTDJqpi.cjs +2 -0
  125. package/dist/echarts-BB8O2KSA.cjs +21 -0
  126. package/dist/echarts-BVht3HHb.js +13787 -0
  127. package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
  128. package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
  129. package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
  130. package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
  131. package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
  132. package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
  133. package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
  134. package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
  135. package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
  136. package/dist/ele-clt-icon-DuU4Q401.js +5 -0
  137. package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
  138. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
  139. package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
  140. package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
  141. package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
  142. package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
  143. package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
  144. package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
  145. package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
  146. package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
  147. package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
  148. package/dist/ele-evn-icon-MWzAujnD.js +5 -0
  149. package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
  150. package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
  151. package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
  152. package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
  153. package/dist/ele-grd-icon-DR52zwGR.js +5 -0
  154. package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
  155. package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
  156. package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
  157. package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
  158. package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
  159. package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
  160. package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
  161. package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
  162. package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
  163. package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
  164. package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
  165. package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
  166. package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
  167. package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
  168. package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
  169. package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
  170. package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
  171. package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
  172. package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
  173. package/dist/evn-DuL5oVRl.cjs +1 -0
  174. package/dist/evn-YwCALVXj.js +116 -0
  175. package/dist/evolutionChart-4noZSdLX.js +406 -0
  176. package/dist/evolutionChart-AeL67MAt.cjs +1 -0
  177. package/dist/fileViewer-DiH3PM0r.js +415 -0
  178. package/dist/fileViewer-bsrjlJkC.cjs +1 -0
  179. package/dist/filterBar-CWEguwYc.js +394 -0
  180. package/dist/filterBar-Ct1BFhrS.cjs +1 -0
  181. package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
  182. package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
  183. package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
  184. package/dist/fireFilterBar-DGHPNTwF.js +221 -0
  185. package/dist/gag-HiNaL81R.cjs +1 -0
  186. package/dist/gag-kvkKzJuO.js +125 -0
  187. package/dist/glbModel-CUz6CyVF.js +2724 -0
  188. package/dist/glbModel-DtBI72ap.cjs +5 -0
  189. package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
  190. package/dist/gnssFilterBar-TBtirXIB.js +310 -0
  191. package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
  192. package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
  193. package/dist/gnssMapView-42zmAd9q.cjs +7 -0
  194. package/dist/gnssMapView-CaBfWeT1.js +699 -0
  195. package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
  196. package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
  197. package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
  198. package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
  199. package/dist/grd-B0GUjLm9.js +339 -0
  200. package/dist/grd-DW8cSFVR.cjs +1 -0
  201. package/dist/grdIndass-BeBXVsos.cjs +1 -0
  202. package/dist/grdIndass-DduUKZJm.js +216 -0
  203. package/dist/grg-CeX0pirQ.js +194 -0
  204. package/dist/grg-fnpcXtju.cjs +1 -0
  205. package/dist/gridview-BPwWXza9.js +183 -0
  206. package/dist/gridview-DpABhCIw.cjs +1 -0
  207. package/dist/groupCard-De1E15mW.js +132 -0
  208. package/dist/groupCard-WNE6gAAl.cjs +1 -0
  209. package/dist/headerBar-CZ3qcLHo.js +210 -0
  210. package/dist/headerBar-Qi1EXrr6.cjs +1 -0
  211. package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
  212. package/dist/history-DAmBl4_5.cjs +1 -0
  213. package/dist/index-ButoLLAe.js +8655 -0
  214. package/dist/index-Mh5Dw2sd.cjs +585 -0
  215. package/dist/index-kShjySl9.js +5313 -0
  216. package/dist/index-mAPVa0s4.cjs +11 -0
  217. package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
  218. package/dist/insarDeformChart-CnuSL1d9.js +216 -0
  219. package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
  220. package/dist/insarImageViewer-EmVThmVQ.js +268 -0
  221. package/dist/install-8XfFtnlL.js +853 -0
  222. package/dist/install-9_V0b6vf.js +497 -0
  223. package/dist/install-B0x4IqQr.js +1258 -0
  224. package/dist/install-B1IEhhn3.cjs +1 -0
  225. package/dist/install-B2TChEcT.js +895 -0
  226. package/dist/install-B65ZIqAx.cjs +1 -0
  227. package/dist/install-BBrAry2m.js +8 -0
  228. package/dist/install-BRjgycz_.cjs +1 -0
  229. package/dist/install-BUu5ESB7.js +447 -0
  230. package/dist/install-BamnGDPb.cjs +1 -0
  231. package/dist/install-BifpoHNI.js +1817 -0
  232. package/dist/install-BvOpNm0Y.cjs +1 -0
  233. package/dist/install-ByPD0oOh.cjs +1 -0
  234. package/dist/install-BzdOSCzO.js +785 -0
  235. package/dist/install-C8buXQPI.cjs +1 -0
  236. package/dist/install-C9Cdzkc6.js +265 -0
  237. package/dist/install-CBde4hAM.js +112 -0
  238. package/dist/install-CIT6k8Ga.cjs +1 -0
  239. package/dist/install-CYwVETsi.cjs +1 -0
  240. package/dist/install-C_3uGWLu.js +2328 -0
  241. package/dist/install-Ch5d8i37.cjs +1 -0
  242. package/dist/install-CltTFs4e.cjs +3 -0
  243. package/dist/install-Csxa7Kv7.cjs +18 -0
  244. package/dist/install-Cx1i_m0k.js +1168 -0
  245. package/dist/install-D1QM80AD.js +227 -0
  246. package/dist/install-D7znHb-b.js +604 -0
  247. package/dist/install-DHY9y86B.cjs +3 -0
  248. package/dist/install-DIlB2q7w.cjs +1 -0
  249. package/dist/install-DV5cEgNV.cjs +1 -0
  250. package/dist/install-DWm3j_D3.js +38 -0
  251. package/dist/install-FDYiy_gL.js +250 -0
  252. package/dist/install-LtoYukZU.cjs +1 -0
  253. package/dist/install-MS3ZY7fF.js +685 -0
  254. package/dist/install-hfre7yvV.js +727 -0
  255. package/dist/install-kGXY_57n.cjs +1 -0
  256. package/dist/install-nDY6w-GK.cjs +1 -0
  257. package/dist/install-oGjJ0_bF.js +588 -0
  258. package/dist/install-z6wShIZI.cjs +1 -0
  259. package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
  260. package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
  261. package/dist/installMarkArea-Cdg4iciO.js +206 -0
  262. package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
  263. package/dist/installMarkLine-BgE0YACE.js +533 -0
  264. package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
  265. package/dist/installSimple-BWTCwMdY.js +586 -0
  266. package/dist/installSimple-c87Ufc4_.cjs +1 -0
  267. package/dist/kds-CpIQFgeY.js +1203 -0
  268. package/dist/kds-DTYWOq4K.cjs +3 -0
  269. package/dist/labelHelper-Cd8oB-sZ.js +26 -0
  270. package/dist/labelHelper-npJGYQ1j.cjs +1 -0
  271. package/dist/layerTabs-BATcBkTA.cjs +1 -0
  272. package/dist/layerTabs-uze6K91A.js +139 -0
  273. package/dist/lin-Ba6fHkYf.cjs +2 -0
  274. package/dist/lin-DU_EuPRg.js +239 -0
  275. package/dist/linIndass-XHKElG7L.js +273 -0
  276. package/dist/linIndass-urYe5inp.cjs +2 -0
  277. package/dist/lst-C7aee1cU.js +147 -0
  278. package/dist/lst-CpmoEQDY.cjs +1 -0
  279. package/dist/manualEntry-CJPiO5nh.cjs +1 -0
  280. package/dist/manualEntry-D9m_WPw3.js +662 -0
  281. package/dist/mapBackground-6g_71Fwa.js +6658 -0
  282. package/dist/mapBackground-CF_TqNBy.cjs +17 -0
  283. package/dist/mappingList-CR55Tq4t.cjs +1 -0
  284. package/dist/mappingList-luT5YE0d.js +917 -0
  285. package/dist/markdownViewer-CnguoUr8.js +261 -0
  286. package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
  287. package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
  288. package/dist/mix-control-modal-CHiX3hQs.js +147 -0
  289. package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
  290. package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
  291. package/dist/mixGrid-3BqQCvg8.cjs +1 -0
  292. package/dist/mixGrid-C0eEvwPy.js +180 -0
  293. package/dist/mixMap-7upgYwWk.js +258 -0
  294. package/dist/mixMap-Bw-We4Cm.cjs +1 -0
  295. package/dist/mixModel-BqE_Kd4c.js +245 -0
  296. package/dist/mixModel-CgV4XptM.cjs +3 -0
  297. package/dist/mixPie-9LfMCTQV.cjs +2 -0
  298. package/dist/mixPie-B-HeglUn.js +168 -0
  299. package/dist/mixdashboards.cjs +1 -1
  300. package/dist/mixdashboards.css +1 -1
  301. package/dist/mixdashboards.js +7 -7
  302. package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
  303. package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
  304. package/dist/monitorAlert-Bg5vzzyG.js +225 -0
  305. package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
  306. package/dist/monitorData-BvAMeOrp.js +319 -0
  307. package/dist/monitorData-CzPVIk_4.cjs +1 -0
  308. package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
  309. package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
  310. package/dist/mxa-BW80xKCc.js +143 -0
  311. package/dist/mxa-eLAgZPMC.cjs +2 -0
  312. package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
  313. package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
  314. package/dist/objectList-Cf9GMyXN.js +1809 -0
  315. package/dist/objectList-CpqQxG8L.cjs +1 -0
  316. package/dist/params-3W3p8QeC.cjs +1 -0
  317. package/dist/params-DfgBemk0.js +75 -0
  318. package/dist/photo-BODEtaYh.cjs +1 -0
  319. package/dist/photo-BfLkWAo8.js +256 -0
  320. package/dist/pie-BDLg-Rls.js +199 -0
  321. package/dist/pie-DxoBrm0D.cjs +2 -0
  322. package/dist/points-DcRmizmA.cjs +1 -0
  323. package/dist/points-DkG9FRF9.js +277 -0
  324. package/dist/pressBtn-CXG1eSWC.js +242 -0
  325. package/dist/pressBtn-t0g4vk7s.cjs +1 -0
  326. package/dist/progressBar-BXaFKSCq.js +130 -0
  327. package/dist/progressBar-CJEWkZ42.cjs +1 -0
  328. package/dist/progressCircle-DpOI5D5z.js +168 -0
  329. package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
  330. package/dist/qrcode-CX8aymYZ.js +814 -0
  331. package/dist/qrcode-DHCRfp0M.cjs +1 -0
  332. package/dist/raceBar-Cv0-0ogd.cjs +4 -0
  333. package/dist/raceBar-DFaH342G.js +197 -0
  334. package/dist/rad-CFswUTwi.cjs +1 -0
  335. package/dist/rad-NS2G_nMg.js +143 -0
  336. package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
  337. package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
  338. package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
  339. package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
  340. package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
  341. package/dist/rangeLin-GMYEgLeP.js +278 -0
  342. package/dist/request-BD0x5Hkt.js +75 -0
  343. package/dist/request-Bn100qAJ.cjs +1 -0
  344. package/dist/retainer1-D2XmjXYH.cjs +1 -0
  345. package/dist/retainer1-h-Whr2c9.js +290 -0
  346. package/dist/retainer2-ByQdiRjq.js +504 -0
  347. package/dist/retainer2-cF-trL2g.cjs +1 -0
  348. package/dist/riskRegionTable-CQxAkG7k.js +170 -0
  349. package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
  350. package/dist/sankey-Bk1IcVJQ.js +171 -0
  351. package/dist/sankey-MRirEgU0.cjs +1 -0
  352. package/dist/sausage-DRCw7Qmr.cjs +1 -0
  353. package/dist/sausage-xU3hOdxD.js +30 -0
  354. package/dist/scd-BDRpzmsa.js +2577 -0
  355. package/dist/scd-J-mN3eI5.cjs +1 -0
  356. package/dist/sectorHelper-BFEnYqut.cjs +1 -0
  357. package/dist/sectorHelper-DIlWFMnU.js +18 -0
  358. package/dist/sideMenu-BgTMtnMq.js +225 -0
  359. package/dist/sideMenu-l8X2E00H.cjs +1 -0
  360. package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
  361. package/dist/slopeStability-C5RqZ1im.js +331 -0
  362. package/dist/speedCurve-C3pK-zZy.js +394 -0
  363. package/dist/speedCurve-CluwNAZl.cjs +1 -0
  364. package/dist/staticLine-C6tGGXcN.cjs +1 -0
  365. package/dist/staticLine-DXWOLj15.js +362 -0
  366. package/dist/store-BJW2NQkK.cjs +5 -0
  367. package/dist/store-DzDtVfSX.js +1673 -0
  368. package/dist/swiper-DGqDoUkX.cjs +1 -0
  369. package/dist/swiper-IMlGje3t.js +128 -0
  370. package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
  371. package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
  372. package/dist/terminalList-CjSHshiR.js +1211 -0
  373. package/dist/terminalList-ml2C18MY.cjs +1 -0
  374. package/dist/textbox-AQtCe25j.cjs +1 -0
  375. package/dist/textbox-BLV-SY8e.js +172 -0
  376. package/dist/three.module-DNVo041Q.cjs +3824 -0
  377. package/dist/three.module-DcOQNgKS.js +16561 -0
  378. package/dist/timeQueryBar-BeMu_DYr.js +155 -0
  379. package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
  380. package/dist/timeSeries-DP5iZKVM.js +587 -0
  381. package/dist/timeSeries-DfGgFWiF.cjs +4 -0
  382. package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
  383. package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
  384. package/dist/titleStyle-BT5GlpAb.js +49 -0
  385. package/dist/titleStyle-NSnz6cUg.cjs +1 -0
  386. package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
  387. package/dist/toggleBtn-O2Y75Uen.js +249 -0
  388. package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
  389. package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
  390. package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
  391. package/dist/trajectoryScatter-VLrmImlq.js +525 -0
  392. package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
  393. package/dist/universalConfigPanel-DBg76b4F.js +477 -0
  394. package/dist/universalTable-Bzq9VqzA.cjs +2 -0
  395. package/dist/universalTable-DGK02ywi.js +410 -0
  396. package/dist/universalTransition-Bv7ibBUh.js +988 -0
  397. package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
  398. package/dist/video-CyRoSQf1.cjs +1 -0
  399. package/dist/video-DCzzaEmV.js +310 -0
  400. package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
  401. package/dist/videoMonitor-ByaQeIWR.js +241 -0
  402. package/dist/vlu-CYZjYHaV.cjs +1 -0
  403. package/dist/vlu-h-9twmCr.js +100 -0
  404. package/dist/vue-i18n-5Nahpzrm.js +2732 -0
  405. package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
  406. package/dist/weather-B7B5E1EJ.cjs +1 -0
  407. package/dist/weather-C_aC0XJ1.js +94 -0
  408. package/dist/windLin-B7V4NUV8.js +1226 -0
  409. package/dist/windLin-DPNzX7JN.cjs +1 -0
  410. package/package.json +17 -10
  411. package/dist/history-fvcbbxGa.cjs +0 -1
  412. package/dist/index-B-aA7889.js +0 -154003
  413. package/dist/index-CdJ-j9Gj.cjs +0 -8893
@@ -0,0 +1,4260 @@
1
+ import { l as vt, h as S, S as Vt, V as fe, o as at, x as F, T as V, U as Ut, r as ct, W as yr, j as R, q as we, X as bi, Y as xr, $ as wr, a0 as Oe, a1 as br, a2 as Sr, a3 as jt, f as H, O as X, a4 as be, M as ut, a5 as Mr, B as W, a6 as Cr, P as Ct, a7 as Dr, a8 as Tr, a9 as Ir, aa as Pe, u as nt, ab as Lr, ac as Ar, ad as Or, ae as Se, af as Si, ag as it, ah as Mi, _ as K, ai as Pr, aj as Er, ak as ht, al as Ci, am as Ee, an as kr, ao as bt, ap as Nr, aq as Z, ar as Di, as as Ti, at as Ft, au as ke, av as ve, aw as Rr, ax as Br, ay as Hr, s as Ne, az as Ii, aA as Li, aB as Ai, aC as Oi, aD as Pi, aE as Ei, aF as Re, aG as Fr, aH as zr, aI as Wr, aJ as Vr, aK as Gr, aL as Yr, aM as Xr, aN as Ur, aO as Zr, aP as Be, aQ as de, aR as pt, t as Zt, aS as He, aT as Fe, b as Dt, C as St, aU as Kr, aV as $r, aW as qr, aX as Qr, aY as Jr, aZ as jr, a_ as tn, a$ as en, b0 as rn, b1 as nn, b2 as an, b3 as on, b4 as sn, b5 as ln, b6 as un, b7 as ce, b8 as Tt, b9 as hn, ba as fn, G as pe, Z as Kt, c as Me, D as ki, g as Q, bb as Gt, bc as Ni, bd as Ri, be as vn, H as dn, bf as Bi, bg as cn, bh as Hi, bi as ze, bj as Yt, E as rt, bk as pn, N as gn, bl as mn, bm as Fi, bn as ge, Q as _n, bo as yn, bp as xn, n as zi, bq as wn, br as bn, bs as z, bt as Sn, bu as Wi, bv as We, bw as Mn, bx as Cn, by as Xt, bz as Vi, bA as Dn, bB as Tn, R as In, bC as Ln, bD as Ve, bE as An, bF as te, bG as Ge, bH as Ye, bI as On, bJ as Pn, a as En, bK as kn, bL as Nn, bM as Xe, bN as Gi, bO as me, bP as Rn, bQ as Yi, bR as Bn, bS as Hn, bT as Fn, bU as zn, bV as Wn, bW as At, bX as Vn, bY as Gn, m as Ot, bZ as ee, b_ as Pt } from "./echarts-BVht3HHb.js";
2
+ function mt(r) {
3
+ return r == null ? 0 : r.length || 1;
4
+ }
5
+ function Ue(r) {
6
+ return r;
7
+ }
8
+ var Yn = (
9
+ /** @class */
10
+ (function() {
11
+ function r(t, e, i, n, a, o) {
12
+ this._old = t, this._new = e, this._oldKeyGetter = i || Ue, this._newKeyGetter = n || Ue, this.context = a, this._diffModeMultiple = o === "multiple";
13
+ }
14
+ return r.prototype.add = function(t) {
15
+ return this._add = t, this;
16
+ }, r.prototype.update = function(t) {
17
+ return this._update = t, this;
18
+ }, r.prototype.updateManyToOne = function(t) {
19
+ return this._updateManyToOne = t, this;
20
+ }, r.prototype.updateOneToMany = function(t) {
21
+ return this._updateOneToMany = t, this;
22
+ }, r.prototype.updateManyToMany = function(t) {
23
+ return this._updateManyToMany = t, this;
24
+ }, r.prototype.remove = function(t) {
25
+ return this._remove = t, this;
26
+ }, r.prototype.execute = function() {
27
+ this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]();
28
+ }, r.prototype._executeOneToOne = function() {
29
+ var t = this._old, e = this._new, i = {}, n = new Array(t.length), a = new Array(e.length);
30
+ this._initIndexMap(t, null, n, "_oldKeyGetter"), this._initIndexMap(e, i, a, "_newKeyGetter");
31
+ for (var o = 0; o < t.length; o++) {
32
+ var s = n[o], l = i[s], u = mt(l);
33
+ if (u > 1) {
34
+ var h = l.shift();
35
+ l.length === 1 && (i[s] = l[0]), this._update && this._update(h, o);
36
+ } else u === 1 ? (i[s] = null, this._update && this._update(l, o)) : this._remove && this._remove(o);
37
+ }
38
+ this._performRestAdd(a, i);
39
+ }, r.prototype._executeMultiple = function() {
40
+ var t = this._old, e = this._new, i = {}, n = {}, a = [], o = [];
41
+ this._initIndexMap(t, i, a, "_oldKeyGetter"), this._initIndexMap(e, n, o, "_newKeyGetter");
42
+ for (var s = 0; s < a.length; s++) {
43
+ var l = a[s], u = i[l], h = n[l], f = mt(u), v = mt(h);
44
+ if (f > 1 && v === 1)
45
+ this._updateManyToOne && this._updateManyToOne(h, u), n[l] = null;
46
+ else if (f === 1 && v > 1)
47
+ this._updateOneToMany && this._updateOneToMany(h, u), n[l] = null;
48
+ else if (f === 1 && v === 1)
49
+ this._update && this._update(h, u), n[l] = null;
50
+ else if (f > 1 && v > 1)
51
+ this._updateManyToMany && this._updateManyToMany(h, u), n[l] = null;
52
+ else if (f > 1)
53
+ for (var d = 0; d < f; d++)
54
+ this._remove && this._remove(u[d]);
55
+ else
56
+ this._remove && this._remove(u);
57
+ }
58
+ this._performRestAdd(o, n);
59
+ }, r.prototype._performRestAdd = function(t, e) {
60
+ for (var i = 0; i < t.length; i++) {
61
+ var n = t[i], a = e[n], o = mt(a);
62
+ if (o > 1)
63
+ for (var s = 0; s < o; s++)
64
+ this._add && this._add(a[s]);
65
+ else o === 1 && this._add && this._add(a);
66
+ e[n] = null;
67
+ }
68
+ }, r.prototype._initIndexMap = function(t, e, i, n) {
69
+ for (var a = this._diffModeMultiple, o = 0; o < t.length; o++) {
70
+ var s = "_ec_" + this[n](t[o], o);
71
+ if (a || (i[o] = s), !!e) {
72
+ var l = e[s], u = mt(l);
73
+ u === 0 ? (e[s] = o, a && i.push(s)) : u === 1 ? e[s] = [l, o] : l.push(o);
74
+ }
75
+ }
76
+ }, r;
77
+ })()
78
+ ), Xn = (
79
+ /** @class */
80
+ (function() {
81
+ function r(t, e) {
82
+ this._encode = t, this._schema = e;
83
+ }
84
+ return r.prototype.get = function() {
85
+ return {
86
+ // Do not generate full dimension name until fist used.
87
+ fullDimensions: this._getFullDimensionNames(),
88
+ encode: this._encode
89
+ };
90
+ }, r.prototype._getFullDimensionNames = function() {
91
+ return this._cachedDimNames || (this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []), this._cachedDimNames;
92
+ }, r;
93
+ })()
94
+ );
95
+ function Un(r, t) {
96
+ var e = {}, i = e.encode = {}, n = vt(), a = [], o = [], s = {};
97
+ S(r.dimensions, function(v) {
98
+ var d = r.getDimensionInfo(v), c = d.coordDim;
99
+ if (c) {
100
+ process.env.NODE_ENV !== "production" && Vt(fe.get(c) == null);
101
+ var g = d.coordDimIndex;
102
+ ie(i, c)[g] = v, d.isExtraCoord || (n.set(c, 1), Zn(d.type) && (a[0] = v), ie(s, c)[g] = r.getDimensionIndex(d.name)), d.defaultTooltip && o.push(v);
103
+ }
104
+ fe.each(function(m, p) {
105
+ var _ = ie(i, p), y = d.otherDims[p];
106
+ y != null && y !== !1 && (_[y] = d.name);
107
+ });
108
+ });
109
+ var l = [], u = {};
110
+ n.each(function(v, d) {
111
+ var c = i[d];
112
+ u[d] = c[0], l = l.concat(c);
113
+ }), e.dataDimsOnCoord = l, e.dataDimIndicesOnCoord = at(l, function(v) {
114
+ return r.getDimensionInfo(v).storeDimIndex;
115
+ }), e.encodeFirstDimNotExtra = u;
116
+ var h = i.label;
117
+ h && h.length && (a = h.slice());
118
+ var f = i.tooltip;
119
+ return f && f.length ? o = f.slice() : o.length || (o = a.slice()), i.defaultedLabel = a, i.defaultedTooltip = o, e.userOutput = new Xn(s, t), e;
120
+ }
121
+ function ie(r, t) {
122
+ return r.hasOwnProperty(t) || (r[t] = []), r[t];
123
+ }
124
+ function Zo(r) {
125
+ return r === "category" ? "ordinal" : r === "time" ? "time" : "float";
126
+ }
127
+ function Zn(r) {
128
+ return !(r === "ordinal" || r === "time");
129
+ }
130
+ var zt = (
131
+ /** @class */
132
+ /* @__PURE__ */ (function() {
133
+ function r(t) {
134
+ this.otherDims = {}, t != null && F(this, t);
135
+ }
136
+ return r;
137
+ })()
138
+ ), Kn = Ut(), $n = {
139
+ float: "f",
140
+ int: "i",
141
+ ordinal: "o",
142
+ number: "n",
143
+ time: "t"
144
+ }, Xi = (
145
+ /** @class */
146
+ (function() {
147
+ function r(t) {
148
+ this.dimensions = t.dimensions, this._dimOmitted = t.dimensionOmitted, this.source = t.source, this._fullDimCount = t.fullDimensionCount, this._updateDimOmitted(t.dimensionOmitted);
149
+ }
150
+ return r.prototype.isDimensionOmitted = function() {
151
+ return this._dimOmitted;
152
+ }, r.prototype._updateDimOmitted = function(t) {
153
+ this._dimOmitted = t, t && (this._dimNameMap || (this._dimNameMap = Ki(this.source)));
154
+ }, r.prototype.getSourceDimensionIndex = function(t) {
155
+ return ct(this._dimNameMap.get(t), -1);
156
+ }, r.prototype.getSourceDimension = function(t) {
157
+ var e = this.source.dimensionsDefine;
158
+ if (e)
159
+ return e[t];
160
+ }, r.prototype.makeStoreSchema = function() {
161
+ for (var t = this._fullDimCount, e = yr(this.source), i = !$i(t), n = "", a = [], o = 0, s = 0; o < t; o++) {
162
+ var l = void 0, u = void 0, h = void 0, f = this.dimensions[s];
163
+ if (f && f.storeDimIndex === o)
164
+ l = e ? f.name : null, u = f.type, h = f.ordinalMeta, s++;
165
+ else {
166
+ var v = this.getSourceDimension(o);
167
+ v && (l = e ? v.name : null, u = v.type);
168
+ }
169
+ a.push({
170
+ property: l,
171
+ type: u,
172
+ ordinalMeta: h
173
+ }), e && l != null && (!f || !f.isCalculationCoord) && (n += i ? l.replace(/\`/g, "`1").replace(/\$/g, "`2") : l), n += "$", n += $n[u] || "f", h && (n += h.uid), n += "$";
174
+ }
175
+ var d = this.source, c = [d.seriesLayoutBy, d.startIndex, n].join("$$");
176
+ return {
177
+ dimensions: a,
178
+ hash: c
179
+ };
180
+ }, r.prototype.makeOutputDimensionNames = function() {
181
+ for (var t = [], e = 0, i = 0; e < this._fullDimCount; e++) {
182
+ var n = void 0, a = this.dimensions[i];
183
+ if (a && a.storeDimIndex === e)
184
+ a.isCalculationCoord || (n = a.name), i++;
185
+ else {
186
+ var o = this.getSourceDimension(e);
187
+ o && (n = o.name);
188
+ }
189
+ t.push(n);
190
+ }
191
+ return t;
192
+ }, r.prototype.appendCalculationDimension = function(t) {
193
+ this.dimensions.push(t), t.isCalculationCoord = !0, this._fullDimCount++, this._updateDimOmitted(!0);
194
+ }, r;
195
+ })()
196
+ );
197
+ function Ui(r) {
198
+ return r instanceof Xi;
199
+ }
200
+ function Zi(r) {
201
+ for (var t = vt(), e = 0; e < (r || []).length; e++) {
202
+ var i = r[e], n = V(i) ? i.name : i;
203
+ n != null && t.get(n) == null && t.set(n, e);
204
+ }
205
+ return t;
206
+ }
207
+ function Ki(r) {
208
+ var t = Kn(r);
209
+ return t.dimNameMap || (t.dimNameMap = Zi(r.dimensionsDefine));
210
+ }
211
+ function $i(r) {
212
+ return r > 30;
213
+ }
214
+ var _t = V, j = at, qn = typeof Int32Array == "undefined" ? Array : Int32Array, Qn = "e\0\0", Ze = -1, Jn = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], jn = ["_approximateExtent"], Ke, Et, yt, dt, re, xt, ne, Ko = (
215
+ /** @class */
216
+ (function() {
217
+ function r(t, e) {
218
+ this.type = "list", this._dimOmitted = !1, this._nameList = [], this._idList = [], this._visual = {}, this._layout = {}, this._itemVisuals = [], this._itemLayouts = [], this._graphicEls = [], this._approximateExtent = {}, this._calculationInfo = {}, this.hasItemOption = !1, this.TRANSFERABLE_METHODS = ["cloneShallow", "downSample", "minmaxDownSample", "lttbDownSample", "map"], this.CHANGABLE_METHODS = ["filterSelf", "selectRange"], this.DOWNSAMPLE_METHODS = ["downSample", "minmaxDownSample", "lttbDownSample"];
219
+ var i, n = !1;
220
+ Ui(t) ? (i = t.dimensions, this._dimOmitted = t.isDimensionOmitted(), this._schema = t) : (n = !0, i = t), i = i || ["x", "y"];
221
+ for (var a = {}, o = [], s = {}, l = !1, u = {}, h = 0; h < i.length; h++) {
222
+ var f = i[h], v = R(f) ? new zt({
223
+ name: f
224
+ }) : f instanceof zt ? f : new zt(f), d = v.name;
225
+ v.type = v.type || "float", v.coordDim || (v.coordDim = d, v.coordDimIndex = 0);
226
+ var c = v.otherDims = v.otherDims || {};
227
+ o.push(d), a[d] = v, u[d] != null && (l = !0), v.createInvertedIndices && (s[d] = []), c.itemName === 0 && (this._nameDimIdx = h), c.itemId === 0 && (this._idDimIdx = h), process.env.NODE_ENV !== "production" && Vt(n || v.storeDimIndex >= 0), n && (v.storeDimIndex = h);
228
+ }
229
+ if (this.dimensions = o, this._dimInfos = a, this._initGetDimensionInfo(l), this.hostModel = e, this._invertedIndicesMap = s, this._dimOmitted) {
230
+ var g = this._dimIdxToName = vt();
231
+ S(o, function(m) {
232
+ g.set(a[m].storeDimIndex, m);
233
+ });
234
+ }
235
+ }
236
+ return r.prototype.getDimension = function(t) {
237
+ var e = this._recognizeDimIndex(t);
238
+ if (e == null)
239
+ return t;
240
+ if (e = t, !this._dimOmitted)
241
+ return this.dimensions[e];
242
+ var i = this._dimIdxToName.get(e);
243
+ if (i != null)
244
+ return i;
245
+ var n = this._schema.getSourceDimension(e);
246
+ if (n)
247
+ return n.name;
248
+ }, r.prototype.getDimensionIndex = function(t) {
249
+ var e = this._recognizeDimIndex(t);
250
+ if (e != null)
251
+ return e;
252
+ if (t == null)
253
+ return -1;
254
+ var i = this._getDimInfo(t);
255
+ return i ? i.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(t) : -1;
256
+ }, r.prototype._recognizeDimIndex = function(t) {
257
+ if (we(t) || t != null && !isNaN(t) && !this._getDimInfo(t) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(t) < 0))
258
+ return +t;
259
+ }, r.prototype._getStoreDimIndex = function(t) {
260
+ var e = this.getDimensionIndex(t);
261
+ if (process.env.NODE_ENV !== "production" && e == null)
262
+ throw new Error("Unknown dimension " + t);
263
+ return e;
264
+ }, r.prototype.getDimensionInfo = function(t) {
265
+ return this._getDimInfo(this.getDimension(t));
266
+ }, r.prototype._initGetDimensionInfo = function(t) {
267
+ var e = this._dimInfos;
268
+ this._getDimInfo = t ? function(i) {
269
+ return e.hasOwnProperty(i) ? e[i] : void 0;
270
+ } : function(i) {
271
+ return e[i];
272
+ };
273
+ }, r.prototype.getDimensionsOnCoord = function() {
274
+ return this._dimSummary.dataDimsOnCoord.slice();
275
+ }, r.prototype.mapDimension = function(t, e) {
276
+ var i = this._dimSummary;
277
+ if (e == null)
278
+ return i.encodeFirstDimNotExtra[t];
279
+ var n = i.encode[t];
280
+ return n ? n[e] : null;
281
+ }, r.prototype.mapDimensionsAll = function(t) {
282
+ var e = this._dimSummary, i = e.encode[t];
283
+ return (i || []).slice();
284
+ }, r.prototype.getStore = function() {
285
+ return this._store;
286
+ }, r.prototype.initData = function(t, e, i) {
287
+ var n = this, a;
288
+ if (t instanceof Oe && (a = t), !a) {
289
+ var o = this.dimensions, s = bi(t) || xr(t) ? new wr(t, o.length) : t;
290
+ a = new Oe();
291
+ var l = j(o, function(u) {
292
+ return {
293
+ type: n._dimInfos[u].type,
294
+ property: u
295
+ };
296
+ });
297
+ a.initData(s, l, i);
298
+ }
299
+ this._store = a, this._nameList = (e || []).slice(), this._idList = [], this._nameRepeatCount = {}, this._doInit(0, a.count()), this._dimSummary = Un(this, this._schema), this.userOutput = this._dimSummary.userOutput;
300
+ }, r.prototype.appendData = function(t) {
301
+ var e = this._store.appendData(t);
302
+ this._doInit(e[0], e[1]);
303
+ }, r.prototype.appendValues = function(t, e) {
304
+ var i = this._store.appendValues(t, e && e.length), n = i.start, a = i.end, o = this._shouldMakeIdFromName();
305
+ if (this._updateOrdinalMeta(), e)
306
+ for (var s = n; s < a; s++) {
307
+ var l = s - n;
308
+ this._nameList[s] = e[l], o && ne(this, s);
309
+ }
310
+ }, r.prototype._updateOrdinalMeta = function() {
311
+ for (var t = this._store, e = this.dimensions, i = 0; i < e.length; i++) {
312
+ var n = this._dimInfos[e[i]];
313
+ n.ordinalMeta && t.collectOrdinalMeta(n.storeDimIndex, n.ordinalMeta);
314
+ }
315
+ }, r.prototype._shouldMakeIdFromName = function() {
316
+ var t = this._store.getProvider();
317
+ return this._idDimIdx == null && t.getSource().sourceFormat !== br && !t.fillStorage;
318
+ }, r.prototype._doInit = function(t, e) {
319
+ if (!(t >= e)) {
320
+ var i = this._store, n = i.getProvider();
321
+ this._updateOrdinalMeta();
322
+ var a = this._nameList, o = this._idList, s = n.getSource().sourceFormat, l = s === Dr;
323
+ if (l && !n.pure)
324
+ for (var u = [], h = t; h < e; h++) {
325
+ var f = n.getItem(h, u);
326
+ if (!this.hasItemOption && Sr(f) && (this.hasItemOption = !0), f) {
327
+ var v = f.name;
328
+ a[h] == null && v != null && (a[h] = jt(v, null));
329
+ var d = f.id;
330
+ o[h] == null && d != null && (o[h] = jt(d, null));
331
+ }
332
+ }
333
+ if (this._shouldMakeIdFromName())
334
+ for (var h = t; h < e; h++)
335
+ ne(this, h);
336
+ Ke(this);
337
+ }
338
+ }, r.prototype.getApproximateExtent = function(t) {
339
+ return this._approximateExtent[t] || this._store.getDataExtent(this._getStoreDimIndex(t));
340
+ }, r.prototype.setApproximateExtent = function(t, e) {
341
+ e = this.getDimension(e), this._approximateExtent[e] = t.slice();
342
+ }, r.prototype.getCalculationInfo = function(t) {
343
+ return this._calculationInfo[t];
344
+ }, r.prototype.setCalculationInfo = function(t, e) {
345
+ _t(t) ? F(this._calculationInfo, t) : this._calculationInfo[t] = e;
346
+ }, r.prototype.getName = function(t) {
347
+ var e = this.getRawIndex(t), i = this._nameList[e];
348
+ return i == null && this._nameDimIdx != null && (i = yt(this, this._nameDimIdx, e)), i == null && (i = ""), i;
349
+ }, r.prototype._getCategory = function(t, e) {
350
+ var i = this._store.get(t, e), n = this._store.getOrdinalMeta(t);
351
+ return n ? n.categories[i] : i;
352
+ }, r.prototype.getId = function(t) {
353
+ return Et(this, this.getRawIndex(t));
354
+ }, r.prototype.count = function() {
355
+ return this._store.count();
356
+ }, r.prototype.get = function(t, e) {
357
+ var i = this._store, n = this._dimInfos[t];
358
+ if (n)
359
+ return i.get(n.storeDimIndex, e);
360
+ }, r.prototype.getByRawIndex = function(t, e) {
361
+ var i = this._store, n = this._dimInfos[t];
362
+ if (n)
363
+ return i.getByRawIndex(n.storeDimIndex, e);
364
+ }, r.prototype.getIndices = function() {
365
+ return this._store.getIndices();
366
+ }, r.prototype.getDataExtent = function(t) {
367
+ return this._store.getDataExtent(this._getStoreDimIndex(t));
368
+ }, r.prototype.getSum = function(t) {
369
+ return this._store.getSum(this._getStoreDimIndex(t));
370
+ }, r.prototype.getMedian = function(t) {
371
+ return this._store.getMedian(this._getStoreDimIndex(t));
372
+ }, r.prototype.getValues = function(t, e) {
373
+ var i = this, n = this._store;
374
+ return H(t) ? n.getValues(j(t, function(a) {
375
+ return i._getStoreDimIndex(a);
376
+ }), e) : n.getValues(t);
377
+ }, r.prototype.hasValue = function(t) {
378
+ for (var e = this._dimSummary.dataDimIndicesOnCoord, i = 0, n = e.length; i < n; i++)
379
+ if (isNaN(this._store.get(e[i], t)))
380
+ return !1;
381
+ return !0;
382
+ }, r.prototype.indexOfName = function(t) {
383
+ for (var e = 0, i = this._store.count(); e < i; e++)
384
+ if (this.getName(e) === t)
385
+ return e;
386
+ return -1;
387
+ }, r.prototype.getRawIndex = function(t) {
388
+ return this._store.getRawIndex(t);
389
+ }, r.prototype.indexOfRawIndex = function(t) {
390
+ return this._store.indexOfRawIndex(t);
391
+ }, r.prototype.rawIndexOf = function(t, e) {
392
+ var i = t && this._invertedIndicesMap[t];
393
+ if (process.env.NODE_ENV !== "production" && !i)
394
+ throw new Error("Do not supported yet");
395
+ var n = i && i[e];
396
+ return n == null || isNaN(n) ? Ze : n;
397
+ }, r.prototype.indicesOfNearest = function(t, e, i) {
398
+ return this._store.indicesOfNearest(this._getStoreDimIndex(t), e, i);
399
+ }, r.prototype.each = function(t, e, i) {
400
+ W(t) && (i = e, e = t, t = []);
401
+ var n = i || this, a = j(dt(t), this._getStoreDimIndex, this);
402
+ this._store.each(a, n ? X(e, n) : e);
403
+ }, r.prototype.filterSelf = function(t, e, i) {
404
+ W(t) && (i = e, e = t, t = []);
405
+ var n = i || this, a = j(dt(t), this._getStoreDimIndex, this);
406
+ return this._store = this._store.filter(a, n ? X(e, n) : e), this;
407
+ }, r.prototype.selectRange = function(t) {
408
+ var e = this, i = {}, n = be(t);
409
+ return S(n, function(a) {
410
+ var o = e._getStoreDimIndex(a);
411
+ i[o] = t[a];
412
+ }), this._store = this._store.selectRange(i), this;
413
+ }, r.prototype.mapArray = function(t, e, i) {
414
+ W(t) && (i = e, e = t, t = []), i = i || this;
415
+ var n = [];
416
+ return this.each(t, function() {
417
+ n.push(e && e.apply(this, arguments));
418
+ }, i), n;
419
+ }, r.prototype.map = function(t, e, i, n) {
420
+ var a = i || n || this, o = j(dt(t), this._getStoreDimIndex, this), s = xt(this);
421
+ return s._store = this._store.map(o, a ? X(e, a) : e), s;
422
+ }, r.prototype.modify = function(t, e, i, n) {
423
+ var a = this, o = i || n || this;
424
+ process.env.NODE_ENV !== "production" && S(dt(t), function(l) {
425
+ var u = a.getDimensionInfo(l);
426
+ u.isCalculationCoord || console.error("Danger: only stack dimension can be modified");
427
+ });
428
+ var s = j(dt(t), this._getStoreDimIndex, this);
429
+ this._store.modify(s, o ? X(e, o) : e);
430
+ }, r.prototype.downSample = function(t, e, i, n) {
431
+ var a = xt(this);
432
+ return a._store = this._store.downSample(this._getStoreDimIndex(t), e, i, n), a;
433
+ }, r.prototype.minmaxDownSample = function(t, e) {
434
+ var i = xt(this);
435
+ return i._store = this._store.minmaxDownSample(this._getStoreDimIndex(t), e), i;
436
+ }, r.prototype.lttbDownSample = function(t, e) {
437
+ var i = xt(this);
438
+ return i._store = this._store.lttbDownSample(this._getStoreDimIndex(t), e), i;
439
+ }, r.prototype.getRawDataItem = function(t) {
440
+ return this._store.getRawDataItem(t);
441
+ }, r.prototype.getItemModel = function(t) {
442
+ var e = this.hostModel, i = this.getRawDataItem(t);
443
+ return new ut(i, e, e && e.ecModel);
444
+ }, r.prototype.diff = function(t) {
445
+ var e = this;
446
+ return new Yn(t ? t.getStore().getIndices() : [], this.getStore().getIndices(), function(i) {
447
+ return Et(t, i);
448
+ }, function(i) {
449
+ return Et(e, i);
450
+ });
451
+ }, r.prototype.getVisual = function(t) {
452
+ var e = this._visual;
453
+ return e && e[t];
454
+ }, r.prototype.setVisual = function(t, e) {
455
+ this._visual = this._visual || {}, _t(t) ? F(this._visual, t) : this._visual[t] = e;
456
+ }, r.prototype.getItemVisual = function(t, e) {
457
+ var i = this._itemVisuals[t], n = i && i[e];
458
+ return n == null ? this.getVisual(e) : n;
459
+ }, r.prototype.hasItemVisual = function() {
460
+ return this._itemVisuals.length > 0;
461
+ }, r.prototype.ensureUniqueItemVisual = function(t, e) {
462
+ var i = this._itemVisuals, n = i[t];
463
+ n || (n = i[t] = {});
464
+ var a = n[e];
465
+ return a == null && (a = this.getVisual(e), H(a) ? a = a.slice() : _t(a) && (a = F({}, a)), n[e] = a), a;
466
+ }, r.prototype.setItemVisual = function(t, e, i) {
467
+ var n = this._itemVisuals[t] || {};
468
+ this._itemVisuals[t] = n, _t(e) ? F(n, e) : n[e] = i;
469
+ }, r.prototype.clearAllVisual = function() {
470
+ this._visual = {}, this._itemVisuals = [];
471
+ }, r.prototype.setLayout = function(t, e) {
472
+ _t(t) ? F(this._layout, t) : this._layout[t] = e;
473
+ }, r.prototype.getLayout = function(t) {
474
+ return this._layout[t];
475
+ }, r.prototype.getItemLayout = function(t) {
476
+ return this._itemLayouts[t];
477
+ }, r.prototype.setItemLayout = function(t, e, i) {
478
+ this._itemLayouts[t] = i ? F(this._itemLayouts[t] || {}, e) : e;
479
+ }, r.prototype.clearItemLayouts = function() {
480
+ this._itemLayouts.length = 0;
481
+ }, r.prototype.setItemGraphicEl = function(t, e) {
482
+ var i = this.hostModel && this.hostModel.seriesIndex;
483
+ Mr(i, this.dataType, t, e), this._graphicEls[t] = e;
484
+ }, r.prototype.getItemGraphicEl = function(t) {
485
+ return this._graphicEls[t];
486
+ }, r.prototype.eachItemGraphicEl = function(t, e) {
487
+ S(this._graphicEls, function(i, n) {
488
+ i && t && t.call(e, i, n);
489
+ });
490
+ }, r.prototype.cloneShallow = function(t) {
491
+ return t || (t = new r(this._schema ? this._schema : j(this.dimensions, this._getDimInfo, this), this.hostModel)), re(t, this), t._store = this._store, t;
492
+ }, r.prototype.wrapMethod = function(t, e) {
493
+ var i = this[t];
494
+ W(i) && (this.__wrappedMethods = this.__wrappedMethods || [], this.__wrappedMethods.push(t), this[t] = function() {
495
+ var n = i.apply(this, arguments);
496
+ return e.apply(this, [n].concat(Cr(arguments)));
497
+ });
498
+ }, r.internalField = (function() {
499
+ Ke = function(t) {
500
+ var e = t._invertedIndicesMap;
501
+ S(e, function(i, n) {
502
+ var a = t._dimInfos[n], o = a.ordinalMeta, s = t._store;
503
+ if (o) {
504
+ i = e[n] = new qn(o.categories.length);
505
+ for (var l = 0; l < i.length; l++)
506
+ i[l] = Ze;
507
+ for (var l = 0; l < s.count(); l++)
508
+ i[s.get(a.storeDimIndex, l)] = l;
509
+ }
510
+ });
511
+ }, yt = function(t, e, i) {
512
+ return jt(t._getCategory(e, i), null);
513
+ }, Et = function(t, e) {
514
+ var i = t._idList[e];
515
+ return i == null && t._idDimIdx != null && (i = yt(t, t._idDimIdx, e)), i == null && (i = Qn + e), i;
516
+ }, dt = function(t) {
517
+ return H(t) || (t = t != null ? [t] : []), t;
518
+ }, xt = function(t) {
519
+ var e = new r(t._schema ? t._schema : j(t.dimensions, t._getDimInfo, t), t.hostModel);
520
+ return re(e, t), e;
521
+ }, re = function(t, e) {
522
+ S(Jn.concat(e.__wrappedMethods || []), function(i) {
523
+ e.hasOwnProperty(i) && (t[i] = e[i]);
524
+ }), t.__wrappedMethods = e.__wrappedMethods, S(jn, function(i) {
525
+ t[i] = Ct(e[i]);
526
+ }), t._calculationInfo = F({}, e._calculationInfo);
527
+ }, ne = function(t, e) {
528
+ var i = t._nameList, n = t._idList, a = t._nameDimIdx, o = t._idDimIdx, s = i[e], l = n[e];
529
+ if (s == null && a != null && (i[e] = s = yt(t, a, e)), l == null && o != null && (n[e] = l = yt(t, o, e)), l == null && s != null) {
530
+ var u = t._nameRepeatCount, h = u[s] = (u[s] || 0) + 1;
531
+ l = s, h > 1 && (l += "__ec__" + h), n[e] = l;
532
+ }
533
+ };
534
+ })(), r;
535
+ })()
536
+ );
537
+ function $o(r, t) {
538
+ return ta(r, t).dimensions;
539
+ }
540
+ function ta(r, t) {
541
+ bi(r) || (r = Tr(r)), t = t || {};
542
+ var e = t.coordDimensions || [], i = t.dimensionsDefine || r.dimensionsDefine || [], n = vt(), a = [], o = ia(r, e, i, t.dimensionsCount), s = t.canOmitUnusedDimensions && $i(o), l = i === r.dimensionsDefine, u = l ? Ki(r) : Zi(i), h = t.encodeDefine;
543
+ !h && t.encodeDefaulter && (h = t.encodeDefaulter(r, o));
544
+ for (var f = vt(h), v = new Ir(o), d = 0; d < v.length; d++)
545
+ v[d] = -1;
546
+ function c(M) {
547
+ var w = v[M];
548
+ if (w < 0) {
549
+ var b = i[M], A = V(b) ? b : {
550
+ name: b
551
+ }, C = new zt(), P = A.name;
552
+ P != null && u.get(P) != null && (C.name = C.displayName = P), A.type != null && (C.type = A.type), A.displayName != null && (C.displayName = A.displayName);
553
+ var O = a.length;
554
+ return v[M] = O, C.storeDimIndex = M, a.push(C), C;
555
+ }
556
+ return a[w];
557
+ }
558
+ if (!s)
559
+ for (var d = 0; d < o; d++)
560
+ c(d);
561
+ f.each(function(M, w) {
562
+ var b = Pe(M).slice();
563
+ if (b.length === 1 && !R(b[0]) && b[0] < 0) {
564
+ f.set(w, !1);
565
+ return;
566
+ }
567
+ var A = f.set(w, []);
568
+ S(b, function(C, P) {
569
+ var O = R(C) ? u.get(C) : C;
570
+ O != null && O < o && (A[P] = O, m(c(O), w, P));
571
+ });
572
+ });
573
+ var g = 0;
574
+ S(e, function(M) {
575
+ var w, b, A, C;
576
+ if (R(M))
577
+ w = M, C = {};
578
+ else {
579
+ C = M, w = C.name;
580
+ var P = C.ordinalMeta;
581
+ C.ordinalMeta = null, C = F({}, C), C.ordinalMeta = P, b = C.dimsDef, A = C.otherDims, C.name = C.coordDim = C.coordDimIndex = C.dimsDef = C.otherDims = null;
582
+ }
583
+ var O = f.get(w);
584
+ if (O !== !1) {
585
+ if (O = Pe(O), !O.length)
586
+ for (var B = 0; B < (b && b.length || 1); B++) {
587
+ for (; g < o && c(g).coordDim != null; )
588
+ g++;
589
+ g < o && O.push(g++);
590
+ }
591
+ S(O, function(G, k) {
592
+ var E = c(G);
593
+ if (l && C.type != null && (E.type = C.type), m(nt(E, C), w, k), E.name == null && b) {
594
+ var N = b[k];
595
+ !V(N) && (N = {
596
+ name: N
597
+ }), E.name = E.displayName = N.name, E.defaultTooltip = N.defaultTooltip;
598
+ }
599
+ A && nt(E.otherDims, A);
600
+ });
601
+ }
602
+ });
603
+ function m(M, w, b) {
604
+ fe.get(w) != null ? M.otherDims[w] = b : (M.coordDim = w, M.coordDimIndex = b, n.set(w, !0));
605
+ }
606
+ var p = t.generateCoord, _ = t.generateCoordCount, y = _ != null;
607
+ _ = p ? _ || 1 : 0;
608
+ var x = p || "value";
609
+ function L(M) {
610
+ M.name == null && (M.name = M.coordDim);
611
+ }
612
+ if (s)
613
+ S(a, function(M) {
614
+ L(M);
615
+ }), a.sort(function(M, w) {
616
+ return M.storeDimIndex - w.storeDimIndex;
617
+ });
618
+ else
619
+ for (var T = 0; T < o; T++) {
620
+ var D = c(T), I = D.coordDim;
621
+ I == null && (D.coordDim = ra(x, n, y), D.coordDimIndex = 0, (!p || _ <= 0) && (D.isExtraCoord = !0), _--), L(D), D.type == null && (Lr(r, T) === Ar.Must || D.isExtraCoord && (D.otherDims.itemName != null || D.otherDims.seriesName != null)) && (D.type = "ordinal");
622
+ }
623
+ return ea(a), new Xi({
624
+ source: r,
625
+ dimensions: a,
626
+ fullDimensionCount: o,
627
+ dimensionOmitted: s
628
+ });
629
+ }
630
+ function ea(r) {
631
+ for (var t = vt(), e = 0; e < r.length; e++) {
632
+ var i = r[e], n = i.name, a = t.get(n) || 0;
633
+ a > 0 && (i.name = n + (a - 1)), a++, t.set(n, a);
634
+ }
635
+ }
636
+ function ia(r, t, e, i) {
637
+ var n = Math.max(r.dimensionsDetectedCount || 1, t.length, e.length, i || 0);
638
+ return S(t, function(a) {
639
+ var o;
640
+ V(a) && (o = a.dimsDef) && (n = Math.max(n, o.length));
641
+ }), n;
642
+ }
643
+ function ra(r, t, e) {
644
+ if (e || t.hasKey(r)) {
645
+ for (var i = 0; t.hasKey(r + i); )
646
+ i++;
647
+ r += i;
648
+ }
649
+ return t.set(r, !0), r;
650
+ }
651
+ function qo(r, t, e) {
652
+ e = e || {};
653
+ var i = e.byIndex, n = e.stackedCoordDimension, a, o, s;
654
+ na(t) ? a = t : (o = t.schema, a = o.dimensions, s = t.store);
655
+ var l = !!(r && r.get("stack")), u, h, f, v;
656
+ if (S(a, function(_, y) {
657
+ R(_) && (a[y] = _ = {
658
+ name: _
659
+ }), l && !_.isExtraCoord && (!i && !u && _.ordinalMeta && (u = _), !h && _.type !== "ordinal" && _.type !== "time" && (!n || n === _.coordDim) && (h = _));
660
+ }), h && !i && !u && (i = !0), h) {
661
+ f = "__\0ecstackresult_" + r.id, v = "__\0ecstackedover_" + r.id, u && (u.createInvertedIndices = !0);
662
+ var d = h.coordDim, c = h.type, g = 0;
663
+ S(a, function(_) {
664
+ _.coordDim === d && g++;
665
+ });
666
+ var m = {
667
+ name: f,
668
+ coordDim: d,
669
+ coordDimIndex: g,
670
+ type: c,
671
+ isExtraCoord: !0,
672
+ isCalculationCoord: !0,
673
+ storeDimIndex: a.length
674
+ }, p = {
675
+ name: v,
676
+ // This dimension contains stack base (generally, 0), so do not set it as
677
+ // `stackedDimCoordDim` to avoid extent calculation, consider log scale.
678
+ coordDim: v,
679
+ coordDimIndex: g + 1,
680
+ type: c,
681
+ isExtraCoord: !0,
682
+ isCalculationCoord: !0,
683
+ storeDimIndex: a.length + 1
684
+ };
685
+ o ? (s && (m.storeDimIndex = s.ensureCalculationDimension(v, c), p.storeDimIndex = s.ensureCalculationDimension(f, c)), o.appendCalculationDimension(m), o.appendCalculationDimension(p)) : (a.push(m), a.push(p));
686
+ }
687
+ return {
688
+ stackedDimension: h && h.name,
689
+ stackedByDimension: u && u.name,
690
+ isStackedByIndex: i,
691
+ stackedOverDimension: v,
692
+ stackResultDimension: f
693
+ };
694
+ }
695
+ function na(r) {
696
+ return !Ui(r.schema);
697
+ }
698
+ function qi(r, t) {
699
+ return !!t && t === r.getCalculationInfo("stackedDimension");
700
+ }
701
+ function aa(r, t) {
702
+ return qi(r, t) ? r.getCalculationInfo("stackResultDimension") : t;
703
+ }
704
+ var q = (
705
+ /** @class */
706
+ (function() {
707
+ function r(t) {
708
+ this._setting = t || {}, this._extent = [1 / 0, -1 / 0];
709
+ }
710
+ return r.prototype.getSetting = function(t) {
711
+ return this._setting[t];
712
+ }, r.prototype.unionExtent = function(t) {
713
+ var e = this._extent;
714
+ t[0] < e[0] && (e[0] = t[0]), t[1] > e[1] && (e[1] = t[1]);
715
+ }, r.prototype.unionExtentFromData = function(t, e) {
716
+ this.unionExtent(t.getApproximateExtent(e));
717
+ }, r.prototype.getExtent = function() {
718
+ return this._extent.slice();
719
+ }, r.prototype.setExtent = function(t, e) {
720
+ var i = this._extent;
721
+ isNaN(t) || (i[0] = t), isNaN(e) || (i[1] = e);
722
+ }, r.prototype.isInExtentRange = function(t) {
723
+ return this._extent[0] <= t && this._extent[1] >= t;
724
+ }, r.prototype.isBlank = function() {
725
+ return this._isBlank;
726
+ }, r.prototype.setBlank = function(t) {
727
+ this._isBlank = t;
728
+ }, r;
729
+ })()
730
+ );
731
+ Or(q);
732
+ var oa = 0, $e = (
733
+ /** @class */
734
+ (function() {
735
+ function r(t) {
736
+ this.categories = t.categories || [], this._needCollect = t.needCollect, this._deduplication = t.deduplication, this.uid = ++oa;
737
+ }
738
+ return r.createByAxisModel = function(t) {
739
+ var e = t.option, i = e.data, n = i && at(i, sa);
740
+ return new r({
741
+ categories: n,
742
+ needCollect: !n,
743
+ // deduplication is default in axis.
744
+ deduplication: e.dedplication !== !1
745
+ });
746
+ }, r.prototype.getOrdinal = function(t) {
747
+ return this._getOrCreateMap().get(t);
748
+ }, r.prototype.parseAndCollect = function(t) {
749
+ var e, i = this._needCollect;
750
+ if (!R(t) && !i)
751
+ return t;
752
+ if (i && !this._deduplication)
753
+ return e = this.categories.length, this.categories[e] = t, e;
754
+ var n = this._getOrCreateMap();
755
+ return e = n.get(t), e == null && (i ? (e = this.categories.length, this.categories[e] = t, n.set(t, e)) : e = NaN), e;
756
+ }, r.prototype._getOrCreateMap = function() {
757
+ return this._map || (this._map = vt(this.categories));
758
+ }, r;
759
+ })()
760
+ );
761
+ function sa(r) {
762
+ return V(r) && r.value != null ? r.value : r + "";
763
+ }
764
+ function Qo(r) {
765
+ var t = Math.pow(10, Mi(Math.abs(r))), e = Math.abs(r / t);
766
+ return e === 0 || e === 1 || e === 2 || e === 3 || e === 5;
767
+ }
768
+ function Jo(r) {
769
+ return r.type === "interval" || r.type === "log";
770
+ }
771
+ function la(r, t, e, i) {
772
+ var n = {}, a = r[1] - r[0], o = n.interval = Si(a / t);
773
+ e != null && o < e && (o = n.interval = e), i != null && o > i && (o = n.interval = i);
774
+ var s = n.intervalPrecision = Qi(o), l = n.niceTickExtent = [it(Math.ceil(r[0] / o) * o, s), it(Math.floor(r[1] / o) * o, s)];
775
+ return ua(l, r), n;
776
+ }
777
+ function jo(r) {
778
+ var t = Math.pow(10, Mi(r)), e = r / t;
779
+ return e ? e === 2 ? e = 3 : e === 3 ? e = 5 : e *= 2 : e = 1, it(e * t);
780
+ }
781
+ function Qi(r) {
782
+ return Se(r) + 2;
783
+ }
784
+ function qe(r, t, e) {
785
+ r[t] = Math.max(Math.min(r[t], e[1]), e[0]);
786
+ }
787
+ function ua(r, t) {
788
+ !isFinite(r[0]) && (r[0] = t[0]), !isFinite(r[1]) && (r[1] = t[1]), qe(r, 0, t), qe(r, 1, t), r[0] > r[1] && (r[0] = r[1]);
789
+ }
790
+ function $t(r, t) {
791
+ return r >= t[0] && r <= t[1];
792
+ }
793
+ function qt(r, t) {
794
+ return t[1] === t[0] ? 0.5 : (r - t[0]) / (t[1] - t[0]);
795
+ }
796
+ function Qt(r, t) {
797
+ return r * (t[1] - t[0]) + t[0];
798
+ }
799
+ var Ce = (
800
+ /** @class */
801
+ (function(r) {
802
+ K(t, r);
803
+ function t(e) {
804
+ var i = r.call(this, e) || this;
805
+ i.type = "ordinal";
806
+ var n = i.getSetting("ordinalMeta");
807
+ return n || (n = new $e({})), H(n) && (n = new $e({
808
+ categories: at(n, function(a) {
809
+ return V(a) ? a.value : a;
810
+ })
811
+ })), i._ordinalMeta = n, i._extent = i.getSetting("extent") || [0, n.categories.length - 1], i;
812
+ }
813
+ return t.prototype.parse = function(e) {
814
+ return e == null ? NaN : R(e) ? this._ordinalMeta.getOrdinal(e) : Math.round(e);
815
+ }, t.prototype.contain = function(e) {
816
+ return e = this.parse(e), $t(e, this._extent) && this._ordinalMeta.categories[e] != null;
817
+ }, t.prototype.normalize = function(e) {
818
+ return e = this._getTickNumber(this.parse(e)), qt(e, this._extent);
819
+ }, t.prototype.scale = function(e) {
820
+ return e = Math.round(Qt(e, this._extent)), this.getRawOrdinalNumber(e);
821
+ }, t.prototype.getTicks = function() {
822
+ for (var e = [], i = this._extent, n = i[0]; n <= i[1]; )
823
+ e.push({
824
+ value: n
825
+ }), n++;
826
+ return e;
827
+ }, t.prototype.getMinorTicks = function(e) {
828
+ }, t.prototype.setSortInfo = function(e) {
829
+ if (e == null) {
830
+ this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;
831
+ return;
832
+ }
833
+ for (var i = e.ordinalNumbers, n = this._ordinalNumbersByTick = [], a = this._ticksByOrdinalNumber = [], o = 0, s = this._ordinalMeta.categories.length, l = Math.min(s, i.length); o < l; ++o) {
834
+ var u = i[o];
835
+ n[o] = u, a[u] = o;
836
+ }
837
+ for (var h = 0; o < s; ++o) {
838
+ for (; a[h] != null; )
839
+ h++;
840
+ n.push(h), a[h] = o;
841
+ }
842
+ }, t.prototype._getTickNumber = function(e) {
843
+ var i = this._ticksByOrdinalNumber;
844
+ return i && e >= 0 && e < i.length ? i[e] : e;
845
+ }, t.prototype.getRawOrdinalNumber = function(e) {
846
+ var i = this._ordinalNumbersByTick;
847
+ return i && e >= 0 && e < i.length ? i[e] : e;
848
+ }, t.prototype.getLabel = function(e) {
849
+ if (!this.isBlank()) {
850
+ var i = this.getRawOrdinalNumber(e.value), n = this._ordinalMeta.categories[i];
851
+ return n == null ? "" : n + "";
852
+ }
853
+ }, t.prototype.count = function() {
854
+ return this._extent[1] - this._extent[0] + 1;
855
+ }, t.prototype.unionExtentFromData = function(e, i) {
856
+ this.unionExtent(e.getApproximateExtent(i));
857
+ }, t.prototype.isInExtentRange = function(e) {
858
+ return e = this._getTickNumber(e), this._extent[0] <= e && this._extent[1] >= e;
859
+ }, t.prototype.getOrdinalMeta = function() {
860
+ return this._ordinalMeta;
861
+ }, t.prototype.calcNiceTicks = function() {
862
+ }, t.prototype.calcNiceExtent = function() {
863
+ }, t.type = "ordinal", t;
864
+ })(q)
865
+ );
866
+ q.registerClass(Ce);
867
+ var ot = it, Lt = (
868
+ /** @class */
869
+ (function(r) {
870
+ K(t, r);
871
+ function t() {
872
+ var e = r !== null && r.apply(this, arguments) || this;
873
+ return e.type = "interval", e._interval = 0, e._intervalPrecision = 2, e;
874
+ }
875
+ return t.prototype.parse = function(e) {
876
+ return e;
877
+ }, t.prototype.contain = function(e) {
878
+ return $t(e, this._extent);
879
+ }, t.prototype.normalize = function(e) {
880
+ return qt(e, this._extent);
881
+ }, t.prototype.scale = function(e) {
882
+ return Qt(e, this._extent);
883
+ }, t.prototype.setExtent = function(e, i) {
884
+ var n = this._extent;
885
+ isNaN(e) || (n[0] = parseFloat(e)), isNaN(i) || (n[1] = parseFloat(i));
886
+ }, t.prototype.unionExtent = function(e) {
887
+ var i = this._extent;
888
+ e[0] < i[0] && (i[0] = e[0]), e[1] > i[1] && (i[1] = e[1]), this.setExtent(i[0], i[1]);
889
+ }, t.prototype.getInterval = function() {
890
+ return this._interval;
891
+ }, t.prototype.setInterval = function(e) {
892
+ this._interval = e, this._niceExtent = this._extent.slice(), this._intervalPrecision = Qi(e);
893
+ }, t.prototype.getTicks = function(e) {
894
+ var i = this._interval, n = this._extent, a = this._niceExtent, o = this._intervalPrecision, s = [];
895
+ if (!i)
896
+ return s;
897
+ var l = 1e4;
898
+ n[0] < a[0] && (e ? s.push({
899
+ value: ot(a[0] - i, o)
900
+ }) : s.push({
901
+ value: n[0]
902
+ }));
903
+ for (var u = a[0]; u <= a[1] && (s.push({
904
+ value: u
905
+ }), u = ot(u + i, o), u !== s[s.length - 1].value); )
906
+ if (s.length > l)
907
+ return [];
908
+ var h = s.length ? s[s.length - 1].value : a[1];
909
+ return n[1] > h && (e ? s.push({
910
+ value: ot(h + i, o)
911
+ }) : s.push({
912
+ value: n[1]
913
+ })), s;
914
+ }, t.prototype.getMinorTicks = function(e) {
915
+ for (var i = this.getTicks(!0), n = [], a = this.getExtent(), o = 1; o < i.length; o++) {
916
+ for (var s = i[o], l = i[o - 1], u = 0, h = [], f = s.value - l.value, v = f / e; u < e - 1; ) {
917
+ var d = ot(l.value + (u + 1) * v);
918
+ d > a[0] && d < a[1] && h.push(d), u++;
919
+ }
920
+ n.push(h);
921
+ }
922
+ return n;
923
+ }, t.prototype.getLabel = function(e, i) {
924
+ if (e == null)
925
+ return "";
926
+ var n = i && i.precision;
927
+ n == null ? n = Se(e.value) || 0 : n === "auto" && (n = this._intervalPrecision);
928
+ var a = ot(e.value, n, !0);
929
+ return Pr(a);
930
+ }, t.prototype.calcNiceTicks = function(e, i, n) {
931
+ e = e || 5;
932
+ var a = this._extent, o = a[1] - a[0];
933
+ if (isFinite(o)) {
934
+ o < 0 && (o = -o, a.reverse());
935
+ var s = la(a, e, i, n);
936
+ this._intervalPrecision = s.intervalPrecision, this._interval = s.interval, this._niceExtent = s.niceTickExtent;
937
+ }
938
+ }, t.prototype.calcNiceExtent = function(e) {
939
+ var i = this._extent;
940
+ if (i[0] === i[1])
941
+ if (i[0] !== 0) {
942
+ var n = Math.abs(i[0]);
943
+ e.fixMax || (i[1] += n / 2), i[0] -= n / 2;
944
+ } else
945
+ i[1] = 1;
946
+ var a = i[1] - i[0];
947
+ isFinite(a) || (i[0] = 0, i[1] = 1), this.calcNiceTicks(e.splitNumber, e.minInterval, e.maxInterval);
948
+ var o = this._interval;
949
+ e.fixMin || (i[0] = ot(Math.floor(i[0] / o) * o)), e.fixMax || (i[1] = ot(Math.ceil(i[1] / o) * o));
950
+ }, t.prototype.setNiceExtent = function(e, i) {
951
+ this._niceExtent = [e, i];
952
+ }, t.type = "interval", t;
953
+ })(q)
954
+ );
955
+ q.registerClass(Lt);
956
+ var Ji = typeof Float32Array != "undefined", ha = Ji ? Float32Array : Array;
957
+ function ae(r) {
958
+ return H(r) ? Ji ? new Float32Array(r) : r : new ha(r);
959
+ }
960
+ var _e = "__ec_stack_";
961
+ function ji(r) {
962
+ return r.get("stack") || _e + r.seriesIndex;
963
+ }
964
+ function De(r) {
965
+ return r.dim + r.index;
966
+ }
967
+ function ts(r) {
968
+ var t = [], e = r.axis, i = "axis0";
969
+ if (e.type === "category") {
970
+ for (var n = e.getBandWidth(), a = 0; a < r.count; a++)
971
+ t.push(nt({
972
+ bandWidth: n,
973
+ axisKey: i,
974
+ stackId: _e + a
975
+ }, r));
976
+ for (var o = ir(t), s = [], a = 0; a < r.count; a++) {
977
+ var l = o[i][_e + a];
978
+ l.offsetCenter = l.offset + l.width / 2, s.push(l);
979
+ }
980
+ return s;
981
+ }
982
+ }
983
+ function tr(r, t) {
984
+ var e = [];
985
+ return t.eachSeriesByType(r, function(i) {
986
+ rr(i) && e.push(i);
987
+ }), e;
988
+ }
989
+ function fa(r) {
990
+ var t = {};
991
+ S(r, function(l) {
992
+ var u = l.coordinateSystem, h = u.getBaseAxis();
993
+ if (!(h.type !== "time" && h.type !== "value"))
994
+ for (var f = l.getData(), v = h.dim + "_" + h.index, d = f.getDimensionIndex(f.mapDimension(h.dim)), c = f.getStore(), g = 0, m = c.count(); g < m; ++g) {
995
+ var p = c.get(d, g);
996
+ t[v] ? t[v].push(p) : t[v] = [p];
997
+ }
998
+ });
999
+ var e = {};
1000
+ for (var i in t)
1001
+ if (t.hasOwnProperty(i)) {
1002
+ var n = t[i];
1003
+ if (n) {
1004
+ n.sort(function(l, u) {
1005
+ return l - u;
1006
+ });
1007
+ for (var a = null, o = 1; o < n.length; ++o) {
1008
+ var s = n[o] - n[o - 1];
1009
+ s > 0 && (a = a === null ? s : Math.min(a, s));
1010
+ }
1011
+ e[i] = a;
1012
+ }
1013
+ }
1014
+ return e;
1015
+ }
1016
+ function er(r) {
1017
+ var t = fa(r), e = [];
1018
+ return S(r, function(i) {
1019
+ var n = i.coordinateSystem, a = n.getBaseAxis(), o = a.getExtent(), s;
1020
+ if (a.type === "category")
1021
+ s = a.getBandWidth();
1022
+ else if (a.type === "value" || a.type === "time") {
1023
+ var l = a.dim + "_" + a.index, u = t[l], h = Math.abs(o[1] - o[0]), f = a.scale.getExtent(), v = Math.abs(f[1] - f[0]);
1024
+ s = u ? h / v * u : h;
1025
+ } else {
1026
+ var d = i.getData();
1027
+ s = Math.abs(o[1] - o[0]) / d.count();
1028
+ }
1029
+ var c = ht(i.get("barWidth"), s), g = ht(i.get("barMaxWidth"), s), m = ht(
1030
+ // barMinWidth by default is 0.5 / 1 in cartesian. Because in value axis,
1031
+ // the auto-calculated bar width might be less than 0.5 / 1.
1032
+ i.get("barMinWidth") || (nr(i) ? 0.5 : 1),
1033
+ s
1034
+ ), p = i.get("barGap"), _ = i.get("barCategoryGap");
1035
+ e.push({
1036
+ bandWidth: s,
1037
+ barWidth: c,
1038
+ barMaxWidth: g,
1039
+ barMinWidth: m,
1040
+ barGap: p,
1041
+ barCategoryGap: _,
1042
+ axisKey: De(a),
1043
+ stackId: ji(i)
1044
+ });
1045
+ }), ir(e);
1046
+ }
1047
+ function ir(r) {
1048
+ var t = {};
1049
+ S(r, function(i, n) {
1050
+ var a = i.axisKey, o = i.bandWidth, s = t[a] || {
1051
+ bandWidth: o,
1052
+ remainedWidth: o,
1053
+ autoWidthCount: 0,
1054
+ categoryGap: null,
1055
+ gap: "20%",
1056
+ stacks: {}
1057
+ }, l = s.stacks;
1058
+ t[a] = s;
1059
+ var u = i.stackId;
1060
+ l[u] || s.autoWidthCount++, l[u] = l[u] || {
1061
+ width: 0,
1062
+ maxWidth: 0
1063
+ };
1064
+ var h = i.barWidth;
1065
+ h && !l[u].width && (l[u].width = h, h = Math.min(s.remainedWidth, h), s.remainedWidth -= h);
1066
+ var f = i.barMaxWidth;
1067
+ f && (l[u].maxWidth = f);
1068
+ var v = i.barMinWidth;
1069
+ v && (l[u].minWidth = v);
1070
+ var d = i.barGap;
1071
+ d != null && (s.gap = d);
1072
+ var c = i.barCategoryGap;
1073
+ c != null && (s.categoryGap = c);
1074
+ });
1075
+ var e = {};
1076
+ return S(t, function(i, n) {
1077
+ e[n] = {};
1078
+ var a = i.stacks, o = i.bandWidth, s = i.categoryGap;
1079
+ if (s == null) {
1080
+ var l = be(a).length;
1081
+ s = Math.max(35 - l * 4, 15) + "%";
1082
+ }
1083
+ var u = ht(s, o), h = ht(i.gap, 1), f = i.remainedWidth, v = i.autoWidthCount, d = (f - u) / (v + (v - 1) * h);
1084
+ d = Math.max(d, 0), S(a, function(p) {
1085
+ var _ = p.maxWidth, y = p.minWidth;
1086
+ if (p.width) {
1087
+ var x = p.width;
1088
+ _ && (x = Math.min(x, _)), y && (x = Math.max(x, y)), p.width = x, f -= x + h * x, v--;
1089
+ } else {
1090
+ var x = d;
1091
+ _ && _ < x && (x = Math.min(_, f)), y && y > x && (x = y), x !== d && (p.width = x, f -= x + h * x, v--);
1092
+ }
1093
+ }), d = (f - u) / (v + (v - 1) * h), d = Math.max(d, 0);
1094
+ var c = 0, g;
1095
+ S(a, function(p, _) {
1096
+ p.width || (p.width = d), g = p, c += p.width * (1 + h);
1097
+ }), g && (c -= g.width * h);
1098
+ var m = -c / 2;
1099
+ S(a, function(p, _) {
1100
+ e[n][_] = e[n][_] || {
1101
+ bandWidth: o,
1102
+ offset: m,
1103
+ width: p.width
1104
+ }, m += p.width * (1 + h);
1105
+ });
1106
+ }), e;
1107
+ }
1108
+ function va(r, t, e) {
1109
+ if (r && t) {
1110
+ var i = r[De(t)];
1111
+ return i;
1112
+ }
1113
+ }
1114
+ function es(r, t) {
1115
+ var e = tr(r, t), i = er(e);
1116
+ S(e, function(n) {
1117
+ var a = n.getData(), o = n.coordinateSystem, s = o.getBaseAxis(), l = ji(n), u = i[De(s)][l], h = u.offset, f = u.width;
1118
+ a.setLayout({
1119
+ bandWidth: u.bandWidth,
1120
+ offset: h,
1121
+ size: f
1122
+ });
1123
+ });
1124
+ }
1125
+ function is(r) {
1126
+ return {
1127
+ seriesType: r,
1128
+ plan: Er(),
1129
+ reset: function(t) {
1130
+ if (rr(t)) {
1131
+ var e = t.getData(), i = t.coordinateSystem, n = i.getBaseAxis(), a = i.getOtherAxis(n), o = e.getDimensionIndex(e.mapDimension(a.dim)), s = e.getDimensionIndex(e.mapDimension(n.dim)), l = t.get("showBackground", !0), u = e.mapDimension(a.dim), h = e.getCalculationInfo("stackResultDimension"), f = qi(e, u) && !!e.getCalculationInfo("stackedOnSeries"), v = a.isHorizontal(), d = da(n, a), c = nr(t), g = t.get("barMinHeight") || 0, m = h && e.getDimensionIndex(h), p = e.getLayout("size"), _ = e.getLayout("offset");
1132
+ return {
1133
+ progress: function(y, x) {
1134
+ for (var L = y.count, T = c && ae(L * 3), D = c && l && ae(L * 3), I = c && ae(L), M = i.master.getRect(), w = v ? M.width : M.height, b, A = x.getStore(), C = 0; (b = y.next()) != null; ) {
1135
+ var P = A.get(f ? m : o, b), O = A.get(s, b), B = d, G = void 0;
1136
+ f && (G = +P - A.get(o, b));
1137
+ var k = void 0, E = void 0, N = void 0, $ = void 0;
1138
+ if (v) {
1139
+ var gt = i.dataToPoint([P, O]);
1140
+ if (f) {
1141
+ var Jt = i.dataToPoint([G, O]);
1142
+ B = Jt[0];
1143
+ }
1144
+ k = B, E = gt[1] + _, N = gt[0] - B, $ = p, Math.abs(N) < g && (N = (N < 0 ? -1 : 1) * g);
1145
+ } else {
1146
+ var gt = i.dataToPoint([O, P]);
1147
+ if (f) {
1148
+ var Jt = i.dataToPoint([O, G]);
1149
+ B = Jt[1];
1150
+ }
1151
+ k = gt[0] + _, E = B, N = p, $ = gt[1] - B, Math.abs($) < g && ($ = ($ <= 0 ? -1 : 1) * g);
1152
+ }
1153
+ c ? (T[C] = k, T[C + 1] = E, T[C + 2] = v ? N : $, D && (D[C] = v ? M.x : k, D[C + 1] = v ? E : M.y, D[C + 2] = w), I[b] = b) : x.setItemLayout(b, {
1154
+ x: k,
1155
+ y: E,
1156
+ width: N,
1157
+ height: $
1158
+ }), C += 3;
1159
+ }
1160
+ c && x.setLayout({
1161
+ largePoints: T,
1162
+ largeDataIndices: I,
1163
+ largeBackgroundPoints: D,
1164
+ valueAxisHorizontal: v
1165
+ });
1166
+ }
1167
+ };
1168
+ }
1169
+ }
1170
+ };
1171
+ }
1172
+ function rr(r) {
1173
+ return r.coordinateSystem && r.coordinateSystem.type === "cartesian2d";
1174
+ }
1175
+ function nr(r) {
1176
+ return r.pipelineContext && r.pipelineContext.large;
1177
+ }
1178
+ function da(r, t) {
1179
+ var e = t.model.get("startValue");
1180
+ return e || (e = 0), t.toGlobalCoord(t.dataToCoord(t.type === "log" ? e > 0 ? e : 1 : e));
1181
+ }
1182
+ var ca = function(r, t, e, i) {
1183
+ for (; e < i; ) {
1184
+ var n = e + i >>> 1;
1185
+ r[n][1] < t ? e = n + 1 : i = n;
1186
+ }
1187
+ return e;
1188
+ }, ar = (
1189
+ /** @class */
1190
+ (function(r) {
1191
+ K(t, r);
1192
+ function t(e) {
1193
+ var i = r.call(this, e) || this;
1194
+ return i.type = "time", i;
1195
+ }
1196
+ return t.prototype.getLabel = function(e) {
1197
+ var i = this.getSetting("useUTC");
1198
+ return Ci(e.value, Ee[kr(bt(this._minLevelUnit))] || Ee.second, i, this.getSetting("locale"));
1199
+ }, t.prototype.getFormattedLabel = function(e, i, n) {
1200
+ var a = this.getSetting("useUTC"), o = this.getSetting("locale");
1201
+ return Nr(e, i, n, o, a);
1202
+ }, t.prototype.getTicks = function() {
1203
+ var e = this._interval, i = this._extent, n = [];
1204
+ if (!e)
1205
+ return n;
1206
+ n.push({
1207
+ value: i[0],
1208
+ level: 0
1209
+ });
1210
+ var a = this.getSetting("useUTC"), o = wa(this._minLevelUnit, this._approxInterval, a, i);
1211
+ return n = n.concat(o), n.push({
1212
+ value: i[1],
1213
+ level: 0
1214
+ }), n;
1215
+ }, t.prototype.calcNiceExtent = function(e) {
1216
+ var i = this._extent;
1217
+ if (i[0] === i[1] && (i[0] -= Z, i[1] += Z), i[1] === -1 / 0 && i[0] === 1 / 0) {
1218
+ var n = /* @__PURE__ */ new Date();
1219
+ i[1] = +new Date(n.getFullYear(), n.getMonth(), n.getDate()), i[0] = i[1] - Z;
1220
+ }
1221
+ this.calcNiceTicks(e.splitNumber, e.minInterval, e.maxInterval);
1222
+ }, t.prototype.calcNiceTicks = function(e, i, n) {
1223
+ e = e || 10;
1224
+ var a = this._extent, o = a[1] - a[0];
1225
+ this._approxInterval = o / e, i != null && this._approxInterval < i && (this._approxInterval = i), n != null && this._approxInterval > n && (this._approxInterval = n);
1226
+ var s = kt.length, l = Math.min(ca(kt, this._approxInterval, 0, s), s - 1);
1227
+ this._interval = kt[l][1], this._minLevelUnit = kt[Math.max(l - 1, 0)][0];
1228
+ }, t.prototype.parse = function(e) {
1229
+ return we(e) ? e : +ve(e);
1230
+ }, t.prototype.contain = function(e) {
1231
+ return $t(this.parse(e), this._extent);
1232
+ }, t.prototype.normalize = function(e) {
1233
+ return qt(this.parse(e), this._extent);
1234
+ }, t.prototype.scale = function(e) {
1235
+ return Qt(e, this._extent);
1236
+ }, t.type = "time", t;
1237
+ })(Lt)
1238
+ ), kt = [
1239
+ // Format interval
1240
+ ["second", Di],
1241
+ ["minute", Ti],
1242
+ ["hour", Ft],
1243
+ ["quarter-day", Ft * 6],
1244
+ ["half-day", Ft * 12],
1245
+ ["day", Z * 1.2],
1246
+ ["half-week", Z * 3.5],
1247
+ ["week", Z * 7],
1248
+ ["month", Z * 31],
1249
+ ["quarter", Z * 95],
1250
+ ["half-year", ke / 2],
1251
+ ["year", ke]
1252
+ // 1Y
1253
+ ];
1254
+ function pa(r, t, e, i) {
1255
+ var n = ve(t), a = ve(e), o = function(c) {
1256
+ return Re(n, c, i) === Re(a, c, i);
1257
+ }, s = function() {
1258
+ return o("year");
1259
+ }, l = function() {
1260
+ return s() && o("month");
1261
+ }, u = function() {
1262
+ return l() && o("day");
1263
+ }, h = function() {
1264
+ return u() && o("hour");
1265
+ }, f = function() {
1266
+ return h() && o("minute");
1267
+ }, v = function() {
1268
+ return f() && o("second");
1269
+ }, d = function() {
1270
+ return v() && o("millisecond");
1271
+ };
1272
+ switch (r) {
1273
+ case "year":
1274
+ return s();
1275
+ case "month":
1276
+ return l();
1277
+ case "day":
1278
+ return u();
1279
+ case "hour":
1280
+ return h();
1281
+ case "minute":
1282
+ return f();
1283
+ case "second":
1284
+ return v();
1285
+ case "millisecond":
1286
+ return d();
1287
+ }
1288
+ }
1289
+ function ga(r, t) {
1290
+ return r /= Z, r > 16 ? 16 : r > 7.5 ? 7 : r > 3.5 ? 4 : r > 1.5 ? 2 : 1;
1291
+ }
1292
+ function ma(r) {
1293
+ var t = 30 * Z;
1294
+ return r /= t, r > 6 ? 6 : r > 3 ? 3 : r > 2 ? 2 : 1;
1295
+ }
1296
+ function _a(r) {
1297
+ return r /= Ft, r > 12 ? 12 : r > 6 ? 6 : r > 3.5 ? 4 : r > 2 ? 2 : 1;
1298
+ }
1299
+ function Qe(r, t) {
1300
+ return r /= t ? Ti : Di, r > 30 ? 30 : r > 20 ? 20 : r > 15 ? 15 : r > 10 ? 10 : r > 5 ? 5 : r > 2 ? 2 : 1;
1301
+ }
1302
+ function ya(r) {
1303
+ return Si(r);
1304
+ }
1305
+ function xa(r, t, e) {
1306
+ var i = new Date(r);
1307
+ switch (bt(t)) {
1308
+ case "year":
1309
+ case "month":
1310
+ i[Ei(e)](0);
1311
+ case "day":
1312
+ i[Pi(e)](1);
1313
+ case "hour":
1314
+ i[Oi(e)](0);
1315
+ case "minute":
1316
+ i[Ai(e)](0);
1317
+ case "second":
1318
+ i[Ii(e)](0), i[Li(e)](0);
1319
+ }
1320
+ return i.getTime();
1321
+ }
1322
+ function wa(r, t, e, i) {
1323
+ var n = 1e4, a = Rr, o = 0;
1324
+ function s(w, b, A, C, P, O, B) {
1325
+ for (var G = new Date(b), k = b, E = G[C](); k < A && k <= i[1]; )
1326
+ B.push({
1327
+ value: k
1328
+ }), E += w, G[P](E), k = G.getTime();
1329
+ B.push({
1330
+ value: k,
1331
+ notAdd: !0
1332
+ });
1333
+ }
1334
+ function l(w, b, A) {
1335
+ var C = [], P = !b.length;
1336
+ if (!pa(bt(w), i[0], i[1], e)) {
1337
+ P && (b = [{
1338
+ // TODO Optimize. Not include so may ticks.
1339
+ value: xa(new Date(i[0]), w, e)
1340
+ }, {
1341
+ value: i[1]
1342
+ }]);
1343
+ for (var O = 0; O < b.length - 1; O++) {
1344
+ var B = b[O].value, G = b[O + 1].value;
1345
+ if (B !== G) {
1346
+ var k = void 0, E = void 0, N = void 0, $ = !1;
1347
+ switch (w) {
1348
+ case "year":
1349
+ k = Math.max(1, Math.round(t / Z / 365)), E = Xr(e), N = Ur(e);
1350
+ break;
1351
+ case "half-year":
1352
+ case "quarter":
1353
+ case "month":
1354
+ k = ma(t), E = Yr(e), N = Ei(e);
1355
+ break;
1356
+ case "week":
1357
+ // PENDING If week is added. Ignore day.
1358
+ case "half-week":
1359
+ case "day":
1360
+ k = ga(t), E = Gr(e), N = Pi(e), $ = !0;
1361
+ break;
1362
+ case "half-day":
1363
+ case "quarter-day":
1364
+ case "hour":
1365
+ k = _a(t), E = Vr(e), N = Oi(e);
1366
+ break;
1367
+ case "minute":
1368
+ k = Qe(t, !0), E = Wr(e), N = Ai(e);
1369
+ break;
1370
+ case "second":
1371
+ k = Qe(t, !1), E = zr(e), N = Ii(e);
1372
+ break;
1373
+ case "millisecond":
1374
+ k = ya(t), E = Fr(e), N = Li(e);
1375
+ break;
1376
+ }
1377
+ s(k, B, G, E, N, $, C), w === "year" && A.length > 1 && O === 0 && A.unshift({
1378
+ value: A[0].value - k
1379
+ });
1380
+ }
1381
+ }
1382
+ for (var O = 0; O < C.length; O++)
1383
+ A.push(C[O]);
1384
+ return C;
1385
+ }
1386
+ }
1387
+ for (var u = [], h = [], f = 0, v = 0, d = 0; d < a.length && o++ < n; ++d) {
1388
+ var c = bt(a[d]);
1389
+ if (Br(a[d])) {
1390
+ l(a[d], u[u.length - 1] || [], h);
1391
+ var g = a[d + 1] ? bt(a[d + 1]) : null;
1392
+ if (c !== g) {
1393
+ if (h.length) {
1394
+ v = f, h.sort(function(w, b) {
1395
+ return w.value - b.value;
1396
+ });
1397
+ for (var m = [], p = 0; p < h.length; ++p) {
1398
+ var _ = h[p].value;
1399
+ (p === 0 || h[p - 1].value !== _) && (m.push(h[p]), _ >= i[0] && _ <= i[1] && f++);
1400
+ }
1401
+ var y = (i[1] - i[0]) / t;
1402
+ if (f > y * 1.5 && v > y / 1.5 || (u.push(m), f > y || r === a[d]))
1403
+ break;
1404
+ }
1405
+ h = [];
1406
+ }
1407
+ }
1408
+ }
1409
+ process.env.NODE_ENV !== "production" && o >= n && Hr("Exceed safe limit.");
1410
+ for (var x = Ne(at(u, function(w) {
1411
+ return Ne(w, function(b) {
1412
+ return b.value >= i[0] && b.value <= i[1] && !b.notAdd;
1413
+ });
1414
+ }), function(w) {
1415
+ return w.length > 0;
1416
+ }), L = [], T = x.length - 1, d = 0; d < x.length; ++d)
1417
+ for (var D = x[d], I = 0; I < D.length; ++I)
1418
+ L.push({
1419
+ value: D[I].value,
1420
+ level: T - d
1421
+ });
1422
+ L.sort(function(w, b) {
1423
+ return w.value - b.value;
1424
+ });
1425
+ for (var M = [], d = 0; d < L.length; ++d)
1426
+ (d === 0 || L[d].value !== L[d - 1].value) && M.push(L[d]);
1427
+ return M;
1428
+ }
1429
+ q.registerClass(ar);
1430
+ var Je = q.prototype, Mt = Lt.prototype, ba = it, Sa = Math.floor, Ma = Math.ceil, Nt = Math.pow, U = Math.log, Te = (
1431
+ /** @class */
1432
+ (function(r) {
1433
+ K(t, r);
1434
+ function t() {
1435
+ var e = r !== null && r.apply(this, arguments) || this;
1436
+ return e.type = "log", e.base = 10, e._originalScale = new Lt(), e._interval = 0, e;
1437
+ }
1438
+ return t.prototype.getTicks = function(e) {
1439
+ var i = this._originalScale, n = this._extent, a = i.getExtent(), o = Mt.getTicks.call(this, e);
1440
+ return at(o, function(s) {
1441
+ var l = s.value, u = it(Nt(this.base, l));
1442
+ return u = l === n[0] && this._fixMin ? Rt(u, a[0]) : u, u = l === n[1] && this._fixMax ? Rt(u, a[1]) : u, {
1443
+ value: u
1444
+ };
1445
+ }, this);
1446
+ }, t.prototype.setExtent = function(e, i) {
1447
+ var n = U(this.base);
1448
+ e = U(Math.max(0, e)) / n, i = U(Math.max(0, i)) / n, Mt.setExtent.call(this, e, i);
1449
+ }, t.prototype.getExtent = function() {
1450
+ var e = this.base, i = Je.getExtent.call(this);
1451
+ i[0] = Nt(e, i[0]), i[1] = Nt(e, i[1]);
1452
+ var n = this._originalScale, a = n.getExtent();
1453
+ return this._fixMin && (i[0] = Rt(i[0], a[0])), this._fixMax && (i[1] = Rt(i[1], a[1])), i;
1454
+ }, t.prototype.unionExtent = function(e) {
1455
+ this._originalScale.unionExtent(e);
1456
+ var i = this.base;
1457
+ e[0] = U(e[0]) / U(i), e[1] = U(e[1]) / U(i), Je.unionExtent.call(this, e);
1458
+ }, t.prototype.unionExtentFromData = function(e, i) {
1459
+ this.unionExtent(e.getApproximateExtent(i));
1460
+ }, t.prototype.calcNiceTicks = function(e) {
1461
+ e = e || 10;
1462
+ var i = this._extent, n = i[1] - i[0];
1463
+ if (!(n === 1 / 0 || n <= 0)) {
1464
+ var a = Zr(n), o = e / n * a;
1465
+ for (o <= 0.5 && (a *= 10); !isNaN(a) && Math.abs(a) < 1 && Math.abs(a) > 0; )
1466
+ a *= 10;
1467
+ var s = [it(Ma(i[0] / a) * a), it(Sa(i[1] / a) * a)];
1468
+ this._interval = a, this._niceExtent = s;
1469
+ }
1470
+ }, t.prototype.calcNiceExtent = function(e) {
1471
+ Mt.calcNiceExtent.call(this, e), this._fixMin = e.fixMin, this._fixMax = e.fixMax;
1472
+ }, t.prototype.parse = function(e) {
1473
+ return e;
1474
+ }, t.prototype.contain = function(e) {
1475
+ return e = U(e) / U(this.base), $t(e, this._extent);
1476
+ }, t.prototype.normalize = function(e) {
1477
+ return e = U(e) / U(this.base), qt(e, this._extent);
1478
+ }, t.prototype.scale = function(e) {
1479
+ return e = Qt(e, this._extent), Nt(this.base, e);
1480
+ }, t.type = "log", t;
1481
+ })(q)
1482
+ ), or = Te.prototype;
1483
+ or.getMinorTicks = Mt.getMinorTicks;
1484
+ or.getLabel = Mt.getLabel;
1485
+ function Rt(r, t) {
1486
+ return ba(r, Se(t));
1487
+ }
1488
+ q.registerClass(Te);
1489
+ var Ca = (
1490
+ /** @class */
1491
+ (function() {
1492
+ function r(t, e, i) {
1493
+ this._prepareParams(t, e, i);
1494
+ }
1495
+ return r.prototype._prepareParams = function(t, e, i) {
1496
+ i[1] < i[0] && (i = [NaN, NaN]), this._dataMin = i[0], this._dataMax = i[1];
1497
+ var n = this._isOrdinal = t.type === "ordinal";
1498
+ this._needCrossZero = t.type === "interval" && e.getNeedCrossZero && e.getNeedCrossZero();
1499
+ var a = e.get("min", !0);
1500
+ a == null && (a = e.get("startValue", !0));
1501
+ var o = this._modelMinRaw = a;
1502
+ W(o) ? this._modelMinNum = Bt(t, o({
1503
+ min: i[0],
1504
+ max: i[1]
1505
+ })) : o !== "dataMin" && (this._modelMinNum = Bt(t, o));
1506
+ var s = this._modelMaxRaw = e.get("max", !0);
1507
+ if (W(s) ? this._modelMaxNum = Bt(t, s({
1508
+ min: i[0],
1509
+ max: i[1]
1510
+ })) : s !== "dataMax" && (this._modelMaxNum = Bt(t, s)), n)
1511
+ this._axisDataLen = e.getCategories().length;
1512
+ else {
1513
+ var l = e.get("boundaryGap"), u = H(l) ? l : [l || 0, l || 0];
1514
+ typeof u[0] == "boolean" || typeof u[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 = [Be(u[0], 1), Be(u[1], 1)];
1515
+ }
1516
+ }, r.prototype.calculate = function() {
1517
+ var t = this._isOrdinal, e = this._dataMin, i = this._dataMax, n = this._axisDataLen, a = this._boundaryGapInner, o = t ? null : i - e || Math.abs(e), s = this._modelMinRaw === "dataMin" ? e : this._modelMinNum, l = this._modelMaxRaw === "dataMax" ? i : this._modelMaxNum, u = s != null, h = l != null;
1518
+ s == null && (s = t ? n ? 0 : NaN : e - a[0] * o), l == null && (l = t ? n ? n - 1 : NaN : i + a[1] * o), (s == null || !isFinite(s)) && (s = NaN), (l == null || !isFinite(l)) && (l = NaN);
1519
+ var f = de(s) || de(l) || t && !n;
1520
+ this._needCrossZero && (s > 0 && l > 0 && !u && (s = 0), s < 0 && l < 0 && !h && (l = 0));
1521
+ var v = this._determinedMin, d = this._determinedMax;
1522
+ return v != null && (s = v, u = !0), d != null && (l = d, h = !0), {
1523
+ min: s,
1524
+ max: l,
1525
+ minFixed: u,
1526
+ maxFixed: h,
1527
+ isBlank: f
1528
+ };
1529
+ }, r.prototype.modifyDataMinMax = function(t, e) {
1530
+ process.env.NODE_ENV !== "production" && Vt(!this.frozen), this[Ta[t]] = e;
1531
+ }, r.prototype.setDeterminedMinMax = function(t, e) {
1532
+ var i = Da[t];
1533
+ process.env.NODE_ENV !== "production" && Vt(!this.frozen && this[i] == null), this[i] = e;
1534
+ }, r.prototype.freeze = function() {
1535
+ this.frozen = !0;
1536
+ }, r;
1537
+ })()
1538
+ ), Da = {
1539
+ min: "_determinedMin",
1540
+ max: "_determinedMax"
1541
+ }, Ta = {
1542
+ min: "_dataMin",
1543
+ max: "_dataMax"
1544
+ };
1545
+ function Ia(r, t, e) {
1546
+ var i = r.rawExtentInfo;
1547
+ return i || (i = new Ca(r, t, e), r.rawExtentInfo = i, i);
1548
+ }
1549
+ function Bt(r, t) {
1550
+ return t == null ? null : de(t) ? NaN : r.parse(t);
1551
+ }
1552
+ function La(r, t) {
1553
+ var e = r.type, i = Ia(r, t, r.getExtent()).calculate();
1554
+ r.setBlank(i.isBlank);
1555
+ var n = i.min, a = i.max, o = t.ecModel;
1556
+ if (o && e === "time") {
1557
+ var s = tr("bar", o), l = !1;
1558
+ if (S(s, function(f) {
1559
+ l = l || f.getBaseAxis() === t.axis;
1560
+ }), l) {
1561
+ var u = er(s), h = Aa(n, a, t, u);
1562
+ n = h.min, a = h.max;
1563
+ }
1564
+ }
1565
+ return {
1566
+ extent: [n, a],
1567
+ // "fix" means "fixed", the value should not be
1568
+ // changed in the subsequent steps.
1569
+ fixMin: i.minFixed,
1570
+ fixMax: i.maxFixed
1571
+ };
1572
+ }
1573
+ function Aa(r, t, e, i) {
1574
+ var n = e.axis.getExtent(), a = Math.abs(n[1] - n[0]), o = va(i, e.axis);
1575
+ if (o === void 0)
1576
+ return {
1577
+ min: r,
1578
+ max: t
1579
+ };
1580
+ var s = 1 / 0;
1581
+ S(o, function(d) {
1582
+ s = Math.min(d.offset, s);
1583
+ });
1584
+ var l = -1 / 0;
1585
+ S(o, function(d) {
1586
+ l = Math.max(d.offset + d.width, l);
1587
+ }), s = Math.abs(s), l = Math.abs(l);
1588
+ var u = s + l, h = t - r, f = 1 - (s + l) / a, v = h / f - h;
1589
+ return t += v * (l / u), r -= v * (s / u), {
1590
+ min: r,
1591
+ max: t
1592
+ };
1593
+ }
1594
+ function rs(r, t) {
1595
+ var e = t, i = La(r, e), n = i.extent, a = e.get("splitNumber");
1596
+ r instanceof Te && (r.base = e.get("logBase"));
1597
+ var o = r.type, s = e.get("interval"), l = o === "interval" || o === "time";
1598
+ r.setExtent(n[0], n[1]), r.calcNiceExtent({
1599
+ splitNumber: a,
1600
+ fixMin: i.fixMin,
1601
+ fixMax: i.fixMax,
1602
+ minInterval: l ? e.get("minInterval") : null,
1603
+ maxInterval: l ? e.get("maxInterval") : null
1604
+ }), s != null && r.setInterval && r.setInterval(s);
1605
+ }
1606
+ function ns(r, t) {
1607
+ if (t = t || r.get("type"), t)
1608
+ switch (t) {
1609
+ // Buildin scale
1610
+ case "category":
1611
+ return new Ce({
1612
+ ordinalMeta: r.getOrdinalMeta ? r.getOrdinalMeta() : r.getCategories(),
1613
+ extent: [1 / 0, -1 / 0]
1614
+ });
1615
+ case "time":
1616
+ return new ar({
1617
+ locale: r.ecModel.getLocaleModel(),
1618
+ useUTC: r.ecModel.get("useUTC")
1619
+ });
1620
+ default:
1621
+ return new (q.getClass(t) || Lt)();
1622
+ }
1623
+ }
1624
+ function as(r) {
1625
+ var t = r.scale.getExtent(), e = t[0], i = t[1];
1626
+ return !(e > 0 && i > 0 || e < 0 && i < 0);
1627
+ }
1628
+ function Oa(r) {
1629
+ var t = r.getLabelModel().get("formatter"), e = r.type === "category" ? r.scale.getExtent()[0] : null;
1630
+ return r.scale.type === "time" ? /* @__PURE__ */ (function(i) {
1631
+ return function(n, a) {
1632
+ return r.scale.getFormattedLabel(n, a, i);
1633
+ };
1634
+ })(t) : R(t) ? /* @__PURE__ */ (function(i) {
1635
+ return function(n) {
1636
+ var a = r.scale.getLabel(n), o = i.replace("{value}", a != null ? a : "");
1637
+ return o;
1638
+ };
1639
+ })(t) : W(t) ? /* @__PURE__ */ (function(i) {
1640
+ return function(n, a) {
1641
+ return e != null && (a = n.value - e), i(Ie(r, n), a, n.level != null ? {
1642
+ level: n.level
1643
+ } : null);
1644
+ };
1645
+ })(t) : function(i) {
1646
+ return r.scale.getLabel(i);
1647
+ };
1648
+ }
1649
+ function Ie(r, t) {
1650
+ return r.type === "category" ? r.scale.getLabel(t) : t.value;
1651
+ }
1652
+ function os(r) {
1653
+ var t = r.model, e = r.scale;
1654
+ if (!(!t.get(["axisLabel", "show"]) || e.isBlank())) {
1655
+ var i, n, a = e.getExtent();
1656
+ e instanceof Ce ? n = e.count() : (i = e.getTicks(), n = i.length);
1657
+ var o = r.getLabelModel(), s = Oa(r), l, u = 1;
1658
+ n > 40 && (u = Math.ceil(n / 40));
1659
+ for (var h = 0; h < n; h += u) {
1660
+ var f = i ? i[h] : {
1661
+ value: a[0] + h
1662
+ }, v = s(f, h), d = o.getTextRect(v), c = Pa(d, o.get("rotate") || 0);
1663
+ l ? l.union(c) : l = c;
1664
+ }
1665
+ return l;
1666
+ }
1667
+ }
1668
+ function Pa(r, t) {
1669
+ var e = t * Math.PI / 180, i = r.width, n = r.height, a = i * Math.abs(Math.cos(e)) + Math.abs(n * Math.sin(e)), o = i * Math.abs(Math.sin(e)) + Math.abs(n * Math.cos(e)), s = new pt(r.x, r.y, a, o);
1670
+ return s;
1671
+ }
1672
+ function Ea(r) {
1673
+ var t = r.get("interval");
1674
+ return t == null ? "auto" : t;
1675
+ }
1676
+ function ka(r) {
1677
+ return r.type === "category" && Ea(r.getLabelModel()) === 0;
1678
+ }
1679
+ function Na(r, t) {
1680
+ var e = {};
1681
+ return S(r.mapDimensionsAll(t), function(i) {
1682
+ e[aa(r, i)] = !0;
1683
+ }), be(e);
1684
+ }
1685
+ function ss(r, t, e) {
1686
+ t && S(Na(t, e), function(i) {
1687
+ var n = t.getApproximateExtent(i);
1688
+ n[0] < r[0] && (r[0] = n[0]), n[1] > r[1] && (r[1] = n[1]);
1689
+ });
1690
+ }
1691
+ var je = [], Ra = {
1692
+ registerPreprocessor: ln,
1693
+ registerProcessor: sn,
1694
+ registerPostInit: on,
1695
+ registerPostUpdate: an,
1696
+ registerUpdateLifecycle: nn,
1697
+ registerAction: rn,
1698
+ registerCoordinateSystem: en,
1699
+ registerLayout: tn,
1700
+ registerVisual: jr,
1701
+ registerTransform: Jr,
1702
+ registerLoading: Qr,
1703
+ registerMap: qr,
1704
+ registerImpl: $r,
1705
+ PRIORITY: Kr,
1706
+ ComponentModel: St,
1707
+ ComponentView: Dt,
1708
+ SeriesModel: Fe,
1709
+ ChartView: He,
1710
+ // TODO Use ComponentModel and SeriesModel instead of Constructor
1711
+ registerComponentModel: function(r) {
1712
+ St.registerClass(r);
1713
+ },
1714
+ registerComponentView: function(r) {
1715
+ Dt.registerClass(r);
1716
+ },
1717
+ registerSeriesModel: function(r) {
1718
+ Fe.registerClass(r);
1719
+ },
1720
+ registerChartView: function(r) {
1721
+ He.registerClass(r);
1722
+ },
1723
+ registerSubTypeDefaulter: function(r, t) {
1724
+ St.registerSubTypeDefaulter(r, t);
1725
+ },
1726
+ registerPainter: function(r, t) {
1727
+ un(r, t);
1728
+ }
1729
+ };
1730
+ function sr(r) {
1731
+ if (H(r)) {
1732
+ S(r, function(t) {
1733
+ sr(t);
1734
+ });
1735
+ return;
1736
+ }
1737
+ Zt(je, r) >= 0 || (je.push(r), W(r) && (r = {
1738
+ install: r
1739
+ }), r.install(Ra));
1740
+ }
1741
+ function Ba(r) {
1742
+ for (var t = [], e = 0; e < r.length; e++) {
1743
+ var i = r[e];
1744
+ if (!i.defaultAttr.ignore) {
1745
+ var n = i.label, a = n.getComputedTransform(), o = n.getBoundingRect(), s = !a || a[1] < 1e-5 && a[2] < 1e-5, l = n.style.margin || 0, u = o.clone();
1746
+ u.applyTransform(a), u.x -= l / 2, u.y -= l / 2, u.width += l, u.height += l;
1747
+ var h = s ? new ce(o, a) : null;
1748
+ t.push({
1749
+ label: n,
1750
+ labelLine: i.labelLine,
1751
+ rect: u,
1752
+ localRect: o,
1753
+ obb: h,
1754
+ priority: i.priority,
1755
+ defaultAttr: i.defaultAttr,
1756
+ layoutOption: i.computedLayoutOption,
1757
+ axisAligned: s,
1758
+ transform: a
1759
+ });
1760
+ }
1761
+ }
1762
+ return t;
1763
+ }
1764
+ function lr(r, t, e, i, n, a) {
1765
+ var o = r.length;
1766
+ if (o < 2)
1767
+ return;
1768
+ r.sort(function(T, D) {
1769
+ return T.rect[t] - D.rect[t];
1770
+ });
1771
+ for (var s = 0, l, u = !1, h = 0; h < o; h++) {
1772
+ var f = r[h], v = f.rect;
1773
+ l = v[t] - s, l < 0 && (v[t] -= l, f.label[t] -= l, u = !0), s = v[t] + v[e];
1774
+ }
1775
+ var d = r[0], c = r[o - 1], g, m;
1776
+ p(), g < 0 && x(-g, 0.8), m < 0 && x(m, 0.8), p(), _(g, m, 1), _(m, g, -1), p(), g < 0 && L(-g), m < 0 && L(m);
1777
+ function p() {
1778
+ g = d.rect[t] - i, m = n - c.rect[t] - c.rect[e];
1779
+ }
1780
+ function _(T, D, I) {
1781
+ if (T < 0) {
1782
+ var M = Math.min(D, -T);
1783
+ if (M > 0) {
1784
+ y(M * I, 0, o);
1785
+ var w = M + T;
1786
+ w < 0 && x(-w * I, 1);
1787
+ } else
1788
+ x(-T * I, 1);
1789
+ }
1790
+ }
1791
+ function y(T, D, I) {
1792
+ T !== 0 && (u = !0);
1793
+ for (var M = D; M < I; M++) {
1794
+ var w = r[M], b = w.rect;
1795
+ b[t] += T, w.label[t] += T;
1796
+ }
1797
+ }
1798
+ function x(T, D) {
1799
+ for (var I = [], M = 0, w = 1; w < o; w++) {
1800
+ var b = r[w - 1].rect, A = Math.max(r[w].rect[t] - b[t] - b[e], 0);
1801
+ I.push(A), M += A;
1802
+ }
1803
+ if (M) {
1804
+ var C = Math.min(Math.abs(T) / M, D);
1805
+ if (T > 0)
1806
+ for (var w = 0; w < o - 1; w++) {
1807
+ var P = I[w] * C;
1808
+ y(P, 0, w + 1);
1809
+ }
1810
+ else
1811
+ for (var w = o - 1; w > 0; w--) {
1812
+ var P = I[w - 1] * C;
1813
+ y(-P, w, o);
1814
+ }
1815
+ }
1816
+ }
1817
+ function L(T) {
1818
+ var D = T < 0 ? -1 : 1;
1819
+ T = Math.abs(T);
1820
+ for (var I = Math.ceil(T / (o - 1)), M = 0; M < o - 1; M++)
1821
+ if (D > 0 ? y(I, 0, M + 1) : y(-I, o - M - 1, o), T -= I, T <= 0)
1822
+ return;
1823
+ }
1824
+ return u;
1825
+ }
1826
+ function ls(r, t, e, i) {
1827
+ return lr(r, "x", "width", t, e);
1828
+ }
1829
+ function us(r, t, e, i) {
1830
+ return lr(r, "y", "height", t, e);
1831
+ }
1832
+ function Ha(r) {
1833
+ var t = [];
1834
+ r.sort(function(g, m) {
1835
+ return m.priority - g.priority;
1836
+ });
1837
+ var e = new pt(0, 0, 0, 0);
1838
+ function i(g) {
1839
+ if (!g.ignore) {
1840
+ var m = g.ensureState("emphasis");
1841
+ m.ignore == null && (m.ignore = !1);
1842
+ }
1843
+ g.ignore = !0;
1844
+ }
1845
+ for (var n = 0; n < r.length; n++) {
1846
+ var a = r[n], o = a.axisAligned, s = a.localRect, l = a.transform, u = a.label, h = a.labelLine;
1847
+ e.copy(a.rect), e.width -= 0.1, e.height -= 0.1, e.x += 0.05, e.y += 0.05;
1848
+ for (var f = a.obb, v = !1, d = 0; d < t.length; d++) {
1849
+ var c = t[d];
1850
+ if (e.intersect(c.rect)) {
1851
+ if (o && c.axisAligned) {
1852
+ v = !0;
1853
+ break;
1854
+ }
1855
+ if (c.obb || (c.obb = new ce(c.localRect, c.transform)), f || (f = new ce(s, l)), f.intersect(c.obb)) {
1856
+ v = !0;
1857
+ break;
1858
+ }
1859
+ }
1860
+ }
1861
+ v ? (i(u), h && i(h)) : (u.attr("ignore", a.defaultAttr.ignore), h && h.attr("ignore", a.defaultAttr.labelGuideIgnore), t.push(a));
1862
+ }
1863
+ }
1864
+ function ti(r, t, e) {
1865
+ e = e || {};
1866
+ var i = r.coordinateSystem, n = t.axis, a = {}, o = n.getAxesOnZeroOf()[0], s = n.position, l = o ? "onZero" : s, u = n.dim, h = i.getRect(), f = [h.x, h.x + h.width, h.y, h.y + h.height], v = {
1867
+ left: 0,
1868
+ right: 1,
1869
+ top: 0,
1870
+ bottom: 1,
1871
+ onZero: 2
1872
+ }, d = t.get("offset") || 0, c = u === "x" ? [f[2] - d, f[3] + d] : [f[0] - d, f[1] + d];
1873
+ if (o) {
1874
+ var g = o.toGlobalCoord(o.dataToCoord(0));
1875
+ c[v.onZero] = Math.max(Math.min(g, c[1]), c[0]);
1876
+ }
1877
+ a.position = [u === "y" ? c[v[l]] : f[0], u === "x" ? c[v[l]] : f[3]], a.rotation = Math.PI / 2 * (u === "x" ? 0 : 1);
1878
+ var m = {
1879
+ top: -1,
1880
+ bottom: 1,
1881
+ left: -1,
1882
+ right: 1
1883
+ };
1884
+ a.labelDirection = a.tickDirection = a.nameDirection = m[s], a.labelOffset = o ? c[v[s]] - c[v.onZero] : 0, t.get(["axisTick", "inside"]) && (a.tickDirection = -a.tickDirection), Tt(e.labelInside, t.get(["axisLabel", "inside"])) && (a.labelDirection = -a.labelDirection);
1885
+ var p = t.get(["axisLabel", "rotate"]);
1886
+ return a.labelRotate = l === "top" ? -p : p, a.z2 = 1, a;
1887
+ }
1888
+ function hs(r) {
1889
+ return r.get("coordinateSystem") === "cartesian2d";
1890
+ }
1891
+ function fs(r) {
1892
+ var t = {
1893
+ xAxisModel: null,
1894
+ yAxisModel: null
1895
+ };
1896
+ return S(t, function(e, i) {
1897
+ var n = i.replace(/Model$/, ""), a = r.getReferringComponents(n, hn).models[0];
1898
+ if (process.env.NODE_ENV !== "production" && !a)
1899
+ throw new Error(n + ' "' + fn(r.get(n + "Index"), r.get(n + "Id"), 0) + '" not found');
1900
+ t[i] = a;
1901
+ }), t;
1902
+ }
1903
+ var et = Math.PI, ft = (
1904
+ /** @class */
1905
+ (function() {
1906
+ function r(t, e) {
1907
+ this.group = new pe(), this.opt = e, this.axisModel = t, nt(e, {
1908
+ labelOffset: 0,
1909
+ nameDirection: 1,
1910
+ tickDirection: 1,
1911
+ labelDirection: 1,
1912
+ silent: !0,
1913
+ handleAutoShown: function() {
1914
+ return !0;
1915
+ }
1916
+ });
1917
+ var i = new pe({
1918
+ x: e.position[0],
1919
+ y: e.position[1],
1920
+ rotation: e.rotation
1921
+ });
1922
+ i.updateTransform(), this._transformGroup = i;
1923
+ }
1924
+ return r.prototype.hasBuilder = function(t) {
1925
+ return !!ei[t];
1926
+ }, r.prototype.add = function(t) {
1927
+ ei[t](this.opt, this.axisModel, this.group, this._transformGroup);
1928
+ }, r.prototype.getGroup = function() {
1929
+ return this.group;
1930
+ }, r.innerTextLayout = function(t, e, i) {
1931
+ var n = Bi(e - t), a, o;
1932
+ return Yt(n) ? (o = i > 0 ? "top" : "bottom", a = "center") : Yt(n - et) ? (o = i > 0 ? "bottom" : "top", a = "center") : (o = "middle", n > 0 && n < et ? a = i > 0 ? "right" : "left" : a = i > 0 ? "left" : "right"), {
1933
+ rotation: n,
1934
+ textAlign: a,
1935
+ textVerticalAlign: o
1936
+ };
1937
+ }, r.makeAxisEventDataBase = function(t) {
1938
+ var e = {
1939
+ componentType: t.mainType,
1940
+ componentIndex: t.componentIndex
1941
+ };
1942
+ return e[t.mainType + "Index"] = t.componentIndex, e;
1943
+ }, r.isLabelSilent = function(t) {
1944
+ var e = t.get("tooltip");
1945
+ return t.get("silent") || !(t.get("triggerEvent") || e && e.show);
1946
+ }, r;
1947
+ })()
1948
+ ), ei = {
1949
+ axisLine: function(r, t, e, i) {
1950
+ var n = t.get(["axisLine", "show"]);
1951
+ if (n === "auto" && r.handleAutoShown && (n = r.handleAutoShown("axisLine")), !!n) {
1952
+ var a = t.axis.getExtent(), o = i.transform, s = [a[0], 0], l = [a[1], 0], u = s[0] > l[0];
1953
+ o && (Gt(s, s, o), Gt(l, l, o));
1954
+ var h = F({
1955
+ lineCap: "round"
1956
+ }, t.getModel(["axisLine", "lineStyle"]).getLineStyle()), f = new Ni({
1957
+ shape: {
1958
+ x1: s[0],
1959
+ y1: s[1],
1960
+ x2: l[0],
1961
+ y2: l[1]
1962
+ },
1963
+ style: h,
1964
+ strokeContainThreshold: r.strokeContainThreshold || 5,
1965
+ silent: !0,
1966
+ z2: 1
1967
+ });
1968
+ Ri(f.shape, f.style.lineWidth), f.anid = "line", e.add(f);
1969
+ var v = t.get(["axisLine", "symbol"]);
1970
+ if (v != null) {
1971
+ var d = t.get(["axisLine", "symbolSize"]);
1972
+ R(v) && (v = [v, v]), (R(d) || we(d)) && (d = [d, d]);
1973
+ var c = vn(t.get(["axisLine", "symbolOffset"]) || 0, d), g = d[0], m = d[1];
1974
+ S([{
1975
+ rotate: r.rotation + Math.PI / 2,
1976
+ offset: c[0],
1977
+ r: 0
1978
+ }, {
1979
+ rotate: r.rotation - Math.PI / 2,
1980
+ offset: c[1],
1981
+ r: Math.sqrt((s[0] - l[0]) * (s[0] - l[0]) + (s[1] - l[1]) * (s[1] - l[1]))
1982
+ }], function(p, _) {
1983
+ if (v[_] !== "none" && v[_] != null) {
1984
+ var y = dn(v[_], -g / 2, -m / 2, g, m, h.stroke, !0), x = p.r + p.offset, L = u ? l : s;
1985
+ y.attr({
1986
+ rotation: p.rotate,
1987
+ x: L[0] + x * Math.cos(r.rotation),
1988
+ y: L[1] - x * Math.sin(r.rotation),
1989
+ silent: !0,
1990
+ z2: 11
1991
+ }), e.add(y);
1992
+ }
1993
+ });
1994
+ }
1995
+ }
1996
+ },
1997
+ axisTickLabel: function(r, t, e, i) {
1998
+ var n = Wa(e, i, t, r), a = Ga(e, i, t, r);
1999
+ if (za(t, a, n), Va(e, i, t, r.tickDirection), t.get(["axisLabel", "hideOverlap"])) {
2000
+ var o = Ba(at(a, function(s) {
2001
+ return {
2002
+ label: s,
2003
+ priority: s.z2,
2004
+ defaultAttr: {
2005
+ ignore: s.ignore
2006
+ }
2007
+ };
2008
+ }));
2009
+ Ha(o);
2010
+ }
2011
+ },
2012
+ axisName: function(r, t, e, i) {
2013
+ var n = Tt(r.axisName, t.get("name"));
2014
+ if (n) {
2015
+ var a = t.get("nameLocation"), o = r.nameDirection, s = t.getModel("nameTextStyle"), l = t.get("nameGap") || 0, u = t.axis.getExtent(), h = u[0] > u[1] ? -1 : 1, f = [
2016
+ a === "start" ? u[0] - h * l : a === "end" ? u[1] + h * l : (u[0] + u[1]) / 2,
2017
+ // Reuse labelOffset.
2018
+ ri(a) ? r.labelOffset + o * l : 0
2019
+ ], v, d = t.get("nameRotate");
2020
+ d != null && (d = d * et / 180);
2021
+ var c;
2022
+ ri(a) ? v = ft.innerTextLayout(
2023
+ r.rotation,
2024
+ d != null ? d : r.rotation,
2025
+ // Adapt to axis.
2026
+ o
2027
+ ) : (v = Fa(r.rotation, a, d || 0, u), c = r.axisNameAvailableWidth, c != null && (c = Math.abs(c / Math.sin(v.rotation)), !isFinite(c) && (c = null)));
2028
+ var g = s.getFont(), m = t.get("nameTruncate", !0) || {}, p = m.ellipsis, _ = Tt(r.nameTruncateMaxWidth, m.maxWidth, c), y = new Kt({
2029
+ x: f[0],
2030
+ y: f[1],
2031
+ rotation: v.rotation,
2032
+ silent: ft.isLabelSilent(t),
2033
+ style: Me(s, {
2034
+ text: n,
2035
+ font: g,
2036
+ overflow: "truncate",
2037
+ width: _,
2038
+ ellipsis: p,
2039
+ fill: s.getTextColor() || t.get(["axisLine", "lineStyle", "color"]),
2040
+ align: s.get("align") || v.textAlign,
2041
+ verticalAlign: s.get("verticalAlign") || v.textVerticalAlign
2042
+ }),
2043
+ z2: 1
2044
+ });
2045
+ if (ki({
2046
+ el: y,
2047
+ componentModel: t,
2048
+ itemName: n
2049
+ }), y.__fullText = n, y.anid = "name", t.get("triggerEvent")) {
2050
+ var x = ft.makeAxisEventDataBase(t);
2051
+ x.targetType = "axisName", x.name = n, Q(y).eventData = x;
2052
+ }
2053
+ i.add(y), y.updateTransform(), e.add(y), y.decomposeTransform();
2054
+ }
2055
+ }
2056
+ };
2057
+ function Fa(r, t, e, i) {
2058
+ var n = Bi(e - r), a, o, s = i[0] > i[1], l = t === "start" && !s || t !== "start" && s;
2059
+ return Yt(n - et / 2) ? (o = l ? "bottom" : "top", a = "center") : Yt(n - et * 1.5) ? (o = l ? "top" : "bottom", a = "center") : (o = "middle", n < et * 1.5 && n > et / 2 ? a = l ? "left" : "right" : a = l ? "right" : "left"), {
2060
+ rotation: n,
2061
+ textAlign: a,
2062
+ textVerticalAlign: o
2063
+ };
2064
+ }
2065
+ function za(r, t, e) {
2066
+ if (!ka(r.axis)) {
2067
+ var i = r.get(["axisLabel", "showMinLabel"]), n = r.get(["axisLabel", "showMaxLabel"]);
2068
+ t = t || [], e = e || [];
2069
+ var a = t[0], o = t[1], s = t[t.length - 1], l = t[t.length - 2], u = e[0], h = e[1], f = e[e.length - 1], v = e[e.length - 2];
2070
+ i === !1 ? (Y(a), Y(u)) : ii(a, o) && (i ? (Y(o), Y(h)) : (Y(a), Y(u))), n === !1 ? (Y(s), Y(f)) : ii(l, s) && (n ? (Y(l), Y(v)) : (Y(s), Y(f)));
2071
+ }
2072
+ }
2073
+ function Y(r) {
2074
+ r && (r.ignore = !0);
2075
+ }
2076
+ function ii(r, t) {
2077
+ var e = r && r.getBoundingRect().clone(), i = t && t.getBoundingRect().clone();
2078
+ if (!(!e || !i)) {
2079
+ var n = cn([]);
2080
+ return Hi(n, n, -r.rotation), e.applyTransform(ze([], n, r.getLocalTransform())), i.applyTransform(ze([], n, t.getLocalTransform())), e.intersect(i);
2081
+ }
2082
+ }
2083
+ function ri(r) {
2084
+ return r === "middle" || r === "center";
2085
+ }
2086
+ function ur(r, t, e, i, n) {
2087
+ for (var a = [], o = [], s = [], l = 0; l < r.length; l++) {
2088
+ var u = r[l].coord;
2089
+ o[0] = u, o[1] = 0, s[0] = u, s[1] = e, t && (Gt(o, o, t), Gt(s, s, t));
2090
+ var h = new Ni({
2091
+ shape: {
2092
+ x1: o[0],
2093
+ y1: o[1],
2094
+ x2: s[0],
2095
+ y2: s[1]
2096
+ },
2097
+ style: i,
2098
+ z2: 2,
2099
+ autoBatch: !0,
2100
+ silent: !0
2101
+ });
2102
+ Ri(h.shape, h.style.lineWidth), h.anid = n + "_" + r[l].tickValue, a.push(h);
2103
+ }
2104
+ return a;
2105
+ }
2106
+ function Wa(r, t, e, i) {
2107
+ var n = e.axis, a = e.getModel("axisTick"), o = a.get("show");
2108
+ if (o === "auto" && i.handleAutoShown && (o = i.handleAutoShown("axisTick")), !(!o || n.scale.isBlank())) {
2109
+ for (var s = a.getModel("lineStyle"), l = i.tickDirection * a.get("length"), u = n.getTicksCoords(), h = ur(u, t.transform, l, nt(s.getLineStyle(), {
2110
+ stroke: e.get(["axisLine", "lineStyle", "color"])
2111
+ }), "ticks"), f = 0; f < h.length; f++)
2112
+ r.add(h[f]);
2113
+ return h;
2114
+ }
2115
+ }
2116
+ function Va(r, t, e, i) {
2117
+ var n = e.axis, a = e.getModel("minorTick");
2118
+ if (!(!a.get("show") || n.scale.isBlank())) {
2119
+ var o = n.getMinorTicksCoords();
2120
+ if (o.length)
2121
+ for (var s = a.getModel("lineStyle"), l = i * a.get("length"), u = nt(s.getLineStyle(), nt(e.getModel("axisTick").getLineStyle(), {
2122
+ stroke: e.get(["axisLine", "lineStyle", "color"])
2123
+ })), h = 0; h < o.length; h++)
2124
+ for (var f = ur(o[h], t.transform, l, u, "minorticks_" + h), v = 0; v < f.length; v++)
2125
+ r.add(f[v]);
2126
+ }
2127
+ }
2128
+ function Ga(r, t, e, i) {
2129
+ var n = e.axis, a = Tt(i.axisLabelShow, e.get(["axisLabel", "show"]));
2130
+ if (!(!a || n.scale.isBlank())) {
2131
+ var o = e.getModel("axisLabel"), s = o.get("margin"), l = n.getViewLabels(), u = (Tt(i.labelRotate, o.get("rotate")) || 0) * et / 180, h = ft.innerTextLayout(i.rotation, u, i.labelDirection), f = e.getCategories && e.getCategories(!0), v = [], d = ft.isLabelSilent(e), c = e.get("triggerEvent");
2132
+ return S(l, function(g, m) {
2133
+ var p = n.scale.type === "ordinal" ? n.scale.getRawOrdinalNumber(g.tickValue) : g.tickValue, _ = g.formattedLabel, y = g.rawLabel, x = o;
2134
+ if (f && f[p]) {
2135
+ var L = f[p];
2136
+ V(L) && L.textStyle && (x = new ut(L.textStyle, o, e.ecModel));
2137
+ }
2138
+ var T = x.getTextColor() || e.get(["axisLine", "lineStyle", "color"]), D = n.dataToCoord(p), I = x.getShallow("align", !0) || h.textAlign, M = ct(x.getShallow("alignMinLabel", !0), I), w = ct(x.getShallow("alignMaxLabel", !0), I), b = x.getShallow("verticalAlign", !0) || x.getShallow("baseline", !0) || h.textVerticalAlign, A = ct(x.getShallow("verticalAlignMinLabel", !0), b), C = ct(x.getShallow("verticalAlignMaxLabel", !0), b), P = new Kt({
2139
+ x: D,
2140
+ y: i.labelOffset + i.labelDirection * s,
2141
+ rotation: h.rotation,
2142
+ silent: d,
2143
+ z2: 10 + (g.level || 0),
2144
+ style: Me(x, {
2145
+ text: _,
2146
+ align: m === 0 ? M : m === l.length - 1 ? w : I,
2147
+ verticalAlign: m === 0 ? A : m === l.length - 1 ? C : b,
2148
+ fill: W(T) ? T(
2149
+ // (1) In category axis with data zoom, tick is not the original
2150
+ // index of axis.data. So tick should not be exposed to user
2151
+ // in category axis.
2152
+ // (2) Compatible with previous version, which always use formatted label as
2153
+ // input. But in interval scale the formatted label is like '223,445', which
2154
+ // maked user replace ','. So we modify it to return original val but remain
2155
+ // it as 'string' to avoid error in replacing.
2156
+ n.type === "category" ? y : n.type === "value" ? p + "" : p,
2157
+ m
2158
+ ) : T
2159
+ })
2160
+ });
2161
+ if (P.anid = "label_" + p, ki({
2162
+ el: P,
2163
+ componentModel: e,
2164
+ itemName: _,
2165
+ formatterParamsExtra: {
2166
+ isTruncated: function() {
2167
+ return P.isTruncated;
2168
+ },
2169
+ value: y,
2170
+ tickIndex: m
2171
+ }
2172
+ }), c) {
2173
+ var O = ft.makeAxisEventDataBase(e);
2174
+ O.targetType = "axisLabel", O.value = y, O.tickIndex = m, n.type === "category" && (O.dataIndex = p), Q(P).eventData = O;
2175
+ }
2176
+ t.add(P), P.updateTransform(), v.push(P), r.add(P), P.decomposeTransform();
2177
+ }), v;
2178
+ }
2179
+ }
2180
+ function Ya(r, t) {
2181
+ var e = {
2182
+ /**
2183
+ * key: makeKey(axis.model)
2184
+ * value: {
2185
+ * axis,
2186
+ * coordSys,
2187
+ * axisPointerModel,
2188
+ * triggerTooltip,
2189
+ * triggerEmphasis,
2190
+ * involveSeries,
2191
+ * snap,
2192
+ * seriesModels,
2193
+ * seriesDataCount
2194
+ * }
2195
+ */
2196
+ axesInfo: {},
2197
+ seriesInvolved: !1,
2198
+ /**
2199
+ * key: makeKey(coordSys.model)
2200
+ * value: Object: key makeKey(axis.model), value: axisInfo
2201
+ */
2202
+ coordSysAxesInfo: {},
2203
+ coordSysMap: {}
2204
+ };
2205
+ return Xa(e, r, t), e.seriesInvolved && Za(e, r), e;
2206
+ }
2207
+ function Xa(r, t, e) {
2208
+ var i = t.getComponent("tooltip"), n = t.getComponent("axisPointer"), a = n.get("link", !0) || [], o = [];
2209
+ S(e.getCoordinateSystems(), function(s) {
2210
+ if (!s.axisPointerEnabled)
2211
+ return;
2212
+ var l = It(s.model), u = r.coordSysAxesInfo[l] = {};
2213
+ r.coordSysMap[l] = s;
2214
+ var h = s.model, f = h.getModel("tooltip", i);
2215
+ if (S(s.getAxes(), rt(g, !1, null)), s.getTooltipAxes && i && f.get("show")) {
2216
+ var v = f.get("trigger") === "axis", d = f.get(["axisPointer", "type"]) === "cross", c = s.getTooltipAxes(f.get(["axisPointer", "axis"]));
2217
+ (v || d) && S(c.baseAxes, rt(g, d ? "cross" : !0, v)), d && S(c.otherAxes, rt(g, "cross", !1));
2218
+ }
2219
+ function g(m, p, _) {
2220
+ var y = _.model.getModel("axisPointer", n), x = y.get("show");
2221
+ if (!(!x || x === "auto" && !m && !ye(y))) {
2222
+ p == null && (p = y.get("triggerTooltip")), y = m ? Ua(_, f, n, t, m, p) : y;
2223
+ var L = y.get("snap"), T = y.get("triggerEmphasis"), D = It(_.model), I = p || L || _.type === "category", M = r.axesInfo[D] = {
2224
+ key: D,
2225
+ axis: _,
2226
+ coordSys: s,
2227
+ axisPointerModel: y,
2228
+ triggerTooltip: p,
2229
+ triggerEmphasis: T,
2230
+ involveSeries: I,
2231
+ snap: L,
2232
+ useHandle: ye(y),
2233
+ seriesModels: [],
2234
+ linkGroup: null
2235
+ };
2236
+ u[D] = M, r.seriesInvolved = r.seriesInvolved || I;
2237
+ var w = Ka(a, _);
2238
+ if (w != null) {
2239
+ var b = o[w] || (o[w] = {
2240
+ axesInfo: {}
2241
+ });
2242
+ b.axesInfo[D] = M, b.mapper = a[w].mapper, M.linkGroup = b;
2243
+ }
2244
+ }
2245
+ }
2246
+ });
2247
+ }
2248
+ function Ua(r, t, e, i, n, a) {
2249
+ var o = t.getModel("axisPointer"), s = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"], l = {};
2250
+ S(s, function(v) {
2251
+ l[v] = Ct(o.get(v));
2252
+ }), l.snap = r.type !== "category" && !!a, o.get("type") === "cross" && (l.type = "line");
2253
+ var u = l.label || (l.label = {});
2254
+ if (u.show == null && (u.show = !1), n === "cross") {
2255
+ var h = o.get(["label", "show"]);
2256
+ if (u.show = h != null ? h : !0, !a) {
2257
+ var f = l.lineStyle = o.get("crossStyle");
2258
+ f && nt(u, f.textStyle);
2259
+ }
2260
+ }
2261
+ return r.model.getModel("axisPointer", new ut(l, e, i));
2262
+ }
2263
+ function Za(r, t) {
2264
+ t.eachSeries(function(e) {
2265
+ var i = e.coordinateSystem, n = e.get(["tooltip", "trigger"], !0), a = e.get(["tooltip", "show"], !0);
2266
+ !i || n === "none" || n === !1 || n === "item" || a === !1 || e.get(["axisPointer", "show"], !0) === !1 || S(r.coordSysAxesInfo[It(i.model)], function(o) {
2267
+ var s = o.axis;
2268
+ i.getAxis(s.dim) === s && (o.seriesModels.push(e), o.seriesDataCount == null && (o.seriesDataCount = 0), o.seriesDataCount += e.getData().count());
2269
+ });
2270
+ });
2271
+ }
2272
+ function Ka(r, t) {
2273
+ for (var e = t.model, i = t.dim, n = 0; n < r.length; n++) {
2274
+ var a = r[n] || {};
2275
+ if (oe(a[i + "AxisId"], e.id) || oe(a[i + "AxisIndex"], e.componentIndex) || oe(a[i + "AxisName"], e.name))
2276
+ return n;
2277
+ }
2278
+ }
2279
+ function oe(r, t) {
2280
+ return r === "all" || H(r) && Zt(r, t) >= 0 || r === t;
2281
+ }
2282
+ function $a(r) {
2283
+ var t = Le(r);
2284
+ if (t) {
2285
+ var e = t.axisPointerModel, i = t.axis.scale, n = e.option, a = e.get("status"), o = e.get("value");
2286
+ o != null && (o = i.parse(o));
2287
+ var s = ye(e);
2288
+ a == null && (n.status = s ? "show" : "hide");
2289
+ var l = i.getExtent().slice();
2290
+ l[0] > l[1] && l.reverse(), // Pick a value on axis when initializing.
2291
+ (o == null || o > l[1]) && (o = l[1]), o < l[0] && (o = l[0]), n.value = o, s && (n.status = t.axis.scale.isBlank() ? "hide" : "show");
2292
+ }
2293
+ }
2294
+ function Le(r) {
2295
+ var t = (r.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo;
2296
+ return t && t.axesInfo[It(r)];
2297
+ }
2298
+ function qa(r) {
2299
+ var t = Le(r);
2300
+ return t && t.axisPointerModel;
2301
+ }
2302
+ function ye(r) {
2303
+ return !!r.get(["handle", "show"]);
2304
+ }
2305
+ function It(r) {
2306
+ return r.type + "||" + r.id;
2307
+ }
2308
+ var se = {}, Qa = (
2309
+ /** @class */
2310
+ (function(r) {
2311
+ K(t, r);
2312
+ function t() {
2313
+ var e = r !== null && r.apply(this, arguments) || this;
2314
+ return e.type = t.type, e;
2315
+ }
2316
+ return t.prototype.render = function(e, i, n, a) {
2317
+ this.axisPointerClass && $a(e), r.prototype.render.apply(this, arguments), this._doUpdateAxisPointerClass(e, n, !0);
2318
+ }, t.prototype.updateAxisPointer = function(e, i, n, a) {
2319
+ this._doUpdateAxisPointerClass(e, n, !1);
2320
+ }, t.prototype.remove = function(e, i) {
2321
+ var n = this._axisPointer;
2322
+ n && n.remove(i);
2323
+ }, t.prototype.dispose = function(e, i) {
2324
+ this._disposeAxisPointer(i), r.prototype.dispose.apply(this, arguments);
2325
+ }, t.prototype._doUpdateAxisPointerClass = function(e, i, n) {
2326
+ var a = t.getAxisPointerClass(this.axisPointerClass);
2327
+ if (a) {
2328
+ var o = qa(e);
2329
+ o ? (this._axisPointer || (this._axisPointer = new a())).render(e, o, i, n) : this._disposeAxisPointer(i);
2330
+ }
2331
+ }, t.prototype._disposeAxisPointer = function(e) {
2332
+ this._axisPointer && this._axisPointer.dispose(e), this._axisPointer = null;
2333
+ }, t.registerAxisPointerClass = function(e, i) {
2334
+ if (process.env.NODE_ENV !== "production" && se[e])
2335
+ throw new Error("axisPointer " + e + " exists");
2336
+ se[e] = i;
2337
+ }, t.getAxisPointerClass = function(e) {
2338
+ return e && se[e];
2339
+ }, t.type = "axis", t;
2340
+ })(Dt)
2341
+ ), lt = Ut(), ni = Ct, le = X, Ja = (
2342
+ /** @class */
2343
+ (function() {
2344
+ function r() {
2345
+ this._dragging = !1, this.animationThreshold = 15;
2346
+ }
2347
+ return r.prototype.render = function(t, e, i, n) {
2348
+ var a = e.get("value"), o = e.get("status");
2349
+ if (this._axisModel = t, this._axisPointerModel = e, this._api = i, !(!n && this._lastValue === a && this._lastStatus === o)) {
2350
+ this._lastValue = a, this._lastStatus = o;
2351
+ var s = this._group, l = this._handle;
2352
+ if (!o || o === "hide") {
2353
+ s && s.hide(), l && l.hide();
2354
+ return;
2355
+ }
2356
+ s && s.show(), l && l.show();
2357
+ var u = {};
2358
+ this.makeElOption(u, a, t, e, i);
2359
+ var h = u.graphicKey;
2360
+ h !== this._lastGraphicKey && this.clear(i), this._lastGraphicKey = h;
2361
+ var f = this._moveAnimation = this.determineAnimation(t, e);
2362
+ if (!s)
2363
+ s = this._group = new pe(), this.createPointerEl(s, u, t, e), this.createLabelEl(s, u, t, e), i.getZr().add(s);
2364
+ else {
2365
+ var v = rt(ai, e, f);
2366
+ this.updatePointerEl(s, u, v), this.updateLabelEl(s, u, v, e);
2367
+ }
2368
+ si(s, e, !0), this._renderHandle(a);
2369
+ }
2370
+ }, r.prototype.remove = function(t) {
2371
+ this.clear(t);
2372
+ }, r.prototype.dispose = function(t) {
2373
+ this.clear(t);
2374
+ }, r.prototype.determineAnimation = function(t, e) {
2375
+ var i = e.get("animation"), n = t.axis, a = n.type === "category", o = e.get("snap");
2376
+ if (!o && !a)
2377
+ return !1;
2378
+ if (i === "auto" || i == null) {
2379
+ var s = this.animationThreshold;
2380
+ if (a && n.getBandWidth() > s)
2381
+ return !0;
2382
+ if (o) {
2383
+ var l = Le(t).seriesDataCount, u = n.getExtent();
2384
+ return Math.abs(u[0] - u[1]) / l > s;
2385
+ }
2386
+ return !1;
2387
+ }
2388
+ return i === !0;
2389
+ }, r.prototype.makeElOption = function(t, e, i, n, a) {
2390
+ }, r.prototype.createPointerEl = function(t, e, i, n) {
2391
+ var a = e.pointer;
2392
+ if (a) {
2393
+ var o = lt(t).pointerEl = new pn[a.type](ni(e.pointer));
2394
+ t.add(o);
2395
+ }
2396
+ }, r.prototype.createLabelEl = function(t, e, i, n) {
2397
+ if (e.label) {
2398
+ var a = lt(t).labelEl = new Kt(ni(e.label));
2399
+ t.add(a), oi(a, n);
2400
+ }
2401
+ }, r.prototype.updatePointerEl = function(t, e, i) {
2402
+ var n = lt(t).pointerEl;
2403
+ n && e.pointer && (n.setStyle(e.pointer.style), i(n, {
2404
+ shape: e.pointer.shape
2405
+ }));
2406
+ }, r.prototype.updateLabelEl = function(t, e, i, n) {
2407
+ var a = lt(t).labelEl;
2408
+ a && (a.setStyle(e.label.style), i(a, {
2409
+ // Consider text length change in vertical axis, animation should
2410
+ // be used on shape, otherwise the effect will be weird.
2411
+ // TODOTODO
2412
+ // shape: elOption.label.shape,
2413
+ x: e.label.x,
2414
+ y: e.label.y
2415
+ }), oi(a, n));
2416
+ }, r.prototype._renderHandle = function(t) {
2417
+ if (!(this._dragging || !this.updateHandleTransform)) {
2418
+ var e = this._axisPointerModel, i = this._api.getZr(), n = this._handle, a = e.getModel("handle"), o = e.get("status");
2419
+ if (!a.get("show") || !o || o === "hide") {
2420
+ n && i.remove(n), this._handle = null;
2421
+ return;
2422
+ }
2423
+ var s;
2424
+ this._handle || (s = !0, n = this._handle = gn(a.get("icon"), {
2425
+ cursor: "move",
2426
+ draggable: !0,
2427
+ onmousemove: function(u) {
2428
+ mn(u.event);
2429
+ },
2430
+ onmousedown: le(this._onHandleDragMove, this, 0, 0),
2431
+ drift: le(this._onHandleDragMove, this),
2432
+ ondragend: le(this._onHandleDragEnd, this)
2433
+ }), i.add(n)), si(n, e, !1), n.setStyle(a.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]));
2434
+ var l = a.get("size");
2435
+ H(l) || (l = [l, l]), n.scaleX = l[0] / 2, n.scaleY = l[1] / 2, Fi(this, "_doDispatchAxisPointer", a.get("throttle") || 0, "fixRate"), this._moveHandleToValue(t, s);
2436
+ }
2437
+ }, r.prototype._moveHandleToValue = function(t, e) {
2438
+ ai(this._axisPointerModel, !e && this._moveAnimation, this._handle, ue(this.getHandleTransform(t, this._axisModel, this._axisPointerModel)));
2439
+ }, r.prototype._onHandleDragMove = function(t, e) {
2440
+ var i = this._handle;
2441
+ if (i) {
2442
+ this._dragging = !0;
2443
+ var n = this.updateHandleTransform(ue(i), [t, e], this._axisModel, this._axisPointerModel);
2444
+ this._payloadInfo = n, i.stopAnimation(), i.attr(ue(n)), lt(i).lastProp = null, this._doDispatchAxisPointer();
2445
+ }
2446
+ }, r.prototype._doDispatchAxisPointer = function() {
2447
+ var t = this._handle;
2448
+ if (t) {
2449
+ var e = this._payloadInfo, i = this._axisModel;
2450
+ this._api.dispatchAction({
2451
+ type: "updateAxisPointer",
2452
+ x: e.cursorPoint[0],
2453
+ y: e.cursorPoint[1],
2454
+ tooltipOption: e.tooltipOption,
2455
+ axesInfo: [{
2456
+ axisDim: i.axis.dim,
2457
+ axisIndex: i.componentIndex
2458
+ }]
2459
+ });
2460
+ }
2461
+ }, r.prototype._onHandleDragEnd = function() {
2462
+ this._dragging = !1;
2463
+ var t = this._handle;
2464
+ if (t) {
2465
+ var e = this._axisPointerModel.get("value");
2466
+ this._moveHandleToValue(e), this._api.dispatchAction({
2467
+ type: "hideTip"
2468
+ });
2469
+ }
2470
+ }, r.prototype.clear = function(t) {
2471
+ this._lastValue = null, this._lastStatus = null;
2472
+ var e = t.getZr(), i = this._group, n = this._handle;
2473
+ e && i && (this._lastGraphicKey = null, i && e.remove(i), n && e.remove(n), this._group = null, this._handle = null, this._payloadInfo = null), ge(this, "_doDispatchAxisPointer");
2474
+ }, r.prototype.doClear = function() {
2475
+ }, r.prototype.buildLabel = function(t, e, i) {
2476
+ return i = i || 0, {
2477
+ x: t[i],
2478
+ y: t[1 - i],
2479
+ width: e[i],
2480
+ height: e[1 - i]
2481
+ };
2482
+ }, r;
2483
+ })()
2484
+ );
2485
+ function ai(r, t, e, i) {
2486
+ hr(lt(e).lastProp, i) || (lt(e).lastProp = i, t ? _n(e, i, r) : (e.stopAnimation(), e.attr(i)));
2487
+ }
2488
+ function hr(r, t) {
2489
+ if (V(r) && V(t)) {
2490
+ var e = !0;
2491
+ return S(t, function(i, n) {
2492
+ e = e && hr(r[n], i);
2493
+ }), !!e;
2494
+ } else
2495
+ return r === t;
2496
+ }
2497
+ function oi(r, t) {
2498
+ r[t.get(["label", "show"]) ? "show" : "hide"]();
2499
+ }
2500
+ function ue(r) {
2501
+ return {
2502
+ x: r.x || 0,
2503
+ y: r.y || 0,
2504
+ rotation: r.rotation || 0
2505
+ };
2506
+ }
2507
+ function si(r, t, e) {
2508
+ var i = t.get("z"), n = t.get("zlevel");
2509
+ r && r.traverse(function(a) {
2510
+ a.type !== "group" && (i != null && (a.z = i), n != null && (a.zlevel = n), a.silent = e);
2511
+ });
2512
+ }
2513
+ function ja(r) {
2514
+ var t = r.get("type"), e = r.getModel(t + "Style"), i;
2515
+ return t === "line" ? (i = e.getLineStyle(), i.fill = null) : t === "shadow" && (i = e.getAreaStyle(), i.stroke = null), i;
2516
+ }
2517
+ function to(r, t, e, i, n) {
2518
+ var a = e.get("value"), o = fr(a, t.axis, t.ecModel, e.get("seriesDataIndices"), {
2519
+ precision: e.get(["label", "precision"]),
2520
+ formatter: e.get(["label", "formatter"])
2521
+ }), s = e.getModel("label"), l = zi(s.get("padding") || 0), u = s.getFont(), h = wn(o, u), f = n.position, v = h.width + l[1] + l[3], d = h.height + l[0] + l[2], c = n.align;
2522
+ c === "right" && (f[0] -= v), c === "center" && (f[0] -= v / 2);
2523
+ var g = n.verticalAlign;
2524
+ g === "bottom" && (f[1] -= d), g === "middle" && (f[1] -= d / 2), eo(f, v, d, i);
2525
+ var m = s.get("backgroundColor");
2526
+ (!m || m === "auto") && (m = t.get(["axisLine", "lineStyle", "color"])), r.label = {
2527
+ // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},
2528
+ x: f[0],
2529
+ y: f[1],
2530
+ style: Me(s, {
2531
+ text: o,
2532
+ font: u,
2533
+ fill: s.getTextColor(),
2534
+ padding: l,
2535
+ backgroundColor: m
2536
+ }),
2537
+ // Label should be over axisPointer.
2538
+ z2: 10
2539
+ };
2540
+ }
2541
+ function eo(r, t, e, i) {
2542
+ var n = i.getWidth(), a = i.getHeight();
2543
+ r[0] = Math.min(r[0] + t, n) - t, r[1] = Math.min(r[1] + e, a) - e, r[0] = Math.max(r[0], 0), r[1] = Math.max(r[1], 0);
2544
+ }
2545
+ function fr(r, t, e, i, n) {
2546
+ r = t.scale.parse(r);
2547
+ var a = t.scale.getLabel({
2548
+ value: r
2549
+ }, {
2550
+ // If `precision` is set, width can be fixed (like '12.00500'), which
2551
+ // helps to debounce when when moving label.
2552
+ precision: n.precision
2553
+ }), o = n.formatter;
2554
+ if (o) {
2555
+ var s = {
2556
+ value: Ie(t, {
2557
+ value: r
2558
+ }),
2559
+ axisDimension: t.dim,
2560
+ axisIndex: t.index,
2561
+ seriesData: []
2562
+ };
2563
+ S(i, function(l) {
2564
+ var u = e.getSeriesByIndex(l.seriesIndex), h = l.dataIndexInside, f = u && u.getDataParams(h);
2565
+ f && s.seriesData.push(f);
2566
+ }), R(o) ? a = o.replace("{value}", a) : W(o) && (a = o(s));
2567
+ }
2568
+ return a;
2569
+ }
2570
+ function vr(r, t, e) {
2571
+ var i = bn();
2572
+ return Hi(i, i, e.rotation), yn(i, i, e.position), xn([r.dataToCoord(t), (e.labelOffset || 0) + (e.labelDirection || 1) * (e.labelMargin || 0)], i);
2573
+ }
2574
+ function io(r, t, e, i, n, a) {
2575
+ var o = ft.innerTextLayout(e.rotation, 0, e.labelDirection);
2576
+ e.labelMargin = n.get(["label", "margin"]), to(t, i, n, a, {
2577
+ position: vr(i.axis, r, e),
2578
+ align: o.textAlign,
2579
+ verticalAlign: o.textVerticalAlign
2580
+ });
2581
+ }
2582
+ function ro(r, t, e) {
2583
+ return e = e || 0, {
2584
+ x1: r[e],
2585
+ y1: r[1 - e],
2586
+ x2: t[e],
2587
+ y2: t[1 - e]
2588
+ };
2589
+ }
2590
+ function no(r, t, e) {
2591
+ return e = e || 0, {
2592
+ x: r[e],
2593
+ y: r[1 - e],
2594
+ width: t[e],
2595
+ height: t[1 - e]
2596
+ };
2597
+ }
2598
+ function vs(r, t, e, i, n, a) {
2599
+ return {
2600
+ cx: r,
2601
+ cy: t,
2602
+ r0: e,
2603
+ r: i,
2604
+ startAngle: n,
2605
+ endAngle: a,
2606
+ clockwise: !0
2607
+ };
2608
+ }
2609
+ var ao = (
2610
+ /** @class */
2611
+ (function(r) {
2612
+ K(t, r);
2613
+ function t() {
2614
+ return r !== null && r.apply(this, arguments) || this;
2615
+ }
2616
+ return t.prototype.makeElOption = function(e, i, n, a, o) {
2617
+ var s = n.axis, l = s.grid, u = a.get("type"), h = li(l, s).getOtherAxis(s).getGlobalExtent(), f = s.toGlobalCoord(s.dataToCoord(i, !0));
2618
+ if (u && u !== "none") {
2619
+ var v = ja(a), d = oo[u](s, f, h);
2620
+ d.style = v, e.graphicKey = d.type, e.pointer = d;
2621
+ }
2622
+ var c = ti(l.model, n);
2623
+ io(
2624
+ // @ts-ignore
2625
+ i,
2626
+ e,
2627
+ c,
2628
+ n,
2629
+ a,
2630
+ o
2631
+ );
2632
+ }, t.prototype.getHandleTransform = function(e, i, n) {
2633
+ var a = ti(i.axis.grid.model, i, {
2634
+ labelInside: !1
2635
+ });
2636
+ a.labelMargin = n.get(["handle", "margin"]);
2637
+ var o = vr(i.axis, e, a);
2638
+ return {
2639
+ x: o[0],
2640
+ y: o[1],
2641
+ rotation: a.rotation + (a.labelDirection < 0 ? Math.PI : 0)
2642
+ };
2643
+ }, t.prototype.updateHandleTransform = function(e, i, n, a) {
2644
+ var o = n.axis, s = o.grid, l = o.getGlobalExtent(!0), u = li(s, o).getOtherAxis(o).getGlobalExtent(), h = o.dim === "x" ? 0 : 1, f = [e.x, e.y];
2645
+ f[h] += i[h], f[h] = Math.min(l[1], f[h]), f[h] = Math.max(l[0], f[h]);
2646
+ var v = (u[1] + u[0]) / 2, d = [v, v];
2647
+ d[h] = f[h];
2648
+ var c = [{
2649
+ verticalAlign: "middle"
2650
+ }, {
2651
+ align: "center"
2652
+ }];
2653
+ return {
2654
+ x: f[0],
2655
+ y: f[1],
2656
+ rotation: e.rotation,
2657
+ cursorPoint: d,
2658
+ tooltipOption: c[h]
2659
+ };
2660
+ }, t;
2661
+ })(Ja)
2662
+ );
2663
+ function li(r, t) {
2664
+ var e = {};
2665
+ return e[t.dim + "AxisIndex"] = t.index, r.getCartesian(e);
2666
+ }
2667
+ var oo = {
2668
+ line: function(r, t, e) {
2669
+ var i = ro([t, e[0]], [t, e[1]], ui(r));
2670
+ return {
2671
+ type: "Line",
2672
+ subPixelOptimize: !0,
2673
+ shape: i
2674
+ };
2675
+ },
2676
+ shadow: function(r, t, e) {
2677
+ var i = Math.max(1, r.getBandWidth()), n = e[1] - e[0];
2678
+ return {
2679
+ type: "Rect",
2680
+ shape: no([t - i / 2, e[0]], [i, n], ui(r))
2681
+ };
2682
+ }
2683
+ };
2684
+ function ui(r) {
2685
+ return r.dim === "x" ? 0 : 1;
2686
+ }
2687
+ var so = (
2688
+ /** @class */
2689
+ (function(r) {
2690
+ K(t, r);
2691
+ function t() {
2692
+ var e = r !== null && r.apply(this, arguments) || this;
2693
+ return e.type = t.type, e;
2694
+ }
2695
+ return t.type = "axisPointer", t.defaultOption = {
2696
+ // 'auto' means that show when triggered by tooltip or handle.
2697
+ show: "auto",
2698
+ // zlevel: 0,
2699
+ z: 50,
2700
+ type: "line",
2701
+ // axispointer triggered by tootip determine snap automatically,
2702
+ // see `modelHelper`.
2703
+ snap: !1,
2704
+ triggerTooltip: !0,
2705
+ triggerEmphasis: !0,
2706
+ value: null,
2707
+ status: null,
2708
+ link: [],
2709
+ // Do not set 'auto' here, otherwise global animation: false
2710
+ // will not effect at this axispointer.
2711
+ animation: null,
2712
+ animationDurationUpdate: 200,
2713
+ lineStyle: {
2714
+ color: "#B9BEC9",
2715
+ width: 1,
2716
+ type: "dashed"
2717
+ },
2718
+ shadowStyle: {
2719
+ color: "rgba(210,219,238,0.2)"
2720
+ },
2721
+ label: {
2722
+ show: !0,
2723
+ formatter: null,
2724
+ precision: "auto",
2725
+ margin: 3,
2726
+ color: "#fff",
2727
+ padding: [5, 7, 5, 7],
2728
+ backgroundColor: "auto",
2729
+ borderColor: null,
2730
+ borderWidth: 0,
2731
+ borderRadius: 3
2732
+ },
2733
+ handle: {
2734
+ show: !1,
2735
+ // eslint-disable-next-line
2736
+ 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",
2737
+ size: 45,
2738
+ // handle margin is from symbol center to axis, which is stable when circular move.
2739
+ margin: 50,
2740
+ // color: '#1b8bbd'
2741
+ // color: '#2f4554'
2742
+ color: "#333",
2743
+ shadowBlur: 3,
2744
+ shadowColor: "#aaa",
2745
+ shadowOffsetX: 0,
2746
+ shadowOffsetY: 2,
2747
+ // For mobile performance
2748
+ throttle: 40
2749
+ }
2750
+ }, t;
2751
+ })(St)
2752
+ ), J = Ut(), lo = S;
2753
+ function dr(r, t, e) {
2754
+ if (!z.node) {
2755
+ var i = t.getZr();
2756
+ J(i).records || (J(i).records = {}), uo(i, t);
2757
+ var n = J(i).records[r] || (J(i).records[r] = {});
2758
+ n.handler = e;
2759
+ }
2760
+ }
2761
+ function uo(r, t) {
2762
+ if (J(r).initialized)
2763
+ return;
2764
+ J(r).initialized = !0, e("click", rt(hi, "click")), e("mousemove", rt(hi, "mousemove")), e("globalout", fo);
2765
+ function e(i, n) {
2766
+ r.on(i, function(a) {
2767
+ var o = vo(t);
2768
+ lo(J(r).records, function(s) {
2769
+ s && n(s, a, o.dispatchAction);
2770
+ }), ho(o.pendings, t);
2771
+ });
2772
+ }
2773
+ }
2774
+ function ho(r, t) {
2775
+ var e = r.showTip.length, i = r.hideTip.length, n;
2776
+ e ? n = r.showTip[e - 1] : i && (n = r.hideTip[i - 1]), n && (n.dispatchAction = null, t.dispatchAction(n));
2777
+ }
2778
+ function fo(r, t, e) {
2779
+ r.handler("leave", null, e);
2780
+ }
2781
+ function hi(r, t, e, i) {
2782
+ t.handler(r, e, i);
2783
+ }
2784
+ function vo(r) {
2785
+ var t = {
2786
+ showTip: [],
2787
+ hideTip: []
2788
+ }, e = function(i) {
2789
+ var n = t[i.type];
2790
+ n ? n.push(i) : (i.dispatchAction = e, r.dispatchAction(i));
2791
+ };
2792
+ return {
2793
+ dispatchAction: e,
2794
+ pendings: t
2795
+ };
2796
+ }
2797
+ function xe(r, t) {
2798
+ if (!z.node) {
2799
+ var e = t.getZr(), i = (J(e).records || {})[r];
2800
+ i && (J(e).records[r] = null);
2801
+ }
2802
+ }
2803
+ var co = (
2804
+ /** @class */
2805
+ (function(r) {
2806
+ K(t, r);
2807
+ function t() {
2808
+ var e = r !== null && r.apply(this, arguments) || this;
2809
+ return e.type = t.type, e;
2810
+ }
2811
+ return t.prototype.render = function(e, i, n) {
2812
+ var a = i.getComponent("tooltip"), o = e.get("triggerOn") || a && a.get("triggerOn") || "mousemove|click";
2813
+ dr("axisPointer", n, function(s, l, u) {
2814
+ o !== "none" && (s === "leave" || o.indexOf(s) >= 0) && u({
2815
+ type: "updateAxisPointer",
2816
+ currTrigger: s,
2817
+ x: l && l.offsetX,
2818
+ y: l && l.offsetY
2819
+ });
2820
+ });
2821
+ }, t.prototype.remove = function(e, i) {
2822
+ xe("axisPointer", i);
2823
+ }, t.prototype.dispose = function(e, i) {
2824
+ xe("axisPointer", i);
2825
+ }, t.type = "axisPointer", t;
2826
+ })(Dt)
2827
+ );
2828
+ function cr(r, t) {
2829
+ var e = [], i = r.seriesIndex, n;
2830
+ if (i == null || !(n = t.getSeriesByIndex(i)))
2831
+ return {
2832
+ point: []
2833
+ };
2834
+ var a = n.getData(), o = Sn(a, r);
2835
+ if (o == null || o < 0 || H(o))
2836
+ return {
2837
+ point: []
2838
+ };
2839
+ var s = a.getItemGraphicEl(o), l = n.coordinateSystem;
2840
+ if (n.getTooltipPosition)
2841
+ e = n.getTooltipPosition(o) || [];
2842
+ else if (l && l.dataToPoint)
2843
+ if (r.isStacked) {
2844
+ var u = l.getBaseAxis(), h = l.getOtherAxis(u), f = h.dim, v = u.dim, d = f === "x" || f === "radius" ? 1 : 0, c = a.mapDimension(v), g = [];
2845
+ g[d] = a.get(c, o), g[1 - d] = a.get(a.getCalculationInfo("stackResultDimension"), o), e = l.dataToPoint(g) || [];
2846
+ } else
2847
+ e = l.dataToPoint(a.getValues(at(l.dimensions, function(p) {
2848
+ return a.mapDimension(p);
2849
+ }), o)) || [];
2850
+ else if (s) {
2851
+ var m = s.getBoundingRect().clone();
2852
+ m.applyTransform(s.transform), e = [m.x + m.width / 2, m.y + m.height / 2];
2853
+ }
2854
+ return {
2855
+ point: e,
2856
+ el: s
2857
+ };
2858
+ }
2859
+ var fi = Ut();
2860
+ function po(r, t, e) {
2861
+ var i = r.currTrigger, n = [r.x, r.y], a = r, o = r.dispatchAction || X(e.dispatchAction, e), s = t.getComponent("axisPointer").coordSysAxesInfo;
2862
+ if (s) {
2863
+ Wt(n) && (n = cr({
2864
+ seriesIndex: a.seriesIndex,
2865
+ // Do not use dataIndexInside from other ec instance.
2866
+ // FIXME: auto detect it?
2867
+ dataIndex: a.dataIndex
2868
+ }, t).point);
2869
+ var l = Wt(n), u = a.axesInfo, h = s.axesInfo, f = i === "leave" || Wt(n), v = {}, d = {}, c = {
2870
+ list: [],
2871
+ map: {}
2872
+ }, g = {
2873
+ showPointer: rt(mo, d),
2874
+ showTooltip: rt(_o, c)
2875
+ };
2876
+ S(s.coordSysMap, function(p, _) {
2877
+ var y = l || p.containPoint(n);
2878
+ S(s.coordSysAxesInfo[_], function(x, L) {
2879
+ var T = x.axis, D = bo(u, x);
2880
+ if (!f && y && (!u || D)) {
2881
+ var I = D && D.value;
2882
+ I == null && !l && (I = T.pointToData(n)), I != null && vi(x, I, g, !1, v);
2883
+ }
2884
+ });
2885
+ });
2886
+ var m = {};
2887
+ return S(h, function(p, _) {
2888
+ var y = p.linkGroup;
2889
+ y && !d[_] && S(y.axesInfo, function(x, L) {
2890
+ var T = d[L];
2891
+ if (x !== p && T) {
2892
+ var D = T.value;
2893
+ y.mapper && (D = p.axis.scale.parse(y.mapper(D, di(x), di(p)))), m[p.key] = D;
2894
+ }
2895
+ });
2896
+ }), S(m, function(p, _) {
2897
+ vi(h[_], p, g, !0, v);
2898
+ }), yo(d, h, v), xo(c, n, r, o), wo(h, o, e), v;
2899
+ }
2900
+ }
2901
+ function vi(r, t, e, i, n) {
2902
+ var a = r.axis;
2903
+ if (!(a.scale.isBlank() || !a.containData(t))) {
2904
+ if (!r.involveSeries) {
2905
+ e.showPointer(r, t);
2906
+ return;
2907
+ }
2908
+ var o = go(t, r), s = o.payloadBatch, l = o.snapToValue;
2909
+ s[0] && n.seriesIndex == null && F(n, s[0]), !i && r.snap && a.containData(l) && l != null && (t = l), e.showPointer(r, t, s), e.showTooltip(r, o, l);
2910
+ }
2911
+ }
2912
+ function go(r, t) {
2913
+ var e = t.axis, i = e.dim, n = r, a = [], o = Number.MAX_VALUE, s = -1;
2914
+ return S(t.seriesModels, function(l, u) {
2915
+ var h = l.getData().mapDimensionsAll(i), f, v;
2916
+ if (l.getAxisTooltipData) {
2917
+ var d = l.getAxisTooltipData(h, r, e);
2918
+ v = d.dataIndices, f = d.nestestValue;
2919
+ } else {
2920
+ if (v = l.getData().indicesOfNearest(
2921
+ h[0],
2922
+ r,
2923
+ // Add a threshold to avoid find the wrong dataIndex
2924
+ // when data length is not same.
2925
+ // false,
2926
+ e.type === "category" ? 0.5 : null
2927
+ ), !v.length)
2928
+ return;
2929
+ f = l.getData().get(h[0], v[0]);
2930
+ }
2931
+ if (!(f == null || !isFinite(f))) {
2932
+ var c = r - f, g = Math.abs(c);
2933
+ g <= o && ((g < o || c >= 0 && s < 0) && (o = g, s = c, n = f, a.length = 0), S(v, function(m) {
2934
+ a.push({
2935
+ seriesIndex: l.seriesIndex,
2936
+ dataIndexInside: m,
2937
+ dataIndex: l.getData().getRawIndex(m)
2938
+ });
2939
+ }));
2940
+ }
2941
+ }), {
2942
+ payloadBatch: a,
2943
+ snapToValue: n
2944
+ };
2945
+ }
2946
+ function mo(r, t, e, i) {
2947
+ r[t.key] = {
2948
+ value: e,
2949
+ payloadBatch: i
2950
+ };
2951
+ }
2952
+ function _o(r, t, e, i) {
2953
+ var n = e.payloadBatch, a = t.axis, o = a.model, s = t.axisPointerModel;
2954
+ if (!(!t.triggerTooltip || !n.length)) {
2955
+ var l = t.coordSys.model, u = It(l), h = r.map[u];
2956
+ h || (h = r.map[u] = {
2957
+ coordSysId: l.id,
2958
+ coordSysIndex: l.componentIndex,
2959
+ coordSysType: l.type,
2960
+ coordSysMainType: l.mainType,
2961
+ dataByAxis: []
2962
+ }, r.list.push(h)), h.dataByAxis.push({
2963
+ axisDim: a.dim,
2964
+ axisIndex: o.componentIndex,
2965
+ axisType: o.type,
2966
+ axisId: o.id,
2967
+ value: i,
2968
+ // Caustion: viewHelper.getValueLabel is actually on "view stage", which
2969
+ // depends that all models have been updated. So it should not be performed
2970
+ // here. Considering axisPointerModel used here is volatile, which is hard
2971
+ // to be retrieve in TooltipView, we prepare parameters here.
2972
+ valueLabelOpt: {
2973
+ precision: s.get(["label", "precision"]),
2974
+ formatter: s.get(["label", "formatter"])
2975
+ },
2976
+ seriesDataIndices: n.slice()
2977
+ });
2978
+ }
2979
+ }
2980
+ function yo(r, t, e) {
2981
+ var i = e.axesInfo = [];
2982
+ S(t, function(n, a) {
2983
+ var o = n.axisPointerModel.option, s = r[a];
2984
+ s ? (!n.useHandle && (o.status = "show"), o.value = s.value, o.seriesDataIndices = (s.payloadBatch || []).slice()) : !n.useHandle && (o.status = "hide"), o.status === "show" && i.push({
2985
+ axisDim: n.axis.dim,
2986
+ axisIndex: n.axis.model.componentIndex,
2987
+ value: o.value
2988
+ });
2989
+ });
2990
+ }
2991
+ function xo(r, t, e, i) {
2992
+ if (Wt(t) || !r.list.length) {
2993
+ i({
2994
+ type: "hideTip"
2995
+ });
2996
+ return;
2997
+ }
2998
+ var n = ((r.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
2999
+ i({
3000
+ type: "showTip",
3001
+ escapeConnect: !0,
3002
+ x: t[0],
3003
+ y: t[1],
3004
+ tooltipOption: e.tooltipOption,
3005
+ position: e.position,
3006
+ dataIndexInside: n.dataIndexInside,
3007
+ dataIndex: n.dataIndex,
3008
+ seriesIndex: n.seriesIndex,
3009
+ dataByCoordSys: r.list
3010
+ });
3011
+ }
3012
+ function wo(r, t, e) {
3013
+ var i = e.getZr(), n = "axisPointerLastHighlights", a = fi(i)[n] || {}, o = fi(i)[n] = {};
3014
+ S(r, function(u, h) {
3015
+ var f = u.axisPointerModel.option;
3016
+ f.status === "show" && u.triggerEmphasis && S(f.seriesDataIndices, function(v) {
3017
+ var d = v.seriesIndex + " | " + v.dataIndex;
3018
+ o[d] = v;
3019
+ });
3020
+ });
3021
+ var s = [], l = [];
3022
+ S(a, function(u, h) {
3023
+ !o[h] && l.push(u);
3024
+ }), S(o, function(u, h) {
3025
+ !a[h] && s.push(u);
3026
+ }), l.length && e.dispatchAction({
3027
+ type: "downplay",
3028
+ escapeConnect: !0,
3029
+ // Not blur others when highlight in axisPointer.
3030
+ notBlur: !0,
3031
+ batch: l
3032
+ }), s.length && e.dispatchAction({
3033
+ type: "highlight",
3034
+ escapeConnect: !0,
3035
+ // Not blur others when highlight in axisPointer.
3036
+ notBlur: !0,
3037
+ batch: s
3038
+ });
3039
+ }
3040
+ function bo(r, t) {
3041
+ for (var e = 0; e < (r || []).length; e++) {
3042
+ var i = r[e];
3043
+ if (t.axis.dim === i.axisDim && t.axis.model.componentIndex === i.axisIndex)
3044
+ return i;
3045
+ }
3046
+ }
3047
+ function di(r) {
3048
+ var t = r.axis.model, e = {}, i = e.axisDim = r.axis.dim;
3049
+ return e.axisIndex = e[i + "AxisIndex"] = t.componentIndex, e.axisName = e[i + "AxisName"] = t.name, e.axisId = e[i + "AxisId"] = t.id, e;
3050
+ }
3051
+ function Wt(r) {
3052
+ return !r || r[0] == null || isNaN(r[0]) || r[1] == null || isNaN(r[1]);
3053
+ }
3054
+ function So(r) {
3055
+ Qa.registerAxisPointerClass("CartesianAxisPointer", ao), r.registerComponentModel(so), r.registerComponentView(co), r.registerPreprocessor(function(t) {
3056
+ if (t) {
3057
+ (!t.axisPointer || t.axisPointer.length === 0) && (t.axisPointer = {});
3058
+ var e = t.axisPointer.link;
3059
+ e && !H(e) && (t.axisPointer.link = [e]);
3060
+ }
3061
+ }), r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC, function(t, e) {
3062
+ t.getComponent("axisPointer").coordSysAxesInfo = Ya(t, e);
3063
+ }), r.registerAction({
3064
+ type: "updateAxisPointer",
3065
+ event: "updateAxisPointer",
3066
+ update: ":updateAxisPointer"
3067
+ }, po);
3068
+ }
3069
+ var Mo = (
3070
+ /** @class */
3071
+ (function(r) {
3072
+ K(t, r);
3073
+ function t() {
3074
+ var e = r !== null && r.apply(this, arguments) || this;
3075
+ return e.type = t.type, e;
3076
+ }
3077
+ return t.type = "tooltip", t.dependencies = ["axisPointer"], t.defaultOption = {
3078
+ // zlevel: 0,
3079
+ z: 60,
3080
+ show: !0,
3081
+ // tooltip main content
3082
+ showContent: !0,
3083
+ // 'trigger' only works on coordinate system.
3084
+ // 'item' | 'axis' | 'none'
3085
+ trigger: "item",
3086
+ // 'click' | 'mousemove' | 'none'
3087
+ triggerOn: "mousemove|click",
3088
+ alwaysShowContent: !1,
3089
+ displayMode: "single",
3090
+ renderMode: "auto",
3091
+ // whether restraint content inside viewRect.
3092
+ // If renderMode: 'richText', default true.
3093
+ // If renderMode: 'html', defaut false (for backward compat).
3094
+ confine: null,
3095
+ showDelay: 0,
3096
+ hideDelay: 100,
3097
+ // Animation transition time, unit is second
3098
+ transitionDuration: 0.4,
3099
+ enterable: !1,
3100
+ backgroundColor: "#fff",
3101
+ // box shadow
3102
+ shadowBlur: 10,
3103
+ shadowColor: "rgba(0, 0, 0, .2)",
3104
+ shadowOffsetX: 1,
3105
+ shadowOffsetY: 2,
3106
+ // tooltip border radius, unit is px, default is 4
3107
+ borderRadius: 4,
3108
+ // tooltip border width, unit is px, default is 0 (no border)
3109
+ borderWidth: 1,
3110
+ // Tooltip inside padding, default is 5 for all direction
3111
+ // Array is allowed to set up, right, bottom, left, same with css
3112
+ // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.
3113
+ padding: null,
3114
+ // Extra css text
3115
+ extraCssText: "",
3116
+ // axis indicator, trigger by axis
3117
+ axisPointer: {
3118
+ // default is line
3119
+ // legal values: 'line' | 'shadow' | 'cross'
3120
+ type: "line",
3121
+ // Valid when type is line, appoint tooltip line locate on which line. Optional
3122
+ // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'
3123
+ // default is 'auto', chose the axis which type is category.
3124
+ // for multiply y axis, cartesian coord chose x axis, polar chose angle axis
3125
+ axis: "auto",
3126
+ animation: "auto",
3127
+ animationDurationUpdate: 200,
3128
+ animationEasingUpdate: "exponentialOut",
3129
+ crossStyle: {
3130
+ color: "#999",
3131
+ width: 1,
3132
+ type: "dashed",
3133
+ // TODO formatter
3134
+ textStyle: {}
3135
+ }
3136
+ // lineStyle and shadowStyle should not be specified here,
3137
+ // otherwise it will always override those styles on option.axisPointer.
3138
+ },
3139
+ textStyle: {
3140
+ color: "#666",
3141
+ fontSize: 14
3142
+ }
3143
+ }, t;
3144
+ })(St)
3145
+ );
3146
+ function pr(r) {
3147
+ var t = r.get("confine");
3148
+ return t != null ? !!t : r.get("renderMode") === "richText";
3149
+ }
3150
+ function gr(r) {
3151
+ if (z.domSupported) {
3152
+ for (var t = document.documentElement.style, e = 0, i = r.length; e < i; e++)
3153
+ if (r[e] in t)
3154
+ return r[e];
3155
+ }
3156
+ }
3157
+ var mr = gr(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), Co = gr(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]);
3158
+ function _r(r, t) {
3159
+ if (!r)
3160
+ return t;
3161
+ t = Wi(t, !0);
3162
+ var e = r.indexOf(t);
3163
+ return r = e === -1 ? t : "-" + r.slice(0, e) + "-" + t, r.toLowerCase();
3164
+ }
3165
+ function Do(r, t) {
3166
+ var e = r.currentStyle || document.defaultView && document.defaultView.getComputedStyle(r);
3167
+ return e ? e[t] : null;
3168
+ }
3169
+ var To = _r(Co, "transition"), Ae = _r(mr, "transform"), Io = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (z.transform3dSupported ? "will-change:transform;" : "");
3170
+ function Lo(r) {
3171
+ return r = r === "left" ? "right" : r === "right" ? "left" : r === "top" ? "bottom" : "top", r;
3172
+ }
3173
+ function Ao(r, t, e) {
3174
+ if (!R(e) || e === "inside")
3175
+ return "";
3176
+ var i = r.get("backgroundColor"), n = r.get("borderWidth");
3177
+ t = Xt(t);
3178
+ var a = Lo(e), o = Math.max(Math.round(n) * 1.5, 6), s = "", l = Ae + ":", u;
3179
+ Zt(["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)");
3180
+ var h = u * Math.PI / 180, f = o + n, v = f * Math.abs(Math.cos(h)) + f * Math.abs(Math.sin(h)), d = Math.round(((v - Math.SQRT2 * n) / 2 + Math.SQRT2 * n - (v - f) / 2) * 100) / 100;
3181
+ s += ";" + a + ":-" + d + "px";
3182
+ var c = t + " solid " + n + "px;", g = ["position:absolute;width:" + o + "px;height:" + o + "px;z-index:-1;", s + ";" + l + ";", "border-bottom:" + c, "border-right:" + c, "background-color:" + i + ";"];
3183
+ return '<div style="' + g.join("") + '"></div>';
3184
+ }
3185
+ function Oo(r, t) {
3186
+ var e = "cubic-bezier(0.23,1,0.32,1)", i = " " + r / 2 + "s " + e, n = "opacity" + i + ",visibility" + i;
3187
+ return t || (i = " " + r + "s " + e, n += z.transformSupported ? "," + Ae + i : ",left" + i + ",top" + i), To + ":" + n;
3188
+ }
3189
+ function ci(r, t, e) {
3190
+ var i = r.toFixed(0) + "px", n = t.toFixed(0) + "px";
3191
+ if (!z.transformSupported)
3192
+ return e ? "top:" + n + ";left:" + i + ";" : [["top", n], ["left", i]];
3193
+ var a = z.transform3dSupported, o = "translate" + (a ? "3d" : "") + "(" + i + "," + n + (a ? ",0" : "") + ")";
3194
+ return e ? "top:0;left:0;" + Ae + ":" + o + ";" : [["top", 0], ["left", 0], [mr, o]];
3195
+ }
3196
+ function Po(r) {
3197
+ var t = [], e = r.get("fontSize"), i = r.getTextColor();
3198
+ i && t.push("color:" + i), t.push("font:" + r.getFont());
3199
+ var n = ct(r.get("lineHeight"), Math.round(e * 3 / 2));
3200
+ e && t.push("line-height:" + n + "px");
3201
+ var a = r.get("textShadowColor"), o = r.get("textShadowBlur") || 0, s = r.get("textShadowOffsetX") || 0, l = r.get("textShadowOffsetY") || 0;
3202
+ return a && o && t.push("text-shadow:" + s + "px " + l + "px " + o + "px " + a), S(["decoration", "align"], function(u) {
3203
+ var h = r.get(u);
3204
+ h && t.push("text-" + u + ":" + h);
3205
+ }), t.join(";");
3206
+ }
3207
+ function Eo(r, t, e) {
3208
+ var i = [], n = r.get("transitionDuration"), a = r.get("backgroundColor"), o = r.get("shadowBlur"), s = r.get("shadowColor"), l = r.get("shadowOffsetX"), u = r.get("shadowOffsetY"), h = r.getModel("textStyle"), f = Vi(r, "html"), v = l + "px " + u + "px " + o + "px " + s;
3209
+ return i.push("box-shadow:" + v), t && n && i.push(Oo(n, e)), a && i.push("background-color:" + a), S(["width", "color", "radius"], function(d) {
3210
+ var c = "border-" + d, g = Wi(c), m = r.get(g);
3211
+ m != null && i.push(c + ":" + m + (d === "color" ? "" : "px"));
3212
+ }), i.push(Po(h)), f != null && i.push("padding:" + zi(f).join("px ") + "px"), i.join(";") + ";";
3213
+ }
3214
+ function pi(r, t, e, i, n) {
3215
+ var a = t && t.painter;
3216
+ if (e) {
3217
+ var o = a && a.getViewportRoot();
3218
+ o && Cn(r, o, e, i, n);
3219
+ } else {
3220
+ r[0] = i, r[1] = n;
3221
+ var s = a && a.getViewportRootOffset();
3222
+ s && (r[0] += s.offsetLeft, r[1] += s.offsetTop);
3223
+ }
3224
+ r[2] = r[0] / t.getWidth(), r[3] = r[1] / t.getHeight();
3225
+ }
3226
+ var ko = (
3227
+ /** @class */
3228
+ (function() {
3229
+ function r(t, e) {
3230
+ if (this._show = !1, this._styleCoord = [0, 0, 0, 0], this._enterable = !0, this._alwaysShowContent = !1, this._firstShow = !0, this._longHide = !0, z.wxa)
3231
+ return null;
3232
+ var i = document.createElement("div");
3233
+ i.domBelongToZr = !0, this.el = i;
3234
+ var n = this._zr = t.getZr(), a = e.appendTo, o = a && (R(a) ? document.querySelector(a) : We(a) ? a : W(a) && a(t.getDom()));
3235
+ pi(this._styleCoord, n, o, t.getWidth() / 2, t.getHeight() / 2), (o || t.getDom()).appendChild(i), this._api = t, this._container = o;
3236
+ var s = this;
3237
+ i.onmouseenter = function() {
3238
+ s._enterable && (clearTimeout(s._hideTimeout), s._show = !0), s._inContent = !0;
3239
+ }, i.onmousemove = function(l) {
3240
+ if (l = l || window.event, !s._enterable) {
3241
+ var u = n.handler, h = n.painter.getViewportRoot();
3242
+ Mn(h, l, !0), u.dispatch("mousemove", l);
3243
+ }
3244
+ }, i.onmouseleave = function() {
3245
+ s._inContent = !1, s._enterable && s._show && s.hideLater(s._hideDelay);
3246
+ };
3247
+ }
3248
+ return r.prototype.update = function(t) {
3249
+ if (!this._container) {
3250
+ var e = this._api.getDom(), i = Do(e, "position"), n = e.style;
3251
+ n.position !== "absolute" && i !== "absolute" && (n.position = "relative");
3252
+ }
3253
+ var a = t.get("alwaysShowContent");
3254
+ a && this._moveIfResized(), this._alwaysShowContent = a, this.el.className = t.get("className") || "";
3255
+ }, r.prototype.show = function(t, e) {
3256
+ clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
3257
+ var i = this.el, n = i.style, a = this._styleCoord;
3258
+ i.innerHTML ? n.cssText = Io + Eo(t, !this._firstShow, this._longHide) + ci(a[0], a[1], !0) + ("border-color:" + Xt(e) + ";") + (t.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : n.display = "none", this._show = !0, this._firstShow = !1, this._longHide = !1;
3259
+ }, r.prototype.setContent = function(t, e, i, n, a) {
3260
+ var o = this.el;
3261
+ if (t == null) {
3262
+ o.innerHTML = "";
3263
+ return;
3264
+ }
3265
+ var s = "";
3266
+ if (R(a) && i.get("trigger") === "item" && !pr(i) && (s = Ao(i, n, a)), R(t))
3267
+ o.innerHTML = t + s;
3268
+ else if (t) {
3269
+ o.innerHTML = "", H(t) || (t = [t]);
3270
+ for (var l = 0; l < t.length; l++)
3271
+ We(t[l]) && t[l].parentNode !== o && o.appendChild(t[l]);
3272
+ if (s && o.childNodes.length) {
3273
+ var u = document.createElement("div");
3274
+ u.innerHTML = s, o.appendChild(u);
3275
+ }
3276
+ }
3277
+ }, r.prototype.setEnterable = function(t) {
3278
+ this._enterable = t;
3279
+ }, r.prototype.getSize = function() {
3280
+ var t = this.el;
3281
+ return t ? [t.offsetWidth, t.offsetHeight] : [0, 0];
3282
+ }, r.prototype.moveTo = function(t, e) {
3283
+ if (this.el) {
3284
+ var i = this._styleCoord;
3285
+ if (pi(i, this._zr, this._container, t, e), i[0] != null && i[1] != null) {
3286
+ var n = this.el.style, a = ci(i[0], i[1]);
3287
+ S(a, function(o) {
3288
+ n[o[0]] = o[1];
3289
+ });
3290
+ }
3291
+ }
3292
+ }, r.prototype._moveIfResized = function() {
3293
+ var t = this._styleCoord[2], e = this._styleCoord[3];
3294
+ this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight());
3295
+ }, r.prototype.hide = function() {
3296
+ var t = this, e = this.el.style;
3297
+ e.visibility = "hidden", e.opacity = "0", z.transform3dSupported && (e.willChange = ""), this._show = !1, this._longHideTimeout = setTimeout(function() {
3298
+ return t._longHide = !0;
3299
+ }, 500);
3300
+ }, r.prototype.hideLater = function(t) {
3301
+ this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (t ? (this._hideDelay = t, this._show = !1, this._hideTimeout = setTimeout(X(this.hide, this), t)) : this.hide());
3302
+ }, r.prototype.isShow = function() {
3303
+ return this._show;
3304
+ }, r.prototype.dispose = function() {
3305
+ clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
3306
+ var t = this.el.parentNode;
3307
+ t && t.removeChild(this.el), this.el = this._container = null;
3308
+ }, r;
3309
+ })()
3310
+ ), No = (
3311
+ /** @class */
3312
+ (function() {
3313
+ function r(t) {
3314
+ this._show = !1, this._styleCoord = [0, 0, 0, 0], this._alwaysShowContent = !1, this._enterable = !0, this._zr = t.getZr(), mi(this._styleCoord, this._zr, t.getWidth() / 2, t.getHeight() / 2);
3315
+ }
3316
+ return r.prototype.update = function(t) {
3317
+ var e = t.get("alwaysShowContent");
3318
+ e && this._moveIfResized(), this._alwaysShowContent = e;
3319
+ }, r.prototype.show = function() {
3320
+ this._hideTimeout && clearTimeout(this._hideTimeout), this.el.show(), this._show = !0;
3321
+ }, r.prototype.setContent = function(t, e, i, n, a) {
3322
+ var o = this;
3323
+ V(t) && Dn(process.env.NODE_ENV !== "production" ? "Passing DOM nodes as content is not supported in richText tooltip!" : ""), this.el && this._zr.remove(this.el);
3324
+ var s = i.getModel("textStyle");
3325
+ this.el = new Kt({
3326
+ style: {
3327
+ rich: e.richTextStyles,
3328
+ text: t,
3329
+ lineHeight: 22,
3330
+ borderWidth: 1,
3331
+ borderColor: n,
3332
+ textShadowColor: s.get("textShadowColor"),
3333
+ fill: i.get(["textStyle", "color"]),
3334
+ padding: Vi(i, "richText"),
3335
+ verticalAlign: "top",
3336
+ align: "left"
3337
+ },
3338
+ z: i.get("z")
3339
+ }), S(["backgroundColor", "borderRadius", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"], function(u) {
3340
+ o.el.style[u] = i.get(u);
3341
+ }), S(["textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], function(u) {
3342
+ o.el.style[u] = s.get(u) || 0;
3343
+ }), this._zr.add(this.el);
3344
+ var l = this;
3345
+ this.el.on("mouseover", function() {
3346
+ l._enterable && (clearTimeout(l._hideTimeout), l._show = !0), l._inContent = !0;
3347
+ }), this.el.on("mouseout", function() {
3348
+ l._enterable && l._show && l.hideLater(l._hideDelay), l._inContent = !1;
3349
+ });
3350
+ }, r.prototype.setEnterable = function(t) {
3351
+ this._enterable = t;
3352
+ }, r.prototype.getSize = function() {
3353
+ var t = this.el, e = this.el.getBoundingRect(), i = gi(t.style);
3354
+ return [e.width + i.left + i.right, e.height + i.top + i.bottom];
3355
+ }, r.prototype.moveTo = function(t, e) {
3356
+ var i = this.el;
3357
+ if (i) {
3358
+ var n = this._styleCoord;
3359
+ mi(n, this._zr, t, e), t = n[0], e = n[1];
3360
+ var a = i.style, o = tt(a.borderWidth || 0), s = gi(a);
3361
+ i.x = t + o + s.left, i.y = e + o + s.top, i.markRedraw();
3362
+ }
3363
+ }, r.prototype._moveIfResized = function() {
3364
+ var t = this._styleCoord[2], e = this._styleCoord[3];
3365
+ this.moveTo(t * this._zr.getWidth(), e * this._zr.getHeight());
3366
+ }, r.prototype.hide = function() {
3367
+ this.el && this.el.hide(), this._show = !1;
3368
+ }, r.prototype.hideLater = function(t) {
3369
+ this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (t ? (this._hideDelay = t, this._show = !1, this._hideTimeout = setTimeout(X(this.hide, this), t)) : this.hide());
3370
+ }, r.prototype.isShow = function() {
3371
+ return this._show;
3372
+ }, r.prototype.dispose = function() {
3373
+ this._zr.remove(this.el);
3374
+ }, r;
3375
+ })()
3376
+ );
3377
+ function tt(r) {
3378
+ return Math.max(0, r);
3379
+ }
3380
+ function gi(r) {
3381
+ var t = tt(r.shadowBlur || 0), e = tt(r.shadowOffsetX || 0), i = tt(r.shadowOffsetY || 0);
3382
+ return {
3383
+ left: tt(t - e),
3384
+ right: tt(t + e),
3385
+ top: tt(t - i),
3386
+ bottom: tt(t + i)
3387
+ };
3388
+ }
3389
+ function mi(r, t, e, i) {
3390
+ r[0] = e, r[1] = i, r[2] = r[0] / t.getWidth(), r[3] = r[1] / t.getHeight();
3391
+ }
3392
+ var Ro = new In({
3393
+ shape: {
3394
+ x: -1,
3395
+ y: -1,
3396
+ width: 2,
3397
+ height: 2
3398
+ }
3399
+ }), Bo = (
3400
+ /** @class */
3401
+ (function(r) {
3402
+ K(t, r);
3403
+ function t() {
3404
+ var e = r !== null && r.apply(this, arguments) || this;
3405
+ return e.type = t.type, e;
3406
+ }
3407
+ return t.prototype.init = function(e, i) {
3408
+ if (!(z.node || !i.getDom())) {
3409
+ var n = e.getComponent("tooltip"), a = this._renderMode = Tn(n.get("renderMode"));
3410
+ this._tooltipContent = a === "richText" ? new No(i) : new ko(i, {
3411
+ appendTo: n.get("appendToBody", !0) ? "body" : n.get("appendTo", !0)
3412
+ });
3413
+ }
3414
+ }, t.prototype.render = function(e, i, n) {
3415
+ if (!(z.node || !n.getDom())) {
3416
+ this.group.removeAll(), this._tooltipModel = e, this._ecModel = i, this._api = n;
3417
+ var a = this._tooltipContent;
3418
+ a.update(e), a.setEnterable(e.get("enterable")), this._initGlobalListener(), this._keepShow(), this._renderMode !== "richText" && e.get("transitionDuration") ? Fi(this, "_updatePosition", 50, "fixRate") : ge(this, "_updatePosition");
3419
+ }
3420
+ }, t.prototype._initGlobalListener = function() {
3421
+ var e = this._tooltipModel, i = e.get("triggerOn");
3422
+ dr("itemTooltip", this._api, X(function(n, a, o) {
3423
+ i !== "none" && (i.indexOf(n) >= 0 ? this._tryShow(a, o) : n === "leave" && this._hide(o));
3424
+ }, this));
3425
+ }, t.prototype._keepShow = function() {
3426
+ var e = this._tooltipModel, i = this._ecModel, n = this._api, a = e.get("triggerOn");
3427
+ if (this._lastX != null && this._lastY != null && a !== "none" && a !== "click") {
3428
+ var o = this;
3429
+ clearTimeout(this._refreshUpdateTimeout), this._refreshUpdateTimeout = setTimeout(function() {
3430
+ !n.isDisposed() && o.manuallyShowTip(e, i, n, {
3431
+ x: o._lastX,
3432
+ y: o._lastY,
3433
+ dataByCoordSys: o._lastDataByCoordSys
3434
+ });
3435
+ });
3436
+ }
3437
+ }, t.prototype.manuallyShowTip = function(e, i, n, a) {
3438
+ if (!(a.from === this.uid || z.node || !n.getDom())) {
3439
+ var o = _i(a, n);
3440
+ this._ticket = "";
3441
+ var s = a.dataByCoordSys, l = Wo(a, i, n);
3442
+ if (l) {
3443
+ var u = l.el.getBoundingRect().clone();
3444
+ u.applyTransform(l.el.transform), this._tryShow({
3445
+ offsetX: u.x + u.width / 2,
3446
+ offsetY: u.y + u.height / 2,
3447
+ target: l.el,
3448
+ position: a.position,
3449
+ // When manully trigger, the mouse is not on the el, so we'd better to
3450
+ // position tooltip on the bottom of the el and display arrow is possible.
3451
+ positionDefault: "bottom"
3452
+ }, o);
3453
+ } else if (a.tooltip && a.x != null && a.y != null) {
3454
+ var h = Ro;
3455
+ h.x = a.x, h.y = a.y, h.update(), Q(h).tooltipConfig = {
3456
+ name: null,
3457
+ option: a.tooltip
3458
+ }, this._tryShow({
3459
+ offsetX: a.x,
3460
+ offsetY: a.y,
3461
+ target: h
3462
+ }, o);
3463
+ } else if (s)
3464
+ this._tryShow({
3465
+ offsetX: a.x,
3466
+ offsetY: a.y,
3467
+ position: a.position,
3468
+ dataByCoordSys: s,
3469
+ tooltipOption: a.tooltipOption
3470
+ }, o);
3471
+ else if (a.seriesIndex != null) {
3472
+ if (this._manuallyAxisShowTip(e, i, n, a))
3473
+ return;
3474
+ var f = cr(a, i), v = f.point[0], d = f.point[1];
3475
+ v != null && d != null && this._tryShow({
3476
+ offsetX: v,
3477
+ offsetY: d,
3478
+ target: f.el,
3479
+ position: a.position,
3480
+ // When manully trigger, the mouse is not on the el, so we'd better to
3481
+ // position tooltip on the bottom of the el and display arrow is possible.
3482
+ positionDefault: "bottom"
3483
+ }, o);
3484
+ } else a.x != null && a.y != null && (n.dispatchAction({
3485
+ type: "updateAxisPointer",
3486
+ x: a.x,
3487
+ y: a.y
3488
+ }), this._tryShow({
3489
+ offsetX: a.x,
3490
+ offsetY: a.y,
3491
+ position: a.position,
3492
+ target: n.getZr().findHover(a.x, a.y).target
3493
+ }, o));
3494
+ }
3495
+ }, t.prototype.manuallyHideTip = function(e, i, n, a) {
3496
+ var o = this._tooltipContent;
3497
+ this._tooltipModel && o.hideLater(this._tooltipModel.get("hideDelay")), this._lastX = this._lastY = this._lastDataByCoordSys = null, a.from !== this.uid && this._hide(_i(a, n));
3498
+ }, t.prototype._manuallyAxisShowTip = function(e, i, n, a) {
3499
+ var o = a.seriesIndex, s = a.dataIndex, l = i.getComponent("axisPointer").coordSysAxesInfo;
3500
+ if (!(o == null || s == null || l == null)) {
3501
+ var u = i.getSeriesByIndex(o);
3502
+ if (u) {
3503
+ var h = u.getData(), f = wt([h.getItemModel(s), u, (u.coordinateSystem || {}).model], this._tooltipModel);
3504
+ if (f.get("trigger") === "axis")
3505
+ return n.dispatchAction({
3506
+ type: "updateAxisPointer",
3507
+ seriesIndex: o,
3508
+ dataIndex: s,
3509
+ position: a.position
3510
+ }), !0;
3511
+ }
3512
+ }
3513
+ }, t.prototype._tryShow = function(e, i) {
3514
+ var n = e.target, a = this._tooltipModel;
3515
+ if (a) {
3516
+ this._lastX = e.offsetX, this._lastY = e.offsetY;
3517
+ var o = e.dataByCoordSys;
3518
+ if (o && o.length)
3519
+ this._showAxisTooltip(o, e);
3520
+ else if (n) {
3521
+ var s = Q(n);
3522
+ if (s.ssrType === "legend")
3523
+ return;
3524
+ this._lastDataByCoordSys = null;
3525
+ var l, u;
3526
+ Ln(n, function(h) {
3527
+ if (Q(h).dataIndex != null)
3528
+ return l = h, !0;
3529
+ if (Q(h).tooltipConfig != null)
3530
+ return u = h, !0;
3531
+ }, !0), l ? this._showSeriesItemTooltip(e, l, i) : u ? this._showComponentItemTooltip(e, u, i) : this._hide(i);
3532
+ } else
3533
+ this._lastDataByCoordSys = null, this._hide(i);
3534
+ }
3535
+ }, t.prototype._showOrMove = function(e, i) {
3536
+ var n = e.get("showDelay");
3537
+ i = X(i, this), clearTimeout(this._showTimout), n > 0 ? this._showTimout = setTimeout(i, n) : i();
3538
+ }, t.prototype._showAxisTooltip = function(e, i) {
3539
+ var n = this._ecModel, a = this._tooltipModel, o = [i.offsetX, i.offsetY], s = wt([i.tooltipOption], a), l = this._renderMode, u = [], h = Ve("section", {
3540
+ blocks: [],
3541
+ noHeader: !0
3542
+ }), f = [], v = new te();
3543
+ S(e, function(_) {
3544
+ S(_.dataByAxis, function(y) {
3545
+ var x = n.getComponent(y.axisDim + "Axis", y.axisIndex), L = y.value;
3546
+ if (!(!x || L == null)) {
3547
+ var T = fr(L, x.axis, n, y.seriesDataIndices, y.valueLabelOpt), D = Ve("section", {
3548
+ header: T,
3549
+ noHeader: !An(T),
3550
+ sortBlocks: !0,
3551
+ blocks: []
3552
+ });
3553
+ h.blocks.push(D), S(y.seriesDataIndices, function(I) {
3554
+ var M = n.getSeriesByIndex(I.seriesIndex), w = I.dataIndexInside, b = M.getDataParams(w);
3555
+ if (!(b.dataIndex < 0)) {
3556
+ b.axisDim = y.axisDim, b.axisIndex = y.axisIndex, b.axisType = y.axisType, b.axisId = y.axisId, b.axisValue = Ie(x.axis, {
3557
+ value: L
3558
+ }), b.axisValueLabel = T, b.marker = v.makeTooltipMarker("item", Xt(b.color), l);
3559
+ var A = Ge(M.formatTooltip(w, !0, null)), C = A.frag;
3560
+ if (C) {
3561
+ var P = wt([M], a).get("valueFormatter");
3562
+ D.blocks.push(P ? F({
3563
+ valueFormatter: P
3564
+ }, C) : C);
3565
+ }
3566
+ A.text && f.push(A.text), u.push(b);
3567
+ }
3568
+ });
3569
+ }
3570
+ });
3571
+ }), h.blocks.reverse(), f.reverse();
3572
+ var d = i.position, c = s.get("order"), g = Ye(h, v, l, c, n.get("useUTC"), s.get("textStyle"));
3573
+ g && f.unshift(g);
3574
+ var m = l === "richText" ? `
3575
+
3576
+ ` : "<br/>", p = f.join(m);
3577
+ this._showOrMove(s, function() {
3578
+ this._updateContentNotChangedOnAxis(e, u) ? this._updatePosition(s, d, o[0], o[1], this._tooltipContent, u) : this._showTooltipContent(s, p, u, Math.random() + "", o[0], o[1], d, null, v);
3579
+ });
3580
+ }, t.prototype._showSeriesItemTooltip = function(e, i, n) {
3581
+ var a = this._ecModel, o = Q(i), s = o.seriesIndex, l = a.getSeriesByIndex(s), u = o.dataModel || l, h = o.dataIndex, f = o.dataType, v = u.getData(f), d = this._renderMode, c = e.positionDefault, g = wt([v.getItemModel(h), u, l && (l.coordinateSystem || {}).model], this._tooltipModel, c ? {
3582
+ position: c
3583
+ } : null), m = g.get("trigger");
3584
+ if (!(m != null && m !== "item")) {
3585
+ var p = u.getDataParams(h, f), _ = new te();
3586
+ p.marker = _.makeTooltipMarker("item", Xt(p.color), d);
3587
+ var y = Ge(u.formatTooltip(h, !1, f)), x = g.get("order"), L = g.get("valueFormatter"), T = y.frag, D = T ? Ye(L ? F({
3588
+ valueFormatter: L
3589
+ }, T) : T, _, d, x, a.get("useUTC"), g.get("textStyle")) : y.text, I = "item_" + u.name + "_" + h;
3590
+ this._showOrMove(g, function() {
3591
+ this._showTooltipContent(g, D, p, I, e.offsetX, e.offsetY, e.position, e.target, _);
3592
+ }), n({
3593
+ type: "showTip",
3594
+ dataIndexInside: h,
3595
+ dataIndex: v.getRawIndex(h),
3596
+ seriesIndex: s,
3597
+ from: this.uid
3598
+ });
3599
+ }
3600
+ }, t.prototype._showComponentItemTooltip = function(e, i, n) {
3601
+ var a = this._renderMode === "html", o = Q(i), s = o.tooltipConfig, l = s.option || {}, u = l.encodeHTMLContent;
3602
+ if (R(l)) {
3603
+ var h = l;
3604
+ l = {
3605
+ content: h,
3606
+ // Fixed formatter
3607
+ formatter: h
3608
+ }, u = !0;
3609
+ }
3610
+ u && a && l.content && (l = Ct(l), l.content = On(l.content));
3611
+ var f = [l], v = this._ecModel.getComponent(o.componentMainType, o.componentIndex);
3612
+ v && f.push(v), f.push({
3613
+ formatter: l.content
3614
+ });
3615
+ var d = e.positionDefault, c = wt(f, this._tooltipModel, d ? {
3616
+ position: d
3617
+ } : null), g = c.get("content"), m = Math.random() + "", p = new te();
3618
+ this._showOrMove(c, function() {
3619
+ var _ = Ct(c.get("formatterParams") || {});
3620
+ this._showTooltipContent(c, g, _, m, e.offsetX, e.offsetY, e.position, i, p);
3621
+ }), n({
3622
+ type: "showTip",
3623
+ from: this.uid
3624
+ });
3625
+ }, t.prototype._showTooltipContent = function(e, i, n, a, o, s, l, u, h) {
3626
+ if (this._ticket = "", !(!e.get("showContent") || !e.get("show"))) {
3627
+ var f = this._tooltipContent;
3628
+ f.setEnterable(e.get("enterable"));
3629
+ var v = e.get("formatter");
3630
+ l = l || e.get("position");
3631
+ var d = i, c = this._getNearestPoint([o, s], n, e.get("trigger"), e.get("borderColor")), g = c.color;
3632
+ if (v)
3633
+ if (R(v)) {
3634
+ var m = e.ecModel.get("useUTC"), p = H(n) ? n[0] : n, _ = p && p.axisType && p.axisType.indexOf("time") >= 0;
3635
+ d = v, _ && (d = Ci(p.axisValue, d, m)), d = Pn(d, n, !0);
3636
+ } else if (W(v)) {
3637
+ var y = X(function(x, L) {
3638
+ x === this._ticket && (f.setContent(L, h, e, g, l), this._updatePosition(e, l, o, s, f, n, u));
3639
+ }, this);
3640
+ this._ticket = a, d = v(n, a, y);
3641
+ } else
3642
+ d = v;
3643
+ f.setContent(d, h, e, g, l), f.show(e, g), this._updatePosition(e, l, o, s, f, n, u);
3644
+ }
3645
+ }, t.prototype._getNearestPoint = function(e, i, n, a) {
3646
+ if (n === "axis" || H(i))
3647
+ return {
3648
+ color: a || (this._renderMode === "html" ? "#fff" : "none")
3649
+ };
3650
+ if (!H(i))
3651
+ return {
3652
+ color: a || i.color || i.borderColor
3653
+ };
3654
+ }, t.prototype._updatePosition = function(e, i, n, a, o, s, l) {
3655
+ var u = this._api.getWidth(), h = this._api.getHeight();
3656
+ i = i || e.get("position");
3657
+ var f = o.getSize(), v = e.get("align"), d = e.get("verticalAlign"), c = l && l.getBoundingRect().clone();
3658
+ if (l && c.applyTransform(l.transform), W(i) && (i = i([n, a], s, o.el, c, {
3659
+ viewSize: [u, h],
3660
+ contentSize: f.slice()
3661
+ })), H(i))
3662
+ n = ht(i[0], u), a = ht(i[1], h);
3663
+ else if (V(i)) {
3664
+ var g = i;
3665
+ g.width = f[0], g.height = f[1];
3666
+ var m = En(g, {
3667
+ width: u,
3668
+ height: h
3669
+ });
3670
+ n = m.x, a = m.y, v = null, d = null;
3671
+ } else if (R(i) && l) {
3672
+ var p = zo(i, c, f, e.get("borderWidth"));
3673
+ n = p[0], a = p[1];
3674
+ } else {
3675
+ var p = Ho(n, a, o, u, h, v ? null : 20, d ? null : 20);
3676
+ n = p[0], a = p[1];
3677
+ }
3678
+ if (v && (n -= yi(v) ? f[0] / 2 : v === "right" ? f[0] : 0), d && (a -= yi(d) ? f[1] / 2 : d === "bottom" ? f[1] : 0), pr(e)) {
3679
+ var p = Fo(n, a, o, u, h);
3680
+ n = p[0], a = p[1];
3681
+ }
3682
+ o.moveTo(n, a);
3683
+ }, t.prototype._updateContentNotChangedOnAxis = function(e, i) {
3684
+ var n = this._lastDataByCoordSys, a = this._cbParamsList, o = !!n && n.length === e.length;
3685
+ return o && S(n, function(s, l) {
3686
+ var u = s.dataByAxis || [], h = e[l] || {}, f = h.dataByAxis || [];
3687
+ o = o && u.length === f.length, o && S(u, function(v, d) {
3688
+ var c = f[d] || {}, g = v.seriesDataIndices || [], m = c.seriesDataIndices || [];
3689
+ o = o && v.value === c.value && v.axisType === c.axisType && v.axisId === c.axisId && g.length === m.length, o && S(g, function(p, _) {
3690
+ var y = m[_];
3691
+ o = o && p.seriesIndex === y.seriesIndex && p.dataIndex === y.dataIndex;
3692
+ }), a && S(v.seriesDataIndices, function(p) {
3693
+ var _ = p.seriesIndex, y = i[_], x = a[_];
3694
+ y && x && x.data !== y.data && (o = !1);
3695
+ });
3696
+ });
3697
+ }), this._lastDataByCoordSys = e, this._cbParamsList = i, !!o;
3698
+ }, t.prototype._hide = function(e) {
3699
+ this._lastDataByCoordSys = null, e({
3700
+ type: "hideTip",
3701
+ from: this.uid
3702
+ });
3703
+ }, t.prototype.dispose = function(e, i) {
3704
+ z.node || !i.getDom() || (ge(this, "_updatePosition"), this._tooltipContent.dispose(), xe("itemTooltip", i));
3705
+ }, t.type = "tooltip", t;
3706
+ })(Dt)
3707
+ );
3708
+ function wt(r, t, e) {
3709
+ var i = t.ecModel, n;
3710
+ e ? (n = new ut(e, i, i), n = new ut(t.option, n, i)) : n = t;
3711
+ for (var a = r.length - 1; a >= 0; a--) {
3712
+ var o = r[a];
3713
+ o && (o instanceof ut && (o = o.get("tooltip", !0)), R(o) && (o = {
3714
+ formatter: o
3715
+ }), o && (n = new ut(o, n, i)));
3716
+ }
3717
+ return n;
3718
+ }
3719
+ function _i(r, t) {
3720
+ return r.dispatchAction || X(t.dispatchAction, t);
3721
+ }
3722
+ function Ho(r, t, e, i, n, a, o) {
3723
+ var s = e.getSize(), l = s[0], u = s[1];
3724
+ return a != null && (r + l + a + 2 > i ? r -= l + a : r += a), o != null && (t + u + o > n ? t -= u + o : t += o), [r, t];
3725
+ }
3726
+ function Fo(r, t, e, i, n) {
3727
+ var a = e.getSize(), o = a[0], s = a[1];
3728
+ return r = Math.min(r + o, i) - o, t = Math.min(t + s, n) - s, r = Math.max(r, 0), t = Math.max(t, 0), [r, t];
3729
+ }
3730
+ function zo(r, t, e, i) {
3731
+ var n = e[0], a = e[1], o = Math.ceil(Math.SQRT2 * i) + 8, s = 0, l = 0, u = t.width, h = t.height;
3732
+ switch (r) {
3733
+ case "inside":
3734
+ s = t.x + u / 2 - n / 2, l = t.y + h / 2 - a / 2;
3735
+ break;
3736
+ case "top":
3737
+ s = t.x + u / 2 - n / 2, l = t.y - a - o;
3738
+ break;
3739
+ case "bottom":
3740
+ s = t.x + u / 2 - n / 2, l = t.y + h + o;
3741
+ break;
3742
+ case "left":
3743
+ s = t.x - n - o, l = t.y + h / 2 - a / 2;
3744
+ break;
3745
+ case "right":
3746
+ s = t.x + u + o, l = t.y + h / 2 - a / 2;
3747
+ }
3748
+ return [s, l];
3749
+ }
3750
+ function yi(r) {
3751
+ return r === "center" || r === "middle";
3752
+ }
3753
+ function Wo(r, t, e) {
3754
+ var i = kn(r).queryOptionMap, n = i.keys()[0];
3755
+ if (!(!n || n === "series")) {
3756
+ var a = Nn(t, n, i.get(n), {
3757
+ useDefault: !1,
3758
+ enableAll: !1,
3759
+ enableNone: !1
3760
+ }), o = a.models[0];
3761
+ if (o) {
3762
+ var s = e.getViewOfComponentModel(o), l;
3763
+ if (s.group.traverse(function(u) {
3764
+ var h = Q(u).tooltipConfig;
3765
+ if (h && h.name === r.name)
3766
+ return l = u, !0;
3767
+ }), l)
3768
+ return {
3769
+ componentMainType: n,
3770
+ componentIndex: o.componentIndex,
3771
+ el: l
3772
+ };
3773
+ }
3774
+ }
3775
+ }
3776
+ function ds(r) {
3777
+ sr(So), r.registerComponentModel(Mo), r.registerComponentView(Bo), r.registerAction({
3778
+ type: "showTip",
3779
+ event: "showTip",
3780
+ update: "tooltip:manuallyShowTip"
3781
+ }, Xe), r.registerAction({
3782
+ type: "hideTip",
3783
+ event: "hideTip",
3784
+ update: "tooltip:manuallyHideTip"
3785
+ }, Xe);
3786
+ }
3787
+ function xi(r, t, e) {
3788
+ var i = Bn.createCanvas(), n = t.getWidth(), a = t.getHeight(), o = i.style;
3789
+ return o && (o.position = "absolute", o.left = "0", o.top = "0", o.width = n + "px", o.height = a + "px", i.setAttribute("data-zr-dom-id", r)), i.width = n * e, i.height = a * e, i;
3790
+ }
3791
+ var he = (function(r) {
3792
+ K(t, r);
3793
+ function t(e, i, n) {
3794
+ var a = r.call(this) || this;
3795
+ a.motionBlur = !1, a.lastFrameAlpha = 0.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;
3796
+ var o;
3797
+ n = n || Yi, typeof e == "string" ? o = xi(e, i, n) : V(e) && (o = e, e = o.id), a.id = e, a.dom = o;
3798
+ var s = o.style;
3799
+ return s && (Gi(o), o.onselectstart = function() {
3800
+ return !1;
3801
+ }, s.padding = "0", s.margin = "0", s.borderWidth = "0"), a.painter = i, a.dpr = n, a;
3802
+ }
3803
+ return t.prototype.getElementCount = function() {
3804
+ return this.__endIndex - this.__startIndex;
3805
+ }, t.prototype.afterBrush = function() {
3806
+ this.__prevStartIndex = this.__startIndex, this.__prevEndIndex = this.__endIndex;
3807
+ }, t.prototype.initContext = function() {
3808
+ this.ctx = this.dom.getContext("2d"), this.ctx.dpr = this.dpr;
3809
+ }, t.prototype.setUnpainted = function() {
3810
+ this.__firstTimePaint = !0;
3811
+ }, t.prototype.createBackBuffer = function() {
3812
+ var e = this.dpr;
3813
+ this.domBack = xi("back-" + this.id, this.painter, e), this.ctxBack = this.domBack.getContext("2d"), e !== 1 && this.ctxBack.scale(e, e);
3814
+ }, t.prototype.createRepaintRects = function(e, i, n, a) {
3815
+ if (this.__firstTimePaint)
3816
+ return this.__firstTimePaint = !1, null;
3817
+ var o = [], s = this.maxRepaintRectCount, l = !1, u = new pt(0, 0, 0, 0);
3818
+ function h(_) {
3819
+ if (!(!_.isFinite() || _.isZero()))
3820
+ if (o.length === 0) {
3821
+ var y = new pt(0, 0, 0, 0);
3822
+ y.copy(_), o.push(y);
3823
+ } else {
3824
+ for (var x = !1, L = 1 / 0, T = 0, D = 0; D < o.length; ++D) {
3825
+ var I = o[D];
3826
+ if (I.intersect(_)) {
3827
+ var M = new pt(0, 0, 0, 0);
3828
+ M.copy(I), M.union(_), o[D] = M, x = !0;
3829
+ break;
3830
+ } else if (l) {
3831
+ u.copy(_), u.union(I);
3832
+ var w = _.width * _.height, b = I.width * I.height, A = u.width * u.height, C = A - w - b;
3833
+ C < L && (L = C, T = D);
3834
+ }
3835
+ }
3836
+ if (l && (o[T].union(_), x = !0), !x) {
3837
+ var y = new pt(0, 0, 0, 0);
3838
+ y.copy(_), o.push(y);
3839
+ }
3840
+ l || (l = o.length >= s);
3841
+ }
3842
+ }
3843
+ for (var f = this.__startIndex; f < this.__endIndex; ++f) {
3844
+ var v = e[f];
3845
+ if (v) {
3846
+ var d = v.shouldBePainted(n, a, !0, !0), c = v.__isRendered && (v.__dirty & me || !d) ? v.getPrevPaintRect() : null;
3847
+ c && h(c);
3848
+ var g = d && (v.__dirty & me || !v.__isRendered) ? v.getPaintRect() : null;
3849
+ g && h(g);
3850
+ }
3851
+ }
3852
+ for (var f = this.__prevStartIndex; f < this.__prevEndIndex; ++f) {
3853
+ var v = i[f], d = v && v.shouldBePainted(n, a, !0, !0);
3854
+ if (v && (!d || !v.__zr) && v.__isRendered) {
3855
+ var c = v.getPrevPaintRect();
3856
+ c && h(c);
3857
+ }
3858
+ }
3859
+ var m;
3860
+ do {
3861
+ m = !1;
3862
+ for (var f = 0; f < o.length; ) {
3863
+ if (o[f].isZero()) {
3864
+ o.splice(f, 1);
3865
+ continue;
3866
+ }
3867
+ for (var p = f + 1; p < o.length; )
3868
+ o[f].intersect(o[p]) ? (m = !0, o[f].union(o[p]), o.splice(p, 1)) : p++;
3869
+ f++;
3870
+ }
3871
+ } while (m);
3872
+ return this._paintRects = o, o;
3873
+ }, t.prototype.debugGetPaintRects = function() {
3874
+ return (this._paintRects || []).slice();
3875
+ }, t.prototype.resize = function(e, i) {
3876
+ var n = this.dpr, a = this.dom, o = a.style, s = this.domBack;
3877
+ o && (o.width = e + "px", o.height = i + "px"), a.width = e * n, a.height = i * n, s && (s.width = e * n, s.height = i * n, n !== 1 && this.ctxBack.scale(n, n));
3878
+ }, t.prototype.clear = function(e, i, n) {
3879
+ var a = this.dom, o = this.ctx, s = a.width, l = a.height;
3880
+ i = i || this.clearColor;
3881
+ var u = this.motionBlur && !e, h = this.lastFrameAlpha, f = this.dpr, v = this;
3882
+ u && (this.domBack || this.createBackBuffer(), this.ctxBack.globalCompositeOperation = "copy", this.ctxBack.drawImage(a, 0, 0, s / f, l / f));
3883
+ var d = this.domBack;
3884
+ function c(g, m, p, _) {
3885
+ if (o.clearRect(g, m, p, _), i && i !== "transparent") {
3886
+ var y = void 0;
3887
+ if (Hn(i)) {
3888
+ var x = i.global || i.__width === p && i.__height === _;
3889
+ y = x && i.__canvasGradient || Fn(o, i, {
3890
+ x: 0,
3891
+ y: 0,
3892
+ width: p,
3893
+ height: _
3894
+ }), i.__canvasGradient = y, i.__width = p, i.__height = _;
3895
+ } else zn(i) && (i.scaleX = i.scaleX || f, i.scaleY = i.scaleY || f, y = Wn(o, i, {
3896
+ dirty: function() {
3897
+ v.setUnpainted(), v.painter.refresh();
3898
+ }
3899
+ }));
3900
+ o.save(), o.fillStyle = y || i, o.fillRect(g, m, p, _), o.restore();
3901
+ }
3902
+ u && (o.save(), o.globalAlpha = h, o.drawImage(d, g, m, p, _), o.restore());
3903
+ }
3904
+ !n || u ? c(0, 0, s, l) : n.length && S(n, function(g) {
3905
+ c(g.x * f, g.y * f, g.width * f, g.height * f);
3906
+ });
3907
+ }, t;
3908
+ })(Rn), wi = 1e5, st = 314159, Ht = 0.01, Vo = 1e-3;
3909
+ function Go(r) {
3910
+ return r ? r.__builtin__ ? !0 : !(typeof r.resize != "function" || typeof r.refresh != "function") : !1;
3911
+ }
3912
+ function Yo(r, t) {
3913
+ var e = document.createElement("div");
3914
+ return e.style.cssText = [
3915
+ "position:relative",
3916
+ "width:" + r + "px",
3917
+ "height:" + t + "px",
3918
+ "padding:0",
3919
+ "margin:0",
3920
+ "border-width:0"
3921
+ ].join(";") + ";", e;
3922
+ }
3923
+ var Xo = (function() {
3924
+ function r(t, e, i, n) {
3925
+ this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas";
3926
+ var a = !t.nodeName || t.nodeName.toUpperCase() === "CANVAS";
3927
+ this._opts = i = F({}, i || {}), this.dpr = i.devicePixelRatio || Yi, this._singleCanvas = a, this.root = t;
3928
+ var o = t.style;
3929
+ o && (Gi(t), t.innerHTML = ""), this.storage = e;
3930
+ var s = this._zlevelList;
3931
+ this._prevDisplayList = [];
3932
+ var l = this._layers;
3933
+ if (a) {
3934
+ var h = t, f = h.width, v = h.height;
3935
+ i.width != null && (f = i.width), i.height != null && (v = i.height), this.dpr = i.devicePixelRatio || 1, h.width = f * this.dpr, h.height = v * this.dpr, this._width = f, this._height = v;
3936
+ var d = new he(h, this, this.dpr);
3937
+ d.__builtin__ = !0, d.initContext(), l[st] = d, d.zlevel = st, s.push(st), this._domRoot = t;
3938
+ } else {
3939
+ this._width = Pt(t, 0, i), this._height = Pt(t, 1, i);
3940
+ var u = this._domRoot = Yo(this._width, this._height);
3941
+ t.appendChild(u);
3942
+ }
3943
+ }
3944
+ return r.prototype.getType = function() {
3945
+ return "canvas";
3946
+ }, r.prototype.isSingleCanvas = function() {
3947
+ return this._singleCanvas;
3948
+ }, r.prototype.getViewportRoot = function() {
3949
+ return this._domRoot;
3950
+ }, r.prototype.getViewportRootOffset = function() {
3951
+ var t = this.getViewportRoot();
3952
+ if (t)
3953
+ return {
3954
+ offsetLeft: t.offsetLeft || 0,
3955
+ offsetTop: t.offsetTop || 0
3956
+ };
3957
+ }, r.prototype.refresh = function(t) {
3958
+ var e = this.storage.getDisplayList(!0), i = this._prevDisplayList, n = this._zlevelList;
3959
+ this._redrawId = Math.random(), this._paintList(e, i, t, this._redrawId);
3960
+ for (var a = 0; a < n.length; a++) {
3961
+ var o = n[a], s = this._layers[o];
3962
+ if (!s.__builtin__ && s.refresh) {
3963
+ var l = a === 0 ? this._backgroundColor : null;
3964
+ s.refresh(l);
3965
+ }
3966
+ }
3967
+ return this._opts.useDirtyRect && (this._prevDisplayList = e.slice()), this;
3968
+ }, r.prototype.refreshHover = function() {
3969
+ this._paintHoverList(this.storage.getDisplayList(!1));
3970
+ }, r.prototype._paintHoverList = function(t) {
3971
+ var e = t.length, i = this._hoverlayer;
3972
+ if (i && i.clear(), !!e) {
3973
+ for (var n = {
3974
+ inHover: !0,
3975
+ viewWidth: this._width,
3976
+ viewHeight: this._height
3977
+ }, a, o = 0; o < e; o++) {
3978
+ var s = t[o];
3979
+ s.__inHover && (i || (i = this._hoverlayer = this.getLayer(wi)), a || (a = i.ctx, a.save()), At(a, s, n, o === e - 1));
3980
+ }
3981
+ a && a.restore();
3982
+ }
3983
+ }, r.prototype.getHoverLayer = function() {
3984
+ return this.getLayer(wi);
3985
+ }, r.prototype.paintOne = function(t, e) {
3986
+ Vn(t, e);
3987
+ }, r.prototype._paintList = function(t, e, i, n) {
3988
+ if (this._redrawId === n) {
3989
+ i = i || !1, this._updateLayerStatus(t);
3990
+ var a = this._doPaintList(t, e, i), o = a.finished, s = a.needsRefreshHover;
3991
+ if (this._needsManuallyCompositing && this._compositeManually(), s && this._paintHoverList(t), o)
3992
+ this.eachLayer(function(u) {
3993
+ u.afterBrush && u.afterBrush();
3994
+ });
3995
+ else {
3996
+ var l = this;
3997
+ Gn(function() {
3998
+ l._paintList(t, e, i, n);
3999
+ });
4000
+ }
4001
+ }
4002
+ }, r.prototype._compositeManually = function() {
4003
+ var t = this.getLayer(st).ctx, e = this._domRoot.width, i = this._domRoot.height;
4004
+ t.clearRect(0, 0, e, i), this.eachBuiltinLayer(function(n) {
4005
+ n.virtual && t.drawImage(n.dom, 0, 0, e, i);
4006
+ });
4007
+ }, r.prototype._doPaintList = function(t, e, i) {
4008
+ for (var n = this, a = [], o = this._opts.useDirtyRect, s = 0; s < this._zlevelList.length; s++) {
4009
+ var l = this._zlevelList[s], u = this._layers[l];
4010
+ u.__builtin__ && u !== this._hoverlayer && (u.__dirty || i) && a.push(u);
4011
+ }
4012
+ for (var h = !0, f = !1, v = function(g) {
4013
+ var m = a[g], p = m.ctx, _ = o && m.createRepaintRects(t, e, d._width, d._height), y = i ? m.__startIndex : m.__drawIndex, x = !i && m.incremental && Date.now, L = x && Date.now(), T = m.zlevel === d._zlevelList[0] ? d._backgroundColor : null;
4014
+ if (m.__startIndex === m.__endIndex)
4015
+ m.clear(!1, T, _);
4016
+ else if (y === m.__startIndex) {
4017
+ var D = t[y];
4018
+ (!D.incremental || !D.notClear || i) && m.clear(!1, T, _);
4019
+ }
4020
+ y === -1 && (console.error("For some unknown reason. drawIndex is -1"), y = m.__startIndex);
4021
+ var I, M = function(C) {
4022
+ var P = {
4023
+ inHover: !1,
4024
+ allClipped: !1,
4025
+ prevEl: null,
4026
+ viewWidth: n._width,
4027
+ viewHeight: n._height
4028
+ };
4029
+ for (I = y; I < m.__endIndex; I++) {
4030
+ var O = t[I];
4031
+ if (O.__inHover && (f = !0), n._doPaintEl(O, m, o, C, P, I === m.__endIndex - 1), x) {
4032
+ var B = Date.now() - L;
4033
+ if (B > 15)
4034
+ break;
4035
+ }
4036
+ }
4037
+ P.prevElClipPaths && p.restore();
4038
+ };
4039
+ if (_)
4040
+ if (_.length === 0)
4041
+ I = m.__endIndex;
4042
+ else
4043
+ for (var w = d.dpr, b = 0; b < _.length; ++b) {
4044
+ var A = _[b];
4045
+ p.save(), p.beginPath(), p.rect(A.x * w, A.y * w, A.width * w, A.height * w), p.clip(), M(A), p.restore();
4046
+ }
4047
+ else
4048
+ p.save(), M(), p.restore();
4049
+ m.__drawIndex = I, m.__drawIndex < m.__endIndex && (h = !1);
4050
+ }, d = this, c = 0; c < a.length; c++)
4051
+ v(c);
4052
+ return z.wxa && S(this._layers, function(g) {
4053
+ g && g.ctx && g.ctx.draw && g.ctx.draw();
4054
+ }), {
4055
+ finished: h,
4056
+ needsRefreshHover: f
4057
+ };
4058
+ }, r.prototype._doPaintEl = function(t, e, i, n, a, o) {
4059
+ var s = e.ctx;
4060
+ if (i) {
4061
+ var l = t.getPaintRect();
4062
+ (!n || l && l.intersect(n)) && (At(s, t, a, o), t.setPrevPaintRect(l));
4063
+ } else
4064
+ At(s, t, a, o);
4065
+ }, r.prototype.getLayer = function(t, e) {
4066
+ this._singleCanvas && !this._needsManuallyCompositing && (t = st);
4067
+ var i = this._layers[t];
4068
+ return i || (i = new he("zr_" + t, this, this.dpr), i.zlevel = t, i.__builtin__ = !0, this._layerConfig[t] ? Ot(i, this._layerConfig[t], !0) : this._layerConfig[t - Ht] && Ot(i, this._layerConfig[t - Ht], !0), e && (i.virtual = e), this.insertLayer(t, i), i.initContext()), i;
4069
+ }, r.prototype.insertLayer = function(t, e) {
4070
+ var i = this._layers, n = this._zlevelList, a = n.length, o = this._domRoot, s = null, l = -1;
4071
+ if (i[t]) {
4072
+ process.env.NODE_ENV !== "production" && ee("ZLevel " + t + " has been used already");
4073
+ return;
4074
+ }
4075
+ if (!Go(e)) {
4076
+ process.env.NODE_ENV !== "production" && ee("Layer of zlevel " + t + " is not valid");
4077
+ return;
4078
+ }
4079
+ if (a > 0 && t > n[0]) {
4080
+ for (l = 0; l < a - 1 && !(n[l] < t && n[l + 1] > t); l++)
4081
+ ;
4082
+ s = i[n[l]];
4083
+ }
4084
+ if (n.splice(l + 1, 0, t), i[t] = e, !e.virtual)
4085
+ if (s) {
4086
+ var u = s.dom;
4087
+ u.nextSibling ? o.insertBefore(e.dom, u.nextSibling) : o.appendChild(e.dom);
4088
+ } else
4089
+ o.firstChild ? o.insertBefore(e.dom, o.firstChild) : o.appendChild(e.dom);
4090
+ e.painter || (e.painter = this);
4091
+ }, r.prototype.eachLayer = function(t, e) {
4092
+ for (var i = this._zlevelList, n = 0; n < i.length; n++) {
4093
+ var a = i[n];
4094
+ t.call(e, this._layers[a], a);
4095
+ }
4096
+ }, r.prototype.eachBuiltinLayer = function(t, e) {
4097
+ for (var i = this._zlevelList, n = 0; n < i.length; n++) {
4098
+ var a = i[n], o = this._layers[a];
4099
+ o.__builtin__ && t.call(e, o, a);
4100
+ }
4101
+ }, r.prototype.eachOtherLayer = function(t, e) {
4102
+ for (var i = this._zlevelList, n = 0; n < i.length; n++) {
4103
+ var a = i[n], o = this._layers[a];
4104
+ o.__builtin__ || t.call(e, o, a);
4105
+ }
4106
+ }, r.prototype.getLayers = function() {
4107
+ return this._layers;
4108
+ }, r.prototype._updateLayerStatus = function(t) {
4109
+ this.eachBuiltinLayer(function(f, v) {
4110
+ f.__dirty = f.__used = !1;
4111
+ });
4112
+ function e(f) {
4113
+ a && (a.__endIndex !== f && (a.__dirty = !0), a.__endIndex = f);
4114
+ }
4115
+ if (this._singleCanvas)
4116
+ for (var i = 1; i < t.length; i++) {
4117
+ var n = t[i];
4118
+ if (n.zlevel !== t[i - 1].zlevel || n.incremental) {
4119
+ this._needsManuallyCompositing = !0;
4120
+ break;
4121
+ }
4122
+ }
4123
+ var a = null, o = 0, s, l;
4124
+ for (l = 0; l < t.length; l++) {
4125
+ var n = t[l], u = n.zlevel, h = void 0;
4126
+ s !== u && (s = u, o = 0), n.incremental ? (h = this.getLayer(u + Vo, this._needsManuallyCompositing), h.incremental = !0, o = 1) : h = this.getLayer(u + (o > 0 ? Ht : 0), this._needsManuallyCompositing), h.__builtin__ || ee("ZLevel " + u + " has been used by unkown layer " + h.id), h !== a && (h.__used = !0, h.__startIndex !== l && (h.__dirty = !0), h.__startIndex = l, h.incremental ? h.__drawIndex = -1 : h.__drawIndex = l, e(l), a = h), n.__dirty & me && !n.__inHover && (h.__dirty = !0, h.incremental && h.__drawIndex < 0 && (h.__drawIndex = l));
4127
+ }
4128
+ e(l), this.eachBuiltinLayer(function(f, v) {
4129
+ !f.__used && f.getElementCount() > 0 && (f.__dirty = !0, f.__startIndex = f.__endIndex = f.__drawIndex = 0), f.__dirty && f.__drawIndex < 0 && (f.__drawIndex = f.__startIndex);
4130
+ });
4131
+ }, r.prototype.clear = function() {
4132
+ return this.eachBuiltinLayer(this._clearLayer), this;
4133
+ }, r.prototype._clearLayer = function(t) {
4134
+ t.clear();
4135
+ }, r.prototype.setBackgroundColor = function(t) {
4136
+ this._backgroundColor = t, S(this._layers, function(e) {
4137
+ e.setUnpainted();
4138
+ });
4139
+ }, r.prototype.configLayer = function(t, e) {
4140
+ if (e) {
4141
+ var i = this._layerConfig;
4142
+ i[t] ? Ot(i[t], e, !0) : i[t] = e;
4143
+ for (var n = 0; n < this._zlevelList.length; n++) {
4144
+ var a = this._zlevelList[n];
4145
+ if (a === t || a === t + Ht) {
4146
+ var o = this._layers[a];
4147
+ Ot(o, i[t], !0);
4148
+ }
4149
+ }
4150
+ }
4151
+ }, r.prototype.delLayer = function(t) {
4152
+ var e = this._layers, i = this._zlevelList, n = e[t];
4153
+ n && (n.dom.parentNode.removeChild(n.dom), delete e[t], i.splice(Zt(i, t), 1));
4154
+ }, r.prototype.resize = function(t, e) {
4155
+ if (this._domRoot.style) {
4156
+ var i = this._domRoot;
4157
+ i.style.display = "none";
4158
+ var n = this._opts, a = this.root;
4159
+ if (t != null && (n.width = t), e != null && (n.height = e), t = Pt(a, 0, n), e = Pt(a, 1, n), i.style.display = "", this._width !== t || e !== this._height) {
4160
+ i.style.width = t + "px", i.style.height = e + "px";
4161
+ for (var o in this._layers)
4162
+ this._layers.hasOwnProperty(o) && this._layers[o].resize(t, e);
4163
+ this.refresh(!0);
4164
+ }
4165
+ this._width = t, this._height = e;
4166
+ } else {
4167
+ if (t == null || e == null)
4168
+ return;
4169
+ this._width = t, this._height = e, this.getLayer(st).resize(t, e);
4170
+ }
4171
+ return this;
4172
+ }, r.prototype.clearLayer = function(t) {
4173
+ var e = this._layers[t];
4174
+ e && e.clear();
4175
+ }, r.prototype.dispose = function() {
4176
+ this.root.innerHTML = "", this.root = this.storage = this._domRoot = this._layers = null;
4177
+ }, r.prototype.getRenderedCanvas = function(t) {
4178
+ if (t = t || {}, this._singleCanvas && !this._compositeManually)
4179
+ return this._layers[st].dom;
4180
+ var e = new he("image", this, t.pixelRatio || this.dpr);
4181
+ e.initContext(), e.clear(!1, t.backgroundColor || this._backgroundColor);
4182
+ var i = e.ctx;
4183
+ if (t.pixelRatio <= this.dpr) {
4184
+ this.refresh();
4185
+ var n = e.dom.width, a = e.dom.height;
4186
+ this.eachLayer(function(f) {
4187
+ f.__builtin__ ? i.drawImage(f.dom, 0, 0, n, a) : f.renderToCanvas && (i.save(), f.renderToCanvas(i), i.restore());
4188
+ });
4189
+ } else
4190
+ for (var o = {
4191
+ inHover: !1,
4192
+ viewWidth: this._width,
4193
+ viewHeight: this._height
4194
+ }, s = this.storage.getDisplayList(!0), l = 0, u = s.length; l < u; l++) {
4195
+ var h = s[l];
4196
+ At(i, h, o, l === u - 1);
4197
+ }
4198
+ return e.dom;
4199
+ }, r.prototype.getWidth = function() {
4200
+ return this._width;
4201
+ }, r.prototype.getHeight = function() {
4202
+ return this._height;
4203
+ }, r;
4204
+ })();
4205
+ function cs(r) {
4206
+ r.registerPainter("canvas", Xo);
4207
+ }
4208
+ export {
4209
+ ft as A,
4210
+ ls as B,
4211
+ us as C,
4212
+ Ha as D,
4213
+ Yn as E,
4214
+ ja as F,
4215
+ to as G,
4216
+ Ja as H,
4217
+ Lt as I,
4218
+ vs as J,
4219
+ ro as K,
4220
+ qi as L,
4221
+ io as M,
4222
+ vr as N,
4223
+ $e as O,
4224
+ no as P,
4225
+ ae as Q,
4226
+ ts as R,
4227
+ Ko as S,
4228
+ ar as T,
4229
+ Ce as U,
4230
+ aa as V,
4231
+ ss as W,
4232
+ Ia as X,
4233
+ $o as Y,
4234
+ cs as a,
4235
+ So as b,
4236
+ is as c,
4237
+ ns as d,
4238
+ os as e,
4239
+ hs as f,
4240
+ fs as g,
4241
+ Na as h,
4242
+ ds as i,
4243
+ Jo as j,
4244
+ as as k,
4245
+ es as l,
4246
+ ti as m,
4247
+ rs as n,
4248
+ Qa as o,
4249
+ ta as p,
4250
+ qo as q,
4251
+ Zo as r,
4252
+ Oa as s,
4253
+ Ea as t,
4254
+ sr as u,
4255
+ ka as v,
4256
+ La as w,
4257
+ jo as x,
4258
+ Qo as y,
4259
+ Ba as z
4260
+ };