@antv/g 3.5.0-beta.6 → 5.0.4

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 (748) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -546
  3. package/dist/index.umd.js +15 -0
  4. package/es/AbstractRenderer.d.ts +26 -0
  5. package/es/AbstractRenderer.js +42 -0
  6. package/es/Canvas.d.ts +98 -0
  7. package/es/Canvas.js +406 -0
  8. package/es/DisplayObjectPool.d.ts +7 -0
  9. package/es/DisplayObjectPool.js +27 -0
  10. package/es/camera/Camera.d.ts +279 -0
  11. package/es/camera/Camera.js +973 -0
  12. package/es/camera/Landmark.d.ts +28 -0
  13. package/es/camera/Landmark.js +68 -0
  14. package/es/camera/index.d.ts +2 -0
  15. package/es/camera/index.js +2 -0
  16. package/es/canvas-module.d.ts +1 -0
  17. package/es/canvas-module.js +33 -0
  18. package/es/components/Cullable.d.ts +14 -0
  19. package/es/components/Cullable.js +28 -0
  20. package/es/components/Geometry.d.ts +12 -0
  21. package/es/components/Geometry.js +10 -0
  22. package/es/components/Renderable.d.ts +24 -0
  23. package/es/components/Renderable.js +18 -0
  24. package/es/components/Sortable.d.ts +16 -0
  25. package/es/components/Sortable.js +15 -0
  26. package/es/components/Transform.d.ts +29 -0
  27. package/es/components/Transform.js +65 -0
  28. package/es/components/index.d.ts +5 -0
  29. package/es/components/index.js +5 -0
  30. package/es/display-objects/Circle.d.ts +12 -0
  31. package/es/display-objects/Circle.js +26 -0
  32. package/es/display-objects/CustomElement.d.ts +21 -0
  33. package/es/display-objects/CustomElement.js +89 -0
  34. package/es/display-objects/DisplayObject.d.ts +259 -0
  35. package/es/display-objects/DisplayObject.js +855 -0
  36. package/es/display-objects/Ellipse.d.ts +14 -0
  37. package/es/display-objects/Ellipse.js +27 -0
  38. package/es/display-objects/Group.d.ts +6 -0
  39. package/es/display-objects/Group.js +27 -0
  40. package/es/display-objects/HTML.d.ts +36 -0
  41. package/es/display-objects/HTML.js +93 -0
  42. package/es/display-objects/Image.d.ts +16 -0
  43. package/es/display-objects/Image.js +25 -0
  44. package/es/display-objects/Line.d.ts +23 -0
  45. package/es/display-objects/Line.js +56 -0
  46. package/es/display-objects/Path.d.ts +47 -0
  47. package/es/display-objects/Path.js +132 -0
  48. package/es/display-objects/Polygon.d.ts +12 -0
  49. package/es/display-objects/Polygon.js +25 -0
  50. package/es/display-objects/Polyline.d.ts +23 -0
  51. package/es/display-objects/Polyline.js +75 -0
  52. package/es/display-objects/Rect.d.ts +16 -0
  53. package/es/display-objects/Rect.js +26 -0
  54. package/es/display-objects/Text.d.ts +65 -0
  55. package/es/display-objects/Text.js +61 -0
  56. package/es/display-objects/index.d.ts +13 -0
  57. package/es/display-objects/index.js +13 -0
  58. package/es/dom/Animation.d.ts +132 -0
  59. package/es/dom/Animation.js +503 -0
  60. package/es/dom/AnimationEffectTiming.d.ts +58 -0
  61. package/es/dom/AnimationEffectTiming.js +68 -0
  62. package/es/dom/AnimationEvent.d.ts +11 -0
  63. package/es/dom/AnimationEvent.js +34 -0
  64. package/es/dom/AnimationTimeline.d.ts +37 -0
  65. package/es/dom/AnimationTimeline.js +218 -0
  66. package/es/dom/CustomElementRegistry.d.ts +15 -0
  67. package/es/dom/CustomElementRegistry.js +42 -0
  68. package/es/dom/CustomEvent.d.ts +16 -0
  69. package/es/dom/CustomEvent.js +35 -0
  70. package/es/dom/Document.d.ts +59 -0
  71. package/es/dom/Document.js +174 -0
  72. package/es/dom/Element.d.ts +149 -0
  73. package/es/dom/Element.js +494 -0
  74. package/es/dom/EventTarget.d.ts +40 -0
  75. package/es/dom/EventTarget.js +156 -0
  76. package/es/dom/FederatedEvent.d.ts +146 -0
  77. package/es/dom/FederatedEvent.js +232 -0
  78. package/es/dom/FederatedMouseEvent.d.ts +52 -0
  79. package/es/dom/FederatedMouseEvent.js +124 -0
  80. package/es/dom/FederatedPointerEvent.d.ts +69 -0
  81. package/es/dom/FederatedPointerEvent.js +53 -0
  82. package/es/dom/FederatedWheelEvent.d.ts +20 -0
  83. package/es/dom/FederatedWheelEvent.js +27 -0
  84. package/es/dom/KeyframeEffect.d.ts +47 -0
  85. package/es/dom/KeyframeEffect.js +174 -0
  86. package/es/dom/KeyframeList.d.ts +2 -0
  87. package/es/dom/KeyframeList.js +176 -0
  88. package/es/dom/Node.d.ts +106 -0
  89. package/es/dom/Node.js +220 -0
  90. package/es/dom/index.d.ts +17 -0
  91. package/es/dom/index.js +17 -0
  92. package/es/dom/interfaces.d.ts +324 -0
  93. package/es/dom/interfaces.js +32 -0
  94. package/es/global-module.d.ts +2 -0
  95. package/es/global-module.js +173 -0
  96. package/es/index.d.ts +15 -0
  97. package/es/index.js +18 -0
  98. package/es/plugins/CullingPlugin.d.ts +19 -0
  99. package/es/plugins/CullingPlugin.js +79 -0
  100. package/es/plugins/DirtyCheckPlugin.d.ts +10 -0
  101. package/es/plugins/DirtyCheckPlugin.js +52 -0
  102. package/es/plugins/EventPlugin.d.ts +27 -0
  103. package/es/plugins/EventPlugin.js +288 -0
  104. package/es/plugins/FrustumCullingStrategy.d.ts +20 -0
  105. package/es/plugins/FrustumCullingStrategy.js +98 -0
  106. package/es/plugins/PrepareRendererPlugin.d.ts +6 -0
  107. package/es/plugins/PrepareRendererPlugin.js +65 -0
  108. package/es/property-handlers/aabb.d.ts +2 -0
  109. package/es/property-handlers/aabb.js +132 -0
  110. package/es/property-handlers/anchor.d.ts +4 -0
  111. package/es/property-handlers/anchor.js +20 -0
  112. package/es/property-handlers/clipPath.d.ts +19 -0
  113. package/es/property-handlers/clipPath.js +36 -0
  114. package/es/property-handlers/color.d.ts +34 -0
  115. package/es/property-handlers/color.js +253 -0
  116. package/es/property-handlers/dimension.d.ts +18 -0
  117. package/es/property-handlers/dimension.js +123 -0
  118. package/es/property-handlers/filter.d.ts +8 -0
  119. package/es/property-handlers/filter.js +43 -0
  120. package/es/property-handlers/index.d.ts +18 -0
  121. package/es/property-handlers/index.js +18 -0
  122. package/es/property-handlers/interfaces.d.ts +20 -0
  123. package/es/property-handlers/interfaces.js +6 -0
  124. package/es/property-handlers/lineDash.d.ts +1 -0
  125. package/es/property-handlers/lineDash.js +8 -0
  126. package/es/property-handlers/localPosition.d.ts +2 -0
  127. package/es/property-handlers/localPosition.js +9 -0
  128. package/es/property-handlers/numeric.d.ts +5 -0
  129. package/es/property-handlers/numeric.js +34 -0
  130. package/es/property-handlers/offsetDistance.d.ts +5 -0
  131. package/es/property-handlers/offsetDistance.js +20 -0
  132. package/es/property-handlers/offsetPath.d.ts +5 -0
  133. package/es/property-handlers/offsetPath.js +18 -0
  134. package/es/property-handlers/origin.d.ts +11 -0
  135. package/es/property-handlers/origin.js +68 -0
  136. package/es/property-handlers/path.d.ts +4 -0
  137. package/es/property-handlers/path.js +200 -0
  138. package/es/property-handlers/points.d.ts +5 -0
  139. package/es/property-handlers/points.js +23 -0
  140. package/es/property-handlers/transform.d.ts +45 -0
  141. package/es/property-handlers/transform.js +411 -0
  142. package/es/property-handlers/zIndex.d.ts +2 -0
  143. package/es/property-handlers/zIndex.js +16 -0
  144. package/es/services/ContextService.d.ts +12 -0
  145. package/es/services/ContextService.js +5 -0
  146. package/es/services/EventService.d.ts +64 -0
  147. package/es/services/EventService.js +936 -0
  148. package/es/services/RenderingContext.d.ts +28 -0
  149. package/es/services/RenderingContext.js +13 -0
  150. package/es/services/RenderingService.d.ts +52 -0
  151. package/es/services/RenderingService.js +147 -0
  152. package/es/services/SceneGraphSelector.d.ts +20 -0
  153. package/es/services/SceneGraphSelector.js +65 -0
  154. package/es/services/SceneGraphService.d.ts +150 -0
  155. package/es/services/SceneGraphService.js +853 -0
  156. package/es/services/aabb/CircleUpdater.d.ts +10 -0
  157. package/es/services/aabb/CircleUpdater.js +35 -0
  158. package/es/services/aabb/EllipseUpdater.d.ts +10 -0
  159. package/es/services/aabb/EllipseUpdater.js +37 -0
  160. package/es/services/aabb/LineUpdater.d.ts +10 -0
  161. package/es/services/aabb/LineUpdater.js +39 -0
  162. package/es/services/aabb/PathUpdater.d.ts +10 -0
  163. package/es/services/aabb/PathUpdater.js +172 -0
  164. package/es/services/aabb/PolylineUpdater.d.ts +10 -0
  165. package/es/services/aabb/PolylineUpdater.js +48 -0
  166. package/es/services/aabb/RectUpdater.d.ts +10 -0
  167. package/es/services/aabb/RectUpdater.js +55 -0
  168. package/es/services/aabb/TextUpdater.d.ts +13 -0
  169. package/es/services/aabb/TextUpdater.js +81 -0
  170. package/es/services/aabb/index.d.ts +8 -0
  171. package/es/services/aabb/index.js +8 -0
  172. package/es/services/aabb/interfaces.d.ts +16 -0
  173. package/es/services/aabb/interfaces.js +2 -0
  174. package/es/services/index.d.ts +10 -0
  175. package/es/services/index.js +10 -0
  176. package/es/services/text/OffscreenCanvasCreator.d.ts +6 -0
  177. package/es/services/text/OffscreenCanvasCreator.js +47 -0
  178. package/es/services/text/index.d.ts +35 -0
  179. package/es/services/text/index.js +355 -0
  180. package/es/shapes/AABB.d.ts +34 -0
  181. package/es/shapes/AABB.js +217 -0
  182. package/es/shapes/BoundingSphere.d.ts +8 -0
  183. package/es/shapes/BoundingSphere.js +31 -0
  184. package/es/shapes/Frustum.d.ts +16 -0
  185. package/es/shapes/Frustum.js +79 -0
  186. package/es/shapes/Plane.d.ts +14 -0
  187. package/es/shapes/Plane.js +42 -0
  188. package/es/shapes/Point.d.ts +11 -0
  189. package/es/shapes/Point.js +31 -0
  190. package/es/shapes/Polygon.d.ts +9 -0
  191. package/es/shapes/Polygon.js +64 -0
  192. package/es/shapes/Ray.d.ts +24 -0
  193. package/es/shapes/Ray.js +138 -0
  194. package/es/shapes/Rect.d.ts +12 -0
  195. package/es/shapes/Rect.js +24 -0
  196. package/es/shapes/Rectangle.d.ts +12 -0
  197. package/es/shapes/Rectangle.js +20 -0
  198. package/es/shapes/index.d.ts +8 -0
  199. package/es/shapes/index.js +8 -0
  200. package/es/types.d.ts +219 -0
  201. package/es/types.js +17 -0
  202. package/es/utils/animation.d.ts +15 -0
  203. package/es/utils/animation.js +251 -0
  204. package/es/utils/bezier-easing.d.ts +20 -0
  205. package/es/utils/bezier-easing.js +90 -0
  206. package/es/utils/canvas.d.ts +5 -0
  207. package/es/utils/canvas.js +15 -0
  208. package/es/utils/custom-easing.d.ts +73 -0
  209. package/es/utils/custom-easing.js +333 -0
  210. package/es/utils/event.d.ts +11 -0
  211. package/es/utils/event.js +69 -0
  212. package/es/utils/index.d.ts +5 -0
  213. package/es/utils/index.js +5 -0
  214. package/es/utils/interpolation.d.ts +3 -0
  215. package/es/utils/interpolation.js +179 -0
  216. package/es/utils/math.d.ts +24 -0
  217. package/es/utils/math.js +165 -0
  218. package/es/utils/path.d.ts +15 -0
  219. package/es/utils/path.js +330 -0
  220. package/es/utils/raf.d.ts +3 -0
  221. package/es/utils/raf.js +16 -0
  222. package/es/utils/text.d.ts +2 -0
  223. package/es/utils/text.js +32 -0
  224. package/lib/AbstractRenderer.d.ts +26 -0
  225. package/lib/AbstractRenderer.js +49 -0
  226. package/lib/Canvas.d.ts +98 -0
  227. package/lib/Canvas.js +427 -0
  228. package/lib/DisplayObjectPool.d.ts +7 -0
  229. package/lib/DisplayObjectPool.js +35 -0
  230. package/lib/camera/Camera.d.ts +279 -0
  231. package/lib/camera/Camera.js +1046 -0
  232. package/lib/camera/Landmark.d.ts +28 -0
  233. package/lib/camera/Landmark.js +75 -0
  234. package/lib/camera/index.d.ts +2 -0
  235. package/lib/camera/index.js +31 -0
  236. package/lib/canvas-module.d.ts +1 -0
  237. package/lib/canvas-module.js +48 -0
  238. package/lib/components/Cullable.d.ts +14 -0
  239. package/lib/components/Cullable.js +36 -0
  240. package/lib/components/Geometry.d.ts +12 -0
  241. package/lib/components/Geometry.js +17 -0
  242. package/lib/components/Renderable.d.ts +24 -0
  243. package/lib/components/Renderable.js +25 -0
  244. package/lib/components/Sortable.d.ts +16 -0
  245. package/lib/components/Sortable.js +22 -0
  246. package/lib/components/Transform.d.ts +29 -0
  247. package/lib/components/Transform.js +72 -0
  248. package/lib/components/index.d.ts +5 -0
  249. package/lib/components/index.js +70 -0
  250. package/lib/display-objects/Circle.d.ts +12 -0
  251. package/lib/display-objects/Circle.js +34 -0
  252. package/lib/display-objects/CustomElement.d.ts +21 -0
  253. package/lib/display-objects/CustomElement.js +97 -0
  254. package/lib/display-objects/DisplayObject.d.ts +259 -0
  255. package/lib/display-objects/DisplayObject.js +877 -0
  256. package/lib/display-objects/Ellipse.d.ts +14 -0
  257. package/lib/display-objects/Ellipse.js +35 -0
  258. package/lib/display-objects/Group.d.ts +6 -0
  259. package/lib/display-objects/Group.js +36 -0
  260. package/lib/display-objects/HTML.d.ts +36 -0
  261. package/lib/display-objects/HTML.js +105 -0
  262. package/lib/display-objects/Image.d.ts +16 -0
  263. package/lib/display-objects/Image.js +33 -0
  264. package/lib/display-objects/Line.d.ts +23 -0
  265. package/lib/display-objects/Line.js +68 -0
  266. package/lib/display-objects/Path.d.ts +47 -0
  267. package/lib/display-objects/Path.js +143 -0
  268. package/lib/display-objects/Polygon.d.ts +12 -0
  269. package/lib/display-objects/Polygon.js +33 -0
  270. package/lib/display-objects/Polyline.d.ts +23 -0
  271. package/lib/display-objects/Polyline.js +85 -0
  272. package/lib/display-objects/Rect.d.ts +16 -0
  273. package/lib/display-objects/Rect.js +34 -0
  274. package/lib/display-objects/Text.d.ts +65 -0
  275. package/lib/display-objects/Text.js +69 -0
  276. package/lib/display-objects/index.d.ts +13 -0
  277. package/lib/display-objects/index.js +174 -0
  278. package/lib/dom/Animation.d.ts +132 -0
  279. package/lib/dom/Animation.js +511 -0
  280. package/lib/dom/AnimationEffectTiming.d.ts +58 -0
  281. package/lib/dom/AnimationEffectTiming.js +75 -0
  282. package/lib/dom/AnimationEvent.d.ts +11 -0
  283. package/lib/dom/AnimationEvent.js +42 -0
  284. package/lib/dom/AnimationTimeline.d.ts +37 -0
  285. package/lib/dom/AnimationTimeline.js +230 -0
  286. package/lib/dom/CustomElementRegistry.d.ts +15 -0
  287. package/lib/dom/CustomElementRegistry.js +50 -0
  288. package/lib/dom/CustomEvent.d.ts +16 -0
  289. package/lib/dom/CustomEvent.js +42 -0
  290. package/lib/dom/Document.d.ts +59 -0
  291. package/lib/dom/Document.js +184 -0
  292. package/lib/dom/Element.d.ts +149 -0
  293. package/lib/dom/Element.js +508 -0
  294. package/lib/dom/EventTarget.d.ts +40 -0
  295. package/lib/dom/EventTarget.js +170 -0
  296. package/lib/dom/FederatedEvent.d.ts +146 -0
  297. package/lib/dom/FederatedEvent.js +239 -0
  298. package/lib/dom/FederatedMouseEvent.d.ts +52 -0
  299. package/lib/dom/FederatedMouseEvent.js +133 -0
  300. package/lib/dom/FederatedPointerEvent.d.ts +69 -0
  301. package/lib/dom/FederatedPointerEvent.js +61 -0
  302. package/lib/dom/FederatedWheelEvent.d.ts +20 -0
  303. package/lib/dom/FederatedWheelEvent.js +35 -0
  304. package/lib/dom/KeyframeEffect.d.ts +47 -0
  305. package/lib/dom/KeyframeEffect.js +192 -0
  306. package/lib/dom/KeyframeList.d.ts +2 -0
  307. package/lib/dom/KeyframeList.js +183 -0
  308. package/lib/dom/Node.d.ts +106 -0
  309. package/lib/dom/Node.js +228 -0
  310. package/lib/dom/index.d.ts +17 -0
  311. package/lib/dom/index.js +226 -0
  312. package/lib/dom/interfaces.d.ts +324 -0
  313. package/lib/dom/interfaces.js +40 -0
  314. package/lib/global-module.d.ts +2 -0
  315. package/lib/global-module.js +192 -0
  316. package/lib/index.d.ts +14 -12
  317. package/lib/index.js +203 -26
  318. package/lib/plugins/CullingPlugin.d.ts +19 -0
  319. package/lib/plugins/CullingPlugin.js +90 -0
  320. package/lib/plugins/DirtyCheckPlugin.d.ts +10 -0
  321. package/lib/plugins/DirtyCheckPlugin.js +60 -0
  322. package/lib/plugins/EventPlugin.d.ts +27 -0
  323. package/lib/plugins/EventPlugin.js +297 -0
  324. package/lib/plugins/FrustumCullingStrategy.d.ts +20 -0
  325. package/lib/plugins/FrustumCullingStrategy.js +110 -0
  326. package/lib/plugins/PrepareRendererPlugin.d.ts +6 -0
  327. package/lib/plugins/PrepareRendererPlugin.js +73 -0
  328. package/lib/property-handlers/aabb.d.ts +2 -0
  329. package/lib/property-handlers/aabb.js +148 -0
  330. package/lib/property-handlers/anchor.d.ts +4 -0
  331. package/lib/property-handlers/anchor.js +32 -0
  332. package/lib/property-handlers/clipPath.d.ts +19 -0
  333. package/lib/property-handlers/clipPath.js +43 -0
  334. package/lib/property-handlers/color.d.ts +34 -0
  335. package/lib/property-handlers/color.js +274 -0
  336. package/lib/property-handlers/dimension.d.ts +18 -0
  337. package/lib/property-handlers/dimension.js +144 -0
  338. package/lib/property-handlers/filter.d.ts +8 -0
  339. package/lib/property-handlers/filter.js +56 -0
  340. package/lib/property-handlers/index.d.ts +18 -0
  341. package/lib/property-handlers/index.js +226 -0
  342. package/lib/property-handlers/interfaces.d.ts +20 -0
  343. package/lib/property-handlers/interfaces.js +18 -0
  344. package/lib/property-handlers/lineDash.d.ts +1 -0
  345. package/lib/property-handlers/lineDash.js +15 -0
  346. package/lib/property-handlers/localPosition.d.ts +2 -0
  347. package/lib/property-handlers/localPosition.js +16 -0
  348. package/lib/property-handlers/numeric.d.ts +5 -0
  349. package/lib/property-handlers/numeric.js +50 -0
  350. package/lib/property-handlers/offsetDistance.d.ts +5 -0
  351. package/lib/property-handlers/offsetDistance.js +27 -0
  352. package/lib/property-handlers/offsetPath.d.ts +5 -0
  353. package/lib/property-handlers/offsetPath.js +25 -0
  354. package/lib/property-handlers/origin.d.ts +11 -0
  355. package/lib/property-handlers/origin.js +79 -0
  356. package/lib/property-handlers/path.d.ts +4 -0
  357. package/lib/property-handlers/path.js +214 -0
  358. package/lib/property-handlers/points.d.ts +5 -0
  359. package/lib/property-handlers/points.js +33 -0
  360. package/lib/property-handlers/transform.d.ts +45 -0
  361. package/lib/property-handlers/transform.js +426 -0
  362. package/lib/property-handlers/zIndex.d.ts +2 -0
  363. package/lib/property-handlers/zIndex.js +23 -0
  364. package/lib/services/ContextService.d.ts +12 -0
  365. package/lib/services/ContextService.js +15 -0
  366. package/lib/services/EventService.d.ts +64 -0
  367. package/lib/services/EventService.js +960 -0
  368. package/lib/services/RenderingContext.d.ts +28 -0
  369. package/lib/services/RenderingContext.js +22 -0
  370. package/lib/services/RenderingService.d.ts +52 -0
  371. package/lib/services/RenderingService.js +159 -0
  372. package/lib/services/SceneGraphSelector.d.ts +20 -0
  373. package/lib/services/SceneGraphSelector.js +77 -0
  374. package/lib/services/SceneGraphService.d.ts +150 -0
  375. package/lib/services/SceneGraphService.js +902 -0
  376. package/lib/services/aabb/CircleUpdater.d.ts +10 -0
  377. package/lib/services/aabb/CircleUpdater.js +45 -0
  378. package/lib/services/aabb/EllipseUpdater.d.ts +10 -0
  379. package/lib/services/aabb/EllipseUpdater.js +47 -0
  380. package/lib/services/aabb/LineUpdater.d.ts +10 -0
  381. package/lib/services/aabb/LineUpdater.js +49 -0
  382. package/lib/services/aabb/PathUpdater.d.ts +10 -0
  383. package/lib/services/aabb/PathUpdater.js +183 -0
  384. package/lib/services/aabb/PolylineUpdater.d.ts +10 -0
  385. package/lib/services/aabb/PolylineUpdater.js +58 -0
  386. package/lib/services/aabb/RectUpdater.d.ts +10 -0
  387. package/lib/services/aabb/RectUpdater.js +66 -0
  388. package/lib/services/aabb/TextUpdater.d.ts +13 -0
  389. package/lib/services/aabb/TextUpdater.js +93 -0
  390. package/lib/services/aabb/index.d.ts +8 -0
  391. package/lib/services/aabb/index.js +84 -0
  392. package/lib/services/aabb/interfaces.d.ts +16 -0
  393. package/lib/services/aabb/interfaces.js +10 -0
  394. package/lib/services/index.d.ts +10 -0
  395. package/lib/services/index.js +122 -0
  396. package/lib/services/text/OffscreenCanvasCreator.d.ts +6 -0
  397. package/lib/services/text/OffscreenCanvasCreator.js +55 -0
  398. package/lib/services/text/index.d.ts +35 -0
  399. package/lib/services/text/index.js +364 -0
  400. package/lib/shapes/AABB.d.ts +34 -0
  401. package/lib/shapes/AABB.js +235 -0
  402. package/lib/shapes/BoundingSphere.d.ts +8 -0
  403. package/lib/shapes/BoundingSphere.js +41 -0
  404. package/lib/shapes/Frustum.d.ts +16 -0
  405. package/lib/shapes/Frustum.js +96 -0
  406. package/lib/shapes/Plane.d.ts +14 -0
  407. package/lib/shapes/Plane.js +51 -0
  408. package/lib/shapes/Point.d.ts +11 -0
  409. package/lib/shapes/Point.js +38 -0
  410. package/lib/shapes/Polygon.d.ts +9 -0
  411. package/lib/shapes/Polygon.js +71 -0
  412. package/lib/shapes/Ray.d.ts +24 -0
  413. package/lib/shapes/Ray.js +169 -0
  414. package/lib/shapes/Rect.d.ts +12 -0
  415. package/lib/shapes/Rect.js +31 -0
  416. package/lib/shapes/Rectangle.d.ts +12 -0
  417. package/lib/shapes/Rectangle.js +27 -0
  418. package/lib/shapes/index.d.ts +8 -13
  419. package/lib/shapes/index.js +108 -28
  420. package/lib/types.d.ts +219 -0
  421. package/lib/types.js +25 -0
  422. package/lib/utils/animation.d.ts +15 -0
  423. package/lib/utils/animation.js +275 -0
  424. package/lib/utils/bezier-easing.d.ts +20 -0
  425. package/lib/utils/bezier-easing.js +128 -0
  426. package/lib/utils/canvas.d.ts +5 -0
  427. package/lib/utils/canvas.js +21 -0
  428. package/lib/utils/custom-easing.d.ts +73 -0
  429. package/lib/utils/custom-easing.js +416 -0
  430. package/lib/utils/event.d.ts +11 -0
  431. package/lib/utils/event.js +88 -0
  432. package/lib/utils/index.d.ts +5 -0
  433. package/lib/utils/index.js +70 -0
  434. package/lib/utils/interpolation.d.ts +3 -0
  435. package/lib/utils/interpolation.js +194 -0
  436. package/lib/utils/math.d.ts +24 -0
  437. package/lib/utils/math.js +192 -0
  438. package/lib/utils/path.d.ts +15 -0
  439. package/lib/utils/path.js +356 -0
  440. package/lib/utils/raf.d.ts +3 -0
  441. package/lib/utils/raf.js +22 -0
  442. package/lib/utils/text.d.ts +2 -0
  443. package/lib/utils/text.js +41 -0
  444. package/package.json +35 -92
  445. package/dist/g.min.js +0 -17
  446. package/dist/g.min.js.map +0 -1
  447. package/esm/canvas.d.ts +0 -46
  448. package/esm/canvas.js +0 -383
  449. package/esm/canvas.js.map +0 -1
  450. package/esm/core/attribute.d.ts +0 -49
  451. package/esm/core/attribute.js +0 -277
  452. package/esm/core/attribute.js.map +0 -1
  453. package/esm/core/base.d.ts +0 -32
  454. package/esm/core/base.js +0 -190
  455. package/esm/core/base.js.map +0 -1
  456. package/esm/core/bbox.d.ts +0 -22
  457. package/esm/core/bbox.js +0 -34
  458. package/esm/core/bbox.js.map +0 -1
  459. package/esm/core/element.d.ts +0 -19
  460. package/esm/core/element.js +0 -203
  461. package/esm/core/element.js.map +0 -1
  462. package/esm/core/group.d.ts +0 -72
  463. package/esm/core/group.js +0 -437
  464. package/esm/core/group.js.map +0 -1
  465. package/esm/core/shape.d.ts +0 -35
  466. package/esm/core/shape.js +0 -158
  467. package/esm/core/shape.js.map +0 -1
  468. package/esm/core/timeline.d.ts +0 -15
  469. package/esm/core/timeline.js +0 -179
  470. package/esm/core/timeline.js.map +0 -1
  471. package/esm/event.d.ts +0 -25
  472. package/esm/event.js +0 -37
  473. package/esm/event.js.map +0 -1
  474. package/esm/index.d.ts +0 -13
  475. package/esm/index.js +0 -15
  476. package/esm/index.js.map +0 -1
  477. package/esm/interface.d.ts +0 -18
  478. package/esm/interface.js +0 -1
  479. package/esm/interface.js.map +0 -1
  480. package/esm/renderers/canvas/index.d.ts +0 -1
  481. package/esm/renderers/canvas/index.js +0 -2
  482. package/esm/renderers/canvas/index.js.map +0 -1
  483. package/esm/renderers/canvas/painter.d.ts +0 -17
  484. package/esm/renderers/canvas/painter.js +0 -157
  485. package/esm/renderers/canvas/painter.js.map +0 -1
  486. package/esm/renderers/canvas/util.d.ts +0 -2
  487. package/esm/renderers/canvas/util.js +0 -187
  488. package/esm/renderers/canvas/util.js.map +0 -1
  489. package/esm/renderers/index.d.ts +0 -3
  490. package/esm/renderers/index.js +0 -4
  491. package/esm/renderers/index.js.map +0 -1
  492. package/esm/renderers/svg/defs/arrow.d.ts +0 -15
  493. package/esm/renderers/svg/defs/arrow.js +0 -68
  494. package/esm/renderers/svg/defs/arrow.js.map +0 -1
  495. package/esm/renderers/svg/defs/clip.d.ts +0 -12
  496. package/esm/renderers/svg/defs/clip.js +0 -29
  497. package/esm/renderers/svg/defs/clip.js.map +0 -1
  498. package/esm/renderers/svg/defs/gradient.d.ts +0 -10
  499. package/esm/renderers/svg/defs/gradient.js +0 -117
  500. package/esm/renderers/svg/defs/gradient.js.map +0 -1
  501. package/esm/renderers/svg/defs/pattern.d.ts +0 -10
  502. package/esm/renderers/svg/defs/pattern.js +0 -46
  503. package/esm/renderers/svg/defs/pattern.js.map +0 -1
  504. package/esm/renderers/svg/defs/shadow.d.ts +0 -13
  505. package/esm/renderers/svg/defs/shadow.js +0 -62
  506. package/esm/renderers/svg/defs/shadow.js.map +0 -1
  507. package/esm/renderers/svg/defs.d.ts +0 -18
  508. package/esm/renderers/svg/defs.js +0 -90
  509. package/esm/renderers/svg/defs.js.map +0 -1
  510. package/esm/renderers/svg/get-shape.d.ts +0 -1
  511. package/esm/renderers/svg/get-shape.js +0 -28
  512. package/esm/renderers/svg/get-shape.js.map +0 -1
  513. package/esm/renderers/svg/index.d.ts +0 -2
  514. package/esm/renderers/svg/index.js +0 -3
  515. package/esm/renderers/svg/index.js.map +0 -1
  516. package/esm/renderers/svg/painter.d.ts +0 -32
  517. package/esm/renderers/svg/painter.js +0 -695
  518. package/esm/renderers/svg/painter.js.map +0 -1
  519. package/esm/shapes/arc.d.ts +0 -25
  520. package/esm/shapes/arc.js +0 -107
  521. package/esm/shapes/arc.js.map +0 -1
  522. package/esm/shapes/circle.d.ts +0 -17
  523. package/esm/shapes/circle.js +0 -62
  524. package/esm/shapes/circle.js.map +0 -1
  525. package/esm/shapes/dom.d.ts +0 -10
  526. package/esm/shapes/dom.js +0 -35
  527. package/esm/shapes/dom.js.map +0 -1
  528. package/esm/shapes/ellipse.d.ts +0 -18
  529. package/esm/shapes/ellipse.js +0 -88
  530. package/esm/shapes/ellipse.js.map +0 -1
  531. package/esm/shapes/fan.d.ts +0 -21
  532. package/esm/shapes/fan.js +0 -151
  533. package/esm/shapes/fan.js.map +0 -1
  534. package/esm/shapes/image.d.ts +0 -24
  535. package/esm/shapes/image.js +0 -154
  536. package/esm/shapes/image.js.map +0 -1
  537. package/esm/shapes/index.d.ts +0 -13
  538. package/esm/shapes/index.js +0 -14
  539. package/esm/shapes/index.js.map +0 -1
  540. package/esm/shapes/interface.d.ts +0 -3
  541. package/esm/shapes/interface.js +0 -1
  542. package/esm/shapes/interface.js.map +0 -1
  543. package/esm/shapes/line.d.ts +0 -22
  544. package/esm/shapes/line.js +0 -70
  545. package/esm/shapes/line.js.map +0 -1
  546. package/esm/shapes/marker/index.d.ts +0 -30
  547. package/esm/shapes/marker/index.js +0 -90
  548. package/esm/shapes/marker/index.js.map +0 -1
  549. package/esm/shapes/marker/symbols.d.ts +0 -14
  550. package/esm/shapes/marker/symbols.js +0 -39
  551. package/esm/shapes/marker/symbols.js.map +0 -1
  552. package/esm/shapes/math/arc.d.ts +0 -6
  553. package/esm/shapes/math/arc.js +0 -113
  554. package/esm/shapes/math/arc.js.map +0 -1
  555. package/esm/shapes/math/cubic.d.ts +0 -7
  556. package/esm/shapes/math/cubic.js +0 -141
  557. package/esm/shapes/math/cubic.js.map +0 -1
  558. package/esm/shapes/math/ellipse.d.ts +0 -4
  559. package/esm/shapes/math/ellipse.js +0 -13
  560. package/esm/shapes/math/ellipse.js.map +0 -1
  561. package/esm/shapes/math/line.d.ts +0 -5
  562. package/esm/shapes/math/line.js +0 -23
  563. package/esm/shapes/math/line.js.map +0 -1
  564. package/esm/shapes/math/quadratic.d.ts +0 -5
  565. package/esm/shapes/math/quadratic.js +0 -74
  566. package/esm/shapes/math/quadratic.js.map +0 -1
  567. package/esm/shapes/path.d.ts +0 -25
  568. package/esm/shapes/path.js +0 -270
  569. package/esm/shapes/path.js.map +0 -1
  570. package/esm/shapes/polygon.d.ts +0 -15
  571. package/esm/shapes/polygon.js +0 -103
  572. package/esm/shapes/polygon.js.map +0 -1
  573. package/esm/shapes/polyline.d.ts +0 -24
  574. package/esm/shapes/polyline.js +0 -171
  575. package/esm/shapes/polyline.js.map +0 -1
  576. package/esm/shapes/rect.d.ts +0 -19
  577. package/esm/shapes/rect.js +0 -107
  578. package/esm/shapes/rect.js.map +0 -1
  579. package/esm/shapes/text.d.ts +0 -35
  580. package/esm/shapes/text.js +0 -262
  581. package/esm/shapes/text.js.map +0 -1
  582. package/esm/shapes/util/arrow.d.ts +0 -3
  583. package/esm/shapes/util/arrow.js +0 -131
  584. package/esm/shapes/util/arrow.js.map +0 -1
  585. package/esm/shapes/util/inside.d.ts +0 -9
  586. package/esm/shapes/util/inside.js +0 -50
  587. package/esm/shapes/util/inside.js.map +0 -1
  588. package/esm/shapes/util/is-point-in-path-by-ctx.d.ts +0 -2
  589. package/esm/shapes/util/is-point-in-path-by-ctx.js +0 -14
  590. package/esm/shapes/util/is-point-in-path-by-ctx.js.map +0 -1
  591. package/esm/shapes/util/path-segment.d.ts +0 -18
  592. package/esm/shapes/util/path-segment.js +0 -594
  593. package/esm/shapes/util/path-segment.js.map +0 -1
  594. package/esm/util/format.d.ts +0 -7
  595. package/esm/util/format.js +0 -60
  596. package/esm/util/format.js.map +0 -1
  597. package/esm/util/path.d.ts +0 -11
  598. package/esm/util/path.js +0 -1327
  599. package/esm/util/path.js.map +0 -1
  600. package/lib/canvas.d.ts +0 -46
  601. package/lib/canvas.js +0 -385
  602. package/lib/canvas.js.map +0 -1
  603. package/lib/core/attribute.d.ts +0 -49
  604. package/lib/core/attribute.js +0 -279
  605. package/lib/core/attribute.js.map +0 -1
  606. package/lib/core/base.d.ts +0 -32
  607. package/lib/core/base.js +0 -192
  608. package/lib/core/base.js.map +0 -1
  609. package/lib/core/bbox.d.ts +0 -22
  610. package/lib/core/bbox.js +0 -36
  611. package/lib/core/bbox.js.map +0 -1
  612. package/lib/core/element.d.ts +0 -19
  613. package/lib/core/element.js +0 -205
  614. package/lib/core/element.js.map +0 -1
  615. package/lib/core/group.d.ts +0 -72
  616. package/lib/core/group.js +0 -439
  617. package/lib/core/group.js.map +0 -1
  618. package/lib/core/shape.d.ts +0 -35
  619. package/lib/core/shape.js +0 -160
  620. package/lib/core/shape.js.map +0 -1
  621. package/lib/core/timeline.d.ts +0 -15
  622. package/lib/core/timeline.js +0 -181
  623. package/lib/core/timeline.js.map +0 -1
  624. package/lib/event.d.ts +0 -25
  625. package/lib/event.js +0 -39
  626. package/lib/event.js.map +0 -1
  627. package/lib/index.js.map +0 -1
  628. package/lib/interface.d.ts +0 -18
  629. package/lib/interface.js +0 -3
  630. package/lib/interface.js.map +0 -1
  631. package/lib/renderers/canvas/index.d.ts +0 -1
  632. package/lib/renderers/canvas/index.js +0 -5
  633. package/lib/renderers/canvas/index.js.map +0 -1
  634. package/lib/renderers/canvas/painter.d.ts +0 -17
  635. package/lib/renderers/canvas/painter.js +0 -159
  636. package/lib/renderers/canvas/painter.js.map +0 -1
  637. package/lib/renderers/canvas/util.d.ts +0 -2
  638. package/lib/renderers/canvas/util.js +0 -192
  639. package/lib/renderers/canvas/util.js.map +0 -1
  640. package/lib/renderers/index.d.ts +0 -3
  641. package/lib/renderers/index.js +0 -8
  642. package/lib/renderers/index.js.map +0 -1
  643. package/lib/renderers/svg/defs/arrow.d.ts +0 -15
  644. package/lib/renderers/svg/defs/arrow.js +0 -70
  645. package/lib/renderers/svg/defs/arrow.js.map +0 -1
  646. package/lib/renderers/svg/defs/clip.d.ts +0 -12
  647. package/lib/renderers/svg/defs/clip.js +0 -31
  648. package/lib/renderers/svg/defs/clip.js.map +0 -1
  649. package/lib/renderers/svg/defs/gradient.d.ts +0 -10
  650. package/lib/renderers/svg/defs/gradient.js +0 -119
  651. package/lib/renderers/svg/defs/gradient.js.map +0 -1
  652. package/lib/renderers/svg/defs/pattern.d.ts +0 -10
  653. package/lib/renderers/svg/defs/pattern.js +0 -48
  654. package/lib/renderers/svg/defs/pattern.js.map +0 -1
  655. package/lib/renderers/svg/defs/shadow.d.ts +0 -13
  656. package/lib/renderers/svg/defs/shadow.js +0 -64
  657. package/lib/renderers/svg/defs/shadow.js.map +0 -1
  658. package/lib/renderers/svg/defs.d.ts +0 -18
  659. package/lib/renderers/svg/defs.js +0 -92
  660. package/lib/renderers/svg/defs.js.map +0 -1
  661. package/lib/renderers/svg/get-shape.d.ts +0 -1
  662. package/lib/renderers/svg/get-shape.js +0 -31
  663. package/lib/renderers/svg/get-shape.js.map +0 -1
  664. package/lib/renderers/svg/index.d.ts +0 -2
  665. package/lib/renderers/svg/index.js +0 -7
  666. package/lib/renderers/svg/index.js.map +0 -1
  667. package/lib/renderers/svg/painter.d.ts +0 -32
  668. package/lib/renderers/svg/painter.js +0 -697
  669. package/lib/renderers/svg/painter.js.map +0 -1
  670. package/lib/shapes/arc.d.ts +0 -25
  671. package/lib/shapes/arc.js +0 -109
  672. package/lib/shapes/arc.js.map +0 -1
  673. package/lib/shapes/circle.d.ts +0 -17
  674. package/lib/shapes/circle.js +0 -64
  675. package/lib/shapes/circle.js.map +0 -1
  676. package/lib/shapes/dom.d.ts +0 -10
  677. package/lib/shapes/dom.js +0 -37
  678. package/lib/shapes/dom.js.map +0 -1
  679. package/lib/shapes/ellipse.d.ts +0 -18
  680. package/lib/shapes/ellipse.js +0 -90
  681. package/lib/shapes/ellipse.js.map +0 -1
  682. package/lib/shapes/fan.d.ts +0 -21
  683. package/lib/shapes/fan.js +0 -153
  684. package/lib/shapes/fan.js.map +0 -1
  685. package/lib/shapes/image.d.ts +0 -24
  686. package/lib/shapes/image.js +0 -156
  687. package/lib/shapes/image.js.map +0 -1
  688. package/lib/shapes/index.js.map +0 -1
  689. package/lib/shapes/interface.d.ts +0 -3
  690. package/lib/shapes/interface.js +0 -3
  691. package/lib/shapes/interface.js.map +0 -1
  692. package/lib/shapes/line.d.ts +0 -22
  693. package/lib/shapes/line.js +0 -72
  694. package/lib/shapes/line.js.map +0 -1
  695. package/lib/shapes/marker/index.d.ts +0 -30
  696. package/lib/shapes/marker/index.js +0 -92
  697. package/lib/shapes/marker/index.js.map +0 -1
  698. package/lib/shapes/marker/symbols.d.ts +0 -14
  699. package/lib/shapes/marker/symbols.js +0 -41
  700. package/lib/shapes/marker/symbols.js.map +0 -1
  701. package/lib/shapes/math/arc.d.ts +0 -6
  702. package/lib/shapes/math/arc.js +0 -116
  703. package/lib/shapes/math/arc.js.map +0 -1
  704. package/lib/shapes/math/cubic.d.ts +0 -7
  705. package/lib/shapes/math/cubic.js +0 -149
  706. package/lib/shapes/math/cubic.js.map +0 -1
  707. package/lib/shapes/math/ellipse.d.ts +0 -4
  708. package/lib/shapes/math/ellipse.js +0 -20
  709. package/lib/shapes/math/ellipse.js.map +0 -1
  710. package/lib/shapes/math/line.d.ts +0 -5
  711. package/lib/shapes/math/line.js +0 -30
  712. package/lib/shapes/math/line.js.map +0 -1
  713. package/lib/shapes/math/quadratic.d.ts +0 -5
  714. package/lib/shapes/math/quadratic.js +0 -81
  715. package/lib/shapes/math/quadratic.js.map +0 -1
  716. package/lib/shapes/path.d.ts +0 -25
  717. package/lib/shapes/path.js +0 -272
  718. package/lib/shapes/path.js.map +0 -1
  719. package/lib/shapes/polygon.d.ts +0 -15
  720. package/lib/shapes/polygon.js +0 -105
  721. package/lib/shapes/polygon.js.map +0 -1
  722. package/lib/shapes/polyline.d.ts +0 -24
  723. package/lib/shapes/polyline.js +0 -173
  724. package/lib/shapes/polyline.js.map +0 -1
  725. package/lib/shapes/rect.d.ts +0 -19
  726. package/lib/shapes/rect.js +0 -109
  727. package/lib/shapes/rect.js.map +0 -1
  728. package/lib/shapes/text.d.ts +0 -35
  729. package/lib/shapes/text.js +0 -264
  730. package/lib/shapes/text.js.map +0 -1
  731. package/lib/shapes/util/arrow.d.ts +0 -3
  732. package/lib/shapes/util/arrow.js +0 -136
  733. package/lib/shapes/util/arrow.js.map +0 -1
  734. package/lib/shapes/util/inside.d.ts +0 -9
  735. package/lib/shapes/util/inside.js +0 -61
  736. package/lib/shapes/util/inside.js.map +0 -1
  737. package/lib/shapes/util/is-point-in-path-by-ctx.d.ts +0 -2
  738. package/lib/shapes/util/is-point-in-path-by-ctx.js +0 -17
  739. package/lib/shapes/util/is-point-in-path-by-ctx.js.map +0 -1
  740. package/lib/shapes/util/path-segment.d.ts +0 -18
  741. package/lib/shapes/util/path-segment.js +0 -596
  742. package/lib/shapes/util/path-segment.js.map +0 -1
  743. package/lib/util/format.d.ts +0 -7
  744. package/lib/util/format.js +0 -65
  745. package/lib/util/format.js.map +0 -1
  746. package/lib/util/path.d.ts +0 -11
  747. package/lib/util/path.js +0 -1339
  748. package/lib/util/path.js.map +0 -1
