@tipp/ui 0.0.0

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 (266) hide show
  1. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  2. package/dist/alert-dialog-D1kwc80j.js +143 -0
  3. package/dist/as-child.prop-Dmk_dqBI.js +4 -0
  4. package/dist/assets/index.css +1 -0
  5. package/dist/assets/theme-provider.css +1 -0
  6. package/dist/atoms/alert-dialog.d.ts +2 -0
  7. package/dist/atoms/alert-dialog.d.ts.map +1 -0
  8. package/dist/atoms/alert-dialog.js +4 -0
  9. package/dist/atoms/aspect-ratio.d.ts +2 -0
  10. package/dist/atoms/aspect-ratio.d.ts.map +1 -0
  11. package/dist/atoms/aspect-ratio.js +4 -0
  12. package/dist/atoms/avatar.d.ts +2 -0
  13. package/dist/atoms/avatar.d.ts.map +1 -0
  14. package/dist/atoms/avatar.js +4 -0
  15. package/dist/atoms/badge.d.ts +2 -0
  16. package/dist/atoms/badge.d.ts.map +1 -0
  17. package/dist/atoms/badge.js +4 -0
  18. package/dist/atoms/blockquote.d.ts +2 -0
  19. package/dist/atoms/blockquote.d.ts.map +1 -0
  20. package/dist/atoms/blockquote.js +4 -0
  21. package/dist/atoms/box.d.ts +2 -0
  22. package/dist/atoms/box.d.ts.map +1 -0
  23. package/dist/atoms/box.js +4 -0
  24. package/dist/atoms/button.d.ts +2 -0
  25. package/dist/atoms/button.d.ts.map +1 -0
  26. package/dist/atoms/button.js +4 -0
  27. package/dist/atoms/call-out.d.ts +2 -0
  28. package/dist/atoms/call-out.d.ts.map +1 -0
  29. package/dist/atoms/call-out.js +4 -0
  30. package/dist/atoms/card.d.ts +2 -0
  31. package/dist/atoms/card.d.ts.map +1 -0
  32. package/dist/atoms/card.js +4 -0
  33. package/dist/atoms/check-box-card.d.ts +2 -0
  34. package/dist/atoms/check-box-card.d.ts.map +1 -0
  35. package/dist/atoms/check-box-card.js +4 -0
  36. package/dist/atoms/check-box-group.d.ts +2 -0
  37. package/dist/atoms/check-box-group.d.ts.map +1 -0
  38. package/dist/atoms/check-box-group.js +4 -0
  39. package/dist/atoms/check-box.d.ts +2 -0
  40. package/dist/atoms/check-box.d.ts.map +1 -0
  41. package/dist/atoms/check-box.js +4 -0
  42. package/dist/atoms/code.d.ts +2 -0
  43. package/dist/atoms/code.d.ts.map +1 -0
  44. package/dist/atoms/code.js +4 -0
  45. package/dist/atoms/container.d.ts +2 -0
  46. package/dist/atoms/container.d.ts.map +1 -0
  47. package/dist/atoms/container.js +4 -0
  48. package/dist/atoms/data-list.d.ts +2 -0
  49. package/dist/atoms/data-list.d.ts.map +1 -0
  50. package/dist/atoms/data-list.js +4 -0
  51. package/dist/atoms/date-picker/index.d.ts +7 -0
  52. package/dist/atoms/date-picker/index.d.ts.map +1 -0
  53. package/dist/atoms/date-picker/index.js +6252 -0
  54. package/dist/atoms/dialog.d.ts +2 -0
  55. package/dist/atoms/dialog.d.ts.map +1 -0
  56. package/dist/atoms/dialog.js +4 -0
  57. package/dist/atoms/dropdown-menu.d.ts +2 -0
  58. package/dist/atoms/dropdown-menu.d.ts.map +1 -0
  59. package/dist/atoms/dropdown-menu.js +4 -0
  60. package/dist/atoms/em.d.ts +2 -0
  61. package/dist/atoms/em.d.ts.map +1 -0
  62. package/dist/atoms/em.js +4 -0
  63. package/dist/atoms/flex.d.ts +2 -0
  64. package/dist/atoms/flex.d.ts.map +1 -0
  65. package/dist/atoms/flex.js +4 -0
  66. package/dist/atoms/grid.d.ts +2 -0
  67. package/dist/atoms/grid.d.ts.map +1 -0
  68. package/dist/atoms/grid.js +4 -0
  69. package/dist/atoms/heading.d.ts +2 -0
  70. package/dist/atoms/heading.d.ts.map +1 -0
  71. package/dist/atoms/heading.js +4 -0
  72. package/dist/atoms/hover-card.d.ts +2 -0
  73. package/dist/atoms/hover-card.d.ts.map +1 -0
  74. package/dist/atoms/hover-card.js +4 -0
  75. package/dist/atoms/icon-button.d.ts +2 -0
  76. package/dist/atoms/icon-button.d.ts.map +1 -0
  77. package/dist/atoms/icon-button.js +4 -0
  78. package/dist/atoms/inset.d.ts +2 -0
  79. package/dist/atoms/inset.d.ts.map +1 -0
  80. package/dist/atoms/inset.js +4 -0
  81. package/dist/atoms/kbd.d.ts +2 -0
  82. package/dist/atoms/kbd.d.ts.map +1 -0
  83. package/dist/atoms/kbd.js +4 -0
  84. package/dist/atoms/link.d.ts +2 -0
  85. package/dist/atoms/link.d.ts.map +1 -0
  86. package/dist/atoms/link.js +4 -0
  87. package/dist/atoms/popover.d.ts +2 -0
  88. package/dist/atoms/popover.d.ts.map +1 -0
  89. package/dist/atoms/popover.js +4 -0
  90. package/dist/atoms/progress.d.ts +2 -0
  91. package/dist/atoms/progress.d.ts.map +1 -0
  92. package/dist/atoms/progress.js +4 -0
  93. package/dist/atoms/quote.d.ts +2 -0
  94. package/dist/atoms/quote.d.ts.map +1 -0
  95. package/dist/atoms/quote.js +4 -0
  96. package/dist/atoms/radio-cards.d.ts +2 -0
  97. package/dist/atoms/radio-cards.d.ts.map +1 -0
  98. package/dist/atoms/radio-cards.js +4 -0
  99. package/dist/atoms/radio-group.d.ts +2 -0
  100. package/dist/atoms/radio-group.d.ts.map +1 -0
  101. package/dist/atoms/radio-group.js +4 -0
  102. package/dist/atoms/radio.d.ts +2 -0
  103. package/dist/atoms/radio.d.ts.map +1 -0
  104. package/dist/atoms/radio.js +4 -0
  105. package/dist/atoms/scroll-area.d.ts +2 -0
  106. package/dist/atoms/scroll-area.d.ts.map +1 -0
  107. package/dist/atoms/scroll-area.js +4 -0
  108. package/dist/atoms/section.d.ts +2 -0
  109. package/dist/atoms/section.d.ts.map +1 -0
  110. package/dist/atoms/section.js +4 -0
  111. package/dist/atoms/segmented-control.d.ts +2 -0
  112. package/dist/atoms/segmented-control.d.ts.map +1 -0
  113. package/dist/atoms/segmented-control.js +4 -0
  114. package/dist/atoms/select.d.ts +2 -0
  115. package/dist/atoms/select.d.ts.map +1 -0
  116. package/dist/atoms/select.js +4 -0
  117. package/dist/atoms/separator.d.ts +2 -0
  118. package/dist/atoms/separator.d.ts.map +1 -0
  119. package/dist/atoms/separator.js +4 -0
  120. package/dist/atoms/skeleton.d.ts +2 -0
  121. package/dist/atoms/skeleton.d.ts.map +1 -0
  122. package/dist/atoms/skeleton.js +4 -0
  123. package/dist/atoms/strong.d.ts +2 -0
  124. package/dist/atoms/strong.d.ts.map +1 -0
  125. package/dist/atoms/strong.js +4 -0
  126. package/dist/atoms/switch.d.ts +2 -0
  127. package/dist/atoms/switch.d.ts.map +1 -0
  128. package/dist/atoms/switch.js +4 -0
  129. package/dist/atoms/tab-nav.d.ts +2 -0
  130. package/dist/atoms/tab-nav.d.ts.map +1 -0
  131. package/dist/atoms/tab-nav.js +4 -0
  132. package/dist/atoms/tabs.d.ts +2 -0
  133. package/dist/atoms/tabs.d.ts.map +1 -0
  134. package/dist/atoms/tabs.js +4 -0
  135. package/dist/atoms/text-area.d.ts +2 -0
  136. package/dist/atoms/text-area.d.ts.map +1 -0
  137. package/dist/atoms/text-area.js +4 -0
  138. package/dist/atoms/text-field.d.ts +2 -0
  139. package/dist/atoms/text-field.d.ts.map +1 -0
  140. package/dist/atoms/text-field.js +4 -0
  141. package/dist/atoms/text.d.ts +2 -0
  142. package/dist/atoms/text.d.ts.map +1 -0
  143. package/dist/atoms/text.js +4 -0
  144. package/dist/atoms/tooltip.d.ts +2 -0
  145. package/dist/atoms/tooltip.d.ts.map +1 -0
  146. package/dist/atoms/tooltip.js +4 -0
  147. package/dist/avatar-CzjF7NU3.js +85 -0
  148. package/dist/badge-CyCKR1Mg.js +17 -0
  149. package/dist/base-button-i6PPsCdc.js +27 -0
  150. package/dist/base-checkbox.props-Bk4tRAY3.js +132 -0
  151. package/dist/base-tab-list.props-hSCtMjn2.js +6 -0
  152. package/dist/blockquote-7gbFi2zf.js +12 -0
  153. package/dist/box-C071drmz.js +15 -0
  154. package/dist/button-DpVTjBrm.js +8 -0
  155. package/dist/callout-K8Sm-FQT.js +31 -0
  156. package/dist/card-BX55hIZ3.js +14 -0
  157. package/dist/chart-BkQy6rli.js +14554 -0
  158. package/dist/charts/chart.d.ts +5 -0
  159. package/dist/charts/chart.d.ts.map +1 -0
  160. package/dist/charts/chart.js +5 -0
  161. package/dist/charts-DLVAfnBm.js +10821 -0
  162. package/dist/checkbox-DhyOlPGH.js +14 -0
  163. package/dist/checkbox-cards-C9ZL84Ml.js +30 -0
  164. package/dist/checkbox-group-CoGGFZk-.js +33 -0
  165. package/dist/checkbox-group.primitive-DuerVc21.js +33 -0
  166. package/dist/code-BJLnPPB0.js +18 -0
  167. package/dist/color.prop-C1QiQO-6.js +7 -0
  168. package/dist/components-MfAfNvnv.js +9496 -0
  169. package/dist/container-DBjG5yxq.js +25 -0
  170. package/dist/customGraphicKeyframeAnimation-BL_3uxsi.js +7247 -0
  171. package/dist/data-list-DXP5-QCf.js +36 -0
  172. package/dist/dialog-BYhSvWm4.js +35 -0
  173. package/dist/dialog.props-DOLpgre6.js +255 -0
  174. package/dist/dropdown-menu-B34afpui.js +870 -0
  175. package/dist/em-CxdNq9zL.js +14 -0
  176. package/dist/extract-props-CujC3IXc.js +36 -0
  177. package/dist/features-Dezrf84n.js +1221 -0
  178. package/dist/flex-BY0BY2TI.js +15 -0
  179. package/dist/flex.props-DNysJgUY.js +9 -0
  180. package/dist/floating-ui.dom-Pi62VK_7.js +1084 -0
  181. package/dist/gap.props-DSJMAfZN.js +4 -0
  182. package/dist/get-subtree-DW8zSv8E.js +10 -0
  183. package/dist/grid-BcK4nkHz.js +24 -0
  184. package/dist/heading-BNO0Ttlj.js +19 -0
  185. package/dist/height.props-COFNk7EY.js +4 -0
  186. package/dist/high-contrast.prop-BGHYAKb9.js +4 -0
  187. package/dist/hover-card-C86JJDjR.js +198 -0
  188. package/dist/icon-button-BiYGmnT9.js +8 -0
  189. package/dist/icon.d.ts +2 -0
  190. package/dist/icon.d.ts.map +1 -0
  191. package/dist/icon.js +11 -0
  192. package/dist/icons-B-Giprot.js +12 -0
  193. package/dist/index--Kmch3aI.js +19069 -0
  194. package/dist/index-BGHne2on.js +66 -0
  195. package/dist/index-BGU-u5wR.js +48 -0
  196. package/dist/index-BLlMKB6v.js +35 -0
  197. package/dist/index-BQ0fI5eo.js +14 -0
  198. package/dist/index-BUzFfodu.js +134 -0
  199. package/dist/index-BZPx6jYI.js +8 -0
  200. package/dist/index-CBWtNqYj.js +218 -0
  201. package/dist/index-CMas7-m1.js +32 -0
  202. package/dist/index-CWqnkG-p.js +67 -0
  203. package/dist/index-Chf_UJBH.js +27 -0
  204. package/dist/index-DIx1pnae.js +14 -0
  205. package/dist/index-DLeNytVF.js +9 -0
  206. package/dist/index-DQu1RzkN.js +41 -0
  207. package/dist/index-DbtrAyPY.js +48 -0
  208. package/dist/index-Dei2uCbS.js +16 -0
  209. package/dist/index-DgaYqXVD.js +178 -0
  210. package/dist/index-DoIe4nVR.js +42 -0
  211. package/dist/index-DxFjXziY.js +32 -0
  212. package/dist/index-J-pu07YR.js +13 -0
  213. package/dist/index-KdR831JA.js +669 -0
  214. package/dist/index-W3PwLn5U.js +531 -0
  215. package/dist/inset-B8urCQ4C.js +18 -0
  216. package/dist/kbd-D56CgGV_.js +14 -0
  217. package/dist/labelGuideHelper-CcngZb4a.js +224 -0
  218. package/dist/labelLayoutHelper-ZwNI-nB_.js +211 -0
  219. package/dist/layout.props-CKENeFj3.js +7 -0
  220. package/dist/link-C49WMJKQ.js +18 -0
  221. package/dist/main.d.ts +53 -0
  222. package/dist/main.d.ts.map +1 -0
  223. package/dist/main.js +113 -0
  224. package/dist/map-prop-values-pmPyYjFd.js +22 -0
  225. package/dist/margin.props-ClY9lUrP.js +4 -0
  226. package/dist/merge-styles-B1pWeU8q.js +68 -0
  227. package/dist/padding.props-DHz7-7K8.js +4 -0
  228. package/dist/popover-pOSzBkqq.js +251 -0
  229. package/dist/progress-WApo2WEO.js +93 -0
  230. package/dist/quote-BSvwdJNj.js +14 -0
  231. package/dist/radio-DAyHCNZG.js +16 -0
  232. package/dist/radio-cards-z3X1kLpc.js +24 -0
  233. package/dist/radio-group-B9V-hq03.js +33 -0
  234. package/dist/radius.prop-CH9lMann.js +5 -0
  235. package/dist/react-icons.esm-D7QiCqNB.js +147 -0
  236. package/dist/renderers-Bb3odh12.js +1250 -0
  237. package/dist/require-react-element-D_SFiikK.js +8 -0
  238. package/dist/scroll-area-eDccU6Jg.js +26 -0
  239. package/dist/section-DMnSE0_D.js +19 -0
  240. package/dist/segmented-control-kJXQrfMF.js +173 -0
  241. package/dist/select-BEBm0Xc8.js +832 -0
  242. package/dist/separator-Ba0Kgvyq.js +13 -0
  243. package/dist/skeleton-CUQFQIjD.js +17 -0
  244. package/dist/strong-ejFErGyG.js +14 -0
  245. package/dist/switch-BhvdoZJT.js +123 -0
  246. package/dist/tab-nav-B-m2dwou.js +608 -0
  247. package/dist/tabs-33tSzanC.js +186 -0
  248. package/dist/text-YN9kC4kc.js +19 -0
  249. package/dist/text-align.prop-BXpq--l6.js +5 -0
  250. package/dist/text-area-DBR9oL6S.js +14 -0
  251. package/dist/text-field-CgtdAE3v.js +43 -0
  252. package/dist/theme/theme-provider.d.ts +10 -0
  253. package/dist/theme/theme-provider.d.ts.map +1 -0
  254. package/dist/theme/theme-provider.js +8 -0
  255. package/dist/theme/use-theme.d.ts +2 -0
  256. package/dist/theme/use-theme.d.ts.map +1 -0
  257. package/dist/theme/use-theme.js +4 -0
  258. package/dist/theme-7Cjo8_Y6.js +795 -0
  259. package/dist/tooltip-jaEtV9Zg.js +14 -0
  260. package/dist/truncate.prop-BeER2hSO.js +5 -0
  261. package/dist/ui-props/index.d.ts +3 -0
  262. package/dist/ui-props/index.d.ts.map +1 -0
  263. package/dist/ui-props/index.js +686 -0
  264. package/dist/weight.prop-DBiHURhF.js +4 -0
  265. package/dist/width.props-BFC_4RNX.js +4 -0
  266. package/package.json +48 -0
