reke-ui 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +6 -0
  2. package/custom-elements.json +1888 -445
  3. package/dist/_virtual/_rolldown/runtime.js +11 -0
  4. package/dist/components/reke-chip/reke-chip.d.ts +7 -0
  5. package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
  6. package/dist/components/reke-chip/reke-chip.js +8 -2
  7. package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
  8. package/dist/components/reke-chip/reke-chip.styles.js +32 -0
  9. package/dist/components/reke-combobox/reke-combobox.d.ts +21 -1
  10. package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
  11. package/dist/components/reke-combobox/reke-combobox.js +76 -16
  12. package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -1
  13. package/dist/components/reke-combobox/reke-combobox.styles.js +128 -0
  14. package/dist/components/reke-input/reke-input.d.ts +14 -0
  15. package/dist/components/reke-input/reke-input.d.ts.map +1 -1
  16. package/dist/components/reke-input/reke-input.js +41 -22
  17. package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
  18. package/dist/components/reke-input/reke-input.styles.js +44 -16
  19. package/dist/components/reke-menu/reke-menu.d.ts +51 -0
  20. package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
  21. package/dist/components/reke-menu/reke-menu.js +106 -0
  22. package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
  23. package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
  24. package/dist/components/reke-menu/reke-menu.styles.js +25 -0
  25. package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
  26. package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
  27. package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
  28. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
  29. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
  30. package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
  31. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
  32. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
  33. package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
  34. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
  35. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
  36. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
  37. package/dist/components/reke-table/reke-table.d.ts +202 -3
  38. package/dist/components/reke-table/reke-table.d.ts.map +1 -1
  39. package/dist/components/reke-table/reke-table.js +244 -64
  40. package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
  41. package/dist/components/reke-table/reke-table.styles.js +29 -0
  42. package/dist/index.d.ts +5 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +10 -7
  45. package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
  46. package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
  47. package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
  48. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
  49. package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
  50. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
  51. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
  52. package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
  53. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
  54. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
  55. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
  56. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
  57. package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
  58. package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
  59. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
  60. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
  61. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
  62. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
  63. package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
  64. package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
  65. package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
  66. package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
  67. package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
  68. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
  69. package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
  70. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
  71. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
  72. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
  73. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
  74. package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
  75. package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
  76. package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
  77. package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
  78. package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
  79. package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
  80. package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
  81. package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
  82. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
  83. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
  84. package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
  85. package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
  86. package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
  87. package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
  88. package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
  89. package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
  90. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
  91. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
  93. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
  94. package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
  95. package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
  96. package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
  97. package/dist/node_modules/echarts/lib/core/impl.js +11 -0
  98. package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
  99. package/dist/node_modules/echarts/lib/core/locale.js +27 -0
  100. package/dist/node_modules/echarts/lib/core/task.js +81 -0
  101. package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
  102. package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
  103. package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
  104. package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
  105. package/dist/node_modules/echarts/lib/data/Source.js +132 -0
  106. package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
  107. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
  108. package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
  109. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
  110. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
  111. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
  112. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
  113. package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
  114. package/dist/node_modules/echarts/lib/extension.js +62 -0
  115. package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
  116. package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
  117. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
  118. package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
  119. package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
  120. package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
  121. package/dist/node_modules/echarts/lib/loading/default.js +85 -0
  122. package/dist/node_modules/echarts/lib/model/Component.js +64 -0
  123. package/dist/node_modules/echarts/lib/model/Global.js +320 -0
  124. package/dist/node_modules/echarts/lib/model/Model.js +50 -0
  125. package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
  126. package/dist/node_modules/echarts/lib/model/Series.js +216 -0
  127. package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
  128. package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
  129. package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
  130. package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
  131. package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
  132. package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
  133. package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
  134. package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
  135. package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
  136. package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
  137. package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
  138. package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
  139. package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
  140. package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
  141. package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
  142. package/dist/node_modules/echarts/lib/scale/break.js +9 -0
  143. package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
  144. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
  145. package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
  146. package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
  147. package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
  148. package/dist/node_modules/echarts/lib/util/component.js +75 -0
  149. package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
  150. package/dist/node_modules/echarts/lib/util/decal.js +162 -0
  151. package/dist/node_modules/echarts/lib/util/event.js +7 -0
  152. package/dist/node_modules/echarts/lib/util/format.js +87 -0
  153. package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
  154. package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
  155. package/dist/node_modules/echarts/lib/util/layout.js +174 -0
  156. package/dist/node_modules/echarts/lib/util/log.js +54 -0
  157. package/dist/node_modules/echarts/lib/util/model.js +296 -0
  158. package/dist/node_modules/echarts/lib/util/number.js +132 -0
  159. package/dist/node_modules/echarts/lib/util/states.js +323 -0
  160. package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
  161. package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
  162. package/dist/node_modules/echarts/lib/util/time.js +43 -0
  163. package/dist/node_modules/echarts/lib/util/types.js +13 -0
  164. package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
  165. package/dist/node_modules/echarts/lib/view/Component.js +16 -0
  166. package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
  167. package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
  168. package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
  169. package/dist/node_modules/echarts/lib/visual/style.js +79 -0
  170. package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
  171. package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
  172. package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
  173. package/dist/node_modules/zrender/lib/Element.js +442 -0
  174. package/dist/node_modules/zrender/lib/Handler.js +167 -0
  175. package/dist/node_modules/zrender/lib/Storage.js +68 -0
  176. package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
  177. package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
  178. package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
  179. package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
  180. package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
  181. package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
  182. package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
  183. package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
  184. package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
  185. package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
  186. package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
  187. package/dist/node_modules/zrender/lib/config.js +7 -0
  188. package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
  189. package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
  190. package/dist/node_modules/zrender/lib/contain/line.js +12 -0
  191. package/dist/node_modules/zrender/lib/contain/path.js +133 -0
  192. package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
  193. package/dist/node_modules/zrender/lib/contain/text.js +106 -0
  194. package/dist/node_modules/zrender/lib/contain/util.js +7 -0
  195. package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
  196. package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
  197. package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
  198. package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
  199. package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
  200. package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
  201. package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
  202. package/dist/node_modules/zrender/lib/core/Point.js +72 -0
  203. package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
  204. package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
  205. package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
  206. package/dist/node_modules/zrender/lib/core/curve.js +142 -0
  207. package/dist/node_modules/zrender/lib/core/dom.js +74 -0
  208. package/dist/node_modules/zrender/lib/core/env.js +22 -0
  209. package/dist/node_modules/zrender/lib/core/event.js +58 -0
  210. package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
  211. package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
  212. package/dist/node_modules/zrender/lib/core/platform.js +42 -0
  213. package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
  214. package/dist/node_modules/zrender/lib/core/util.js +314 -0
  215. package/dist/node_modules/zrender/lib/core/vector.js +52 -0
  216. package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
  217. package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
  218. package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
  219. package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
  220. package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
  221. package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
  222. package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
  223. package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
  224. package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
  225. package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
  226. package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
  227. package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
  228. package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
  229. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
  230. package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
  231. package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
  232. package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
  233. package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
  234. package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
  235. package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
  236. package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
  237. package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
  238. package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
  239. package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
  240. package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
  241. package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
  242. package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
  243. package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
  244. package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
  245. package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
  246. package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
  247. package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
  248. package/dist/node_modules/zrender/lib/tool/path.js +153 -0
  249. package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
  250. package/dist/node_modules/zrender/lib/zrender.js +124 -0
  251. package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
  252. package/dist/react-bridge/table.d.ts.map +1 -1
  253. package/dist/react-bridge/table.js +36 -21
  254. package/dist/react.d.ts +8 -0
  255. package/dist/react.d.ts.map +1 -1
  256. package/dist/react.js +58 -46
  257. package/dist/shared/base-element.d.ts +1 -0
  258. package/dist/shared/base-element.d.ts.map +1 -1
  259. package/dist/shared/base-element.js +6 -0
  260. package/dist/shared/tailwind.js +1 -1
  261. package/dist/tokens/reke-tokens.css +15 -0
  262. package/package.json +15 -1
