@mui/x-charts-vendor 7.12.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 (312) hide show
  1. package/README.md +76 -0
  2. package/d3-color.d.ts +5 -0
  3. package/d3-color.js +7 -0
  4. package/d3-delaunay.d.ts +5 -0
  5. package/d3-delaunay.js +7 -0
  6. package/d3-interpolate.d.ts +5 -0
  7. package/d3-interpolate.js +7 -0
  8. package/d3-scale.d.ts +5 -0
  9. package/d3-scale.js +7 -0
  10. package/d3-shape.d.ts +5 -0
  11. package/d3-shape.js +7 -0
  12. package/d3-time.d.ts +5 -0
  13. package/d3-time.js +7 -0
  14. package/es/d3-array.js +6 -0
  15. package/es/d3-color.js +6 -0
  16. package/es/d3-delaunay.js +6 -0
  17. package/es/d3-format.js +6 -0
  18. package/es/d3-interpolate.js +6 -0
  19. package/es/d3-path.js +6 -0
  20. package/es/d3-scale.js +6 -0
  21. package/es/d3-shape.js +6 -0
  22. package/es/d3-time-format.js +6 -0
  23. package/es/d3-time.js +6 -0
  24. package/es/delaunator.js +6 -0
  25. package/es/internmap.js +6 -0
  26. package/es/robust-predicates.js +6 -0
  27. package/lib/d3-array.js +6 -0
  28. package/lib/d3-color.js +6 -0
  29. package/lib/d3-delaunay.js +6 -0
  30. package/lib/d3-format.js +6 -0
  31. package/lib/d3-interpolate.js +6 -0
  32. package/lib/d3-path.js +6 -0
  33. package/lib/d3-scale.js +6 -0
  34. package/lib/d3-shape.js +6 -0
  35. package/lib/d3-time-format.js +6 -0
  36. package/lib/d3-time.js +6 -0
  37. package/lib/delaunator.js +6 -0
  38. package/lib/internmap.js +6 -0
  39. package/lib/robust-predicates.js +6 -0
  40. package/lib-vendor/d3-array/LICENSE +13 -0
  41. package/lib-vendor/d3-array/dist/d3-array.js +1349 -0
  42. package/lib-vendor/d3-array/dist/d3-array.min.js +777 -0
  43. package/lib-vendor/d3-array/src/array.js +9 -0
  44. package/lib-vendor/d3-array/src/ascending.js +9 -0
  45. package/lib-vendor/d3-array/src/bin.js +126 -0
  46. package/lib-vendor/d3-array/src/bisect.js +15 -0
  47. package/lib-vendor/d3-array/src/bisector.js +59 -0
  48. package/lib-vendor/d3-array/src/blur.js +122 -0
  49. package/lib-vendor/d3-array/src/constant.js +9 -0
  50. package/lib-vendor/d3-array/src/count.js +24 -0
  51. package/lib-vendor/d3-array/src/cross.js +35 -0
  52. package/lib-vendor/d3-array/src/cumsum.js +11 -0
  53. package/lib-vendor/d3-array/src/descending.js +9 -0
  54. package/lib-vendor/d3-array/src/deviation.js +12 -0
  55. package/lib-vendor/d3-array/src/difference.js +16 -0
  56. package/lib-vendor/d3-array/src/disjoint.js +24 -0
  57. package/lib-vendor/d3-array/src/every.js +16 -0
  58. package/lib-vendor/d3-array/src/extent.js +35 -0
  59. package/lib-vendor/d3-array/src/filter.js +17 -0
  60. package/lib-vendor/d3-array/src/fsum.js +77 -0
  61. package/lib-vendor/d3-array/src/greatest.js +31 -0
  62. package/lib-vendor/d3-array/src/greatestIndex.js +23 -0
  63. package/lib-vendor/d3-array/src/group.js +67 -0
  64. package/lib-vendor/d3-array/src/groupSort.js +15 -0
  65. package/lib-vendor/d3-array/src/identity.js +9 -0
  66. package/lib-vendor/d3-array/src/index.js +539 -0
  67. package/lib-vendor/d3-array/src/intersection.js +23 -0
  68. package/lib-vendor/d3-array/src/least.js +31 -0
  69. package/lib-vendor/d3-array/src/leastIndex.js +23 -0
  70. package/lib-vendor/d3-array/src/map.js +11 -0
  71. package/lib-vendor/d3-array/src/max.js +24 -0
  72. package/lib-vendor/d3-array/src/maxIndex.js +26 -0
  73. package/lib-vendor/d3-array/src/mean.js +25 -0
  74. package/lib-vendor/d3-array/src/median.js +16 -0
  75. package/lib-vendor/d3-array/src/merge.js +14 -0
  76. package/lib-vendor/d3-array/src/min.js +24 -0
  77. package/lib-vendor/d3-array/src/minIndex.js +26 -0
  78. package/lib-vendor/d3-array/src/mode.js +33 -0
  79. package/lib-vendor/d3-array/src/nice.js +23 -0
  80. package/lib-vendor/d3-array/src/number.js +26 -0
  81. package/lib-vendor/d3-array/src/pairs.js +21 -0
  82. package/lib-vendor/d3-array/src/permute.js +9 -0
  83. package/lib-vendor/d3-array/src/quantile.js +55 -0
  84. package/lib-vendor/d3-array/src/quickselect.js +47 -0
  85. package/lib-vendor/d3-array/src/range.js +16 -0
  86. package/lib-vendor/d3-array/src/rank.js +30 -0
  87. package/lib-vendor/d3-array/src/reduce.js +28 -0
  88. package/lib-vendor/d3-array/src/reverse.js +10 -0
  89. package/lib-vendor/d3-array/src/scan.js +12 -0
  90. package/lib-vendor/d3-array/src/shuffle.js +20 -0
  91. package/lib-vendor/d3-array/src/some.js +16 -0
  92. package/lib-vendor/d3-array/src/sort.js +45 -0
  93. package/lib-vendor/d3-array/src/subset.js +11 -0
  94. package/lib-vendor/d3-array/src/sum.js +24 -0
  95. package/lib-vendor/d3-array/src/superset.js +28 -0
  96. package/lib-vendor/d3-array/src/threshold/freedmanDiaconis.js +14 -0
  97. package/lib-vendor/d3-array/src/threshold/scott.js +14 -0
  98. package/lib-vendor/d3-array/src/threshold/sturges.js +11 -0
  99. package/lib-vendor/d3-array/src/ticks.js +60 -0
  100. package/lib-vendor/d3-array/src/transpose.js +20 -0
  101. package/lib-vendor/d3-array/src/union.js +16 -0
  102. package/lib-vendor/d3-array/src/variance.js +31 -0
  103. package/lib-vendor/d3-array/src/zip.js +11 -0
  104. package/lib-vendor/d3-color/LICENSE +13 -0
  105. package/lib-vendor/d3-color/dist/d3-color.js +532 -0
  106. package/lib-vendor/d3-color/dist/d3-color.min.js +446 -0
  107. package/lib-vendor/d3-color/src/color.js +366 -0
  108. package/lib-vendor/d3-color/src/cubehelix.js +61 -0
  109. package/lib-vendor/d3-color/src/define.js +16 -0
  110. package/lib-vendor/d3-color/src/index.js +59 -0
  111. package/lib-vendor/d3-color/src/lab.js +117 -0
  112. package/lib-vendor/d3-color/src/math.js +8 -0
  113. package/lib-vendor/d3-delaunay/LICENSE +14 -0
  114. package/lib-vendor/d3-delaunay/dist/d3-delaunay.js +1398 -0
  115. package/lib-vendor/d3-delaunay/dist/d3-delaunay.min.js +853 -0
  116. package/lib-vendor/d3-delaunay/src/delaunay.js +282 -0
  117. package/lib-vendor/d3-delaunay/src/index.js +20 -0
  118. package/lib-vendor/d3-delaunay/src/path.js +43 -0
  119. package/lib-vendor/d3-delaunay/src/polygon.js +24 -0
  120. package/lib-vendor/d3-delaunay/src/voronoi.js +390 -0
  121. package/lib-vendor/d3-format/LICENSE +13 -0
  122. package/lib-vendor/d3-format/dist/d3-format.js +313 -0
  123. package/lib-vendor/d3-format/dist/d3-format.min.js +193 -0
  124. package/lib-vendor/d3-format/src/defaultLocale.js +23 -0
  125. package/lib-vendor/d3-format/src/exponent.js +10 -0
  126. package/lib-vendor/d3-format/src/formatDecimal.js +23 -0
  127. package/lib-vendor/d3-format/src/formatGroup.js +22 -0
  128. package/lib-vendor/d3-format/src/formatNumerals.js +13 -0
  129. package/lib-vendor/d3-format/src/formatPrefixAuto.js +18 -0
  130. package/lib-vendor/d3-format/src/formatRounded.js +14 -0
  131. package/lib-vendor/d3-format/src/formatSpecifier.js +42 -0
  132. package/lib-vendor/d3-format/src/formatTrim.js +25 -0
  133. package/lib-vendor/d3-format/src/formatTypes.js +25 -0
  134. package/lib-vendor/d3-format/src/identity.js +9 -0
  135. package/lib-vendor/d3-format/src/index.js +68 -0
  136. package/lib-vendor/d3-format/src/locale.js +152 -0
  137. package/lib-vendor/d3-format/src/precisionFixed.js +11 -0
  138. package/lib-vendor/d3-format/src/precisionPrefix.js +11 -0
  139. package/lib-vendor/d3-format/src/precisionRound.js +12 -0
  140. package/lib-vendor/d3-interpolate/LICENSE +13 -0
  141. package/lib-vendor/d3-interpolate/dist/d3-interpolate.js +543 -0
  142. package/lib-vendor/d3-interpolate/dist/d3-interpolate.min.js +362 -0
  143. package/lib-vendor/d3-interpolate/src/array.js +28 -0
  144. package/lib-vendor/d3-interpolate/src/basis.js +23 -0
  145. package/lib-vendor/d3-interpolate/src/basisClosed.js +18 -0
  146. package/lib-vendor/d3-interpolate/src/color.js +33 -0
  147. package/lib-vendor/d3-interpolate/src/constant.js +8 -0
  148. package/lib-vendor/d3-interpolate/src/cubehelix.js +32 -0
  149. package/lib-vendor/d3-interpolate/src/date.js +12 -0
  150. package/lib-vendor/d3-interpolate/src/discrete.js +12 -0
  151. package/lib-vendor/d3-interpolate/src/hcl.js +27 -0
  152. package/lib-vendor/d3-interpolate/src/hsl.js +27 -0
  153. package/lib-vendor/d3-interpolate/src/hue.js +14 -0
  154. package/lib-vendor/d3-interpolate/src/index.js +191 -0
  155. package/lib-vendor/d3-interpolate/src/lab.js +22 -0
  156. package/lib-vendor/d3-interpolate/src/number.js +11 -0
  157. package/lib-vendor/d3-interpolate/src/numberArray.js +20 -0
  158. package/lib-vendor/d3-interpolate/src/object.js +26 -0
  159. package/lib-vendor/d3-interpolate/src/piecewise.js +20 -0
  160. package/lib-vendor/d3-interpolate/src/quantize.js +11 -0
  161. package/lib-vendor/d3-interpolate/src/rgb.js +59 -0
  162. package/lib-vendor/d3-interpolate/src/round.js +11 -0
  163. package/lib-vendor/d3-interpolate/src/string.js +75 -0
  164. package/lib-vendor/d3-interpolate/src/transform/decompose.js +31 -0
  165. package/lib-vendor/d3-interpolate/src/transform/index.js +83 -0
  166. package/lib-vendor/d3-interpolate/src/transform/parse.js +25 -0
  167. package/lib-vendor/d3-interpolate/src/value.js +23 -0
  168. package/lib-vendor/d3-interpolate/src/zoom.js +66 -0
  169. package/lib-vendor/d3-path/LICENSE +13 -0
  170. package/lib-vendor/d3-path/dist/d3-path.js +161 -0
  171. package/lib-vendor/d3-path/dist/d3-path.min.js +92 -0
  172. package/lib-vendor/d3-path/src/index.js +24 -0
  173. package/lib-vendor/d3-path/src/path.js +158 -0
  174. package/lib-vendor/d3-scale/LICENSE +13 -0
  175. package/lib-vendor/d3-scale/dist/d3-scale.js +944 -0
  176. package/lib-vendor/d3-scale/dist/d3-scale.min.js +690 -0
  177. package/lib-vendor/d3-scale/src/band.js +87 -0
  178. package/lib-vendor/d3-scale/src/colors.js +11 -0
  179. package/lib-vendor/d3-scale/src/constant.js +11 -0
  180. package/lib-vendor/d3-scale/src/continuous.js +116 -0
  181. package/lib-vendor/d3-scale/src/diverging.js +91 -0
  182. package/lib-vendor/d3-scale/src/identity.js +27 -0
  183. package/lib-vendor/d3-scale/src/index.js +193 -0
  184. package/lib-vendor/d3-scale/src/init.js +38 -0
  185. package/lib-vendor/d3-scale/src/linear.js +67 -0
  186. package/lib-vendor/d3-scale/src/log.js +123 -0
  187. package/lib-vendor/d3-scale/src/nice.js +21 -0
  188. package/lib-vendor/d3-scale/src/number.js +9 -0
  189. package/lib-vendor/d3-scale/src/ordinal.js +44 -0
  190. package/lib-vendor/d3-scale/src/pow.js +44 -0
  191. package/lib-vendor/d3-scale/src/quantile.js +48 -0
  192. package/lib-vendor/d3-scale/src/quantize.js +46 -0
  193. package/lib-vendor/d3-scale/src/radial.js +53 -0
  194. package/lib-vendor/d3-scale/src/sequential.js +90 -0
  195. package/lib-vendor/d3-scale/src/sequentialQuantile.js +38 -0
  196. package/lib-vendor/d3-scale/src/symlog.js +35 -0
  197. package/lib-vendor/d3-scale/src/threshold.js +34 -0
  198. package/lib-vendor/d3-scale/src/tickFormat.js +37 -0
  199. package/lib-vendor/d3-scale/src/time.js +62 -0
  200. package/lib-vendor/d3-scale/src/utcTime.js +13 -0
  201. package/lib-vendor/d3-shape/LICENSE +13 -0
  202. package/lib-vendor/d3-shape/dist/d3-shape.js +2004 -0
  203. package/lib-vendor/d3-shape/dist/d3-shape.min.js +1389 -0
  204. package/lib-vendor/d3-shape/src/arc.js +250 -0
  205. package/lib-vendor/d3-shape/src/area.js +98 -0
  206. package/lib-vendor/d3-shape/src/areaRadial.js +42 -0
  207. package/lib-vendor/d3-shape/src/array.js +12 -0
  208. package/lib-vendor/d3-shape/src/constant.js +11 -0
  209. package/lib-vendor/d3-shape/src/curve/basis.js +62 -0
  210. package/lib-vendor/d3-shape/src/curve/basisClosed.js +70 -0
  211. package/lib-vendor/d3-shape/src/curve/basisOpen.js +54 -0
  212. package/lib-vendor/d3-shape/src/curve/bump.js +81 -0
  213. package/lib-vendor/d3-shape/src/curve/bundle.js +50 -0
  214. package/lib-vendor/d3-shape/src/curve/cardinal.js +69 -0
  215. package/lib-vendor/d3-shape/src/curve/cardinalClosed.js +76 -0
  216. package/lib-vendor/d3-shape/src/curve/cardinalOpen.js +60 -0
  217. package/lib-vendor/d3-shape/src/curve/catmullRom.js +92 -0
  218. package/lib-vendor/d3-shape/src/curve/catmullRomClosed.js +83 -0
  219. package/lib-vendor/d3-shape/src/curve/catmullRomOpen.js +67 -0
  220. package/lib-vendor/d3-shape/src/curve/linear.js +42 -0
  221. package/lib-vendor/d3-shape/src/curve/linearClosed.js +28 -0
  222. package/lib-vendor/d3-shape/src/curve/monotone.js +121 -0
  223. package/lib-vendor/d3-shape/src/curve/natural.js +67 -0
  224. package/lib-vendor/d3-shape/src/curve/radial.js +37 -0
  225. package/lib-vendor/d3-shape/src/curve/step.js +63 -0
  226. package/lib-vendor/d3-shape/src/descending.js +9 -0
  227. package/lib-vendor/d3-shape/src/identity.js +9 -0
  228. package/lib-vendor/d3-shape/src/index.js +436 -0
  229. package/lib-vendor/d3-shape/src/line.js +52 -0
  230. package/lib-vendor/d3-shape/src/lineRadial.js +24 -0
  231. package/lib-vendor/d3-shape/src/link.js +70 -0
  232. package/lib-vendor/d3-shape/src/math.js +26 -0
  233. package/lib-vendor/d3-shape/src/noop.js +7 -0
  234. package/lib-vendor/d3-shape/src/offset/diverging.js +20 -0
  235. package/lib-vendor/d3-shape/src/offset/expand.js +16 -0
  236. package/lib-vendor/d3-shape/src/offset/none.js +15 -0
  237. package/lib-vendor/d3-shape/src/offset/silhouette.js +16 -0
  238. package/lib-vendor/d3-shape/src/offset/wiggle.js +30 -0
  239. package/lib-vendor/d3-shape/src/order/appearance.js +23 -0
  240. package/lib-vendor/d3-shape/src/order/ascending.js +23 -0
  241. package/lib-vendor/d3-shape/src/order/descending.js +11 -0
  242. package/lib-vendor/d3-shape/src/order/insideOut.js +31 -0
  243. package/lib-vendor/d3-shape/src/order/none.js +12 -0
  244. package/lib-vendor/d3-shape/src/order/reverse.js +11 -0
  245. package/lib-vendor/d3-shape/src/path.js +22 -0
  246. package/lib-vendor/d3-shape/src/pie.js +79 -0
  247. package/lib-vendor/d3-shape/src/point.js +13 -0
  248. package/lib-vendor/d3-shape/src/pointRadial.js +9 -0
  249. package/lib-vendor/d3-shape/src/stack.js +55 -0
  250. package/lib-vendor/d3-shape/src/symbol/asterisk.js +21 -0
  251. package/lib-vendor/d3-shape/src/symbol/circle.js +14 -0
  252. package/lib-vendor/d3-shape/src/symbol/cross.js +25 -0
  253. package/lib-vendor/d3-shape/src/symbol/diamond.js +20 -0
  254. package/lib-vendor/d3-shape/src/symbol/diamond2.js +17 -0
  255. package/lib-vendor/d3-shape/src/symbol/plus.js +16 -0
  256. package/lib-vendor/d3-shape/src/symbol/square.js +14 -0
  257. package/lib-vendor/d3-shape/src/symbol/square2.js +17 -0
  258. package/lib-vendor/d3-shape/src/symbol/star.js +28 -0
  259. package/lib-vendor/d3-shape/src/symbol/times.js +16 -0
  260. package/lib-vendor/d3-shape/src/symbol/triangle.js +17 -0
  261. package/lib-vendor/d3-shape/src/symbol/triangle2.js +19 -0
  262. package/lib-vendor/d3-shape/src/symbol/wye.js +32 -0
  263. package/lib-vendor/d3-shape/src/symbol.js +50 -0
  264. package/lib-vendor/d3-time/LICENSE +13 -0
  265. package/lib-vendor/d3-time/dist/d3-time.js +367 -0
  266. package/lib-vendor/d3-time/dist/d3-time.min.js +190 -0
  267. package/lib-vendor/d3-time/src/day.js +30 -0
  268. package/lib-vendor/d3-time/src/duration.js +13 -0
  269. package/lib-vendor/d3-time/src/hour.js +28 -0
  270. package/lib-vendor/d3-time/src/index.js +417 -0
  271. package/lib-vendor/d3-time/src/interval.js +61 -0
  272. package/lib-vendor/d3-time/src/millisecond.js +29 -0
  273. package/lib-vendor/d3-time/src/minute.js +28 -0
  274. package/lib-vendor/d3-time/src/month.js +29 -0
  275. package/lib-vendor/d3-time/src/second.js +18 -0
  276. package/lib-vendor/d3-time/src/ticks.js +41 -0
  277. package/lib-vendor/d3-time/src/week.js +56 -0
  278. package/lib-vendor/d3-time/src/year.js +51 -0
  279. package/lib-vendor/d3-time-format/LICENSE +13 -0
  280. package/lib-vendor/d3-time-format/dist/d3-time-format.js +648 -0
  281. package/lib-vendor/d3-time-format/dist/d3-time-format.min.js +528 -0
  282. package/lib-vendor/d3-time-format/src/defaultLocale.js +32 -0
  283. package/lib-vendor/d3-time-format/src/index.js +60 -0
  284. package/lib-vendor/d3-time-format/src/isoFormat.js +13 -0
  285. package/lib-vendor/d3-time-format/src/isoParse.js +14 -0
  286. package/lib-vendor/d3-time-format/src/locale.js +606 -0
  287. package/lib-vendor/delaunator/LICENSE +15 -0
  288. package/lib-vendor/delaunator/delaunator.js +688 -0
  289. package/lib-vendor/delaunator/delaunator.min.js +316 -0
  290. package/lib-vendor/delaunator/index.js +440 -0
  291. package/lib-vendor/internmap/LICENSE +13 -0
  292. package/lib-vendor/internmap/dist/internmap.js +93 -0
  293. package/lib-vendor/internmap/dist/internmap.min.js +81 -0
  294. package/lib-vendor/internmap/src/index.js +87 -0
  295. package/lib-vendor/robust-predicates/LICENSE +24 -0
  296. package/lib-vendor/robust-predicates/esm/incircle.js +667 -0
  297. package/lib-vendor/robust-predicates/esm/insphere.js +693 -0
  298. package/lib-vendor/robust-predicates/esm/orient2d.js +174 -0
  299. package/lib-vendor/robust-predicates/esm/orient3d.js +422 -0
  300. package/lib-vendor/robust-predicates/esm/util.js +147 -0
  301. package/lib-vendor/robust-predicates/index.js +57 -0
  302. package/lib-vendor/robust-predicates/umd/incircle.js +798 -0
  303. package/lib-vendor/robust-predicates/umd/incircle.min.js +170 -0
  304. package/lib-vendor/robust-predicates/umd/insphere.js +828 -0
  305. package/lib-vendor/robust-predicates/umd/insphere.min.js +223 -0
  306. package/lib-vendor/robust-predicates/umd/orient2d.js +260 -0
  307. package/lib-vendor/robust-predicates/umd/orient2d.min.js +69 -0
  308. package/lib-vendor/robust-predicates/umd/orient3d.js +550 -0
  309. package/lib-vendor/robust-predicates/umd/orient3d.min.js +133 -0
  310. package/lib-vendor/robust-predicates/umd/predicates.js +2073 -0
  311. package/lib-vendor/robust-predicates/umd/predicates.min.js +468 -0
  312. package/package.json +63 -0