package/dist/g.min.js DELETED
@@ -1,17 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G=e():t.G=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=21)}([function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e,n){var r=n(16),i=n(1);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(2),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Function")}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Number")}},function(t,e,n){var r=n(13),i=n(2);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(5);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e,n){var r=n(4),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"String")}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){var r=n(0),i=n(4);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":n(t))&&null!==t}},function(t,e,n){var r=n(4);t.exports=function(t){return r(t)?Array.prototype.slice.call(t):[]}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*r},e.equals=function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))};var n=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var r=Math.PI/180},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){var r=n(18),i=n(5);t.exports=function(t,e){var n=r(e),a=n.length;if(i(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var r=n(0),i=n(3),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(r)})),e};t.exports=a},function(t,e,n){var r=n(4),i=Array.prototype.splice;t.exports=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){var r=n(0),i=n(9);t.exports=function(t){var e=[];return r(t,(function(t){i(e,t)||e.push(t)})),e}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e){t.exports=parseInt},function(t,e,n){var r=n(89);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(1);t.exports=function t(e){if("object"!==(void 0===e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(0),i=n(3),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(n)})),e};t.exports=a},function(t,e,n){var r=n(28);t.exports=function(t,e,n,i,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,i-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-i],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=r,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var r=n(30),i=function t(e,n,r,i,a,o,s,u,c,l){r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],d=void 0,v=void 0,y=void 0,g=void 0,x=void 0,m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)v=l[0],y=l[1],g=l[2],x=l[3];else{e=(d=m(e,n,-f)).x,n=d.y,u=(d=m(u,c,-f)).x,c=d.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,M=(n-c)/2,w=b*b/(r*r)+M*M/(i*i);w>1&&(r*=w=Math.sqrt(w),i*=w);var _=r*r,P=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((_*P-_*M*M-P*b*b)/(_*M*M+P*b*b)));g=A*r*M/i+(e+u)/2,x=A*-i*b/r+(n+c)/2,v=Math.asin(((n-x)/i).toFixed(9)),y=Math.asin(((c-x)/i).toFixed(9)),v=e<g?Math.PI-v:v,y=u<g?Math.PI-y:y,v<0&&(v=2*Math.PI+v),y<0&&(y=2*Math.PI+y),s&&v>y&&(v-=2*Math.PI),!s&&y>v&&(y-=2*Math.PI)}var S=y-v;if(Math.abs(S)>h){var k=y,O=u,T=c;y=v+h*(s&&y>v?1:-1),p=t(u=g+r*Math.cos(y),c=x+i*Math.sin(y),r,i,a,0,s,O,T,[y,k,g,x])}S=y-v;var I=Math.cos(v),C=Math.sin(v),E=Math.cos(y),j=Math.sin(y),N=Math.tan(S/4),L=4/3*r*N,B=4/3*i*N,q=[e,n],R=[e+L*C,n-B*I],F=[u+L*j,c-B*E],D=[u,c];if(R[0]=2*q[0]-R[0],R[1]=2*q[1]-R[1],l)return[R,F,D].concat(p);for(var W=[],Y=0,H=(p=[R,F,D].concat(p).join().split(",")).length;Y<H;Y++)W[Y]=Y%2?m(p[Y-1],p[Y],f).y:m(p[Y],p[Y+1],f).x;return W},a=function(t,e,n,r){return[t,e,n,r,n,r]},o=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]};t.exports=function(t,e){var n=r(t),s=e&&r(e),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l=[],h=[],f="",p="",d=void 0,v=function(t,e,n){var r=void 0,s=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(i.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,s=2*e.y-e.by):(r=e.x,s=e.y),t=["C",r,s].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(o(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(a(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(a(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(a(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(a(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)l[e]="A",s&&(h[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),d=Math.max(n.length,s&&s.length||0)}},g=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],d=Math.max(n.length,s&&s.length||0))};d=Math.max(n.length,s&&s.length||0);for(var x=0;x<d;x++){n[x]&&(f=n[x][0]),"C"!==f&&(l[x]=f,x&&(p=l[x-1])),n[x]=v(n[x],u,p),"A"!==l[x]&&"C"===f&&(l[x]="C"),y(n,x),s&&(s[x]&&(f=s[x][0]),"C"!==f&&(h[x]=f,x&&(p=h[x-1])),s[x]=v(s[x],c,p),"A"!==h[x]&&"C"===f&&(h[x]="C"),y(s,x)),g(n,s,u,c,x),g(s,n,c,u,x);var m=n[x],b=s&&s[x],M=m.length,w=s&&b.length;u.x=m[M-2],u.y=m[M-1],u.bx=parseFloat(m[M-4])||u.x,u.by=parseFloat(m[M-3])||u.y,c.bx=s&&(parseFloat(b[w-4])||c.x),c.by=s&&(parseFloat(b[w-3])||c.y),c.x=s&&b[w-2],c.y=s&&b[w-1]}return s?[n,s]:n}},function(t,e,n){var r=n(31),i=n(32);function a(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,c=0,l=void 0,h=void 0;"M"===t[0][0]&&(s=n=+t[0][1],u=o=+t[0][2],c++,e[0]=["M",n,o]);for(var f,p,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),v=c,y=t.length;v<y;v++){if(e.push(f=[]),(l=(p=t[v])[0])!==l.toUpperCase())switch(f[0]=l.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+n,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+n;break;case"R":for(var g=2,x=(h=[n,o].concat(p.slice(1))).length;g<x;g++)h[g]=+h[g]+n,h[++g]=+h[g]+o;e.pop(),e=e.concat(i(h,d));break;case"O":e.pop(),(h=a(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(a(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+p[1]+n,u=+p[2]+o;break;default:for(var m=1,b=p.length;m<b;m++)f[m]=+p[m]+(m%2?n:o)}else if("R"===l)h=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(i(h,d)),f=["R"].concat(p.slice(-2));else if("O"===l)e.pop(),(h=a(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);else if("U"===l)e.pop(),e=e.concat(a(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var M=0,w=p.length;M<w;M++)f[M]=p[M];if("O"!==(l=l.toUpperCase()))switch(f[0]){case"Z":n=+s,o=+u;break;case"H":n=f[1];break;case"V":o=f[1];break;case"M":s=f[f.length-2],u=f[f.length-1];break;default:n=f[f.length-2],o=f[f.length-1]}}return e}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="\t\n\v\f\r   ᠎              \u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(t).replace(i,(function(t,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else for(;o.length>=e[s]&&(r.push([n].concat(o.splice(0,e[s]))),e[s]););})),r}},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var r=n(8);t.exports=function(t){return r(t).toLowerCase()}},function(t,e,n){var r=n(8);t.exports=function(t){return r(t).toUpperCase()}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(3),i=n(1),a=n(38);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return a(t,e)}},function(t,e,n){var r=n(0),i=n(1),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,(function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]})),n}},function(t,e,n){var r=n(13),i=n(4),a=n(10);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(r(e)||r(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var l=!0,h=0;h<u.length&&(l=t(e[u[h]],n[u[h]]));h++);return l}return!1}},function(t,e,n){var r=n(0),i=n(11),a=n(41),o=n(53),s=n(67),u=n(70),c=n(74),l=n(88),h=n(95),f=n(99),p=n(105),d=n(111),v={DOMUtil:a,DomUtil:a,MatrixUtil:l,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:c,matrixUtil:l,objectUtil:h,stringUtil:p,pathUtil:f,typeUtil:d,augment:n(119),clone:n(24),debounce:n(120),deepMix:n(121),each:r,extend:n(122),filter:n(12),group:n(123),groupBy:n(38),groupToMap:n(37),indexOf:n(124),isEmpty:n(125),isEqual:n(39),isEqualWith:n(126),map:n(127),mix:i,pick:n(128),throttle:n(129),toArray:n(14),toString:n(8),uniqueId:n(130)};r([a,o,s,u,c,l,h,f,p,d],(function(t){i(v,t)})),t.exports=v},function(t,e,n){t.exports={addEventListener:n(42),createDom:n(43),getBoundingClientRect:n(44),getHeight:n(45),getOuterHeight:n(46),getOuterWidth:n(47),getRatio:n(48),getStyle:n(49),getWidth:n(50),modifyCSS:n(51),requestAnimationFrame:n(52)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){t.exports={contains:n(9),difference:n(54),find:n(55),firstValue:n(56),flatten:n(57),flattenDeep:n(58),getRange:n(59),merge:n(60),pull:n(61),pullAt:n(19),reduce:n(62),remove:n(63),sortBy:n(64),union:n(65),uniq:n(20),valuesOfKey:n(66)}},function(t,e,n){var r=n(12),i=n(9);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(t,(function(t){return!i(e,t)}))}},function(t,e,n){var r=n(3),i=n(7),a=n(17);t.exports=function(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o<t.length;o+=1)if(n(t[o]))return t[o];return null}},function(t,e,n){var r=n(5),i=n(1);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!r(o)){n=i(o)?o[0]:o;break}}return n}},function(t,e,n){var r=n(1),i=n(0);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,(function(t){r(t)?i(t,(function(t){e.push(t)})):e.push(t)})),e}},function(t,e,n){var r=n(1);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(12),i=n(1);t.exports=function(t){if(!(t=r(t,(function(t){return!isNaN(t)}))).length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=i.call(t,o))>-1;)r.call(t,s,1);return t}},function(t,e,n){var r=n(1),i=n(7),a=n(0);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var o=n;return a(t,(function(t,n){o=e(o,t,n)})),o}},function(t,e,n){var r=n(4),i=n(19);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return i(t,o),n}},function(t,e,n){var r=n(10),i=n(3),a=n(1);t.exports=function(t,e){var n=void 0;if(i(e))n=function(t,n){return e(t)-e(n)};else{var o=[];r(e)?o.push(e):a(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var r=o[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var r=n(0),i=n(14),a=n(20);t.exports=function(){var t=[],e=i(arguments);return r(e,(function(e){t=t.concat(e)})),a(t)}},function(t,e,n){var r=n(5),i=n(1),a=n(0);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];r(u)||(i(u)||(u=[u]),a(u,(function(t){o[t]||(n.push(t),o[t]=!0)})))}return n}},function(t,e,n){t.exports={getWrapBehavior:n(68),wrapBehavior:n(69)}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var r=n(71);t.exports={number2color:r,numberToColor:r,parsePath:n(72),parseRadius:n(73)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;i<6;i++)r="0"+r;e="#"+r,n[t]=e}return e}},function(t,e,n){var r=n(1),i=n(10),a=n(0),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return r(t=t||[])?t:i(t)?(t=t.match(o),a(t,(function(e,n){if((e=e.match(s))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}a(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){var r=n(1);t.exports=function(t){var e=0,n=0,i=0,a=0;return r(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){var r=n(75);t.exports={clamp:n(21),fixedBase:n(76),isDecimal:n(77),isEven:n(78),isInteger:n(79),isNegative:n(80),isNumberEqual:r,isOdd:n(81),isPositive:n(82),maxBy:n(83),minBy:n(84),mod:n(85),snapEqual:r,toDegree:n(86),toInt:n(22),toInteger:n(22),toRadian:n(87)}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e){t.exports=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(6);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e,n){var r=n(6);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(6),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0};t.exports=i},function(t,e,n){var r=n(6);t.exports=function(t){return r(t)&&t<0}},function(t,e,n){var r=n(6);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(6);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(1),i=n(3),a=n(0);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,(function(t){(s=i(e)?e(t):t[e])>o&&(n=t,o=s)})),n}}},function(t,e,n){var r=n(1),i=n(3),a=n(0);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,(function(t){(s=i(e)?e(t):t[e])<o&&(n=t,o=s)})),n}}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e,n){t.exports={mat3:n(23),vec2:n(90),vec3:n(92),transform:n(94)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,u,c){var l=new r.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=a,l[5]=o,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=l*o-s*c,f=-l*a+s*u,p=c*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-l*r+i*c)*d,t[2]=(s*r-i*o)*d,t[3]=f*d,t[4]=(l*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-c*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=o*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*o,t[3]=s*u-a*l,t[4]=n*l-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+c,t[7]=f*i+p*s+l,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=c,t[7]=l,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,h=r*s,f=i*o,p=i*s,d=i*u,v=a*o,y=a*s,g=a*u;return t[0]=1-h-d,t[3]=l-g,t[6]=f+y,t[1]=l+g,t[4]=1-c-d,t[7]=p-v,t[2]=f-y,t[5]=p+v,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],d=e[12],v=e[13],y=e[14],g=e[15],x=n*s-r*o,m=n*u-i*o,b=n*c-a*o,M=r*u-i*s,w=r*c-a*s,_=i*c-a*u,P=l*v-h*d,A=l*y-f*d,S=l*g-p*d,k=h*y-f*v,O=h*g-p*v,T=f*g-p*y,I=x*T-m*O+b*k+M*S-w*A+_*P;return I?(I=1/I,t[0]=(s*T-u*O+c*k)*I,t[1]=(u*S-o*T-c*A)*I,t[2]=(o*O-s*S+c*P)*I,t[3]=(i*O-r*T-a*k)*I,t[4]=(n*T-i*S+a*A)*I,t[5]=(r*S-n*O-a*P)*I,t[6]=(v*_-y*w+g*M)*I,t[7]=(y*b-d*_-g*m)*I,t[8]=(d*w-v*b+g*x)*I,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=e[0],p=e[1],d=e[2],v=e[3],y=e[4],g=e[5],x=e[6],m=e[7],b=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-v)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-g)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-x)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(h-b)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(15));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1],d=n[2],v=n[3],y=n[4],g=n[5],x=n[6],m=n[7],b=n[8];return t[0]=f*r+p*o+d*c,t[1]=f*i+p*s+d*l,t[2]=f*a+p*u+d*h,t[3]=v*r+y*o+g*c,t[4]=v*i+y*s+g*l,t[5]=v*a+y*u+g*h,t[6]=x*r+m*o+b*c,t[7]=x*i+m*s+b*l,t[8]=x*a+m*u+b*h,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.mul=i,e.sub=a},function(t,e,n){var r=n(91),i=n(21);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=c,e.squaredDistance=l,e.length=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))};var r,i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(15));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function h(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function f(t){var e=t[0],n=t[1];return e*e+n*n}e.len=h,e.sub=o,e.mul=s,e.div=u,e.dist=c,e.sqrDist=l,e.sqrLen=f,e.forEach=(r=a(),function(t,e,n,i,a,o){var s=void 0,u=void 0;for(e||(e=2),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){var r=n(93);t.exports=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=s,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=u,e.multiply=c,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=h,e.squaredDistance=f,e.squaredLength=p,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=d,e.dot=v,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*l,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*c+n[0]*l+r[0]*h+i[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+i[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],l=i*c-a*u,h=a*s-r*c,f=r*u-i*s,p=i*f-a*h,d=a*l-r*f,v=r*h-i*l,y=2*o;return l*=y,h*=y,f*=y,p*=2,d*=2,v*=2,t[0]=s+l+p,t[1]=u+h+d,t[2]=c+f+v,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=s(t[0],t[1],t[2]),r=s(e[0],e[1],e[2]);d(n,n),d(r,r);var i=v(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))};var r,i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(15));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function p(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function d(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function v(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.sub=u,e.mul=c,e.div=l,e.dist=h,e.sqrDist=f,e.len=o,e.sqrLen=p,e.forEach=(r=a(),function(t,e,n,i,a,o){var s=void 0,u=void 0;for(e||(e=3),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){var r=n(24),i=n(0),a=n(23);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},function(t,e,n){t.exports={forIn:n(96),has:n(25),hasKey:n(97),hasValue:n(98),keys:n(18),isMatch:n(17),values:n(26)}},function(t,e,n){t.exports=n(0)},function(t,e,n){t.exports=n(25)},function(t,e,n){var r=n(9),i=n(26);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(100),i=n(30),a=n(29),o=n(32);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(101),fillPathByDiff:n(102),formatPath:n(104),intersection:r,pathIntersection:r,parsePathArray:n(28),parsePathString:n(31),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(27)}},function(t,e,n){var r=n(1),i=n(27),a=n(29),o=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},s=function(t,e,n,r,i,a,s,u,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var v=l*h[d]+l,y=o(v,t,n,i,s),g=o(v,e,r,a,u),x=y*y+g*g;p+=f[d]*Math.sqrt(x)}return l*p},u=function(t,e,n,r,i,a,o,s){for(var u=[],c=[[],[]],l=void 0,h=void 0,f=void 0,p=void 0,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,f=3*n-3*t):(h=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,f=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var v=h*h-4*f*l,y=Math.sqrt(v);if(!(v<0)){var g=(-h+y)/(2*l);g>0&&g<1&&u.push(g);var x=(-h-y)/(2*l);x>0&&x<1&&u.push(x)}}for(var m=u.length,b=m,M=void 0;m--;)M=1-(p=u[m]),c[0][m]=M*M*M*t+3*M*M*p*n+3*M*p*p*i+p*p*p*o,c[1][m]=M*M*M*e+3*M*M*p*r+3*M*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},l=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},f=function(t,e,n,i,a,o,s,c){r(t)||(t=[t,e,n,i,a,o,s,c]);var l=u.apply(null,t);return h(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},p=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),v=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),g=r+2*u*(a-r)+f*(s-2*a+r);return{x:l*t+3*h*u*n+3*c*u*u*i+p*o,y:l*e+3*h*u*r+3*c*u*u*a+p*s,m:{x:d,y:v},n:{x:y,y:g},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-y,v-g)/Math.PI}},d=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),l(e,t.x,t.y)||l(e,t.x2,t.y)||l(e,t.x,t.y2)||l(e,t.x2,t.y2)||l(t,e.x,e.y)||l(t,e.x2,e.y)||l(t,e.x,e.y2)||l(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(f(t),f(e)))return n?0:[];for(var r=~~(s.apply(0,t)/8),i=~~(s.apply(0,e)/8),a=[],o=[],u={},d=n?0:[],v=0;v<r+1;v++){var y=p.apply(0,t.concat(v/r));a.push({x:y.x,y:y.y,t:v/r})}for(var g=0;g<i+1;g++){var x=p.apply(0,e.concat(g/i));o.push({x:x.x,y:x.y,t:g/i})}for(var m=0;m<r;m++)for(var b=0;b<i;b++){var M=a[m],w=a[m+1],_=o[b],P=o[b+1],A=Math.abs(w.x-M.x)<.001?"y":"x",S=Math.abs(P.x-_.x)<.001?"y":"x",k=c(M.x,M.y,w.x,w.y,_.x,_.y,P.x,P.y);if(k){if(u[k.x.toFixed(4)]===k.y.toFixed(4))continue;u[k.x.toFixed(4)]=k.y.toFixed(4);var O=M.t+Math.abs((k[A]-M[A])/(w[A]-M[A]))*(w.t-M.t),T=_.t+Math.abs((k[S]-_[S])/(P[S]-_[S]))*(P.t-_.t);O>=0&&O<=1&&T>=0&&T<=1&&(n?d++:d.push({x:k.x,y:k.y,t1:O,t2:T}))}}return d};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var r=void 0,i=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,p=void 0,v=n?0:[],y=0,g=t.length;y<g;y++){var x=t[y];if("M"===x[0])r=u=x[1],i=c=x[2];else{"C"===x[0]?(f=[r,i].concat(x.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,c,u,c],r=u,i=c);for(var m=0,b=e.length;m<b;m++){var M=e[m];if("M"===M[0])o=l=M[1],s=h=M[2];else{"C"===M[0]?(p=[o,s].concat(M.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,l,h,l,h],o=l,s=h);var w=d(f,p,n);if(n)v+=w;else{for(var _=0,P=w.length;_<P;_++)w[_].segment1=y,w[_].segment2=m,w[_].bez1=f,w[_].bez2=p;v=v.concat(w)}}}}}return v}(t,e)}},function(t,e){function n(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function r(t,e,r){if(1===r)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,r){var i=[[t[1],t[2]]];r=r||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/r,u=0;u<r-1;u++){var c=n(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,r));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=r-1;o++)i.push(a)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,a=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<i-n;s++)t.push(t[0]);return t}for(var u=0;u<i;u++){var c=Math.floor(a*u);o[c]=(o[c]||0)+1}var l=o.reduce((function(e,i,a){return a===n?e.concat(t[n]):e.concat(r(t[a],t[a+1],i))}),[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l}},function(t,e,n){var r=n(103);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}t.exports=function(t,e){var n=function(t,e){var n=t.length,a=e.length,o=void 0,s=void 0,u=0;if(0===n||0===a)return null;for(var c=[],l=0;l<=n;l++)c[l]=[],c[l][0]={min:l};for(var h=0;h<=a;h++)c[0][h]={min:h};for(var f=1;f<=n;f++){o=t[f-1];for(var p=1;p<=a;p++){s=e[p-1],u=r(o,s)?0:1;var d=c[f-1][p].min+1,v=c[f][p-1].min+1,y=c[f-1][p-1].min+u;c[f][p]=i(d,v,y)}}return c}(t,e),a=t.length,o=e.length,s=[],u=1,c=1;if(n[a][o]!==a){for(var l=1;l<=a;l++){var h=n[l][l].min;c=l;for(var f=u;f<=o;f++)n[l][f].min<h&&(h=n[l][f].min,c=f);u=c,n[l][u].type&&s.push({index:l-1,type:n[l][u].type})}for(var p=s.length-1;p>=0;p--)u=s[p].index,"add"===s[p].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(var d=0;d<o-a;d++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){var r=n(0);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function r(t,e,r){for(var i=[].concat(t),a=void 0,o=1/(r+1),s=n(e)[0],u=1;u<=r;u++)o*=u,0===(a=Math.floor(t.length*o))?i.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):i.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return i}t.exports=function(t,e){if(t.length<=1)return t;for(var i=void 0,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(i=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(i[0]);break;case"L":t[a]=["L"].concat(i[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=i[0][0],t[a][7]=i[0][1];break;case"Q":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(a>0)){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var r={lc:n(106),lowerCase:n(33),lowerFirst:n(107),substitute:n(108),uc:n(109),upperCase:n(34),upperFirst:n(110)};t.exports=r},function(t,e,n){t.exports=n(33)},function(t,e,n){var r=n(8);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){t.exports=n(34)},function(t,e,n){var r=n(8);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(2),i={getType:n(35),isArray:n(1),isArrayLike:n(4),isBoolean:n(112),isFunction:n(3),isNil:n(5),isNull:n(113),isNumber:n(6),isObject:n(16),isObjectLike:n(13),isPlainObject:n(7),isPrototype:n(36),isType:r,isUndefined:n(114),isString:n(10),isRegExp:n(115),isDate:n(116),isArguments:n(117),isError:n(118)};t.exports=i},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Boolean")}},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"RegExp")}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Date")}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Arguments")}},function(t,e,n){var r=n(2);t.exports=function(t){return r(t,"Error")}},function(t,e,n){var r=n(3),i=n(14),a=n(11);t.exports=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){t.exports=function(t,e,n){var r=void 0;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){var r=n(7),i=n(1);function a(t,e,n,o){for(var s in n=n||0,o=o||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&r(u)?(r(t[s])||(t[s]={}),n<o?a(t[s],u,n+1,o):t[s]=e[s]):i(u)?(t[s]=[],t[s]=t[s].concat(u)):void 0!==u&&(t[s]=u)}}t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)a(r,t[i]);return r}},function(t,e,n){var r=n(3),i=n(11);t.exports=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t}},function(t,e,n){var r=n(37);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){var r=n(5),i=n(4),a=n(35),o=n(36),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){var r=n(3),i=n(39);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(0),i=n(4);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){n.push(e(t,r))})),n}},function(t,e,n){var r=n(0),i=n(7),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,(function(e){a.call(t,e)&&(n[e]=t[e])})),n}},function(t,e){t.exports=function(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,a=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,l)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}},function(t,e){var n,r=(n={},function(t){return n[t=t||"g"]?n[t]+=1:n[t]=1,t+n[t]});t.exports=r}])},t.exports=r()},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return o})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return v})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return x})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return M})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return _})),n.d(e,"__importDefault",(function(){return P})),n.d(e,"__classPrivateFieldGet",(function(){return A})),n.d(e,"__classPrivateFieldSet",(function(){return S}));
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(t){a(t)}}function s(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function f(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function x(t){return this instanceof x?(this.v=t,this):new x(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof x?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(t){l(a[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:x(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function P(t){return t&&t.__esModule?t:{default:t}}function A(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.height=r,this.width=n,this.x=this.minX=t,this.y=this.minY=e;var i=this.maxX=t+n,a=this.maxY=e+r;this.tl={x:t,y:e},this.tr={x:i,y:e},this.bl={x:t,y:a},this.br={x:i,y:a},this.bottom=0,this.left=this.x,this.right=0,this.top=this.y}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(10),o=n(4),s={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isShape=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t){},e.prototype.afterPath=function(t){},e.prototype.isPointInPath=function(t,e){return!1},e.prototype.drawInner=function(t){var e=this.attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var r=e.fillOpacity;i.isNil(r)||1===r?t.fill():(t.globalAlpha=r,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&this.attrs.lineWidth>0){var a=e.strokeOpacity;i.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}this.afterPath(t)},e.prototype.isHitBox=function(){return!0},e.prototype.isHit=function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!o.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this.attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},e.prototype.calculateBox=function(){return null},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},e.prototype.clearTotalMatrix=function(){this.cfg.totalMatrix=null,this.cfg.region=null},e.prototype.clearBBox=function(){this.cfg.box=null,this.cfg.region=null},e.prototype.getBBox=function(){var t=this.get("box");return t||(t=this.calculateBox())&&this.set("box",t),t},e.prototype.clone=function(){var t=null,n=this.attrs,r={};return i.each(n,(function(t,e){s[e]&&i.isArray(n[e])?r[e]=function(t){for(var e=[],n=0;n<t.length;n++)i.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(n[e]):r[e]=n[e]})),(t=new e({attrs:r})).cfg.zIndex=this.cfg.zIndex,t},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.box=e.circle=e.rect=e.arcline=e.quadraticline=e.cubicline=e.polyline=e.line=void 0;var r=n(12),i=n(19),a=n(13),o=n(7);function s(t,e,n,i,a,o,s){var c=r.box(t,e,n,i,a);if(!u(c.minX,c.maxX,c.minY,c.maxY,o,s))return!1;var l=r.pointDistance(t,e,n,i,o,s);return!isNaN(l)&&l<=a/2}function u(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}e.line=s,e.polyline=function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){if(s(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}return!1},e.cubicline=function(t,e,n,r,i,o,s,u,c,l,h){return a.pointDistance(t,e,n,r,i,o,s,u,l,h)<=c/2},e.quadraticline=function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},e.arcline=function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},e.rect=function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},e.circle=function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},e.box=u},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.projectPoint=e.box=e.pointDistance=e.nearAngle=void 0;var r=n(0),i=n(2),a=function(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}},o=function(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e};e.nearAngle=function(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+a,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:o(t,n,e,!0):t<e||t>n?t:o(t,e,n,!1):e<=n?e<t&&t<n?t:o(t,e,n,!0):t>e||t<n?t:o(t,n,e,!1)},e.pointDistance=function(t,n,i,a,o,s,u,c,l){var h=[u,c],f=[t,n],p=r.vec2.subtract([],h,f),d=r.vec2.angleTo([1,0],p);d=e.nearAngle(d,a,o,s);var v=[i*Math.cos(d)+t,i*Math.sin(d)+n];return l?{x:v[0],y:v[1]}:r.vec2.distance(v,h)},e.box=function(t,n,r,o,s,u){var c=Math.PI/2,l=Math.PI,h=3*Math.PI/2,f=[],p=e.nearAngle(0,o,s,u);0===p&&f.push(a(t,n,r,0)),(p=e.nearAngle(c,o,s,u))===c&&f.push(a(t,n,r,c)),(p=e.nearAngle(l,o,s,u))===l&&f.push(a(t,n,r,l)),(p=e.nearAngle(h,o,s,u))===h&&f.push(a(t,n,r,h)),f.push(a(t,n,r,o)),f.push(a(t,n,r,s));var d=f.map((function(t){return t.x})),v=f.map((function(t){return t.y}));return i.default.fromRange(Math.min.apply(Math,d),Math.min.apply(Math,v),Math.max.apply(Math,d),Math.max.apply(Math,v))},e.projectPoint=function(t,n,r,i,a,o,s,u){return e.pointDistance(t,n,r,i,a,o,s,u,!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(13),o=n(19),s=n(39),u=n(2),c=r.vec3,l=r.mat3,h=["m","l","c","a","q","h","v","t","s","z"];function f(t,e,n){return{x:n.x+t,y:n.y+e}}function p(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function v(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(v(t,e))}var g=function(){function t(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)}return t.prototype.init=function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=h.indexOf(n)>=0,c=u?n.toUpperCase():n,l=t,d=e.endPoint,g=l[1],x=l[2];switch(c){default:break;case"M":s=u?f(g,x,d):{x:g,y:x},this.command="M",this.params=[d,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,x,d):{x:g,y:x},this.command="L",this.params=[d,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-d.x,s.y-d.y]},this.startTangent=function(){return[d.x-s.x,d.y-s.y]};break;case"H":s=u?f(g,0,d):{x:g,y:d.y},this.command="L",this.params=[d,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-d.x,s.y-d.y]},this.startTangent=function(){return[d.x-s.x,d.y-s.y]};break;case"V":s=u?f(0,g,d):{x:d.x,y:g},this.command="L",this.params=[d,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-d.x,s.y-d.y]},this.startTangent=function(){return[d.x-s.x,d.y-s.y]};break;case"Q":u?(i=f(g,x,d),a=f(l[3],l[4],d)):(i={x:g,y:x},a={x:l[3],y:l[4]}),this.command="Q",this.params=[d,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[d.x-i.x,d.y-i.y]};break;case"T":a=u?f(g,x,d):{x:g,y:x},"Q"===e.command?(i=p(e.params[1],d),this.command="Q",this.params=[d,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[d.x-i.x,d.y-i.y]}):(this.command="TL",this.params=[d,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-d.x,a.y-d.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]});break;case"C":u?(i=f(g,x,d),a=f(l[3],l[4],d),o=f(l[5],l[6],d)):(i={x:g,y:x},a={x:l[3],y:l[4]},o={x:l[5],y:l[6]}),this.command="C",this.params=[d,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-i.x,d.y-i.y]};break;case"S":u?(a=f(g,x,d),o=f(l[3],l[4],d)):(a={x:g,y:x},o={x:l[3],y:l[4]}),"C"===e.command?(i=p(e.params[2],d),this.command="C",this.params=[d,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-i.x,d.y-i.y]}):(this.command="SQ",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]});break;case"A":var m=g,b=x,M=l[3],w=l[4],_=l[5];s=u?f(l[6],l[7],d):{x:l[6],y:l[7]},this.command="A";var P=function(t,e,n,i,a,o,s){var u=r.mod(r.toRadian(s),2*Math.PI),c=t.x,l=t.y,h=e.x,f=e.y,p=Math.cos(u)*(c-h)/2+Math.sin(u)*(l-f)/2,d=-1*Math.sin(u)*(c-h)/2+Math.cos(u)*(l-f)/2,g=p*p/(a*a)+d*d/(o*o);g>1&&(a*=Math.sqrt(g),o*=Math.sqrt(g));var x=a*a*(d*d)+o*o*(p*p),m=Math.sqrt((a*a*(o*o)-x)/x);n===i&&(m*=-1),isNaN(m)&&(m=0);var b=m*a*d/o,M=m*-o*p/a,w=(c+h)/2+Math.cos(u)*b-Math.sin(u)*M,_=(l+f)/2+Math.sin(u)*b+Math.cos(u)*M,P=y([1,0],[(p-b)/a,(d-M)/o]),A=[(p-b)/a,(d-M)/o],S=[(-1*p-b)/a,(-1*d-M)/o],k=y(A,S);return v(A,S)<=-1&&(k=Math.PI),v(A,S)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[t,w,_,a,o,P,k,u,i]}(d,s,w,_,m,b,M);this.params=P;var A=e.subStart;this.subStart=A,this.endPoint=s;var S=P[5]%(2*Math.PI);r.isNumberEqual(S,2*Math.PI)&&(S=0);var k=P[6]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var O=.001;this.startTangent=function(){0===_&&(O*=-1);var t=P[3]*Math.cos(S-O)+P[1],e=P[4]*Math.sin(S-O)+P[2];return[t-A.x,e-A.y]},this.endTangent=function(){var t=P[6];t-2*Math.PI<1e-4&&(t=0);var e=P[3]*Math.cos(S+t+O)+P[1],n=P[4]*Math.sin(S+t-O)+P[2];return[d.x-e,d.y-n]};break;case"Z":this.command="Z",this.params=[d,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},t.prototype.isInside=function(t,e,n){var r=this.command,a=this.params,o=this.box;if(o&&!i.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return i.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var s=a,u=s[1],h=s[2],f=s[3],p=s[4],d=s[5],v=s[6],y=s[7],g=s[8],x=f>p?f:p,m=f>p?1:f/p,b=f>p?p/f:1;s=[t,e,1];var M=[1,0,0,0,1,0,0,0,1];return l.translate(M,M,[-u,-h]),l.rotate(M,M,-y),l.scale(M,M,[1/m,1/b]),c.transformMat3(s,s,M),i.arcline(0,0,x,d,d+v,1-g,n,s[0],s[1])}return!1},t.prototype.draw=function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7],d=o[8],v=c>l?c:l,y=c>l?1:c/l,g=c>l?l/c:1;t.translate(s,u),t.rotate(p),t.scale(y,g),t.arc(0,0,v,h,h+f,1-d),t.scale(1/y,1/g),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},t.prototype.getBBox=function(t){var e,n,r,i,c=t/2,l=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box=u.default.fromRange(Math.min(l[0].x,l[1].x)-c,Math.min(l[0].y,l[1].y)-c,Math.max(l[0].x,l[1].x)+c,Math.max(l[0].y,l[1].y)+c);break;case"SQ":case"Q":for(r=0,i=(n=o.extrema(l[0].x,l[1].x,l[2].x)).length;r<i;r++)n[r]=o.at(l[0].x,l[1].x,l[2].x,n[r]);for(n.push(l[0].x,l[2].x),r=0,i=(e=o.extrema(l[0].y,l[1].y,l[2].y)).length;r<i;r++)e[r]=o.at(l[0].y,l[1].y,l[2].y,e);e.push(l[0].y,l[2].y),this.box=u.default.fromRange(Math.min.apply(Math,n)-c,Math.min.apply(Math,e)-c,Math.max.apply(Math,n)+c,Math.max.apply(Math,e)+c);break;case"C":for(r=0,i=(n=a.extrema(l[0].x,l[1].x,l[2].x,l[3].x)).length;r<i;r++)n[r]=a.at(l[0].x,l[1].x,l[2].x,l[3].x,n[r]);for(r=0,i=(e=a.extrema(l[0].y,l[1].y,l[2].y,l[3].y)).length;r<i;r++)e[r]=a.at(l[0].y,l[1].y,l[2].y,l[3].y,e[r]);n.push(l[0].x,l[3].x),e.push(l[0].y,l[3].y),this.box=u.default.fromRange(Math.min.apply(Math,n)-c,Math.min.apply(Math,e)-c,Math.max.apply(Math,n)+c,Math.max.apply(Math,e)+c);break;case"A":var h=l,f=h[1],p=h[2],d=h[3],v=h[4],y=h[5],g=h[6],x=h[7],m=h[8],b=y,M=y+g,w=s.xExtrema(x,d,v),_=1/0,P=-1/0,A=[b,M];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var S=w+r;1===m?b<S&&S<M&&A.push(S):M<S&&S<b&&A.push(S)}for(r=0,i=A.length;r<i;r++){var k=s.xAt(x,d,v,f,A[r]);k<_&&(_=k),k>P&&(P=k)}var O=s.yExtrema(x,d,v),T=1/0,I=-1/0,C=[b,M];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var E=O+r;1===m?b<E&&E<M&&C.push(E):M<E&&E<b&&C.push(E)}for(r=0,i=C.length;r<i;r++){var j=s.yAt(x,d,v,p,C[r]);j<T&&(T=j),j>I&&(I=j)}this.box=u.default.fromRange(_-c,T-c,P+c,I+c)}},t}();e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=void 0;var r=n(6),i=n(8),a=Math.PI,o=Math.sin,s=Math.cos,u=Math.atan2,c=a/3;function l(t,e,n,r,i,l,h){var f,p,d,v,y,g,x;if(!e.fill){var m=e.arrowLength||10,b=e.arrowAngle?e.arrowAngle*a/180:c;x=u(r-l,n-i),y=Math.abs(e.lineWidth*s(x))/2,g=Math.abs(e.lineWidth*o(x))/2,h&&(y=-y,g=-g),f=i+m*s(x+b/2),p=l+m*o(x+b/2),d=i+m*s(x-b/2),v=l+m*o(x-b/2),t.beginPath(),t.moveTo(f-y,p-g),t.lineTo(i-y,l-g),t.lineTo(d-y,v-g),t.moveTo(i-y,l-g),t.lineTo(i+y,l+g),t.moveTo(i,l),t.stroke()}}function h(t,e,n,a,o,s,u){var c=u?e.startArrow:e.endArrow,l=c.d,h=0,f=o-n,p=s-a,d=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-d:f<0&&p<0?h=-Math.PI/2-d:f>=0&&p<0?h=-d-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-d);var v=function(t){var e,n=[],a=r.parsePath(t.path);if(Array.isArray(a)&&0!==a.length&&("M"===a[0][0]||"m"===a[0][0])){for(var o=a.length,s=0;s<a.length;s++){var u=a[s];e=new i.default(u,e,s===o-1),n.push(e)}return n}}(c);if(v){l&&(u?(o+=Math.sin(Math.abs(d))*l,s=s+Math.cos(Math.abs(d))*l-.5*t.lineWidth):(o-=Math.sin(Math.abs(d))*l,s=s-Math.cos(Math.abs(d))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(o,s),t.rotate(h);for(var y=0;y<v.length;y++)v[y].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}e.addStartArrow=function(t,e,n,r,i,a){"object"==typeof e.startArrow?h(t,e,n,r,i,a,!0):e.startArrow&&l(t,e,n,r,i,a,!0)},e.addEndArrow=function(t,e,n,r,i,a){"object"==typeof e.endArrow?h(t,e,n,r,i,a,!1):e.endArrow&&l(t,e,n,r,i,a,!1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(36),o={delay:"delay",rotate:"rotate"},s={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};function u(t,e){var n={},r=e.attrs;for(var i in t.attrs)n[i]=r[i];return n}var c=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.initTransform(),n.initAnimate(),n}return r.__extends(e,t),e.prototype.initAnimate=function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},e.prototype.animate=function(t,e,n,r,a){void 0===r&&(r=i.noop),void 0===a&&(a=0);this.set("animating",!0);var c=this.get("timeline");c||(c=this.get("canvas").get("timeline"),this.setSilent("timeline",c));var l=this.get("animators")||[];c.timer||c.initTimer(),i.isNumber(r)&&(a=r,r=null),i.isFunction(n)?(r=n,n="easeLinear"):n=n||"easeLinear";var h=function(t,e){var n={matrix:null,attrs:{}},r=e.attrs;for(var a in t)if("transform"===a)n.matrix=i.transform(e.getMatrix(),t[a]);else if("rotate"===a)n.matrix=i.transform(e.getMatrix(),[["r",t[a]]]);else if("matrix"===a)n.matrix=t[a];else{if(s[a]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[a]))continue;o[a]||r[a]===t[a]||(n.attrs[a]=t[a])}return n}(t,this),f={fromAttrs:u(h,this),toAttrs:h.attrs,fromMatrix:i.clone(this.getMatrix()),toMatrix:h.matrix,duration:e,easing:n,callback:r,delay:a,startTime:c.getTime(),id:i.uniqueId(),onFrame:null};t.onFrame&&(f.onFrame=t.onFrame),l.length>0?l=function(t,e){if(e.onFrame)return t;var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,(function(e,a){i.each(t,(function(t){n<t.startTime+t.duration&&r.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])}))})),e.toMatrix&&i.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}(l,f):c.addAnimator(this),l.push(f),this.setSilent("animators",l),this.setSilent("pause",{isPaused:!1})},e.prototype.stopAnimate=function(){var t=this,e=this.get("animators");i.each(e,(function(e){e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return i.each(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null})),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this},e}(a.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t,e,n,r){this.x=0,this.y=0,this.clientX=0,this.clientY=0,this.cfg={},this.bubbles=!1,this.cancelable=!1,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.type=t,this.event=e,this.bubbles=!!n,this.cancelable=!!r}return t.prototype.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.remove=function(){this.cfg.removed=!0},t.prototype.clone=function(){return r.clone(this)},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.len=e.box=e.pointDistance=e.at=void 0;var r=n(0),i=n(2);e.at=function(t,e,n){return(e-t)*n+t},e.pointDistance=function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.vec2.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.vec2.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.vec2.dot(c,u))},e.box=function(t,e,n,r,a){var o=a/2;return i.default.fromRange(Math.min(t,n)-o,Math.min(e,r)-o,Math.max(t,n)+o,Math.max(e,r)+o)},e.len=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.projectPoint=e.len=e.extrema=e.pointDistance=e.derivativeAt=e.at=void 0;var r=n(0),i=r.vec2;function a(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function o(t,e,n,r,o,s,u,c,l,h,f){var p,d,v,y,g,x,m,b,M=.005,w=1/0,_=[l,h];for(d=0;d<1;d+=.05)v=[a(t,n,o,u,d),a(e,r,s,c,d)],(y=i.squaredDistance(_,v))<w&&(p=d,w=y);w=1/0;for(var P=0;P<32&&!(M<1e-4);P++)b=p+M,v=[a(t,n,o,u,m=p-M),a(e,r,s,c,m)],y=i.squaredDistance(_,v),m>=0&&y<w?(p=m,w=y):(x=[a(t,n,o,u,b),a(e,r,s,c,b)],g=i.squaredDistance(_,x),b<=1&&g<w?(p=b,w=g):M*=.5);return f?{x:a(t,n,o,u,p),y:a(e,r,s,c,p)}:Math.sqrt(w)}function s(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}e.at=a,e.derivativeAt=function(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)},e.pointDistance=o,e.extrema=function(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,l=3*n-3*i,h=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(a=-l/c)>=0&&a<=1&&h.push(a);else{var f=c*c-4*u*l;r.isNumberEqual(f,0)?h.push(-c/(2*u)):f>0&&(o=(-c-(s=Math.sqrt(f)))/(2*u),(a=(-c+s)/(2*u))>=0&&a<=1&&h.push(a),o>=0&&o<=1&&h.push(o))}return h},e.len=function(t,e,n,i,a,o,u,c,l){r.isNil(l)&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v<12;v++){var y=h*f[v]+h,g=s(y,t,n,a,u),x=s(y,e,i,o,c),m=g*g+x*x;d+=p[v]*Math.sqrt(m)}return h*d},e.projectPoint=function(t,e,n,r,i,a,s,u,c,l){return o(t,e,n,r,i,a,s,u,c,l,!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathTocurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(0),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],u=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n};e.parsePathString=s;var u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=u;var c=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},l=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,l=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],l=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,v=h,y=t.length;v<y;v++){if(r.push(p=[]),(e=(d=t[v])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var g=2,x=(n=[i,a].concat(d.slice(1))).length;g<x;g++)n[g]=+n[g]+i,n[++g]=+n[g]+a;r.pop(),r=r.concat(u(n,f));break;case"O":r.pop(),(n=c(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,l=+d[2]+a;break;default:for(g=1,x=d.length;g<x;g++)p[g]=+d[g]+(g%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=c(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var m=0,b=d.length;m<b;m++)p[m]=d[m];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+l;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],l=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=l;var h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function(t,e,n,r,i,a,o,s,u,c){n===r&&(n+=1);var l,h,f,d,v,y=120*Math.PI/180,g=Math.PI/180*(+i||0),x=[],m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)h=c[0],f=c[1],d=c[2],v=c[3];else{t=(l=m(t,e,-g)).x,e=l.y,s=(l=m(s,u,-g)).x,u=l.y,t===s&&e===u&&(s+=1,u+=1);var b=(t-s)/2,M=(e-u)/2,w=b*b/(n*n)+M*M/(r*r);w>1&&(n*=w=Math.sqrt(w),r*=w);var _=n*n,P=r*r,A=(a===o?-1:1)*Math.sqrt(Math.abs((_*P-_*M*M-P*b*b)/(_*M*M+P*b*b)));d=A*n*M/r+(t+s)/2,v=A*-r*b/n+(e+u)/2,h=Math.asin(((e-v)/r).toFixed(9)),f=Math.asin(((u-v)/r).toFixed(9)),h=t<d?Math.PI-h:h,f=s<d?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),o&&h>f&&(h-=2*Math.PI),!o&&f>h&&(f-=2*Math.PI)}var S=f-h;if(Math.abs(S)>y){var k=f,O=s,T=u;f=h+y*(o&&f>h?1:-1),s=d+n*Math.cos(f),u=v+r*Math.sin(f),x=p(s,u,n,r,i,0,o,O,T,[f,k,d,v])}S=f-h;var I=Math.cos(h),C=Math.sin(h),E=Math.cos(f),j=Math.sin(f),N=Math.tan(S/4),L=4/3*n*N,B=4/3*r*N,q=[t,e],R=[t+L*C,e-B*I],F=[s+L*j,u-B*E],D=[s,u];if(R[0]=2*q[0]-R[0],R[1]=2*q[1]-R[1],c)return[R,F,D].concat(x);for(var W=[],Y=0,H=(x=[R,F,D].concat(x).join().split(",")).length;Y<H;Y++)W[Y]=Y%2?m(x[Y-1],x[Y],g).y:m(x[Y],x[Y+1],g).x;return W},d=function(t,e){var n,r=l(t),i=e&&l(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",d="",v=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},g=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var x=0;x<n;x++){r[x]&&(c=r[x][0]),"C"!==c&&(s[x]=c,x&&(d=s[x-1])),r[x]=v(r[x],a,d),"A"!==s[x]&&"C"===c&&(s[x]="C"),y(r,x),i&&(i[x]&&(c=i[x][0]),"C"!==c&&(u[x]=c,x&&(d=u[x-1])),i[x]=v(i[x],o,d),"A"!==u[x]&&"C"===c&&(u[x]="C"),y(i,x)),g(r,i,a,o,x),g(i,r,o,a,x);var m=r[x],b=i&&i[x],M=m.length,w=i&&b.length;a.x=m[M-2],a.y=m[M-1],a.bx=parseFloat(m[M-4])||a.x,a.by=parseFloat(m[M-3])||a.y,o.bx=i&&(parseFloat(b[w-4])||o.x),o.by=i&&(parseFloat(b[w-3])||o.y),o.x=i&&b[w-2],o.y=i&&b[w-1]}return i?[r,i]:r};e.pathTocurve=d;var v=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(v,"$1")};e.parsePathArray=y;var g=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},x=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=c*l[p]+c,v=g(d,t,n,i,o),y=g(d,e,r,a,s),x=v*v+y*y;f+=h[p]*Math.sqrt(x)}return c*f},m=function(t,e,n,r,i,a,o,s){for(var u,c,l,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,l=3*n-3*t):(c=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,l=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;(h=-l/c)>0&&h<1&&f.push(h)}else{var v=c*c-4*l*u,y=Math.sqrt(v);if(!(v<0)){var g=(-c+y)/(2*u);g>0&&g<1&&f.push(g);var x=(-c-y)/(2*u);x>0&&x<1&&f.push(x)}}for(var m,b=f.length,M=b;b--;)m=1-(h=f[b]),p[0][b]=m*m*m*t+3*m*m*h*n+3*m*h*h*i+h*h*h*o,p[1][b]=m*m*m*e+3*m*m*h*r+3*m*h*h*a+h*h*h*s;return p[0][M]=t,p[1][M]=e,p[0][M+1]=o,p[1][M+1]=s,p[0].length=p[1].length=M+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},M=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},w=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=w;var _=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:w(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var c=m.apply(null,t);return _(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),v=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),g=r+2*u*(a-r)+f*(s-2*a+r);return{x:l*t+3*h*u*n+3*c*u*u*i+p*o,y:l*e+3*h*u*r+3*c*u*u*a+p*s,m:{x:d,y:v},n:{x:y,y:g},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-y,v-g)/Math.PI}},S=function(t,e,n){if(!function(t,e){return t=_(t),e=_(e),M(e,t.x,t.y)||M(e,t.x2,t.y)||M(e,t.x,t.y2)||M(e,t.x2,t.y2)||M(t,e.x,e.y)||M(t,e.x2,e.y)||M(t,e.x,e.y2)||M(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(x.apply(0,t)/8),i=~~(x.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<r+1;c++){var l=A.apply(0,t.concat(c/r));a.push({x:l.x,y:l.y,t:c/r})}for(c=0;c<i+1;c++){l=A.apply(0,e.concat(c/i));o.push({x:l.x,y:l.y,t:c/i})}for(c=0;c<r;c++)for(var h=0;h<i;h++){var f=a[c],p=a[c+1],d=o[h],v=o[h+1],y=Math.abs(p.x-f.x)<.001?"y":"x",g=Math.abs(v.x-d.x)<.001?"y":"x",m=b(f.x,f.y,p.x,p.y,d.x,d.y,v.x,v.y);if(m){if(s[m.x.toFixed(4)]===m.y.toFixed(4))continue;s[m.x.toFixed(4)]=m.y.toFixed(4);var w=f.t+Math.abs((m[y]-f[y])/(p[y]-f[y]))*(p.t-f.t),S=d.t+Math.abs((m[g]-d[g])/(v[g]-d[g]))*(v.t-d.t);w>=0&&w<=1&&S>=0&&S<=1&&(n?u+=1:u.push({x:m.x,y:m.y,t1:w,t2:S}))}}return u};function k(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,u,c,l,h,f;t=d(t),e=d(e);for(var p=n?0:[],v=0,y=t.length;v<y;v++){var g=t[v];if("M"===g[0])r=s=g[1],i=u=g[2];else{"C"===g[0]?(h=[r,i].concat(g.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var x=0,m=e.length;x<m;x++){var b=e[x];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,c,l,c,l],a=c,o=l);var M=S(h,f,n);if(n)p+=M;else{for(var w=0,_=M.length;w<_;w++)M[w].segment1=v,M[w].segment2=x,M[w].bez1=h,M[w].bez2=f;p=p.concat(M)}}}}}return p}(t,e)};var O=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=k(a,o/(1-o*s));i.push(u.left),a=u.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var u=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(O(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function I(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function C(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=E(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function E(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=a;c++)s[0][c]={min:c};for(u=1;u<=i;u++){n=t[u-1];for(c=1;c<=a;c++){r=e[c-1],o=T(n,r)?0:1;var l=s[u-1][c].min+1,h=s[u][c-1].min+1,f=s[u-1][c-1].min+o;s[u][c]=I(l,h,f)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var l=o;l<=i;l++)n[u][l].min<c&&(c=n[u][l].min,s=l);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(u=a.length-1;u>=0;u--)o=a[u].index,"add"===a[u].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r<i)for(u=0;u<h;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=E(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=C(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=C(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=C(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(43);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r.default}});var i=n(44);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(45);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return a.default}});var o=n(46);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var s=n(47);Object.defineProperty(e,"Fan",{enumerable:!0,get:function(){return s.default}});var u=n(48);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return u.default}});var c=n(49);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return c.default}});var l=n(18);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return l.default}});var h=n(50);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return h.default}});var f=n(51);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}});var p=n(52);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return p.default}});var d=n(53);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return d.default}});var v=n(54);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return v.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0);document&&(r=i.createDom('<canvas width="500" height="500"></canvas>')),e.default=function(t,e,n){var i=n.get("canvas"),a=(r=r||i.get("offscreenCanvas")).getContext("2d");return n.createPath(a),a.isPointInPath(t,e)}},function(t,e,n){"use strict";(function(t){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){this.name=t,this.version=e,this.os=n};e.BrowserInfo=r;var i=function(e){this.version=e,this.name="node",this.os=t.platform};e.NodeInfo=i;var a=function(){this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=a;var o=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],s=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]];function u(t){var e=""!==t&&o.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new a;var u=s[1]&&s[1].split(/[._]/).slice(0,3);return u?u.length<3&&(u=n(u,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length))):u=[],new r(i,u.join("."),c(t))}function c(t){for(var e=0,n=s.length;e<n;e++){var r=s[e],i=r[0];if(r[1].test(t))return i}return null}function l(){return void 0!==t&&t.version?new i(t.version.slice(1)):null}e.detect=function(t){return t?u(t):"undefined"!=typeof navigator?u(navigator.userAgent):l()},e.parseUserAgent=u,e.detectOS=c,e.getNodeVersion=l}).call(this,n(23))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(6),o=n(3),s=n(8),u=n(4),c=n(2),l=n(40),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{path:null,x:0,y:0,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this.attrs,r=n.x,i=n.y,a=n.radius,o=this.getHitLineWidth();return u.circle(r,i,a+o/2,t,e)},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return c.default.fromRange(e-i,n-i,e+i,n+i)},e.prototype._getPath=function(){var t,e=this.attrs,n=e.x,r=e.y,a=e.radius,o=e.symbol||"circle";return(t=i.isFunction(o)?o:l.default.get(o))?t(n,r,a):(console.warn(t+" symbol is not exist."),null)},e.prototype.createPath=function(t){var e=this.cfg.segments;if(!e||this.cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(o=0;o<r.length;o++){var i=r[o];n=new s.default(i,n,o===r.length-1),e.push(n),n.draw(t)}this.cfg.segments=e,this.cfg.hasUpdate=!1}else{t.beginPath();for(var o=0;o<e.length;o++)e[o].draw(t)}},e.symbolsFactory=l.default,e}(o.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.projectPoint=e.extrema=e.pointDistance=e.at=void 0;var r=n(0),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,c,l){var h,f,p,d,v,y,g,x=.005,m=1/0,b=[u,c];for(v=0;v<1;v+=.05)p=[a(t,n,o,v),a(e,r,s,v)],(f=i.squaredDistance(b,p))<m&&(h=v,m=f);for(m=1/0,g=0;g<32&&!(x<1e-4);g++){var M=h-x,w=h+x;p=[a(t,n,o,M),a(e,r,s,M)],f=i.squaredDistance(b,p),M>=0&&f<m?(h=M,m=f):(d=[a(t,n,o,w),a(e,r,s,w)],y=i.squaredDistance(b,d),w<=1&&y<m?(h=w,m=y):x*=.5)}return l?{x:a(t,n,o,h),y:a(e,r,s,h)}:Math.sqrt(m)}e.at=a,e.pointDistance=o,e.extrema=function(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var a=(t-e)/i;return a<=1&&a>=0?[a]:[]},e.projectPoint=function(t,e,n,r,i,a,s,u){return o(t,e,n,r,i,a,s,u,!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(10),o=n(2),s=n(15),u={};function c(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a.cfg.visible&&a.cfg.capture&&!a.destroyed&&!a.removed&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}var l=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.isGroup=!0,n.type="group",n.canFill=!0,n.canStroke=!0,n.set("children",[]),n.set("tobeRemoved",[]),n._beforeRenderUI(),n._renderUI(),n._bindUI(),n}return r.__extends(e,t),e.prototype._beforeRenderUI=function(){},e.prototype._renderUI=function(){},e.prototype._bindUI=function(){},e.prototype.addShape=function(t,e){var n=this.get("canvas");e=e||{};var r=u[t];if(r||(r=i.upperFirst(t),u[t]=r),e.attrs&&n){var a=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(a.fontFamily=a.fontFamily?a.fontFamily:o)}}e.canvas=n,e.type=t;var c=new s[r](e);return this.add(c),c},e.prototype.addGroup=function(t,n){var r,a=this.get("canvas");if(n=i.mix({},n),i.isFunction(t))n?(n.canvas=a,n.parent=this,r=new t(n)):r=new t({canvas:a,parent:this}),this.add(r);else if(i.isObject(t))t.canvas=a,r=new e(t),this.add(r);else{if(void 0!==t)return!1;r=new e,this.add(r)}return r},e.prototype.renderBack=function(t,e){var n=this.get("backShape"),r=this.getBBox();return i.mix(e,{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},e.prototype.removeChild=function(e,n){if(arguments.length>=2)this.contain(e)&&e.remove(n);else{if(1===arguments.length){if(!i.isBoolean(e))return this.contain(e)&&e.remove(!0),this;n=e}0===arguments.length&&(n=!0),t.prototype.remove.call(this,n)}return this},e.prototype.add=function(t){var e=this,n=e.get("children");if(i.isArray(t))i.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e.cfg.children=n.concat(t);else{var r=t,a=r.get("parent");a&&a.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}return e},e.prototype._setCfgProperty=function(t){var e=this.cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},e.prototype.contain=function(t){return this.get("children").indexOf(t)>-1},e.prototype.getChildByIndex=function(t){return this.get("children")[t]},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=this.get("children");return a.length>0?i.each(a,(function(i){if(i.get("visible")){var a=i.getBBox();if(!a)return!0;var o=a.tl,s=a.tr,u=a.bl,c=a.br,l=[o.x,o.y,1],h=[u.x,u.y,1],f=[s.x,s.y,1],p=[c.x,c.y,1];i.apply(l),i.apply(h),i.apply(f),i.apply(p);var d=Math.min(l[0],h[0],f[0],p[0]),v=Math.max(l[0],h[0],f[0],p[0]),y=Math.min(l[1],h[1],f[1],p[1]),g=Math.max(l[1],h[1],f[1],p[1]);d<t&&(t=d),v>e&&(e=v),y<n&&(n=y),g>r&&(r=g)}})):(t=0,e=0,n=0,r=0),new o.default(t,n,e-t,r-n)},e.prototype.getCount=function(){return this.get("children").length},e.prototype.sort=function(){var t,e=this.get("children");return i.each(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.find=function(t){if(i.isString(t))return this.findById(t);var e=this.get("children"),n=null;return i.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},e.prototype.findAll=function(t){var e=this.get("children"),n=[],r=[];return i.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))})),n},e.prototype.findBy=function(t){var e=this.get("children"),n=null;return i.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},e.prototype.findAllBy=function(t){var e=this.get("children"),n=[],r=[];return i.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))})),n},e.prototype.getShape=function(t,e,n){var r,i=this.attrs.clip,a=this.cfg.children;if(i){var o=[t,e,1];i.invert(o,this.get("canvas")),i.isPointInPath(o[0],o[1])&&(r=c(a,t,e))}else r=c(a,t,e);return r},e.prototype.clearTotalMatrix=function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this.cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},e.prototype.clear=function(t){if(!this.destroyed){for(var e=this.cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this.cfg.children=[],this}},e.prototype.destroy=function(){this.destroyed||(this.clear(),t.prototype.destroy.call(this))},e.prototype.clone=function(){var t=this.cfg.children,n=new e;return i.each(t,(function(t){n.add(t.clone())})),n},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Shapes=e.Shape=e.PathUtil=e.PathSegment=e.Group=e.Event=e.Element=e.Canvas=e.BBox=e.version=void 0;var r=n(1),i=n(2);e.BBox=i.default;var a=n(22);e.Canvas=a.default;var o=n(10);e.Element=o.default;var s=n(11);e.Event=s.default;var u=n(20);e.Group=u.default;var c=n(8);e.PathSegment=c.default;var l=n(3);e.Shape=l.default;var h=n(14);e.PathUtil=h;var f=n(15);e.Shapes=f;var p=n(55);e.version=p.version,r.__exportStar(n(15),e),r.__exportStar(n(56),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(17),o=n(24),s=n(11),u=n(42),c=n(20),l=a.detect(),h=l&&"firefox"===l.name,f=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"],p=null,d=null,v=null,y=function(t){function e(e){var n=t.call(this,r.__assign({eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas",supportCSSTransform:!1},e))||this;return n._setGlobalParam(),n._setContainer(),n._initPainter(),n._scale(),n.get("eventEnable")&&n.registerEvent(),n}return r.__extends(e,t),e.prototype._scale=function(){if("svg"!==this.cfg.renderType){var t=this.get("pixelRatio");this.scale(t,t)}},e.prototype._setGlobalParam=function(){var t=this.get("renderer")||"canvas";"svg"===t?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",i.getRatio()),this.cfg.renderType=t;var e=o[t];this.cfg.renderer=e,this.cfg.canvas=this;var n=new u.default(this);this.cfg.timeline=n},e.prototype._setContainer=function(){var t=this.get("containerId"),e=this.get("containerDOM");!e&&document&&(e=document.getElementById(t),this.set("containerDOM",e)),e&&i.modifyCSS(e,{position:"relative"})},e.prototype._initPainter=function(){var t=this.get("containerDOM"),e=this.get("context"),n=new this.cfg.renderer.painter(t,e);this.cfg.painter=n,this.cfg.canvasDOM=this.cfg.el=n.canvas,this.changeSize(this.get("width"),this.get("height"))},e.prototype._resize=function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},e.prototype.getWidth=function(){var t=this.get("pixelRatio");return this.get("width")*t},e.prototype.getHeight=function(){var t=this.get("pixelRatio");return this.get("height")*t},e.prototype.changeSize=function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){var e=this.get("pixelRatio")||1;if(h&&!i.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX*e,y:t.layerY*e};if(!i.isNil(t.offsetX))return{x:t.offsetX*e,y:t.offsetY*e}}var n=this.getClientByEvent(t),r=n.x,a=n.y;return this.getPointByClient(r,a)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:t/r+n.left,clientY:e/r+n.top}},e.prototype.draw=function(){this.cfg.painter.draw(this)},e.prototype.getShape=function(e,n,r){return 3===arguments.length&&this.cfg.renderer.getShape?this.cfg.renderer.getShape.call(this,e,n,r):t.prototype.getShape.call(this,e,n)},e.prototype.getRenderer=function(){return this.cfg.renderType},e.prototype._drawSync=function(){this.cfg.painter.drawSync(this)},e.prototype.destroy=function(){var e=this.cfg,n=e.containerDOM,r=e.canvasDOM;r&&n&&n.removeChild(r),e.timeline.stop(),t.prototype.destroy.call(this)},e.prototype.registerEvent=function(){var t=this,e=this.get("el");i.each(f,(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){i.isEmpty(e.targetTouches)||t._triggerEvent("touchstart",e)}),!1),e.addEventListener("touchmove",(function(e){i.isEmpty(e.targetTouches)||t._triggerEvent("touchmove",e)}),!1),e.addEventListener("touchend",(function(e){i.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e)}),!1)},e.prototype._getEmitter=function(t,e){if(t){if(!i.isEmpty(t.getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this._getEmitter(n,e)}},e.prototype._getEventObj=function(t,e,n,r){var i=new s.default(t,e,!0,!0);return i.x=n.x,i.y=n.y,i.clientX=e.clientX,i.clientY=e.clientY,i.target=r,i.currentTarget=this._getEmitter(r,i),i},e.prototype._triggerEvent=function(t,e){var n=this.getPointByEvent(e),r=this.getShape(n.x,n.y,e),i=this.get("el");if(v&&"svg"===this.getRenderer()&&(r=this.getShape(n.x,n.y)),"mousemove"===t){if(p&&p!==r&&(this._emitEvent("mouseout",e,n,p),this._emitEvent("mouseleave",e,n,p),v&&this._emitEvent("dragleave",e,n,p),p.destroyed||p.removed||(i.style.cursor=p.attr("cursor")||"default")),v&&(this._emitEvent("drag",e,n,v),this._emitEvent("mousemove",e,n,r||this)),r)v||(d===r?(v=r,d=null,this._emitEvent("dragstart",e,n,r)):this._emitEvent("mousemove",e,n,r)),p!==r&&(this._emitEvent("mouseenter",e,n,r),this._emitEvent("mouseover",e,n,r),v&&this._emitEvent("dragenter",e,n,r));else{var a=this._getEventObj("mousemove",e,n,this);this.emit("mousemove",a)}p=r}else this._emitEvent(t,e,n,r||this),v||"mousedown"!==t||(d=r),"mouseup"===t&&(d=null,v&&(v.cfg.capture=!0,this._emitEvent("dragend",e,n,v),v=null,this._emitEvent("drop",e,n,r||this)));r&&!r.destroyed&&(i.style.cursor=r.attr("cursor")||"default")},e.prototype._emitEvent=function(t,e,n,r){var i=this._getEventObj(t,e,n,r),a=this._getEmitter(r,e);return a&&a.emit(t,i),a},e}(c.default);e.default=y},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,c=[],l=!1,h=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.svg=e.canvas=void 0;var r=n(25);e.canvas=r;var i=n(28);e.svg=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);Object.defineProperty(e,"painter",{enumerable:!0,get:function(){return r.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(27),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t,e){if(!t)return this.type="canvas",this.canvas=e.canvas,this.context=e,this;var n=r.uniqueId("canvas_"),i=r.createDom('<canvas id="'+n+'"></canvas>');return t.appendChild(i),this.type="canvas",this.canvas=i,this.context=i.getContext("2d"),this}return t.prototype.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},t.prototype.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t)}finally{e.toDraw=!1}}()},t.prototype.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},t.prototype._drawGroup=function(t){if(!t.removed&&!t.destroyed&&t.cfg.visible){var e=t.cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},t.prototype._drawShape=function(t){t.removed||t.destroyed||!t.cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t.cfg.attrs=t.attrs,t.cfg.hasUpdate=!1)},t.prototype.setContext=function(t){var e=this.context,n=t.attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},t.prototype.restoreContext=function(t){this.context.restore()},t.prototype.resetContext=function(t){var e=this.context,n=t.attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseStyle=e.parsePath=void 0;var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(c);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}e.parsePath=function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},e.parseStyle=function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2],h=e.getBBox(),f=h.maxX,p=h.maxY;u>=0&&u<.5*Math.PI?(i={x:h.x,y:h.y},a={x:f,y:p}):.5*Math.PI<=u&&u<Math.PI?(i={x:f,y:h.y},a={x:h.x,y:p}):Math.PI<=u&&u<1.5*Math.PI?(i={x:f,y:p},a={x:h.x,y:h.y}):(i={x:h.x,y:p},a={x:f,y:h.y});var d=Math.tan(u),v=d*d,y=(a.x-i.x+d*(a.y-i.y))/(v+1)+i.x,g=d*(a.x-i.x+d*(a.y-i.y))/(v+1)+i.y,x=n.createLinearGradient(i.x,i.y,y,g);return l(c,x),x}(t,e,n);if("r"===t[0])return function(t,e,n){var r=s.exec(t),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),u=r[4];if(0===o){var h=u.match(c);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX,d=f.maxY,v=p-f.x,y=d-f.y,g=Math.sqrt(v*v+y*y)/2,x=n.createRadialGradient(f.x+v*i,f.y+y*a,o*g,f.x+v/2,f.y+y/2,g);return l(u,x),x}(t,e,n);if("p"===t[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,a=u.exec(t),o=a[1],s=a[2];function c(){r=n.createPattern(i,o),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?c():(i.onload=c,i.src=i.src),r}(t,e,n)}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);Object.defineProperty(e,"painter",{enumerable:!0,get:function(){return r.default}});var i=n(41);Object.defineProperty(e,"getShape",{enumerable:!0,get:function(){return i.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(17),a=n(30),o=n(6),s=(n(18).default.symbolsFactory,{rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"}),u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},f=function(){function t(t){if(this.toDraw=!1,this.type="svg",this.removed=!1,this.destroyed=!1,!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new a.default(n),this.toDraw=!1,this}return t.prototype.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t)}finally{e.toDraw=!1}}()},t.prototype.drawSync=function(t){this._drawChildren(t)},t.prototype._drawGroup=function(t,e){var n=t.cfg;t.removed||t.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},t.prototype._drawChildren=function(t){var e,n=t.cfg.children;if(n)for(var r=0;r<n.length;r++)(e=n[r]).isGroup?this._drawGroup(e,r):this._drawShape(e,r)},t.prototype._drawShape=function(t,e){var n=t.attrs,r=t.cfg,i=r.el;t.removed||t.destroyed?i&&i.parentNode.removeChild(r.el):(!i&&r.parent&&(this._createDom(t,e),this._updateShape(t)),i=r.el,!1!==r.visible?(r.visible&&i.hasAttribute("visibility")&&i.removeAttribute("visibility"),r.hasUpdate&&this._updateShape(t),n.clip&&n.clip.cfg.hasUpdate&&this._updateShape(n.clip)):i.setAttribute("visibility","hidden"))},t.prototype._updateShape=function(t){var e=t.attrs,n=t.cfg.attrs;if(n)if(t.cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){for(var i in"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t.cfg.el.setAttribute("d",this._assembleMarker(t,e)),"rect"===t.type&&t.cfg.el.setAttribute("d",this._assembleRect(e)),e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t.cfg.attrs=r.deepMix({},t.attrs),t.cfg.hasUpdate=!1}else this._updateText(t)},t.prototype._setAttribute=function(t,e,n){var i=t.type,a=t.attrs,o=t.cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map((function(t){return t[0]+","+t[1]}))).join(" ")),void o.setAttribute("points",n);if("path"!==e)if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var c=null;c="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t.cfg[e]=c}else t.cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n);else r.isArray(n)&&o.setAttribute("d",this._formatPath(n))}},t.prototype._createDom=function(t,e){var n=s[t.type],r=t.attrs,i=t.cfg.parent;if(!n)throw new Error("the type"+t.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(t.cfg.id&&(a.id=t.cfg.id),t.cfg.el=a,i){var o=i.cfg.el;if(void 0===e)o.appendChild(a);else{var u=i.cfg.el.childNodes;"svg"===o.tagName&&(e+=1),u.length<=e?o.appendChild(a):o.insertBefore(a,u[e])}}return t.cfg.attrs={},"text"===t.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},t.prototype._assembleMarker=function(t,e){var n=t._getPath();return r.isArray(n)?n.map((function(t){return t.join(" ")})).join(""):n},t.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,a=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+a+" l"+-i+" 0 z";var u=o.parseRadius(s);return r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s,[["M "+(e+u.r1)+","+n],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(a-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-a)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},t.prototype._formatPath=function(t){return~(t=t.map((function(t){return t.join(" ")})).join("")).indexOf("NaN")?"":t},t.prototype._setTransform=function(t){for(var e=t.attrs.matrix,n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},t.prototype._setImage=function(t,e){var n=t.attrs,i=t.cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t.attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t.attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+e.width),a.setAttribute("height",""+e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t.attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t.attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},t.prototype._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t.attrs,i=t.cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,v=e(s,n.rs,a),y=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+y.x+","+y.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+v.x+","+v.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+d+","+d+",0,"+f+","+h+","+l.x+","+l.y),n.rs>0?o.push("L "+y.x+","+y.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},t.prototype._updateText=function(t){var e=t.attrs,n=t.cfg.attrs,r=t.cfg.el;for(var i in this._setFont(t),e)if(e[i]!==n[i]){if("text"===i){this._setText(t,""+e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}u[i]&&r.setAttribute(u[i],e[i])}t.cfg.attrs=Object.assign({},t.attrs),t.cfg.hasUpdate=!1},t.prototype._setFont=function(t){var e=t.get("el"),n=t.attrs,r=n.fontSize,a=i.detect();a&&"firefox"===a.name?e.setAttribute("dominant-baseline",l[n.textBaseline]||"alphabetic"):e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",h[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},t.prototype._setText=function(t,e){var n=t.cfg.el,i=t.attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t.attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},t.prototype._setClip=function(t,e){var n=t.cfg.el;if(e)if(n.hasAttribute("clip-path"))e.cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},t.prototype._setColor=function(t,e,n){var r=t.cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(a=i.find("gradient",n))||(a=i.addGradient(n)),r.setAttribute(u[e],"url(#"+a+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var a;(a=i.find("pattern",n))||(a=i.addPattern(n)),r.setAttribute(u[e],"url(#"+a+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},t.prototype._setShadow=function(t){var e=t.cfg.el,n=t.attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=n(32),o=n(33),s=n(34),u=n(35),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},t.prototype.addGradient=function(t){var e=new i.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new o.default(t,e);return this.el.appendChild(n.el),n.id},t.prototype.addShadow=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t){var e=t.match(o);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var u=function(){function t(t){this.cfg={};var e,n,o,u,c,l,h,f=null,p=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),c=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var l=Math.tan(u),h=l*l,f=(a.x-n.x+l*(a.y-n.y))/(h+1)+n.x,p=l*(a.x-n.x+l*(a.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=s(c)}(t,f=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):(f=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),e=t,n=f,o=a.exec(e),u=parseFloat(o[1]),c=parseFloat(o[2]),l=parseFloat(o[3]),h=o[4],n.setAttribute("cx",u),n.setAttribute("cy",c),n.setAttribute("r",l),n.innerHTML=s(h)),f.setAttribute("id",p),this.el=f,this.id=p,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t,e){this.cfg={};var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX","3"),n.setAttribute("refY","3")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(){function t(t){this.type="clip",this.cfg={};var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t)[2];n.setAttribute("href",o);var s=new Image;function u(){e.setAttribute("width",""+s.width),e.setAttribute("height",""+s.height)}return o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o,s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0);function a(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function o(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function s(t,e){a(e)||(o(e)?(t[0]*=e[0],t[4]*=e[4]):i.mat3.multiply(t,t,e))}var u=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.canFill=!1,n.canStroke=!1,n.attrs={},n.attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},n.attr(r.__assign(r.__assign({},n.getDefaultAttrs()),n.cfg.attrs)),n.cfg.attrs={},n}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{}},e.prototype.attr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];if(!n)return this.attrs;if(i.isObject(n)){for(var a in n)this._setAttr(a,n[a]);return this.clearBBox(),this.cfg.hasUpdate=!0,this}return 2===t.length?(this._setAttr(n,r),this.clearBBox(),this.cfg.hasUpdate=!0,this):this.attrs[n]},e.prototype._afterSetAttrPath=function(t){},e.prototype._setAttr=function(t,e){var n=this.attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"!==t?"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):this._afterSetAttrPath(e):n.globalAlpha=e:n[t+"Style"]=e},e.prototype.clearBBox=function(){this.setSilent("box",null)},e.prototype.hasFill=function(){return this.canFill&&this.attrs.fillStyle},e.prototype.hasStroke=function(){return this.canStroke&&this.attrs.strokeStyle},e.prototype._setClip=function(t){t.cfg.renderer=this.cfg.renderer,t.cfg.canvas=this.cfg.canvas,t.cfg.parent=this.cfg.parent,t.hasFill=function(){return!0}},e.prototype.initTransform=function(){},e.prototype.resetMatrix=function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},e.prototype.translate=function(t,e){var n=this.attrs.matrix;return i.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},e.prototype.rotate=function(t){var e=this.attrs.matrix;return i.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},e.prototype.scale=function(t,e){var n=this.attrs.matrix;return i.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},e.prototype.rotateAtStart=function(t){var e=this.attrs.x||0,n=this.attrs.y||0;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},e.prototype.move=function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},e.prototype.transform=function(t){var e=this,n=this.attrs.matrix;return i.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",i.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}})),this},e.prototype.setTransform=function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},e.prototype.apply=function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),i.vec3.transformMat3(t,t,n),this},e.prototype._getMatrixByRoot=function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var r=[1,0,0,0,1,0,0,0,1];return i.each(n,(function(t){i.mat3.multiply(r,t.attr("matrix"),r)})),r},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this.cfg.parent;if(e)s(t,e.getTotalMatrix());s(t,this.attr("matrix")),this.cfg.totalMatrix=t}return t},e.prototype.clearTotalMatrix=function(){},e.prototype.invert=function(t){var e=this.getTotalMatrix();if(o(e))t[0]/=e[0],t[1]/=e[4];else{var n=i.mat3.invert([],e);n&&i.vec3.transformMat3(t,t,n)}return this},e.prototype.resetTransform=function(t){var e=this.attr("matrix");a(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])},e}(n(37).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(0),o=n(11),s=["click","mousedown","mouseup","dblclick","contextmenu","mouseover","mouseout","mousemove","wheel","touchstart","touchend","touchmove","dragstart","drag","dragend","dragenter","dragleave","drop"],u=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n.destroyed=!1,n.removed=!1,n.cfg=r.__assign(r.__assign({canvas:null,capture:!0,context:null,parent:null,visible:!0,zIndex:0},e),n.getDefaultCfg()),n}return r.__extends(e,t),e.prototype.emit=function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];if(t.prototype.emit.apply(this,r.__spreadArrays([e,n],i)),!(n instanceof o.default&&n.propagationStopped)&&s.indexOf(e)>=0){var u=this.cfg.parent;!u||u.removed||u.destroyed||u.emit.apply(u,r.__spreadArrays([e,n],i))}},e.prototype.set=function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this.cfg[t]=e,this},e.prototype.setSilent=function(t,e){this.cfg[t]=e},e.prototype.get=function(t){return this.cfg[t]},e.prototype.show=function(){return this.cfg.visible=!0,this},e.prototype.hide=function(){return this.cfg.visible=!1,this},e.prototype.remove=function(t,e){var n=this.cfg,r=n.parent,i=n.el;return r&&!r.destroyed&&a.pull(r.get("children"),this),i&&(e?r&&r.cfg.tobeRemoved.push(i):i.parentNode.removeChild(i)),(t||void 0===t)&&this.destroy(),this},e.prototype.destroy=function(){this.destroyed||(this.off(),this.cfg={},this.destroyed=!0)},e.prototype.getParent=function(){return this.cfg.parent},e.prototype.getDefaultCfg=function(){return{}},e.prototype.toFront=function(){var t=this.cfg,e=t.parent;if(e){var n=e.cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},e.prototype.toBack=function(){var t=this.cfg,e=t.parent;if(e){var n=e.cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},e.prototype._beforeSetZIndex=function(t){var e=this.cfg.parent;this.cfg.zIndex=t,a.isNil(e)||e.sort();var n=this.cfg.el;if(n){var r=e.cfg.children,i=r.indexOf(this),o=n.parentNode;o.removeChild(n),i===r.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[i])}return t},e.prototype._beforeSetLoading=function(t){},e.prototype.setZIndex=function(t){return this.cfg.zIndex=t,this._beforeSetZIndex(t)},e.prototype.clone=function(){return a.clone(this)},e.prototype.getBBox=function(){},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),s.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yExtrema=e.xExtrema=e.yAt=e.xAt=void 0,e.xAt=function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},e.yAt=function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},e.xExtrema=function(t,e,n){return Math.atan(-n/e*Math.tan(t))},e.yExtrema=function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};e.default=function(t,e,n){var i=n.target||n.srcElement;if(!r[i.tagName]){for(var a=i.parentNode;a&&!r[a.tagName];)a=a.parentNode;i=a}return this.cfg.el===i?this:this.find((function(t){return t.cfg&&t.cfg.el===i}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(59),a=n(58),o=n(57),s=n(14);function u(t,e,n){var i,u=e.startTime;if(n<u+e.delay||e.isPaused)return!1;var c=e.duration,l=e.easing;if(n=n-u-e.delay,e.toAttrs.repeat)i=n%c/c,i=a[l](i);else{if(!((i=n/c)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;i=a[l](i)}if(e.onFrame){var h=e.onFrame(i);t.attr(h)}else!function(t,e,n){var i={},a=e.toAttrs,u=e.fromAttrs,c=e.toMatrix;if(!t.destroyed){var l;for(var h in a)if(!r.isEqual(u[h],a[h]))if("path"===h){var f=a[h],p=u[h];f.length>p.length?(f=s.parsePathString(a[h]),p=s.parsePathString(u[h]),p=s.fillPathByDiff(p,f),p=s.formatPath(p,f),e.fromAttrs.path=p,e.toAttrs.path=f):e.pathFormatted||(f=s.parsePathString(a[h]),p=s.parsePathString(u[h]),p=s.formatPath(p,f),e.fromAttrs.path=p,e.toAttrs.path=f,e.pathFormatted=!0),i[h]=[];for(var d=0;d<f.length;d++){for(var v=f[d],y=p[d],g=[],x=0;x<v.length;x++)r.isNumber(v[x])&&y&&r.isNumber(y[x])?(l=o.interpolate(y[x],v[x]),g.push(l(n))):g.push(v[x]);i[h].push(g)}}else l=o.interpolate(u[h],a[h]),i[h]=l(n);if(c){var m=o.interpolateArray(e.fromMatrix,c)(n);t.setMatrix(m)}t.attr(i)}}(t,e,i);return!1}var c=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this,a=this;a.timer=i.timer((function(i){if(a.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)a.removeAnimator(o);else{if(!t.get("pause").isPaused)for(var s=(e=t.get("animators")).length-1;s>=0;s--)n=e[s],u(t,n,i)&&(e.splice(s,1),!1,n.callback&&n.callback());0===e.length&&a.removeAnimator(o)}r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(){this.animators.forEach((function(t){t.stopAnimate()})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(7),o=n(9),s=n(4),u=n(2);function c(t,e,n){return t+e*Math.cos(n)}function l(t,e,n){return t+e*Math.sin(n)}var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canStroke=!0,e.type="arc",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},e.prototype.isPointInPath=function(t,e){var n=this.attrs,r=n.x,i=n.y,a=n.r,o=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&s.arcline(r,i,a,o,u,c,l,t,e)},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,c=this.getHitLineWidth(),l=c/2,h=a.box(e,n,r,i,o,s);return new u.default(h.x-l,h.y-l,h.width+c,h.height+c)},e.prototype.getStartTangent=function(){var t=this.attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var s=[],u=c(e,i,r+o),h=l(n,i,r+o),f=c(e,i,r),p=l(n,i,r);return s.push([u,h]),s.push([f,p]),s},e.prototype.getEndTangent=function(){var t=this.attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,s=[];a&&(o*=-1);var u=c(e,i,r+o),h=l(n,i,r+o),f=c(e,i,r),p=l(n,i,r);return s.push([f,p]),s.push([u,h]),s},e.prototype.createPath=function(t){var e=this.attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||this.get("context")).beginPath(),t.arc(n,r,i,a,o,s)},e.prototype.afterPath=function(t){var e=this.attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}},e}(i.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(4),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="circle",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this.attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!c&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return o.default.fromRange(e-i,n-i,e+i,n+i)},e.prototype.createPath=function(t){var e=this.attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(4),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="dom",e}return r.__extends(e,t),e.prototype.isPointInPath=function(t,e){if(!this.cfg.el)return!1;var n=this.cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return new o.default(e-a,n-a,r,i)},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(4),s=n(2),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="ellipse",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,rx:1,ry:1,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this.attrs,r=this.hasFill(),a=this.hasStroke(),s=n.x,u=n.y,c=n.rx,l=n.ry,h=this.getHitLineWidth(),f=c>l?c:l,p=c>l?1:c/l,d=c>l?l/c:1,v=[t,e,1],y=[1,0,0,0,1,0,0,0,1];i.mat3.scale(y,y,[p,d]),i.mat3.translate(y,y,[s,u]);var g=i.mat3.invert([],y);return i.vec3.transformMat3(v,v,g),r&&a?o.circle(0,0,f,v[0],v[1])||o.arcline(0,0,f,0,2*Math.PI,!1,h,v[0],v[1]):r?o.circle(0,0,f,v[0],v[1]):!!a&&o.arcline(0,0,f,0,2*Math.PI,!1,h,v[0],v[1])},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,u=i+a/2;return s.default.fromRange(e-o,n-u,e+o,n+u)},e.prototype.createPath=function(t){var e=this.attrs,n=e.x,r=e.y,a=e.rx,o=e.ry;t=t||this.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,l=[1,0,0,0,1,0,0,0,1];i.mat3.scale(l,l,[u,c]),i.mat3.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(7),o=n(3),s=n(4),u=n(2),c=n(7),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="fan",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke(),u=n.attrs,c=u.x,l=u.y,h=u.rs,f=u.re,p=u.startAngle,d=u.endAngle,v=u.clockwise,y=[t-c,e-l],g=i.vec2.angleTo([1,0],y);function x(){var t=a.nearAngle(g,p,d,v);if(i.isNumberEqual(g,t)){var e=i.vec2.squaredLength(y);if(h*h<=e&&e<=f*f)return!0}return!1}function m(){var r=n.getHitLineWidth(),i={x:Math.cos(p)*h+c,y:Math.sin(p)*h+l},a={x:Math.cos(p)*f+c,y:Math.sin(p)*f+l},o={x:Math.cos(d)*h+c,y:Math.sin(d)*h+l},u={x:Math.cos(d)*f+c,y:Math.sin(d)*f+l};return!!s.line(i.x,i.y,a.x,a.y,r,t,e)||(!!s.line(o.x,o.y,u.x,u.y,r,t,e)||(!!s.arcline(c,l,h,p,d,v,r,t,e)||!!s.arcline(c,l,f,p,d,v,r,t,e)))}return r&&o?x()||m():r?x():!!o&&m()},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.rs,i=t.re,a=t.startAngle,o=t.endAngle,s=t.clockwise,l=this.getHitLineWidth(),h=c.box(e,n,r,a,o,s),f=c.box(e,n,i,a,o,s),p=Math.min(h.minX,f.minX),d=Math.min(h.minY,f.minY),v=Math.max(h.maxX,f.maxX),y=Math.max(h.maxY,f.maxY),g=l/2;return u.default.fromRange(p-g,d-g,v+g,y+g)},e.prototype.createPath=function(t){var e=this.attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(t=t||this.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(4),s=n(2),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,img:null,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null}},e.prototype.isPointInPath=function(t,e){var n=this.attrs;if(this.get("toDraw")||!n.img)return!1;this.cfg.attrs&&this.cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,i=n.y,a=n.width,s=n.height;return o.rect(r,i,a,s,t,e)},e.prototype.isHitBox=function(){return!1},e.prototype.calculateBox=function(){var t=this.attrs;return this.cfg.attrs&&this.cfg.attrs.img===t.img||this._setAttrImg(),new s.default(t.x,t.y,t.width,t.height)},e.prototype._beforeSetLoading=function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this.cfg.loading=!1,e.draw()),t},e.prototype._setAttrImg=function(){var t=this,e=t.attrs,n=e.img;if(!i.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&i.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var r=new Image;r.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",r);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},r.src=n,r.crossOrigin="Anonymous",t.set("loading",!0)},e.prototype.drawInner=function(t){this.cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this.cfg.hasUpdate=!1)},e.prototype._drawImage=function(t){var e=this.attrs,n=e.x,r=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLImageElement&&i.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h))return void t.drawImage(f,n,r,o,s);if(!(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h)))return void t.drawImage(f,u,c,l,h,n,r,o,s)}},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(9),o=n(12),s=n(4),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canStroke=!0,e.type="line",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1}},e.prototype.isPointInPath=function(t,e){var n=this.attrs,r=n.x1,i=n.y1,a=n.x2,o=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&s.line(r,i,a,o,u,t,e)},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},e.prototype.createPath=function(t){var e=this.attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;(t=t||this.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,a)},e.prototype.afterPath=function(t){var e=this.attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},e.prototype.getPoint=function(t){var e=this.attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}},e}(i.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(8),s=n(6),u=n(9),c=n(14),l=n(13),h=n(16),f=n(2),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="path",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{path:null,lineWidth:1,startArrow:!1,endArrow:!1}},e.prototype.isPointInPath=function(t,e){var n=this,r=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!i.isEmpty(r)){for(var a=n.getHitLineWidth(),o=0,s=r.length;o<s;o++)if(r[o].isInside(t,e,a))return!0;return!1}}return a&&o?h.default(t,e,n)||s():a?h.default(t,e,n):!!o&&s()},e.prototype._afterSetAttrPath=function(t){if(i.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=s.parsePath(t),r=[];if(i.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var a=n.length,u=0;u<n.length;u++){var c=n[u];e=new o.default(c,e,u===a-1),r.push(e)}this.setSilent("segments",r),this.setSilent("tCache",null),this.setSilent("box",null)}},e.prototype.calculateBox=function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,r=-1/0,a=1/0,o=-1/0;return i.each(t,(function(t){t.getBBox(e);var i=t.box;if(i){i.x<n&&(n=i.x);var s=i.maxX;s>r&&(r=s),i.y<a&&(a=i.y);var u=i.maxY;u>o&&(o=u)}})),n===1/0||a===1/0?new f.default(0,0,0,0):new f.default(n,a,r-n,o-a)},e.prototype._setTcache=function(){var t,e,n,r,a=0,o=0,s=[],u=this.cfg.curve;u&&(i.each(u,(function(t,e){n=u[e+1],r=t.length,n&&(a+=l.len(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),i.each(u,(function(i,c){n=u[c+1],r=i.length,n&&((t=[])[0]=o/a,e=l.len(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this.cfg.tCache=s)},e.prototype._calculateCurve=function(){var t=this.attrs.path;this.cfg.curve=c.pathTocurve(t)},e.prototype.getStartTangent=function(){var t,e,n,r,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,r=[],i.isFunction(n)){var o=n();r.push([t.x-o[0],t.y-o[1]]),r.push([t.x,t.y])}else r.push([e.x,e.y]),r.push([t.x,t.y]);return r},e.prototype.getEndTangent=function(){var t,e,n,r,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,r=[],i.isFunction(n)){var s=n();r.push([e.x-s[0],e.y-s[1]]),r.push([e.x,e.y])}else r.push([t.x,t.y]),r.push([e.x,e.y]);return r},e.prototype.getPoint=function(t){var e,n,r=this.cfg.tCache;r||(this._calculateCurve(),this._setTcache(),r=this.cfg.tCache);var a=this.cfg.curve;if(!r)return a?{x:a[0][1],y:a[0][2]}:null;i.each(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(i.isNil(o)||i.isNil(n))return null;var s=o.length,u=a[n+1];return{x:l.at(o[s-2],u[1],u[3],u[5],1-e),y:l.at(o[s-1],u[2],u[4],u[6],1-e)}},e.prototype.createPath=function(t){var e=this.get("segments");if(i.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,r=0;r<n;r++)e[r].draw(t)}},e.prototype.afterPath=function(t){var e=this.attrs,n=this.get("segments"),r=e.path;if(t=t||this.get("context"),i.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==r[r.length-1]&&"Z"!==r[r.length-1]&&!e.fill){var a=this.getStartTangent();u.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();u.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}},e}(a.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(4),s=n(16),u=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="polygon",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{points:null,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this,r=n.hasFill(),i=n.hasStroke();function a(){var r=n.attrs.points;if(r.length<2)return!1;var i=n.getHitLineWidth(),a=r.slice(0);return r.length>=3&&a.push(r[0]),o.polyline(a,i,t,e)}return r&&i?s.default(t,e,n)||a():r?s.default(t,e,n):!!i&&a()},e.prototype.calculateBox=function(){var t=this.attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,r=1/0,a=-1/0,o=-1/0;i.each(t,(function(t){var e=t[0],i=t[1];e<n&&(n=e),e>a&&(a=e),i<r&&(r=i),i>o&&(o=i)}));var s=e/2;return u.default.fromRange(n-s,r-s,a+s,o+s)},e.prototype.createPath=function(t){var e=this.attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),i.each(e,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())},e}(a.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(9),s=n(12),u=n(4),c=n(2),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canStroke=!0,e.type="polyline",e.tCache=null,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null}},e.prototype.isPointInPath=function(t,e){var n=this.attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var i=n.lineWidth;return u.polyline(r,i,t,e)}return!1},e.prototype.calculateBox=function(){var t=this.attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var r=1/0,a=1/0,o=-1/0,s=-1/0;i.each(n,(function(t){var e=t[0],n=t[1];e<r&&(r=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)}));var u=e/2;return c.default.fromRange(r-u,a-u,o+u,s+u)},e.prototype._setTcache=function(){var t,e,n=this.attrs.points,r=0,a=0,o=[];n&&0!==n.length&&(i.each(n,(function(t,e){n[e+1]&&(r+=s.len(t[0],t[1],n[e+1][0],n[e+1][1]))})),r<=0||(i.each(n,(function(i,u){n[u+1]&&((t=[])[0]=a/r,e=s.len(i[0],i[1],n[u+1][0],n[u+1][1]),a+=e,t[1]=a/r,o.push(t))})),this.tCache=o))},e.prototype.createPath=function(t){var e,n,r=this.attrs.points;if(!(r.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(r[0][0],r[0][1]),n=1,e=r.length-1;n<e;n++)t.lineTo(r[n][0],r[n][1]);t.lineTo(r[e][0],r[e][1])}},e.prototype.getStartTangent=function(){var t=this.attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e.prototype.afterPath=function(t){var e=this.attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&o.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&o.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},e.prototype.getPoint=function(t){var e,n,r=this.attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),i.each(a,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:s.at(r[n][0],r[n+1][0],e),y:s.at(r[n][1],r[n+1][1],e)}},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(6),o=n(4),s=n(16),u=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="rect",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:1}},e.prototype.isPointInPath=function(t,e){var n=this,r=n.hasFill(),i=n.hasStroke();function a(){var r=n.attrs,i=r.x,a=r.y,s=r.width,u=r.height,c=r.radius,l=n.getHitLineWidth();if(0===c){var h=l/2;return o.line(i-h,a,i+s+h,a,l,t,e)||o.line(i+s,a-h,i+s,a+u+h,l,t,e)||o.line(i+s+h,a+u,i-h,a+u,l,t,e)||o.line(i,a+u+h,i,a-h,l,t,e)}return o.line(i+c,a,i+s-c,a,l,t,e)||o.line(i+s,a+c,i+s,a+u-c,l,t,e)||o.line(i+s-c,a+u,i+c,a+u,l,t,e)||o.line(i,a+u-c,i,a+c,l,t,e)||o.arcline(i+s-c,a+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||o.arcline(i+s-c,a+u-c,c,0,.5*Math.PI,!1,l,t,e)||o.arcline(i+c,a+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||o.arcline(i+c,a+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}return r&&i?s.default(t,e,n)||a():r?s.default(t,e,n):!!i&&a()},e.prototype.calculateBox=function(){var t=this.attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return u.default.fromRange(e-a,n-a,e+r+a,n+i+a)},e.prototype.createPath=function(t){var e=this.attrs,n=e.x,r=e.y,i=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,r,i,o);else{var u=a.parseRadius(s);t.moveTo(n+u.r1,r),t.lineTo(n+i-u.r2,r),0!==u.r2&&t.arc(n+i-u.r2,r+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+i,r+o-u.r3),0!==u.r3&&t.arc(n+i-u.r3,r+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,r+o),0!==u.r4&&t.arc(n+u.r4,r+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,r+u.r1),0!==u.r1&&t.arc(n+u.r1,r+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(3),o=n(4),s=n(2),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.canFill=!0,e.canStroke=!0,e.type="text",e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){return{x:0,y:0,text:null,lineHeight:1,lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",textArr:null}},e.prototype.isPointInPath=function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return o.box(n.x,n.maxX,n.minY,n.maxY,t,e)},e.prototype.initTransform=function(){var t=this.attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this.attrs.x,-1*this.attrs.y],["s",+t/12,+t/12],["t",this.attrs.x,this.attrs.y]])},e.prototype._assembleFont=function(){var t=this.attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},e.prototype._setAttrText=function(){var t=this.attrs,e=t.text,n=null;if(i.isString(e)&&-1!==e.indexOf("\n")){var r=(n=e.split("\n")).length;t.lineCount=r}t.textArr=n},e.prototype._getTextHeight=function(){var t=this.attrs,e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},e.prototype.isHitBox=function(){return!1},e.prototype.calculateBox=function(){var t=this.attrs,e=this.cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,r=t.y,i=this.measureText();if(!i)return new s.default(n,r,0,0);var a=this._getTextHeight(),o=t.textAlign,u=t.textBaseline,c=this.getHitLineWidth(),l={x:n,y:r-a};o&&("end"===o||"right"===o?l.x-=i:"center"===o&&(l.x-=i/2)),u&&("top"===u?l.y+=a:"middle"===u&&(l.y+=a/2)),this.set("startPoint",l);var h=c/2;return s.default.fromRange(l.x-h,l.y-h,l.x+i+h,l.y+a+h)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype.drawInner=function(t){var e=this.attrs,n=this.cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var r=e.text;if(!i.isNil(r)){var a=e.textArr,o=e.x,s=e.y,u=e.maxWidth;if(t.beginPath(),this.hasStroke()){var c=e.strokeOpacity;i.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!1):i.isNil(u)?t.strokeText(r,o,s):t.strokeText(r,o,s,u),t.globalAlpha=1}if(this.hasFill()){var l=e.fillOpacity;i.isNil(l)||1===l||(t.globalAlpha=l),a?this._drawTextArr(t,!0):i.isNil(u)?t.fillText(r,o,s):t.fillText(r,o,s,u)}n.hasUpdate=!1}},e.prototype._drawTextArr=function(t,e){var n,r=this.attrs.textArr,a=this.attrs.textBaseline,o=1*this.attrs.fontSize,s=this._getSpaceingY(),u=this.attrs.x,c=this.attrs.y,l=this.attrs.maxWidth,h=this.getBBox(),f=h.maxY-h.minY;i.each(r,(function(r,h){n=c+h*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?i.isNil(l)?t.fillText(r,u,n):t.fillText(r,u,n,l):i.isNil(l)?t.strokeText(r,u,n):t.strokeText(r,u,n,l)}))},e.prototype.measureText=function(){var t,e=this.attrs,n=e.text,r=e.font,a=e.textArr,o=0;if(!i.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=r,a?i.each(a,(function(e){t=s.measureText(e).width,o<t&&(o=t),s.restore()})):(o=s.measureText(n).width,s.restore()),i.isNil(e.maxWidth)||(o=Math.min(e.maxWidth,o)),o}},e}(a.default);e.default=u},function(t){t.exports=JSON.parse('{"name":"@antv/g","version":"3.5.0-beta.6","description":"A canvas library which providing 2d draw for G2.","keywords":["canvas","svg","G","G2","G6","2d draw"],"main":"lib/index.js","module":"esm/index.js","browser":"dist/g.min.js","types":"lib/index.d.ts","files":["package.json","lib","esm","dist","LICENSE","README.md"],"homepage":"https://github.com/antvis/g","author":"https://github.com/orgs/antvis/people","repository":{"type":"git","url":"git@github.com:antvis/g.git"},"bugs":{"url":"https://github.com/antvis/g/issues"},"scripts":{"test":"torch --compile --renderer --opts __tests__/mocha.opts","test-live":"torch --compile --renderer --interactive --opts __tests__/mocha.opts","build":"run-s clean lib","clean":"rimraf lib esm","lib":"run-p lib:*","lib:cjs":"loose-tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","lib:esm":"loose-tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","lib:umd":"webpack --config webpack.config.js --mode production","lint":"exit 0","coverage":"exit 0","tsc":"loose-tsc --noEmit","prettier":"prettier --write \'*.{js,ts,json,md}\'"},"husky":{"hooks":{"pre-commit":"run-s lint"}},"lint-staged":{"*.{js,json,md}":["prettier --write","git add"],"*.{ts}":["tslint -c tslint.json --fix","prettier --write","git add"]},"dependencies":{"@antv/event-emitter":"^0.1.0","@antv/gl-matrix":"~2.7.1","@antv/util":"~1.3.1","d3-ease":"~1.0.3","d3-interpolate":"~1.1.5","d3-timer":"~1.0.6","detect-browser":"^4.8.0"},"devDependencies":{"@antv/torch":"^1.0.3","@babel/cli":"^7.1.5","@babel/core":"^7.1.6","@babel/plugin-proposal-class-properties":"^7.1.0","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.2.0","@babel/preset-typescript":"^7.1.0","@commitlint/cli":"^7.2.1","@commitlint/config-angular":"^7.1.2","@types/lodash":"^4.14.119","@types/node":"^10.12.18","babel-eslint":"^10.0.1","babel-loader":"^8.0.0","babel-plugin-transform-remove-strict-mode":"~0.0.2","benchmark":"^2.1.4","chai":"~4.0.1","eslint":"^5.10.0","eslint-config-egg":"^7.1.0","eslint-config-prettier":"^6.1.0","event-simulate":"~1.0.0","git-contributor":"~1.0.8","husky":"^1.3.1","lint-staged":"^9.2.3","loose-tsc":"^0.0.1","npm-run-all":"^4.1.5","prettier":"^1.18.2","rimraf":"^3.0.0","source-map-support":"^0.5.9","ts-loader":"^5.3.1","ts-node":"^7.0.1","tslint":"^5.12.0","tslint-config-airbnb":"^5.11.1","tslint-config-prettier":"^1.18.0","typescript":"^3.2.2","webpack":"^4.26.1","webpack-cli":"^3.1.2"}}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,"interpolate",(function(){return nt})),n.d(e,"interpolateArray",(function(){return X})),n.d(e,"interpolateBasis",(function(){return N})),n.d(e,"interpolateBasisClosed",(function(){return L})),n.d(e,"interpolateDate",(function(){return z})),n.d(e,"interpolateNumber",(function(){return Q})),n.d(e,"interpolateObject",(function(){return V})),n.d(e,"interpolateRound",(function(){return rt})),n.d(e,"interpolateString",(function(){return et})),n.d(e,"interpolateTransformCss",(function(){return ut})),n.d(e,"interpolateTransformSvg",(function(){return ct})),n.d(e,"interpolateZoom",(function(){return ft})),n.d(e,"interpolateRgb",(function(){return W})),n.d(e,"interpolateRgbBasis",(function(){return H})),n.d(e,"interpolateRgbBasisClosed",(function(){return U})),n.d(e,"interpolateHsl",(function(){return dt})),n.d(e,"interpolateHslLong",(function(){return vt})),n.d(e,"interpolateLab",(function(){return Ct})),n.d(e,"interpolateHcl",(function(){return jt})),n.d(e,"interpolateHclLong",(function(){return Nt})),n.d(e,"interpolateCubehelix",(function(){return Qt})),n.d(e,"interpolateCubehelixLong",(function(){return Vt})),n.d(e,"quantize",(function(){return Zt}));var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function a(){}var o="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),h=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=new RegExp("^rgba\\("+[o,o,o,s]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),d=new RegExp("^hsl\\("+[s,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?b(e):3===n?new P(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new P(e[1],e[2],e[3],1):(e=h.exec(t))?new P(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?M(e[1],e[2],e[3],e[4]):(e=p.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?b(y[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function b(t){return new P(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new P(t,e,n,r)}function w(t){return t instanceof a||(t=m(t)),t?new P((t=t.rgb()).r,t.g,t.b,t.opacity):new P}function _(t,e,n,r){return 1===arguments.length?w(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function A(){return"#"+k(this.r)+k(this.g)+k(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function k(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new C(t,e,n,r)}function T(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=m(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,c=(o+i)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,s*=60):u=c>0&&c<1?0:s,new C(s,u,c,t.opacity)}function I(t,e,n,r){return 1===arguments.length?T(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function E(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function j(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}r(a,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return T(this).formatHsl()},formatRgb:x,toString:x}),r(P,_,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatRgb:S,toString:S})),r(C,I,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new P(E(t>=240?t-240:t+120,i,r),E(t,i,r),E(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var N=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return j((n-r/e)*e,o,i,a,s)}},L=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return j((n-r/e)*e,i,a,o,s)}},B=function(t){return function(){return t}};function q(t,e){return function(n){return t+n*e}}function R(t,e){var n=e-t;return n?q(t,n>180||n<-180?n-360*Math.round(n/360):n):B(isNaN(t)?e:t)}function F(t){return 1==(t=+t)?D:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):B(isNaN(e)?n:e)}}function D(t,e){var n=e-t;return n?q(t,n):B(isNaN(t)?e:t)}var W=function t(e){var n=F(e);function r(t,e){var r=n((t=_(t)).r,(e=_(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=D(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Y(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=_(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}var H=Y(N),U=Y(L),X=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=nt(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}},z=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},Q=function(t,e){return e-=t=+t,function(n){return t+e*n}},V=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=nt(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,G=new RegExp(Z.source,"g");var $,K,J,tt,et=function(t,e){var n,r,i,a=Z.lastIndex=G.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Z.exec(t))&&(r=G.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Q(n,r)})),a=G.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},nt=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?B(e):("number"===r?Q:"string"===r?(n=m(e))?(e=n,W):et:e instanceof m?W:e instanceof Date?z:Array.isArray(e)?X:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?V:Q)(t,e)},rt=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},it=180/Math.PI,at={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ot=function(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*it,skewX:Math.atan(u)*it,scaleX:o,scaleY:s}};function st(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Q(t,i)},{i:u-2,x:Q(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Q(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Q(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Q(t,n)},{i:s-2,x:Q(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var ut=st((function(t){return"none"===t?at:($||($=document.createElement("DIV"),K=document.documentElement,J=document.defaultView),$.style.transform=t,t=J.getComputedStyle(K.appendChild($),null).getPropertyValue("transform"),K.removeChild($),t=t.slice(7,-1).split(","),ot(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),ct=st((function(t){return null==t?at:(tt||(tt=document.createElementNS("http://www.w3.org/2000/svg","g")),tt.setAttribute("transform",t),(t=tt.transform.baseVal.consolidate())?(t=t.matrix,ot(t.a,t.b,t.c,t.d,t.e,t.f)):at)}),", ",")",")"),lt=Math.SQRT2;function ht(t){return((t=Math.exp(t))+1/t)/2}var ft=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],c=e[2],l=s-i,h=u-a,f=l*l+h*h;if(f<1e-12)r=Math.log(c/o)/lt,n=function(t){return[i+t*l,a+t*h,o*Math.exp(lt*t*r)]};else{var p=Math.sqrt(f),d=(c*c-o*o+4*f)/(2*o*2*p),v=(c*c-o*o-4*f)/(2*c*2*p),y=Math.log(Math.sqrt(d*d+1)-d),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-y)/lt,n=function(t){var e,n=t*r,s=ht(y),u=o/(2*p)*(s*(e=lt*n+y,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y));return[i+u*l,a+u*h,o*s/ht(lt*n+y)]}}return n.duration=1e3*r,n};function pt(t){return function(e,n){var r=t((e=I(e)).h,(n=I(n)).h),i=D(e.s,n.s),a=D(e.l,n.l),o=D(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var dt=pt(R),vt=pt(D),yt=Math.PI/180,gt=180/Math.PI,xt=6/29,mt=3*xt*xt;function bt(t){if(t instanceof wt)return new wt(t.l,t.a,t.b,t.opacity);if(t instanceof Tt)return It(t);t instanceof P||(t=w(t));var e,n,r=St(t.r),i=St(t.g),a=St(t.b),o=_t((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=_t((.4360747*r+.3850649*i+.1430804*a)/.96422),n=_t((.0139322*r+.0971045*i+.7141733*a)/.82521)),new wt(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Mt(t,e,n,r){return 1===arguments.length?bt(t):new wt(t,e,n,null==r?1:r)}function wt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function _t(t){return t>.008856451679035631?Math.pow(t,1/3):t/mt+4/29}function Pt(t){return t>xt?t*t*t:mt*(t-4/29)}function At(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function St(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function kt(t){if(t instanceof Tt)return new Tt(t.h,t.c,t.l,t.opacity);if(t instanceof wt||(t=bt(t)),0===t.a&&0===t.b)return new Tt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*gt;return new Tt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ot(t,e,n,r){return 1===arguments.length?kt(t):new Tt(t,e,n,null==r?1:r)}function Tt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function It(t){if(isNaN(t.h))return new wt(t.l,0,0,t.opacity);var e=t.h*yt;return new wt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function Ct(t,e){var n=D((t=Mt(t)).l,(e=Mt(e)).l),r=D(t.a,e.a),i=D(t.b,e.b),a=D(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Et(t){return function(e,n){var r=t((e=Ot(e)).h,(n=Ot(n)).h),i=D(e.c,n.c),a=D(e.l,n.l),o=D(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}r(wt,Mt,i(a,{brighter:function(t){return new wt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new wt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new P(At(3.1338561*(e=.96422*Pt(e))-1.6168667*(t=1*Pt(t))-.4906146*(n=.82521*Pt(n))),At(-.9787684*e+1.9161415*t+.033454*n),At(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(Tt,Ot,i(a,{brighter:function(t){return new Tt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Tt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return It(this).rgb()}}));var jt=Et(R),Nt=Et(D),Lt=-.14861,Bt=1.78277,qt=-.29227,Rt=-.90649,Ft=1.97294,Dt=Ft*Rt,Wt=Ft*Bt,Yt=Bt*qt-Rt*Lt;function Ht(t){if(t instanceof Xt)return new Xt(t.h,t.s,t.l,t.opacity);t instanceof P||(t=w(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Yt*r+Dt*e-Wt*n)/(Yt+Dt-Wt),a=r-i,o=(Ft*(n-i)-qt*a)/Rt,s=Math.sqrt(o*o+a*a)/(Ft*i*(1-i)),u=s?Math.atan2(o,a)*gt-120:NaN;return new Xt(u<0?u+360:u,s,i,t.opacity)}function Ut(t,e,n,r){return 1===arguments.length?Ht(t):new Xt(t,e,n,null==r?1:r)}function Xt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function zt(t){return function e(n){function r(e,r){var i=t((e=Ut(e)).h,(r=Ut(r)).h),a=D(e.s,r.s),o=D(e.l,r.l),s=D(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}r(Xt,Ut,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*yt,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new P(255*(e+n*(Lt*r+Bt*i)),255*(e+n*(qt*r+Rt*i)),255*(e+n*(Ft*r)),this.opacity)}}));var Qt=zt(R),Vt=zt(D),Zt=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function a(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function u(t){return--t*t*t+1}function c(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"easeLinear",(function(){return r})),n.d(e,"easeQuad",(function(){return o})),n.d(e,"easeQuadIn",(function(){return i})),n.d(e,"easeQuadOut",(function(){return a})),n.d(e,"easeQuadInOut",(function(){return o})),n.d(e,"easeCubic",(function(){return c})),n.d(e,"easeCubicIn",(function(){return s})),n.d(e,"easeCubicOut",(function(){return u})),n.d(e,"easeCubicInOut",(function(){return c})),n.d(e,"easePoly",(function(){return f})),n.d(e,"easePolyIn",(function(){return l})),n.d(e,"easePolyOut",(function(){return h})),n.d(e,"easePolyInOut",(function(){return f})),n.d(e,"easeSin",(function(){return g})),n.d(e,"easeSinIn",(function(){return v})),n.d(e,"easeSinOut",(function(){return y})),n.d(e,"easeSinInOut",(function(){return g})),n.d(e,"easeExp",(function(){return b})),n.d(e,"easeExpIn",(function(){return x})),n.d(e,"easeExpOut",(function(){return m})),n.d(e,"easeExpInOut",(function(){return b})),n.d(e,"easeCircle",(function(){return _})),n.d(e,"easeCircleIn",(function(){return M})),n.d(e,"easeCircleOut",(function(){return w})),n.d(e,"easeCircleInOut",(function(){return _})),n.d(e,"easeBounce",(function(){return S})),n.d(e,"easeBounceIn",(function(){return A})),n.d(e,"easeBounceOut",(function(){return S})),n.d(e,"easeBounceInOut",(function(){return k})),n.d(e,"easeBack",(function(){return I})),n.d(e,"easeBackIn",(function(){return O})),n.d(e,"easeBackOut",(function(){return T})),n.d(e,"easeBackInOut",(function(){return I})),n.d(e,"easeElastic",(function(){return j})),n.d(e,"easeElasticIn",(function(){return E})),n.d(e,"easeElasticOut",(function(){return j})),n.d(e,"easeElasticInOut",(function(){return N}));var l=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),h=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),f=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),p=Math.PI,d=p/2;function v(t){return 1-Math.cos(t*d)}function y(t){return Math.sin(t*d)}function g(t){return(1-Math.cos(p*t))/2}function x(t){return Math.pow(2,10*t-10)}function m(t){return 1-Math.pow(2,-10*t)}function b(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function M(t){return 1-Math.sqrt(1-t*t)}function w(t){return Math.sqrt(1- --t*t)}function _(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var P=7.5625;function A(t){return 1-S(1-t)}function S(t){return(t=+t)<4/11?P*t*t:t<8/11?P*(t-=6/11)*t+3/4:t<10/11?P*(t-=9/11)*t+15/16:P*(t-=21/22)*t+63/64}function k(t){return((t*=2)<=1?1-S(1-t):S(t-1)+1)/2}var O=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),T=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),I=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),C=2*Math.PI,E=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=C);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*C)},i.period=function(n){return t(e,n)},i}(1,.3),j=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=C);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*C)},i.period=function(n){return t(e,n)},i}(1,.3),N=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=C);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*C)},i.period=function(n){return t(e,n)},i}(1,.3)},function(t,e,n){"use strict";n.r(e),n.d(e,"now",(function(){return p})),n.d(e,"timer",(function(){return y})),n.d(e,"timerFlush",(function(){return g})),n.d(e,"timeout",(function(){return M})),n.d(e,"interval",(function(){return w}));var r,i,a=0,o=0,s=0,u=0,c=0,l=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return c||(f(d),c=h.now()+l)}function d(){c=0}function v(){this._call=this._time=this._next=null}function y(t,e,n){var r=new v;return r.restart(t,e,n),r}function g(){p(),++a;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function x(){c=(u=h.now())+l,a=o=0;try{g()}finally{a=0,function(){var t,e,n=r,a=1/0;for(;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,b(a)}(),c=0}}function m(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function b(t){a||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(x,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(m,1e3)),a=1,f(x)))}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var M=function(t,e,n){var r=new v;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},w=function(t,e,n){var r=new v,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?p():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}}])}));
17
- //# sourceMappingURL=g.min.js.map