@@ -0,0 +1,1250 @@
1
+ import { V as B, Z as ne, W as K, X as Ve, Y as Gt, z as k, k as E, _ as ke, $ as Ee, o as vt, a0 as W, a1 as Be, a2 as Me, U as Y, a3 as se, j as Oe, a4 as oe, a5 as De, f as He, a6 as Ue, c as Ge, a7 as ze, a8 as Fe, a9 as je, r as j, aa as X, ab as Ze, ac as dt, ad as qe, ae as zt, af as Xe, ag as Ke, g as Ye, ah as Je, ai as $e, aj as We, ak as Qe, al as ti, am as ei, an as ii, ao as fe, ap as Tt, aq as ri, ar as ai, as as ni, at as si, I as oi, au as he, av as F, aw as fi, ax as hi, ay as vi, az as ve, B as st, aA as Lt, aB as ui, aC as di, aD as ue, aE as li, aF as ci, aG as _i, aH as pi, aI as ot, aJ as gi, aK as yi, aL as mi, aM as ft, v as xi } from "./chart-BkQy6rli.js";
2
+ var yt = Math.sin, mt = Math.cos, de = Math.PI, O = Math.PI * 2, wi = 180 / de, le = function() {
3
+ function i() {
4
+ }
5
+ return i.prototype.reset = function(t) {
6
+ this._start = !0, this._d = [], this._str = "", this._p = Math.pow(10, t || 4);
7
+ }, i.prototype.moveTo = function(t, e) {
8
+ this._add("M", t, e);
9
+ }, i.prototype.lineTo = function(t, e) {
10
+ this._add("L", t, e);
11
+ }, i.prototype.bezierCurveTo = function(t, e, r, a, n, s) {
12
+ this._add("C", t, e, r, a, n, s);
13
+ }, i.prototype.quadraticCurveTo = function(t, e, r, a) {
14
+ this._add("Q", t, e, r, a);
15
+ }, i.prototype.arc = function(t, e, r, a, n, s) {
16
+ this.ellipse(t, e, r, r, 0, a, n, s);
17
+ }, i.prototype.ellipse = function(t, e, r, a, n, s, f, o) {
18
+ var h = f - s, u = !o, v = Math.abs(h), d = B(v - O) || (u ? h >= O : -h >= O), c = h > 0 ? h % O : h % O + O, _ = !1;
19
+ d ? _ = !0 : B(v) ? _ = !1 : _ = c >= de == !!u;
20
+ var l = t + r * mt(s), p = e + a * yt(s);
21
+ this._start && this._add("M", l, p);
22
+ var y = Math.round(n * wi);
23
+ if (d) {
24
+ var g = 1 / this._p, m = (u ? 1 : -1) * (O - g);
25
+ this._add("A", r, a, y, 1, +u, t + r * mt(s + m), e + a * yt(s + m)), g > 0.01 && this._add("A", r, a, y, 0, +u, l, p);
26
+ } else {
27
+ var x = t + r * mt(f), N = e + a * yt(f);
28
+ this._add("A", r, a, y, +_, +u, x, N);
29
+ }
30
+ }, i.prototype.rect = function(t, e, r, a) {
31
+ this._add("M", t, e), this._add("l", r, 0), this._add("l", 0, a), this._add("l", -r, 0), this._add("Z");
32
+ }, i.prototype.closePath = function() {
33
+ this._d.length > 0 && this._add("Z");
34
+ }, i.prototype._add = function(t, e, r, a, n, s, f, o, h) {
35
+ for (var u = [], v = this._p, d = 1; d < arguments.length; d++) {
36
+ var c = arguments[d];
37
+ if (isNaN(c)) {
38
+ this._invalid = !0;
39
+ return;
40
+ }
41
+ u.push(Math.round(c * v) / v);
42
+ }
43
+ this._d.push(t + u.join(" ")), this._start = t === "Z";
44
+ }, i.prototype.generateStr = function() {
45
+ this._str = this._invalid ? "" : this._d.join(""), this._d = [];
46
+ }, i.prototype.getStr = function() {
47
+ return this._str;
48
+ }, i;
49
+ }(), Pt = "none", Li = Math.round;
50
+ function Ii(i) {
51
+ var t = i.fill;
52
+ return t != null && t !== Pt;
53
+ }
54
+ function Si(i) {
55
+ var t = i.stroke;
56
+ return t != null && t !== Pt;
57
+ }
58
+ var It = ["lineCap", "miterLimit", "lineJoin"], bi = k(It, function(i) {
59
+ return "stroke-" + i.toLowerCase();
60
+ });
61
+ function Ti(i, t, e, r) {
62
+ var a = t.opacity == null ? 1 : t.opacity;
63
+ if (e instanceof ne) {
64
+ i("opacity", a);
65
+ return;
66
+ }
67
+ if (Ii(t)) {
68
+ var n = K(t.fill);
69
+ i("fill", n.color);
70
+ var s = t.fillOpacity != null ? t.fillOpacity * n.opacity * a : n.opacity * a;
71
+ s < 1 && i("fill-opacity", s);
72
+ } else
73
+ i("fill", Pt);
74
+ if (Si(t)) {
75
+ var f = K(t.stroke);
76
+ i("stroke", f.color);
77
+ var o = t.strokeNoScale ? e.getLineScale() : 1, h = o ? (t.lineWidth || 0) / o : 0, u = t.strokeOpacity != null ? t.strokeOpacity * f.opacity * a : f.opacity * a, v = t.strokeFirst;
78
+ if (h !== 1 && i("stroke-width", h), v && i("paint-order", v ? "stroke" : "fill"), u < 1 && i("stroke-opacity", u), t.lineDash) {
79
+ var d = Ve(e), c = d[0], _ = d[1];
80
+ c && (_ = Li(_ || 0), i("stroke-dasharray", c.join(",")), (_ || r) && i("stroke-dashoffset", _));
81
+ }
82
+ for (var l = 0; l < It.length; l++) {
83
+ var p = It[l];
84
+ if (t[p] !== Gt[p]) {
85
+ var y = t[p] || Gt[p];
86
+ y && i(bi[l], y);
87
+ }
88
+ }
89
+ }
90
+ }
91
+ var ce = "http://www.w3.org/2000/svg", _e = "http://www.w3.org/1999/xlink", Pi = "http://www.w3.org/2000/xmlns/", Ri = "http://www.w3.org/XML/1998/namespace", Ft = "ecmeta_";
92
+ function pe(i) {
93
+ return document.createElementNS(ce, i);
94
+ }
95
+ function b(i, t, e, r, a) {
96
+ return {
97
+ tag: i,
98
+ attrs: e || {},
99
+ children: r,
100
+ text: a,
101
+ key: t
102
+ };
103
+ }
104
+ function Ni(i, t) {
105
+ var e = [];
106
+ if (t)
107
+ for (var r in t) {
108
+ var a = t[r], n = r;
109
+ a !== !1 && (a !== !0 && a != null && (n += '="' + a + '"'), e.push(n));
110
+ }
111
+ return "<" + i + " " + e.join(" ") + ">";
112
+ }
113
+ function Ci(i) {
114
+ return "</" + i + ">";
115
+ }
116
+ function Rt(i, t) {
117
+ t = t || {};
118
+ var e = t.newline ? `
119
+ ` : "";
120
+ function r(a) {
121
+ var n = a.children, s = a.tag, f = a.attrs, o = a.text;
122
+ return Ni(s, f) + (s !== "style" ? ke(o) : o || "") + (n ? "" + e + k(n, function(h) {
123
+ return r(h);
124
+ }).join(e) + e : "") + Ci(s);
125
+ }
126
+ return r(i);
127
+ }
128
+ function Ai(i, t, e) {
129
+ e = e || {};
130
+ var r = e.newline ? `
131
+ ` : "", a = " {" + r, n = r + "}", s = k(E(i), function(o) {
132
+ return o + a + k(E(i[o]), function(h) {
133
+ return h + ":" + i[o][h] + ";";
134
+ }).join(r) + n;
135
+ }).join(r), f = k(E(t), function(o) {
136
+ return "@keyframes " + o + a + k(E(t[o]), function(h) {
137
+ return h + a + k(E(t[o][h]), function(u) {
138
+ var v = t[o][h][u];
139
+ return u === "d" && (v = 'path("' + v + '")'), u + ":" + v + ";";
140
+ }).join(r) + n;
141
+ }).join(r) + n;
142
+ }).join(r);
143
+ return !s && !f ? "" : ["<![CDATA[", s, f, "]]>"].join(r);
144
+ }
145
+ function St(i) {
146
+ return {
147
+ zrId: i,
148
+ shadowCache: {},
149
+ patternCache: {},
150
+ gradientCache: {},
151
+ clipPathCache: {},
152
+ defs: {},
153
+ cssNodes: {},
154
+ cssAnims: {},
155
+ cssStyleCache: {},
156
+ cssAnimIdx: 0,
157
+ shadowIdx: 0,
158
+ gradientIdx: 0,
159
+ patternIdx: 0,
160
+ clipPathIdx: 0
161
+ };
162
+ }
163
+ function jt(i, t, e, r) {
164
+ return b("svg", "root", {
165
+ width: i,
166
+ height: t,
167
+ xmlns: ce,
168
+ "xmlns:xlink": _e,
169
+ version: "1.1",
170
+ baseProfile: "full",
171
+ viewBox: r ? "0 0 " + i + " " + t : !1
172
+ }, e);
173
+ }
174
+ var Vi = 0;
175
+ function ge() {
176
+ return Vi++;
177
+ }
178
+ var Zt = {
179
+ cubicIn: "0.32,0,0.67,0",
180
+ cubicOut: "0.33,1,0.68,1",
181
+ cubicInOut: "0.65,0,0.35,1",
182
+ quadraticIn: "0.11,0,0.5,0",
183
+ quadraticOut: "0.5,1,0.89,1",
184
+ quadraticInOut: "0.45,0,0.55,1",
185
+ quarticIn: "0.5,0,0.75,0",
186
+ quarticOut: "0.25,1,0.5,1",
187
+ quarticInOut: "0.76,0,0.24,1",
188
+ quinticIn: "0.64,0,0.78,0",
189
+ quinticOut: "0.22,1,0.36,1",
190
+ quinticInOut: "0.83,0,0.17,1",
191
+ sinusoidalIn: "0.12,0,0.39,0",
192
+ sinusoidalOut: "0.61,1,0.88,1",
193
+ sinusoidalInOut: "0.37,0,0.63,1",
194
+ exponentialIn: "0.7,0,0.84,0",
195
+ exponentialOut: "0.16,1,0.3,1",
196
+ exponentialInOut: "0.87,0,0.13,1",
197
+ circularIn: "0.55,0,1,0.45",
198
+ circularOut: "0,0.55,0.45,1",
199
+ circularInOut: "0.85,0,0.15,1"
200
+ }, H = "transform-origin";
201
+ function ki(i, t, e) {
202
+ var r = Y({}, i.shape);
203
+ Y(r, t), i.buildPath(e, r);
204
+ var a = new le();
205
+ return a.reset(oe(i)), e.rebuildPath(a, 1), a.generateStr(), a.getStr();
206
+ }
207
+ function Ei(i, t) {
208
+ var e = t.originX, r = t.originY;
209
+ (e || r) && (i[H] = e + "px " + r + "px");
210
+ }
211
+ var Bi = {
212
+ fill: "fill",
213
+ opacity: "opacity",
214
+ lineWidth: "stroke-width",
215
+ lineDashOffset: "stroke-dashoffset"
216
+ };
217
+ function ye(i, t) {
218
+ var e = t.zrId + "-ani-" + t.cssAnimIdx++;
219
+ return t.cssAnims[e] = i, e;
220
+ }
221
+ function Mi(i, t, e) {
222
+ var r = i.shape.paths, a = {}, n, s;
223
+ if (vt(r, function(o) {
224
+ var h = St(e.zrId);
225
+ h.animation = !0, lt(o, {}, h, !0);
226
+ var u = h.cssAnims, v = h.cssNodes, d = E(u), c = d.length;
227
+ if (c) {
228
+ s = d[c - 1];
229
+ var _ = u[s];
230
+ for (var l in _) {
231
+ var p = _[l];
232
+ a[l] = a[l] || { d: "" }, a[l].d += p.d || "";
233
+ }
234
+ for (var y in v) {
235
+ var g = v[y].animation;
236
+ g.indexOf(s) >= 0 && (n = g);
237
+ }
238
+ }
239
+ }), !!n) {
240
+ t.d = !1;
241
+ var f = ye(a, e);
242
+ return n.replace(s, f);
243
+ }
244
+ }
245
+ function qt(i) {
246
+ return W(i) ? Zt[i] ? "cubic-bezier(" + Zt[i] + ")" : Be(i) ? i : "" : "";
247
+ }
248
+ function lt(i, t, e, r) {
249
+ var a = i.animators, n = a.length, s = [];
250
+ if (i instanceof Ee) {
251
+ var f = Mi(i, t, e);
252
+ if (f)
253
+ s.push(f);
254
+ else if (!n)
255
+ return;
256
+ } else if (!n)
257
+ return;
258
+ for (var o = {}, h = 0; h < n; h++) {
259
+ var u = a[h], v = [u.getMaxTime() / 1e3 + "s"], d = qt(u.getClip().easing), c = u.getDelay();
260
+ d ? v.push(d) : v.push("linear"), c && v.push(c / 1e3 + "s"), u.getLoop() && v.push("infinite");
261
+ var _ = v.join(" ");
262
+ o[_] = o[_] || [_, []], o[_][1].push(u);
263
+ }
264
+ function l(g) {
265
+ var m = g[1], x = m.length, N = {}, C = {}, w = {}, S = "animation-timing-function";
266
+ function T(tt, et, Ot) {
267
+ for (var it = tt.getTracks(), Ae = tt.getMaxTime(), _t = 0; _t < it.length; _t++) {
268
+ var pt = it[_t];
269
+ if (pt.needsAnimate()) {
270
+ var Dt = pt.keyframes, rt = pt.propName;
271
+ if (Ot && (rt = Ot(rt)), rt)
272
+ for (var gt = 0; gt < Dt.length; gt++) {
273
+ var at = Dt[gt], nt = Math.round(at.time / Ae * 100) + "%", Ht = qt(at.easing), Ut = at.rawValue;
274
+ (W(Ut) || De(Ut)) && (et[nt] = et[nt] || {}, et[nt][rt] = at.rawValue, Ht && (et[nt][S] = Ht));
275
+ }
276
+ }
277
+ }
278
+ }
279
+ for (var L = 0; L < x; L++) {
280
+ var R = m[L], P = R.targetName;
281
+ P ? P === "shape" && T(R, C) : !r && T(R, N);
282
+ }
283
+ for (var I in N) {
284
+ var A = {};
285
+ Me(A, i), Y(A, N[I]);
286
+ var Z = se(A), M = N[I][S];
287
+ w[I] = Z ? {
288
+ transform: Z
289
+ } : {}, Ei(w[I], A), M && (w[I][S] = M);
290
+ }
291
+ var G, kt = !0;
292
+ for (var I in C) {
293
+ w[I] = w[I] || {};
294
+ var Et = !G, M = C[I][S];
295
+ Et && (G = new He());
296
+ var Pe = G.len();
297
+ G.reset(), w[I].d = ki(i, C[I], G);
298
+ var Re = G.len();
299
+ if (!Et && Pe !== Re) {
300
+ kt = !1;
301
+ break;
302
+ }
303
+ M && (w[I][S] = M);
304
+ }
305
+ if (!kt)
306
+ for (var I in w)
307
+ delete w[I].d;
308
+ if (!r)
309
+ for (var L = 0; L < x; L++) {
310
+ var R = m[L], P = R.targetName;
311
+ P === "style" && T(R, w, function(it) {
312
+ return Bi[it];
313
+ });
314
+ }
315
+ for (var Q = E(w), Bt = !0, ct, L = 1; L < Q.length; L++) {
316
+ var Mt = Q[L - 1], Ne = Q[L];
317
+ if (w[Mt][H] !== w[Ne][H]) {
318
+ Bt = !1;
319
+ break;
320
+ }
321
+ ct = w[Mt][H];
322
+ }
323
+ if (Bt && ct) {
324
+ for (var I in w)
325
+ w[I][H] && delete w[I][H];
326
+ t[H] = ct;
327
+ }
328
+ if (Oe(Q, function(tt) {
329
+ return E(w[tt]).length > 0;
330
+ }).length) {
331
+ var Ce = ye(w, e);
332
+ return Ce + " " + g[0] + " both";
333
+ }
334
+ }
335
+ for (var p in o) {
336
+ var f = l(o[p]);
337
+ f && s.push(f);
338
+ }
339
+ if (s.length) {
340
+ var y = e.zrId + "-cls-" + ge();
341
+ e.cssNodes["." + y] = {
342
+ animation: s.join(",")
343
+ }, t.class = y;
344
+ }
345
+ }
346
+ function Oi(i, t, e) {
347
+ if (!i.ignore)
348
+ if (i.isSilent()) {
349
+ var r = {
350
+ "pointer-events": "none"
351
+ };
352
+ Xt(r, t, e);
353
+ } else {
354
+ var a = i.states.emphasis && i.states.emphasis.style ? i.states.emphasis.style : {}, n = a.fill;
355
+ if (!n) {
356
+ var s = i.style && i.style.fill, f = i.states.select && i.states.select.style && i.states.select.style.fill, o = i.currentStates.indexOf("select") >= 0 && f || s;
357
+ o && (n = Ue(o));
358
+ }
359
+ var h = a.lineWidth;
360
+ if (h) {
361
+ var u = !a.strokeNoScale && i.transform ? i.transform[0] : 1;
362
+ h = h / u;
363
+ }
364
+ var r = {
365
+ cursor: "pointer"
366
+ };
367
+ n && (r.fill = n), a.stroke && (r.stroke = a.stroke), h && (r["stroke-width"] = h), Xt(r, t, e);
368
+ }
369
+ }
370
+ function Xt(i, t, e, r) {
371
+ var a = JSON.stringify(i), n = e.cssStyleCache[a];
372
+ n || (n = e.zrId + "-cls-" + ge(), e.cssStyleCache[a] = n, e.cssNodes["." + n + ":hover"] = i), t.class = t.class ? t.class + " " + n : n;
373
+ }
374
+ var J = Math.round;
375
+ function me(i) {
376
+ return i && W(i.src);
377
+ }
378
+ function xe(i) {
379
+ return i && Ye(i.toDataURL);
380
+ }
381
+ function Nt(i, t, e, r) {
382
+ Ti(function(a, n) {
383
+ var s = a === "fill" || a === "stroke";
384
+ s && fe(n) ? Le(t, i, a, r) : s && Tt(n) ? Ie(e, i, a, r) : s && n === "none" ? i[a] = "transparent" : i[a] = n;
385
+ }, t, e, !1), ji(e, i, r);
386
+ }
387
+ function Ct(i, t) {
388
+ var e = ri(t);
389
+ e && (e.each(function(r, a) {
390
+ r != null && (i[(Ft + a).toLowerCase()] = r + "");
391
+ }), t.isSilent() && (i[Ft + "silent"] = "true"));
392
+ }
393
+ function Kt(i) {
394
+ return B(i[0] - 1) && B(i[1]) && B(i[2]) && B(i[3] - 1);
395
+ }
396
+ function Di(i) {
397
+ return B(i[4]) && B(i[5]);
398
+ }
399
+ function At(i, t, e) {
400
+ if (t && !(Di(t) && Kt(t))) {
401
+ var r = 1e4;
402
+ i.transform = Kt(t) ? "translate(" + J(t[4] * r) / r + " " + J(t[5] * r) / r + ")" : ai(t);
403
+ }
404
+ }
405
+ function Yt(i, t, e) {
406
+ for (var r = i.points, a = [], n = 0; n < r.length; n++)
407
+ a.push(J(r[n][0] * e) / e), a.push(J(r[n][1] * e) / e);
408
+ t.points = a.join(" ");
409
+ }
410
+ function Jt(i) {
411
+ return !i.smooth;
412
+ }
413
+ function Hi(i) {
414
+ var t = k(i, function(e) {
415
+ return typeof e == "string" ? [e, e] : e;
416
+ });
417
+ return function(e, r, a) {
418
+ for (var n = 0; n < t.length; n++) {
419
+ var s = t[n], f = e[s[0]];
420
+ f != null && (r[s[1]] = J(f * a) / a);
421
+ }
422
+ };
423
+ }
424
+ var Ui = {
425
+ circle: [Hi(["cx", "cy", "r"])],
426
+ polyline: [Yt, Jt],
427
+ polygon: [Yt, Jt]
428
+ };
429
+ function Gi(i) {
430
+ for (var t = i.animators, e = 0; e < t.length; e++)
431
+ if (t[e].targetName === "shape")
432
+ return !0;
433
+ return !1;
434
+ }
435
+ function we(i, t) {
436
+ var e = i.style, r = i.shape, a = Ui[i.type], n = {}, s = t.animation, f = "path", o = i.style.strokePercent, h = t.compress && oe(i) || 4;
437
+ if (a && !t.willUpdate && !(a[1] && !a[1](r)) && !(s && Gi(i)) && !(o < 1)) {
438
+ f = i.type;
439
+ var u = Math.pow(10, h);
440
+ a[0](r, n, u);
441
+ } else {
442
+ var v = !i.path || i.shapeChanged();
443
+ i.path || i.createPathProxy();
444
+ var d = i.path;
445
+ v && (d.beginPath(), i.buildPath(d, i.shape), i.pathUpdated());
446
+ var c = d.getVersion(), _ = i, l = _.__svgPathBuilder;
447
+ (_.__svgPathVersion !== c || !l || o !== _.__svgPathStrokePercent) && (l || (l = _.__svgPathBuilder = new le()), l.reset(h), d.rebuildPath(l, o), l.generateStr(), _.__svgPathVersion = c, _.__svgPathStrokePercent = o), n.d = l.getStr();
448
+ }
449
+ return At(n, i.transform), Nt(n, e, i, t), Ct(n, i), t.animation && lt(i, n, t), t.emphasis && Oi(i, n, t), b(f, i.id + "", n);
450
+ }
451
+ function zi(i, t) {
452
+ var e = i.style, r = e.image;
453
+ if (r && !W(r) && (me(r) ? r = r.src : xe(r) && (r = r.toDataURL())), !!r) {
454
+ var a = e.x || 0, n = e.y || 0, s = e.width, f = e.height, o = {
455
+ href: r,
456
+ width: s,
457
+ height: f
458
+ };
459
+ return a && (o.x = a), n && (o.y = n), At(o, i.transform), Nt(o, e, i, t), Ct(o, i), t.animation && lt(i, o, t), b("image", i.id + "", o);
460
+ }
461
+ }
462
+ function Fi(i, t) {
463
+ var e = i.style, r = e.text;
464
+ if (r != null && (r += ""), !(!r || isNaN(e.x) || isNaN(e.y))) {
465
+ var a = e.font || Je, n = e.x || 0, s = $e(e.y || 0, We(a), e.textBaseline), f = Qe[e.textAlign] || e.textAlign, o = {
466
+ "dominant-baseline": "central",
467
+ "text-anchor": f
468
+ };
469
+ if (ti(e)) {
470
+ var h = "", u = e.fontStyle, v = ei(e.fontSize);
471
+ if (!parseFloat(v))
472
+ return;
473
+ var d = e.fontFamily || ii, c = e.fontWeight;
474
+ h += "font-size:" + v + ";font-family:" + d + ";", u && u !== "normal" && (h += "font-style:" + u + ";"), c && c !== "normal" && (h += "font-weight:" + c + ";"), o.style = h;
475
+ } else
476
+ o.style = "font: " + a;
477
+ return r.match(/\s/) && (o["xml:space"] = "preserve"), n && (o.x = n), s && (o.y = s), At(o, i.transform), Nt(o, e, i, t), Ct(o, i), t.animation && lt(i, o, t), b("text", i.id + "", o, void 0, r);
478
+ }
479
+ }
480
+ function $t(i, t) {
481
+ if (i instanceof Ge)
482
+ return we(i, t);
483
+ if (i instanceof ne)
484
+ return zi(i, t);
485
+ if (i instanceof ze)
486
+ return Fi(i, t);
487
+ }
488
+ function ji(i, t, e) {
489
+ var r = i.style;
490
+ if (ni(r)) {
491
+ var a = si(i), n = e.shadowCache, s = n[a];
492
+ if (!s) {
493
+ var f = i.getGlobalScale(), o = f[0], h = f[1];
494
+ if (!o || !h)
495
+ return;
496
+ var u = r.shadowOffsetX || 0, v = r.shadowOffsetY || 0, d = r.shadowBlur, c = K(r.shadowColor), _ = c.opacity, l = c.color, p = d / 2 / o, y = d / 2 / h, g = p + " " + y;
497
+ s = e.zrId + "-s" + e.shadowIdx++, e.defs[s] = b("filter", s, {
498
+ id: s,
499
+ x: "-100%",
500
+ y: "-100%",
501
+ width: "300%",
502
+ height: "300%"
503
+ }, [
504
+ b("feDropShadow", "", {
505
+ dx: u / o,
506
+ dy: v / h,
507
+ stdDeviation: g,
508
+ "flood-color": l,
509
+ "flood-opacity": _
510
+ })
511
+ ]), n[a] = s;
512
+ }
513
+ t.filter = dt(s);
514
+ }
515
+ }
516
+ function Le(i, t, e, r) {
517
+ var a = i[e], n, s = {
518
+ gradientUnits: a.global ? "userSpaceOnUse" : "objectBoundingBox"
519
+ };
520
+ if (Fe(a))
521
+ n = "linearGradient", s.x1 = a.x, s.y1 = a.y, s.x2 = a.x2, s.y2 = a.y2;
522
+ else if (je(a))
523
+ n = "radialGradient", s.cx = j(a.x, 0.5), s.cy = j(a.y, 0.5), s.r = j(a.r, 0.5);
524
+ else {
525
+ process.env.NODE_ENV !== "production" && X("Illegal gradient type.");
526
+ return;
527
+ }
528
+ for (var f = a.colorStops, o = [], h = 0, u = f.length; h < u; ++h) {
529
+ var v = Ze(f[h].offset) * 100 + "%", d = f[h].color, c = K(d), _ = c.color, l = c.opacity, p = {
530
+ offset: v
531
+ };
532
+ p["stop-color"] = _, l < 1 && (p["stop-opacity"] = l), o.push(b("stop", h + "", p));
533
+ }
534
+ var y = b(n, "", s, o), g = Rt(y), m = r.gradientCache, x = m[g];
535
+ x || (x = r.zrId + "-g" + r.gradientIdx++, m[g] = x, s.id = x, r.defs[x] = b(n, x, s, o)), t[e] = dt(x);
536
+ }
537
+ function Ie(i, t, e, r) {
538
+ var a = i.style[e], n = i.getBoundingRect(), s = {}, f = a.repeat, o = f === "no-repeat", h = f === "repeat-x", u = f === "repeat-y", v;
539
+ if (qe(a)) {
540
+ var d = a.imageWidth, c = a.imageHeight, _ = void 0, l = a.image;
541
+ if (W(l) ? _ = l : me(l) ? _ = l.src : xe(l) && (_ = l.toDataURL()), typeof Image > "u") {
542
+ var p = "Image width/height must been given explictly in svg-ssr renderer.";
543
+ zt(d, p), zt(c, p);
544
+ } else if (d == null || c == null) {
545
+ var y = function(L, R) {
546
+ if (L) {
547
+ var P = L.elm, I = d || R.width, A = c || R.height;
548
+ L.tag === "pattern" && (h ? (A = 1, I /= n.width) : u && (I = 1, A /= n.height)), L.attrs.width = I, L.attrs.height = A, P && (P.setAttribute("width", I), P.setAttribute("height", A));
549
+ }
550
+ }, g = Xe(_, null, i, function(L) {
551
+ o || y(C, L), y(v, L);
552
+ });
553
+ g && g.width && g.height && (d = d || g.width, c = c || g.height);
554
+ }
555
+ v = b("image", "img", {
556
+ href: _,
557
+ width: d,
558
+ height: c
559
+ }), s.width = d, s.height = c;
560
+ } else a.svgElement && (v = Ke(a.svgElement), s.width = a.svgWidth, s.height = a.svgHeight);
561
+ if (v) {
562
+ var m, x;
563
+ o ? m = x = 1 : h ? (x = 1, m = s.width / n.width) : u ? (m = 1, x = s.height / n.height) : s.patternUnits = "userSpaceOnUse", m != null && !isNaN(m) && (s.width = m), x != null && !isNaN(x) && (s.height = x);
564
+ var N = se(a);
565
+ N && (s.patternTransform = N);
566
+ var C = b("pattern", "", s, [v]), w = Rt(C), S = r.patternCache, T = S[w];
567
+ T || (T = r.zrId + "-p" + r.patternIdx++, S[w] = T, s.id = T, C = r.defs[T] = b("pattern", T, s, [v])), t[e] = dt(T);
568
+ }
569
+ }
570
+ function Zi(i, t, e) {
571
+ var r = e.clipPathCache, a = e.defs, n = r[i.id];
572
+ if (!n) {
573
+ n = e.zrId + "-c" + e.clipPathIdx++;
574
+ var s = {
575
+ id: n
576
+ };
577
+ r[i.id] = n, a[n] = b("clipPath", n, s, [we(i, e)]);
578
+ }
579
+ t["clip-path"] = dt(n);
580
+ }
581
+ function Wt(i) {
582
+ return document.createTextNode(i);
583
+ }
584
+ function U(i, t, e) {
585
+ i.insertBefore(t, e);
586
+ }
587
+ function Qt(i, t) {
588
+ i.removeChild(t);
589
+ }
590
+ function te(i, t) {
591
+ i.appendChild(t);
592
+ }
593
+ function Se(i) {
594
+ return i.parentNode;
595
+ }
596
+ function be(i) {
597
+ return i.nextSibling;
598
+ }
599
+ function xt(i, t) {
600
+ i.textContent = t;
601
+ }
602
+ var ee = 58, qi = 120, Xi = b("", "");
603
+ function bt(i) {
604
+ return i === void 0;
605
+ }
606
+ function V(i) {
607
+ return i !== void 0;
608
+ }
609
+ function Ki(i, t, e) {
610
+ for (var r = {}, a = t; a <= e; ++a) {
611
+ var n = i[a].key;
612
+ n !== void 0 && (process.env.NODE_ENV !== "production" && r[n] != null && console.error("Duplicate key " + n), r[n] = a);
613
+ }
614
+ return r;
615
+ }
616
+ function q(i, t) {
617
+ var e = i.key === t.key, r = i.tag === t.tag;
618
+ return r && e;
619
+ }
620
+ function $(i) {
621
+ var t, e = i.children, r = i.tag;
622
+ if (V(r)) {
623
+ var a = i.elm = pe(r);
624
+ if (Vt(Xi, i), oi(e))
625
+ for (t = 0; t < e.length; ++t) {
626
+ var n = e[t];
627
+ n != null && te(a, $(n));
628
+ }
629
+ else V(i.text) && !he(i.text) && te(a, Wt(i.text));
630
+ } else
631
+ i.elm = Wt(i.text);
632
+ return i.elm;
633
+ }
634
+ function Te(i, t, e, r, a) {
635
+ for (; r <= a; ++r) {
636
+ var n = e[r];
637
+ n != null && U(i, $(n), t);
638
+ }
639
+ }
640
+ function ut(i, t, e, r) {
641
+ for (; e <= r; ++e) {
642
+ var a = t[e];
643
+ if (a != null)
644
+ if (V(a.tag)) {
645
+ var n = Se(a.elm);
646
+ Qt(n, a.elm);
647
+ } else
648
+ Qt(i, a.elm);
649
+ }
650
+ }
651
+ function Vt(i, t) {
652
+ var e, r = t.elm, a = i && i.attrs || {}, n = t.attrs || {};
653
+ if (a !== n) {
654
+ for (e in n) {
655
+ var s = n[e], f = a[e];
656
+ f !== s && (s === !0 ? r.setAttribute(e, "") : s === !1 ? r.removeAttribute(e) : e === "style" ? r.style.cssText = s : e.charCodeAt(0) !== qi ? r.setAttribute(e, s) : e === "xmlns:xlink" || e === "xmlns" ? r.setAttributeNS(Pi, e, s) : e.charCodeAt(3) === ee ? r.setAttributeNS(Ri, e, s) : e.charCodeAt(5) === ee ? r.setAttributeNS(_e, e, s) : r.setAttribute(e, s));
657
+ }
658
+ for (e in a)
659
+ e in n || r.removeAttribute(e);
660
+ }
661
+ }
662
+ function Yi(i, t, e) {
663
+ for (var r = 0, a = 0, n = t.length - 1, s = t[0], f = t[n], o = e.length - 1, h = e[0], u = e[o], v, d, c, _; r <= n && a <= o; )
664
+ s == null ? s = t[++r] : f == null ? f = t[--n] : h == null ? h = e[++a] : u == null ? u = e[--o] : q(s, h) ? (z(s, h), s = t[++r], h = e[++a]) : q(f, u) ? (z(f, u), f = t[--n], u = e[--o]) : q(s, u) ? (z(s, u), U(i, s.elm, be(f.elm)), s = t[++r], u = e[--o]) : q(f, h) ? (z(f, h), U(i, f.elm, s.elm), f = t[--n], h = e[++a]) : (bt(v) && (v = Ki(t, r, n)), d = v[h.key], bt(d) ? U(i, $(h), s.elm) : (c = t[d], c.tag !== h.tag ? U(i, $(h), s.elm) : (z(c, h), t[d] = void 0, U(i, c.elm, s.elm))), h = e[++a]);
665
+ (r <= n || a <= o) && (r > n ? (_ = e[o + 1] == null ? null : e[o + 1].elm, Te(i, _, e, a, o)) : ut(i, t, r, n));
666
+ }
667
+ function z(i, t) {
668
+ var e = t.elm = i.elm, r = i.children, a = t.children;
669
+ i !== t && (Vt(i, t), bt(t.text) ? V(r) && V(a) ? r !== a && Yi(e, r, a) : V(a) ? (V(i.text) && xt(e, ""), Te(e, null, a, 0, a.length - 1)) : V(r) ? ut(e, r, 0, r.length - 1) : V(i.text) && xt(e, "") : i.text !== t.text && (V(r) && ut(e, r, 0, r.length - 1), xt(e, t.text)));
670
+ }
671
+ function Ji(i, t) {
672
+ if (q(i, t))
673
+ z(i, t);
674
+ else {
675
+ var e = i.elm, r = Se(e);
676
+ $(t), r !== null && (U(r, t.elm, be(e)), ut(r, [i], 0, 0));
677
+ }
678
+ return t;
679
+ }
680
+ var $i = 0, Wi = function() {
681
+ function i(t, e, r) {
682
+ if (this.type = "svg", this.refreshHover = ie("refreshHover"), this.configLayer = ie("configLayer"), this.storage = e, this._opts = r = Y({}, r), this.root = t, this._id = "zr" + $i++, this._oldVNode = jt(r.width, r.height), t && !r.ssr) {
683
+ var a = this._viewport = document.createElement("div");
684
+ a.style.cssText = "position:relative;overflow:hidden";
685
+ var n = this._svgDom = this._oldVNode.elm = pe("svg");
686
+ Vt(null, this._oldVNode), a.appendChild(n), t.appendChild(a);
687
+ }
688
+ this.resize(r.width, r.height);
689
+ }
690
+ return i.prototype.getType = function() {
691
+ return this.type;
692
+ }, i.prototype.getViewportRoot = function() {
693
+ return this._viewport;
694
+ }, i.prototype.getViewportRootOffset = function() {
695
+ var t = this.getViewportRoot();
696
+ if (t)
697
+ return {
698
+ offsetLeft: t.offsetLeft || 0,
699
+ offsetTop: t.offsetTop || 0
700
+ };
701
+ }, i.prototype.getSvgDom = function() {
702
+ return this._svgDom;
703
+ }, i.prototype.refresh = function() {
704
+ if (this.root) {
705
+ var t = this.renderToVNode({
706
+ willUpdate: !0
707
+ });
708
+ t.attrs.style = "position:absolute;left:0;top:0;user-select:none", Ji(this._oldVNode, t), this._oldVNode = t;
709
+ }
710
+ }, i.prototype.renderOneToVNode = function(t) {
711
+ return $t(t, St(this._id));
712
+ }, i.prototype.renderToVNode = function(t) {
713
+ t = t || {};
714
+ var e = this.storage.getDisplayList(!0), r = this._width, a = this._height, n = St(this._id);
715
+ n.animation = t.animation, n.willUpdate = t.willUpdate, n.compress = t.compress, n.emphasis = t.emphasis;
716
+ var s = [], f = this._bgVNode = Qi(r, a, this._backgroundColor, n);
717
+ f && s.push(f);
718
+ var o = t.compress ? null : this._mainVNode = b("g", "main", {}, []);
719
+ this._paintList(e, n, o ? o.children : s), o && s.push(o);
720
+ var h = k(E(n.defs), function(d) {
721
+ return n.defs[d];
722
+ });
723
+ if (h.length && s.push(b("defs", "defs", {}, h)), t.animation) {
724
+ var u = Ai(n.cssNodes, n.cssAnims, { newline: !0 });
725
+ if (u) {
726
+ var v = b("style", "stl", {}, [], u);
727
+ s.push(v);
728
+ }
729
+ }
730
+ return jt(r, a, s, t.useViewBox);
731
+ }, i.prototype.renderToString = function(t) {
732
+ return t = t || {}, Rt(this.renderToVNode({
733
+ animation: j(t.cssAnimation, !0),
734
+ emphasis: j(t.cssEmphasis, !0),
735
+ willUpdate: !1,
736
+ compress: !0,
737
+ useViewBox: j(t.useViewBox, !0)
738
+ }), { newline: !0 });
739
+ }, i.prototype.setBackgroundColor = function(t) {
740
+ this._backgroundColor = t;
741
+ }, i.prototype.getSvgRoot = function() {
742
+ return this._mainVNode && this._mainVNode.elm;
743
+ }, i.prototype._paintList = function(t, e, r) {
744
+ for (var a = t.length, n = [], s = 0, f, o, h = 0, u = 0; u < a; u++) {
745
+ var v = t[u];
746
+ if (!v.invisible) {
747
+ var d = v.__clipPaths, c = d && d.length || 0, _ = o && o.length || 0, l = void 0;
748
+ for (l = Math.max(c - 1, _ - 1); l >= 0 && !(d && o && d[l] === o[l]); l--)
749
+ ;
750
+ for (var p = _ - 1; p > l; p--)
751
+ s--, f = n[s - 1];
752
+ for (var y = l + 1; y < c; y++) {
753
+ var g = {};
754
+ Zi(d[y], g, e);
755
+ var m = b("g", "clip-g-" + h++, g, []);
756
+ (f ? f.children : r).push(m), n[s++] = m, f = m;
757
+ }
758
+ o = d;
759
+ var x = $t(v, e);
760
+ x && (f ? f.children : r).push(x);
761
+ }
762
+ }
763
+ }, i.prototype.resize = function(t, e) {
764
+ var r = this._opts, a = this.root, n = this._viewport;
765
+ if (t != null && (r.width = t), e != null && (r.height = e), a && n && (n.style.display = "none", t = F(a, 0, r), e = F(a, 1, r), n.style.display = ""), this._width !== t || this._height !== e) {
766
+ if (this._width = t, this._height = e, n) {
767
+ var s = n.style;
768
+ s.width = t + "px", s.height = e + "px";
769
+ }
770
+ if (Tt(this._backgroundColor))
771
+ this.refresh();
772
+ else {
773
+ var f = this._svgDom;
774
+ f && (f.setAttribute("width", t), f.setAttribute("height", e));
775
+ var o = this._bgVNode && this._bgVNode.elm;
776
+ o && (o.setAttribute("width", t), o.setAttribute("height", e));
777
+ }
778
+ }
779
+ }, i.prototype.getWidth = function() {
780
+ return this._width;
781
+ }, i.prototype.getHeight = function() {
782
+ return this._height;
783
+ }, i.prototype.dispose = function() {
784
+ this.root && (this.root.innerHTML = ""), this._svgDom = this._viewport = this.storage = this._oldVNode = this._bgVNode = this._mainVNode = null;
785
+ }, i.prototype.clear = function() {
786
+ this._svgDom && (this._svgDom.innerHTML = null), this._oldVNode = null;
787
+ }, i.prototype.toDataURL = function(t) {
788
+ var e = this.renderToString(), r = "data:image/svg+xml;";
789
+ return t ? (e = fi(e), e && r + "base64," + e) : r + "charset=UTF-8," + encodeURIComponent(e);
790
+ }, i;
791
+ }();
792
+ function ie(i) {
793
+ return function() {
794
+ process.env.NODE_ENV !== "production" && X('In SVG mode painter not support method "' + i + '"');
795
+ };
796
+ }
797
+ function Qi(i, t, e, r) {
798
+ var a;
799
+ if (e && e !== "none")
800
+ if (a = b("rect", "bg", {
801
+ width: i,
802
+ height: t,
803
+ x: "0",
804
+ y: "0"
805
+ }), fe(e))
806
+ Le({ fill: e }, a.attrs, "fill", r);
807
+ else if (Tt(e))
808
+ Ie({
809
+ style: {
810
+ fill: e
811
+ },
812
+ dirty: hi,
813
+ getBoundingRect: function() {
814
+ return { width: i, height: t };
815
+ }
816
+ }, a.attrs, "fill", r);
817
+ else {
818
+ var n = K(e), s = n.color, f = n.opacity;
819
+ a.attrs.fill = s, f < 1 && (a.attrs["fill-opacity"] = f);
820
+ }
821
+ return a;
822
+ }
823
+ function nr(i) {
824
+ i.registerPainter("svg", Wi);
825
+ }
826
+ function re(i, t, e) {
827
+ var r = di.createCanvas(), a = t.getWidth(), n = t.getHeight(), s = r.style;
828
+ return s && (s.position = "absolute", s.left = "0", s.top = "0", s.width = a + "px", s.height = n + "px", r.setAttribute("data-zr-dom-id", i)), r.width = a * e, r.height = n * e, r;
829
+ }
830
+ var wt = function(i) {
831
+ vi(t, i);
832
+ function t(e, r, a) {
833
+ var n = i.call(this) || this;
834
+ n.motionBlur = !1, n.lastFrameAlpha = 0.7, n.dpr = 1, n.virtual = !1, n.config = {}, n.incremental = !1, n.zlevel = 0, n.maxRepaintRectCount = 5, n.__dirty = !0, n.__firstTimePaint = !0, n.__used = !1, n.__drawIndex = 0, n.__startIndex = 0, n.__endIndex = 0, n.__prevStartIndex = null, n.__prevEndIndex = null;
835
+ var s;
836
+ a = a || ue, typeof e == "string" ? s = re(e, r, a) : he(e) && (s = e, e = s.id), n.id = e, n.dom = s;
837
+ var f = s.style;
838
+ return f && (ve(s), s.onselectstart = function() {
839
+ return !1;
840
+ }, f.padding = "0", f.margin = "0", f.borderWidth = "0"), n.painter = r, n.dpr = a, n;
841
+ }
842
+ return t.prototype.getElementCount = function() {
843
+ return this.__endIndex - this.__startIndex;
844
+ }, t.prototype.afterBrush = function() {
845
+ this.__prevStartIndex = this.__startIndex, this.__prevEndIndex = this.__endIndex;
846
+ }, t.prototype.initContext = function() {
847
+ this.ctx = this.dom.getContext("2d"), this.ctx.dpr = this.dpr;
848
+ }, t.prototype.setUnpainted = function() {
849
+ this.__firstTimePaint = !0;
850
+ }, t.prototype.createBackBuffer = function() {
851
+ var e = this.dpr;
852
+ this.domBack = re("back-" + this.id, this.painter, e), this.ctxBack = this.domBack.getContext("2d"), e !== 1 && this.ctxBack.scale(e, e);
853
+ }, t.prototype.createRepaintRects = function(e, r, a, n) {
854
+ if (this.__firstTimePaint)
855
+ return this.__firstTimePaint = !1, null;
856
+ var s = [], f = this.maxRepaintRectCount, o = !1, h = new st(0, 0, 0, 0);
857
+ function u(g) {
858
+ if (!(!g.isFinite() || g.isZero()))
859
+ if (s.length === 0) {
860
+ var m = new st(0, 0, 0, 0);
861
+ m.copy(g), s.push(m);
862
+ } else {
863
+ for (var x = !1, N = 1 / 0, C = 0, w = 0; w < s.length; ++w) {
864
+ var S = s[w];
865
+ if (S.intersect(g)) {
866
+ var T = new st(0, 0, 0, 0);
867
+ T.copy(S), T.union(g), s[w] = T, x = !0;
868
+ break;
869
+ } else if (o) {
870
+ h.copy(g), h.union(S);
871
+ var L = g.width * g.height, R = S.width * S.height, P = h.width * h.height, I = P - L - R;
872
+ I < N && (N = I, C = w);
873
+ }
874
+ }
875
+ if (o && (s[C].union(g), x = !0), !x) {
876
+ var m = new st(0, 0, 0, 0);
877
+ m.copy(g), s.push(m);
878
+ }
879
+ o || (o = s.length >= f);
880
+ }
881
+ }
882
+ for (var v = this.__startIndex; v < this.__endIndex; ++v) {
883
+ var d = e[v];
884
+ if (d) {
885
+ var c = d.shouldBePainted(a, n, !0, !0), _ = d.__isRendered && (d.__dirty & Lt || !c) ? d.getPrevPaintRect() : null;
886
+ _ && u(_);
887
+ var l = c && (d.__dirty & Lt || !d.__isRendered) ? d.getPaintRect() : null;
888
+ l && u(l);
889
+ }
890
+ }
891
+ for (var v = this.__prevStartIndex; v < this.__prevEndIndex; ++v) {
892
+ var d = r[v], c = d && d.shouldBePainted(a, n, !0, !0);
893
+ if (d && (!c || !d.__zr) && d.__isRendered) {
894
+ var _ = d.getPrevPaintRect();
895
+ _ && u(_);
896
+ }
897
+ }
898
+ var p;
899
+ do {
900
+ p = !1;
901
+ for (var v = 0; v < s.length; ) {
902
+ if (s[v].isZero()) {
903
+ s.splice(v, 1);
904
+ continue;
905
+ }
906
+ for (var y = v + 1; y < s.length; )
907
+ s[v].intersect(s[y]) ? (p = !0, s[v].union(s[y]), s.splice(y, 1)) : y++;
908
+ v++;
909
+ }
910
+ } while (p);
911
+ return this._paintRects = s, s;
912
+ }, t.prototype.debugGetPaintRects = function() {
913
+ return (this._paintRects || []).slice();
914
+ }, t.prototype.resize = function(e, r) {
915
+ var a = this.dpr, n = this.dom, s = n.style, f = this.domBack;
916
+ s && (s.width = e + "px", s.height = r + "px"), n.width = e * a, n.height = r * a, f && (f.width = e * a, f.height = r * a, a !== 1 && this.ctxBack.scale(a, a));
917
+ }, t.prototype.clear = function(e, r, a) {
918
+ var n = this.dom, s = this.ctx, f = n.width, o = n.height;
919
+ r = r || this.clearColor;
920
+ var h = this.motionBlur && !e, u = this.lastFrameAlpha, v = this.dpr, d = this;
921
+ h && (this.domBack || this.createBackBuffer(), this.ctxBack.globalCompositeOperation = "copy", this.ctxBack.drawImage(n, 0, 0, f / v, o / v));
922
+ var c = this.domBack;
923
+ function _(l, p, y, g) {
924
+ if (s.clearRect(l, p, y, g), r && r !== "transparent") {
925
+ var m = void 0;
926
+ if (li(r)) {
927
+ var x = r.global || r.__width === y && r.__height === g;
928
+ m = x && r.__canvasGradient || ci(s, r, {
929
+ x: 0,
930
+ y: 0,
931
+ width: y,
932
+ height: g
933
+ }), r.__canvasGradient = m, r.__width = y, r.__height = g;
934
+ } else _i(r) && (r.scaleX = r.scaleX || v, r.scaleY = r.scaleY || v, m = pi(s, r, {
935
+ dirty: function() {
936
+ d.setUnpainted(), d.painter.refresh();
937
+ }
938
+ }));
939
+ s.save(), s.fillStyle = m || r, s.fillRect(l, p, y, g), s.restore();
940
+ }
941
+ h && (s.save(), s.globalAlpha = u, s.drawImage(c, l, p, y, g), s.restore());
942
+ }
943
+ !a || h ? _(0, 0, f, o) : a.length && vt(a, function(l) {
944
+ _(l.x * v, l.y * v, l.width * v, l.height * v);
945
+ });
946
+ }, t;
947
+ }(ui), ae = 1e5, D = 314159, ht = 0.01, tr = 1e-3;
948
+ function er(i) {
949
+ return i ? i.__builtin__ ? !0 : !(typeof i.resize != "function" || typeof i.refresh != "function") : !1;
950
+ }
951
+ function ir(i, t) {
952
+ var e = document.createElement("div");
953
+ return e.style.cssText = [
954
+ "position:relative",
955
+ "width:" + i + "px",
956
+ "height:" + t + "px",
957
+ "padding:0",
958
+ "margin:0",
959
+ "border-width:0"
960
+ ].join(";") + ";", e;
961
+ }
962
+ var rr = function() {
963
+ function i(t, e, r, a) {
964
+ this.type = "canvas", this._zlevelList = [], this._prevDisplayList = [], this._layers = {}, this._layerConfig = {}, this._needsManuallyCompositing = !1, this.type = "canvas";
965
+ var n = !t.nodeName || t.nodeName.toUpperCase() === "CANVAS";
966
+ this._opts = r = Y({}, r || {}), this.dpr = r.devicePixelRatio || ue, this._singleCanvas = n, this.root = t;
967
+ var s = t.style;
968
+ s && (ve(t), t.innerHTML = ""), this.storage = e;
969
+ var f = this._zlevelList;
970
+ this._prevDisplayList = [];
971
+ var o = this._layers;
972
+ if (n) {
973
+ var u = t, v = u.width, d = u.height;
974
+ r.width != null && (v = r.width), r.height != null && (d = r.height), this.dpr = r.devicePixelRatio || 1, u.width = v * this.dpr, u.height = d * this.dpr, this._width = v, this._height = d;
975
+ var c = new wt(u, this, this.dpr);
976
+ c.__builtin__ = !0, c.initContext(), o[D] = c, c.zlevel = D, f.push(D), this._domRoot = t;
977
+ } else {
978
+ this._width = F(t, 0, r), this._height = F(t, 1, r);
979
+ var h = this._domRoot = ir(this._width, this._height);
980
+ t.appendChild(h);
981
+ }
982
+ }
983
+ return i.prototype.getType = function() {
984
+ return "canvas";
985
+ }, i.prototype.isSingleCanvas = function() {
986
+ return this._singleCanvas;
987
+ }, i.prototype.getViewportRoot = function() {
988
+ return this._domRoot;
989
+ }, i.prototype.getViewportRootOffset = function() {
990
+ var t = this.getViewportRoot();
991
+ if (t)
992
+ return {
993
+ offsetLeft: t.offsetLeft || 0,
994
+ offsetTop: t.offsetTop || 0
995
+ };
996
+ }, i.prototype.refresh = function(t) {
997
+ var e = this.storage.getDisplayList(!0), r = this._prevDisplayList, a = this._zlevelList;
998
+ this._redrawId = Math.random(), this._paintList(e, r, t, this._redrawId);
999
+ for (var n = 0; n < a.length; n++) {
1000
+ var s = a[n], f = this._layers[s];
1001
+ if (!f.__builtin__ && f.refresh) {
1002
+ var o = n === 0 ? this._backgroundColor : null;
1003
+ f.refresh(o);
1004
+ }
1005
+ }
1006
+ return this._opts.useDirtyRect && (this._prevDisplayList = e.slice()), this;
1007
+ }, i.prototype.refreshHover = function() {
1008
+ this._paintHoverList(this.storage.getDisplayList(!1));
1009
+ }, i.prototype._paintHoverList = function(t) {
1010
+ var e = t.length, r = this._hoverlayer;
1011
+ if (r && r.clear(), !!e) {
1012
+ for (var a = {
1013
+ inHover: !0,
1014
+ viewWidth: this._width,
1015
+ viewHeight: this._height
1016
+ }, n, s = 0; s < e; s++) {
1017
+ var f = t[s];
1018
+ f.__inHover && (r || (r = this._hoverlayer = this.getLayer(ae)), n || (n = r.ctx, n.save()), ot(n, f, a, s === e - 1));
1019
+ }
1020
+ n && n.restore();
1021
+ }
1022
+ }, i.prototype.getHoverLayer = function() {
1023
+ return this.getLayer(ae);
1024
+ }, i.prototype.paintOne = function(t, e) {
1025
+ gi(t, e);
1026
+ }, i.prototype._paintList = function(t, e, r, a) {
1027
+ if (this._redrawId === a) {
1028
+ r = r || !1, this._updateLayerStatus(t);
1029
+ var n = this._doPaintList(t, e, r), s = n.finished, f = n.needsRefreshHover;
1030
+ if (this._needsManuallyCompositing && this._compositeManually(), f && this._paintHoverList(t), s)
1031
+ this.eachLayer(function(h) {
1032
+ h.afterBrush && h.afterBrush();
1033
+ });
1034
+ else {
1035
+ var o = this;
1036
+ yi(function() {
1037
+ o._paintList(t, e, r, a);
1038
+ });
1039
+ }
1040
+ }
1041
+ }, i.prototype._compositeManually = function() {
1042
+ var t = this.getLayer(D).ctx, e = this._domRoot.width, r = this._domRoot.height;
1043
+ t.clearRect(0, 0, e, r), this.eachBuiltinLayer(function(a) {
1044
+ a.virtual && t.drawImage(a.dom, 0, 0, e, r);
1045
+ });
1046
+ }, i.prototype._doPaintList = function(t, e, r) {
1047
+ for (var a = this, n = [], s = this._opts.useDirtyRect, f = 0; f < this._zlevelList.length; f++) {
1048
+ var o = this._zlevelList[f], h = this._layers[o];
1049
+ h.__builtin__ && h !== this._hoverlayer && (h.__dirty || r) && n.push(h);
1050
+ }
1051
+ for (var u = !0, v = !1, d = function(l) {
1052
+ var p = n[l], y = p.ctx, g = s && p.createRepaintRects(t, e, c._width, c._height), m = r ? p.__startIndex : p.__drawIndex, x = !r && p.incremental && Date.now, N = x && Date.now(), C = p.zlevel === c._zlevelList[0] ? c._backgroundColor : null;
1053
+ if (p.__startIndex === p.__endIndex)
1054
+ p.clear(!1, C, g);
1055
+ else if (m === p.__startIndex) {
1056
+ var w = t[m];
1057
+ (!w.incremental || !w.notClear || r) && p.clear(!1, C, g);
1058
+ }
1059
+ m === -1 && (console.error("For some unknown reason. drawIndex is -1"), m = p.__startIndex);
1060
+ var S, T = function(I) {
1061
+ var A = {
1062
+ inHover: !1,
1063
+ allClipped: !1,
1064
+ prevEl: null,
1065
+ viewWidth: a._width,
1066
+ viewHeight: a._height
1067
+ };
1068
+ for (S = m; S < p.__endIndex; S++) {
1069
+ var Z = t[S];
1070
+ if (Z.__inHover && (v = !0), a._doPaintEl(Z, p, s, I, A, S === p.__endIndex - 1), x) {
1071
+ var M = Date.now() - N;
1072
+ if (M > 15)
1073
+ break;
1074
+ }
1075
+ }
1076
+ A.prevElClipPaths && y.restore();
1077
+ };
1078
+ if (g)
1079
+ if (g.length === 0)
1080
+ S = p.__endIndex;
1081
+ else
1082
+ for (var L = c.dpr, R = 0; R < g.length; ++R) {
1083
+ var P = g[R];
1084
+ y.save(), y.beginPath(), y.rect(P.x * L, P.y * L, P.width * L, P.height * L), y.clip(), T(P), y.restore();
1085
+ }
1086
+ else
1087
+ y.save(), T(), y.restore();
1088
+ p.__drawIndex = S, p.__drawIndex < p.__endIndex && (u = !1);
1089
+ }, c = this, _ = 0; _ < n.length; _++)
1090
+ d(_);
1091
+ return mi.wxa && vt(this._layers, function(l) {
1092
+ l && l.ctx && l.ctx.draw && l.ctx.draw();
1093
+ }), {
1094
+ finished: u,
1095
+ needsRefreshHover: v
1096
+ };
1097
+ }, i.prototype._doPaintEl = function(t, e, r, a, n, s) {
1098
+ var f = e.ctx;
1099
+ if (r) {
1100
+ var o = t.getPaintRect();
1101
+ (!a || o && o.intersect(a)) && (ot(f, t, n, s), t.setPrevPaintRect(o));
1102
+ } else
1103
+ ot(f, t, n, s);
1104
+ }, i.prototype.getLayer = function(t, e) {
1105
+ this._singleCanvas && !this._needsManuallyCompositing && (t = D);
1106
+ var r = this._layers[t];
1107
+ return r || (r = new wt("zr_" + t, this, this.dpr), r.zlevel = t, r.__builtin__ = !0, this._layerConfig[t] ? ft(r, this._layerConfig[t], !0) : this._layerConfig[t - ht] && ft(r, this._layerConfig[t - ht], !0), e && (r.virtual = e), this.insertLayer(t, r), r.initContext()), r;
1108
+ }, i.prototype.insertLayer = function(t, e) {
1109
+ var r = this._layers, a = this._zlevelList, n = a.length, s = this._domRoot, f = null, o = -1;
1110
+ if (r[t]) {
1111
+ process.env.NODE_ENV !== "production" && X("ZLevel " + t + " has been used already");
1112
+ return;
1113
+ }
1114
+ if (!er(e)) {
1115
+ process.env.NODE_ENV !== "production" && X("Layer of zlevel " + t + " is not valid");
1116
+ return;
1117
+ }
1118
+ if (n > 0 && t > a[0]) {
1119
+ for (o = 0; o < n - 1 && !(a[o] < t && a[o + 1] > t); o++)
1120
+ ;
1121
+ f = r[a[o]];
1122
+ }
1123
+ if (a.splice(o + 1, 0, t), r[t] = e, !e.virtual)
1124
+ if (f) {
1125
+ var h = f.dom;
1126
+ h.nextSibling ? s.insertBefore(e.dom, h.nextSibling) : s.appendChild(e.dom);
1127
+ } else
1128
+ s.firstChild ? s.insertBefore(e.dom, s.firstChild) : s.appendChild(e.dom);
1129
+ e.painter || (e.painter = this);
1130
+ }, i.prototype.eachLayer = function(t, e) {
1131
+ for (var r = this._zlevelList, a = 0; a < r.length; a++) {
1132
+ var n = r[a];
1133
+ t.call(e, this._layers[n], n);
1134
+ }
1135
+ }, i.prototype.eachBuiltinLayer = function(t, e) {
1136
+ for (var r = this._zlevelList, a = 0; a < r.length; a++) {
1137
+ var n = r[a], s = this._layers[n];
1138
+ s.__builtin__ && t.call(e, s, n);
1139
+ }
1140
+ }, i.prototype.eachOtherLayer = function(t, e) {
1141
+ for (var r = this._zlevelList, a = 0; a < r.length; a++) {
1142
+ var n = r[a], s = this._layers[n];
1143
+ s.__builtin__ || t.call(e, s, n);
1144
+ }
1145
+ }, i.prototype.getLayers = function() {
1146
+ return this._layers;
1147
+ }, i.prototype._updateLayerStatus = function(t) {
1148
+ this.eachBuiltinLayer(function(v, d) {
1149
+ v.__dirty = v.__used = !1;
1150
+ });
1151
+ function e(v) {
1152
+ n && (n.__endIndex !== v && (n.__dirty = !0), n.__endIndex = v);
1153
+ }
1154
+ if (this._singleCanvas)
1155
+ for (var r = 1; r < t.length; r++) {
1156
+ var a = t[r];
1157
+ if (a.zlevel !== t[r - 1].zlevel || a.incremental) {
1158
+ this._needsManuallyCompositing = !0;
1159
+ break;
1160
+ }
1161
+ }
1162
+ var n = null, s = 0, f, o;
1163
+ for (o = 0; o < t.length; o++) {
1164
+ var a = t[o], h = a.zlevel, u = void 0;
1165
+ f !== h && (f = h, s = 0), a.incremental ? (u = this.getLayer(h + tr, this._needsManuallyCompositing), u.incremental = !0, s = 1) : u = this.getLayer(h + (s > 0 ? ht : 0), this._needsManuallyCompositing), u.__builtin__ || X("ZLevel " + h + " has been used by unkown layer " + u.id), u !== n && (u.__used = !0, u.__startIndex !== o && (u.__dirty = !0), u.__startIndex = o, u.incremental ? u.__drawIndex = -1 : u.__drawIndex = o, e(o), n = u), a.__dirty & Lt && !a.__inHover && (u.__dirty = !0, u.incremental && u.__drawIndex < 0 && (u.__drawIndex = o));
1166
+ }
1167
+ e(o), this.eachBuiltinLayer(function(v, d) {
1168
+ !v.__used && v.getElementCount() > 0 && (v.__dirty = !0, v.__startIndex = v.__endIndex = v.__drawIndex = 0), v.__dirty && v.__drawIndex < 0 && (v.__drawIndex = v.__startIndex);
1169
+ });
1170
+ }, i.prototype.clear = function() {
1171
+ return this.eachBuiltinLayer(this._clearLayer), this;
1172
+ }, i.prototype._clearLayer = function(t) {
1173
+ t.clear();
1174
+ }, i.prototype.setBackgroundColor = function(t) {
1175
+ this._backgroundColor = t, vt(this._layers, function(e) {
1176
+ e.setUnpainted();
1177
+ });
1178
+ }, i.prototype.configLayer = function(t, e) {
1179
+ if (e) {
1180
+ var r = this._layerConfig;
1181
+ r[t] ? ft(r[t], e, !0) : r[t] = e;
1182
+ for (var a = 0; a < this._zlevelList.length; a++) {
1183
+ var n = this._zlevelList[a];
1184
+ if (n === t || n === t + ht) {
1185
+ var s = this._layers[n];
1186
+ ft(s, r[t], !0);
1187
+ }
1188
+ }
1189
+ }
1190
+ }, i.prototype.delLayer = function(t) {
1191
+ var e = this._layers, r = this._zlevelList, a = e[t];
1192
+ a && (a.dom.parentNode.removeChild(a.dom), delete e[t], r.splice(xi(r, t), 1));
1193
+ }, i.prototype.resize = function(t, e) {
1194
+ if (this._domRoot.style) {
1195
+ var r = this._domRoot;
1196
+ r.style.display = "none";
1197
+ var a = this._opts, n = this.root;
1198
+ if (t != null && (a.width = t), e != null && (a.height = e), t = F(n, 0, a), e = F(n, 1, a), r.style.display = "", this._width !== t || e !== this._height) {
1199
+ r.style.width = t + "px", r.style.height = e + "px";
1200
+ for (var s in this._layers)
1201
+ this._layers.hasOwnProperty(s) && this._layers[s].resize(t, e);
1202
+ this.refresh(!0);
1203
+ }
1204
+ this._width = t, this._height = e;
1205
+ } else {
1206
+ if (t == null || e == null)
1207
+ return;
1208
+ this._width = t, this._height = e, this.getLayer(D).resize(t, e);
1209
+ }
1210
+ return this;
1211
+ }, i.prototype.clearLayer = function(t) {
1212
+ var e = this._layers[t];
1213
+ e && e.clear();
1214
+ }, i.prototype.dispose = function() {
1215
+ this.root.innerHTML = "", this.root = this.storage = this._domRoot = this._layers = null;
1216
+ }, i.prototype.getRenderedCanvas = function(t) {
1217
+ if (t = t || {}, this._singleCanvas && !this._compositeManually)
1218
+ return this._layers[D].dom;
1219
+ var e = new wt("image", this, t.pixelRatio || this.dpr);
1220
+ e.initContext(), e.clear(!1, t.backgroundColor || this._backgroundColor);
1221
+ var r = e.ctx;
1222
+ if (t.pixelRatio <= this.dpr) {
1223
+ this.refresh();
1224
+ var a = e.dom.width, n = e.dom.height;
1225
+ this.eachLayer(function(v) {
1226
+ v.__builtin__ ? r.drawImage(v.dom, 0, 0, a, n) : v.renderToCanvas && (r.save(), v.renderToCanvas(r), r.restore());
1227
+ });
1228
+ } else
1229
+ for (var s = {
1230
+ inHover: !1,
1231
+ viewWidth: this._width,
1232
+ viewHeight: this._height
1233
+ }, f = this.storage.getDisplayList(!0), o = 0, h = f.length; o < h; o++) {
1234
+ var u = f[o];
1235
+ ot(r, u, s, o === h - 1);
1236
+ }
1237
+ return e.dom;
1238
+ }, i.prototype.getWidth = function() {
1239
+ return this._width;
1240
+ }, i.prototype.getHeight = function() {
1241
+ return this._height;
1242
+ }, i;
1243
+ }();
1244
+ function sr(i) {
1245
+ i.registerPainter("canvas", rr);
1246
+ }
1247
+ export {
1248
+ sr as CanvasRenderer,
1249
+ nr as SVGRenderer
1250
+ };