@@ -0,0 +1,1389 @@
1
+ "use strict";
2
+
3
+ // https://d3js.org/d3-shape/ v3.2.0 Copyright 2010-2022 Mike Bostock
4
+ !function (t, n) {
5
+ "object" == typeof exports && "undefined" != typeof module ? n(exports, require("../../../lib-vendor/d3-path/src/index.js")) : "function" == typeof define && define.amd ? define(["exports", "d3-path"], n) : n((t = "undefined" != typeof globalThis ? globalThis : t || self).d3 = t.d3 || {}, t.d3);
6
+ }(this, function (t, n) {
7
+ "use strict";
8
+
9
+ function i(t) {
10
+ return function () {
11
+ return t;
12
+ };
13
+ }
14
+ const e = Math.abs,
15
+ s = Math.atan2,
16
+ o = Math.cos,
17
+ h = Math.max,
18
+ _ = Math.min,
19
+ r = Math.sin,
20
+ a = Math.sqrt,
21
+ l = 1e-12,
22
+ c = Math.PI,
23
+ u = c / 2,
24
+ f = 2 * c;
25
+ function y(t) {
26
+ return t > 1 ? 0 : t < -1 ? c : Math.acos(t);
27
+ }
28
+ function x(t) {
29
+ return t >= 1 ? u : t <= -1 ? -u : Math.asin(t);
30
+ }
31
+ function p(t) {
32
+ let i = 3;
33
+ return t.digits = function (n) {
34
+ if (!arguments.length) return i;
35
+ if (null == n) i = null;else {
36
+ const t = Math.floor(n);
37
+ if (!(t >= 0)) throw new RangeError(`invalid digits: ${n}`);
38
+ i = t;
39
+ }
40
+ return t;
41
+ }, () => new n.Path(i);
42
+ }
43
+ function v(t) {
44
+ return t.innerRadius;
45
+ }
46
+ function d(t) {
47
+ return t.outerRadius;
48
+ }
49
+ function T(t) {
50
+ return t.startAngle;
51
+ }
52
+ function g(t) {
53
+ return t.endAngle;
54
+ }
55
+ function m(t) {
56
+ return t && t.padAngle;
57
+ }
58
+ function b(t, n, i, e, s, o, h, _) {
59
+ var r = i - t,
60
+ a = e - n,
61
+ c = h - s,
62
+ u = _ - o,
63
+ f = u * r - c * a;
64
+ if (!(f * f < l)) return [t + (f = (c * (n - o) - u * (t - s)) / f) * r, n + f * a];
65
+ }
66
+ function w(t, n, i, e, s, o, _) {
67
+ var r = t - i,
68
+ l = n - e,
69
+ c = (_ ? o : -o) / a(r * r + l * l),
70
+ u = c * l,
71
+ f = -c * r,
72
+ y = t + u,
73
+ x = n + f,
74
+ p = i + u,
75
+ v = e + f,
76
+ d = (y + p) / 2,
77
+ T = (x + v) / 2,
78
+ g = p - y,
79
+ m = v - x,
80
+ b = g * g + m * m,
81
+ w = s - o,
82
+ k = y * v - p * x,
83
+ N = (m < 0 ? -1 : 1) * a(h(0, w * w * b - k * k)),
84
+ S = (k * m - g * N) / b,
85
+ E = (-k * g - m * N) / b,
86
+ A = (k * m + g * N) / b,
87
+ P = (-k * g + m * N) / b,
88
+ M = S - d,
89
+ C = E - T,
90
+ R = A - d,
91
+ O = P - T;
92
+ return M * M + C * C > R * R + O * O && (S = A, E = P), {
93
+ cx: S,
94
+ cy: E,
95
+ x01: -u,
96
+ y01: -f,
97
+ x11: S * (s / w - 1),
98
+ y11: E * (s / w - 1)
99
+ };
100
+ }
101
+ var k = Array.prototype.slice;
102
+ function N(t) {
103
+ return "object" == typeof t && "length" in t ? t : Array.from(t);
104
+ }
105
+ function S(t) {
106
+ this._context = t;
107
+ }
108
+ function E(t) {
109
+ return new S(t);
110
+ }
111
+ function A(t) {
112
+ return t[0];
113
+ }
114
+ function P(t) {
115
+ return t[1];
116
+ }
117
+ function M(t, n) {
118
+ var e = i(!0),
119
+ s = null,
120
+ o = E,
121
+ h = null,
122
+ _ = p(r);
123
+ function r(i) {
124
+ var r,
125
+ a,
126
+ l,
127
+ c = (i = N(i)).length,
128
+ u = !1;
129
+ for (null == s && (h = o(l = _())), r = 0; r <= c; ++r) !(r < c && e(a = i[r], r, i)) === u && ((u = !u) ? h.lineStart() : h.lineEnd()), u && h.point(+t(a, r, i), +n(a, r, i));
130
+ if (l) return h = null, l + "" || null;
131
+ }
132
+ return t = "function" == typeof t ? t : void 0 === t ? A : i(t), n = "function" == typeof n ? n : void 0 === n ? P : i(n), r.x = function (n) {
133
+ return arguments.length ? (t = "function" == typeof n ? n : i(+n), r) : t;
134
+ }, r.y = function (t) {
135
+ return arguments.length ? (n = "function" == typeof t ? t : i(+t), r) : n;
136
+ }, r.defined = function (t) {
137
+ return arguments.length ? (e = "function" == typeof t ? t : i(!!t), r) : e;
138
+ }, r.curve = function (t) {
139
+ return arguments.length ? (o = t, null != s && (h = o(s)), r) : o;
140
+ }, r.context = function (t) {
141
+ return arguments.length ? (null == t ? s = h = null : h = o(s = t), r) : s;
142
+ }, r;
143
+ }
144
+ function C(t, n, e) {
145
+ var s = null,
146
+ o = i(!0),
147
+ h = null,
148
+ _ = E,
149
+ r = null,
150
+ a = p(l);
151
+ function l(i) {
152
+ var l,
153
+ c,
154
+ u,
155
+ f,
156
+ y,
157
+ x = (i = N(i)).length,
158
+ p = !1,
159
+ v = new Array(x),
160
+ d = new Array(x);
161
+ for (null == h && (r = _(y = a())), l = 0; l <= x; ++l) {
162
+ if (!(l < x && o(f = i[l], l, i)) === p) if (p = !p) c = l, r.areaStart(), r.lineStart();else {
163
+ for (r.lineEnd(), r.lineStart(), u = l - 1; u >= c; --u) r.point(v[u], d[u]);
164
+ r.lineEnd(), r.areaEnd();
165
+ }
166
+ p && (v[l] = +t(f, l, i), d[l] = +n(f, l, i), r.point(s ? +s(f, l, i) : v[l], e ? +e(f, l, i) : d[l]));
167
+ }
168
+ if (y) return r = null, y + "" || null;
169
+ }
170
+ function c() {
171
+ return M().defined(o).curve(_).context(h);
172
+ }
173
+ return t = "function" == typeof t ? t : void 0 === t ? A : i(+t), n = "function" == typeof n ? n : i(void 0 === n ? 0 : +n), e = "function" == typeof e ? e : void 0 === e ? P : i(+e), l.x = function (n) {
174
+ return arguments.length ? (t = "function" == typeof n ? n : i(+n), s = null, l) : t;
175
+ }, l.x0 = function (n) {
176
+ return arguments.length ? (t = "function" == typeof n ? n : i(+n), l) : t;
177
+ }, l.x1 = function (t) {
178
+ return arguments.length ? (s = null == t ? null : "function" == typeof t ? t : i(+t), l) : s;
179
+ }, l.y = function (t) {
180
+ return arguments.length ? (n = "function" == typeof t ? t : i(+t), e = null, l) : n;
181
+ }, l.y0 = function (t) {
182
+ return arguments.length ? (n = "function" == typeof t ? t : i(+t), l) : n;
183
+ }, l.y1 = function (t) {
184
+ return arguments.length ? (e = null == t ? null : "function" == typeof t ? t : i(+t), l) : e;
185
+ }, l.lineX0 = l.lineY0 = function () {
186
+ return c().x(t).y(n);
187
+ }, l.lineY1 = function () {
188
+ return c().x(t).y(e);
189
+ }, l.lineX1 = function () {
190
+ return c().x(s).y(n);
191
+ }, l.defined = function (t) {
192
+ return arguments.length ? (o = "function" == typeof t ? t : i(!!t), l) : o;
193
+ }, l.curve = function (t) {
194
+ return arguments.length ? (_ = t, null != h && (r = _(h)), l) : _;
195
+ }, l.context = function (t) {
196
+ return arguments.length ? (null == t ? h = r = null : r = _(h = t), l) : h;
197
+ }, l;
198
+ }
199
+ function R(t, n) {
200
+ return n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
201
+ }
202
+ function O(t) {
203
+ return t;
204
+ }
205
+ S.prototype = {
206
+ areaStart: function () {
207
+ this._line = 0;
208
+ },
209
+ areaEnd: function () {
210
+ this._line = NaN;
211
+ },
212
+ lineStart: function () {
213
+ this._point = 0;
214
+ },
215
+ lineEnd: function () {
216
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
217
+ },
218
+ point: function (t, n) {
219
+ switch (t = +t, n = +n, this._point) {
220
+ case 0:
221
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
222
+ break;
223
+ case 1:
224
+ this._point = 2;
225
+ default:
226
+ this._context.lineTo(t, n);
227
+ }
228
+ }
229
+ };
230
+ var z = Y(E);
231
+ function X(t) {
232
+ this._curve = t;
233
+ }
234
+ function Y(t) {
235
+ function n(n) {
236
+ return new X(t(n));
237
+ }
238
+ return n._curve = t, n;
239
+ }
240
+ function q(t) {
241
+ var n = t.curve;
242
+ return t.angle = t.x, delete t.x, t.radius = t.y, delete t.y, t.curve = function (t) {
243
+ return arguments.length ? n(Y(t)) : n()._curve;
244
+ }, t;
245
+ }
246
+ function B() {
247
+ return q(M().curve(z));
248
+ }
249
+ function D() {
250
+ var t = C().curve(z),
251
+ n = t.curve,
252
+ i = t.lineX0,
253
+ e = t.lineX1,
254
+ s = t.lineY0,
255
+ o = t.lineY1;
256
+ return t.angle = t.x, delete t.x, t.startAngle = t.x0, delete t.x0, t.endAngle = t.x1, delete t.x1, t.radius = t.y, delete t.y, t.innerRadius = t.y0, delete t.y0, t.outerRadius = t.y1, delete t.y1, t.lineStartAngle = function () {
257
+ return q(i());
258
+ }, delete t.lineX0, t.lineEndAngle = function () {
259
+ return q(e());
260
+ }, delete t.lineX1, t.lineInnerRadius = function () {
261
+ return q(s());
262
+ }, delete t.lineY0, t.lineOuterRadius = function () {
263
+ return q(o());
264
+ }, delete t.lineY1, t.curve = function (t) {
265
+ return arguments.length ? n(Y(t)) : n()._curve;
266
+ }, t;
267
+ }
268
+ function I(t, n) {
269
+ return [(n = +n) * Math.cos(t -= Math.PI / 2), n * Math.sin(t)];
270
+ }
271
+ X.prototype = {
272
+ areaStart: function () {
273
+ this._curve.areaStart();
274
+ },
275
+ areaEnd: function () {
276
+ this._curve.areaEnd();
277
+ },
278
+ lineStart: function () {
279
+ this._curve.lineStart();
280
+ },
281
+ lineEnd: function () {
282
+ this._curve.lineEnd();
283
+ },
284
+ point: function (t, n) {
285
+ this._curve.point(n * Math.sin(t), n * -Math.cos(t));
286
+ }
287
+ };
288
+ class j {
289
+ constructor(t, n) {
290
+ this._context = t, this._x = n;
291
+ }
292
+ areaStart() {
293
+ this._line = 0;
294
+ }
295
+ areaEnd() {
296
+ this._line = NaN;
297
+ }
298
+ lineStart() {
299
+ this._point = 0;
300
+ }
301
+ lineEnd() {
302
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
303
+ }
304
+ point(t, n) {
305
+ switch (t = +t, n = +n, this._point) {
306
+ case 0:
307
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
308
+ break;
309
+ case 1:
310
+ this._point = 2;
311
+ default:
312
+ this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + t) / 2, this._y0, this._x0, n, t, n) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + n) / 2, t, this._y0, t, n);
313
+ }
314
+ this._x0 = t, this._y0 = n;
315
+ }
316
+ }
317
+ class L {
318
+ constructor(t) {
319
+ this._context = t;
320
+ }
321
+ lineStart() {
322
+ this._point = 0;
323
+ }
324
+ lineEnd() {}
325
+ point(t, n) {
326
+ if (t = +t, n = +n, 0 === this._point) this._point = 1;else {
327
+ const i = I(this._x0, this._y0),
328
+ e = I(this._x0, this._y0 = (this._y0 + n) / 2),
329
+ s = I(t, this._y0),
330
+ o = I(t, n);
331
+ this._context.moveTo(...i), this._context.bezierCurveTo(...e, ...s, ...o);
332
+ }
333
+ this._x0 = t, this._y0 = n;
334
+ }
335
+ }
336
+ function V(t) {
337
+ return new j(t, !0);
338
+ }
339
+ function W(t) {
340
+ return new j(t, !1);
341
+ }
342
+ function F(t) {
343
+ return new L(t);
344
+ }
345
+ function H(t) {
346
+ return t.source;
347
+ }
348
+ function $(t) {
349
+ return t.target;
350
+ }
351
+ function G(t) {
352
+ let n = H,
353
+ e = $,
354
+ s = A,
355
+ o = P,
356
+ h = null,
357
+ _ = null,
358
+ r = p(a);
359
+ function a() {
360
+ let i;
361
+ const a = k.call(arguments),
362
+ l = n.apply(this, a),
363
+ c = e.apply(this, a);
364
+ if (null == h && (_ = t(i = r())), _.lineStart(), a[0] = l, _.point(+s.apply(this, a), +o.apply(this, a)), a[0] = c, _.point(+s.apply(this, a), +o.apply(this, a)), _.lineEnd(), i) return _ = null, i + "" || null;
365
+ }
366
+ return a.source = function (t) {
367
+ return arguments.length ? (n = t, a) : n;
368
+ }, a.target = function (t) {
369
+ return arguments.length ? (e = t, a) : e;
370
+ }, a.x = function (t) {
371
+ return arguments.length ? (s = "function" == typeof t ? t : i(+t), a) : s;
372
+ }, a.y = function (t) {
373
+ return arguments.length ? (o = "function" == typeof t ? t : i(+t), a) : o;
374
+ }, a.context = function (n) {
375
+ return arguments.length ? (null == n ? h = _ = null : _ = t(h = n), a) : h;
376
+ }, a;
377
+ }
378
+ const J = a(3);
379
+ var K = {
380
+ draw(t, n) {
381
+ const i = .59436 * a(n + _(n / 28, .75)),
382
+ e = i / 2,
383
+ s = e * J;
384
+ t.moveTo(0, i), t.lineTo(0, -i), t.moveTo(-s, -e), t.lineTo(s, e), t.moveTo(-s, e), t.lineTo(s, -e);
385
+ }
386
+ },
387
+ Q = {
388
+ draw(t, n) {
389
+ const i = a(n / c);
390
+ t.moveTo(i, 0), t.arc(0, 0, i, 0, f);
391
+ }
392
+ },
393
+ U = {
394
+ draw(t, n) {
395
+ const i = a(n / 5) / 2;
396
+ t.moveTo(-3 * i, -i), t.lineTo(-i, -i), t.lineTo(-i, -3 * i), t.lineTo(i, -3 * i), t.lineTo(i, -i), t.lineTo(3 * i, -i), t.lineTo(3 * i, i), t.lineTo(i, i), t.lineTo(i, 3 * i), t.lineTo(-i, 3 * i), t.lineTo(-i, i), t.lineTo(-3 * i, i), t.closePath();
397
+ }
398
+ };
399
+ const Z = a(1 / 3),
400
+ tt = 2 * Z;
401
+ var nt = {
402
+ draw(t, n) {
403
+ const i = a(n / tt),
404
+ e = i * Z;
405
+ t.moveTo(0, -i), t.lineTo(e, 0), t.lineTo(0, i), t.lineTo(-e, 0), t.closePath();
406
+ }
407
+ },
408
+ it = {
409
+ draw(t, n) {
410
+ const i = .62625 * a(n);
411
+ t.moveTo(0, -i), t.lineTo(i, 0), t.lineTo(0, i), t.lineTo(-i, 0), t.closePath();
412
+ }
413
+ },
414
+ et = {
415
+ draw(t, n) {
416
+ const i = .87559 * a(n - _(n / 7, 2));
417
+ t.moveTo(-i, 0), t.lineTo(i, 0), t.moveTo(0, i), t.lineTo(0, -i);
418
+ }
419
+ },
420
+ st = {
421
+ draw(t, n) {
422
+ const i = a(n),
423
+ e = -i / 2;
424
+ t.rect(e, e, i, i);
425
+ }
426
+ },
427
+ ot = {
428
+ draw(t, n) {
429
+ const i = .4431 * a(n);
430
+ t.moveTo(i, i), t.lineTo(i, -i), t.lineTo(-i, -i), t.lineTo(-i, i), t.closePath();
431
+ }
432
+ };
433
+ const ht = r(c / 10) / r(7 * c / 10),
434
+ _t = r(f / 10) * ht,
435
+ rt = -o(f / 10) * ht;
436
+ var at = {
437
+ draw(t, n) {
438
+ const i = a(.8908130915292852 * n),
439
+ e = _t * i,
440
+ s = rt * i;
441
+ t.moveTo(0, -i), t.lineTo(e, s);
442
+ for (let n = 1; n < 5; ++n) {
443
+ const h = f * n / 5,
444
+ _ = o(h),
445
+ a = r(h);
446
+ t.lineTo(a * i, -_ * i), t.lineTo(_ * e - a * s, a * e + _ * s);
447
+ }
448
+ t.closePath();
449
+ }
450
+ };
451
+ const lt = a(3);
452
+ var ct = {
453
+ draw(t, n) {
454
+ const i = -a(n / (3 * lt));
455
+ t.moveTo(0, 2 * i), t.lineTo(-lt * i, -i), t.lineTo(lt * i, -i), t.closePath();
456
+ }
457
+ };
458
+ const ut = a(3);
459
+ var ft = {
460
+ draw(t, n) {
461
+ const i = .6824 * a(n),
462
+ e = i / 2,
463
+ s = i * ut / 2;
464
+ t.moveTo(0, -i), t.lineTo(s, e), t.lineTo(-s, e), t.closePath();
465
+ }
466
+ };
467
+ const yt = -.5,
468
+ xt = a(3) / 2,
469
+ pt = 1 / a(12),
470
+ vt = 3 * (pt / 2 + 1);
471
+ var dt = {
472
+ draw(t, n) {
473
+ const i = a(n / vt),
474
+ e = i / 2,
475
+ s = i * pt,
476
+ o = e,
477
+ h = i * pt + i,
478
+ _ = -o,
479
+ r = h;
480
+ t.moveTo(e, s), t.lineTo(o, h), t.lineTo(_, r), t.lineTo(yt * e - xt * s, xt * e + yt * s), t.lineTo(yt * o - xt * h, xt * o + yt * h), t.lineTo(yt * _ - xt * r, xt * _ + yt * r), t.lineTo(yt * e + xt * s, yt * s - xt * e), t.lineTo(yt * o + xt * h, yt * h - xt * o), t.lineTo(yt * _ + xt * r, yt * r - xt * _), t.closePath();
481
+ }
482
+ },
483
+ Tt = {
484
+ draw(t, n) {
485
+ const i = .6189 * a(n - _(n / 6, 1.7));
486
+ t.moveTo(-i, -i), t.lineTo(i, i), t.moveTo(-i, i), t.lineTo(i, -i);
487
+ }
488
+ };
489
+ const gt = [Q, U, nt, st, at, ct, dt],
490
+ mt = [Q, et, Tt, ft, K, ot, it];
491
+ function bt() {}
492
+ function wt(t, n, i) {
493
+ t._context.bezierCurveTo((2 * t._x0 + t._x1) / 3, (2 * t._y0 + t._y1) / 3, (t._x0 + 2 * t._x1) / 3, (t._y0 + 2 * t._y1) / 3, (t._x0 + 4 * t._x1 + n) / 6, (t._y0 + 4 * t._y1 + i) / 6);
494
+ }
495
+ function kt(t) {
496
+ this._context = t;
497
+ }
498
+ function Nt(t) {
499
+ this._context = t;
500
+ }
501
+ function St(t) {
502
+ this._context = t;
503
+ }
504
+ function Et(t, n) {
505
+ this._basis = new kt(t), this._beta = n;
506
+ }
507
+ kt.prototype = {
508
+ areaStart: function () {
509
+ this._line = 0;
510
+ },
511
+ areaEnd: function () {
512
+ this._line = NaN;
513
+ },
514
+ lineStart: function () {
515
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
516
+ },
517
+ lineEnd: function () {
518
+ switch (this._point) {
519
+ case 3:
520
+ wt(this, this._x1, this._y1);
521
+ case 2:
522
+ this._context.lineTo(this._x1, this._y1);
523
+ }
524
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
525
+ },
526
+ point: function (t, n) {
527
+ switch (t = +t, n = +n, this._point) {
528
+ case 0:
529
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
530
+ break;
531
+ case 1:
532
+ this._point = 2;
533
+ break;
534
+ case 2:
535
+ this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
536
+ default:
537
+ wt(this, t, n);
538
+ }
539
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = n;
540
+ }
541
+ }, Nt.prototype = {
542
+ areaStart: bt,
543
+ areaEnd: bt,
544
+ lineStart: function () {
545
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
546
+ },
547
+ lineEnd: function () {
548
+ switch (this._point) {
549
+ case 1:
550
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
551
+ break;
552
+ case 2:
553
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
554
+ break;
555
+ case 3:
556
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
557
+ }
558
+ },
559
+ point: function (t, n) {
560
+ switch (t = +t, n = +n, this._point) {
561
+ case 0:
562
+ this._point = 1, this._x2 = t, this._y2 = n;
563
+ break;
564
+ case 1:
565
+ this._point = 2, this._x3 = t, this._y3 = n;
566
+ break;
567
+ case 2:
568
+ this._point = 3, this._x4 = t, this._y4 = n, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + n) / 6);
569
+ break;
570
+ default:
571
+ wt(this, t, n);
572
+ }
573
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = n;
574
+ }
575
+ }, St.prototype = {
576
+ areaStart: function () {
577
+ this._line = 0;
578
+ },
579
+ areaEnd: function () {
580
+ this._line = NaN;
581
+ },
582
+ lineStart: function () {
583
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
584
+ },
585
+ lineEnd: function () {
586
+ (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), this._line = 1 - this._line;
587
+ },
588
+ point: function (t, n) {
589
+ switch (t = +t, n = +n, this._point) {
590
+ case 0:
591
+ this._point = 1;
592
+ break;
593
+ case 1:
594
+ this._point = 2;
595
+ break;
596
+ case 2:
597
+ this._point = 3;
598
+ var i = (this._x0 + 4 * this._x1 + t) / 6,
599
+ e = (this._y0 + 4 * this._y1 + n) / 6;
600
+ this._line ? this._context.lineTo(i, e) : this._context.moveTo(i, e);
601
+ break;
602
+ case 3:
603
+ this._point = 4;
604
+ default:
605
+ wt(this, t, n);
606
+ }
607
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = n;
608
+ }
609
+ }, Et.prototype = {
610
+ lineStart: function () {
611
+ this._x = [], this._y = [], this._basis.lineStart();
612
+ },
613
+ lineEnd: function () {
614
+ var t = this._x,
615
+ n = this._y,
616
+ i = t.length - 1;
617
+ if (i > 0) for (var e, s = t[0], o = n[0], h = t[i] - s, _ = n[i] - o, r = -1; ++r <= i;) e = r / i, this._basis.point(this._beta * t[r] + (1 - this._beta) * (s + e * h), this._beta * n[r] + (1 - this._beta) * (o + e * _));
618
+ this._x = this._y = null, this._basis.lineEnd();
619
+ },
620
+ point: function (t, n) {
621
+ this._x.push(+t), this._y.push(+n);
622
+ }
623
+ };
624
+ var At = function t(n) {
625
+ function i(t) {
626
+ return 1 === n ? new kt(t) : new Et(t, n);
627
+ }
628
+ return i.beta = function (n) {
629
+ return t(+n);
630
+ }, i;
631
+ }(.85);
632
+ function Pt(t, n, i) {
633
+ t._context.bezierCurveTo(t._x1 + t._k * (t._x2 - t._x0), t._y1 + t._k * (t._y2 - t._y0), t._x2 + t._k * (t._x1 - n), t._y2 + t._k * (t._y1 - i), t._x2, t._y2);
634
+ }
635
+ function Mt(t, n) {
636
+ this._context = t, this._k = (1 - n) / 6;
637
+ }
638
+ Mt.prototype = {
639
+ areaStart: function () {
640
+ this._line = 0;
641
+ },
642
+ areaEnd: function () {
643
+ this._line = NaN;
644
+ },
645
+ lineStart: function () {
646
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
647
+ },
648
+ lineEnd: function () {
649
+ switch (this._point) {
650
+ case 2:
651
+ this._context.lineTo(this._x2, this._y2);
652
+ break;
653
+ case 3:
654
+ Pt(this, this._x1, this._y1);
655
+ }
656
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
657
+ },
658
+ point: function (t, n) {
659
+ switch (t = +t, n = +n, this._point) {
660
+ case 0:
661
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
662
+ break;
663
+ case 1:
664
+ this._point = 2, this._x1 = t, this._y1 = n;
665
+ break;
666
+ case 2:
667
+ this._point = 3;
668
+ default:
669
+ Pt(this, t, n);
670
+ }
671
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
672
+ }
673
+ };
674
+ var Ct = function t(n) {
675
+ function i(t) {
676
+ return new Mt(t, n);
677
+ }
678
+ return i.tension = function (n) {
679
+ return t(+n);
680
+ }, i;
681
+ }(0);
682
+ function Rt(t, n) {
683
+ this._context = t, this._k = (1 - n) / 6;
684
+ }
685
+ Rt.prototype = {
686
+ areaStart: bt,
687
+ areaEnd: bt,
688
+ lineStart: function () {
689
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
690
+ },
691
+ lineEnd: function () {
692
+ switch (this._point) {
693
+ case 1:
694
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
695
+ break;
696
+ case 2:
697
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
698
+ break;
699
+ case 3:
700
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
701
+ }
702
+ },
703
+ point: function (t, n) {
704
+ switch (t = +t, n = +n, this._point) {
705
+ case 0:
706
+ this._point = 1, this._x3 = t, this._y3 = n;
707
+ break;
708
+ case 1:
709
+ this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = n);
710
+ break;
711
+ case 2:
712
+ this._point = 3, this._x5 = t, this._y5 = n;
713
+ break;
714
+ default:
715
+ Pt(this, t, n);
716
+ }
717
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
718
+ }
719
+ };
720
+ var Ot = function t(n) {
721
+ function i(t) {
722
+ return new Rt(t, n);
723
+ }
724
+ return i.tension = function (n) {
725
+ return t(+n);
726
+ }, i;
727
+ }(0);
728
+ function zt(t, n) {
729
+ this._context = t, this._k = (1 - n) / 6;
730
+ }
731
+ zt.prototype = {
732
+ areaStart: function () {
733
+ this._line = 0;
734
+ },
735
+ areaEnd: function () {
736
+ this._line = NaN;
737
+ },
738
+ lineStart: function () {
739
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
740
+ },
741
+ lineEnd: function () {
742
+ (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), this._line = 1 - this._line;
743
+ },
744
+ point: function (t, n) {
745
+ switch (t = +t, n = +n, this._point) {
746
+ case 0:
747
+ this._point = 1;
748
+ break;
749
+ case 1:
750
+ this._point = 2;
751
+ break;
752
+ case 2:
753
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
754
+ break;
755
+ case 3:
756
+ this._point = 4;
757
+ default:
758
+ Pt(this, t, n);
759
+ }
760
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
761
+ }
762
+ };
763
+ var Xt = function t(n) {
764
+ function i(t) {
765
+ return new zt(t, n);
766
+ }
767
+ return i.tension = function (n) {
768
+ return t(+n);
769
+ }, i;
770
+ }(0);
771
+ function Yt(t, n, i) {
772
+ var e = t._x1,
773
+ s = t._y1,
774
+ o = t._x2,
775
+ h = t._y2;
776
+ if (t._l01_a > l) {
777
+ var _ = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a,
778
+ r = 3 * t._l01_a * (t._l01_a + t._l12_a);
779
+ e = (e * _ - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / r, s = (s * _ - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / r;
780
+ }
781
+ if (t._l23_a > l) {
782
+ var a = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a,
783
+ c = 3 * t._l23_a * (t._l23_a + t._l12_a);
784
+ o = (o * a + t._x1 * t._l23_2a - n * t._l12_2a) / c, h = (h * a + t._y1 * t._l23_2a - i * t._l12_2a) / c;
785
+ }
786
+ t._context.bezierCurveTo(e, s, o, h, t._x2, t._y2);
787
+ }
788
+ function qt(t, n) {
789
+ this._context = t, this._alpha = n;
790
+ }
791
+ qt.prototype = {
792
+ areaStart: function () {
793
+ this._line = 0;
794
+ },
795
+ areaEnd: function () {
796
+ this._line = NaN;
797
+ },
798
+ lineStart: function () {
799
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
800
+ },
801
+ lineEnd: function () {
802
+ switch (this._point) {
803
+ case 2:
804
+ this._context.lineTo(this._x2, this._y2);
805
+ break;
806
+ case 3:
807
+ this.point(this._x2, this._y2);
808
+ }
809
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
810
+ },
811
+ point: function (t, n) {
812
+ if (t = +t, n = +n, this._point) {
813
+ var i = this._x2 - t,
814
+ e = this._y2 - n;
815
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + e * e, this._alpha));
816
+ }
817
+ switch (this._point) {
818
+ case 0:
819
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
820
+ break;
821
+ case 1:
822
+ this._point = 2;
823
+ break;
824
+ case 2:
825
+ this._point = 3;
826
+ default:
827
+ Yt(this, t, n);
828
+ }
829
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
830
+ }
831
+ };
832
+ var Bt = function t(n) {
833
+ function i(t) {
834
+ return n ? new qt(t, n) : new Mt(t, 0);
835
+ }
836
+ return i.alpha = function (n) {
837
+ return t(+n);
838
+ }, i;
839
+ }(.5);
840
+ function Dt(t, n) {
841
+ this._context = t, this._alpha = n;
842
+ }
843
+ Dt.prototype = {
844
+ areaStart: bt,
845
+ areaEnd: bt,
846
+ lineStart: function () {
847
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
848
+ },
849
+ lineEnd: function () {
850
+ switch (this._point) {
851
+ case 1:
852
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
853
+ break;
854
+ case 2:
855
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
856
+ break;
857
+ case 3:
858
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
859
+ }
860
+ },
861
+ point: function (t, n) {
862
+ if (t = +t, n = +n, this._point) {
863
+ var i = this._x2 - t,
864
+ e = this._y2 - n;
865
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + e * e, this._alpha));
866
+ }
867
+ switch (this._point) {
868
+ case 0:
869
+ this._point = 1, this._x3 = t, this._y3 = n;
870
+ break;
871
+ case 1:
872
+ this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = n);
873
+ break;
874
+ case 2:
875
+ this._point = 3, this._x5 = t, this._y5 = n;
876
+ break;
877
+ default:
878
+ Yt(this, t, n);
879
+ }
880
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
881
+ }
882
+ };
883
+ var It = function t(n) {
884
+ function i(t) {
885
+ return n ? new Dt(t, n) : new Rt(t, 0);
886
+ }
887
+ return i.alpha = function (n) {
888
+ return t(+n);
889
+ }, i;
890
+ }(.5);
891
+ function jt(t, n) {
892
+ this._context = t, this._alpha = n;
893
+ }
894
+ jt.prototype = {
895
+ areaStart: function () {
896
+ this._line = 0;
897
+ },
898
+ areaEnd: function () {
899
+ this._line = NaN;
900
+ },
901
+ lineStart: function () {
902
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
903
+ },
904
+ lineEnd: function () {
905
+ (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), this._line = 1 - this._line;
906
+ },
907
+ point: function (t, n) {
908
+ if (t = +t, n = +n, this._point) {
909
+ var i = this._x2 - t,
910
+ e = this._y2 - n;
911
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + e * e, this._alpha));
912
+ }
913
+ switch (this._point) {
914
+ case 0:
915
+ this._point = 1;
916
+ break;
917
+ case 1:
918
+ this._point = 2;
919
+ break;
920
+ case 2:
921
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
922
+ break;
923
+ case 3:
924
+ this._point = 4;
925
+ default:
926
+ Yt(this, t, n);
927
+ }
928
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = n;
929
+ }
930
+ };
931
+ var Lt = function t(n) {
932
+ function i(t) {
933
+ return n ? new jt(t, n) : new zt(t, 0);
934
+ }
935
+ return i.alpha = function (n) {
936
+ return t(+n);
937
+ }, i;
938
+ }(.5);
939
+ function Vt(t) {
940
+ this._context = t;
941
+ }
942
+ function Wt(t) {
943
+ return t < 0 ? -1 : 1;
944
+ }
945
+ function Ft(t, n, i) {
946
+ var e = t._x1 - t._x0,
947
+ s = n - t._x1,
948
+ o = (t._y1 - t._y0) / (e || s < 0 && -0),
949
+ h = (i - t._y1) / (s || e < 0 && -0),
950
+ _ = (o * s + h * e) / (e + s);
951
+ return (Wt(o) + Wt(h)) * Math.min(Math.abs(o), Math.abs(h), .5 * Math.abs(_)) || 0;
952
+ }
953
+ function Ht(t, n) {
954
+ var i = t._x1 - t._x0;
955
+ return i ? (3 * (t._y1 - t._y0) / i - n) / 2 : n;
956
+ }
957
+ function $t(t, n, i) {
958
+ var e = t._x0,
959
+ s = t._y0,
960
+ o = t._x1,
961
+ h = t._y1,
962
+ _ = (o - e) / 3;
963
+ t._context.bezierCurveTo(e + _, s + _ * n, o - _, h - _ * i, o, h);
964
+ }
965
+ function Gt(t) {
966
+ this._context = t;
967
+ }
968
+ function Jt(t) {
969
+ this._context = new Kt(t);
970
+ }
971
+ function Kt(t) {
972
+ this._context = t;
973
+ }
974
+ function Qt(t) {
975
+ this._context = t;
976
+ }
977
+ function Ut(t) {
978
+ var n,
979
+ i,
980
+ e = t.length - 1,
981
+ s = new Array(e),
982
+ o = new Array(e),
983
+ h = new Array(e);
984
+ for (s[0] = 0, o[0] = 2, h[0] = t[0] + 2 * t[1], n = 1; n < e - 1; ++n) s[n] = 1, o[n] = 4, h[n] = 4 * t[n] + 2 * t[n + 1];
985
+ for (s[e - 1] = 2, o[e - 1] = 7, h[e - 1] = 8 * t[e - 1] + t[e], n = 1; n < e; ++n) i = s[n] / o[n - 1], o[n] -= i, h[n] -= i * h[n - 1];
986
+ for (s[e - 1] = h[e - 1] / o[e - 1], n = e - 2; n >= 0; --n) s[n] = (h[n] - s[n + 1]) / o[n];
987
+ for (o[e - 1] = (t[e] + s[e - 1]) / 2, n = 0; n < e - 1; ++n) o[n] = 2 * t[n + 1] - s[n + 1];
988
+ return [s, o];
989
+ }
990
+ function Zt(t, n) {
991
+ this._context = t, this._t = n;
992
+ }
993
+ function tn(t, n) {
994
+ if ((s = t.length) > 1) for (var i, e, s, o = 1, h = t[n[0]], _ = h.length; o < s; ++o) for (e = h, h = t[n[o]], i = 0; i < _; ++i) h[i][1] += h[i][0] = isNaN(e[i][1]) ? e[i][0] : e[i][1];
995
+ }
996
+ function nn(t) {
997
+ for (var n = t.length, i = new Array(n); --n >= 0;) i[n] = n;
998
+ return i;
999
+ }
1000
+ function en(t, n) {
1001
+ return t[n];
1002
+ }
1003
+ function sn(t) {
1004
+ const n = [];
1005
+ return n.key = t, n;
1006
+ }
1007
+ function on(t) {
1008
+ var n = t.map(hn);
1009
+ return nn(t).sort(function (t, i) {
1010
+ return n[t] - n[i];
1011
+ });
1012
+ }
1013
+ function hn(t) {
1014
+ for (var n, i = -1, e = 0, s = t.length, o = -1 / 0; ++i < s;) (n = +t[i][1]) > o && (o = n, e = i);
1015
+ return e;
1016
+ }
1017
+ function _n(t) {
1018
+ var n = t.map(rn);
1019
+ return nn(t).sort(function (t, i) {
1020
+ return n[t] - n[i];
1021
+ });
1022
+ }
1023
+ function rn(t) {
1024
+ for (var n, i = 0, e = -1, s = t.length; ++e < s;) (n = +t[e][1]) && (i += n);
1025
+ return i;
1026
+ }
1027
+ Vt.prototype = {
1028
+ areaStart: bt,
1029
+ areaEnd: bt,
1030
+ lineStart: function () {
1031
+ this._point = 0;
1032
+ },
1033
+ lineEnd: function () {
1034
+ this._point && this._context.closePath();
1035
+ },
1036
+ point: function (t, n) {
1037
+ t = +t, n = +n, this._point ? this._context.lineTo(t, n) : (this._point = 1, this._context.moveTo(t, n));
1038
+ }
1039
+ }, Gt.prototype = {
1040
+ areaStart: function () {
1041
+ this._line = 0;
1042
+ },
1043
+ areaEnd: function () {
1044
+ this._line = NaN;
1045
+ },
1046
+ lineStart: function () {
1047
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
1048
+ },
1049
+ lineEnd: function () {
1050
+ switch (this._point) {
1051
+ case 2:
1052
+ this._context.lineTo(this._x1, this._y1);
1053
+ break;
1054
+ case 3:
1055
+ $t(this, this._t0, Ht(this, this._t0));
1056
+ }
1057
+ (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line = 1 - this._line;
1058
+ },
1059
+ point: function (t, n) {
1060
+ var i = NaN;
1061
+ if (n = +n, (t = +t) !== this._x1 || n !== this._y1) {
1062
+ switch (this._point) {
1063
+ case 0:
1064
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
1065
+ break;
1066
+ case 1:
1067
+ this._point = 2;
1068
+ break;
1069
+ case 2:
1070
+ this._point = 3, $t(this, Ht(this, i = Ft(this, t, n)), i);
1071
+ break;
1072
+ default:
1073
+ $t(this, this._t0, i = Ft(this, t, n));
1074
+ }
1075
+ this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = n, this._t0 = i;
1076
+ }
1077
+ }
1078
+ }, (Jt.prototype = Object.create(Gt.prototype)).point = function (t, n) {
1079
+ Gt.prototype.point.call(this, n, t);
1080
+ }, Kt.prototype = {
1081
+ moveTo: function (t, n) {
1082
+ this._context.moveTo(n, t);
1083
+ },
1084
+ closePath: function () {
1085
+ this._context.closePath();
1086
+ },
1087
+ lineTo: function (t, n) {
1088
+ this._context.lineTo(n, t);
1089
+ },
1090
+ bezierCurveTo: function (t, n, i, e, s, o) {
1091
+ this._context.bezierCurveTo(n, t, e, i, o, s);
1092
+ }
1093
+ }, Qt.prototype = {
1094
+ areaStart: function () {
1095
+ this._line = 0;
1096
+ },
1097
+ areaEnd: function () {
1098
+ this._line = NaN;
1099
+ },
1100
+ lineStart: function () {
1101
+ this._x = [], this._y = [];
1102
+ },
1103
+ lineEnd: function () {
1104
+ var t = this._x,
1105
+ n = this._y,
1106
+ i = t.length;
1107
+ if (i) if (this._line ? this._context.lineTo(t[0], n[0]) : this._context.moveTo(t[0], n[0]), 2 === i) this._context.lineTo(t[1], n[1]);else for (var e = Ut(t), s = Ut(n), o = 0, h = 1; h < i; ++o, ++h) this._context.bezierCurveTo(e[0][o], s[0][o], e[1][o], s[1][o], t[h], n[h]);
1108
+ (this._line || 0 !== this._line && 1 === i) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
1109
+ },
1110
+ point: function (t, n) {
1111
+ this._x.push(+t), this._y.push(+n);
1112
+ }
1113
+ }, Zt.prototype = {
1114
+ areaStart: function () {
1115
+ this._line = 0;
1116
+ },
1117
+ areaEnd: function () {
1118
+ this._line = NaN;
1119
+ },
1120
+ lineStart: function () {
1121
+ this._x = this._y = NaN, this._point = 0;
1122
+ },
1123
+ lineEnd: function () {
1124
+ 0 < this._t && this._t < 1 && 2 === this._point && this._context.lineTo(this._x, this._y), (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
1125
+ },
1126
+ point: function (t, n) {
1127
+ switch (t = +t, n = +n, this._point) {
1128
+ case 0:
1129
+ this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n);
1130
+ break;
1131
+ case 1:
1132
+ this._point = 2;
1133
+ default:
1134
+ if (this._t <= 0) this._context.lineTo(this._x, n), this._context.lineTo(t, n);else {
1135
+ var i = this._x * (1 - this._t) + t * this._t;
1136
+ this._context.lineTo(i, this._y), this._context.lineTo(i, n);
1137
+ }
1138
+ }
1139
+ this._x = t, this._y = n;
1140
+ }
1141
+ }, t.arc = function () {
1142
+ var t = v,
1143
+ n = d,
1144
+ h = i(0),
1145
+ k = null,
1146
+ N = T,
1147
+ S = g,
1148
+ E = m,
1149
+ A = null,
1150
+ P = p(M);
1151
+ function M() {
1152
+ var i,
1153
+ p,
1154
+ v = +t.apply(this, arguments),
1155
+ d = +n.apply(this, arguments),
1156
+ T = N.apply(this, arguments) - u,
1157
+ g = S.apply(this, arguments) - u,
1158
+ m = e(g - T),
1159
+ M = g > T;
1160
+ if (A || (A = i = P()), d < v && (p = d, d = v, v = p), d > l) {
1161
+ if (m > f - l) A.moveTo(d * o(T), d * r(T)), A.arc(0, 0, d, T, g, !M), v > l && (A.moveTo(v * o(g), v * r(g)), A.arc(0, 0, v, g, T, M));else {
1162
+ var C,
1163
+ R,
1164
+ O = T,
1165
+ z = g,
1166
+ X = T,
1167
+ Y = g,
1168
+ q = m,
1169
+ B = m,
1170
+ D = E.apply(this, arguments) / 2,
1171
+ I = D > l && (k ? +k.apply(this, arguments) : a(v * v + d * d)),
1172
+ j = _(e(d - v) / 2, +h.apply(this, arguments)),
1173
+ L = j,
1174
+ V = j;
1175
+ if (I > l) {
1176
+ var W = x(I / v * r(D)),
1177
+ F = x(I / d * r(D));
1178
+ (q -= 2 * W) > l ? (X += W *= M ? 1 : -1, Y -= W) : (q = 0, X = Y = (T + g) / 2), (B -= 2 * F) > l ? (O += F *= M ? 1 : -1, z -= F) : (B = 0, O = z = (T + g) / 2);
1179
+ }
1180
+ var H = d * o(O),
1181
+ $ = d * r(O),
1182
+ G = v * o(Y),
1183
+ J = v * r(Y);
1184
+ if (j > l) {
1185
+ var K,
1186
+ Q = d * o(z),
1187
+ U = d * r(z),
1188
+ Z = v * o(X),
1189
+ tt = v * r(X);
1190
+ if (m < c) if (K = b(H, $, Z, tt, Q, U, G, J)) {
1191
+ var nt = H - K[0],
1192
+ it = $ - K[1],
1193
+ et = Q - K[0],
1194
+ st = U - K[1],
1195
+ ot = 1 / r(y((nt * et + it * st) / (a(nt * nt + it * it) * a(et * et + st * st))) / 2),
1196
+ ht = a(K[0] * K[0] + K[1] * K[1]);
1197
+ L = _(j, (v - ht) / (ot - 1)), V = _(j, (d - ht) / (ot + 1));
1198
+ } else L = V = 0;
1199
+ }
1200
+ B > l ? V > l ? (C = w(Z, tt, H, $, d, V, M), R = w(Q, U, G, J, d, V, M), A.moveTo(C.cx + C.x01, C.cy + C.y01), V < j ? A.arc(C.cx, C.cy, V, s(C.y01, C.x01), s(R.y01, R.x01), !M) : (A.arc(C.cx, C.cy, V, s(C.y01, C.x01), s(C.y11, C.x11), !M), A.arc(0, 0, d, s(C.cy + C.y11, C.cx + C.x11), s(R.cy + R.y11, R.cx + R.x11), !M), A.arc(R.cx, R.cy, V, s(R.y11, R.x11), s(R.y01, R.x01), !M))) : (A.moveTo(H, $), A.arc(0, 0, d, O, z, !M)) : A.moveTo(H, $), v > l && q > l ? L > l ? (C = w(G, J, Q, U, v, -L, M), R = w(H, $, Z, tt, v, -L, M), A.lineTo(C.cx + C.x01, C.cy + C.y01), L < j ? A.arc(C.cx, C.cy, L, s(C.y01, C.x01), s(R.y01, R.x01), !M) : (A.arc(C.cx, C.cy, L, s(C.y01, C.x01), s(C.y11, C.x11), !M), A.arc(0, 0, v, s(C.cy + C.y11, C.cx + C.x11), s(R.cy + R.y11, R.cx + R.x11), M), A.arc(R.cx, R.cy, L, s(R.y11, R.x11), s(R.y01, R.x01), !M))) : A.arc(0, 0, v, Y, X, M) : A.lineTo(G, J);
1201
+ }
1202
+ } else A.moveTo(0, 0);
1203
+ if (A.closePath(), i) return A = null, i + "" || null;
1204
+ }
1205
+ return M.centroid = function () {
1206
+ var i = (+t.apply(this, arguments) + +n.apply(this, arguments)) / 2,
1207
+ e = (+N.apply(this, arguments) + +S.apply(this, arguments)) / 2 - c / 2;
1208
+ return [o(e) * i, r(e) * i];
1209
+ }, M.innerRadius = function (n) {
1210
+ return arguments.length ? (t = "function" == typeof n ? n : i(+n), M) : t;
1211
+ }, M.outerRadius = function (t) {
1212
+ return arguments.length ? (n = "function" == typeof t ? t : i(+t), M) : n;
1213
+ }, M.cornerRadius = function (t) {
1214
+ return arguments.length ? (h = "function" == typeof t ? t : i(+t), M) : h;
1215
+ }, M.padRadius = function (t) {
1216
+ return arguments.length ? (k = null == t ? null : "function" == typeof t ? t : i(+t), M) : k;
1217
+ }, M.startAngle = function (t) {
1218
+ return arguments.length ? (N = "function" == typeof t ? t : i(+t), M) : N;
1219
+ }, M.endAngle = function (t) {
1220
+ return arguments.length ? (S = "function" == typeof t ? t : i(+t), M) : S;
1221
+ }, M.padAngle = function (t) {
1222
+ return arguments.length ? (E = "function" == typeof t ? t : i(+t), M) : E;
1223
+ }, M.context = function (t) {
1224
+ return arguments.length ? (A = null == t ? null : t, M) : A;
1225
+ }, M;
1226
+ }, t.area = C, t.areaRadial = D, t.curveBasis = function (t) {
1227
+ return new kt(t);
1228
+ }, t.curveBasisClosed = function (t) {
1229
+ return new Nt(t);
1230
+ }, t.curveBasisOpen = function (t) {
1231
+ return new St(t);
1232
+ }, t.curveBumpX = V, t.curveBumpY = W, t.curveBundle = At, t.curveCardinal = Ct, t.curveCardinalClosed = Ot, t.curveCardinalOpen = Xt, t.curveCatmullRom = Bt, t.curveCatmullRomClosed = It, t.curveCatmullRomOpen = Lt, t.curveLinear = E, t.curveLinearClosed = function (t) {
1233
+ return new Vt(t);
1234
+ }, t.curveMonotoneX = function (t) {
1235
+ return new Gt(t);
1236
+ }, t.curveMonotoneY = function (t) {
1237
+ return new Jt(t);
1238
+ }, t.curveNatural = function (t) {
1239
+ return new Qt(t);
1240
+ }, t.curveStep = function (t) {
1241
+ return new Zt(t, .5);
1242
+ }, t.curveStepAfter = function (t) {
1243
+ return new Zt(t, 1);
1244
+ }, t.curveStepBefore = function (t) {
1245
+ return new Zt(t, 0);
1246
+ }, t.line = M, t.lineRadial = B, t.link = G, t.linkHorizontal = function () {
1247
+ return G(V);
1248
+ }, t.linkRadial = function () {
1249
+ const t = G(F);
1250
+ return t.angle = t.x, delete t.x, t.radius = t.y, delete t.y, t;
1251
+ }, t.linkVertical = function () {
1252
+ return G(W);
1253
+ }, t.pie = function () {
1254
+ var t = O,
1255
+ n = R,
1256
+ e = null,
1257
+ s = i(0),
1258
+ o = i(f),
1259
+ h = i(0);
1260
+ function _(i) {
1261
+ var _,
1262
+ r,
1263
+ a,
1264
+ l,
1265
+ c,
1266
+ u = (i = N(i)).length,
1267
+ y = 0,
1268
+ x = new Array(u),
1269
+ p = new Array(u),
1270
+ v = +s.apply(this, arguments),
1271
+ d = Math.min(f, Math.max(-f, o.apply(this, arguments) - v)),
1272
+ T = Math.min(Math.abs(d) / u, h.apply(this, arguments)),
1273
+ g = T * (d < 0 ? -1 : 1);
1274
+ for (_ = 0; _ < u; ++_) (c = p[x[_] = _] = +t(i[_], _, i)) > 0 && (y += c);
1275
+ for (null != n ? x.sort(function (t, i) {
1276
+ return n(p[t], p[i]);
1277
+ }) : null != e && x.sort(function (t, n) {
1278
+ return e(i[t], i[n]);
1279
+ }), _ = 0, a = y ? (d - u * g) / y : 0; _ < u; ++_, v = l) r = x[_], l = v + ((c = p[r]) > 0 ? c * a : 0) + g, p[r] = {
1280
+ data: i[r],
1281
+ index: _,
1282
+ value: c,
1283
+ startAngle: v,
1284
+ endAngle: l,
1285
+ padAngle: T
1286
+ };
1287
+ return p;
1288
+ }
1289
+ return _.value = function (n) {
1290
+ return arguments.length ? (t = "function" == typeof n ? n : i(+n), _) : t;
1291
+ }, _.sortValues = function (t) {
1292
+ return arguments.length ? (n = t, e = null, _) : n;
1293
+ }, _.sort = function (t) {
1294
+ return arguments.length ? (e = t, n = null, _) : e;
1295
+ }, _.startAngle = function (t) {
1296
+ return arguments.length ? (s = "function" == typeof t ? t : i(+t), _) : s;
1297
+ }, _.endAngle = function (t) {
1298
+ return arguments.length ? (o = "function" == typeof t ? t : i(+t), _) : o;
1299
+ }, _.padAngle = function (t) {
1300
+ return arguments.length ? (h = "function" == typeof t ? t : i(+t), _) : h;
1301
+ }, _;
1302
+ }, t.pointRadial = I, t.radialArea = D, t.radialLine = B, t.stack = function () {
1303
+ var t = i([]),
1304
+ n = nn,
1305
+ e = tn,
1306
+ s = en;
1307
+ function o(i) {
1308
+ var o,
1309
+ h,
1310
+ _ = Array.from(t.apply(this, arguments), sn),
1311
+ r = _.length,
1312
+ a = -1;
1313
+ for (const t of i) for (o = 0, ++a; o < r; ++o) (_[o][a] = [0, +s(t, _[o].key, a, i)]).data = t;
1314
+ for (o = 0, h = N(n(_)); o < r; ++o) _[h[o]].index = o;
1315
+ return e(_, h), _;
1316
+ }
1317
+ return o.keys = function (n) {
1318
+ return arguments.length ? (t = "function" == typeof n ? n : i(Array.from(n)), o) : t;
1319
+ }, o.value = function (t) {
1320
+ return arguments.length ? (s = "function" == typeof t ? t : i(+t), o) : s;
1321
+ }, o.order = function (t) {
1322
+ return arguments.length ? (n = null == t ? nn : "function" == typeof t ? t : i(Array.from(t)), o) : n;
1323
+ }, o.offset = function (t) {
1324
+ return arguments.length ? (e = null == t ? tn : t, o) : e;
1325
+ }, o;
1326
+ }, t.stackOffsetDiverging = function (t, n) {
1327
+ if ((_ = t.length) > 0) for (var i, e, s, o, h, _, r = 0, a = t[n[0]].length; r < a; ++r) for (o = h = 0, i = 0; i < _; ++i) (s = (e = t[n[i]][r])[1] - e[0]) > 0 ? (e[0] = o, e[1] = o += s) : s < 0 ? (e[1] = h, e[0] = h += s) : (e[0] = 0, e[1] = s);
1328
+ }, t.stackOffsetExpand = function (t, n) {
1329
+ if ((e = t.length) > 0) {
1330
+ for (var i, e, s, o = 0, h = t[0].length; o < h; ++o) {
1331
+ for (s = i = 0; i < e; ++i) s += t[i][o][1] || 0;
1332
+ if (s) for (i = 0; i < e; ++i) t[i][o][1] /= s;
1333
+ }
1334
+ tn(t, n);
1335
+ }
1336
+ }, t.stackOffsetNone = tn, t.stackOffsetSilhouette = function (t, n) {
1337
+ if ((i = t.length) > 0) {
1338
+ for (var i, e = 0, s = t[n[0]], o = s.length; e < o; ++e) {
1339
+ for (var h = 0, _ = 0; h < i; ++h) _ += t[h][e][1] || 0;
1340
+ s[e][1] += s[e][0] = -_ / 2;
1341
+ }
1342
+ tn(t, n);
1343
+ }
1344
+ }, t.stackOffsetWiggle = function (t, n) {
1345
+ if ((s = t.length) > 0 && (e = (i = t[n[0]]).length) > 0) {
1346
+ for (var i, e, s, o = 0, h = 1; h < e; ++h) {
1347
+ for (var _ = 0, r = 0, a = 0; _ < s; ++_) {
1348
+ for (var l = t[n[_]], c = l[h][1] || 0, u = (c - (l[h - 1][1] || 0)) / 2, f = 0; f < _; ++f) {
1349
+ var y = t[n[f]];
1350
+ u += (y[h][1] || 0) - (y[h - 1][1] || 0);
1351
+ }
1352
+ r += c, a += u * c;
1353
+ }
1354
+ i[h - 1][1] += i[h - 1][0] = o, r && (o -= a / r);
1355
+ }
1356
+ i[h - 1][1] += i[h - 1][0] = o, tn(t, n);
1357
+ }
1358
+ }, t.stackOrderAppearance = on, t.stackOrderAscending = _n, t.stackOrderDescending = function (t) {
1359
+ return _n(t).reverse();
1360
+ }, t.stackOrderInsideOut = function (t) {
1361
+ var n,
1362
+ i,
1363
+ e = t.length,
1364
+ s = t.map(rn),
1365
+ o = on(t),
1366
+ h = 0,
1367
+ _ = 0,
1368
+ r = [],
1369
+ a = [];
1370
+ for (n = 0; n < e; ++n) i = o[n], h < _ ? (h += s[i], r.push(i)) : (_ += s[i], a.push(i));
1371
+ return a.reverse().concat(r);
1372
+ }, t.stackOrderNone = nn, t.stackOrderReverse = function (t) {
1373
+ return nn(t).reverse();
1374
+ }, t.symbol = function (t, n) {
1375
+ let e = null,
1376
+ s = p(o);
1377
+ function o() {
1378
+ let i;
1379
+ if (e || (e = i = s()), t.apply(this, arguments).draw(e, +n.apply(this, arguments)), i) return e = null, i + "" || null;
1380
+ }
1381
+ return t = "function" == typeof t ? t : i(t || Q), n = "function" == typeof n ? n : i(void 0 === n ? 64 : +n), o.type = function (n) {
1382
+ return arguments.length ? (t = "function" == typeof n ? n : i(n), o) : t;
1383
+ }, o.size = function (t) {
1384
+ return arguments.length ? (n = "function" == typeof t ? t : i(+t), o) : n;
1385
+ }, o.context = function (t) {
1386
+ return arguments.length ? (e = null == t ? null : t, o) : e;
1387
+ }, o;
1388
+ }, t.symbolAsterisk = K, t.symbolCircle = Q, t.symbolCross = U, t.symbolDiamond = nt, t.symbolDiamond2 = it, t.symbolPlus = et, t.symbolSquare = st, t.symbolSquare2 = ot, t.symbolStar = at, t.symbolTimes = Tt, t.symbolTriangle = ct, t.symbolTriangle2 = ft, t.symbolWye = dt, t.symbolX = Tt, t.symbols = gt, t.symbolsFill = gt, t.symbolsStroke = mt;
1389
+ });