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,65 @@
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import t from "./Animator.js";
3
+ import n from "../core/Eventful.js";
4
+ import r from "./requestAnimationFrame.js";
5
+ //#region node_modules/zrender/lib/animation/Animation.js
6
+ function i() {
7
+ return (/* @__PURE__ */ new Date()).getTime();
8
+ }
9
+ var a = function(n) {
10
+ e(a, n);
11
+ function a(e) {
12
+ var t = n.call(this) || this;
13
+ return t._running = !1, t._time = 0, t._pausedTime = 0, t._pauseStart = 0, t._paused = !1, e ||= {}, t.stage = e.stage || {}, t;
14
+ }
15
+ return a.prototype.addClip = function(e) {
16
+ e.animation && this.removeClip(e), this._head ? (this._tail.next = e, e.prev = this._tail, e.next = null, this._tail = e) : this._head = this._tail = e, e.animation = this;
17
+ }, a.prototype.addAnimator = function(e) {
18
+ e.animation = this;
19
+ var t = e.getClip();
20
+ t && this.addClip(t);
21
+ }, a.prototype.removeClip = function(e) {
22
+ if (e.animation) {
23
+ var t = e.prev, n = e.next;
24
+ t ? t.next = n : this._head = n, n ? n.prev = t : this._tail = t, e.next = e.prev = e.animation = null;
25
+ }
26
+ }, a.prototype.removeAnimator = function(e) {
27
+ var t = e.getClip();
28
+ t && this.removeClip(t), e.animation = null;
29
+ }, a.prototype.update = function(e) {
30
+ for (var t = i() - this._pausedTime, n = t - this._time, r = this._head; r;) {
31
+ var a = r.next;
32
+ r.step(t, n) ? (r.ondestroy(), this.removeClip(r), r = a) : r = a;
33
+ }
34
+ this._time = t, e || (this.trigger("frame", n), this.stage.update && this.stage.update());
35
+ }, a.prototype._startLoop = function() {
36
+ var e = this;
37
+ this._running = !0;
38
+ function t() {
39
+ e._running && (r(t), !e._paused && e.update());
40
+ }
41
+ r(t);
42
+ }, a.prototype.start = function() {
43
+ this._running || (this._time = i(), this._pausedTime = 0, this._startLoop());
44
+ }, a.prototype.stop = function() {
45
+ this._running = !1;
46
+ }, a.prototype.pause = function() {
47
+ this._paused ||= (this._pauseStart = i(), !0);
48
+ }, a.prototype.resume = function() {
49
+ this._paused &&= (this._pausedTime += i() - this._pauseStart, !1);
50
+ }, a.prototype.clear = function() {
51
+ for (var e = this._head; e;) {
52
+ var t = e.next;
53
+ e.prev = e.next = e.animation = null, e = t;
54
+ }
55
+ this._head = this._tail = null;
56
+ }, a.prototype.isFinished = function() {
57
+ return this._head == null;
58
+ }, a.prototype.animate = function(e, n) {
59
+ n ||= {}, this.start();
60
+ var r = new t(e, n.loop);
61
+ return this.addAnimator(r), r;
62
+ }, a;
63
+ }(n);
64
+ //#endregion
65
+ export { a as default, i as getTime };
@@ -0,0 +1,348 @@
1
+ import { eqNaN as e, extend as t, isArrayLike as n, isFunction as r, isGradientObject as i, isNumber as a, isString as o, keys as s, logError as c, map as l } from "../core/util.js";
2
+ import u from "./easing.js";
3
+ import { createCubicEasingFunc as d } from "./cubicEasing.js";
4
+ import f from "./Clip.js";
5
+ import { parse as p } from "../tool/color.js";
6
+ import { isLinearGradient as m, isRadialGradient as h } from "../svg/helper.js";
7
+ //#region node_modules/zrender/lib/animation/Animator.js
8
+ var g = Array.prototype.slice;
9
+ function _(e, t, n) {
10
+ return (t - e) * n + e;
11
+ }
12
+ function v(e, t, n, r) {
13
+ for (var i = t.length, a = 0; a < i; a++) e[a] = _(t[a], n[a], r);
14
+ return e;
15
+ }
16
+ function y(e, t, n, r) {
17
+ for (var i = t.length, a = i && t[0].length, o = 0; o < i; o++) {
18
+ e[o] || (e[o] = []);
19
+ for (var s = 0; s < a; s++) e[o][s] = _(t[o][s], n[o][s], r);
20
+ }
21
+ return e;
22
+ }
23
+ function b(e, t, n, r) {
24
+ for (var i = t.length, a = 0; a < i; a++) e[a] = t[a] + n[a] * r;
25
+ return e;
26
+ }
27
+ function x(e, t, n, r) {
28
+ for (var i = t.length, a = i && t[0].length, o = 0; o < i; o++) {
29
+ e[o] || (e[o] = []);
30
+ for (var s = 0; s < a; s++) e[o][s] = t[o][s] + n[o][s] * r;
31
+ }
32
+ return e;
33
+ }
34
+ function S(e, t) {
35
+ for (var n = e.length, r = t.length, i = n > r ? t : e, a = Math.min(n, r), o = i[a - 1] || {
36
+ color: [
37
+ 0,
38
+ 0,
39
+ 0,
40
+ 0
41
+ ],
42
+ offset: 0
43
+ }, s = a; s < Math.max(n, r); s++) i.push({
44
+ offset: o.offset,
45
+ color: o.color.slice()
46
+ });
47
+ }
48
+ function C(e, t, n) {
49
+ var r = e, i = t;
50
+ if (!(!r.push || !i.push)) {
51
+ var a = r.length, o = i.length;
52
+ if (a !== o) if (a > o) r.length = o;
53
+ else for (var s = a; s < o; s++) r.push(n === 1 ? i[s] : g.call(i[s]));
54
+ for (var c = r[0] && r[0].length, s = 0; s < r.length; s++) if (n === 1) isNaN(r[s]) && (r[s] = i[s]);
55
+ else for (var l = 0; l < c; l++) isNaN(r[s][l]) && (r[s][l] = i[s][l]);
56
+ }
57
+ }
58
+ function w(e) {
59
+ if (n(e)) {
60
+ var t = e.length;
61
+ if (n(e[0])) {
62
+ for (var r = [], i = 0; i < t; i++) r.push(g.call(e[i]));
63
+ return r;
64
+ }
65
+ return g.call(e);
66
+ }
67
+ return e;
68
+ }
69
+ function T(e) {
70
+ return e[0] = Math.floor(e[0]) || 0, e[1] = Math.floor(e[1]) || 0, e[2] = Math.floor(e[2]) || 0, e[3] = e[3] == null ? 1 : e[3], "rgba(" + e.join(",") + ")";
71
+ }
72
+ function E(e) {
73
+ return n(e && e[0]) ? 2 : 1;
74
+ }
75
+ var D = 0, O = 1, k = 2, A = 3, j = 4, M = 5, N = 6;
76
+ function P(e) {
77
+ return e === j || e === M;
78
+ }
79
+ function F(e) {
80
+ return e === O || e === k;
81
+ }
82
+ var I = [
83
+ 0,
84
+ 0,
85
+ 0,
86
+ 0
87
+ ], L = function() {
88
+ function s(e) {
89
+ this.keyframes = [], this.discrete = !1, this._invalid = !1, this._needsSort = !1, this._lastFr = 0, this._lastFrP = 0, this.propName = e;
90
+ }
91
+ return s.prototype.isFinished = function() {
92
+ return this._finished;
93
+ }, s.prototype.setFinished = function() {
94
+ this._finished = !0, this._additiveTrack && this._additiveTrack.setFinished();
95
+ }, s.prototype.needsAnimate = function() {
96
+ return this.keyframes.length >= 1;
97
+ }, s.prototype.getAdditiveTrack = function() {
98
+ return this._additiveTrack;
99
+ }, s.prototype.addKeyframe = function(s, c, f) {
100
+ this._needsSort = !0;
101
+ var g = this.keyframes, _ = g.length, v = !1, y = N, b = c;
102
+ if (n(c)) {
103
+ var x = E(c);
104
+ y = x, (x === 1 && !a(c[0]) || x === 2 && !a(c[0][0])) && (v = !0);
105
+ } else if (a(c) && !e(c)) y = D;
106
+ else if (o(c)) if (!isNaN(+c)) y = D;
107
+ else {
108
+ var S = p(c);
109
+ S && (b = S, y = A);
110
+ }
111
+ else if (i(c)) {
112
+ var C = t({}, b);
113
+ C.colorStops = l(c.colorStops, function(e) {
114
+ return {
115
+ offset: e.offset,
116
+ color: p(e.color)
117
+ };
118
+ }), m(c) ? y = j : h(c) && (y = M), b = C;
119
+ }
120
+ _ === 0 ? this.valType = y : (y !== this.valType || y === N) && (v = !0), this.discrete = this.discrete || v;
121
+ var w = {
122
+ time: s,
123
+ value: b,
124
+ rawValue: c,
125
+ percent: 0
126
+ };
127
+ return f && (w.easing = f, w.easingFunc = r(f) ? f : u[f] || d(f)), g.push(w), w;
128
+ }, s.prototype.prepare = function(e, t) {
129
+ var n = this.keyframes;
130
+ this._needsSort && n.sort(function(e, t) {
131
+ return e.time - t.time;
132
+ });
133
+ for (var r = this.valType, i = n.length, a = n[i - 1], o = this.discrete, s = F(r), c = P(r), l = 0; l < i; l++) {
134
+ var u = n[l], d = u.value, f = a.value;
135
+ u.percent = u.time / e, o || (s && l !== i - 1 ? C(d, f, r) : c && S(d.colorStops, f.colorStops));
136
+ }
137
+ if (!o && r !== M && t && this.needsAnimate() && t.needsAnimate() && r === t.valType && !t._finished) {
138
+ this._additiveTrack = t;
139
+ for (var p = n[0].value, l = 0; l < i; l++) r === D ? n[l].additiveValue = n[l].value - p : r === A ? n[l].additiveValue = b([], n[l].value, p, -1) : F(r) && (n[l].additiveValue = r === O ? b([], n[l].value, p, -1) : x([], n[l].value, p, -1));
140
+ }
141
+ }, s.prototype.step = function(e, t) {
142
+ if (!this._finished) {
143
+ this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null);
144
+ var n = this._additiveTrack != null, r = n ? "additiveValue" : "value", i = this.valType, a = this.keyframes, o = a.length, s = this.propName, c = i === A, u, d = this._lastFr, f = Math.min, p, m;
145
+ if (o === 1) p = m = a[0];
146
+ else {
147
+ if (t < 0) u = 0;
148
+ else if (t < this._lastFrP) {
149
+ for (u = f(d + 1, o - 1); u >= 0 && !(a[u].percent <= t); u--);
150
+ u = f(u, o - 2);
151
+ } else {
152
+ for (u = d; u < o && !(a[u].percent > t); u++);
153
+ u = f(u - 1, o - 2);
154
+ }
155
+ m = a[u + 1], p = a[u];
156
+ }
157
+ if (p && m) {
158
+ this._lastFr = u, this._lastFrP = t;
159
+ var h = m.percent - p.percent, g = h === 0 ? 1 : f((t - p.percent) / h, 1);
160
+ m.easingFunc && (g = m.easingFunc(g));
161
+ var b = n ? this._additiveValue : c ? I : e[s];
162
+ if ((F(i) || c) && !b && (b = this._additiveValue = []), this.discrete) e[s] = g < 1 ? p.rawValue : m.rawValue;
163
+ else if (F(i)) i === O ? v(b, p[r], m[r], g) : y(b, p[r], m[r], g);
164
+ else if (P(i)) {
165
+ var x = p[r], S = m[r], C = i === j;
166
+ e[s] = {
167
+ type: C ? "linear" : "radial",
168
+ x: _(x.x, S.x, g),
169
+ y: _(x.y, S.y, g),
170
+ colorStops: l(x.colorStops, function(e, t) {
171
+ var n = S.colorStops[t];
172
+ return {
173
+ offset: _(e.offset, n.offset, g),
174
+ color: T(v([], e.color, n.color, g))
175
+ };
176
+ }),
177
+ global: S.global
178
+ }, C ? (e[s].x2 = _(x.x2, S.x2, g), e[s].y2 = _(x.y2, S.y2, g)) : e[s].r = _(x.r, S.r, g);
179
+ } else if (c) v(b, p[r], m[r], g), n || (e[s] = T(b));
180
+ else {
181
+ var w = _(p[r], m[r], g);
182
+ n ? this._additiveValue = w : e[s] = w;
183
+ }
184
+ n && this._addToTarget(e);
185
+ }
186
+ }
187
+ }, s.prototype._addToTarget = function(e) {
188
+ var t = this.valType, n = this.propName, r = this._additiveValue;
189
+ t === D ? e[n] = e[n] + r : t === A ? (p(e[n], I), b(I, I, r, 1), e[n] = T(I)) : t === O ? b(e[n], e[n], r, 1) : t === k && x(e[n], e[n], r, 1);
190
+ }, s;
191
+ }(), R = function() {
192
+ function e(e, t, n, r) {
193
+ if (this._tracks = {}, this._trackKeys = [], this._maxTime = 0, this._started = 0, this._clip = null, this._target = e, this._loop = t, t && r) {
194
+ c("Can' use additive animation on looped animation.");
195
+ return;
196
+ }
197
+ this._additiveAnimators = r, this._allowDiscrete = n;
198
+ }
199
+ return e.prototype.getMaxTime = function() {
200
+ return this._maxTime;
201
+ }, e.prototype.getDelay = function() {
202
+ return this._delay;
203
+ }, e.prototype.getLoop = function() {
204
+ return this._loop;
205
+ }, e.prototype.getTarget = function() {
206
+ return this._target;
207
+ }, e.prototype.changeTarget = function(e) {
208
+ this._target = e;
209
+ }, e.prototype.when = function(e, t, n) {
210
+ return this.whenWithKeys(e, t, s(t), n);
211
+ }, e.prototype.whenWithKeys = function(e, t, n, r) {
212
+ for (var i = this._tracks, a = 0; a < n.length; a++) {
213
+ var o = n[a], s = i[o];
214
+ if (!s) {
215
+ s = i[o] = new L(o);
216
+ var c = void 0, l = this._getAdditiveTrack(o);
217
+ if (l) {
218
+ var u = l.keyframes, d = u[u.length - 1];
219
+ c = d && d.value, l.valType === A && c && (c = T(c));
220
+ } else c = this._target[o];
221
+ if (c == null) continue;
222
+ e > 0 && s.addKeyframe(0, w(c), r), this._trackKeys.push(o);
223
+ }
224
+ s.addKeyframe(e, w(t[o]), r);
225
+ }
226
+ return this._maxTime = Math.max(this._maxTime, e), this;
227
+ }, e.prototype.pause = function() {
228
+ this._clip.pause(), this._paused = !0;
229
+ }, e.prototype.resume = function() {
230
+ this._clip.resume(), this._paused = !1;
231
+ }, e.prototype.isPaused = function() {
232
+ return !!this._paused;
233
+ }, e.prototype.duration = function(e) {
234
+ return this._maxTime = e, this._force = !0, this;
235
+ }, e.prototype._doneCallback = function() {
236
+ this._setTracksFinished(), this._clip = null;
237
+ var e = this._doneCbs;
238
+ if (e) for (var t = e.length, n = 0; n < t; n++) e[n].call(this);
239
+ }, e.prototype._abortedCallback = function() {
240
+ this._setTracksFinished();
241
+ var e = this.animation, t = this._abortedCbs;
242
+ if (e && e.removeClip(this._clip), this._clip = null, t) for (var n = 0; n < t.length; n++) t[n].call(this);
243
+ }, e.prototype._setTracksFinished = function() {
244
+ for (var e = this._tracks, t = this._trackKeys, n = 0; n < t.length; n++) e[t[n]].setFinished();
245
+ }, e.prototype._getAdditiveTrack = function(e) {
246
+ var t, n = this._additiveAnimators;
247
+ if (n) for (var r = 0; r < n.length; r++) {
248
+ var i = n[r].getTrack(e);
249
+ i && (t = i);
250
+ }
251
+ return t;
252
+ }, e.prototype.start = function(e) {
253
+ if (!(this._started > 0)) {
254
+ this._started = 1;
255
+ for (var t = this, n = [], r = this._maxTime || 0, i = 0; i < this._trackKeys.length; i++) {
256
+ var a = this._trackKeys[i], o = this._tracks[a], s = this._getAdditiveTrack(a), c = o.keyframes, l = c.length;
257
+ if (o.prepare(r, s), o.needsAnimate()) if (!this._allowDiscrete && o.discrete) {
258
+ var u = c[l - 1];
259
+ u && (t._target[o.propName] = u.rawValue), o.setFinished();
260
+ } else n.push(o);
261
+ }
262
+ if (n.length || this._force) {
263
+ var d = new f({
264
+ life: r,
265
+ loop: this._loop,
266
+ delay: this._delay || 0,
267
+ onframe: function(e) {
268
+ t._started = 2;
269
+ var r = t._additiveAnimators;
270
+ if (r) {
271
+ for (var i = !1, a = 0; a < r.length; a++) if (r[a]._clip) {
272
+ i = !0;
273
+ break;
274
+ }
275
+ i || (t._additiveAnimators = null);
276
+ }
277
+ for (var a = 0; a < n.length; a++) n[a].step(t._target, e);
278
+ var o = t._onframeCbs;
279
+ if (o) for (var a = 0; a < o.length; a++) o[a](t._target, e);
280
+ },
281
+ ondestroy: function() {
282
+ t._doneCallback();
283
+ }
284
+ });
285
+ this._clip = d, this.animation && this.animation.addClip(d), e && d.setEasing(e);
286
+ } else this._doneCallback();
287
+ return this;
288
+ }
289
+ }, e.prototype.stop = function(e) {
290
+ if (this._clip) {
291
+ var t = this._clip;
292
+ e && t.onframe(1), this._abortedCallback();
293
+ }
294
+ }, e.prototype.delay = function(e) {
295
+ return this._delay = e, this;
296
+ }, e.prototype.during = function(e) {
297
+ return e && (this._onframeCbs ||= [], this._onframeCbs.push(e)), this;
298
+ }, e.prototype.done = function(e) {
299
+ return e && (this._doneCbs ||= [], this._doneCbs.push(e)), this;
300
+ }, e.prototype.aborted = function(e) {
301
+ return e && (this._abortedCbs ||= [], this._abortedCbs.push(e)), this;
302
+ }, e.prototype.getClip = function() {
303
+ return this._clip;
304
+ }, e.prototype.getTrack = function(e) {
305
+ return this._tracks[e];
306
+ }, e.prototype.getTracks = function() {
307
+ var e = this;
308
+ return l(this._trackKeys, function(t) {
309
+ return e._tracks[t];
310
+ });
311
+ }, e.prototype.stopTracks = function(e, t) {
312
+ if (!e.length || !this._clip) return !0;
313
+ for (var n = this._tracks, r = this._trackKeys, i = 0; i < e.length; i++) {
314
+ var a = n[e[i]];
315
+ a && !a.isFinished() && (t ? a.step(this._target, 1) : this._started === 1 && a.step(this._target, 0), a.setFinished());
316
+ }
317
+ for (var o = !0, i = 0; i < r.length; i++) if (!n[r[i]].isFinished()) {
318
+ o = !1;
319
+ break;
320
+ }
321
+ return o && this._abortedCallback(), o;
322
+ }, e.prototype.saveTo = function(e, t, n) {
323
+ if (e) {
324
+ t ||= this._trackKeys;
325
+ for (var r = 0; r < t.length; r++) {
326
+ var i = t[r], a = this._tracks[i];
327
+ if (!(!a || a.isFinished())) {
328
+ var o = a.keyframes, s = o[n ? 0 : o.length - 1];
329
+ s && (e[i] = w(s.rawValue));
330
+ }
331
+ }
332
+ }
333
+ }, e.prototype.__changeFinalValue = function(e, t) {
334
+ t ||= s(e);
335
+ for (var n = 0; n < t.length; n++) {
336
+ var r = t[n], i = this._tracks[r];
337
+ if (i) {
338
+ var a = i.keyframes;
339
+ if (a.length > 1) {
340
+ var o = a.pop();
341
+ i.addKeyframe(o.time, e[r]), i.prepare(this._maxTime, i.getAdditiveTrack());
342
+ }
343
+ }
344
+ }
345
+ }, e;
346
+ }();
347
+ //#endregion
348
+ export { w as cloneValue, R as default };
@@ -0,0 +1,31 @@
1
+ import { isFunction as e, noop as t } from "../core/util.js";
2
+ import n from "./easing.js";
3
+ import { createCubicEasingFunc as r } from "./cubicEasing.js";
4
+ //#region node_modules/zrender/lib/animation/Clip.js
5
+ var i = function() {
6
+ function i(e) {
7
+ this._inited = !1, this._startTime = 0, this._pausedTime = 0, this._paused = !1, this._life = e.life || 1e3, this._delay = e.delay || 0, this.loop = e.loop || !1, this.onframe = e.onframe || t, this.ondestroy = e.ondestroy || t, this.onrestart = e.onrestart || t, e.easing && this.setEasing(e.easing);
8
+ }
9
+ return i.prototype.step = function(e, t) {
10
+ if (this._inited ||= (this._startTime = e + this._delay, !0), this._paused) {
11
+ this._pausedTime += t;
12
+ return;
13
+ }
14
+ var n = this._life, r = e - this._startTime - this._pausedTime, i = r / n;
15
+ i < 0 && (i = 0), i = Math.min(i, 1);
16
+ var a = this.easingFunc, o = a ? a(i) : i;
17
+ if (this.onframe(o), i === 1) if (this.loop) {
18
+ var s = r % n;
19
+ this._startTime = e - s, this._pausedTime = 0, this.onrestart();
20
+ } else return !0;
21
+ return !1;
22
+ }, i.prototype.pause = function() {
23
+ this._paused = !0;
24
+ }, i.prototype.resume = function() {
25
+ this._paused = !1;
26
+ }, i.prototype.setEasing = function(t) {
27
+ this.easing = t, this.easingFunc = e(t) ? t : n[t] || r(t);
28
+ }, i;
29
+ }();
30
+ //#endregion
31
+ export { i as default };
@@ -0,0 +1,17 @@
1
+ import { trim as e } from "../core/util.js";
2
+ import { cubicAt as t, cubicRootAt as n } from "../core/curve.js";
3
+ //#region node_modules/zrender/lib/animation/cubicEasing.js
4
+ var r = /cubic-bezier\(([0-9,\.e ]+)\)/;
5
+ function i(i) {
6
+ var a = i && r.exec(i);
7
+ if (a) {
8
+ var o = a[1].split(","), s = +e(o[0]), c = +e(o[1]), l = +e(o[2]), u = +e(o[3]);
9
+ if (isNaN(s + c + l + u)) return;
10
+ var d = [];
11
+ return function(e) {
12
+ return e <= 0 ? 0 : e >= 1 ? 1 : n(0, s, l, 1, e, d) && t(0, c, u, 1, d[0]);
13
+ };
14
+ }
15
+ }
16
+ //#endregion
17
+ export { i as createCubicEasingFunc };
@@ -0,0 +1,104 @@
1
+ //#region node_modules/zrender/lib/animation/easing.js
2
+ var e = {
3
+ linear: function(e) {
4
+ return e;
5
+ },
6
+ quadraticIn: function(e) {
7
+ return e * e;
8
+ },
9
+ quadraticOut: function(e) {
10
+ return e * (2 - e);
11
+ },
12
+ quadraticInOut: function(e) {
13
+ return (e *= 2) < 1 ? .5 * e * e : -.5 * (--e * (e - 2) - 1);
14
+ },
15
+ cubicIn: function(e) {
16
+ return e * e * e;
17
+ },
18
+ cubicOut: function(e) {
19
+ return --e * e * e + 1;
20
+ },
21
+ cubicInOut: function(e) {
22
+ return (e *= 2) < 1 ? .5 * e * e * e : .5 * ((e -= 2) * e * e + 2);
23
+ },
24
+ quarticIn: function(e) {
25
+ return e * e * e * e;
26
+ },
27
+ quarticOut: function(e) {
28
+ return 1 - --e * e * e * e;
29
+ },
30
+ quarticInOut: function(e) {
31
+ return (e *= 2) < 1 ? .5 * e * e * e * e : -.5 * ((e -= 2) * e * e * e - 2);
32
+ },
33
+ quinticIn: function(e) {
34
+ return e * e * e * e * e;
35
+ },
36
+ quinticOut: function(e) {
37
+ return --e * e * e * e * e + 1;
38
+ },
39
+ quinticInOut: function(e) {
40
+ return (e *= 2) < 1 ? .5 * e * e * e * e * e : .5 * ((e -= 2) * e * e * e * e + 2);
41
+ },
42
+ sinusoidalIn: function(e) {
43
+ return 1 - Math.cos(e * Math.PI / 2);
44
+ },
45
+ sinusoidalOut: function(e) {
46
+ return Math.sin(e * Math.PI / 2);
47
+ },
48
+ sinusoidalInOut: function(e) {
49
+ return .5 * (1 - Math.cos(Math.PI * e));
50
+ },
51
+ exponentialIn: function(e) {
52
+ return e === 0 ? 0 : 1024 ** (e - 1);
53
+ },
54
+ exponentialOut: function(e) {
55
+ return e === 1 ? 1 : 1 - 2 ** (-10 * e);
56
+ },
57
+ exponentialInOut: function(e) {
58
+ return e === 0 ? 0 : e === 1 ? 1 : (e *= 2) < 1 ? .5 * 1024 ** (e - 1) : .5 * (-(2 ** (-10 * (e - 1))) + 2);
59
+ },
60
+ circularIn: function(e) {
61
+ return 1 - Math.sqrt(1 - e * e);
62
+ },
63
+ circularOut: function(e) {
64
+ return Math.sqrt(1 - --e * e);
65
+ },
66
+ circularInOut: function(e) {
67
+ return (e *= 2) < 1 ? -.5 * (Math.sqrt(1 - e * e) - 1) : .5 * (Math.sqrt(1 - (e -= 2) * e) + 1);
68
+ },
69
+ elasticIn: function(e) {
70
+ var t, n = .1, r = .4;
71
+ return e === 0 ? 0 : e === 1 ? 1 : (!n || n < 1 ? (n = 1, t = r / 4) : t = r * Math.asin(1 / n) / (2 * Math.PI), -(n * 2 ** (10 * --e) * Math.sin((e - t) * (2 * Math.PI) / r)));
72
+ },
73
+ elasticOut: function(e) {
74
+ var t, n = .1, r = .4;
75
+ return e === 0 ? 0 : e === 1 ? 1 : (!n || n < 1 ? (n = 1, t = r / 4) : t = r * Math.asin(1 / n) / (2 * Math.PI), n * 2 ** (-10 * e) * Math.sin((e - t) * (2 * Math.PI) / r) + 1);
76
+ },
77
+ elasticInOut: function(e) {
78
+ var t, n = .1, r = .4;
79
+ return e === 0 ? 0 : e === 1 ? 1 : (!n || n < 1 ? (n = 1, t = r / 4) : t = r * Math.asin(1 / n) / (2 * Math.PI), (e *= 2) < 1 ? -.5 * (n * 2 ** (10 * --e) * Math.sin((e - t) * (2 * Math.PI) / r)) : n * 2 ** (-10 * --e) * Math.sin((e - t) * (2 * Math.PI) / r) * .5 + 1);
80
+ },
81
+ backIn: function(e) {
82
+ var t = 1.70158;
83
+ return e * e * ((t + 1) * e - t);
84
+ },
85
+ backOut: function(e) {
86
+ var t = 1.70158;
87
+ return --e * e * ((t + 1) * e + t) + 1;
88
+ },
89
+ backInOut: function(e) {
90
+ var t = 1.70158 * 1.525;
91
+ return (e *= 2) < 1 ? .5 * (e * e * ((t + 1) * e - t)) : .5 * ((e -= 2) * e * ((t + 1) * e + t) + 2);
92
+ },
93
+ bounceIn: function(t) {
94
+ return 1 - e.bounceOut(1 - t);
95
+ },
96
+ bounceOut: function(e) {
97
+ return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + .75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + .9375 : 7.5625 * (e -= 2.625 / 2.75) * e + .984375;
98
+ },
99
+ bounceInOut: function(t) {
100
+ return t < .5 ? e.bounceIn(t * 2) * .5 : e.bounceOut(t * 2 - 1) * .5 + .5;
101
+ }
102
+ };
103
+ //#endregion
104
+ export { e as default };
@@ -0,0 +1,7 @@
1
+ import e from "../core/env.js";
2
+ //#region node_modules/zrender/lib/animation/requestAnimationFrame.js
3
+ var t = e.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(e) {
4
+ return setTimeout(e, 16);
5
+ };
6
+ //#endregion
7
+ export { t as default };