@@ -0,0 +1,986 @@
1
+ import { platformApi as e } from "../../../zrender/lib/core/platform.js";
2
+ import { assert as t, bind as n, clone as r, createHashMap as i, defaults as a, each as o, extend as s, indexOf as c, isDom as l, isFunction as u, isObject as d, isString as f, map as p, noop as m, retrieve2 as h, setAsPrimitive as g } from "../../../zrender/lib/core/util.js";
3
+ import { deprecateLog as _, deprecateReplaceLog as v, error as y, warn as b } from "../util/log.js";
4
+ import x from "../../../zrender/lib/core/env.js";
5
+ import { convertOptionIdName as ee, getAttribute as S, makeQueryConditionKindA as C, normalizeToArray as w, parseFinder as T, preParseFinder as te, setAttribute as ne } from "../util/model.js";
6
+ import { handleLegacySelectEvents as re } from "../legacy/dataSelectAction.js";
7
+ import { __extends as ie } from "../../node_modules/tslib/tslib.es6.js";
8
+ import ae from "../../../zrender/lib/core/Eventful.js";
9
+ import oe from "../../../zrender/lib/graphic/Path.js";
10
+ import se from "../../../zrender/lib/graphic/Image.js";
11
+ import ce from "../../../zrender/lib/graphic/shape/Rect.js";
12
+ import { getECData as E } from "../util/innerStore.js";
13
+ import { isElementRemoved as D } from "../animation/basicTransition.js";
14
+ import { retrieveZInfo as le, traverseUpdateZ as ue } from "../util/graphic.js";
15
+ import "../util/types.js";
16
+ import de from "./ExtensionAPI.js";
17
+ import { DOWNPLAY_ACTION_TYPE as O, HIGHLIGHT_ACTION_TYPE as fe, SELECT_ACTION_TYPE as pe, SELECT_CHANGED_EVENT_TYPE as me, TOGGLE_SELECT_ACTION_TYPE as he, UNSELECT_ACTION_TYPE as ge, allLeaveBlur as _e, blurComponent as ve, blurSeriesFromHighlightPayload as ye, enterBlur as be, enterEmphasis as xe, enterSelect as Se, findComponentHighDownDispatchers as Ce, getAllSelectedIndices as we, handleGlobalMouseOutForHighDown as Te, handleGlobalMouseOverForHighDown as Ee, isHighDownDispatcher as De, isHighDownPayload as Oe, isSelectChangePayload as ke, leaveBlur as Ae, leaveEmphasis as je, leaveSelect as Me, savePathStates as Ne, toggleSelectionFromPayload as Pe, updateSeriesElementSelection as Fe } from "../util/states.js";
18
+ import { parseClassType as Ie } from "../util/clazz.js";
19
+ import Le from "../view/Chart.js";
20
+ import { SYSTEM_LANG as Re, createLocaleObject as ze } from "./locale.js";
21
+ import Be from "./CoordinateSystem.js";
22
+ import { registerExternalTransform as Ve } from "../data/helper/transform.js";
23
+ import He from "../model/Series.js";
24
+ import Ue from "../view/Component.js";
25
+ import { throttle as We } from "../util/throttle.js";
26
+ import { resetCachePerECFullUpdate as Ge, resetCachePerECPrepare as Ke } from "../util/cycleCache.js";
27
+ import qe from "../../../zrender/lib/core/timsort.js";
28
+ import { init as Je, registerSSRDataGetter as Ye } from "../../../zrender/lib/zrender.js";
29
+ import Xe from "../model/globalDefault.js";
30
+ import Ze from "../model/Global.js";
31
+ import Qe from "../model/OptionManager.js";
32
+ import $e from "../preprocessor/backwardCompat.js";
33
+ import { dataStackStageHandler as et } from "../processor/dataStack.js";
34
+ import { dataColorPaletteTask as tt, dataStyleTask as nt, seriesStyleTask as rt } from "../visual/style.js";
35
+ import it from "../loading/default.js";
36
+ import at from "./Scheduler.js";
37
+ import ot from "../theme/dark.js";
38
+ import { ECEventProcessor as st } from "../util/ECEventProcessor.js";
39
+ import { dataSymbolTask as ct, seriesSymbolTask as lt } from "../visual/symbol.js";
40
+ import { getItemVisualFromData as ut, getVisualFromData as dt } from "../visual/helper.js";
41
+ import { findEventDispatcher as k } from "../util/event.js";
42
+ import A from "./lifecycle.js";
43
+ import { getImpl as ft } from "./impl.js";
44
+ import { decalVisualStageHandler as pt } from "../visual/decal.js";
45
+ //#region node_modules/echarts/lib/core/echarts.js
46
+ var mt = 1, ht = 800, gt = 900, _t = 920, vt = 1e3, yt = 2e3, bt = 5e3, xt = 1e3, St = 1100, Ct = 2e3, wt = 3e3, Tt = 4e3, j = 4500, Et = 4600, Dt = 5e3, Ot = 6e3, kt = 7e3, At = {
47
+ PROCESSOR: {
48
+ SERIES_FILTER: ht,
49
+ AXIS_STATISTICS: _t,
50
+ FILTER: vt,
51
+ STATISTIC: bt,
52
+ STATISTICS: bt
53
+ },
54
+ VISUAL: {
55
+ LAYOUT: xt,
56
+ PROGRESSIVE_LAYOUT: St,
57
+ GLOBAL: Ct,
58
+ CHART: wt,
59
+ POST_CHART_LAYOUT: Et,
60
+ COMPONENT: Tt,
61
+ BRUSH: Dt,
62
+ CHART_ITEM: j,
63
+ ARIA: Ot,
64
+ DECAL: kt
65
+ }
66
+ }, M = "__flagInMainProcess", N = "__mainProcessVersion", P = "__pendingUpdate", jt = "__needsUpdateStatus", Mt = /^[a-zA-Z0-9_]+$/, Nt = "__connectUpdateStatus", Pt = 0, Ft = 1, It = 2;
67
+ function Lt(e) {
68
+ return function() {
69
+ var t = [...arguments];
70
+ if (this.isDisposed()) {
71
+ q(this.id);
72
+ return;
73
+ }
74
+ return zt(this, e, t);
75
+ };
76
+ }
77
+ function Rt(e) {
78
+ return function() {
79
+ var t = [...arguments];
80
+ return zt(this, e, t);
81
+ };
82
+ }
83
+ function zt(e, t, n) {
84
+ return n[0] = n[0] && n[0].toLowerCase(), ae.prototype[t].apply(e, n);
85
+ }
86
+ var Bt = function(e) {
87
+ ie(t, e);
88
+ function t() {
89
+ return e !== null && e.apply(this, arguments) || this;
90
+ }
91
+ return t;
92
+ }(ae), Vt = Bt.prototype;
93
+ Vt.on = Rt("on"), Vt.off = Rt("off");
94
+ var F, Ht, I, L, R, z, B, V, H, Ut, Wt, U, Gt, W, Kt, qt, G, Jt, K, Yt = function(c) {
95
+ ie(l, c);
96
+ function l(e, t, r) {
97
+ var a = c.call(this, new st()) || this;
98
+ a._chartsViews = [], a._chartsMap = {}, a._componentsViews = [], a._componentsMap = {}, a._pendingActions = [], r ||= {}, a.__v_skip = !0, a._dom = e;
99
+ var o = "canvas", s = "auto", l = !1;
100
+ if (a[N] = 1, process.env.NODE_ENV !== "production") {
101
+ var u = x.hasGlobalWindow ? window : global;
102
+ u && (o = h(u.__ECHARTS__DEFAULT__RENDERER__, o), s = h(u.__ECHARTS__DEFAULT__COARSE_POINTER, s), l = h(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__, l));
103
+ }
104
+ r.ssr && Ye(function(e) {
105
+ var t = E(e), n = t.dataIndex;
106
+ if (n != null) {
107
+ var r = i();
108
+ return r.set("series_index", t.seriesIndex), r.set("data_index", n), t.ssrType && r.set("ssr_type", t.ssrType), r;
109
+ }
110
+ });
111
+ var d = a._zr = Je(e, {
112
+ renderer: r.renderer || o,
113
+ devicePixelRatio: r.devicePixelRatio,
114
+ width: r.width,
115
+ height: r.height,
116
+ ssr: r.ssr,
117
+ useDirtyRect: h(r.useDirtyRect, l),
118
+ useCoarsePointer: h(r.useCoarsePointer, s),
119
+ pointerSize: r.pointerSize
120
+ });
121
+ a._ssr = r.ssr, a._throttledZrFlush = We(n(d.flush, d), 17), a._updateTheme(t), a._locale = ze(r.locale || Re), a._coordSysMgr = new Be();
122
+ var f = a._api = Kt(a);
123
+ function p(e, t) {
124
+ return e.__prio - t.__prio;
125
+ }
126
+ return qe(X, p), qe($t, p), a._scheduler = new at(a, f, $t, X), a._messageCenter = new Bt(), a._initEvents(), a.resize = n(a.resize, a), d.animation.on("frame", a._onframe, a), Ut(d, a), Wt(d, a), g(a), a;
127
+ }
128
+ return l.prototype._onframe = function() {
129
+ if (!this._disposed) {
130
+ var t = this._scheduler, n = this._model, r = this._api;
131
+ if (Jt(this), this[P]) {
132
+ var i = this[P].silent;
133
+ this[M] = !0, K(this);
134
+ try {
135
+ F(this), L.update.call(this, null, this[P].updateParams);
136
+ } catch (e) {
137
+ throw this[M] = !1, this[P] = null, e;
138
+ }
139
+ this._zr.flush(), this[M] = !1, this[P] = null, V.call(this, i), H.call(this, i);
140
+ } else if (t.unfinished) {
141
+ var a = mt;
142
+ do {
143
+ t.unfinished = !1;
144
+ var o = e.getTime();
145
+ t.performSeriesTasks(n), t.performDataProcessorTasks(n), z(this, n), t.performVisualTasks(n), W(this, this._model, r, "remain", {}), a -= e.getTime() - o;
146
+ } while (a > 0 && t.unfinished);
147
+ t.unfinished || this._zr.flush();
148
+ }
149
+ }
150
+ }, l.prototype.getDom = function() {
151
+ return this._dom;
152
+ }, l.prototype.getId = function() {
153
+ return this.id;
154
+ }, l.prototype.getZr = function() {
155
+ return this._zr;
156
+ }, l.prototype.isSSR = function() {
157
+ return this._ssr;
158
+ }, l.prototype.setOption = function(e, t, n) {
159
+ if (this[M]) {
160
+ process.env.NODE_ENV !== "production" && y("`setOption` should not be called during main process.");
161
+ return;
162
+ }
163
+ if (this._disposed) {
164
+ q(this.id);
165
+ return;
166
+ }
167
+ var r, i, a;
168
+ if (d(t) && (n = t.lazyUpdate, r = t.silent, i = t.replaceMerge, a = t.transition, t = t.notMerge), this[M] = !0, K(this), !this._model || t) {
169
+ var o = new Qe(this._api), s = this._theme, c = this._model = new Ze();
170
+ c.scheduler = this._scheduler, c.ssr = this._ssr, c.init(null, null, null, s, this._locale, o);
171
+ }
172
+ this._model.setOption(e, { replaceMerge: i }, en);
173
+ var l = {
174
+ seriesTransition: a,
175
+ optionChanged: !0
176
+ };
177
+ if (n) this[P] = {
178
+ silent: r,
179
+ updateParams: l
180
+ }, this[M] = !1, this.getZr().wakeUp();
181
+ else {
182
+ try {
183
+ F(this), L.update.call(this, null, l);
184
+ } catch (e) {
185
+ throw this[P] = null, this[M] = !1, e;
186
+ }
187
+ this._ssr || this._zr.flush(), this[P] = null, this[M] = !1, V.call(this, r), H.call(this, r);
188
+ }
189
+ }, l.prototype.setTheme = function(e, t) {
190
+ if (this[M]) {
191
+ process.env.NODE_ENV !== "production" && y("`setTheme` should not be called during main process.");
192
+ return;
193
+ }
194
+ if (this._disposed) {
195
+ q(this.id);
196
+ return;
197
+ }
198
+ var n = this._model;
199
+ if (n) {
200
+ var r = t && t.silent, i = null;
201
+ this[P] && (r ??= this[P].silent, i = this[P].updateParams, this[P] = null), this[M] = !0, K(this);
202
+ try {
203
+ this._updateTheme(e), n.setTheme(this._theme), F(this), L.update.call(this, { type: "setTheme" }, i);
204
+ } catch (e) {
205
+ throw this[M] = !1, e;
206
+ }
207
+ this[M] = !1, V.call(this, r), H.call(this, r);
208
+ }
209
+ }, l.prototype._updateTheme = function(e) {
210
+ f(e) && (e = tn[e]), e && (e = r(e), e && $e(e, !0), this._theme = e);
211
+ }, l.prototype.getModel = function() {
212
+ return this._model;
213
+ }, l.prototype.getOption = function() {
214
+ return this._model && this._model.getOption();
215
+ }, l.prototype.getWidth = function() {
216
+ return this._zr.getWidth();
217
+ }, l.prototype.getHeight = function() {
218
+ return this._zr.getHeight();
219
+ }, l.prototype.getDevicePixelRatio = function() {
220
+ return this._zr.painter.dpr || x.hasGlobalWindow && window.devicePixelRatio || 1;
221
+ }, l.prototype.getRenderedCanvas = function(e) {
222
+ return process.env.NODE_ENV !== "production" && v("getRenderedCanvas", "renderToCanvas"), this.renderToCanvas(e);
223
+ }, l.prototype.renderToCanvas = function(e) {
224
+ e ||= {};
225
+ var t = this._zr.painter;
226
+ if (process.env.NODE_ENV !== "production" && t.type !== "canvas") throw Error("renderToCanvas can only be used in the canvas renderer.");
227
+ return t.getRenderedCanvas({
228
+ backgroundColor: e.backgroundColor || this._model.get("backgroundColor"),
229
+ pixelRatio: e.pixelRatio || this.getDevicePixelRatio()
230
+ });
231
+ }, l.prototype.renderToSVGString = function(e) {
232
+ e ||= {};
233
+ var t = this._zr.painter;
234
+ if (process.env.NODE_ENV !== "production" && t.type !== "svg") throw Error("renderToSVGString can only be used in the svg renderer.");
235
+ return t.renderToString({ useViewBox: e.useViewBox });
236
+ }, l.prototype.getSvgDataURL = function() {
237
+ var e = this._zr;
238
+ return o(e.storage.getDisplayList(), function(e) {
239
+ e.stopAnimation(null, !0);
240
+ }), e.painter.toDataURL();
241
+ }, l.prototype.getDataURL = function(e) {
242
+ if (this._disposed) {
243
+ q(this.id);
244
+ return;
245
+ }
246
+ e ||= {};
247
+ var t = e.excludeComponents, n = this._model, r = [], i = this;
248
+ o(t, function(e) {
249
+ n.eachComponent({ mainType: e }, function(e) {
250
+ var t = i._componentsMap[e.__viewId];
251
+ t.group.ignore || (r.push(t), t.group.ignore = !0);
252
+ });
253
+ });
254
+ var a = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(e).toDataURL("image/" + (e && e.type || "png"));
255
+ return o(r, function(e) {
256
+ e.group.ignore = !1;
257
+ }), a;
258
+ }, l.prototype.getConnectedDataURL = function(t) {
259
+ if (this._disposed) {
260
+ q(this.id);
261
+ return;
262
+ }
263
+ var n = t.type === "svg", i = this.group, a = Math.min, s = Math.max, c = Infinity;
264
+ if (rn[i]) {
265
+ var l = c, u = c, d = -c, f = -c, p = [], m = t && t.pixelRatio || this.getDevicePixelRatio();
266
+ o(Z, function(e, o) {
267
+ if (e.group === i) {
268
+ var c = n ? e.getZr().painter.getSvgDom().innerHTML : e.renderToCanvas(r(t)), m = e.getDom().getBoundingClientRect();
269
+ l = a(m.left, l), u = a(m.top, u), d = s(m.right, d), f = s(m.bottom, f), p.push({
270
+ dom: c,
271
+ left: m.left,
272
+ top: m.top
273
+ });
274
+ }
275
+ }), l *= m, u *= m, d *= m, f *= m;
276
+ var h = d - l, g = f - u, _ = e.createCanvas(), v = Je(_, { renderer: n ? "svg" : "canvas" });
277
+ if (v.resize({
278
+ width: h,
279
+ height: g
280
+ }), n) {
281
+ var y = "";
282
+ return o(p, function(e) {
283
+ var t = e.left - l, n = e.top - u;
284
+ y += "<g transform=\"translate(" + t + "," + n + ")\">" + e.dom + "</g>";
285
+ }), v.painter.getSvgRoot().innerHTML = y, t.connectedBackgroundColor && v.painter.setBackgroundColor(t.connectedBackgroundColor), v.refreshImmediately(), v.painter.toDataURL();
286
+ } else return t.connectedBackgroundColor && v.add(new ce({
287
+ shape: {
288
+ x: 0,
289
+ y: 0,
290
+ width: h,
291
+ height: g
292
+ },
293
+ style: { fill: t.connectedBackgroundColor }
294
+ })), o(p, function(e) {
295
+ var t = new se({ style: {
296
+ x: e.left * m - l,
297
+ y: e.top * m - u,
298
+ image: e.dom
299
+ } });
300
+ v.add(t);
301
+ }), v.refreshImmediately(), _.toDataURL("image/" + (t && t.type || "png"));
302
+ } else return this.getDataURL(t);
303
+ }, l.prototype.convertToPixel = function(e, t, n) {
304
+ return R(this, "convertToPixel", e, t, n);
305
+ }, l.prototype.convertToLayout = function(e, t, n) {
306
+ return R(this, "convertToLayout", e, t, n);
307
+ }, l.prototype.convertFromPixel = function(e, t, n) {
308
+ return R(this, "convertFromPixel", e, t, n);
309
+ }, l.prototype.containPixel = function(e, t) {
310
+ if (this._disposed) {
311
+ q(this.id);
312
+ return;
313
+ }
314
+ var n = this._model, r;
315
+ return o(T(n, e), function(e, n) {
316
+ n.indexOf("Models") >= 0 && o(e, function(e) {
317
+ var i = e.coordinateSystem;
318
+ if (i && i.containPoint) r ||= !!i.containPoint(t);
319
+ else if (n === "seriesModels") {
320
+ var a = this._chartsMap[e.__viewId];
321
+ a && a.containPoint ? r ||= a.containPoint(t, e) : process.env.NODE_ENV !== "production" && b(n + ": " + (a ? "The found component do not support containPoint." : "No view mapping to the found component."));
322
+ } else process.env.NODE_ENV !== "production" && b(n + ": containPoint is not supported");
323
+ }, this);
324
+ }, this), !!r;
325
+ }, l.prototype.getVisual = function(e, t) {
326
+ var n = this._model, r = T(n, e, { defaultMainType: "series" }), i = r.seriesModel;
327
+ process.env.NODE_ENV !== "production" && (i || b("There is no specified series model"));
328
+ var a = i.getData(), o = r.hasOwnProperty("dataIndexInside") ? r.dataIndexInside : r.hasOwnProperty("dataIndex") ? a.indexOfRawIndex(r.dataIndex) : null;
329
+ return o == null ? dt(a, t) : ut(a, o, t);
330
+ }, l.prototype.getViewOfComponentModel = function(e) {
331
+ return this._componentsMap[e.__viewId];
332
+ }, l.prototype.getViewOfSeriesModel = function(e) {
333
+ return this._chartsMap[e.__viewId];
334
+ }, l.prototype._initEvents = function() {
335
+ var e = this;
336
+ o(Zt, function(t) {
337
+ var n = function(n) {
338
+ var r = e.getModel(), i = n.target, a, o = t === "globalout";
339
+ if (o ? a = {} : i && k(i, function(e) {
340
+ var t = E(e);
341
+ if (t && t.dataIndex != null) {
342
+ var n = t.dataModel || r.getSeriesByIndex(t.seriesIndex);
343
+ return a = n && n.getDataParams(t.dataIndex, t.dataType, i) || {}, !0;
344
+ } else if (t.eventData) return a = s({}, t.eventData), !0;
345
+ }, !0), a) {
346
+ var c = a.componentType, l = a.componentIndex;
347
+ (c === "markLine" || c === "markPoint" || c === "markArea") && (c = "series", l = a.seriesIndex);
348
+ var u = c && l != null && r.getComponent(c, l), d = u && e[u.mainType === "series" ? "_chartsMap" : "_componentsMap"][u.__viewId];
349
+ process.env.NODE_ENV !== "production" && !o && !(u && d) && b("model or view can not be found by params"), a.event = n, a.type = t, e._$eventProcessor.eventInfo = {
350
+ targetEl: i,
351
+ packedEvent: a,
352
+ model: u,
353
+ view: d
354
+ }, e.trigger(t, a);
355
+ }
356
+ };
357
+ n.zrEventfulCallAtLast = !0, e._zr.on(t, n, e);
358
+ });
359
+ var t = this._messageCenter;
360
+ o(Qt, function(n, r) {
361
+ t.on(r, function(t) {
362
+ e.trigger(r, t);
363
+ });
364
+ }), re(t, this, this._api);
365
+ }, l.prototype.isDisposed = function() {
366
+ return this._disposed;
367
+ }, l.prototype.clear = function() {
368
+ if (this._disposed) {
369
+ q(this.id);
370
+ return;
371
+ }
372
+ this.setOption({ series: [] }, !0);
373
+ }, l.prototype.dispose = function() {
374
+ if (this._disposed) {
375
+ q(this.id);
376
+ return;
377
+ }
378
+ this._disposed = !0, this.getDom() && ne(this.getDom(), on, "");
379
+ var e = this, t = e._api, n = e._model;
380
+ o(e._componentsViews, function(e) {
381
+ e.dispose(n, t);
382
+ }), o(e._chartsViews, function(e) {
383
+ e.dispose(n, t);
384
+ }), e._zr.dispose(), e._dom = e._model = e._chartsMap = e._componentsMap = e._chartsViews = e._componentsViews = e._scheduler = e._api = e._zr = e._throttledZrFlush = e._theme = e._coordSysMgr = e._messageCenter = null, delete Z[e.id];
385
+ }, l.prototype.resize = function(e) {
386
+ if (this[M]) {
387
+ process.env.NODE_ENV !== "production" && y("`resize` should not be called during main process.");
388
+ return;
389
+ }
390
+ if (this._disposed) {
391
+ q(this.id);
392
+ return;
393
+ }
394
+ this._zr.resize(e);
395
+ var t = this._model;
396
+ if (this._loadingFX && this._loadingFX.resize(), t) {
397
+ var n = t.resetOption("media"), r = e && e.silent;
398
+ this[P] && (r ??= this[P].silent, n = !0, this[P] = null), this[M] = !0, K(this);
399
+ try {
400
+ n && F(this), L.update.call(this, {
401
+ type: "resize",
402
+ animation: s({ duration: 0 }, e && e.animation)
403
+ });
404
+ } catch (e) {
405
+ throw this[M] = !1, e;
406
+ }
407
+ this[M] = !1, V.call(this, r), H.call(this, r);
408
+ }
409
+ }, l.prototype.showLoading = function(e, t) {
410
+ if (this._disposed) {
411
+ q(this.id);
412
+ return;
413
+ }
414
+ if (d(e) && (t = e, e = ""), e ||= "default", this.hideLoading(), !nn[e]) {
415
+ process.env.NODE_ENV !== "production" && b("Loading effects " + e + " not exists.");
416
+ return;
417
+ }
418
+ var n = nn[e](this._api, t), r = this._zr;
419
+ this._loadingFX = n, r.add(n);
420
+ }, l.prototype.hideLoading = function() {
421
+ if (this._disposed) {
422
+ q(this.id);
423
+ return;
424
+ }
425
+ this._loadingFX && this._zr.remove(this._loadingFX), this._loadingFX = null;
426
+ }, l.prototype.makeActionFromEvent = function(e) {
427
+ var t = s({}, e);
428
+ return t.type = Y[e.type], t;
429
+ }, l.prototype.dispatchAction = function(e, t) {
430
+ if (this._disposed) {
431
+ q(this.id);
432
+ return;
433
+ }
434
+ if (d(t) || (t = { silent: !!t }), J[e.type] && this._model) {
435
+ if (this[M]) {
436
+ this._pendingActions.push(e);
437
+ return;
438
+ }
439
+ var n = t.silent;
440
+ B.call(this, e, n);
441
+ var r = t.flush;
442
+ r ? this._zr.flush() : r !== !1 && x.browser.weChat && this._throttledZrFlush(), V.call(this, n), H.call(this, n);
443
+ }
444
+ }, l.prototype.updateLabelLayout = function() {
445
+ A.trigger("series:layoutlabels", this._model, this._api, { updatedSeries: [] });
446
+ }, l.prototype.appendData = function(e) {
447
+ if (this._disposed) {
448
+ q(this.id);
449
+ return;
450
+ }
451
+ var n = e.seriesIndex, r = this.getModel().getSeriesByIndex(n);
452
+ process.env.NODE_ENV !== "production" && t(e.data && r), r.appendData(e), this._scheduler.unfinished = !0, this.getZr().wakeUp();
453
+ }, l.internalField = function() {
454
+ F = function(e) {
455
+ Ke(e._model);
456
+ var t = e._scheduler;
457
+ t.restorePipelines(e._zr, e._model), t.prepareStageTasks(), Ht(e, !0), Ht(e, !1), t.plan();
458
+ }, Ht = function(e, n) {
459
+ for (var r = e._model, i = e._scheduler, a = n ? e._componentsViews : e._chartsViews, o = n ? e._componentsMap : e._chartsMap, s = e._zr, c = e._api, l = 0; l < a.length; l++) a[l].__alive = !1;
460
+ n ? r.eachComponent(function(e, t) {
461
+ e !== "series" && u(t);
462
+ }) : r.eachSeries(u);
463
+ function u(e) {
464
+ var l = e.__requireNewView;
465
+ e.__requireNewView = !1;
466
+ var u = "_ec_" + e.id + "_" + e.type, d = !l && o[u];
467
+ if (!d) {
468
+ var f = Ie(e.type), p = n ? Ue.getClass(f.main, f.sub) : Le.getClass(f.sub);
469
+ process.env.NODE_ENV !== "production" && t(p, f.sub + " does not exist."), d = new p(), d.init(r, c), o[u] = d, a.push(d), s.add(d.group);
470
+ }
471
+ e.__viewId = d.__id = u, d.__alive = !0, d.__model = e, d.group.__ecComponentInfo = {
472
+ mainType: e.mainType,
473
+ index: e.componentIndex
474
+ }, !n && i.prepareView(d, e, r, c);
475
+ }
476
+ for (var l = 0; l < a.length;) {
477
+ var d = a[l];
478
+ d.__alive ? l++ : (!n && d.renderTask.dispose(), s.remove(d.group), d.dispose(r, c), a.splice(l, 1), o[d.__id] === d && delete o[d.__id], d.__id = d.group.__ecComponentInfo = null);
479
+ }
480
+ }, I = function(e, t, n, r, a) {
481
+ var s = e._model;
482
+ if (s.setUpdatePayload(n), !r) {
483
+ o([].concat(e._componentsViews, e._chartsViews), d);
484
+ return;
485
+ }
486
+ var c = C(n, r, a), l = n.excludeSeriesId, u;
487
+ l != null && (u = i(), o(w(l), function(e) {
488
+ var t = ee(e, null);
489
+ t != null && u.set(t, !0);
490
+ })), s && s.eachComponent(c, function(t) {
491
+ if (!(u && u.get(t.id) != null)) if (Oe(n)) if (t instanceof He) n.type === "highlight" && !n.notBlur && !t.get(["emphasis", "disabled"]) && ye(t, n, e._api);
492
+ else {
493
+ var r = Ce(t.mainType, t.componentIndex, n.name, e._api), i = r.focusSelf, a = r.dispatchers;
494
+ n.type === "highlight" && i && !n.notBlur && ve(t.mainType, t.componentIndex, e._api), a && o(a, function(e) {
495
+ n.type === "highlight" ? xe(e) : je(e);
496
+ });
497
+ }
498
+ else ke(n) && t instanceof He && (Pe(t, n, e._api), Fe(t), G(e));
499
+ }, e), s && s.eachComponent(c, function(t) {
500
+ u && u.get(t.id) != null || d(e[r === "series" ? "_chartsMap" : "_componentsMap"][t.__viewId]);
501
+ }, e);
502
+ function d(r) {
503
+ r && r.__alive && r[t] && r[t](r.__model, s, e._api, n);
504
+ }
505
+ }, L = {
506
+ prepareAndUpdate: function(e) {
507
+ F(this), L.update.call(this, e, e && { optionChanged: e.newOption != null });
508
+ },
509
+ update: function(e, t) {
510
+ var r = this._model, i = this._api, a = this._zr, o = this._coordSysMgr, s = this._scheduler;
511
+ if (r) {
512
+ Ge(r), r.setUpdatePayload(e), s.restoreData(r, e), s.performSeriesTasks(r), o.create(r, i), A.trigger("coordsys:aftercreate", r, i), s.performDataProcessorTasks(r, e), z(this, r), o.update(r, i), n(r), s.performVisualTasks(r, e);
513
+ var c = r.get("backgroundColor") || "transparent";
514
+ a.setBackgroundColor(c);
515
+ var l = r.get("darkMode");
516
+ l != null && l !== "auto" && a.setDarkMode(l), U(this, r, i, e, t), A.trigger("afterupdate", r, i);
517
+ }
518
+ },
519
+ updateTransform: function(e) {
520
+ var t = this, n = t._model, r = t._api;
521
+ if (n) {
522
+ n.setUpdatePayload(e);
523
+ var a = [];
524
+ n.eachComponent(function(i, o) {
525
+ if (i !== "series") {
526
+ var s = t.getViewOfComponentModel(o);
527
+ if (s && s.__alive) if (s.updateTransform) {
528
+ var c = s.updateTransform(o, n, r, e);
529
+ c && c.update && a.push(s);
530
+ } else a.push(s);
531
+ }
532
+ });
533
+ var o = i();
534
+ n.eachSeries(function(i) {
535
+ var a = t._chartsMap[i.__viewId], s = i.pipelineContext;
536
+ if (a.updateTransform && !s.progressiveRender) {
537
+ var c = a.updateTransform(i, n, r, e);
538
+ c && c.update && o.set(i.uid, 1);
539
+ } else o.set(i.uid, 1);
540
+ }), t._scheduler.performVisualTasks(n, e, {
541
+ setDirty: !0,
542
+ dirtyMap: o
543
+ }), W(t, n, r, e, {}, o), A.trigger("afterupdate", n, r);
544
+ }
545
+ },
546
+ updateView: function(e) {
547
+ var t = this._model;
548
+ t && (t.setUpdatePayload(e), Le.markUpdateMethod(e, "updateView"), n(t), this._scheduler.performVisualTasks(t, e, { setDirty: !0 }), U(this, t, this._api, e, {}), A.trigger("afterupdate", t, this._api));
549
+ },
550
+ updateVisual: function(e) {
551
+ var t = this, r = this._model;
552
+ r && (r.setUpdatePayload(e), r.eachSeries(function(e) {
553
+ e.getData().clearAllVisual();
554
+ }), Le.markUpdateMethod(e, "updateVisual"), n(r), this._scheduler.performVisualTasks(r, e, {
555
+ visualType: "visual",
556
+ setDirty: !0
557
+ }), r.eachComponent(function(n, i) {
558
+ if (n !== "series") {
559
+ var a = t.getViewOfComponentModel(i);
560
+ a && a.__alive && a.updateVisual(i, r, t._api, e);
561
+ }
562
+ }), r.eachSeries(function(n) {
563
+ t._chartsMap[n.__viewId].updateVisual(n, r, t._api, e);
564
+ }), A.trigger("afterupdate", r, this._api));
565
+ },
566
+ updateLayout: function(e) {
567
+ L.update.call(this, e);
568
+ }
569
+ };
570
+ function e(e, t, n, r, i) {
571
+ if (e._disposed) {
572
+ q(e.id);
573
+ return;
574
+ }
575
+ for (var a = e._model, o = e._coordSysMgr.getCoordinateSystems(), s, c = T(a, n), l = 0; l < o.length; l++) {
576
+ var u = o[l];
577
+ if (u[t] && (s = u[t](a, c, r, i)) != null) return s;
578
+ }
579
+ process.env.NODE_ENV !== "production" && b("No coordinate system that supports " + t + " found by the given finder.");
580
+ }
581
+ R = e, z = function(e, t) {
582
+ var n = e._chartsMap, r = e._scheduler;
583
+ t.eachSeries(function(e) {
584
+ r.updateStreamModes(e, n[e.__viewId]);
585
+ });
586
+ }, B = function(e, n) {
587
+ var r = this, i = this.getModel(), c = e.type, l = e.escapeConnect, u = J[c], f = (u.update || "update").split(":"), m = f.pop(), h = f[0] != null && Ie(f[0]);
588
+ this[M] = !0, K(this);
589
+ var g = [e], _ = !1;
590
+ e.batch && (_ = !0, g = p(e.batch, function(t) {
591
+ return t = a(s({}, t), e), t.batch = null, t;
592
+ }));
593
+ var v = [], y, b = [], x = u.nonRefinedEventType, ee = ke(e), S = Oe(e);
594
+ if (S && _e(this._api), o(g, function(t) {
595
+ var n = u.action(t, i, r._api);
596
+ if (u.refineEvent ? b.push(n) : y = n, y ||= s({}, t), y.type = x, v.push(y), S) {
597
+ var a = te(e), o = a.queryOptionMap, c = a.mainTypeSpecified ? o.keys()[0] : "series";
598
+ I(r, m, t, c), G(r);
599
+ } else ee ? (I(r, m, t, "series"), G(r)) : h && I(r, m, t, h.main, h.sub);
600
+ }), m !== "none" && !S && !ee && !h) try {
601
+ this[P] ? (F(this), L.update.call(this, e), this[P] = null) : L[m].call(this, e);
602
+ } catch (e) {
603
+ throw this[M] = !1, e;
604
+ }
605
+ if (y = _ ? {
606
+ type: x,
607
+ escapeConnect: l,
608
+ batch: v
609
+ } : v[0], this[M] = !1, !n) {
610
+ var C = void 0;
611
+ if (u.refineEvent) {
612
+ var w = u.refineEvent(b, e, i, this._api).eventContent;
613
+ t(d(w)), C = a({ type: u.refinedEventType }, w), C.fromAction = e.type, C.fromActionPayload = e, C.escapeConnect = !0;
614
+ }
615
+ var T = this._messageCenter;
616
+ T.trigger(y.type, y), C && T.trigger(C.type, C);
617
+ }
618
+ }, V = function(e) {
619
+ for (var t = this._pendingActions; t.length;) {
620
+ var n = t.shift();
621
+ B.call(this, n, e);
622
+ }
623
+ }, H = function(e) {
624
+ !e && this.trigger("updated");
625
+ }, Ut = function(e, t) {
626
+ e.on("rendered", function(n) {
627
+ t.trigger("rendered", n), e.animation.isFinished() && !t[P] && !t._scheduler.unfinished && !t._pendingActions.length ? t.trigger("finished") : e.refresh();
628
+ });
629
+ }, Wt = function(e, t) {
630
+ e.on("mouseover", function(e) {
631
+ var n = e.target, r = k(n, De);
632
+ r && (Ee(r, e, t._api), G(t));
633
+ }).on("mouseout", function(e) {
634
+ var n = e.target, r = k(n, De);
635
+ r && (Te(r, e, t._api), G(t));
636
+ }).on("click", function(e) {
637
+ var n = e.target, r = k(n, function(e) {
638
+ return E(e).dataIndex != null;
639
+ }, !0);
640
+ if (r) {
641
+ var i = r.selected ? "unselect" : "select", a = E(r);
642
+ t._api.dispatchAction({
643
+ type: i,
644
+ dataType: a.dataType,
645
+ dataIndexInside: a.dataIndex,
646
+ seriesIndex: a.seriesIndex,
647
+ isFromClick: !0
648
+ });
649
+ }
650
+ });
651
+ };
652
+ function n(e) {
653
+ e.clearColorPalette(), e.eachSeries(function(e) {
654
+ e.clearColorPalette();
655
+ });
656
+ }
657
+ function r(e) {
658
+ var t = [], n = [], r = !1;
659
+ if (e.eachComponent(function(e, i) {
660
+ var a = i.get("zlevel") || 0, o = i.get("z") || 0, s = i.getZLevelKey();
661
+ r ||= !!s, (e === "series" ? n : t).push({
662
+ zlevel: a,
663
+ z: o,
664
+ idx: i.componentIndex,
665
+ type: e,
666
+ key: s
667
+ });
668
+ }), r) {
669
+ var i = t.concat(n), a, s;
670
+ qe(i, function(e, t) {
671
+ return e.zlevel === t.zlevel ? e.z - t.z : e.zlevel - t.zlevel;
672
+ }), o(i, function(t) {
673
+ var n = e.getComponent(t.type, t.idx), r = t.zlevel, i = t.key;
674
+ a != null && (r = Math.max(a, r)), i ? (r === a && i !== s && r++, s = i) : s &&= (r === a && r++, ""), a = r, n.setZLevel(r);
675
+ });
676
+ }
677
+ }
678
+ U = function(e, t, n, i, a) {
679
+ r(t), Gt(e, t, n, i, a), o(e._chartsViews, function(e) {
680
+ e.__alive = !1;
681
+ }), W(e, t, n, i, a), o(e._chartsViews, function(e) {
682
+ e.__alive || e.remove(t, n);
683
+ });
684
+ }, Gt = function(e, t, n, r, i, a) {
685
+ o(a || e._componentsViews, function(e) {
686
+ var i = e.__model;
687
+ m(i, e), e.render(i, t, n, r), f(i, e), g(i, e);
688
+ });
689
+ }, W = function(e, t, n, r, i, a) {
690
+ var o = e._scheduler;
691
+ i = s(i || {}, { updatedSeries: t.getSeries() }), A.trigger("series:beforeupdate", t, n, i);
692
+ var c = !1;
693
+ t.eachSeries(function(t) {
694
+ var n = e._chartsMap[t.__viewId];
695
+ n.__alive = !0;
696
+ var i = n.renderTask;
697
+ o.updatePayload(i, r), m(t, n), a && a.get(t.uid) && i.dirty(), i.perform(o.getPerformArgs(i)) && (c = !0), n.group.silent = !!t.get("silent"), u(t, n), Fe(t);
698
+ }), o.unfinished = c || o.unfinished, A.trigger("series:layoutlabels", t, n, i), A.trigger("series:transition", t, n, i), t.eachSeries(function(t) {
699
+ var n = e._chartsMap[t.__viewId];
700
+ f(t, n), g(t, n);
701
+ }), l(e, t), A.trigger("series:afterupdate", t, n, i);
702
+ }, G = function(e) {
703
+ e[jt] = !0, e.getZr().wakeUp();
704
+ }, K = function(e) {
705
+ e[N] = (e[N] + 1) % 1e6;
706
+ }, Jt = function(e) {
707
+ e[jt] && (e.getZr().storage.traverse(function(e) {
708
+ D(e) || c(e);
709
+ }), e[jt] = !1);
710
+ };
711
+ function c(e) {
712
+ for (var t = [], n = e.currentStates, r = 0; r < n.length; r++) {
713
+ var i = n[r];
714
+ i === "emphasis" || i === "blur" || i === "select" || t.push(i);
715
+ }
716
+ e.selected && e.states.select && t.push("select"), e.hoverState === 2 && e.states.emphasis ? t.push("emphasis") : e.hoverState === 1 && e.states.blur && t.push("blur"), e.useStates(t);
717
+ }
718
+ function l(e, t) {
719
+ var n = e._zr;
720
+ if (n.painter.type === "canvas") {
721
+ var r = n.storage, i = 0;
722
+ r.traverse(function(e) {
723
+ e.isGroup || i++;
724
+ });
725
+ var a = i > h(t.get("hoverLayerThreshold"), Xe.hoverLayerThreshold) && !x.node && !x.worker;
726
+ (e._usingTHL || a) && (t.eachSeries(function(t) {
727
+ if (!t.preventUsingHoverLayer) {
728
+ var n = e._chartsMap[t.__viewId];
729
+ n.__alive && n.eachRendered(function(e) {
730
+ var t = e.states.emphasis;
731
+ t && t.hoverLayer !== 2 && (t.hoverLayer = +!!a);
732
+ });
733
+ }
734
+ }), e._usingTHL = a);
735
+ }
736
+ }
737
+ function u(e, t) {
738
+ var n = e.get("blendMode") || null;
739
+ t.eachRendered(function(e) {
740
+ e.isGroup || (e.style.blend = n);
741
+ });
742
+ }
743
+ function f(e, t) {
744
+ if (!e.preventAutoZ) {
745
+ var n = le(e);
746
+ t.eachRendered(function(e) {
747
+ return ue(e, n.z, n.zlevel), !0;
748
+ });
749
+ }
750
+ }
751
+ function m(e, t) {
752
+ t.eachRendered(function(e) {
753
+ if (!D(e)) {
754
+ var t = e.getTextContent(), n = e.getTextGuideLine();
755
+ e.stateTransition &&= null, t && t.stateTransition && (t.stateTransition = null), n && n.stateTransition && (n.stateTransition = null), e.hasState() ? (e.prevStates = e.currentStates, e.clearStates()) : e.prevStates &&= null;
756
+ }
757
+ });
758
+ }
759
+ function g(e, t) {
760
+ var n = e.getModel("stateAnimation"), r = e.isAnimationEnabled(), i = n.get("duration"), a = i > 0 ? {
761
+ duration: i,
762
+ delay: n.get("delay"),
763
+ easing: n.get("easing")
764
+ } : null;
765
+ t.eachRendered(function(e) {
766
+ if (e.states && e.states.emphasis) {
767
+ if (D(e)) return;
768
+ if (e instanceof oe && Ne(e), e.__dirty) {
769
+ var t = e.prevStates;
770
+ t && e.useStates(t);
771
+ }
772
+ if (r) {
773
+ e.stateTransition = a;
774
+ var n = e.getTextContent(), i = e.getTextGuideLine();
775
+ n && (n.stateTransition = a), i && (i.stateTransition = a);
776
+ }
777
+ e.__dirty && c(e);
778
+ }
779
+ });
780
+ }
781
+ Kt = function(e) {
782
+ return new (function(t) {
783
+ ie(n, t);
784
+ function n() {
785
+ return t !== null && t.apply(this, arguments) || this;
786
+ }
787
+ return n.prototype.getCoordinateSystems = function() {
788
+ return e._coordSysMgr.getCoordinateSystems();
789
+ }, n.prototype.getComponentByElement = function(t) {
790
+ for (; t;) {
791
+ var n = t.__ecComponentInfo;
792
+ if (n != null) return e._model.getComponent(n.mainType, n.index);
793
+ t = t.parent;
794
+ }
795
+ }, n.prototype.enterEmphasis = function(t, n) {
796
+ xe(t, n), G(e);
797
+ }, n.prototype.leaveEmphasis = function(t, n) {
798
+ je(t, n), G(e);
799
+ }, n.prototype.enterBlur = function(t) {
800
+ be(t), G(e);
801
+ }, n.prototype.leaveBlur = function(t) {
802
+ Ae(t), G(e);
803
+ }, n.prototype.enterSelect = function(t) {
804
+ Se(t), G(e);
805
+ }, n.prototype.leaveSelect = function(t) {
806
+ Me(t), G(e);
807
+ }, n.prototype.getModel = function() {
808
+ return e.getModel();
809
+ }, n.prototype.getViewOfComponentModel = function(t) {
810
+ return e.getViewOfComponentModel(t);
811
+ }, n.prototype.getViewOfSeriesModel = function(t) {
812
+ return e.getViewOfSeriesModel(t);
813
+ }, n.prototype.getECUpdateCycleVersion = function() {
814
+ return e[N];
815
+ }, n.prototype.usingTHL = function() {
816
+ return e._usingTHL;
817
+ }, n;
818
+ }(de))(e);
819
+ }, qt = function(e) {
820
+ function t(e, t) {
821
+ for (var n = 0; n < e.length; n++) {
822
+ var r = e[n];
823
+ r[Nt] = t;
824
+ }
825
+ }
826
+ o(Y, function(n, r) {
827
+ e._messageCenter.on(r, function(n) {
828
+ if (rn[e.group] && e[Nt] !== Pt) {
829
+ if (n && n.escapeConnect) return;
830
+ var r = e.makeActionFromEvent(n), i = [];
831
+ o(Z, function(t) {
832
+ t !== e && t.group === e.group && i.push(t);
833
+ }), t(i, Pt), o(i, function(e) {
834
+ e[Nt] !== Ft && e.dispatchAction(r);
835
+ }), t(i, It);
836
+ }
837
+ });
838
+ });
839
+ };
840
+ }(), l;
841
+ }(ae), Xt = Yt.prototype;
842
+ Xt.on = Lt("on"), Xt.off = Lt("off"), Xt.one = function(e, t, n) {
843
+ var r = this;
844
+ _("ECharts#one is deprecated.");
845
+ function i() {
846
+ var n = [...arguments];
847
+ t && t.apply && t.apply(this, n), r.off(e, i);
848
+ }
849
+ this.on.call(this, e, i, n);
850
+ };
851
+ var Zt = [
852
+ "click",
853
+ "dblclick",
854
+ "mouseover",
855
+ "mouseout",
856
+ "mousemove",
857
+ "mousedown",
858
+ "mouseup",
859
+ "globalout",
860
+ "contextmenu"
861
+ ];
862
+ function q(e) {
863
+ process.env.NODE_ENV !== "production" && b("Instance " + e + " has been disposed");
864
+ }
865
+ var J = {}, Y = {}, Qt = {}, $t = [], en = [], X = [], tn = {}, nn = {}, Z = {}, rn = {}, an = /* @__PURE__ */ new Date() - 0;
866
+ /* @__PURE__ */ new Date() - 0;
867
+ var on = "_echarts_instance_";
868
+ function sn(e, t, n) {
869
+ var r = !(n && n.ssr);
870
+ if (r) {
871
+ if (process.env.NODE_ENV !== "production" && !e) throw Error("Initialize failed: invalid dom.");
872
+ var i = cn(e);
873
+ if (i) return process.env.NODE_ENV !== "production" && b("There is a chart instance already initialized on the dom."), i;
874
+ process.env.NODE_ENV !== "production" && l(e) && e.nodeName.toUpperCase() !== "CANVAS" && (!e.clientWidth && (!n || n.width == null) || !e.clientHeight && (!n || n.height == null)) && b("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.");
875
+ }
876
+ var a = new Yt(e, t, n);
877
+ return a.id = "ec_" + an++, Z[a.id] = a, r && ne(e, on, a.id), qt(a), A.trigger("afterinit", a), a;
878
+ }
879
+ function cn(e) {
880
+ return Z[S(e, on)];
881
+ }
882
+ function ln(e, t) {
883
+ tn[e] = t;
884
+ }
885
+ function un(e) {
886
+ c(en, e) < 0 && en.push(e);
887
+ }
888
+ function dn(e, t) {
889
+ vn($t, e, t, yt);
890
+ }
891
+ function fn(e) {
892
+ mn("afterinit", e);
893
+ }
894
+ function pn(e) {
895
+ mn("afterupdate", e);
896
+ }
897
+ function mn(e, t) {
898
+ A.on(e, t);
899
+ }
900
+ function Q(e, n, r) {
901
+ var i, a, o, s, c;
902
+ u(n) && (r = n, n = ""), d(e) ? (i = e.type, a = e.event, s = e.update, c = e.publishNonRefinedEvent, r ||= e.action, o = e.refineEvent) : (i = e, a = n);
903
+ function l(e) {
904
+ return e.toLowerCase();
905
+ }
906
+ a = l(a || i);
907
+ var f = o ? l(i) : a;
908
+ J[i] || (t(Mt.test(i) && Mt.test(a)), o && t(a !== i), J[i] = {
909
+ actionType: i,
910
+ refinedEventType: a,
911
+ nonRefinedEventType: f,
912
+ update: s,
913
+ action: r,
914
+ refineEvent: o
915
+ }, Qt[a] = 1, o && c && (Qt[f] = 1), process.env.NODE_ENV !== "production" && Y[f] && y(f + " must not be shared; use \"refineEvent\" if you intend to share an event name."), Y[f] = i);
916
+ }
917
+ function hn(e, t) {
918
+ Be.register(e, t);
919
+ }
920
+ function gn(e, t) {
921
+ vn(X, e, t, xt, "layout", !0);
922
+ }
923
+ function $(e, t) {
924
+ vn(X, e, t, wt, "visual", !0);
925
+ }
926
+ var _n = [];
927
+ function vn(e, n, r, i, a, s) {
928
+ if ((u(n) || d(n)) && (r = n, n = i), process.env.NODE_ENV !== "production") {
929
+ if (isNaN(n) || n == null) throw Error("Illegal priority");
930
+ o(e, function(e) {
931
+ t(e.__raw !== r);
932
+ });
933
+ }
934
+ if (!(c(_n, r) >= 0)) {
935
+ _n.push(r);
936
+ var l = at.wrapStageHandler(r, a);
937
+ l.__prio = n, l.__raw = r, e.push(l), process.env.NODE_ENV !== "production" && s && t(!l.dirtyOnOverallProgress, "dirtyOnOverallProgress is not allowed in " + a + " stage; otherwise progressive rendering is disabled on all series.");
938
+ }
939
+ }
940
+ function yn(e, t) {
941
+ nn[e] = t;
942
+ }
943
+ function bn(e, t, n) {
944
+ var r = ft("registerMap");
945
+ r && r(e, t, n);
946
+ }
947
+ var xn = Ve;
948
+ $(Ct, rt), $(j, nt), $(j, tt), $(Ct, lt), $(j, ct), $(kt, pt), un($e), dn(gt, et), yn("default", it), Q({
949
+ type: fe,
950
+ event: fe,
951
+ update: fe
952
+ }, m), Q({
953
+ type: O,
954
+ event: O,
955
+ update: O
956
+ }, m), Q({
957
+ type: pe,
958
+ event: me,
959
+ update: pe,
960
+ action: m,
961
+ refineEvent: Sn,
962
+ publishNonRefinedEvent: !0
963
+ }), Q({
964
+ type: ge,
965
+ event: me,
966
+ update: ge,
967
+ action: m,
968
+ refineEvent: Sn,
969
+ publishNonRefinedEvent: !0
970
+ }), Q({
971
+ type: he,
972
+ event: me,
973
+ update: he,
974
+ action: m,
975
+ refineEvent: Sn,
976
+ publishNonRefinedEvent: !0
977
+ });
978
+ function Sn(e, t, n, r) {
979
+ return { eventContent: {
980
+ selected: we(n),
981
+ isFromClick: t.isFromClick || !1
982
+ } };
983
+ }
984
+ ln("default", {}), ln("dark", ot);
985
+ //#endregion
986
+ export { At as PRIORITY, sn as init, Q as registerAction, hn as registerCoordinateSystem, gn as registerLayout, yn as registerLoading, bn as registerMap, fn as registerPostInit, pn as registerPostUpdate, un as registerPreprocessor, dn as registerProcessor, xn as registerTransform, mn as registerUpdateLifecycle, $ as registerVisual };