mirage2d 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/MirageHttp.es.js +5268 -0
  2. package/dist/MirageHttp.es.js.map +1 -0
  3. package/dist/MirageHttp.umd.js +2 -0
  4. package/dist/MirageHttp.umd.js.map +1 -0
  5. package/dist/assets/js/basedecoder-fa2b8e8d.js +107 -0
  6. package/dist/assets/js/decoder-f19e05cf.js +6 -0
  7. package/dist/assets/js/deflate-adb9a67b.js +8 -0
  8. package/dist/{js/dist/_html2canvas@1.4.1@html2canvas.e8006fee.js → assets/js/html2canvas.esm-3dd231c5.js} +0 -0
  9. package/dist/assets/js/index-3263db85.js +1 -0
  10. package/dist/assets/js/index-a9db46a5.js +212968 -0
  11. package/dist/{js/lib/_canvg@3.0.10@canvg.bd557ac8.js → assets/js/index.es-38f73a27.js} +2179 -351
  12. package/dist/assets/js/jpeg-3bf23728.js +835 -0
  13. package/dist/{js/_lerc@3.0.0@lerc/_lerc@3.0.0@lerc.dc2ff398.js → assets/js/lerc-4c39f39b.js} +26 -1
  14. package/dist/assets/js/lzw-d0cad8af.js +123 -0
  15. package/dist/assets/js/packbits-d75b4cce.js +25 -0
  16. package/dist/{js/_pako@2.0.4@pako/_pako@2.0.4@pako.52d6b320.js → assets/js/pako.esm-49deb4d7.js} +0 -0
  17. package/dist/{js/dist/_dompurify@2.4.0@dompurify.e7ba523e.js → assets/js/purify.es-1915dfae.js} +0 -0
  18. package/dist/assets/js/raw-9656f9cc.js +7 -0
  19. package/dist/assets/js/webimage-edb7156c.js +27 -0
  20. package/package.json +1 -1
  21. package/dist/js/_@babel_runtime@7.18.9@@babel/_@babel_runtime@7.18.9@@babel.e0126ca2.js +0 -51
  22. package/dist/js/_@petamoriken_float16@3.6.6@@petamoriken/_@petamoriken_float16@3.6.6@@petamoriken.c5188241.js +0 -217
  23. package/dist/js/_@turf_along@6.5.0@@turf/_@turf_along@6.5.0@@turf.18dbc1a3.js +0 -31
  24. package/dist/js/_@turf_angle@6.5.0@@turf/_@turf_angle@6.5.0@@turf.554ac9bf.js +0 -1
  25. package/dist/js/_@turf_area@6.5.0@@turf/_@turf_area@6.5.0@@turf.6cbf0cc1.js +0 -74
  26. package/dist/js/_@turf_bbox-clip@6.5.0@@turf/_@turf_bbox-clip@6.5.0@@turf.e491cb90.js +0 -1
  27. package/dist/js/_@turf_bbox-polygon@6.5.0@@turf/_@turf_bbox-polygon@6.5.0@@turf.523f1c20.js +0 -19
  28. package/dist/js/_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js +0 -48
  29. package/dist/js/_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js +0 -25
  30. package/dist/js/_@turf_bezier-spline@6.5.0@@turf/_@turf_bezier-spline@6.5.0@@turf.fa7991dd.js +0 -137
  31. package/dist/js/_@turf_boolean-clockwise@6.5.0@@turf/_@turf_boolean-clockwise@6.5.0@@turf.4031f280.js +0 -1
  32. package/dist/js/_@turf_boolean-contains@6.5.0@@turf/_@turf_boolean-contains@6.5.0@@turf.836d55d8.js +0 -191
  33. package/dist/js/_@turf_boolean-crosses@6.5.0@@turf/_@turf_boolean-crosses@6.5.0@@turf.c5f65a28.js +0 -125
  34. package/dist/js/_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js +0 -122
  35. package/dist/js/_@turf_boolean-equal@6.5.0@@turf/_@turf_boolean-equal@6.5.0@@turf.341ffa01.js +0 -1
  36. package/dist/js/_@turf_boolean-intersects@6.5.0@@turf/_@turf_boolean-intersects@6.5.0@@turf.05fc28b3.js +0 -15
  37. package/dist/js/_@turf_boolean-overlap@6.5.0@@turf/_@turf_boolean-overlap@6.5.0@@turf.a519db25.js +0 -53
  38. package/dist/js/_@turf_boolean-parallel@6.5.0@@turf/_@turf_boolean-parallel@6.5.0@@turf.dbf2bc2d.js +0 -1
  39. package/dist/js/_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js +0 -65
  40. package/dist/js/_@turf_boolean-point-on-line@6.5.0@@turf/_@turf_boolean-point-on-line@6.5.0@@turf.3cf3aaa1.js +0 -69
  41. package/dist/js/_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js +0 -172
  42. package/dist/js/_@turf_buffer@6.5.0@@turf/_@turf_buffer@6.5.0@@turf.88330dfe.js +0 -99
  43. package/dist/js/_@turf_center-mean@6.5.0@@turf/_@turf_center-mean@6.5.0@@turf.b3d7c917.js +0 -1
  44. package/dist/js/_@turf_center-median@6.5.0@@turf/_@turf_center-median@6.5.0@@turf.44c4669e.js +0 -1
  45. package/dist/js/_@turf_center-of-mass@6.5.0@@turf/_@turf_center-of-mass@6.5.0@@turf.63ce279e.js +0 -1
  46. package/dist/js/_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js +0 -12
  47. package/dist/js/_@turf_centroid@6.5.0@@turf/_@turf_centroid@6.5.0@@turf.0a5be869.js +0 -17
  48. package/dist/js/_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js +0 -16
  49. package/dist/js/_@turf_clean-coords@6.5.0@@turf/_@turf_clean-coords@6.5.0@@turf.8c76bd63.js +0 -111
  50. package/dist/js/_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.js +0 -100
  51. package/dist/js/_@turf_clusters-dbscan@6.5.0@@turf/_@turf_clusters-dbscan@6.5.0@@turf.6bbee7e9.js +0 -1
  52. package/dist/js/_@turf_clusters-kmeans@6.5.0@@turf/_@turf_clusters-kmeans@6.5.0@@turf.505415df.js +0 -1
  53. package/dist/js/_@turf_clusters@6.5.0@@turf/_@turf_clusters@6.5.0@@turf.84cb9680.js +0 -1
  54. package/dist/js/_@turf_collect@6.5.0@@turf/_@turf_collect@6.5.0@@turf.93e41b5f.js +0 -1
  55. package/dist/js/_@turf_combine@6.5.0@@turf/_@turf_combine@6.5.0@@turf.33ee6336.js +0 -1
  56. package/dist/js/_@turf_concave@6.5.0@@turf/_@turf_concave@6.5.0@@turf.6fb6a8be.js +0 -179
  57. package/dist/js/_@turf_convex@6.5.0@@turf/_@turf_convex@6.5.0@@turf.24600ac2.js +0 -1
  58. package/dist/js/_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js +0 -18
  59. package/dist/js/_@turf_difference@6.5.0@@turf/_@turf_difference@6.5.0@@turf.70df5e79.js +0 -18
  60. package/dist/js/_@turf_dissolve@6.5.0@@turf/_@turf_dissolve@6.5.0@@turf.edb28fc1.js +0 -1
  61. package/dist/js/_@turf_distance-weight@6.5.0@@turf/_@turf_distance-weight@6.5.0@@turf.e168af7f.js +0 -1
  62. package/dist/js/_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js +0 -22
  63. package/dist/js/_@turf_ellipse@6.5.0@@turf/_@turf_ellipse@6.5.0@@turf.37986056.js +0 -1
  64. package/dist/js/_@turf_envelope@6.5.0@@turf/_@turf_envelope@6.5.0@@turf.599c5772.js +0 -1
  65. package/dist/js/_@turf_explode@6.5.0@@turf/_@turf_explode@6.5.0@@turf.5c768db5.js +0 -24
  66. package/dist/js/_@turf_flatten@6.5.0@@turf/_@turf_flatten@6.5.0@@turf.57e9114c.js +0 -1
  67. package/dist/js/_@turf_flip@6.5.0@@turf/_@turf_flip@6.5.0@@turf.1f02101f.js +0 -1
  68. package/dist/js/_@turf_great-circle@6.5.0@@turf/_@turf_great-circle@6.5.0@@turf.2ca021a8.js +0 -1
  69. package/dist/js/_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js +0 -364
  70. package/dist/js/_@turf_hex-grid@6.5.0@@turf/_@turf_hex-grid@6.5.0@@turf.a6a45778.js +0 -99
  71. package/dist/js/_@turf_interpolate@6.5.0@@turf/_@turf_interpolate@6.5.0@@turf.4d39bd8c.js +0 -1
  72. package/dist/js/_@turf_intersect@6.5.0@@turf/_@turf_intersect@6.5.0@@turf.34082cdf.js +0 -17
  73. package/dist/js/_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js +0 -71
  74. package/dist/js/_@turf_isobands@6.5.0@@turf/_@turf_isobands@6.5.0@@turf.def019df.js +0 -3109
  75. package/dist/js/_@turf_isolines@6.5.0@@turf/_@turf_isolines@6.5.0@@turf.da623b25.js +0 -1
  76. package/dist/js/_@turf_kinks@6.5.0@@turf/_@turf_kinks@6.5.0@@turf.ee61685b.js +0 -87
  77. package/dist/js/_@turf_length@6.5.0@@turf/_@turf_length@6.5.0@@turf.f73f6c98.js +0 -12
  78. package/dist/js/_@turf_line-arc@6.5.0@@turf/_@turf_line-arc@6.5.0@@turf.3dc57055.js +0 -37
  79. package/dist/js/_@turf_line-chunk@6.5.0@@turf/_@turf_line-chunk@6.5.0@@turf.1867af48.js +0 -43
  80. package/dist/js/_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js +0 -73
  81. package/dist/js/_@turf_line-offset@6.5.0@@turf/_@turf_line-offset@6.5.0@@turf.e6846793.js +0 -116
  82. package/dist/js/_@turf_line-overlap@6.5.0@@turf/_@turf_line-overlap@6.5.0@@turf.addba9a5.js +0 -76
  83. package/dist/js/_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js +0 -55
  84. package/dist/js/_@turf_line-slice-along@6.5.0@@turf/_@turf_line-slice-along@6.5.0@@turf.2b802464.js +0 -57
  85. package/dist/js/_@turf_line-slice@6.5.0@@turf/_@turf_line-slice@6.5.0@@turf.6423a053.js +0 -23
  86. package/dist/js/_@turf_line-split@6.5.0@@turf/_@turf_line-split@6.5.0@@turf.2022f104.js +0 -125
  87. package/dist/js/_@turf_line-to-polygon@6.5.0@@turf/_@turf_line-to-polygon@6.5.0@@turf.83f5e69f.js +0 -1
  88. package/dist/js/_@turf_mask@6.5.0@@turf/_@turf_mask@6.5.0@@turf.96cd5a94.js +0 -1
  89. package/dist/js/_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js +0 -611
  90. package/dist/js/_@turf_midpoint@6.5.0@@turf/_@turf_midpoint@6.5.0@@turf.67c14f94.js +0 -1
  91. package/dist/js/_@turf_moran-index@6.5.0@@turf/_@turf_moran-index@6.5.0@@turf.2ad5365a.js +0 -1
  92. package/dist/js/_@turf_nearest-point-on-line@6.5.0@@turf/_@turf_nearest-point-on-line@6.5.0@@turf.095c8c0d.js +0 -57
  93. package/dist/js/_@turf_nearest-point-to-line@6.5.0@@turf/_@turf_nearest-point-to-line@6.5.0@@turf.68484097.js +0 -1
  94. package/dist/js/_@turf_nearest-point@6.5.0@@turf/_@turf_nearest-point@6.5.0@@turf.e0d2f509.js +0 -24
  95. package/dist/js/_@turf_planepoint@6.5.0@@turf/_@turf_planepoint@6.5.0@@turf.56fc70b3.js +0 -1
  96. package/dist/js/_@turf_point-grid@6.5.0@@turf/_@turf_point-grid@6.5.0@@turf.2d278644.js +0 -42
  97. package/dist/js/_@turf_point-on-feature@6.5.0@@turf/_@turf_point-on-feature@6.5.0@@turf.0c740874.js +0 -1
  98. package/dist/js/_@turf_point-to-line-distance@6.5.0@@turf/_@turf_point-to-line-distance@6.5.0@@turf.33105d82.js +0 -1
  99. package/dist/js/_@turf_points-within-polygon@6.5.0@@turf/_@turf_points-within-polygon@6.5.0@@turf.659cd335.js +0 -35
  100. package/dist/js/_@turf_polygon-smooth@6.5.0@@turf/_@turf_polygon-smooth@6.5.0@@turf.43a7c33e.js +0 -1
  101. package/dist/js/_@turf_polygon-tangents@6.5.0@@turf/_@turf_polygon-tangents@6.5.0@@turf.a2c3a7b6.js +0 -1
  102. package/dist/js/_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js +0 -48
  103. package/dist/js/_@turf_polygonize@6.5.0@@turf/_@turf_polygonize@6.5.0@@turf.f7cc4910.js +0 -1
  104. package/dist/js/_@turf_projection@6.5.0@@turf/_@turf_projection@6.5.0@@turf.ffdd3321.js +0 -1
  105. package/dist/js/_@turf_random@6.5.0@@turf/_@turf_random@6.5.0@@turf.f65251e4.js +0 -130
  106. package/dist/js/_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js +0 -49
  107. package/dist/js/_@turf_rewind@6.5.0@@turf/_@turf_rewind@6.5.0@@turf.5d137ee9.js +0 -1
  108. package/dist/js/_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js +0 -30
  109. package/dist/js/_@turf_rhumb-destination@6.5.0@@turf/_@turf_rhumb-destination@6.5.0@@turf.dc0e4753.js +0 -36
  110. package/dist/js/_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js +0 -30
  111. package/dist/js/_@turf_sample@6.5.0@@turf/_@turf_sample@6.5.0@@turf.7181d7a7.js +0 -1
  112. package/dist/js/_@turf_sector@6.5.0@@turf/_@turf_sector@6.5.0@@turf.04ffddfe.js +0 -39
  113. package/dist/js/_@turf_shortest-path@6.5.0@@turf/_@turf_shortest-path@6.5.0@@turf.0c1b62a8.js +0 -367
  114. package/dist/js/_@turf_simplify@6.5.0@@turf/_@turf_simplify@6.5.0@@turf.46703d2e.js +0 -1
  115. package/dist/js/_@turf_square-grid@6.5.0@@turf/_@turf_square-grid@6.5.0@@turf.38bd2eaa.js +0 -8
  116. package/dist/js/_@turf_square@6.5.0@@turf/_@turf_square@6.5.0@@turf.2705289a.js +0 -27
  117. package/dist/js/_@turf_standard-deviational-ellipse@6.5.0@@turf/_@turf_standard-deviational-ellipse@6.5.0@@turf.7094e432.js +0 -1
  118. package/dist/js/_@turf_tag@6.5.0@@turf/_@turf_tag@6.5.0@@turf.cb60b0c1.js +0 -1
  119. package/dist/js/_@turf_tesselate@6.5.0@@turf/_@turf_tesselate@6.5.0@@turf.330e4aae.js +0 -1
  120. package/dist/js/_@turf_tin@6.5.0@@turf/_@turf_tin@6.5.0@@turf.077204c4.js +0 -173
  121. package/dist/js/_@turf_transform-rotate@6.5.0@@turf/_@turf_transform-rotate@6.5.0@@turf.6d350d36.js +0 -1
  122. package/dist/js/_@turf_transform-scale@6.5.0@@turf/_@turf_transform-scale@6.5.0@@turf.d6f65671.js +0 -90
  123. package/dist/js/_@turf_transform-translate@6.5.0@@turf/_@turf_transform-translate@6.5.0@@turf.9296b81a.js +0 -1
  124. package/dist/js/_@turf_triangle-grid@6.5.0@@turf/_@turf_triangle-grid@6.5.0@@turf.939f94ab.js +0 -107
  125. package/dist/js/_@turf_truncate@6.5.0@@turf/_@turf_truncate@6.5.0@@turf.ed70ebcb.js +0 -33
  126. package/dist/js/_@turf_turf@6.4.0@@turf/_@turf_turf@6.4.0@@turf.34fde8ec.js +0 -1
  127. package/dist/js/_@turf_union@6.5.0@@turf/_@turf_union@6.5.0@@turf.386ee2eb.js +0 -1
  128. package/dist/js/_@turf_unkink-polygon@6.5.0@@turf/_@turf_unkink-polygon@6.5.0@@turf.cb446e47.js +0 -1
  129. package/dist/js/_@turf_voronoi@6.5.0@@turf/_@turf_voronoi@6.5.0@@turf.c30d929e.js +0 -30
  130. package/dist/js/_call-bind@1.0.2@call-bind/_call-bind@1.0.2@call-bind.3811d387.js +0 -53
  131. package/dist/js/_concaveman@1.2.1@concaveman/_concaveman@1.2.1@concaveman.e747f731.js +0 -1
  132. package/dist/js/_core-js@3.25.0@core-js/_core-js@3.25.0@core-js.003355ed.js +0 -5029
  133. package/dist/js/_crypto-js@4.1.1@crypto-js/_crypto-js@4.1.1@crypto-js.e2f7f158.js +0 -1823
  134. package/dist/js/_d3-array@1.2.4@d3-array/_d3-array@1.2.4@d3-array.d606df6b.js +0 -58
  135. package/dist/js/_d3-geo@1.7.1@d3-geo/_d3-geo@1.7.1@d3-geo.7d357be1.js +0 -1094
  136. package/dist/js/_d3-voronoi@1.1.2@d3-voronoi/_d3-voronoi@1.1.2@d3-voronoi.072f12a6.js +0 -816
  137. package/dist/js/_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js +0 -108
  138. package/dist/js/_define-properties@1.1.4@define-properties/_define-properties@1.1.4@define-properties.647c3367.js +0 -40
  139. package/dist/js/_density-clustering@1.3.0@density-clustering/_density-clustering@1.3.0@density-clustering.a07fc6ae.js +0 -1
  140. package/dist/js/_earcut@2.2.4@earcut/_earcut@2.2.4@earcut.972ebfd3.js +0 -1
  141. package/dist/js/_echarts-gl@1.1.2@echarts-gl/_echarts-gl@1.1.2@echarts-gl.1e3964b9.js +0 -36533
  142. package/dist/js/_echarts@4.9.0@echarts/_echarts@4.9.0@echarts.7d74ba77.js +0 -44219
  143. package/dist/js/_fflate@0.4.8@fflate/_fflate@0.4.8@fflate.d8111196.js +0 -571
  144. package/dist/js/_function-bind@1.1.1@function-bind/_function-bind@1.1.1@function-bind.de3cf11d.js +0 -46
  145. package/dist/js/_functions-have-names@1.2.3@functions-have-names/_functions-have-names@1.2.3@functions-have-names.7def2408.js +0 -27
  146. package/dist/js/_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js +0 -133
  147. package/dist/js/_geojson-path-finder@1.5.3@geojson-path-finder/_geojson-path-finder@1.5.3@geojson-path-finder.7a10eb99.js +0 -348
  148. package/dist/js/_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js +0 -93
  149. package/dist/js/_geotiff@2.0.4@geotiff/_geotiff@2.0.4@geotiff.5b08f79e.js +0 -3663
  150. package/dist/js/_get-intrinsic@1.1.2@get-intrinsic/_get-intrinsic@1.1.2@get-intrinsic.a633bd68.js +0 -291
  151. package/dist/js/_has-property-descriptors@1.0.0@has-property-descriptors/_has-property-descriptors@1.0.0@has-property-descriptors.6bd2d302.js +0 -26
  152. package/dist/js/_has-symbols@1.0.3@has-symbols/_has-symbols@1.0.3@has-symbols.70406077.js +0 -63
  153. package/dist/js/_has-tostringtag@1.0.0@has-tostringtag/_has-tostringtag@1.0.0@has-tostringtag.2d502422.js +0 -6
  154. package/dist/js/_has@1.0.3@has/_has@1.0.3@has.ddd2eb68.js +0 -4
  155. package/dist/js/_ieee754@1.2.1@ieee754/_ieee754@1.2.1@ieee754.56426503.js +0 -80
  156. package/dist/js/_is-arguments@1.1.1@is-arguments/_is-arguments@1.1.1@is-arguments.7d77e24a.js +0 -23
  157. package/dist/js/_is-date-object@1.0.5@is-date-object/_is-date-object@1.0.5@is-date-object.08cc2543.js +0 -20
  158. package/dist/js/_is-regex@1.1.4@is-regex/_is-regex@1.1.4@is-regex.6417e007.js +0 -47
  159. package/dist/js/_jspdf@2.5.1@jspdf/_jspdf@2.5.1@jspdf.e927dbd8.js +0 -8494
  160. package/dist/js/_kml-geojson@1.2.0@kml-geojson/_kml-geojson@1.2.0@kml-geojson.f1ae86e4.js +0 -7858
  161. package/dist/js/_lru-cache@6.0.0@lru-cache/_lru-cache@6.0.0@lru-cache.dd72cc1b.js +0 -263
  162. package/dist/js/_mgrs@1.0.0@mgrs/_mgrs@1.0.0@mgrs.12d1da3e.js +0 -432
  163. package/dist/js/_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js +0 -69
  164. package/dist/js/_object-is@1.1.5@object-is/_object-is@1.1.5@object-is.e47f5d65.js +0 -45
  165. package/dist/js/_object-keys@1.1.1@object-keys/_object-keys@1.1.1@object-keys.4b1d0a99.js +0 -151
  166. package/dist/js/_ol-echarts@2.0.6@ol-echarts/_ol-echarts@2.0.6@ol-echarts.658aaf82.js +0 -841
  167. package/dist/js/_ol-ext@3.2.30@ol-ext/_ol-ext@3.2.30@ol-ext.b94220dd.js +0 -4614
  168. package/dist/js/_ol-mapbox-style@8.2.1@ol-mapbox-style/_ol-mapbox-style@8.2.1@ol-mapbox-style.795310f3.js +0 -1
  169. package/dist/js/_ol@6.15.1@ol/_ol@6.15.1@ol.8fd0cbb5.js +0 -31823
  170. package/dist/js/_pbf@3.2.1@pbf/_pbf@3.2.1@pbf.330acf55.js +0 -647
  171. package/dist/js/_performance-now@2.1.0@performance-now/_performance-now@2.1.0@performance-now.a51379c2.js +0 -34
  172. package/dist/js/_point-in-polygon@1.1.0@point-in-polygon/_point-in-polygon@1.1.0@point-in-polygon.2cc4306e.js +0 -1
  173. package/dist/js/_polygon-clipping@0.15.3@polygon-clipping/_polygon-clipping@0.15.3@polygon-clipping.c0e9ec57.js +0 -1363
  174. package/dist/js/_proj4@2.8.0@proj4/_proj4@2.8.0@proj4.1600352c.js +0 -4885
  175. package/dist/js/_quickselect@1.1.1@quickselect/_quickselect@1.1.1@quickselect.8afce154.js +0 -1
  176. package/dist/js/_quickselect@2.0.0@quickselect/_quickselect@2.0.0@quickselect.9f5c1e48.js +0 -51
  177. package/dist/js/_raf@3.4.1@raf/_raf@3.4.1@raf.ac0d6c66.js +0 -60
  178. package/dist/js/_rbush@2.0.2@rbush/_rbush@2.0.2@rbush.7149e620.js +0 -1
  179. package/dist/js/_rbush@3.0.1@rbush/_rbush@3.0.1@rbush.57d33d95.js +0 -402
  180. package/dist/js/_regexp.prototype.flags@1.4.3@regexp.prototype.flags/_regexp.prototype.flags@1.4.3@regexp.prototype.flags.8b6921c6.js +0 -102
  181. package/dist/js/_rgbcolor@1.0.1@rgbcolor/_rgbcolor@1.0.1@rgbcolor.dd87e013.js +0 -272
  182. package/dist/js/_robust-predicates@2.0.4@robust-predicates/_robust-predicates@2.0.4@robust-predicates.564bf2f8.js +0 -1
  183. package/dist/js/_skmeans@0.9.7@skmeans/_skmeans@0.9.7@skmeans.933c6a76.js +0 -1
  184. package/dist/js/_splaytree@3.1.1@splaytree/_splaytree@3.1.1@splaytree.6cb55ed3.js +0 -671
  185. package/dist/js/_stackblur-canvas@2.5.0@stackblur-canvas/_stackblur-canvas@2.5.0@stackblur-canvas.dd883d14.js +0 -214
  186. package/dist/js/_svg-pathdata@6.0.3@svg-pathdata/_svg-pathdata@6.0.3@svg-pathdata.7e858a5f.js +0 -441
  187. package/dist/js/_tinyqueue@2.0.3@tinyqueue/_tinyqueue@2.0.3@tinyqueue.78918532.js +0 -73
  188. package/dist/js/_topojson-client@3.1.0@topojson-client/_topojson-client@3.1.0@topojson-client.aef4e2d5.js +0 -238
  189. package/dist/js/_topojson-server@3.0.1@topojson-server/_topojson-server@3.0.1@topojson-server.b521a412.js +0 -662
  190. package/dist/js/_turf-jsts@1.2.3@turf-jsts/_turf-jsts@1.2.3@turf-jsts.6ef42696.js +0 -18934
  191. package/dist/js/_web-worker@1.2.0@web-worker/_web-worker@1.2.0@web-worker.43288df7.js +0 -2
  192. package/dist/js/_wkt-parser@1.3.2@wkt-parser/_wkt-parser@1.3.2@wkt-parser.0e1cf374.js +0 -461
  193. package/dist/js/_xml-utils@1.2.0@xml-utils/_xml-utils@1.2.0@xml-utils.2a8ae655.js +0 -126
  194. package/dist/js/_yallist@4.0.0@yallist/_yallist@4.0.0@yallist.8350aafe.js +0 -363
  195. package/dist/js/_zrender@4.3.2@zrender/_zrender@4.3.2@zrender.1feea14d.js +0 -12455
  196. package/dist/mirage2d.es.js +0 -15894
@@ -1,13 +1,1841 @@
1
- import "../_core-js@3.25.0@core-js/_core-js@3.25.0@core-js.003355ed.js";
2
- import { _ as _asyncToGenerator, a as _defineProperty } from "../_@babel_runtime@7.18.9@@babel/_@babel_runtime@7.18.9@@babel.e0126ca2.js";
3
- import { r as requestAnimationFrame } from "../_raf@3.4.1@raf/_raf@3.4.1@raf.ac0d6c66.js";
4
- import { _ as _rgbcolor_1_0_1_rgbcolor } from "../_rgbcolor@1.0.1@rgbcolor/_rgbcolor@1.0.1@rgbcolor.dd87e013.js";
5
- import { _ } from "../_svg-pathdata@6.0.3@svg-pathdata/_svg-pathdata@6.0.3@svg-pathdata.7e858a5f.js";
6
- import { p as processCanvasRGBA } from "../_stackblur-canvas@2.5.0@stackblur-canvas/_stackblur-canvas@2.5.0@stackblur-canvas.dd883d14.js";
7
- import "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
8
- import "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
9
- import "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
10
- import "../_performance-now@2.1.0@performance-now/_performance-now@2.1.0@performance-now.a51379c2.js";
1
+ import { a as anObject$6, f as fails$7, g as global$4, b as functionCall, c as functionUncurryThis, s as shared$1, t as toString$7, o as objectCreate, i as internalState, _ as _export, w as wellKnownSymbol$5, d as defineBuiltIn$2, e as createNonEnumerableProperty$2, h as stringMultibyte, j as isCallable$2, k as classofRaw, l as isNullOrUndefined$3, m as toLength$5, r as requireObjectCoercible$6, n as getMethod$3, p as toObject$1, q as functionApply, u as toIntegerOrInfinity$1, v as isObject$1, x as objectGetOwnPropertyDescriptor, y as documentCreateElement$1, z as es_array_iterator, A as speciesConstructor$1, B as arraySliceSimple, C as commonjsGlobal, D as arrayMethodIsStrict$1, E as arrayIncludes, F as isArray$1, G as hasOwnProperty_1, H as objectIsPrototypeOf, I as functionName } from "./index-a9db46a5.js";
2
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3
+ try {
4
+ var info = gen[key](arg);
5
+ var value = info.value;
6
+ } catch (error) {
7
+ reject(error);
8
+ return;
9
+ }
10
+ if (info.done) {
11
+ resolve(value);
12
+ } else {
13
+ Promise.resolve(value).then(_next, _throw);
14
+ }
15
+ }
16
+ function _asyncToGenerator(fn) {
17
+ return function() {
18
+ var self = this, args = arguments;
19
+ return new Promise(function(resolve, reject) {
20
+ var gen = fn.apply(self, args);
21
+ function _next(value) {
22
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
23
+ }
24
+ function _throw(err) {
25
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
26
+ }
27
+ _next(void 0);
28
+ });
29
+ };
30
+ }
31
+ var anObject$5 = anObject$6;
32
+ var regexpFlags$1 = function() {
33
+ var that = anObject$5(this);
34
+ var result = "";
35
+ if (that.hasIndices)
36
+ result += "d";
37
+ if (that.global)
38
+ result += "g";
39
+ if (that.ignoreCase)
40
+ result += "i";
41
+ if (that.multiline)
42
+ result += "m";
43
+ if (that.dotAll)
44
+ result += "s";
45
+ if (that.unicode)
46
+ result += "u";
47
+ if (that.unicodeSets)
48
+ result += "v";
49
+ if (that.sticky)
50
+ result += "y";
51
+ return result;
52
+ };
53
+ var fails$6 = fails$7;
54
+ var global$3 = global$4;
55
+ var $RegExp$2 = global$3.RegExp;
56
+ var UNSUPPORTED_Y$2 = fails$6(function() {
57
+ var re = $RegExp$2("a", "y");
58
+ re.lastIndex = 2;
59
+ return re.exec("abcd") != null;
60
+ });
61
+ var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$6(function() {
62
+ return !$RegExp$2("a", "y").sticky;
63
+ });
64
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$6(function() {
65
+ var re = $RegExp$2("^r", "gy");
66
+ re.lastIndex = 2;
67
+ return re.exec("str") != null;
68
+ });
69
+ var regexpStickyHelpers = {
70
+ BROKEN_CARET,
71
+ MISSED_STICKY,
72
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2
73
+ };
74
+ var fails$5 = fails$7;
75
+ var global$2 = global$4;
76
+ var $RegExp$1 = global$2.RegExp;
77
+ var regexpUnsupportedDotAll = fails$5(function() {
78
+ var re = $RegExp$1(".", "s");
79
+ return !(re.dotAll && re.exec("\n") && re.flags === "s");
80
+ });
81
+ var fails$4 = fails$7;
82
+ var global$1 = global$4;
83
+ var $RegExp = global$1.RegExp;
84
+ var regexpUnsupportedNcg = fails$4(function() {
85
+ var re = $RegExp("(?<a>b)", "g");
86
+ return re.exec("b").groups.a !== "b" || "b".replace(re, "$<a>c") !== "bc";
87
+ });
88
+ var call$5 = functionCall;
89
+ var uncurryThis$9 = functionUncurryThis;
90
+ var toString$6 = toString$7;
91
+ var regexpFlags = regexpFlags$1;
92
+ var stickyHelpers$1 = regexpStickyHelpers;
93
+ var shared = shared$1.exports;
94
+ var create = objectCreate;
95
+ var getInternalState = internalState.get;
96
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
97
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
98
+ var nativeReplace = shared("native-string-replace", String.prototype.replace);
99
+ var nativeExec = RegExp.prototype.exec;
100
+ var patchedExec = nativeExec;
101
+ var charAt$2 = uncurryThis$9("".charAt);
102
+ var indexOf = uncurryThis$9("".indexOf);
103
+ var replace$1 = uncurryThis$9("".replace);
104
+ var stringSlice$4 = uncurryThis$9("".slice);
105
+ var UPDATES_LAST_INDEX_WRONG = function() {
106
+ var re1 = /a/;
107
+ var re2 = /b*/g;
108
+ call$5(nativeExec, re1, "a");
109
+ call$5(nativeExec, re2, "a");
110
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
111
+ }();
112
+ var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
113
+ var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0;
114
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
115
+ if (PATCH) {
116
+ patchedExec = function exec2(string) {
117
+ var re = this;
118
+ var state = getInternalState(re);
119
+ var str = toString$6(string);
120
+ var raw = state.raw;
121
+ var result, reCopy, lastIndex, match, i2, object, group;
122
+ if (raw) {
123
+ raw.lastIndex = re.lastIndex;
124
+ result = call$5(patchedExec, raw, str);
125
+ re.lastIndex = raw.lastIndex;
126
+ return result;
127
+ }
128
+ var groups = state.groups;
129
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
130
+ var flags = call$5(regexpFlags, re);
131
+ var source = re.source;
132
+ var charsAdded = 0;
133
+ var strCopy = str;
134
+ if (sticky) {
135
+ flags = replace$1(flags, "y", "");
136
+ if (indexOf(flags, "g") === -1) {
137
+ flags += "g";
138
+ }
139
+ strCopy = stringSlice$4(str, re.lastIndex);
140
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== "\n")) {
141
+ source = "(?: " + source + ")";
142
+ strCopy = " " + strCopy;
143
+ charsAdded++;
144
+ }
145
+ reCopy = new RegExp("^(?:" + source + ")", flags);
146
+ }
147
+ if (NPCG_INCLUDED) {
148
+ reCopy = new RegExp("^" + source + "$(?!\\s)", flags);
149
+ }
150
+ if (UPDATES_LAST_INDEX_WRONG)
151
+ lastIndex = re.lastIndex;
152
+ match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
153
+ if (sticky) {
154
+ if (match) {
155
+ match.input = stringSlice$4(match.input, charsAdded);
156
+ match[0] = stringSlice$4(match[0], charsAdded);
157
+ match.index = re.lastIndex;
158
+ re.lastIndex += match[0].length;
159
+ } else
160
+ re.lastIndex = 0;
161
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
162
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
163
+ }
164
+ if (NPCG_INCLUDED && match && match.length > 1) {
165
+ call$5(nativeReplace, match[0], reCopy, function() {
166
+ for (i2 = 1; i2 < arguments.length - 2; i2++) {
167
+ if (arguments[i2] === void 0)
168
+ match[i2] = void 0;
169
+ }
170
+ });
171
+ }
172
+ if (match && groups) {
173
+ match.groups = object = create(null);
174
+ for (i2 = 0; i2 < groups.length; i2++) {
175
+ group = groups[i2];
176
+ object[group[0]] = match[group[1]];
177
+ }
178
+ }
179
+ return match;
180
+ };
181
+ }
182
+ var regexpExec$3 = patchedExec;
183
+ var $$5 = _export;
184
+ var exec$1 = regexpExec$3;
185
+ $$5({ target: "RegExp", proto: true, forced: /./.exec !== exec$1 }, {
186
+ exec: exec$1
187
+ });
188
+ var uncurryThis$8 = functionUncurryThis;
189
+ var defineBuiltIn$1 = defineBuiltIn$2;
190
+ var regexpExec$2 = regexpExec$3;
191
+ var fails$3 = fails$7;
192
+ var wellKnownSymbol$4 = wellKnownSymbol$5;
193
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
194
+ var SPECIES = wellKnownSymbol$4("species");
195
+ var RegExpPrototype$2 = RegExp.prototype;
196
+ var fixRegexpWellKnownSymbolLogic = function(KEY, exec2, FORCED, SHAM) {
197
+ var SYMBOL = wellKnownSymbol$4(KEY);
198
+ var DELEGATES_TO_SYMBOL = !fails$3(function() {
199
+ var O2 = {};
200
+ O2[SYMBOL] = function() {
201
+ return 7;
202
+ };
203
+ return ""[KEY](O2) != 7;
204
+ });
205
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function() {
206
+ var execCalled = false;
207
+ var re = /a/;
208
+ if (KEY === "split") {
209
+ re = {};
210
+ re.constructor = {};
211
+ re.constructor[SPECIES] = function() {
212
+ return re;
213
+ };
214
+ re.flags = "";
215
+ re[SYMBOL] = /./[SYMBOL];
216
+ }
217
+ re.exec = function() {
218
+ execCalled = true;
219
+ return null;
220
+ };
221
+ re[SYMBOL]("");
222
+ return !execCalled;
223
+ });
224
+ if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
225
+ var uncurriedNativeRegExpMethod = uncurryThis$8(/./[SYMBOL]);
226
+ var methods = exec2(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) {
227
+ var uncurriedNativeMethod = uncurryThis$8(nativeMethod);
228
+ var $exec = regexp.exec;
229
+ if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) {
230
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
231
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
232
+ }
233
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
234
+ }
235
+ return { done: false };
236
+ });
237
+ defineBuiltIn$1(String.prototype, KEY, methods[0]);
238
+ defineBuiltIn$1(RegExpPrototype$2, SYMBOL, methods[1]);
239
+ }
240
+ if (SHAM)
241
+ createNonEnumerableProperty$1(RegExpPrototype$2[SYMBOL], "sham", true);
242
+ };
243
+ var charAt$1 = stringMultibyte.charAt;
244
+ var advanceStringIndex$3 = function(S, index2, unicode) {
245
+ return index2 + (unicode ? charAt$1(S, index2).length : 1);
246
+ };
247
+ var call$4 = functionCall;
248
+ var anObject$4 = anObject$6;
249
+ var isCallable$1 = isCallable$2;
250
+ var classof$1 = classofRaw;
251
+ var regexpExec$1 = regexpExec$3;
252
+ var $TypeError$1 = TypeError;
253
+ var regexpExecAbstract = function(R, S) {
254
+ var exec2 = R.exec;
255
+ if (isCallable$1(exec2)) {
256
+ var result = call$4(exec2, R, S);
257
+ if (result !== null)
258
+ anObject$4(result);
259
+ return result;
260
+ }
261
+ if (classof$1(R) === "RegExp")
262
+ return call$4(regexpExec$1, R, S);
263
+ throw $TypeError$1("RegExp#exec called on incompatible receiver");
264
+ };
265
+ var call$3 = functionCall;
266
+ var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
267
+ var anObject$3 = anObject$6;
268
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
269
+ var toLength$4 = toLength$5;
270
+ var toString$5 = toString$7;
271
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
272
+ var getMethod$2 = getMethod$3;
273
+ var advanceStringIndex$2 = advanceStringIndex$3;
274
+ var regExpExec$1 = regexpExecAbstract;
275
+ fixRegExpWellKnownSymbolLogic$2("match", function(MATCH2, nativeMatch, maybeCallNative) {
276
+ return [
277
+ function match(regexp) {
278
+ var O2 = requireObjectCoercible$5(this);
279
+ var matcher = isNullOrUndefined$2(regexp) ? void 0 : getMethod$2(regexp, MATCH2);
280
+ return matcher ? call$3(matcher, regexp, O2) : new RegExp(regexp)[MATCH2](toString$5(O2));
281
+ },
282
+ function(string) {
283
+ var rx = anObject$3(this);
284
+ var S = toString$5(string);
285
+ var res = maybeCallNative(nativeMatch, rx, S);
286
+ if (res.done)
287
+ return res.value;
288
+ if (!rx.global)
289
+ return regExpExec$1(rx, S);
290
+ var fullUnicode = rx.unicode;
291
+ rx.lastIndex = 0;
292
+ var A = [];
293
+ var n2 = 0;
294
+ var result;
295
+ while ((result = regExpExec$1(rx, S)) !== null) {
296
+ var matchStr = toString$5(result[0]);
297
+ A[n2] = matchStr;
298
+ if (matchStr === "")
299
+ rx.lastIndex = advanceStringIndex$2(S, toLength$4(rx.lastIndex), fullUnicode);
300
+ n2++;
301
+ }
302
+ return n2 === 0 ? null : A;
303
+ }
304
+ ];
305
+ });
306
+ var uncurryThis$7 = functionUncurryThis;
307
+ var toObject = toObject$1;
308
+ var floor = Math.floor;
309
+ var charAt = uncurryThis$7("".charAt);
310
+ var replace = uncurryThis$7("".replace);
311
+ var stringSlice$3 = uncurryThis$7("".slice);
312
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
313
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
314
+ var getSubstitution$1 = function(matched, str, position, captures, namedCaptures, replacement) {
315
+ var tailPos = position + matched.length;
316
+ var m2 = captures.length;
317
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
318
+ if (namedCaptures !== void 0) {
319
+ namedCaptures = toObject(namedCaptures);
320
+ symbols = SUBSTITUTION_SYMBOLS;
321
+ }
322
+ return replace(replacement, symbols, function(match, ch) {
323
+ var capture;
324
+ switch (charAt(ch, 0)) {
325
+ case "$":
326
+ return "$";
327
+ case "&":
328
+ return matched;
329
+ case "`":
330
+ return stringSlice$3(str, 0, position);
331
+ case "'":
332
+ return stringSlice$3(str, tailPos);
333
+ case "<":
334
+ capture = namedCaptures[stringSlice$3(ch, 1, -1)];
335
+ break;
336
+ default:
337
+ var n2 = +ch;
338
+ if (n2 === 0)
339
+ return match;
340
+ if (n2 > m2) {
341
+ var f2 = floor(n2 / 10);
342
+ if (f2 === 0)
343
+ return match;
344
+ if (f2 <= m2)
345
+ return captures[f2 - 1] === void 0 ? charAt(ch, 1) : captures[f2 - 1] + charAt(ch, 1);
346
+ return match;
347
+ }
348
+ capture = captures[n2 - 1];
349
+ }
350
+ return capture === void 0 ? "" : capture;
351
+ });
352
+ };
353
+ var apply$1 = functionApply;
354
+ var call$2 = functionCall;
355
+ var uncurryThis$6 = functionUncurryThis;
356
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
357
+ var fails$2 = fails$7;
358
+ var anObject$2 = anObject$6;
359
+ var isCallable = isCallable$2;
360
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
361
+ var toIntegerOrInfinity = toIntegerOrInfinity$1;
362
+ var toLength$3 = toLength$5;
363
+ var toString$4 = toString$7;
364
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
365
+ var advanceStringIndex$1 = advanceStringIndex$3;
366
+ var getMethod$1 = getMethod$3;
367
+ var getSubstitution = getSubstitution$1;
368
+ var regExpExec = regexpExecAbstract;
369
+ var wellKnownSymbol$3 = wellKnownSymbol$5;
370
+ var REPLACE = wellKnownSymbol$3("replace");
371
+ var max = Math.max;
372
+ var min$3 = Math.min;
373
+ var concat = uncurryThis$6([].concat);
374
+ var push$1 = uncurryThis$6([].push);
375
+ var stringIndexOf$1 = uncurryThis$6("".indexOf);
376
+ var stringSlice$2 = uncurryThis$6("".slice);
377
+ var maybeToString = function(it) {
378
+ return it === void 0 ? it : String(it);
379
+ };
380
+ var REPLACE_KEEPS_$0 = function() {
381
+ return "a".replace(/./, "$0") === "$0";
382
+ }();
383
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() {
384
+ if (/./[REPLACE]) {
385
+ return /./[REPLACE]("a", "$0") === "";
386
+ }
387
+ return false;
388
+ }();
389
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function() {
390
+ var re = /./;
391
+ re.exec = function() {
392
+ var result = [];
393
+ result.groups = { a: "7" };
394
+ return result;
395
+ };
396
+ return "".replace(re, "$<a>") !== "7";
397
+ });
398
+ fixRegExpWellKnownSymbolLogic$1("replace", function(_2, nativeReplace2, maybeCallNative) {
399
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
400
+ return [
401
+ function replace2(searchValue, replaceValue) {
402
+ var O2 = requireObjectCoercible$4(this);
403
+ var replacer = isNullOrUndefined$1(searchValue) ? void 0 : getMethod$1(searchValue, REPLACE);
404
+ return replacer ? call$2(replacer, searchValue, O2, replaceValue) : call$2(nativeReplace2, toString$4(O2), searchValue, replaceValue);
405
+ },
406
+ function(string, replaceValue) {
407
+ var rx = anObject$2(this);
408
+ var S = toString$4(string);
409
+ if (typeof replaceValue == "string" && stringIndexOf$1(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf$1(replaceValue, "$<") === -1) {
410
+ var res = maybeCallNative(nativeReplace2, rx, S, replaceValue);
411
+ if (res.done)
412
+ return res.value;
413
+ }
414
+ var functionalReplace = isCallable(replaceValue);
415
+ if (!functionalReplace)
416
+ replaceValue = toString$4(replaceValue);
417
+ var global2 = rx.global;
418
+ if (global2) {
419
+ var fullUnicode = rx.unicode;
420
+ rx.lastIndex = 0;
421
+ }
422
+ var results = [];
423
+ while (true) {
424
+ var result = regExpExec(rx, S);
425
+ if (result === null)
426
+ break;
427
+ push$1(results, result);
428
+ if (!global2)
429
+ break;
430
+ var matchStr = toString$4(result[0]);
431
+ if (matchStr === "")
432
+ rx.lastIndex = advanceStringIndex$1(S, toLength$3(rx.lastIndex), fullUnicode);
433
+ }
434
+ var accumulatedResult = "";
435
+ var nextSourcePosition = 0;
436
+ for (var i2 = 0; i2 < results.length; i2++) {
437
+ result = results[i2];
438
+ var matched = toString$4(result[0]);
439
+ var position = max(min$3(toIntegerOrInfinity(result.index), S.length), 0);
440
+ var captures = [];
441
+ for (var j = 1; j < result.length; j++)
442
+ push$1(captures, maybeToString(result[j]));
443
+ var namedCaptures = result.groups;
444
+ if (functionalReplace) {
445
+ var replacerArgs = concat([matched], captures, position, S);
446
+ if (namedCaptures !== void 0)
447
+ push$1(replacerArgs, namedCaptures);
448
+ var replacement = toString$4(apply$1(replaceValue, void 0, replacerArgs));
449
+ } else {
450
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
451
+ }
452
+ if (position >= nextSourcePosition) {
453
+ accumulatedResult += stringSlice$2(S, nextSourcePosition, position) + replacement;
454
+ nextSourcePosition = position + matched.length;
455
+ }
456
+ }
457
+ return accumulatedResult + stringSlice$2(S, nextSourcePosition);
458
+ }
459
+ ];
460
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
461
+ var isObject = isObject$1;
462
+ var classof = classofRaw;
463
+ var wellKnownSymbol$2 = wellKnownSymbol$5;
464
+ var MATCH$1 = wellKnownSymbol$2("match");
465
+ var isRegexp = function(it) {
466
+ var isRegExp2;
467
+ return isObject(it) && ((isRegExp2 = it[MATCH$1]) !== void 0 ? !!isRegExp2 : classof(it) == "RegExp");
468
+ };
469
+ var isRegExp$1 = isRegexp;
470
+ var $TypeError = TypeError;
471
+ var notARegexp = function(it) {
472
+ if (isRegExp$1(it)) {
473
+ throw $TypeError("The method doesn't accept regular expressions");
474
+ }
475
+ return it;
476
+ };
477
+ var wellKnownSymbol$1 = wellKnownSymbol$5;
478
+ var MATCH = wellKnownSymbol$1("match");
479
+ var correctIsRegexpLogic = function(METHOD_NAME) {
480
+ var regexp = /./;
481
+ try {
482
+ "/./"[METHOD_NAME](regexp);
483
+ } catch (error1) {
484
+ try {
485
+ regexp[MATCH] = false;
486
+ return "/./"[METHOD_NAME](regexp);
487
+ } catch (error2) {
488
+ }
489
+ }
490
+ return false;
491
+ };
492
+ var $$4 = _export;
493
+ var uncurryThis$5 = functionUncurryThis;
494
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
495
+ var toLength$2 = toLength$5;
496
+ var toString$3 = toString$7;
497
+ var notARegExp$2 = notARegexp;
498
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
499
+ var correctIsRegExpLogic$2 = correctIsRegexpLogic;
500
+ var nativeStartsWith = uncurryThis$5("".startsWith);
501
+ var stringSlice$1 = uncurryThis$5("".slice);
502
+ var min$2 = Math.min;
503
+ var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$2("startsWith");
504
+ var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function() {
505
+ var descriptor = getOwnPropertyDescriptor$1(String.prototype, "startsWith");
506
+ return descriptor && !descriptor.writable;
507
+ }();
508
+ $$4({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
509
+ startsWith: function startsWith(searchString) {
510
+ var that = toString$3(requireObjectCoercible$3(this));
511
+ notARegExp$2(searchString);
512
+ var index2 = toLength$2(min$2(arguments.length > 1 ? arguments[1] : void 0, that.length));
513
+ var search = toString$3(searchString);
514
+ return nativeStartsWith ? nativeStartsWith(that, search, index2) : stringSlice$1(that, index2, index2 + search.length) === search;
515
+ }
516
+ });
517
+ var domIterables = {
518
+ CSSRuleList: 0,
519
+ CSSStyleDeclaration: 0,
520
+ CSSValueList: 0,
521
+ ClientRectList: 0,
522
+ DOMRectList: 0,
523
+ DOMStringList: 0,
524
+ DOMTokenList: 1,
525
+ DataTransferItemList: 0,
526
+ FileList: 0,
527
+ HTMLAllCollection: 0,
528
+ HTMLCollection: 0,
529
+ HTMLFormElement: 0,
530
+ HTMLSelectElement: 0,
531
+ MediaList: 0,
532
+ MimeTypeArray: 0,
533
+ NamedNodeMap: 0,
534
+ NodeList: 1,
535
+ PaintRequestList: 0,
536
+ Plugin: 0,
537
+ PluginArray: 0,
538
+ SVGLengthList: 0,
539
+ SVGNumberList: 0,
540
+ SVGPathSegList: 0,
541
+ SVGPointList: 0,
542
+ SVGStringList: 0,
543
+ SVGTransformList: 0,
544
+ SourceBufferList: 0,
545
+ StyleSheetList: 0,
546
+ TextTrackCueList: 0,
547
+ TextTrackList: 0,
548
+ TouchList: 0
549
+ };
550
+ var documentCreateElement = documentCreateElement$1;
551
+ var classList = documentCreateElement("span").classList;
552
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
553
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? void 0 : DOMTokenListPrototype$1;
554
+ var global = global$4;
555
+ var DOMIterables = domIterables;
556
+ var DOMTokenListPrototype = domTokenListPrototype;
557
+ var ArrayIteratorMethods = es_array_iterator;
558
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
559
+ var wellKnownSymbol = wellKnownSymbol$5;
560
+ var ITERATOR = wellKnownSymbol("iterator");
561
+ var TO_STRING_TAG = wellKnownSymbol("toStringTag");
562
+ var ArrayValues = ArrayIteratorMethods.values;
563
+ var handlePrototype = function(CollectionPrototype, COLLECTION_NAME) {
564
+ if (CollectionPrototype) {
565
+ if (CollectionPrototype[ITERATOR] !== ArrayValues)
566
+ try {
567
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
568
+ } catch (error) {
569
+ CollectionPrototype[ITERATOR] = ArrayValues;
570
+ }
571
+ if (!CollectionPrototype[TO_STRING_TAG]) {
572
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
573
+ }
574
+ if (DOMIterables[COLLECTION_NAME])
575
+ for (var METHOD_NAME in ArrayIteratorMethods) {
576
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
577
+ try {
578
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
579
+ } catch (error) {
580
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
581
+ }
582
+ }
583
+ }
584
+ };
585
+ for (var COLLECTION_NAME in DOMIterables) {
586
+ handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
587
+ }
588
+ handlePrototype(DOMTokenListPrototype, "DOMTokenList");
589
+ function _defineProperty(obj, key, value) {
590
+ if (key in obj) {
591
+ Object.defineProperty(obj, key, {
592
+ value,
593
+ enumerable: true,
594
+ configurable: true,
595
+ writable: true
596
+ });
597
+ } else {
598
+ obj[key] = value;
599
+ }
600
+ return obj;
601
+ }
602
+ var $$3 = _export;
603
+ var uncurryThis$4 = functionUncurryThis;
604
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
605
+ var toLength$1 = toLength$5;
606
+ var toString$2 = toString$7;
607
+ var notARegExp$1 = notARegexp;
608
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
609
+ var correctIsRegExpLogic$1 = correctIsRegexpLogic;
610
+ var nativeEndsWith = uncurryThis$4("".endsWith);
611
+ var slice = uncurryThis$4("".slice);
612
+ var min$1 = Math.min;
613
+ var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$1("endsWith");
614
+ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function() {
615
+ var descriptor = getOwnPropertyDescriptor(String.prototype, "endsWith");
616
+ return descriptor && !descriptor.writable;
617
+ }();
618
+ $$3({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
619
+ endsWith: function endsWith(searchString) {
620
+ var that = toString$2(requireObjectCoercible$2(this));
621
+ notARegExp$1(searchString);
622
+ var endPosition = arguments.length > 1 ? arguments[1] : void 0;
623
+ var len = that.length;
624
+ var end = endPosition === void 0 ? len : min$1(toLength$1(endPosition), len);
625
+ var search = toString$2(searchString);
626
+ return nativeEndsWith ? nativeEndsWith(that, search, end) : slice(that, end - search.length, end) === search;
627
+ }
628
+ });
629
+ var apply = functionApply;
630
+ var call$1 = functionCall;
631
+ var uncurryThis$3 = functionUncurryThis;
632
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
633
+ var anObject$1 = anObject$6;
634
+ var isNullOrUndefined = isNullOrUndefined$3;
635
+ var isRegExp = isRegexp;
636
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
637
+ var speciesConstructor = speciesConstructor$1;
638
+ var advanceStringIndex = advanceStringIndex$3;
639
+ var toLength = toLength$5;
640
+ var toString$1 = toString$7;
641
+ var getMethod = getMethod$3;
642
+ var arraySlice = arraySliceSimple;
643
+ var callRegExpExec = regexpExecAbstract;
644
+ var regexpExec = regexpExec$3;
645
+ var stickyHelpers = regexpStickyHelpers;
646
+ var fails$1 = fails$7;
647
+ var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
648
+ var MAX_UINT32 = 4294967295;
649
+ var min = Math.min;
650
+ var $push = [].push;
651
+ var exec = uncurryThis$3(/./.exec);
652
+ var push = uncurryThis$3($push);
653
+ var stringSlice = uncurryThis$3("".slice);
654
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function() {
655
+ var re = /(?:)/;
656
+ var originalExec = re.exec;
657
+ re.exec = function() {
658
+ return originalExec.apply(this, arguments);
659
+ };
660
+ var result = "ab".split(re);
661
+ return result.length !== 2 || result[0] !== "a" || result[1] !== "b";
662
+ });
663
+ fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) {
664
+ var internalSplit;
665
+ if ("abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length) {
666
+ internalSplit = function(separator, limit) {
667
+ var string = toString$1(requireObjectCoercible$1(this));
668
+ var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0;
669
+ if (lim === 0)
670
+ return [];
671
+ if (separator === void 0)
672
+ return [string];
673
+ if (!isRegExp(separator)) {
674
+ return call$1(nativeSplit, string, separator, lim);
675
+ }
676
+ var output = [];
677
+ var flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : "");
678
+ var lastLastIndex = 0;
679
+ var separatorCopy = new RegExp(separator.source, flags + "g");
680
+ var match, lastIndex, lastLength;
681
+ while (match = call$1(regexpExec, separatorCopy, string)) {
682
+ lastIndex = separatorCopy.lastIndex;
683
+ if (lastIndex > lastLastIndex) {
684
+ push(output, stringSlice(string, lastLastIndex, match.index));
685
+ if (match.length > 1 && match.index < string.length)
686
+ apply($push, output, arraySlice(match, 1));
687
+ lastLength = match[0].length;
688
+ lastLastIndex = lastIndex;
689
+ if (output.length >= lim)
690
+ break;
691
+ }
692
+ if (separatorCopy.lastIndex === match.index)
693
+ separatorCopy.lastIndex++;
694
+ }
695
+ if (lastLastIndex === string.length) {
696
+ if (lastLength || !exec(separatorCopy, ""))
697
+ push(output, "");
698
+ } else
699
+ push(output, stringSlice(string, lastLastIndex));
700
+ return output.length > lim ? arraySlice(output, 0, lim) : output;
701
+ };
702
+ } else if ("0".split(void 0, 0).length) {
703
+ internalSplit = function(separator, limit) {
704
+ return separator === void 0 && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
705
+ };
706
+ } else
707
+ internalSplit = nativeSplit;
708
+ return [
709
+ function split(separator, limit) {
710
+ var O2 = requireObjectCoercible$1(this);
711
+ var splitter = isNullOrUndefined(separator) ? void 0 : getMethod(separator, SPLIT);
712
+ return splitter ? call$1(splitter, separator, O2, limit) : call$1(internalSplit, toString$1(O2), separator, limit);
713
+ },
714
+ function(string, limit) {
715
+ var rx = anObject$1(this);
716
+ var S = toString$1(string);
717
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
718
+ if (res.done)
719
+ return res.value;
720
+ var C = speciesConstructor(rx, RegExp);
721
+ var unicodeMatching = rx.unicode;
722
+ var flags = (rx.ignoreCase ? "i" : "") + (rx.multiline ? "m" : "") + (rx.unicode ? "u" : "") + (UNSUPPORTED_Y ? "g" : "y");
723
+ var splitter = new C(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags);
724
+ var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0;
725
+ if (lim === 0)
726
+ return [];
727
+ if (S.length === 0)
728
+ return callRegExpExec(splitter, S) === null ? [S] : [];
729
+ var p2 = 0;
730
+ var q = 0;
731
+ var A = [];
732
+ while (q < S.length) {
733
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
734
+ var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
735
+ var e2;
736
+ if (z === null || (e2 = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p2) {
737
+ q = advanceStringIndex(S, q, unicodeMatching);
738
+ } else {
739
+ push(A, stringSlice(S, p2, q));
740
+ if (A.length === lim)
741
+ return A;
742
+ for (var i2 = 1; i2 <= z.length - 1; i2++) {
743
+ push(A, z[i2]);
744
+ if (A.length === lim)
745
+ return A;
746
+ }
747
+ q = p2 = e2;
748
+ }
749
+ }
750
+ push(A, stringSlice(S, p2));
751
+ return A;
752
+ }
753
+ ];
754
+ }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
755
+ var _raf_3_4_1_raf = { exports: {} };
756
+ var performanceNow = { exports: {} };
757
+ (function() {
758
+ var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
759
+ if (typeof performance !== "undefined" && performance !== null && performance.now) {
760
+ performanceNow.exports = function() {
761
+ return performance.now();
762
+ };
763
+ } else if (typeof process !== "undefined" && process !== null && process.hrtime) {
764
+ performanceNow.exports = function() {
765
+ return (getNanoSeconds() - nodeLoadTime) / 1e6;
766
+ };
767
+ hrtime = process.hrtime;
768
+ getNanoSeconds = function() {
769
+ var hr;
770
+ hr = hrtime();
771
+ return hr[0] * 1e9 + hr[1];
772
+ };
773
+ moduleLoadTime = getNanoSeconds();
774
+ upTime = process.uptime() * 1e9;
775
+ nodeLoadTime = moduleLoadTime - upTime;
776
+ } else if (Date.now) {
777
+ performanceNow.exports = function() {
778
+ return Date.now() - loadTime;
779
+ };
780
+ loadTime = Date.now();
781
+ } else {
782
+ performanceNow.exports = function() {
783
+ return new Date().getTime() - loadTime;
784
+ };
785
+ loadTime = new Date().getTime();
786
+ }
787
+ }).call(commonjsGlobal);
788
+ var now = performanceNow.exports, root = typeof window === "undefined" ? commonjsGlobal : window, vendors = ["moz", "webkit"], suffix = "AnimationFrame", raf = root["request" + suffix], caf = root["cancel" + suffix] || root["cancelRequest" + suffix];
789
+ for (var i$1 = 0; !raf && i$1 < vendors.length; i$1++) {
790
+ raf = root[vendors[i$1] + "Request" + suffix];
791
+ caf = root[vendors[i$1] + "Cancel" + suffix] || root[vendors[i$1] + "CancelRequest" + suffix];
792
+ }
793
+ if (!raf || !caf) {
794
+ var last = 0, id = 0, queue = [], frameDuration = 1e3 / 60;
795
+ raf = function(callback) {
796
+ if (queue.length === 0) {
797
+ var _now = now(), next = Math.max(0, frameDuration - (_now - last));
798
+ last = next + _now;
799
+ setTimeout(function() {
800
+ var cp = queue.slice(0);
801
+ queue.length = 0;
802
+ for (var i2 = 0; i2 < cp.length; i2++) {
803
+ if (!cp[i2].cancelled) {
804
+ try {
805
+ cp[i2].callback(last);
806
+ } catch (e2) {
807
+ setTimeout(function() {
808
+ throw e2;
809
+ }, 0);
810
+ }
811
+ }
812
+ }
813
+ }, Math.round(next));
814
+ }
815
+ queue.push({
816
+ handle: ++id,
817
+ callback,
818
+ cancelled: false
819
+ });
820
+ return id;
821
+ };
822
+ caf = function(handle) {
823
+ for (var i2 = 0; i2 < queue.length; i2++) {
824
+ if (queue[i2].handle === handle) {
825
+ queue[i2].cancelled = true;
826
+ }
827
+ }
828
+ };
829
+ }
830
+ _raf_3_4_1_raf.exports = function(fn) {
831
+ return raf.call(root, fn);
832
+ };
833
+ _raf_3_4_1_raf.exports.cancel = function() {
834
+ caf.apply(root, arguments);
835
+ };
836
+ _raf_3_4_1_raf.exports.polyfill = function(object) {
837
+ if (!object) {
838
+ object = root;
839
+ }
840
+ object.requestAnimationFrame = raf;
841
+ object.cancelAnimationFrame = caf;
842
+ };
843
+ var requestAnimationFrame = _raf_3_4_1_raf.exports;
844
+ var _rgbcolor_1_0_1_rgbcolor = function(color_string) {
845
+ this.ok = false;
846
+ this.alpha = 1;
847
+ if (color_string.charAt(0) == "#") {
848
+ color_string = color_string.substr(1, 6);
849
+ }
850
+ color_string = color_string.replace(/ /g, "");
851
+ color_string = color_string.toLowerCase();
852
+ var simple_colors = {
853
+ aliceblue: "f0f8ff",
854
+ antiquewhite: "faebd7",
855
+ aqua: "00ffff",
856
+ aquamarine: "7fffd4",
857
+ azure: "f0ffff",
858
+ beige: "f5f5dc",
859
+ bisque: "ffe4c4",
860
+ black: "000000",
861
+ blanchedalmond: "ffebcd",
862
+ blue: "0000ff",
863
+ blueviolet: "8a2be2",
864
+ brown: "a52a2a",
865
+ burlywood: "deb887",
866
+ cadetblue: "5f9ea0",
867
+ chartreuse: "7fff00",
868
+ chocolate: "d2691e",
869
+ coral: "ff7f50",
870
+ cornflowerblue: "6495ed",
871
+ cornsilk: "fff8dc",
872
+ crimson: "dc143c",
873
+ cyan: "00ffff",
874
+ darkblue: "00008b",
875
+ darkcyan: "008b8b",
876
+ darkgoldenrod: "b8860b",
877
+ darkgray: "a9a9a9",
878
+ darkgreen: "006400",
879
+ darkkhaki: "bdb76b",
880
+ darkmagenta: "8b008b",
881
+ darkolivegreen: "556b2f",
882
+ darkorange: "ff8c00",
883
+ darkorchid: "9932cc",
884
+ darkred: "8b0000",
885
+ darksalmon: "e9967a",
886
+ darkseagreen: "8fbc8f",
887
+ darkslateblue: "483d8b",
888
+ darkslategray: "2f4f4f",
889
+ darkturquoise: "00ced1",
890
+ darkviolet: "9400d3",
891
+ deeppink: "ff1493",
892
+ deepskyblue: "00bfff",
893
+ dimgray: "696969",
894
+ dodgerblue: "1e90ff",
895
+ feldspar: "d19275",
896
+ firebrick: "b22222",
897
+ floralwhite: "fffaf0",
898
+ forestgreen: "228b22",
899
+ fuchsia: "ff00ff",
900
+ gainsboro: "dcdcdc",
901
+ ghostwhite: "f8f8ff",
902
+ gold: "ffd700",
903
+ goldenrod: "daa520",
904
+ gray: "808080",
905
+ green: "008000",
906
+ greenyellow: "adff2f",
907
+ honeydew: "f0fff0",
908
+ hotpink: "ff69b4",
909
+ indianred: "cd5c5c",
910
+ indigo: "4b0082",
911
+ ivory: "fffff0",
912
+ khaki: "f0e68c",
913
+ lavender: "e6e6fa",
914
+ lavenderblush: "fff0f5",
915
+ lawngreen: "7cfc00",
916
+ lemonchiffon: "fffacd",
917
+ lightblue: "add8e6",
918
+ lightcoral: "f08080",
919
+ lightcyan: "e0ffff",
920
+ lightgoldenrodyellow: "fafad2",
921
+ lightgrey: "d3d3d3",
922
+ lightgreen: "90ee90",
923
+ lightpink: "ffb6c1",
924
+ lightsalmon: "ffa07a",
925
+ lightseagreen: "20b2aa",
926
+ lightskyblue: "87cefa",
927
+ lightslateblue: "8470ff",
928
+ lightslategray: "778899",
929
+ lightsteelblue: "b0c4de",
930
+ lightyellow: "ffffe0",
931
+ lime: "00ff00",
932
+ limegreen: "32cd32",
933
+ linen: "faf0e6",
934
+ magenta: "ff00ff",
935
+ maroon: "800000",
936
+ mediumaquamarine: "66cdaa",
937
+ mediumblue: "0000cd",
938
+ mediumorchid: "ba55d3",
939
+ mediumpurple: "9370d8",
940
+ mediumseagreen: "3cb371",
941
+ mediumslateblue: "7b68ee",
942
+ mediumspringgreen: "00fa9a",
943
+ mediumturquoise: "48d1cc",
944
+ mediumvioletred: "c71585",
945
+ midnightblue: "191970",
946
+ mintcream: "f5fffa",
947
+ mistyrose: "ffe4e1",
948
+ moccasin: "ffe4b5",
949
+ navajowhite: "ffdead",
950
+ navy: "000080",
951
+ oldlace: "fdf5e6",
952
+ olive: "808000",
953
+ olivedrab: "6b8e23",
954
+ orange: "ffa500",
955
+ orangered: "ff4500",
956
+ orchid: "da70d6",
957
+ palegoldenrod: "eee8aa",
958
+ palegreen: "98fb98",
959
+ paleturquoise: "afeeee",
960
+ palevioletred: "d87093",
961
+ papayawhip: "ffefd5",
962
+ peachpuff: "ffdab9",
963
+ peru: "cd853f",
964
+ pink: "ffc0cb",
965
+ plum: "dda0dd",
966
+ powderblue: "b0e0e6",
967
+ purple: "800080",
968
+ rebeccapurple: "663399",
969
+ red: "ff0000",
970
+ rosybrown: "bc8f8f",
971
+ royalblue: "4169e1",
972
+ saddlebrown: "8b4513",
973
+ salmon: "fa8072",
974
+ sandybrown: "f4a460",
975
+ seagreen: "2e8b57",
976
+ seashell: "fff5ee",
977
+ sienna: "a0522d",
978
+ silver: "c0c0c0",
979
+ skyblue: "87ceeb",
980
+ slateblue: "6a5acd",
981
+ slategray: "708090",
982
+ snow: "fffafa",
983
+ springgreen: "00ff7f",
984
+ steelblue: "4682b4",
985
+ tan: "d2b48c",
986
+ teal: "008080",
987
+ thistle: "d8bfd8",
988
+ tomato: "ff6347",
989
+ turquoise: "40e0d0",
990
+ violet: "ee82ee",
991
+ violetred: "d02090",
992
+ wheat: "f5deb3",
993
+ white: "ffffff",
994
+ whitesmoke: "f5f5f5",
995
+ yellow: "ffff00",
996
+ yellowgreen: "9acd32"
997
+ };
998
+ color_string = simple_colors[color_string] || color_string;
999
+ var color_defs = [
1000
+ {
1001
+ re: /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,
1002
+ example: ["rgba(123, 234, 45, 0.8)", "rgba(255,234,245,1.0)"],
1003
+ process: function(bits2) {
1004
+ return [
1005
+ parseInt(bits2[1]),
1006
+ parseInt(bits2[2]),
1007
+ parseInt(bits2[3]),
1008
+ parseFloat(bits2[4])
1009
+ ];
1010
+ }
1011
+ },
1012
+ {
1013
+ re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,
1014
+ example: ["rgb(123, 234, 45)", "rgb(255,234,245)"],
1015
+ process: function(bits2) {
1016
+ return [
1017
+ parseInt(bits2[1]),
1018
+ parseInt(bits2[2]),
1019
+ parseInt(bits2[3])
1020
+ ];
1021
+ }
1022
+ },
1023
+ {
1024
+ re: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1025
+ example: ["#00ff00", "336699"],
1026
+ process: function(bits2) {
1027
+ return [
1028
+ parseInt(bits2[1], 16),
1029
+ parseInt(bits2[2], 16),
1030
+ parseInt(bits2[3], 16)
1031
+ ];
1032
+ }
1033
+ },
1034
+ {
1035
+ re: /^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1036
+ example: ["#fb0", "f0f"],
1037
+ process: function(bits2) {
1038
+ return [
1039
+ parseInt(bits2[1] + bits2[1], 16),
1040
+ parseInt(bits2[2] + bits2[2], 16),
1041
+ parseInt(bits2[3] + bits2[3], 16)
1042
+ ];
1043
+ }
1044
+ }
1045
+ ];
1046
+ for (var i2 = 0; i2 < color_defs.length; i2++) {
1047
+ var re = color_defs[i2].re;
1048
+ var processor = color_defs[i2].process;
1049
+ var bits = re.exec(color_string);
1050
+ if (bits) {
1051
+ var channels = processor(bits);
1052
+ this.r = channels[0];
1053
+ this.g = channels[1];
1054
+ this.b = channels[2];
1055
+ if (channels.length > 3) {
1056
+ this.alpha = channels[3];
1057
+ }
1058
+ this.ok = true;
1059
+ }
1060
+ }
1061
+ this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r;
1062
+ this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g;
1063
+ this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b;
1064
+ this.alpha = this.alpha < 0 ? 0 : this.alpha > 1 || isNaN(this.alpha) ? 1 : this.alpha;
1065
+ this.toRGB = function() {
1066
+ return "rgb(" + this.r + ", " + this.g + ", " + this.b + ")";
1067
+ };
1068
+ this.toRGBA = function() {
1069
+ return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + this.alpha + ")";
1070
+ };
1071
+ this.toHex = function() {
1072
+ var r2 = this.r.toString(16);
1073
+ var g = this.g.toString(16);
1074
+ var b = this.b.toString(16);
1075
+ if (r2.length == 1)
1076
+ r2 = "0" + r2;
1077
+ if (g.length == 1)
1078
+ g = "0" + g;
1079
+ if (b.length == 1)
1080
+ b = "0" + b;
1081
+ return "#" + r2 + g + b;
1082
+ };
1083
+ this.getHelpXML = function() {
1084
+ var examples = new Array();
1085
+ for (var i3 = 0; i3 < color_defs.length; i3++) {
1086
+ var example = color_defs[i3].example;
1087
+ for (var j = 0; j < example.length; j++) {
1088
+ examples[examples.length] = example[j];
1089
+ }
1090
+ }
1091
+ for (var sc in simple_colors) {
1092
+ examples[examples.length] = sc;
1093
+ }
1094
+ var xml = document.createElement("ul");
1095
+ xml.setAttribute("id", "rgbcolor-examples");
1096
+ for (var i3 = 0; i3 < examples.length; i3++) {
1097
+ try {
1098
+ var list_item = document.createElement("li");
1099
+ var list_color = new RGBColor(examples[i3]);
1100
+ var example_div = document.createElement("div");
1101
+ example_div.style.cssText = "margin: 3px; border: 1px solid black; background:" + list_color.toHex() + "; color:" + list_color.toHex();
1102
+ example_div.appendChild(document.createTextNode("test"));
1103
+ var list_item_value = document.createTextNode(
1104
+ " " + examples[i3] + " -> " + list_color.toRGB() + " -> " + list_color.toHex()
1105
+ );
1106
+ list_item.appendChild(example_div);
1107
+ list_item.appendChild(list_item_value);
1108
+ xml.appendChild(list_item);
1109
+ } catch (e2) {
1110
+ }
1111
+ }
1112
+ return xml;
1113
+ };
1114
+ };
1115
+ var $$2 = _export;
1116
+ var uncurryThis$2 = functionUncurryThis;
1117
+ var $indexOf = arrayIncludes.indexOf;
1118
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
1119
+ var nativeIndexOf = uncurryThis$2([].indexOf);
1120
+ var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
1121
+ var STRICT_METHOD = arrayMethodIsStrict("indexOf");
1122
+ $$2({ target: "Array", proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
1123
+ indexOf: function indexOf2(searchElement) {
1124
+ var fromIndex = arguments.length > 1 ? arguments[1] : void 0;
1125
+ return NEGATIVE_ZERO ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex);
1126
+ }
1127
+ });
1128
+ var $$1 = _export;
1129
+ var uncurryThis$1 = functionUncurryThis;
1130
+ var notARegExp = notARegexp;
1131
+ var requireObjectCoercible = requireObjectCoercible$6;
1132
+ var toString = toString$7;
1133
+ var correctIsRegExpLogic = correctIsRegexpLogic;
1134
+ var stringIndexOf = uncurryThis$1("".indexOf);
1135
+ $$1({ target: "String", proto: true, forced: !correctIsRegExpLogic("includes") }, {
1136
+ includes: function includes(searchString) {
1137
+ return !!~stringIndexOf(
1138
+ toString(requireObjectCoercible(this)),
1139
+ toString(notARegExp(searchString)),
1140
+ arguments.length > 1 ? arguments[1] : void 0
1141
+ );
1142
+ }
1143
+ });
1144
+ var $ = _export;
1145
+ var uncurryThis = functionUncurryThis;
1146
+ var isArray = isArray$1;
1147
+ var nativeReverse = uncurryThis([].reverse);
1148
+ var test = [1, 2];
1149
+ $({ target: "Array", proto: true, forced: String(test) === String(test.reverse()) }, {
1150
+ reverse: function reverse() {
1151
+ if (isArray(this))
1152
+ this.length = this.length;
1153
+ return nativeReverse(this);
1154
+ }
1155
+ });
1156
+ /*! *****************************************************************************
1157
+ Copyright (c) Microsoft Corporation.
1158
+
1159
+ Permission to use, copy, modify, and/or distribute this software for any
1160
+ purpose with or without fee is hereby granted.
1161
+
1162
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1163
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1164
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1165
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1166
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1167
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1168
+ PERFORMANCE OF THIS SOFTWARE.
1169
+ ***************************************************************************** */
1170
+ var t = function(r2, e2) {
1171
+ return (t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t2, r3) {
1172
+ t2.__proto__ = r3;
1173
+ } || function(t2, r3) {
1174
+ for (var e3 in r3)
1175
+ Object.prototype.hasOwnProperty.call(r3, e3) && (t2[e3] = r3[e3]);
1176
+ })(r2, e2);
1177
+ };
1178
+ function r(r2, e2) {
1179
+ if ("function" != typeof e2 && null !== e2)
1180
+ throw new TypeError("Class extends value " + String(e2) + " is not a constructor or null");
1181
+ function i2() {
1182
+ this.constructor = r2;
1183
+ }
1184
+ t(r2, e2), r2.prototype = null === e2 ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
1185
+ }
1186
+ function e(t2) {
1187
+ var r2 = "";
1188
+ Array.isArray(t2) || (t2 = [t2]);
1189
+ for (var e2 = 0; e2 < t2.length; e2++) {
1190
+ var i2 = t2[e2];
1191
+ if (i2.type === _.CLOSE_PATH)
1192
+ r2 += "z";
1193
+ else if (i2.type === _.HORIZ_LINE_TO)
1194
+ r2 += (i2.relative ? "h" : "H") + i2.x;
1195
+ else if (i2.type === _.VERT_LINE_TO)
1196
+ r2 += (i2.relative ? "v" : "V") + i2.y;
1197
+ else if (i2.type === _.MOVE_TO)
1198
+ r2 += (i2.relative ? "m" : "M") + i2.x + " " + i2.y;
1199
+ else if (i2.type === _.LINE_TO)
1200
+ r2 += (i2.relative ? "l" : "L") + i2.x + " " + i2.y;
1201
+ else if (i2.type === _.CURVE_TO)
1202
+ r2 += (i2.relative ? "c" : "C") + i2.x1 + " " + i2.y1 + " " + i2.x2 + " " + i2.y2 + " " + i2.x + " " + i2.y;
1203
+ else if (i2.type === _.SMOOTH_CURVE_TO)
1204
+ r2 += (i2.relative ? "s" : "S") + i2.x2 + " " + i2.y2 + " " + i2.x + " " + i2.y;
1205
+ else if (i2.type === _.QUAD_TO)
1206
+ r2 += (i2.relative ? "q" : "Q") + i2.x1 + " " + i2.y1 + " " + i2.x + " " + i2.y;
1207
+ else if (i2.type === _.SMOOTH_QUAD_TO)
1208
+ r2 += (i2.relative ? "t" : "T") + i2.x + " " + i2.y;
1209
+ else {
1210
+ if (i2.type !== _.ARC)
1211
+ throw new Error('Unexpected command type "' + i2.type + '" at index ' + e2 + ".");
1212
+ r2 += (i2.relative ? "a" : "A") + i2.rX + " " + i2.rY + " " + i2.xRot + " " + +i2.lArcFlag + " " + +i2.sweepFlag + " " + i2.x + " " + i2.y;
1213
+ }
1214
+ }
1215
+ return r2;
1216
+ }
1217
+ function i(t2, r2) {
1218
+ var e2 = t2[0], i2 = t2[1];
1219
+ return [e2 * Math.cos(r2) - i2 * Math.sin(r2), e2 * Math.sin(r2) + i2 * Math.cos(r2)];
1220
+ }
1221
+ function a() {
1222
+ for (var t2 = [], r2 = 0; r2 < arguments.length; r2++)
1223
+ t2[r2] = arguments[r2];
1224
+ for (var e2 = 0; e2 < t2.length; e2++)
1225
+ if ("number" != typeof t2[e2])
1226
+ throw new Error("assertNumbers arguments[" + e2 + "] is not a number. " + typeof t2[e2] + " == typeof " + t2[e2]);
1227
+ return true;
1228
+ }
1229
+ var n = Math.PI;
1230
+ function o(t2, r2, e2) {
1231
+ t2.lArcFlag = 0 === t2.lArcFlag ? 0 : 1, t2.sweepFlag = 0 === t2.sweepFlag ? 0 : 1;
1232
+ var a2 = t2.rX, o2 = t2.rY, s2 = t2.x, u2 = t2.y;
1233
+ a2 = Math.abs(t2.rX), o2 = Math.abs(t2.rY);
1234
+ var h2 = i([(r2 - s2) / 2, (e2 - u2) / 2], -t2.xRot / 180 * n), c2 = h2[0], y2 = h2[1], p2 = Math.pow(c2, 2) / Math.pow(a2, 2) + Math.pow(y2, 2) / Math.pow(o2, 2);
1235
+ 1 < p2 && (a2 *= Math.sqrt(p2), o2 *= Math.sqrt(p2)), t2.rX = a2, t2.rY = o2;
1236
+ var m2 = Math.pow(a2, 2) * Math.pow(y2, 2) + Math.pow(o2, 2) * Math.pow(c2, 2), O2 = (t2.lArcFlag !== t2.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(a2, 2) * Math.pow(o2, 2) - m2) / m2)), l2 = a2 * y2 / o2 * O2, T2 = -o2 * c2 / a2 * O2, v2 = i([l2, T2], t2.xRot / 180 * n);
1237
+ t2.cX = v2[0] + (r2 + s2) / 2, t2.cY = v2[1] + (e2 + u2) / 2, t2.phi1 = Math.atan2((y2 - T2) / o2, (c2 - l2) / a2), t2.phi2 = Math.atan2((-y2 - T2) / o2, (-c2 - l2) / a2), 0 === t2.sweepFlag && t2.phi2 > t2.phi1 && (t2.phi2 -= 2 * n), 1 === t2.sweepFlag && t2.phi2 < t2.phi1 && (t2.phi2 += 2 * n), t2.phi1 *= 180 / n, t2.phi2 *= 180 / n;
1238
+ }
1239
+ function s(t2, r2, e2) {
1240
+ a(t2, r2, e2);
1241
+ var i2 = t2 * t2 + r2 * r2 - e2 * e2;
1242
+ if (0 > i2)
1243
+ return [];
1244
+ if (0 === i2)
1245
+ return [[t2 * e2 / (t2 * t2 + r2 * r2), r2 * e2 / (t2 * t2 + r2 * r2)]];
1246
+ var n2 = Math.sqrt(i2);
1247
+ return [[(t2 * e2 + r2 * n2) / (t2 * t2 + r2 * r2), (r2 * e2 - t2 * n2) / (t2 * t2 + r2 * r2)], [(t2 * e2 - r2 * n2) / (t2 * t2 + r2 * r2), (r2 * e2 + t2 * n2) / (t2 * t2 + r2 * r2)]];
1248
+ }
1249
+ var u, h = Math.PI / 180;
1250
+ function c$1(t2, r2, e2) {
1251
+ return (1 - e2) * t2 + e2 * r2;
1252
+ }
1253
+ function y(t2, r2, e2, i2) {
1254
+ return t2 + Math.cos(i2 / 180 * n) * r2 + Math.sin(i2 / 180 * n) * e2;
1255
+ }
1256
+ function p(t2, r2, e2, i2) {
1257
+ var a2 = 1e-6, n2 = r2 - t2, o2 = e2 - r2, s2 = 3 * n2 + 3 * (i2 - e2) - 6 * o2, u2 = 6 * (o2 - n2), h2 = 3 * n2;
1258
+ return Math.abs(s2) < a2 ? [-h2 / u2] : function(t3, r3, e3) {
1259
+ void 0 === e3 && (e3 = 1e-6);
1260
+ var i3 = t3 * t3 / 4 - r3;
1261
+ if (i3 < -e3)
1262
+ return [];
1263
+ if (i3 <= e3)
1264
+ return [-t3 / 2];
1265
+ var a3 = Math.sqrt(i3);
1266
+ return [-t3 / 2 - a3, -t3 / 2 + a3];
1267
+ }(u2 / s2, h2 / s2, a2);
1268
+ }
1269
+ function m$1(t2, r2, e2, i2, a2) {
1270
+ var n2 = 1 - a2;
1271
+ return t2 * (n2 * n2 * n2) + r2 * (3 * n2 * n2 * a2) + e2 * (3 * n2 * a2 * a2) + i2 * (a2 * a2 * a2);
1272
+ }
1273
+ !function(t2) {
1274
+ function r2() {
1275
+ return u2(function(t3, r3, e3) {
1276
+ return t3.relative && (void 0 !== t3.x1 && (t3.x1 += r3), void 0 !== t3.y1 && (t3.y1 += e3), void 0 !== t3.x2 && (t3.x2 += r3), void 0 !== t3.y2 && (t3.y2 += e3), void 0 !== t3.x && (t3.x += r3), void 0 !== t3.y && (t3.y += e3), t3.relative = false), t3;
1277
+ });
1278
+ }
1279
+ function e2() {
1280
+ var t3 = NaN, r3 = NaN, e3 = NaN, i2 = NaN;
1281
+ return u2(function(a2, n3, o2) {
1282
+ return a2.type & _.SMOOTH_CURVE_TO && (a2.type = _.CURVE_TO, t3 = isNaN(t3) ? n3 : t3, r3 = isNaN(r3) ? o2 : r3, a2.x1 = a2.relative ? n3 - t3 : 2 * n3 - t3, a2.y1 = a2.relative ? o2 - r3 : 2 * o2 - r3), a2.type & _.CURVE_TO ? (t3 = a2.relative ? n3 + a2.x2 : a2.x2, r3 = a2.relative ? o2 + a2.y2 : a2.y2) : (t3 = NaN, r3 = NaN), a2.type & _.SMOOTH_QUAD_TO && (a2.type = _.QUAD_TO, e3 = isNaN(e3) ? n3 : e3, i2 = isNaN(i2) ? o2 : i2, a2.x1 = a2.relative ? n3 - e3 : 2 * n3 - e3, a2.y1 = a2.relative ? o2 - i2 : 2 * o2 - i2), a2.type & _.QUAD_TO ? (e3 = a2.relative ? n3 + a2.x1 : a2.x1, i2 = a2.relative ? o2 + a2.y1 : a2.y1) : (e3 = NaN, i2 = NaN), a2;
1283
+ });
1284
+ }
1285
+ function n2() {
1286
+ var t3 = NaN, r3 = NaN;
1287
+ return u2(function(e3, i2, a2) {
1288
+ if (e3.type & _.SMOOTH_QUAD_TO && (e3.type = _.QUAD_TO, t3 = isNaN(t3) ? i2 : t3, r3 = isNaN(r3) ? a2 : r3, e3.x1 = e3.relative ? i2 - t3 : 2 * i2 - t3, e3.y1 = e3.relative ? a2 - r3 : 2 * a2 - r3), e3.type & _.QUAD_TO) {
1289
+ t3 = e3.relative ? i2 + e3.x1 : e3.x1, r3 = e3.relative ? a2 + e3.y1 : e3.y1;
1290
+ var n3 = e3.x1, o2 = e3.y1;
1291
+ e3.type = _.CURVE_TO, e3.x1 = ((e3.relative ? 0 : i2) + 2 * n3) / 3, e3.y1 = ((e3.relative ? 0 : a2) + 2 * o2) / 3, e3.x2 = (e3.x + 2 * n3) / 3, e3.y2 = (e3.y + 2 * o2) / 3;
1292
+ } else
1293
+ t3 = NaN, r3 = NaN;
1294
+ return e3;
1295
+ });
1296
+ }
1297
+ function u2(t3) {
1298
+ var r3 = 0, e3 = 0, i2 = NaN, a2 = NaN;
1299
+ return function(n3) {
1300
+ if (isNaN(i2) && !(n3.type & _.MOVE_TO))
1301
+ throw new Error("path must start with moveto");
1302
+ var o2 = t3(n3, r3, e3, i2, a2);
1303
+ return n3.type & _.CLOSE_PATH && (r3 = i2, e3 = a2), void 0 !== n3.x && (r3 = n3.relative ? r3 + n3.x : n3.x), void 0 !== n3.y && (e3 = n3.relative ? e3 + n3.y : n3.y), n3.type & _.MOVE_TO && (i2 = r3, a2 = e3), o2;
1304
+ };
1305
+ }
1306
+ function O2(t3, r3, e3, i2, n3, o2) {
1307
+ return a(t3, r3, e3, i2, n3, o2), u2(function(a2, s2, u3, h2) {
1308
+ var c2 = a2.x1, y2 = a2.x2, p2 = a2.relative && !isNaN(h2), m2 = void 0 !== a2.x ? a2.x : p2 ? 0 : s2, O3 = void 0 !== a2.y ? a2.y : p2 ? 0 : u3;
1309
+ function l3(t4) {
1310
+ return t4 * t4;
1311
+ }
1312
+ a2.type & _.HORIZ_LINE_TO && 0 !== r3 && (a2.type = _.LINE_TO, a2.y = a2.relative ? 0 : u3), a2.type & _.VERT_LINE_TO && 0 !== e3 && (a2.type = _.LINE_TO, a2.x = a2.relative ? 0 : s2), void 0 !== a2.x && (a2.x = a2.x * t3 + O3 * e3 + (p2 ? 0 : n3)), void 0 !== a2.y && (a2.y = m2 * r3 + a2.y * i2 + (p2 ? 0 : o2)), void 0 !== a2.x1 && (a2.x1 = a2.x1 * t3 + a2.y1 * e3 + (p2 ? 0 : n3)), void 0 !== a2.y1 && (a2.y1 = c2 * r3 + a2.y1 * i2 + (p2 ? 0 : o2)), void 0 !== a2.x2 && (a2.x2 = a2.x2 * t3 + a2.y2 * e3 + (p2 ? 0 : n3)), void 0 !== a2.y2 && (a2.y2 = y2 * r3 + a2.y2 * i2 + (p2 ? 0 : o2));
1313
+ var T2 = t3 * i2 - r3 * e3;
1314
+ if (void 0 !== a2.xRot && (1 !== t3 || 0 !== r3 || 0 !== e3 || 1 !== i2))
1315
+ if (0 === T2)
1316
+ delete a2.rX, delete a2.rY, delete a2.xRot, delete a2.lArcFlag, delete a2.sweepFlag, a2.type = _.LINE_TO;
1317
+ else {
1318
+ var v2 = a2.xRot * Math.PI / 180, f2 = Math.sin(v2), N2 = Math.cos(v2), x = 1 / l3(a2.rX), d = 1 / l3(a2.rY), E = l3(N2) * x + l3(f2) * d, A = 2 * f2 * N2 * (x - d), C = l3(f2) * x + l3(N2) * d, M = E * i2 * i2 - A * r3 * i2 + C * r3 * r3, R = A * (t3 * i2 + r3 * e3) - 2 * (E * e3 * i2 + C * t3 * r3), g = E * e3 * e3 - A * t3 * e3 + C * t3 * t3, I = (Math.atan2(R, M - g) + Math.PI) % Math.PI / 2, S = Math.sin(I), L = Math.cos(I);
1319
+ a2.rX = Math.abs(T2) / Math.sqrt(M * l3(L) + R * S * L + g * l3(S)), a2.rY = Math.abs(T2) / Math.sqrt(M * l3(S) - R * S * L + g * l3(L)), a2.xRot = 180 * I / Math.PI;
1320
+ }
1321
+ return void 0 !== a2.sweepFlag && 0 > T2 && (a2.sweepFlag = +!a2.sweepFlag), a2;
1322
+ });
1323
+ }
1324
+ function l2() {
1325
+ return function(t3) {
1326
+ var r3 = {};
1327
+ for (var e3 in t3)
1328
+ r3[e3] = t3[e3];
1329
+ return r3;
1330
+ };
1331
+ }
1332
+ t2.ROUND = function(t3) {
1333
+ function r3(r4) {
1334
+ return Math.round(r4 * t3) / t3;
1335
+ }
1336
+ return void 0 === t3 && (t3 = 1e13), a(t3), function(t4) {
1337
+ return void 0 !== t4.x1 && (t4.x1 = r3(t4.x1)), void 0 !== t4.y1 && (t4.y1 = r3(t4.y1)), void 0 !== t4.x2 && (t4.x2 = r3(t4.x2)), void 0 !== t4.y2 && (t4.y2 = r3(t4.y2)), void 0 !== t4.x && (t4.x = r3(t4.x)), void 0 !== t4.y && (t4.y = r3(t4.y)), void 0 !== t4.rX && (t4.rX = r3(t4.rX)), void 0 !== t4.rY && (t4.rY = r3(t4.rY)), t4;
1338
+ };
1339
+ }, t2.TO_ABS = r2, t2.TO_REL = function() {
1340
+ return u2(function(t3, r3, e3) {
1341
+ return t3.relative || (void 0 !== t3.x1 && (t3.x1 -= r3), void 0 !== t3.y1 && (t3.y1 -= e3), void 0 !== t3.x2 && (t3.x2 -= r3), void 0 !== t3.y2 && (t3.y2 -= e3), void 0 !== t3.x && (t3.x -= r3), void 0 !== t3.y && (t3.y -= e3), t3.relative = true), t3;
1342
+ });
1343
+ }, t2.NORMALIZE_HVZ = function(t3, r3, e3) {
1344
+ return void 0 === t3 && (t3 = true), void 0 === r3 && (r3 = true), void 0 === e3 && (e3 = true), u2(function(i2, a2, n3, o2, s2) {
1345
+ if (isNaN(o2) && !(i2.type & _.MOVE_TO))
1346
+ throw new Error("path must start with moveto");
1347
+ return r3 && i2.type & _.HORIZ_LINE_TO && (i2.type = _.LINE_TO, i2.y = i2.relative ? 0 : n3), e3 && i2.type & _.VERT_LINE_TO && (i2.type = _.LINE_TO, i2.x = i2.relative ? 0 : a2), t3 && i2.type & _.CLOSE_PATH && (i2.type = _.LINE_TO, i2.x = i2.relative ? o2 - a2 : o2, i2.y = i2.relative ? s2 - n3 : s2), i2.type & _.ARC && (0 === i2.rX || 0 === i2.rY) && (i2.type = _.LINE_TO, delete i2.rX, delete i2.rY, delete i2.xRot, delete i2.lArcFlag, delete i2.sweepFlag), i2;
1348
+ });
1349
+ }, t2.NORMALIZE_ST = e2, t2.QT_TO_C = n2, t2.INFO = u2, t2.SANITIZE = function(t3) {
1350
+ void 0 === t3 && (t3 = 0), a(t3);
1351
+ var r3 = NaN, e3 = NaN, i2 = NaN, n3 = NaN;
1352
+ return u2(function(a2, o2, s2, u3, h2) {
1353
+ var c2 = Math.abs, y2 = false, p2 = 0, m2 = 0;
1354
+ if (a2.type & _.SMOOTH_CURVE_TO && (p2 = isNaN(r3) ? 0 : o2 - r3, m2 = isNaN(e3) ? 0 : s2 - e3), a2.type & (_.CURVE_TO | _.SMOOTH_CURVE_TO) ? (r3 = a2.relative ? o2 + a2.x2 : a2.x2, e3 = a2.relative ? s2 + a2.y2 : a2.y2) : (r3 = NaN, e3 = NaN), a2.type & _.SMOOTH_QUAD_TO ? (i2 = isNaN(i2) ? o2 : 2 * o2 - i2, n3 = isNaN(n3) ? s2 : 2 * s2 - n3) : a2.type & _.QUAD_TO ? (i2 = a2.relative ? o2 + a2.x1 : a2.x1, n3 = a2.relative ? s2 + a2.y1 : a2.y2) : (i2 = NaN, n3 = NaN), a2.type & _.LINE_COMMANDS || a2.type & _.ARC && (0 === a2.rX || 0 === a2.rY || !a2.lArcFlag) || a2.type & _.CURVE_TO || a2.type & _.SMOOTH_CURVE_TO || a2.type & _.QUAD_TO || a2.type & _.SMOOTH_QUAD_TO) {
1355
+ var O3 = void 0 === a2.x ? 0 : a2.relative ? a2.x : a2.x - o2, l3 = void 0 === a2.y ? 0 : a2.relative ? a2.y : a2.y - s2;
1356
+ p2 = isNaN(i2) ? void 0 === a2.x1 ? p2 : a2.relative ? a2.x : a2.x1 - o2 : i2 - o2, m2 = isNaN(n3) ? void 0 === a2.y1 ? m2 : a2.relative ? a2.y : a2.y1 - s2 : n3 - s2;
1357
+ var T2 = void 0 === a2.x2 ? 0 : a2.relative ? a2.x : a2.x2 - o2, v2 = void 0 === a2.y2 ? 0 : a2.relative ? a2.y : a2.y2 - s2;
1358
+ c2(O3) <= t3 && c2(l3) <= t3 && c2(p2) <= t3 && c2(m2) <= t3 && c2(T2) <= t3 && c2(v2) <= t3 && (y2 = true);
1359
+ }
1360
+ return a2.type & _.CLOSE_PATH && c2(o2 - u3) <= t3 && c2(s2 - h2) <= t3 && (y2 = true), y2 ? [] : a2;
1361
+ });
1362
+ }, t2.MATRIX = O2, t2.ROTATE = function(t3, r3, e3) {
1363
+ void 0 === r3 && (r3 = 0), void 0 === e3 && (e3 = 0), a(t3, r3, e3);
1364
+ var i2 = Math.sin(t3), n3 = Math.cos(t3);
1365
+ return O2(n3, i2, -i2, n3, r3 - r3 * n3 + e3 * i2, e3 - r3 * i2 - e3 * n3);
1366
+ }, t2.TRANSLATE = function(t3, r3) {
1367
+ return void 0 === r3 && (r3 = 0), a(t3, r3), O2(1, 0, 0, 1, t3, r3);
1368
+ }, t2.SCALE = function(t3, r3) {
1369
+ return void 0 === r3 && (r3 = t3), a(t3, r3), O2(t3, 0, 0, r3, 0, 0);
1370
+ }, t2.SKEW_X = function(t3) {
1371
+ return a(t3), O2(1, 0, Math.atan(t3), 1, 0, 0);
1372
+ }, t2.SKEW_Y = function(t3) {
1373
+ return a(t3), O2(1, Math.atan(t3), 0, 1, 0, 0);
1374
+ }, t2.X_AXIS_SYMMETRY = function(t3) {
1375
+ return void 0 === t3 && (t3 = 0), a(t3), O2(-1, 0, 0, 1, t3, 0);
1376
+ }, t2.Y_AXIS_SYMMETRY = function(t3) {
1377
+ return void 0 === t3 && (t3 = 0), a(t3), O2(1, 0, 0, -1, 0, t3);
1378
+ }, t2.A_TO_C = function() {
1379
+ return u2(function(t3, r3, e3) {
1380
+ return _.ARC === t3.type ? function(t4, r4, e4) {
1381
+ var a2, n3, s2, u3;
1382
+ t4.cX || o(t4, r4, e4);
1383
+ for (var y2 = Math.min(t4.phi1, t4.phi2), p2 = Math.max(t4.phi1, t4.phi2) - y2, m2 = Math.ceil(p2 / 90), O3 = new Array(m2), l3 = r4, T2 = e4, v2 = 0; v2 < m2; v2++) {
1384
+ var f2 = c$1(t4.phi1, t4.phi2, v2 / m2), N2 = c$1(t4.phi1, t4.phi2, (v2 + 1) / m2), x = N2 - f2, d = 4 / 3 * Math.tan(x * h / 4), E = [Math.cos(f2 * h) - d * Math.sin(f2 * h), Math.sin(f2 * h) + d * Math.cos(f2 * h)], A = E[0], C = E[1], M = [Math.cos(N2 * h), Math.sin(N2 * h)], R = M[0], g = M[1], I = [R + d * Math.sin(N2 * h), g - d * Math.cos(N2 * h)], S = I[0], L = I[1];
1385
+ O3[v2] = { relative: t4.relative, type: _.CURVE_TO };
1386
+ var H = function(r5, e5) {
1387
+ var a3 = i([r5 * t4.rX, e5 * t4.rY], t4.xRot), n4 = a3[0], o2 = a3[1];
1388
+ return [t4.cX + n4, t4.cY + o2];
1389
+ };
1390
+ a2 = H(A, C), O3[v2].x1 = a2[0], O3[v2].y1 = a2[1], n3 = H(S, L), O3[v2].x2 = n3[0], O3[v2].y2 = n3[1], s2 = H(R, g), O3[v2].x = s2[0], O3[v2].y = s2[1], t4.relative && (O3[v2].x1 -= l3, O3[v2].y1 -= T2, O3[v2].x2 -= l3, O3[v2].y2 -= T2, O3[v2].x -= l3, O3[v2].y -= T2), l3 = (u3 = [O3[v2].x, O3[v2].y])[0], T2 = u3[1];
1391
+ }
1392
+ return O3;
1393
+ }(t3, t3.relative ? 0 : r3, t3.relative ? 0 : e3) : t3;
1394
+ });
1395
+ }, t2.ANNOTATE_ARCS = function() {
1396
+ return u2(function(t3, r3, e3) {
1397
+ return t3.relative && (r3 = 0, e3 = 0), _.ARC === t3.type && o(t3, r3, e3), t3;
1398
+ });
1399
+ }, t2.CLONE = l2, t2.CALCULATE_BOUNDS = function() {
1400
+ var t3 = function(t4) {
1401
+ var r3 = {};
1402
+ for (var e3 in t4)
1403
+ r3[e3] = t4[e3];
1404
+ return r3;
1405
+ }, i2 = r2(), a2 = n2(), h2 = e2(), c2 = u2(function(r3, e3, n3) {
1406
+ var u3 = h2(a2(i2(t3(r3))));
1407
+ function O3(t4) {
1408
+ t4 > c2.maxX && (c2.maxX = t4), t4 < c2.minX && (c2.minX = t4);
1409
+ }
1410
+ function l3(t4) {
1411
+ t4 > c2.maxY && (c2.maxY = t4), t4 < c2.minY && (c2.minY = t4);
1412
+ }
1413
+ if (u3.type & _.DRAWING_COMMANDS && (O3(e3), l3(n3)), u3.type & _.HORIZ_LINE_TO && O3(u3.x), u3.type & _.VERT_LINE_TO && l3(u3.y), u3.type & _.LINE_TO && (O3(u3.x), l3(u3.y)), u3.type & _.CURVE_TO) {
1414
+ O3(u3.x), l3(u3.y);
1415
+ for (var T2 = 0, v2 = p(e3, u3.x1, u3.x2, u3.x); T2 < v2.length; T2++) {
1416
+ 0 < (w = v2[T2]) && 1 > w && O3(m$1(e3, u3.x1, u3.x2, u3.x, w));
1417
+ }
1418
+ for (var f2 = 0, N2 = p(n3, u3.y1, u3.y2, u3.y); f2 < N2.length; f2++) {
1419
+ 0 < (w = N2[f2]) && 1 > w && l3(m$1(n3, u3.y1, u3.y2, u3.y, w));
1420
+ }
1421
+ }
1422
+ if (u3.type & _.ARC) {
1423
+ O3(u3.x), l3(u3.y), o(u3, e3, n3);
1424
+ for (var x = u3.xRot / 180 * Math.PI, d = Math.cos(x) * u3.rX, E = Math.sin(x) * u3.rX, A = -Math.sin(x) * u3.rY, C = Math.cos(x) * u3.rY, M = u3.phi1 < u3.phi2 ? [u3.phi1, u3.phi2] : -180 > u3.phi2 ? [u3.phi2 + 360, u3.phi1 + 360] : [u3.phi2, u3.phi1], R = M[0], g = M[1], I = function(t4) {
1425
+ var r4 = t4[0], e4 = t4[1], i3 = 180 * Math.atan2(e4, r4) / Math.PI;
1426
+ return i3 < R ? i3 + 360 : i3;
1427
+ }, S = 0, L = s(A, -d, 0).map(I); S < L.length; S++) {
1428
+ (w = L[S]) > R && w < g && O3(y(u3.cX, d, A, w));
1429
+ }
1430
+ for (var H = 0, U = s(C, -E, 0).map(I); H < U.length; H++) {
1431
+ var w;
1432
+ (w = U[H]) > R && w < g && l3(y(u3.cY, E, C, w));
1433
+ }
1434
+ }
1435
+ return r3;
1436
+ });
1437
+ return c2.minX = 1 / 0, c2.maxX = -1 / 0, c2.minY = 1 / 0, c2.maxY = -1 / 0, c2;
1438
+ };
1439
+ }(u || (u = {}));
1440
+ var O, l = function() {
1441
+ function t2() {
1442
+ }
1443
+ return t2.prototype.round = function(t3) {
1444
+ return this.transform(u.ROUND(t3));
1445
+ }, t2.prototype.toAbs = function() {
1446
+ return this.transform(u.TO_ABS());
1447
+ }, t2.prototype.toRel = function() {
1448
+ return this.transform(u.TO_REL());
1449
+ }, t2.prototype.normalizeHVZ = function(t3, r2, e2) {
1450
+ return this.transform(u.NORMALIZE_HVZ(t3, r2, e2));
1451
+ }, t2.prototype.normalizeST = function() {
1452
+ return this.transform(u.NORMALIZE_ST());
1453
+ }, t2.prototype.qtToC = function() {
1454
+ return this.transform(u.QT_TO_C());
1455
+ }, t2.prototype.aToC = function() {
1456
+ return this.transform(u.A_TO_C());
1457
+ }, t2.prototype.sanitize = function(t3) {
1458
+ return this.transform(u.SANITIZE(t3));
1459
+ }, t2.prototype.translate = function(t3, r2) {
1460
+ return this.transform(u.TRANSLATE(t3, r2));
1461
+ }, t2.prototype.scale = function(t3, r2) {
1462
+ return this.transform(u.SCALE(t3, r2));
1463
+ }, t2.prototype.rotate = function(t3, r2, e2) {
1464
+ return this.transform(u.ROTATE(t3, r2, e2));
1465
+ }, t2.prototype.matrix = function(t3, r2, e2, i2, a2, n2) {
1466
+ return this.transform(u.MATRIX(t3, r2, e2, i2, a2, n2));
1467
+ }, t2.prototype.skewX = function(t3) {
1468
+ return this.transform(u.SKEW_X(t3));
1469
+ }, t2.prototype.skewY = function(t3) {
1470
+ return this.transform(u.SKEW_Y(t3));
1471
+ }, t2.prototype.xSymmetry = function(t3) {
1472
+ return this.transform(u.X_AXIS_SYMMETRY(t3));
1473
+ }, t2.prototype.ySymmetry = function(t3) {
1474
+ return this.transform(u.Y_AXIS_SYMMETRY(t3));
1475
+ }, t2.prototype.annotateArcs = function() {
1476
+ return this.transform(u.ANNOTATE_ARCS());
1477
+ }, t2;
1478
+ }(), T = function(t2) {
1479
+ return " " === t2 || " " === t2 || "\r" === t2 || "\n" === t2;
1480
+ }, v = function(t2) {
1481
+ return "0".charCodeAt(0) <= t2.charCodeAt(0) && t2.charCodeAt(0) <= "9".charCodeAt(0);
1482
+ }, f = function(t2) {
1483
+ function e2() {
1484
+ var r2 = t2.call(this) || this;
1485
+ return r2.curNumber = "", r2.curCommandType = -1, r2.curCommandRelative = false, r2.canParseCommandOrComma = true, r2.curNumberHasExp = false, r2.curNumberHasExpDigits = false, r2.curNumberHasDecimal = false, r2.curArgs = [], r2;
1486
+ }
1487
+ return r(e2, t2), e2.prototype.finish = function(t3) {
1488
+ if (void 0 === t3 && (t3 = []), this.parse(" ", t3), 0 !== this.curArgs.length || !this.canParseCommandOrComma)
1489
+ throw new SyntaxError("Unterminated command at the path end.");
1490
+ return t3;
1491
+ }, e2.prototype.parse = function(t3, r2) {
1492
+ var e3 = this;
1493
+ void 0 === r2 && (r2 = []);
1494
+ for (var i2 = function(t4) {
1495
+ r2.push(t4), e3.curArgs.length = 0, e3.canParseCommandOrComma = true;
1496
+ }, a2 = 0; a2 < t3.length; a2++) {
1497
+ var n2 = t3[a2], o2 = !(this.curCommandType !== _.ARC || 3 !== this.curArgs.length && 4 !== this.curArgs.length || 1 !== this.curNumber.length || "0" !== this.curNumber && "1" !== this.curNumber), s2 = v(n2) && ("0" === this.curNumber && "0" === n2 || o2);
1498
+ if (!v(n2) || s2)
1499
+ if ("e" !== n2 && "E" !== n2)
1500
+ if ("-" !== n2 && "+" !== n2 || !this.curNumberHasExp || this.curNumberHasExpDigits)
1501
+ if ("." !== n2 || this.curNumberHasExp || this.curNumberHasDecimal || o2) {
1502
+ if (this.curNumber && -1 !== this.curCommandType) {
1503
+ var u2 = Number(this.curNumber);
1504
+ if (isNaN(u2))
1505
+ throw new SyntaxError("Invalid number ending at " + a2);
1506
+ if (this.curCommandType === _.ARC) {
1507
+ if (0 === this.curArgs.length || 1 === this.curArgs.length) {
1508
+ if (0 > u2)
1509
+ throw new SyntaxError('Expected positive number, got "' + u2 + '" at index "' + a2 + '"');
1510
+ } else if ((3 === this.curArgs.length || 4 === this.curArgs.length) && "0" !== this.curNumber && "1" !== this.curNumber)
1511
+ throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + a2 + '"');
1512
+ }
1513
+ this.curArgs.push(u2), this.curArgs.length === N[this.curCommandType] && (_.HORIZ_LINE_TO === this.curCommandType ? i2({ type: _.HORIZ_LINE_TO, relative: this.curCommandRelative, x: u2 }) : _.VERT_LINE_TO === this.curCommandType ? i2({ type: _.VERT_LINE_TO, relative: this.curCommandRelative, y: u2 }) : this.curCommandType === _.MOVE_TO || this.curCommandType === _.LINE_TO || this.curCommandType === _.SMOOTH_QUAD_TO ? (i2({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), _.MOVE_TO === this.curCommandType && (this.curCommandType = _.LINE_TO)) : this.curCommandType === _.CURVE_TO ? i2({ type: _.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === _.SMOOTH_CURVE_TO ? i2({ type: _.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _.QUAD_TO ? i2({ type: _.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _.ARC && i2({ type: _.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = false, this.curNumberHasExp = false, this.curNumberHasDecimal = false, this.canParseCommandOrComma = true;
1514
+ }
1515
+ if (!T(n2))
1516
+ if ("," === n2 && this.canParseCommandOrComma)
1517
+ this.canParseCommandOrComma = false;
1518
+ else if ("+" !== n2 && "-" !== n2 && "." !== n2)
1519
+ if (s2)
1520
+ this.curNumber = n2, this.curNumberHasDecimal = false;
1521
+ else {
1522
+ if (0 !== this.curArgs.length)
1523
+ throw new SyntaxError("Unterminated command at index " + a2 + ".");
1524
+ if (!this.canParseCommandOrComma)
1525
+ throw new SyntaxError('Unexpected character "' + n2 + '" at index ' + a2 + ". Command cannot follow comma");
1526
+ if (this.canParseCommandOrComma = false, "z" !== n2 && "Z" !== n2)
1527
+ if ("h" === n2 || "H" === n2)
1528
+ this.curCommandType = _.HORIZ_LINE_TO, this.curCommandRelative = "h" === n2;
1529
+ else if ("v" === n2 || "V" === n2)
1530
+ this.curCommandType = _.VERT_LINE_TO, this.curCommandRelative = "v" === n2;
1531
+ else if ("m" === n2 || "M" === n2)
1532
+ this.curCommandType = _.MOVE_TO, this.curCommandRelative = "m" === n2;
1533
+ else if ("l" === n2 || "L" === n2)
1534
+ this.curCommandType = _.LINE_TO, this.curCommandRelative = "l" === n2;
1535
+ else if ("c" === n2 || "C" === n2)
1536
+ this.curCommandType = _.CURVE_TO, this.curCommandRelative = "c" === n2;
1537
+ else if ("s" === n2 || "S" === n2)
1538
+ this.curCommandType = _.SMOOTH_CURVE_TO, this.curCommandRelative = "s" === n2;
1539
+ else if ("q" === n2 || "Q" === n2)
1540
+ this.curCommandType = _.QUAD_TO, this.curCommandRelative = "q" === n2;
1541
+ else if ("t" === n2 || "T" === n2)
1542
+ this.curCommandType = _.SMOOTH_QUAD_TO, this.curCommandRelative = "t" === n2;
1543
+ else {
1544
+ if ("a" !== n2 && "A" !== n2)
1545
+ throw new SyntaxError('Unexpected character "' + n2 + '" at index ' + a2 + ".");
1546
+ this.curCommandType = _.ARC, this.curCommandRelative = "a" === n2;
1547
+ }
1548
+ else
1549
+ r2.push({ type: _.CLOSE_PATH }), this.canParseCommandOrComma = true, this.curCommandType = -1;
1550
+ }
1551
+ else
1552
+ this.curNumber = n2, this.curNumberHasDecimal = "." === n2;
1553
+ } else
1554
+ this.curNumber += n2, this.curNumberHasDecimal = true;
1555
+ else
1556
+ this.curNumber += n2;
1557
+ else
1558
+ this.curNumber += n2, this.curNumberHasExp = true;
1559
+ else
1560
+ this.curNumber += n2, this.curNumberHasExpDigits = this.curNumberHasExp;
1561
+ }
1562
+ return r2;
1563
+ }, e2.prototype.transform = function(t3) {
1564
+ return Object.create(this, { parse: { value: function(r2, e3) {
1565
+ void 0 === e3 && (e3 = []);
1566
+ for (var i2 = 0, a2 = Object.getPrototypeOf(this).parse.call(this, r2); i2 < a2.length; i2++) {
1567
+ var n2 = a2[i2], o2 = t3(n2);
1568
+ Array.isArray(o2) ? e3.push.apply(e3, o2) : e3.push(o2);
1569
+ }
1570
+ return e3;
1571
+ } } });
1572
+ }, e2;
1573
+ }(l), _ = function(t2) {
1574
+ function i2(r2) {
1575
+ var e2 = t2.call(this) || this;
1576
+ return e2.commands = "string" == typeof r2 ? i2.parse(r2) : r2, e2;
1577
+ }
1578
+ return r(i2, t2), i2.prototype.encode = function() {
1579
+ return i2.encode(this.commands);
1580
+ }, i2.prototype.getBounds = function() {
1581
+ var t3 = u.CALCULATE_BOUNDS();
1582
+ return this.transform(t3), t3;
1583
+ }, i2.prototype.transform = function(t3) {
1584
+ for (var r2 = [], e2 = 0, i3 = this.commands; e2 < i3.length; e2++) {
1585
+ var a2 = t3(i3[e2]);
1586
+ Array.isArray(a2) ? r2.push.apply(r2, a2) : r2.push(a2);
1587
+ }
1588
+ return this.commands = r2, this;
1589
+ }, i2.encode = function(t3) {
1590
+ return e(t3);
1591
+ }, i2.parse = function(t3) {
1592
+ var r2 = new f(), e2 = [];
1593
+ return r2.parse(t3, e2), r2.finish(e2), e2;
1594
+ }, i2.CLOSE_PATH = 1, i2.MOVE_TO = 2, i2.HORIZ_LINE_TO = 4, i2.VERT_LINE_TO = 8, i2.LINE_TO = 16, i2.CURVE_TO = 32, i2.SMOOTH_CURVE_TO = 64, i2.QUAD_TO = 128, i2.SMOOTH_QUAD_TO = 256, i2.ARC = 512, i2.LINE_COMMANDS = i2.LINE_TO | i2.HORIZ_LINE_TO | i2.VERT_LINE_TO, i2.DRAWING_COMMANDS = i2.HORIZ_LINE_TO | i2.VERT_LINE_TO | i2.LINE_TO | i2.CURVE_TO | i2.SMOOTH_CURVE_TO | i2.QUAD_TO | i2.SMOOTH_QUAD_TO | i2.ARC, i2;
1595
+ }(l), N = ((O = {})[_.MOVE_TO] = 2, O[_.LINE_TO] = 2, O[_.HORIZ_LINE_TO] = 1, O[_.VERT_LINE_TO] = 1, O[_.CLOSE_PATH] = 0, O[_.QUAD_TO] = 4, O[_.SMOOTH_QUAD_TO] = 2, O[_.CURVE_TO] = 6, O[_.SMOOTH_CURVE_TO] = 4, O[_.ARC] = 7, O);
1596
+ var call = functionCall;
1597
+ var hasOwn = hasOwnProperty_1;
1598
+ var isPrototypeOf = objectIsPrototypeOf;
1599
+ var regExpFlags = regexpFlags$1;
1600
+ var RegExpPrototype$1 = RegExp.prototype;
1601
+ var regexpGetFlags = function(R) {
1602
+ var flags = R.flags;
1603
+ return flags === void 0 && !("flags" in RegExpPrototype$1) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype$1, R) ? call(regExpFlags, R) : flags;
1604
+ };
1605
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
1606
+ var defineBuiltIn = defineBuiltIn$2;
1607
+ var anObject = anObject$6;
1608
+ var $toString = toString$7;
1609
+ var fails = fails$7;
1610
+ var getRegExpFlags = regexpGetFlags;
1611
+ var TO_STRING = "toString";
1612
+ var RegExpPrototype = RegExp.prototype;
1613
+ var nativeToString = RegExpPrototype[TO_STRING];
1614
+ var NOT_GENERIC = fails(function() {
1615
+ return nativeToString.call({ source: "a", flags: "b" }) != "/a/b";
1616
+ });
1617
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
1618
+ if (NOT_GENERIC || INCORRECT_NAME) {
1619
+ defineBuiltIn(RegExp.prototype, TO_STRING, function toString2() {
1620
+ var R = anObject(this);
1621
+ var pattern = $toString(R.source);
1622
+ var flags = $toString(getRegExpFlags(R));
1623
+ return "/" + pattern + "/" + flags;
1624
+ }, { unsafe: true });
1625
+ }
1626
+ function _typeof(obj) {
1627
+ "@babel/helpers - typeof";
1628
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1629
+ _typeof = function(obj2) {
1630
+ return typeof obj2;
1631
+ };
1632
+ } else {
1633
+ _typeof = function(obj2) {
1634
+ return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
1635
+ };
1636
+ }
1637
+ return _typeof(obj);
1638
+ }
1639
+ function _classCallCheck(instance, Constructor) {
1640
+ if (!(instance instanceof Constructor)) {
1641
+ throw new TypeError("Cannot call a class as a function");
1642
+ }
1643
+ }
1644
+ var mulTable = [512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, 273, 271, 269, 267, 265, 263, 261, 259];
1645
+ var shgTable = [9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24];
1646
+ function getImageDataFromCanvas(canvas, topX, topY, width, height) {
1647
+ if (typeof canvas === "string") {
1648
+ canvas = document.getElementById(canvas);
1649
+ }
1650
+ if (!canvas || _typeof(canvas) !== "object" || !("getContext" in canvas)) {
1651
+ throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
1652
+ }
1653
+ var context = canvas.getContext("2d");
1654
+ try {
1655
+ return context.getImageData(topX, topY, width, height);
1656
+ } catch (e2) {
1657
+ throw new Error("unable to access image data: " + e2);
1658
+ }
1659
+ }
1660
+ function processCanvasRGBA(canvas, topX, topY, width, height, radius) {
1661
+ if (isNaN(radius) || radius < 1) {
1662
+ return;
1663
+ }
1664
+ radius |= 0;
1665
+ var imageData = getImageDataFromCanvas(canvas, topX, topY, width, height);
1666
+ imageData = processImageDataRGBA(imageData, topX, topY, width, height, radius);
1667
+ canvas.getContext("2d").putImageData(imageData, topX, topY);
1668
+ }
1669
+ function processImageDataRGBA(imageData, topX, topY, width, height, radius) {
1670
+ var pixels = imageData.data;
1671
+ var div = 2 * radius + 1;
1672
+ var widthMinus1 = width - 1;
1673
+ var heightMinus1 = height - 1;
1674
+ var radiusPlus1 = radius + 1;
1675
+ var sumFactor = radiusPlus1 * (radiusPlus1 + 1) / 2;
1676
+ var stackStart = new BlurStack();
1677
+ var stack = stackStart;
1678
+ var stackEnd;
1679
+ for (var i2 = 1; i2 < div; i2++) {
1680
+ stack = stack.next = new BlurStack();
1681
+ if (i2 === radiusPlus1) {
1682
+ stackEnd = stack;
1683
+ }
1684
+ }
1685
+ stack.next = stackStart;
1686
+ var stackIn = null, stackOut = null, yw = 0, yi = 0;
1687
+ var mulSum = mulTable[radius];
1688
+ var shgSum = shgTable[radius];
1689
+ for (var y2 = 0; y2 < height; y2++) {
1690
+ stack = stackStart;
1691
+ var pr = pixels[yi], pg = pixels[yi + 1], pb = pixels[yi + 2], pa = pixels[yi + 3];
1692
+ for (var _i = 0; _i < radiusPlus1; _i++) {
1693
+ stack.r = pr;
1694
+ stack.g = pg;
1695
+ stack.b = pb;
1696
+ stack.a = pa;
1697
+ stack = stack.next;
1698
+ }
1699
+ var rInSum = 0, gInSum = 0, bInSum = 0, aInSum = 0, rOutSum = radiusPlus1 * pr, gOutSum = radiusPlus1 * pg, bOutSum = radiusPlus1 * pb, aOutSum = radiusPlus1 * pa, rSum = sumFactor * pr, gSum = sumFactor * pg, bSum = sumFactor * pb, aSum = sumFactor * pa;
1700
+ for (var _i2 = 1; _i2 < radiusPlus1; _i2++) {
1701
+ var p2 = yi + ((widthMinus1 < _i2 ? widthMinus1 : _i2) << 2);
1702
+ var r2 = pixels[p2], g = pixels[p2 + 1], b = pixels[p2 + 2], a2 = pixels[p2 + 3];
1703
+ var rbs = radiusPlus1 - _i2;
1704
+ rSum += (stack.r = r2) * rbs;
1705
+ gSum += (stack.g = g) * rbs;
1706
+ bSum += (stack.b = b) * rbs;
1707
+ aSum += (stack.a = a2) * rbs;
1708
+ rInSum += r2;
1709
+ gInSum += g;
1710
+ bInSum += b;
1711
+ aInSum += a2;
1712
+ stack = stack.next;
1713
+ }
1714
+ stackIn = stackStart;
1715
+ stackOut = stackEnd;
1716
+ for (var x = 0; x < width; x++) {
1717
+ var paInitial = aSum * mulSum >> shgSum;
1718
+ pixels[yi + 3] = paInitial;
1719
+ if (paInitial !== 0) {
1720
+ var _a2 = 255 / paInitial;
1721
+ pixels[yi] = (rSum * mulSum >> shgSum) * _a2;
1722
+ pixels[yi + 1] = (gSum * mulSum >> shgSum) * _a2;
1723
+ pixels[yi + 2] = (bSum * mulSum >> shgSum) * _a2;
1724
+ } else {
1725
+ pixels[yi] = pixels[yi + 1] = pixels[yi + 2] = 0;
1726
+ }
1727
+ rSum -= rOutSum;
1728
+ gSum -= gOutSum;
1729
+ bSum -= bOutSum;
1730
+ aSum -= aOutSum;
1731
+ rOutSum -= stackIn.r;
1732
+ gOutSum -= stackIn.g;
1733
+ bOutSum -= stackIn.b;
1734
+ aOutSum -= stackIn.a;
1735
+ var _p = x + radius + 1;
1736
+ _p = yw + (_p < widthMinus1 ? _p : widthMinus1) << 2;
1737
+ rInSum += stackIn.r = pixels[_p];
1738
+ gInSum += stackIn.g = pixels[_p + 1];
1739
+ bInSum += stackIn.b = pixels[_p + 2];
1740
+ aInSum += stackIn.a = pixels[_p + 3];
1741
+ rSum += rInSum;
1742
+ gSum += gInSum;
1743
+ bSum += bInSum;
1744
+ aSum += aInSum;
1745
+ stackIn = stackIn.next;
1746
+ var _stackOut = stackOut, _r = _stackOut.r, _g = _stackOut.g, _b = _stackOut.b, _a = _stackOut.a;
1747
+ rOutSum += _r;
1748
+ gOutSum += _g;
1749
+ bOutSum += _b;
1750
+ aOutSum += _a;
1751
+ rInSum -= _r;
1752
+ gInSum -= _g;
1753
+ bInSum -= _b;
1754
+ aInSum -= _a;
1755
+ stackOut = stackOut.next;
1756
+ yi += 4;
1757
+ }
1758
+ yw += width;
1759
+ }
1760
+ for (var _x = 0; _x < width; _x++) {
1761
+ yi = _x << 2;
1762
+ var _pr = pixels[yi], _pg = pixels[yi + 1], _pb = pixels[yi + 2], _pa = pixels[yi + 3], _rOutSum = radiusPlus1 * _pr, _gOutSum = radiusPlus1 * _pg, _bOutSum = radiusPlus1 * _pb, _aOutSum = radiusPlus1 * _pa, _rSum = sumFactor * _pr, _gSum = sumFactor * _pg, _bSum = sumFactor * _pb, _aSum = sumFactor * _pa;
1763
+ stack = stackStart;
1764
+ for (var _i3 = 0; _i3 < radiusPlus1; _i3++) {
1765
+ stack.r = _pr;
1766
+ stack.g = _pg;
1767
+ stack.b = _pb;
1768
+ stack.a = _pa;
1769
+ stack = stack.next;
1770
+ }
1771
+ var yp = width;
1772
+ var _gInSum = 0, _bInSum = 0, _aInSum = 0, _rInSum = 0;
1773
+ for (var _i4 = 1; _i4 <= radius; _i4++) {
1774
+ yi = yp + _x << 2;
1775
+ var _rbs = radiusPlus1 - _i4;
1776
+ _rSum += (stack.r = _pr = pixels[yi]) * _rbs;
1777
+ _gSum += (stack.g = _pg = pixels[yi + 1]) * _rbs;
1778
+ _bSum += (stack.b = _pb = pixels[yi + 2]) * _rbs;
1779
+ _aSum += (stack.a = _pa = pixels[yi + 3]) * _rbs;
1780
+ _rInSum += _pr;
1781
+ _gInSum += _pg;
1782
+ _bInSum += _pb;
1783
+ _aInSum += _pa;
1784
+ stack = stack.next;
1785
+ if (_i4 < heightMinus1) {
1786
+ yp += width;
1787
+ }
1788
+ }
1789
+ yi = _x;
1790
+ stackIn = stackStart;
1791
+ stackOut = stackEnd;
1792
+ for (var _y = 0; _y < height; _y++) {
1793
+ var _p2 = yi << 2;
1794
+ pixels[_p2 + 3] = _pa = _aSum * mulSum >> shgSum;
1795
+ if (_pa > 0) {
1796
+ _pa = 255 / _pa;
1797
+ pixels[_p2] = (_rSum * mulSum >> shgSum) * _pa;
1798
+ pixels[_p2 + 1] = (_gSum * mulSum >> shgSum) * _pa;
1799
+ pixels[_p2 + 2] = (_bSum * mulSum >> shgSum) * _pa;
1800
+ } else {
1801
+ pixels[_p2] = pixels[_p2 + 1] = pixels[_p2 + 2] = 0;
1802
+ }
1803
+ _rSum -= _rOutSum;
1804
+ _gSum -= _gOutSum;
1805
+ _bSum -= _bOutSum;
1806
+ _aSum -= _aOutSum;
1807
+ _rOutSum -= stackIn.r;
1808
+ _gOutSum -= stackIn.g;
1809
+ _bOutSum -= stackIn.b;
1810
+ _aOutSum -= stackIn.a;
1811
+ _p2 = _x + ((_p2 = _y + radiusPlus1) < heightMinus1 ? _p2 : heightMinus1) * width << 2;
1812
+ _rSum += _rInSum += stackIn.r = pixels[_p2];
1813
+ _gSum += _gInSum += stackIn.g = pixels[_p2 + 1];
1814
+ _bSum += _bInSum += stackIn.b = pixels[_p2 + 2];
1815
+ _aSum += _aInSum += stackIn.a = pixels[_p2 + 3];
1816
+ stackIn = stackIn.next;
1817
+ _rOutSum += _pr = stackOut.r;
1818
+ _gOutSum += _pg = stackOut.g;
1819
+ _bOutSum += _pb = stackOut.b;
1820
+ _aOutSum += _pa = stackOut.a;
1821
+ _rInSum -= _pr;
1822
+ _gInSum -= _pg;
1823
+ _bInSum -= _pb;
1824
+ _aInSum -= _pa;
1825
+ stackOut = stackOut.next;
1826
+ yi += width;
1827
+ }
1828
+ }
1829
+ return imageData;
1830
+ }
1831
+ var BlurStack = function BlurStack2() {
1832
+ _classCallCheck(this, BlurStack2);
1833
+ this.r = 0;
1834
+ this.g = 0;
1835
+ this.b = 0;
1836
+ this.a = 0;
1837
+ this.next = null;
1838
+ };
11
1839
  function offscreen() {
12
1840
  var {
13
1841
  DOMParser: DOMParserFallback
@@ -123,35 +1951,35 @@ function getSelectorSpecificity(selector) {
123
1951
  return specificity.join("");
124
1952
  }
125
1953
  var PSEUDO_ZERO = 1e-8;
126
- function vectorMagnitude(v) {
127
- return Math.sqrt(Math.pow(v[0], 2) + Math.pow(v[1], 2));
1954
+ function vectorMagnitude(v2) {
1955
+ return Math.sqrt(Math.pow(v2[0], 2) + Math.pow(v2[1], 2));
128
1956
  }
129
- function vectorsRatio(u, v) {
130
- return (u[0] * v[0] + u[1] * v[1]) / (vectorMagnitude(u) * vectorMagnitude(v));
1957
+ function vectorsRatio(u2, v2) {
1958
+ return (u2[0] * v2[0] + u2[1] * v2[1]) / (vectorMagnitude(u2) * vectorMagnitude(v2));
131
1959
  }
132
- function vectorsAngle(u, v) {
133
- return (u[0] * v[1] < u[1] * v[0] ? -1 : 1) * Math.acos(vectorsRatio(u, v));
1960
+ function vectorsAngle(u2, v2) {
1961
+ return (u2[0] * v2[1] < u2[1] * v2[0] ? -1 : 1) * Math.acos(vectorsRatio(u2, v2));
134
1962
  }
135
- function CB1(t) {
136
- return t * t * t;
1963
+ function CB1(t2) {
1964
+ return t2 * t2 * t2;
137
1965
  }
138
- function CB2(t) {
139
- return 3 * t * t * (1 - t);
1966
+ function CB2(t2) {
1967
+ return 3 * t2 * t2 * (1 - t2);
140
1968
  }
141
- function CB3(t) {
142
- return 3 * t * (1 - t) * (1 - t);
1969
+ function CB3(t2) {
1970
+ return 3 * t2 * (1 - t2) * (1 - t2);
143
1971
  }
144
- function CB4(t) {
145
- return (1 - t) * (1 - t) * (1 - t);
1972
+ function CB4(t2) {
1973
+ return (1 - t2) * (1 - t2) * (1 - t2);
146
1974
  }
147
- function QB1(t) {
148
- return t * t;
1975
+ function QB1(t2) {
1976
+ return t2 * t2;
149
1977
  }
150
- function QB2(t) {
151
- return 2 * t * (1 - t);
1978
+ function QB2(t2) {
1979
+ return 2 * t2 * (1 - t2);
152
1980
  }
153
- function QB3(t) {
154
- return (1 - t) * (1 - t);
1981
+ function QB3(t2) {
1982
+ return (1 - t2) * (1 - t2);
155
1983
  }
156
1984
  class Property {
157
1985
  constructor(document2, name, value) {
@@ -223,11 +2051,11 @@ class Property {
223
2051
  var {
224
2052
  value
225
2053
  } = this;
226
- var n = parseFloat(value);
2054
+ var n2 = parseFloat(value);
227
2055
  if (this.isString(/%$/)) {
228
- n /= 100;
2056
+ n2 /= 100;
229
2057
  }
230
- return n;
2058
+ return n2;
231
2059
  }
232
2060
  getString(def) {
233
2061
  if (typeof def === "undefined" || this.hasValue()) {
@@ -298,11 +2126,11 @@ class Property {
298
2126
  case this.isString(/%$/):
299
2127
  return this.getNumber() * viewPort.computeSize(axis);
300
2128
  default: {
301
- var n = this.getNumber();
302
- if (processPercent && n < 1) {
303
- return n * viewPort.computeSize(axis);
2129
+ var n2 = this.getNumber();
2130
+ if (processPercent && n2 < 1) {
2131
+ return n2 * viewPort.computeSize(axis);
304
2132
  }
305
- return n;
2133
+ return n2;
306
2134
  }
307
2135
  }
308
2136
  }
@@ -371,8 +2199,8 @@ class Property {
371
2199
  var value = this.getColor();
372
2200
  var len = value.length;
373
2201
  var commas = 0;
374
- for (var i = 0; i < len; i++) {
375
- if (value[i] === ",") {
2202
+ for (var i2 = 0; i2 < len; i2++) {
2203
+ if (value[i2] === ",") {
376
2204
  commas++;
377
2205
  }
378
2206
  if (commas === 3) {
@@ -444,26 +2272,26 @@ class ViewPort {
444
2272
  }
445
2273
  }
446
2274
  class Point {
447
- constructor(x, y) {
2275
+ constructor(x, y2) {
448
2276
  this.x = x;
449
- this.y = y;
2277
+ this.y = y2;
450
2278
  }
451
2279
  static parse(point) {
452
2280
  var defaultValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
453
- var [x = defaultValue, y = defaultValue] = toNumbers(point);
454
- return new Point(x, y);
2281
+ var [x = defaultValue, y2 = defaultValue] = toNumbers(point);
2282
+ return new Point(x, y2);
455
2283
  }
456
2284
  static parseScale(scale) {
457
2285
  var defaultValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
458
- var [x = defaultValue, y = x] = toNumbers(scale);
459
- return new Point(x, y);
2286
+ var [x = defaultValue, y2 = x] = toNumbers(scale);
2287
+ return new Point(x, y2);
460
2288
  }
461
2289
  static parsePath(path) {
462
2290
  var points = toNumbers(path);
463
2291
  var len = points.length;
464
2292
  var pathPoints = [];
465
- for (var i = 0; i < len; i += 2) {
466
- pathPoints.push(new Point(points[i], points[i + 1]));
2293
+ for (var i2 = 0; i2 < len; i2 += 2) {
2294
+ pathPoints.push(new Point(points[i2], points[i2 + 1]));
467
2295
  }
468
2296
  return pathPoints;
469
2297
  }
@@ -473,10 +2301,10 @@ class Point {
473
2301
  applyTransform(transform) {
474
2302
  var {
475
2303
  x,
476
- y
2304
+ y: y2
477
2305
  } = this;
478
- var xp = x * transform[0] + y * transform[2] + transform[4];
479
- var yp = x * transform[1] + y * transform[3] + transform[5];
2306
+ var xp = x * transform[0] + y2 * transform[2] + transform[4];
2307
+ var yp = x * transform[1] + y2 * transform[3] + transform[5];
480
2308
  this.x = xp;
481
2309
  this.y = yp;
482
2310
  }
@@ -534,11 +2362,11 @@ class Mouse {
534
2362
  if (style) {
535
2363
  style.cursor = "";
536
2364
  }
537
- events.forEach((_ref, i) => {
2365
+ events.forEach((_ref, i2) => {
538
2366
  var {
539
2367
  run
540
2368
  } = _ref;
541
- var element = eventElements[i];
2369
+ var element = eventElements[i2];
542
2370
  while (element) {
543
2371
  run(element);
544
2372
  element = element.parent;
@@ -555,13 +2383,13 @@ class Mouse {
555
2383
  events,
556
2384
  eventElements
557
2385
  } = this;
558
- events.forEach((_ref2, i) => {
2386
+ events.forEach((_ref2, i2) => {
559
2387
  var {
560
2388
  x,
561
- y
2389
+ y: y2
562
2390
  } = _ref2;
563
- if (!eventElements[i] && ctx.isPointInPath && ctx.isPointInPath(x, y)) {
564
- eventElements[i] = element;
2391
+ if (!eventElements[i2] && ctx.isPointInPath && ctx.isPointInPath(x, y2)) {
2392
+ eventElements[i2] = element;
565
2393
  }
566
2394
  });
567
2395
  }
@@ -573,22 +2401,22 @@ class Mouse {
573
2401
  events,
574
2402
  eventElements
575
2403
  } = this;
576
- events.forEach((_ref3, i) => {
2404
+ events.forEach((_ref3, i2) => {
577
2405
  var {
578
2406
  x,
579
- y
2407
+ y: y2
580
2408
  } = _ref3;
581
- if (!eventElements[i] && boundingBox.isPointInBox(x, y)) {
582
- eventElements[i] = element;
2409
+ if (!eventElements[i2] && boundingBox.isPointInBox(x, y2)) {
2410
+ eventElements[i2] = element;
583
2411
  }
584
2412
  });
585
2413
  }
586
- mapXY(x, y) {
2414
+ mapXY(x, y2) {
587
2415
  var {
588
2416
  window: window2,
589
2417
  ctx
590
2418
  } = this.screen;
591
- var point = new Point(x, y);
2419
+ var point = new Point(x, y2);
592
2420
  var element = ctx.canvas;
593
2421
  while (element) {
594
2422
  point.x -= element.offsetLeft;
@@ -606,12 +2434,12 @@ class Mouse {
606
2434
  onClick(event) {
607
2435
  var {
608
2436
  x,
609
- y
2437
+ y: y2
610
2438
  } = this.mapXY(event.clientX, event.clientY);
611
2439
  this.events.push({
612
2440
  type: "onclick",
613
2441
  x,
614
- y,
2442
+ y: y2,
615
2443
  run(eventTarget) {
616
2444
  if (eventTarget.onClick) {
617
2445
  eventTarget.onClick();
@@ -622,12 +2450,12 @@ class Mouse {
622
2450
  onMouseMove(event) {
623
2451
  var {
624
2452
  x,
625
- y
2453
+ y: y2
626
2454
  } = this.mapXY(event.clientX, event.clientY);
627
2455
  this.events.push({
628
2456
  type: "onmousemove",
629
2457
  x,
630
- y,
2458
+ y: y2,
631
2459
  run(eventTarget) {
632
2460
  if (eventTarget.onMouseMove) {
633
2461
  eventTarget.onMouseMove();
@@ -800,14 +2628,14 @@ class Screen {
800
2628
  if (!enableRedraw) {
801
2629
  return;
802
2630
  }
803
- var now = Date.now();
804
- var then = now;
2631
+ var now2 = Date.now();
2632
+ var then = now2;
805
2633
  var delta = 0;
806
2634
  var tick = () => {
807
- now = Date.now();
808
- delta = now - then;
2635
+ now2 = Date.now();
2636
+ delta = now2 - then;
809
2637
  if (delta >= frameDuration) {
810
- then = now - delta % frameDuration;
2638
+ then = now2 - delta % frameDuration;
811
2639
  if (this.shouldUpdate(ignoreAnimation, forceRedraw)) {
812
2640
  this.render(element, ignoreDimensions, ignoreClear, scaleWidth, scaleHeight, offsetX, offsetY);
813
2641
  mouse.runEvents();
@@ -989,23 +2817,23 @@ class Translate {
989
2817
  apply(ctx) {
990
2818
  var {
991
2819
  x,
992
- y
2820
+ y: y2
993
2821
  } = this.point;
994
- ctx.translate(x || 0, y || 0);
2822
+ ctx.translate(x || 0, y2 || 0);
995
2823
  }
996
2824
  unapply(ctx) {
997
2825
  var {
998
2826
  x,
999
- y
2827
+ y: y2
1000
2828
  } = this.point;
1001
- ctx.translate(-1 * x || 0, -1 * y || 0);
2829
+ ctx.translate(-1 * x || 0, -1 * y2 || 0);
1002
2830
  }
1003
2831
  applyToPoint(point) {
1004
2832
  var {
1005
2833
  x,
1006
- y
2834
+ y: y2
1007
2835
  } = this.point;
1008
- point.applyTransform([1, 0, 0, 1, x || 0, y || 0]);
2836
+ point.applyTransform([1, 0, 0, 1, x || 0, y2 || 0]);
1009
2837
  }
1010
2838
  }
1011
2839
  class Rotate {
@@ -1096,7 +2924,7 @@ class Scale {
1096
2924
  var {
1097
2925
  scale: {
1098
2926
  x,
1099
- y
2927
+ y: y2
1100
2928
  },
1101
2929
  originX,
1102
2930
  originY
@@ -1104,14 +2932,14 @@ class Scale {
1104
2932
  var tx = originX.getPixels("x");
1105
2933
  var ty = originY.getPixels("y");
1106
2934
  ctx.translate(tx, ty);
1107
- ctx.scale(x, y || x);
2935
+ ctx.scale(x, y2 || x);
1108
2936
  ctx.translate(-tx, -ty);
1109
2937
  }
1110
2938
  unapply(ctx) {
1111
2939
  var {
1112
2940
  scale: {
1113
2941
  x,
1114
- y
2942
+ y: y2
1115
2943
  },
1116
2944
  originX,
1117
2945
  originY
@@ -1119,15 +2947,15 @@ class Scale {
1119
2947
  var tx = originX.getPixels("x");
1120
2948
  var ty = originY.getPixels("y");
1121
2949
  ctx.translate(tx, ty);
1122
- ctx.scale(1 / x, 1 / y || x);
2950
+ ctx.scale(1 / x, 1 / y2 || x);
1123
2951
  ctx.translate(-tx, -ty);
1124
2952
  }
1125
2953
  applyToPoint(point) {
1126
2954
  var {
1127
2955
  x,
1128
- y
2956
+ y: y2
1129
2957
  } = this.scale;
1130
- point.applyTransform([x || 0, 0, 0, y || 0, 0, 0]);
2958
+ point.applyTransform([x || 0, 0, 0, y2 || 0, 0, 0]);
1131
2959
  }
1132
2960
  }
1133
2961
  class Matrix {
@@ -1158,20 +2986,20 @@ class Matrix {
1158
2986
  originY,
1159
2987
  matrix
1160
2988
  } = this;
1161
- var a = matrix[0];
2989
+ var a2 = matrix[0];
1162
2990
  var b = matrix[2];
1163
2991
  var c2 = matrix[4];
1164
2992
  var d = matrix[1];
1165
- var e = matrix[3];
1166
- var f = matrix[5];
2993
+ var e2 = matrix[3];
2994
+ var f2 = matrix[5];
1167
2995
  var g = 0;
1168
- var h = 0;
1169
- var i = 1;
1170
- var det = 1 / (a * (e * i - f * h) - b * (d * i - f * g) + c2 * (d * h - e * g));
2996
+ var h2 = 0;
2997
+ var i2 = 1;
2998
+ var det = 1 / (a2 * (e2 * i2 - f2 * h2) - b * (d * i2 - f2 * g) + c2 * (d * h2 - e2 * g));
1171
2999
  var tx = originX.getPixels("x");
1172
3000
  var ty = originY.getPixels("y");
1173
3001
  ctx.translate(tx, ty);
1174
- ctx.transform(det * (e * i - f * h), det * (f * g - d * i), det * (c2 * h - b * i), det * (a * i - c2 * g), det * (b * f - c2 * e), det * (c2 * d - a * f));
3002
+ ctx.transform(det * (e2 * i2 - f2 * h2), det * (f2 * g - d * i2), det * (c2 * h2 - b * i2), det * (a2 * i2 - c2 * g), det * (b * f2 - c2 * e2), det * (c2 * d - a2 * f2));
1175
3003
  ctx.translate(-tx, -ty);
1176
3004
  }
1177
3005
  applyToPoint(point) {
@@ -1237,8 +3065,8 @@ class Transform {
1237
3065
  transforms
1238
3066
  } = this;
1239
3067
  var len = transforms.length;
1240
- for (var i = 0; i < len; i++) {
1241
- transforms[i].apply(ctx);
3068
+ for (var i2 = 0; i2 < len; i2++) {
3069
+ transforms[i2].apply(ctx);
1242
3070
  }
1243
3071
  }
1244
3072
  unapply(ctx) {
@@ -1246,8 +3074,8 @@ class Transform {
1246
3074
  transforms
1247
3075
  } = this;
1248
3076
  var len = transforms.length;
1249
- for (var i = len - 1; i >= 0; i--) {
1250
- transforms[i].unapply(ctx);
3077
+ for (var i2 = len - 1; i2 >= 0; i2--) {
3078
+ transforms[i2].unapply(ctx);
1251
3079
  }
1252
3080
  }
1253
3081
  applyToPoint(point) {
@@ -1255,8 +3083,8 @@ class Transform {
1255
3083
  transforms
1256
3084
  } = this;
1257
3085
  var len = transforms.length;
1258
- for (var i = 0; i < len; i++) {
1259
- transforms[i].applyToPoint(point);
3086
+ for (var i2 = 0; i2 < len; i2++) {
3087
+ transforms[i2].applyToPoint(point);
1260
3088
  }
1261
3089
  }
1262
3090
  }
@@ -1637,7 +3465,7 @@ class BoundingBox {
1637
3465
  get height() {
1638
3466
  return this.y2 - this.y1;
1639
3467
  }
1640
- addPoint(x, y) {
3468
+ addPoint(x, y2) {
1641
3469
  if (typeof x !== "undefined") {
1642
3470
  if (isNaN(this.x1) || isNaN(this.x2)) {
1643
3471
  this.x1 = x;
@@ -1650,24 +3478,24 @@ class BoundingBox {
1650
3478
  this.x2 = x;
1651
3479
  }
1652
3480
  }
1653
- if (typeof y !== "undefined") {
3481
+ if (typeof y2 !== "undefined") {
1654
3482
  if (isNaN(this.y1) || isNaN(this.y2)) {
1655
- this.y1 = y;
1656
- this.y2 = y;
3483
+ this.y1 = y2;
3484
+ this.y2 = y2;
1657
3485
  }
1658
- if (y < this.y1) {
1659
- this.y1 = y;
3486
+ if (y2 < this.y1) {
3487
+ this.y1 = y2;
1660
3488
  }
1661
- if (y > this.y2) {
1662
- this.y2 = y;
3489
+ if (y2 > this.y2) {
3490
+ this.y2 = y2;
1663
3491
  }
1664
3492
  }
1665
3493
  }
1666
3494
  addX(x) {
1667
3495
  this.addPoint(x, null);
1668
3496
  }
1669
- addY(y) {
1670
- this.addPoint(null, y);
3497
+ addY(y2) {
3498
+ this.addPoint(null, y2);
1671
3499
  }
1672
3500
  addBoundingBox(boundingBox) {
1673
3501
  if (!boundingBox) {
@@ -1682,32 +3510,32 @@ class BoundingBox {
1682
3510
  this.addPoint(x1, y1);
1683
3511
  this.addPoint(x2, y2);
1684
3512
  }
1685
- sumCubic(t, p0, p1, p2, p3) {
1686
- return Math.pow(1 - t, 3) * p0 + 3 * Math.pow(1 - t, 2) * t * p1 + 3 * (1 - t) * Math.pow(t, 2) * p2 + Math.pow(t, 3) * p3;
3513
+ sumCubic(t2, p0, p1, p2, p3) {
3514
+ return Math.pow(1 - t2, 3) * p0 + 3 * Math.pow(1 - t2, 2) * t2 * p1 + 3 * (1 - t2) * Math.pow(t2, 2) * p2 + Math.pow(t2, 3) * p3;
1687
3515
  }
1688
3516
  bezierCurveAdd(forX, p0, p1, p2, p3) {
1689
3517
  var b = 6 * p0 - 12 * p1 + 6 * p2;
1690
- var a = -3 * p0 + 9 * p1 - 9 * p2 + 3 * p3;
3518
+ var a2 = -3 * p0 + 9 * p1 - 9 * p2 + 3 * p3;
1691
3519
  var c2 = 3 * p1 - 3 * p0;
1692
- if (a === 0) {
3520
+ if (a2 === 0) {
1693
3521
  if (b === 0) {
1694
3522
  return;
1695
3523
  }
1696
- var t = -c2 / b;
1697
- if (0 < t && t < 1) {
3524
+ var t2 = -c2 / b;
3525
+ if (0 < t2 && t2 < 1) {
1698
3526
  if (forX) {
1699
- this.addX(this.sumCubic(t, p0, p1, p2, p3));
3527
+ this.addX(this.sumCubic(t2, p0, p1, p2, p3));
1700
3528
  } else {
1701
- this.addY(this.sumCubic(t, p0, p1, p2, p3));
3529
+ this.addY(this.sumCubic(t2, p0, p1, p2, p3));
1702
3530
  }
1703
3531
  }
1704
3532
  return;
1705
3533
  }
1706
- var b2ac = Math.pow(b, 2) - 4 * c2 * a;
3534
+ var b2ac = Math.pow(b, 2) - 4 * c2 * a2;
1707
3535
  if (b2ac < 0) {
1708
3536
  return;
1709
3537
  }
1710
- var t1 = (-b + Math.sqrt(b2ac)) / (2 * a);
3538
+ var t1 = (-b + Math.sqrt(b2ac)) / (2 * a2);
1711
3539
  if (0 < t1 && t1 < 1) {
1712
3540
  if (forX) {
1713
3541
  this.addX(this.sumCubic(t1, p0, p1, p2, p3));
@@ -1715,12 +3543,12 @@ class BoundingBox {
1715
3543
  this.addY(this.sumCubic(t1, p0, p1, p2, p3));
1716
3544
  }
1717
3545
  }
1718
- var t2 = (-b - Math.sqrt(b2ac)) / (2 * a);
1719
- if (0 < t2 && t2 < 1) {
3546
+ var t22 = (-b - Math.sqrt(b2ac)) / (2 * a2);
3547
+ if (0 < t22 && t22 < 1) {
1720
3548
  if (forX) {
1721
- this.addX(this.sumCubic(t2, p0, p1, p2, p3));
3549
+ this.addX(this.sumCubic(t22, p0, p1, p2, p3));
1722
3550
  } else {
1723
- this.addY(this.sumCubic(t2, p0, p1, p2, p3));
3551
+ this.addY(this.sumCubic(t22, p0, p1, p2, p3));
1724
3552
  }
1725
3553
  }
1726
3554
  }
@@ -1737,14 +3565,14 @@ class BoundingBox {
1737
3565
  var cp2y = cp1y + 1 / 3 * (p2y - p0y);
1738
3566
  this.addBezierCurve(p0x, p0y, cp1x, cp2x, cp1y, cp2y, p2x, p2y);
1739
3567
  }
1740
- isPointInBox(x, y) {
3568
+ isPointInBox(x, y2) {
1741
3569
  var {
1742
3570
  x1,
1743
3571
  y1,
1744
3572
  x2,
1745
- y2
3573
+ y2: y22
1746
3574
  } = this;
1747
- return x1 <= x && x <= x2 && y1 <= y && y <= y2;
3575
+ return x1 <= x && x <= x2 && y1 <= y2 && y2 <= y22;
1748
3576
  }
1749
3577
  }
1750
3578
  class PathParser extends _ {
@@ -1772,10 +3600,10 @@ class PathParser extends _ {
1772
3600
  }
1773
3601
  isEnd() {
1774
3602
  var {
1775
- i,
3603
+ i: i2,
1776
3604
  commands
1777
3605
  } = this;
1778
- return i >= commands.length - 1;
3606
+ return i2 >= commands.length - 1;
1779
3607
  }
1780
3608
  next() {
1781
3609
  var command = this.commands[++this.i];
@@ -1821,10 +3649,10 @@ class PathParser extends _ {
1821
3649
  if (this.command.relative) {
1822
3650
  var {
1823
3651
  x,
1824
- y
3652
+ y: y2
1825
3653
  } = this.current;
1826
3654
  point.x += x;
1827
- point.y += y;
3655
+ point.y += y2;
1828
3656
  }
1829
3657
  return point;
1830
3658
  }
@@ -1850,11 +3678,11 @@ class PathParser extends _ {
1850
3678
  angles
1851
3679
  } = this;
1852
3680
  var len = angles.length;
1853
- for (var i = 0; i < len; i++) {
1854
- if (!angles[i]) {
1855
- for (var j = i + 1; j < len; j++) {
3681
+ for (var i2 = 0; i2 < len; i2++) {
3682
+ if (!angles[i2]) {
3683
+ for (var j = i2 + 1; j < len; j++) {
1856
3684
  if (angles[j]) {
1857
- angles[i] = angles[j];
3685
+ angles[i2] = angles[j];
1858
3686
  break;
1859
3687
  }
1860
3688
  }
@@ -2054,7 +3882,7 @@ class PathElement extends RenderedElement {
2054
3882
  } = this;
2055
3883
  var points = pathParser.getMarkerPoints();
2056
3884
  var angles = pathParser.getMarkerAngles();
2057
- var markers = points.map((point, i) => [point, angles[i]]);
3885
+ var markers = points.map((point, i2) => [point, angles[i2]]);
2058
3886
  return markers;
2059
3887
  }
2060
3888
  renderChildren(ctx) {
@@ -2091,8 +3919,8 @@ class PathElement extends RenderedElement {
2091
3919
  }
2092
3920
  if (markerMidStyleProp.isUrlDefinition()) {
2093
3921
  var _marker = markerMidStyleProp.getDefinition();
2094
- for (var i = 1; i < markersLastIndex; i++) {
2095
- var [_point, _angle] = markers[i];
3922
+ for (var i2 = 1; i2 < markersLastIndex; i2++) {
3923
+ var [_point, _angle] = markers[i2];
2096
3924
  _marker.render(ctx, _point, _angle);
2097
3925
  }
2098
3926
  }
@@ -2119,12 +3947,12 @@ class PathElement extends RenderedElement {
2119
3947
  } = PathElement.pathM(pathParser);
2120
3948
  var {
2121
3949
  x,
2122
- y
3950
+ y: y2
2123
3951
  } = point;
2124
3952
  pathParser.addMarker(point);
2125
- boundingBox.addPoint(x, y);
3953
+ boundingBox.addPoint(x, y2);
2126
3954
  if (ctx) {
2127
- ctx.moveTo(x, y);
3955
+ ctx.moveTo(x, y2);
2128
3956
  }
2129
3957
  }
2130
3958
  static pathL(pathParser) {
@@ -2147,12 +3975,12 @@ class PathElement extends RenderedElement {
2147
3975
  } = PathElement.pathL(pathParser);
2148
3976
  var {
2149
3977
  x,
2150
- y
3978
+ y: y2
2151
3979
  } = point;
2152
3980
  pathParser.addMarker(point, current);
2153
- boundingBox.addPoint(x, y);
3981
+ boundingBox.addPoint(x, y2);
2154
3982
  if (ctx) {
2155
- ctx.lineTo(x, y);
3983
+ ctx.lineTo(x, y2);
2156
3984
  }
2157
3985
  }
2158
3986
  static pathH(pathParser) {
@@ -2177,12 +4005,12 @@ class PathElement extends RenderedElement {
2177
4005
  } = PathElement.pathH(pathParser);
2178
4006
  var {
2179
4007
  x,
2180
- y
4008
+ y: y2
2181
4009
  } = point;
2182
4010
  pathParser.addMarker(point, current);
2183
- boundingBox.addPoint(x, y);
4011
+ boundingBox.addPoint(x, y2);
2184
4012
  if (ctx) {
2185
- ctx.lineTo(x, y);
4013
+ ctx.lineTo(x, y2);
2186
4014
  }
2187
4015
  }
2188
4016
  static pathV(pathParser) {
@@ -2207,12 +4035,12 @@ class PathElement extends RenderedElement {
2207
4035
  } = PathElement.pathV(pathParser);
2208
4036
  var {
2209
4037
  x,
2210
- y
4038
+ y: y2
2211
4039
  } = point;
2212
4040
  pathParser.addMarker(point, current);
2213
- boundingBox.addPoint(x, y);
4041
+ boundingBox.addPoint(x, y2);
2214
4042
  if (ctx) {
2215
- ctx.lineTo(x, y);
4043
+ ctx.lineTo(x, y2);
2216
4044
  }
2217
4045
  }
2218
4046
  static pathC(pathParser) {
@@ -2345,25 +4173,25 @@ class PathElement extends RenderedElement {
2345
4173
  var xAxisRotation = xRot * (Math.PI / 180);
2346
4174
  var currentPoint = pathParser.getAsCurrentPoint();
2347
4175
  var currp = new Point(Math.cos(xAxisRotation) * (current.x - currentPoint.x) / 2 + Math.sin(xAxisRotation) * (current.y - currentPoint.y) / 2, -Math.sin(xAxisRotation) * (current.x - currentPoint.x) / 2 + Math.cos(xAxisRotation) * (current.y - currentPoint.y) / 2);
2348
- var l = Math.pow(currp.x, 2) / Math.pow(rX, 2) + Math.pow(currp.y, 2) / Math.pow(rY, 2);
2349
- if (l > 1) {
2350
- rX *= Math.sqrt(l);
2351
- rY *= Math.sqrt(l);
4176
+ var l2 = Math.pow(currp.x, 2) / Math.pow(rX, 2) + Math.pow(currp.y, 2) / Math.pow(rY, 2);
4177
+ if (l2 > 1) {
4178
+ rX *= Math.sqrt(l2);
4179
+ rY *= Math.sqrt(l2);
2352
4180
  }
2353
- var s = (lArcFlag === sweepFlag ? -1 : 1) * Math.sqrt((Math.pow(rX, 2) * Math.pow(rY, 2) - Math.pow(rX, 2) * Math.pow(currp.y, 2) - Math.pow(rY, 2) * Math.pow(currp.x, 2)) / (Math.pow(rX, 2) * Math.pow(currp.y, 2) + Math.pow(rY, 2) * Math.pow(currp.x, 2)));
2354
- if (isNaN(s)) {
2355
- s = 0;
4181
+ var s2 = (lArcFlag === sweepFlag ? -1 : 1) * Math.sqrt((Math.pow(rX, 2) * Math.pow(rY, 2) - Math.pow(rX, 2) * Math.pow(currp.y, 2) - Math.pow(rY, 2) * Math.pow(currp.x, 2)) / (Math.pow(rX, 2) * Math.pow(currp.y, 2) + Math.pow(rY, 2) * Math.pow(currp.x, 2)));
4182
+ if (isNaN(s2)) {
4183
+ s2 = 0;
2356
4184
  }
2357
- var cpp = new Point(s * rX * currp.y / rY, s * -rY * currp.x / rX);
4185
+ var cpp = new Point(s2 * rX * currp.y / rY, s2 * -rY * currp.x / rX);
2358
4186
  var centp = new Point((current.x + currentPoint.x) / 2 + Math.cos(xAxisRotation) * cpp.x - Math.sin(xAxisRotation) * cpp.y, (current.y + currentPoint.y) / 2 + Math.sin(xAxisRotation) * cpp.x + Math.cos(xAxisRotation) * cpp.y);
2359
4187
  var a1 = vectorsAngle([1, 0], [(currp.x - cpp.x) / rX, (currp.y - cpp.y) / rY]);
2360
- var u = [(currp.x - cpp.x) / rX, (currp.y - cpp.y) / rY];
2361
- var v = [(-currp.x - cpp.x) / rX, (-currp.y - cpp.y) / rY];
2362
- var ad = vectorsAngle(u, v);
2363
- if (vectorsRatio(u, v) <= -1) {
4188
+ var u2 = [(currp.x - cpp.x) / rX, (currp.y - cpp.y) / rY];
4189
+ var v2 = [(-currp.x - cpp.x) / rX, (-currp.y - cpp.y) / rY];
4190
+ var ad = vectorsAngle(u2, v2);
4191
+ if (vectorsRatio(u2, v2) <= -1) {
2364
4192
  ad = Math.PI;
2365
4193
  }
2366
- if (vectorsRatio(u, v) >= 1) {
4194
+ if (vectorsRatio(u2, v2) >= 1) {
2367
4195
  ad = 0;
2368
4196
  }
2369
4197
  return {
@@ -2398,13 +4226,13 @@ class PathElement extends RenderedElement {
2398
4226
  pathParser.addMarkerAngle(currentPoint, ah - dir * Math.PI);
2399
4227
  boundingBox.addPoint(currentPoint.x, currentPoint.y);
2400
4228
  if (ctx && !isNaN(a1) && !isNaN(ad)) {
2401
- var r = rX > rY ? rX : rY;
4229
+ var r2 = rX > rY ? rX : rY;
2402
4230
  var sx = rX > rY ? 1 : rX / rY;
2403
4231
  var sy = rX > rY ? rY / rX : 1;
2404
4232
  ctx.translate(centp.x, centp.y);
2405
4233
  ctx.rotate(xAxisRotation);
2406
4234
  ctx.scale(sx, sy);
2407
- ctx.arc(0, 0, r, a1, a1 + ad, Boolean(1 - sweepFlag));
4235
+ ctx.arc(0, 0, r2, a1, a1 + ad, Boolean(1 - sweepFlag));
2408
4236
  ctx.scale(1 / sx, 1 / sy);
2409
4237
  ctx.rotate(-xAxisRotation);
2410
4238
  ctx.translate(-centp.x, -centp.y);
@@ -2462,8 +4290,8 @@ class TextElement extends RenderedElement {
2462
4290
  this.initializeCoordinates();
2463
4291
  this.adjustChildCoordinatesRecursive(ctx);
2464
4292
  var boundingBox = null;
2465
- this.children.forEach((_2, i) => {
2466
- var childBoundingBox = this.getChildBoundingBox(ctx, this, this, i);
4293
+ this.children.forEach((_2, i2) => {
4294
+ var childBoundingBox = this.getChildBoundingBox(ctx, this, this, i2);
2467
4295
  if (!boundingBox) {
2468
4296
  boundingBox = childBoundingBox;
2469
4297
  } else {
@@ -2485,21 +4313,21 @@ class TextElement extends RenderedElement {
2485
4313
  var fontSize = this.getFontSize();
2486
4314
  return new BoundingBox(this.x, this.y - fontSize, this.x + this.measureText(ctx), this.y);
2487
4315
  }
2488
- getGlyph(font, text, i) {
2489
- var char = text[i];
4316
+ getGlyph(font, text, i2) {
4317
+ var char = text[i2];
2490
4318
  var glyph = null;
2491
4319
  if (font.isArabic) {
2492
4320
  var len = text.length;
2493
- var prevChar = text[i - 1];
2494
- var nextChar = text[i + 1];
4321
+ var prevChar = text[i2 - 1];
4322
+ var nextChar = text[i2 + 1];
2495
4323
  var arabicForm = "isolated";
2496
- if ((i === 0 || prevChar === " ") && i < len - 1 && nextChar !== " ") {
4324
+ if ((i2 === 0 || prevChar === " ") && i2 < len - 1 && nextChar !== " ") {
2497
4325
  arabicForm = "terminal";
2498
4326
  }
2499
- if (i > 0 && prevChar !== " " && i < len - 1 && nextChar !== " ") {
4327
+ if (i2 > 0 && prevChar !== " " && i2 < len - 1 && nextChar !== " ") {
2500
4328
  arabicForm = "medial";
2501
4329
  }
2502
- if (i > 0 && prevChar !== " " && (i === len - 1 || nextChar === " ")) {
4330
+ if (i2 > 0 && prevChar !== " " && (i2 === len - 1 || nextChar === " ")) {
2503
4331
  arabicForm = "initial";
2504
4332
  }
2505
4333
  if (typeof font.glyphs[char] !== "undefined") {
@@ -2540,8 +4368,8 @@ class TextElement extends RenderedElement {
2540
4368
  }
2541
4369
  this.initializeCoordinates();
2542
4370
  this.adjustChildCoordinatesRecursive(ctx);
2543
- this.children.forEach((_2, i) => {
2544
- this.renderChild(ctx, this, this, i);
4371
+ this.children.forEach((_2, i2) => {
4372
+ this.renderChild(ctx, this, this, i2);
2545
4373
  });
2546
4374
  var {
2547
4375
  mouse
@@ -2568,8 +4396,8 @@ class TextElement extends RenderedElement {
2568
4396
  var text = customFont.isRTL ? renderText.split("").reverse().join("") : renderText;
2569
4397
  var dx = toNumbers(parent.getAttribute("dx").getString());
2570
4398
  var len = text.length;
2571
- for (var i = 0; i < len; i++) {
2572
- var glyph = this.getGlyph(customFont, text, i);
4399
+ for (var i2 = 0; i2 < len; i2++) {
4400
+ var glyph = this.getGlyph(customFont, text, i2);
2573
4401
  ctx.translate(this.x, this.y);
2574
4402
  ctx.scale(scale, -scale);
2575
4403
  var lw = ctx.lineWidth;
@@ -2585,21 +4413,21 @@ class TextElement extends RenderedElement {
2585
4413
  ctx.scale(1 / scale, -1 / scale);
2586
4414
  ctx.translate(-this.x, -this.y);
2587
4415
  this.x += fontSize * (glyph.horizAdvX || customFont.horizAdvX) / unitsPerEm;
2588
- if (typeof dx[i] !== "undefined" && !isNaN(dx[i])) {
2589
- this.x += dx[i];
4416
+ if (typeof dx[i2] !== "undefined" && !isNaN(dx[i2])) {
4417
+ this.x += dx[i2];
2590
4418
  }
2591
4419
  }
2592
4420
  return;
2593
4421
  }
2594
4422
  var {
2595
4423
  x,
2596
- y
4424
+ y: y2
2597
4425
  } = this;
2598
4426
  if (ctx.fillStyle) {
2599
- ctx.fillText(renderText, x, y);
4427
+ ctx.fillText(renderText, x, y2);
2600
4428
  }
2601
4429
  if (ctx.strokeStyle) {
2602
- ctx.strokeText(renderText, x, y);
4430
+ ctx.strokeText(renderText, x, y2);
2603
4431
  }
2604
4432
  }
2605
4433
  applyAnchoring() {
@@ -2617,31 +4445,31 @@ class TextElement extends RenderedElement {
2617
4445
  } else {
2618
4446
  shift = firstElement.x - (this.minX + this.maxX) / 2;
2619
4447
  }
2620
- for (var i = this.textChunkStart; i < this.leafTexts.length; i++) {
2621
- this.leafTexts[i].x += shift;
4448
+ for (var i2 = this.textChunkStart; i2 < this.leafTexts.length; i2++) {
4449
+ this.leafTexts[i2].x += shift;
2622
4450
  }
2623
4451
  this.minX = Number.POSITIVE_INFINITY;
2624
4452
  this.maxX = Number.NEGATIVE_INFINITY;
2625
4453
  this.textChunkStart = this.leafTexts.length;
2626
4454
  }
2627
4455
  adjustChildCoordinatesRecursive(ctx) {
2628
- this.children.forEach((_2, i) => {
2629
- this.adjustChildCoordinatesRecursiveCore(ctx, this, this, i);
4456
+ this.children.forEach((_2, i2) => {
4457
+ this.adjustChildCoordinatesRecursiveCore(ctx, this, this, i2);
2630
4458
  });
2631
4459
  this.applyAnchoring();
2632
4460
  }
2633
- adjustChildCoordinatesRecursiveCore(ctx, textParent, parent, i) {
2634
- var child = parent.children[i];
4461
+ adjustChildCoordinatesRecursiveCore(ctx, textParent, parent, i2) {
4462
+ var child = parent.children[i2];
2635
4463
  if (child.children.length > 0) {
2636
- child.children.forEach((_2, i2) => {
2637
- textParent.adjustChildCoordinatesRecursiveCore(ctx, textParent, child, i2);
4464
+ child.children.forEach((_2, i3) => {
4465
+ textParent.adjustChildCoordinatesRecursiveCore(ctx, textParent, child, i3);
2638
4466
  });
2639
4467
  } else {
2640
- this.adjustChildCoordinates(ctx, textParent, parent, i);
4468
+ this.adjustChildCoordinates(ctx, textParent, parent, i2);
2641
4469
  }
2642
4470
  }
2643
- adjustChildCoordinates(ctx, textParent, parent, i) {
2644
- var child = parent.children[i];
4471
+ adjustChildCoordinates(ctx, textParent, parent, i2) {
4472
+ var child = parent.children[i2];
2645
4473
  if (typeof child.measureText !== "function") {
2646
4474
  return child;
2647
4475
  }
@@ -2653,7 +4481,7 @@ class TextElement extends RenderedElement {
2653
4481
  var dyAttr = child.getAttribute("dy");
2654
4482
  var customFont = child.getStyle("font-family").getDefinition();
2655
4483
  var isRTL = Boolean(customFont) && customFont.isRTL;
2656
- if (i === 0) {
4484
+ if (i2 === 0) {
2657
4485
  if (!xAttr.hasValue()) {
2658
4486
  xAttr.setValue(child.getInheritedAttribute("x"));
2659
4487
  }
@@ -2706,8 +4534,8 @@ class TextElement extends RenderedElement {
2706
4534
  ctx.restore();
2707
4535
  return child;
2708
4536
  }
2709
- getChildBoundingBox(ctx, textParent, parent, i) {
2710
- var child = parent.children[i];
4537
+ getChildBoundingBox(ctx, textParent, parent, i2) {
4538
+ var child = parent.children[i2];
2711
4539
  if (typeof child.getBoundingBox !== "function") {
2712
4540
  return null;
2713
4541
  }
@@ -2715,17 +4543,17 @@ class TextElement extends RenderedElement {
2715
4543
  if (!boundingBox) {
2716
4544
  return null;
2717
4545
  }
2718
- child.children.forEach((_2, i2) => {
2719
- var childBoundingBox = textParent.getChildBoundingBox(ctx, textParent, child, i2);
4546
+ child.children.forEach((_2, i3) => {
4547
+ var childBoundingBox = textParent.getChildBoundingBox(ctx, textParent, child, i3);
2720
4548
  boundingBox.addBoundingBox(childBoundingBox);
2721
4549
  });
2722
4550
  return boundingBox;
2723
4551
  }
2724
- renderChild(ctx, textParent, parent, i) {
2725
- var child = parent.children[i];
4552
+ renderChild(ctx, textParent, parent, i2) {
4553
+ var child = parent.children[i2];
2726
4554
  child.render(ctx);
2727
- child.children.forEach((_2, i2) => {
2728
- textParent.renderChild(ctx, textParent, child, i2);
4555
+ child.children.forEach((_2, i3) => {
4556
+ textParent.renderChild(ctx, textParent, child, i3);
2729
4557
  });
2730
4558
  }
2731
4559
  measureText(ctx) {
@@ -2754,11 +4582,11 @@ class TextElement extends RenderedElement {
2754
4582
  var dx = toNumbers(parent.getAttribute("dx").getString());
2755
4583
  var len = text.length;
2756
4584
  var _measure = 0;
2757
- for (var i = 0; i < len; i++) {
2758
- var glyph = this.getGlyph(customFont, text, i);
4585
+ for (var i2 = 0; i2 < len; i2++) {
4586
+ var glyph = this.getGlyph(customFont, text, i2);
2759
4587
  _measure += (glyph.horizAdvX || customFont.horizAdvX) * fontSize / customFont.fontFace.unitsPerEm;
2760
- if (typeof dx[i] !== "undefined" && !isNaN(dx[i])) {
2761
- _measure += dx[i];
4588
+ if (typeof dx[i2] !== "undefined" && !isNaN(dx[i2])) {
4589
+ _measure += dx[i2];
2762
4590
  }
2763
4591
  }
2764
4592
  return _measure;
@@ -2947,7 +4775,7 @@ class RectElement extends PathElement {
2947
4775
  }
2948
4776
  path(ctx) {
2949
4777
  var x = this.getAttribute("x").getPixels("x");
2950
- var y = this.getAttribute("y").getPixels("y");
4778
+ var y2 = this.getAttribute("y").getPixels("y");
2951
4779
  var width = this.getStyle("width", false, true).getPixels("x");
2952
4780
  var height = this.getStyle("height", false, true).getPixels("y");
2953
4781
  var rxAttr = this.getAttribute("rx");
@@ -2966,19 +4794,19 @@ class RectElement extends PathElement {
2966
4794
  var KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);
2967
4795
  ctx.beginPath();
2968
4796
  if (height > 0 && width > 0) {
2969
- ctx.moveTo(x + rx, y);
2970
- ctx.lineTo(x + width - rx, y);
2971
- ctx.bezierCurveTo(x + width - rx + KAPPA * rx, y, x + width, y + ry - KAPPA * ry, x + width, y + ry);
2972
- ctx.lineTo(x + width, y + height - ry);
2973
- ctx.bezierCurveTo(x + width, y + height - ry + KAPPA * ry, x + width - rx + KAPPA * rx, y + height, x + width - rx, y + height);
2974
- ctx.lineTo(x + rx, y + height);
2975
- ctx.bezierCurveTo(x + rx - KAPPA * rx, y + height, x, y + height - ry + KAPPA * ry, x, y + height - ry);
2976
- ctx.lineTo(x, y + ry);
2977
- ctx.bezierCurveTo(x, y + ry - KAPPA * ry, x + rx - KAPPA * rx, y, x + rx, y);
4797
+ ctx.moveTo(x + rx, y2);
4798
+ ctx.lineTo(x + width - rx, y2);
4799
+ ctx.bezierCurveTo(x + width - rx + KAPPA * rx, y2, x + width, y2 + ry - KAPPA * ry, x + width, y2 + ry);
4800
+ ctx.lineTo(x + width, y2 + height - ry);
4801
+ ctx.bezierCurveTo(x + width, y2 + height - ry + KAPPA * ry, x + width - rx + KAPPA * rx, y2 + height, x + width - rx, y2 + height);
4802
+ ctx.lineTo(x + rx, y2 + height);
4803
+ ctx.bezierCurveTo(x + rx - KAPPA * rx, y2 + height, x, y2 + height - ry + KAPPA * ry, x, y2 + height - ry);
4804
+ ctx.lineTo(x, y2 + ry);
4805
+ ctx.bezierCurveTo(x, y2 + ry - KAPPA * ry, x + rx - KAPPA * rx, y2, x + rx, y2);
2978
4806
  ctx.closePath();
2979
4807
  }
2980
4808
  }
2981
- return new BoundingBox(x, y, x + width, y + height);
4809
+ return new BoundingBox(x, y2, x + width, y2 + height);
2982
4810
  }
2983
4811
  getMarkers() {
2984
4812
  return null;
@@ -2992,13 +4820,13 @@ class CircleElement extends PathElement {
2992
4820
  path(ctx) {
2993
4821
  var cx = this.getAttribute("cx").getPixels("x");
2994
4822
  var cy = this.getAttribute("cy").getPixels("y");
2995
- var r = this.getAttribute("r").getPixels();
2996
- if (ctx && r > 0) {
4823
+ var r2 = this.getAttribute("r").getPixels();
4824
+ if (ctx && r2 > 0) {
2997
4825
  ctx.beginPath();
2998
- ctx.arc(cx, cy, r, 0, Math.PI * 2, false);
4826
+ ctx.arc(cx, cy, r2, 0, Math.PI * 2, false);
2999
4827
  ctx.closePath();
3000
4828
  }
3001
- return new BoundingBox(cx - r, cy - r, cx + r, cy + r);
4829
+ return new BoundingBox(cx - r2, cy - r2, cx + r2, cy + r2);
3002
4830
  }
3003
4831
  getMarkers() {
3004
4832
  return null;
@@ -3055,8 +4883,8 @@ class LineElement extends PathElement {
3055
4883
  }
3056
4884
  getMarkers() {
3057
4885
  var [p0, p1] = this.getPoints();
3058
- var a = p0.angleTo(p1);
3059
- return [[p0, a], [p1, a]];
4886
+ var a2 = p0.angleTo(p1);
4887
+ return [[p0, a2], [p1, a2]];
3060
4888
  }
3061
4889
  }
3062
4890
  class PolylineElement extends PathElement {
@@ -3082,11 +4910,11 @@ class PolylineElement extends PathElement {
3082
4910
  points.forEach((_ref) => {
3083
4911
  var {
3084
4912
  x,
3085
- y
4913
+ y: y2
3086
4914
  } = _ref;
3087
- boundingBox.addPoint(x, y);
4915
+ boundingBox.addPoint(x, y2);
3088
4916
  if (ctx) {
3089
- ctx.lineTo(x, y);
4917
+ ctx.lineTo(x, y2);
3090
4918
  }
3091
4919
  });
3092
4920
  return boundingBox;
@@ -3097,11 +4925,11 @@ class PolylineElement extends PathElement {
3097
4925
  } = this;
3098
4926
  var lastIndex = points.length - 1;
3099
4927
  var markers = [];
3100
- points.forEach((point, i) => {
3101
- if (i === lastIndex) {
4928
+ points.forEach((point, i2) => {
4929
+ if (i2 === lastIndex) {
3102
4930
  return;
3103
4931
  }
3104
- markers.push([point, point.angleTo(points[i + 1])]);
4932
+ markers.push([point, point.angleTo(points[i2 + 1])]);
3105
4933
  });
3106
4934
  if (markers.length > 0) {
3107
4935
  markers.push([points[points.length - 1], markers[markers.length - 1][1]]);
@@ -3118,10 +4946,10 @@ class PolygonElement extends PolylineElement {
3118
4946
  var boundingBox = super.path(ctx);
3119
4947
  var [{
3120
4948
  x,
3121
- y
4949
+ y: y2
3122
4950
  }] = this.points;
3123
4951
  if (ctx) {
3124
- ctx.lineTo(x, y);
4952
+ ctx.lineTo(x, y2);
3125
4953
  ctx.closePath();
3126
4954
  }
3127
4955
  return boundingBox;
@@ -3154,10 +4982,10 @@ class PatternElement extends Element {
3154
4982
  Reflect.deleteProperty(this.styles, "fill-opacity");
3155
4983
  }
3156
4984
  for (var x = -1; x <= 1; x++) {
3157
- for (var y = -1; y <= 1; y++) {
4985
+ for (var y2 = -1; y2 <= 1; y2++) {
3158
4986
  patternCtx.save();
3159
4987
  patternSvg.attributes.x = new Property(this.document, "x", x * patternCanvas.width);
3160
- patternSvg.attributes.y = new Property(this.document, "y", y * patternCanvas.height);
4988
+ patternSvg.attributes.y = new Property(this.document, "y", y2 * patternCanvas.height);
3161
4989
  patternSvg.render(patternCtx);
3162
4990
  patternCtx.restore();
3163
4991
  }
@@ -3177,11 +5005,11 @@ class MarkerElement extends Element {
3177
5005
  }
3178
5006
  var {
3179
5007
  x,
3180
- y
5008
+ y: y2
3181
5009
  } = point;
3182
5010
  var orient = this.getAttribute("orient").getString("auto");
3183
5011
  var markerUnits = this.getAttribute("markerUnits").getString("strokeWidth");
3184
- ctx.translate(x, y);
5012
+ ctx.translate(x, y2);
3185
5013
  if (orient === "auto") {
3186
5014
  ctx.rotate(angle);
3187
5015
  }
@@ -3208,7 +5036,7 @@ class MarkerElement extends Element {
3208
5036
  if (orient === "auto") {
3209
5037
  ctx.rotate(-angle);
3210
5038
  }
3211
- ctx.translate(-x, -y);
5039
+ ctx.translate(-x, -y2);
3212
5040
  }
3213
5041
  }
3214
5042
  class DefsElement extends Element {
@@ -3371,9 +5199,9 @@ class RadialGradientElement extends GradientElement {
3371
5199
  if (this.getAttribute("fy").hasValue()) {
3372
5200
  fy = isBoundingBoxUnits ? boundingBox.y + boundingBox.height * this.getAttribute("fy").getNumber() : this.getAttribute("fy").getPixels("y");
3373
5201
  }
3374
- var r = isBoundingBoxUnits ? (boundingBox.width + boundingBox.height) / 2 * this.getAttribute("r").getNumber() : this.getAttribute("r").getPixels();
5202
+ var r2 = isBoundingBoxUnits ? (boundingBox.width + boundingBox.height) / 2 * this.getAttribute("r").getNumber() : this.getAttribute("r").getPixels();
3375
5203
  var fr = this.getAttribute("fr").getPixels();
3376
- return ctx.createRadialGradient(fx, fy, fr, cx, cy, r);
5204
+ return ctx.createRadialGradient(fx, fy, fr, cx, cy, r2);
3377
5205
  }
3378
5206
  }
3379
5207
  class StopElement extends Element {
@@ -3483,12 +5311,12 @@ class AnimateElement extends Element {
3483
5311
  progress: (this.duration - this.begin) / (this.maxDuration - this.begin)
3484
5312
  };
3485
5313
  if (values.hasValue()) {
3486
- var p = result.progress * (values.getValue().length - 1);
3487
- var lb = Math.floor(p);
3488
- var ub = Math.ceil(p);
5314
+ var p2 = result.progress * (values.getValue().length - 1);
5315
+ var lb = Math.floor(p2);
5316
+ var ub = Math.ceil(p2);
3489
5317
  result.from = new Property(document2, "from", parseFloat(values.getValue()[lb]));
3490
5318
  result.to = new Property(document2, "to", parseFloat(values.getValue()[ub]));
3491
- result.progress = (p - lb) / (ub - lb);
5319
+ result.progress = (p2 - lb) / (ub - lb);
3492
5320
  } else {
3493
5321
  result.from = this.from;
3494
5322
  result.to = this.to;
@@ -3510,10 +5338,10 @@ class AnimateColorElement extends AnimateElement {
3510
5338
  var colorFrom = new _rgbcolor_1_0_1_rgbcolor(from.getColor());
3511
5339
  var colorTo = new _rgbcolor_1_0_1_rgbcolor(to.getColor());
3512
5340
  if (colorFrom.ok && colorTo.ok) {
3513
- var r = colorFrom.r + (colorTo.r - colorFrom.r) * progress;
5341
+ var r2 = colorFrom.r + (colorTo.r - colorFrom.r) * progress;
3514
5342
  var g = colorFrom.g + (colorTo.g - colorFrom.g) * progress;
3515
5343
  var b = colorFrom.b + (colorTo.b - colorFrom.b) * progress;
3516
- return "rgb(".concat(Math.floor(r), ", ").concat(Math.floor(g), ", ").concat(Math.floor(b), ")");
5344
+ return "rgb(".concat(Math.floor(r2), ", ").concat(Math.floor(g), ", ").concat(Math.floor(b), ")");
3517
5345
  }
3518
5346
  return this.getAttribute("from").getColor();
3519
5347
  }
@@ -3531,8 +5359,8 @@ class AnimateTransformElement extends AnimateElement {
3531
5359
  } = this.getProgress();
3532
5360
  var transformFrom = toNumbers(from.getString());
3533
5361
  var transformTo = toNumbers(to.getString());
3534
- var newValue = transformFrom.map((from2, i) => {
3535
- var to2 = transformTo[i];
5362
+ var newValue = transformFrom.map((from2, i2) => {
5363
+ var to2 = transformTo[i2];
3536
5364
  return from2 + (to2 - from2) * progress;
3537
5365
  }).join(" ");
3538
5366
  return newValue;
@@ -3636,14 +5464,14 @@ class AElement extends TextElement {
3636
5464
  var {
3637
5465
  document: document2,
3638
5466
  x,
3639
- y
5467
+ y: y2
3640
5468
  } = this;
3641
5469
  var {
3642
5470
  mouse
3643
5471
  } = document2.screen;
3644
5472
  var fontSize = new Property(document2, "fontSize", Font.parse(document2.ctx.font).fontSize);
3645
5473
  if (mouse.isWorking()) {
3646
- mouse.checkBoundingBox(this, new BoundingBox(x, y - fontSize.getPixels("y"), x + this.measureText(ctx), y));
5474
+ mouse.checkBoundingBox(this, new BoundingBox(x, y2 - fontSize.getPixels("y"), x + this.measureText(ctx), y2));
3647
5475
  }
3648
5476
  } else if (this.children.length > 0) {
3649
5477
  var g = new GElement(this.document, null);
@@ -3679,9 +5507,9 @@ function ownKeys$2(object, enumerableOnly) {
3679
5507
  return keys;
3680
5508
  }
3681
5509
  function _objectSpread$2(target) {
3682
- for (var i = 1; i < arguments.length; i++) {
3683
- var source = arguments[i] != null ? arguments[i] : {};
3684
- if (i % 2) {
5510
+ for (var i2 = 1; i2 < arguments.length; i2++) {
5511
+ var source = arguments[i2] != null ? arguments[i2] : {};
5512
+ if (i2 % 2) {
3685
5513
  ownKeys$2(Object(source), true).forEach(function(key) {
3686
5514
  _defineProperty(target, key, source[key]);
3687
5515
  });
@@ -3747,14 +5575,14 @@ class TextPathElement extends TextElement {
3747
5575
  break;
3748
5576
  case PathParser.ARC: {
3749
5577
  var [cx, cy, rx, ry, theta, dTheta, psi, fs] = points;
3750
- var r = rx > ry ? rx : ry;
5578
+ var r2 = rx > ry ? rx : ry;
3751
5579
  var scaleX = rx > ry ? 1 : rx / ry;
3752
5580
  var scaleY = rx > ry ? ry / rx : 1;
3753
5581
  if (ctx) {
3754
5582
  ctx.translate(cx, cy);
3755
5583
  ctx.rotate(psi);
3756
5584
  ctx.scale(scaleX, scaleY);
3757
- ctx.arc(0, 0, r, theta, theta + dTheta, Boolean(1 - fs));
5585
+ ctx.arc(0, 0, r2, theta, theta + dTheta, Boolean(1 - fs));
3758
5586
  ctx.scale(1 / scaleX, 1 / scaleY);
3759
5587
  ctx.rotate(-psi);
3760
5588
  ctx.translate(-cx, -cy);
@@ -3781,7 +5609,7 @@ class TextPathElement extends TextElement {
3781
5609
  if (textDecoration === "underline") {
3782
5610
  ctx.beginPath();
3783
5611
  }
3784
- glyphInfo.forEach((glyph, i) => {
5612
+ glyphInfo.forEach((glyph, i2) => {
3785
5613
  var {
3786
5614
  p0,
3787
5615
  p1,
@@ -3799,7 +5627,7 @@ class TextPathElement extends TextElement {
3799
5627
  }
3800
5628
  ctx.restore();
3801
5629
  if (textDecoration === "underline") {
3802
- if (i === 0) {
5630
+ if (i2 === 0) {
3803
5631
  ctx.moveTo(p0.x, p0.y + fontSize / 8);
3804
5632
  }
3805
5633
  ctx.lineTo(p1.x, p1.y + fontSize / 5);
@@ -3888,10 +5716,10 @@ class TextPathElement extends TextElement {
3888
5716
  var letterSpacingCache = [];
3889
5717
  var textLen = renderText.length;
3890
5718
  this.letterSpacingCache = letterSpacingCache;
3891
- for (var i = 0; i < textLen; i++) {
3892
- letterSpacingCache.push(typeof dx[i] !== "undefined" ? dx[i] : letterSpacing);
5719
+ for (var i2 = 0; i2 < textLen; i2++) {
5720
+ letterSpacingCache.push(typeof dx[i2] !== "undefined" ? dx[i2] : letterSpacing);
3893
5721
  }
3894
- var dxSum = letterSpacingCache.reduce((acc, cur, i2) => i2 === 0 ? 0 : acc + cur || 0, 0);
5722
+ var dxSum = letterSpacingCache.reduce((acc, cur, i3) => i3 === 0 ? 0 : acc + cur || 0, 0);
3895
5723
  var textWidth = this.measureText(ctx);
3896
5724
  var textFullWidth = Math.max(textWidth + dxSum, 0);
3897
5725
  this.textWidth = textWidth;
@@ -3907,18 +5735,18 @@ class TextPathElement extends TextElement {
3907
5735
  offset = -textFullWidth;
3908
5736
  }
3909
5737
  offset += startOffset;
3910
- chars.forEach((char, i2) => {
5738
+ chars.forEach((char, i3) => {
3911
5739
  var {
3912
5740
  offset: nextOffset,
3913
5741
  segment,
3914
5742
  rotation
3915
- } = this.findSegmentToFitChar(ctx, anchor, textFullWidth, fullPathWidth, spacesNumber, offset, dy, char, i2);
5743
+ } = this.findSegmentToFitChar(ctx, anchor, textFullWidth, fullPathWidth, spacesNumber, offset, dy, char, i3);
3916
5744
  offset = nextOffset;
3917
5745
  if (!segment.p0 || !segment.p1) {
3918
5746
  return;
3919
5747
  }
3920
5748
  this.glyphInfo.push({
3921
- text: chars[i2],
5749
+ text: chars[i3],
3922
5750
  p0: segment.p0,
3923
5751
  p1: segment.p1,
3924
5752
  rotation
@@ -3999,32 +5827,32 @@ class TextPathElement extends TextElement {
3999
5827
  pathM(pathParser, points) {
4000
5828
  var {
4001
5829
  x,
4002
- y
5830
+ y: y2
4003
5831
  } = PathElement.pathM(pathParser).point;
4004
- points.push(x, y);
5832
+ points.push(x, y2);
4005
5833
  }
4006
5834
  pathL(pathParser, points) {
4007
5835
  var {
4008
5836
  x,
4009
- y
5837
+ y: y2
4010
5838
  } = PathElement.pathL(pathParser).point;
4011
- points.push(x, y);
5839
+ points.push(x, y2);
4012
5840
  return PathParser.LINE_TO;
4013
5841
  }
4014
5842
  pathH(pathParser, points) {
4015
5843
  var {
4016
5844
  x,
4017
- y
5845
+ y: y2
4018
5846
  } = PathElement.pathH(pathParser).point;
4019
- points.push(x, y);
5847
+ points.push(x, y2);
4020
5848
  return PathParser.LINE_TO;
4021
5849
  }
4022
5850
  pathV(pathParser, points) {
4023
5851
  var {
4024
5852
  x,
4025
- y
5853
+ y: y2
4026
5854
  } = PathElement.pathV(pathParser).point;
4027
- points.push(x, y);
5855
+ points.push(x, y2);
4028
5856
  return PathParser.LINE_TO;
4029
5857
  }
4030
5858
  pathC(pathParser, points) {
@@ -4077,28 +5905,28 @@ class TextPathElement extends TextElement {
4077
5905
  }
4078
5906
  return [centp.x, centp.y, rX, rY, a1, ad, xAxisRotation, sweepFlag];
4079
5907
  }
4080
- calcLength(x, y, commandType, points) {
5908
+ calcLength(x, y2, commandType, points) {
4081
5909
  var len = 0;
4082
5910
  var p1 = null;
4083
5911
  var p2 = null;
4084
- var t = 0;
5912
+ var t2 = 0;
4085
5913
  switch (commandType) {
4086
5914
  case PathParser.LINE_TO:
4087
- return this.getLineLength(x, y, points[0], points[1]);
5915
+ return this.getLineLength(x, y2, points[0], points[1]);
4088
5916
  case PathParser.CURVE_TO:
4089
5917
  len = 0;
4090
- p1 = this.getPointOnCubicBezier(0, x, y, points[0], points[1], points[2], points[3], points[4], points[5]);
4091
- for (t = 0.01; t <= 1; t += 0.01) {
4092
- p2 = this.getPointOnCubicBezier(t, x, y, points[0], points[1], points[2], points[3], points[4], points[5]);
5918
+ p1 = this.getPointOnCubicBezier(0, x, y2, points[0], points[1], points[2], points[3], points[4], points[5]);
5919
+ for (t2 = 0.01; t2 <= 1; t2 += 0.01) {
5920
+ p2 = this.getPointOnCubicBezier(t2, x, y2, points[0], points[1], points[2], points[3], points[4], points[5]);
4093
5921
  len += this.getLineLength(p1.x, p1.y, p2.x, p2.y);
4094
5922
  p1 = p2;
4095
5923
  }
4096
5924
  return len;
4097
5925
  case PathParser.QUAD_TO:
4098
5926
  len = 0;
4099
- p1 = this.getPointOnQuadraticBezier(0, x, y, points[0], points[1], points[2], points[3]);
4100
- for (t = 0.01; t <= 1; t += 0.01) {
4101
- p2 = this.getPointOnQuadraticBezier(t, x, y, points[0], points[1], points[2], points[3]);
5927
+ p1 = this.getPointOnQuadraticBezier(0, x, y2, points[0], points[1], points[2], points[3]);
5928
+ for (t2 = 0.01; t2 <= 1; t2 += 0.01) {
5929
+ p2 = this.getPointOnQuadraticBezier(t2, x, y2, points[0], points[1], points[2], points[3]);
4102
5930
  len += this.getLineLength(p1.x, p1.y, p2.x, p2.y);
4103
5931
  p1 = p2;
4104
5932
  }
@@ -4114,14 +5942,14 @@ class TextPathElement extends TextElement {
4114
5942
  }
4115
5943
  p1 = this.getPointOnEllipticalArc(points[0], points[1], points[2], points[3], start, 0);
4116
5944
  if (dTheta < 0) {
4117
- for (t = start - inc; t > end; t -= inc) {
4118
- p2 = this.getPointOnEllipticalArc(points[0], points[1], points[2], points[3], t, 0);
5945
+ for (t2 = start - inc; t2 > end; t2 -= inc) {
5946
+ p2 = this.getPointOnEllipticalArc(points[0], points[1], points[2], points[3], t2, 0);
4119
5947
  len += this.getLineLength(p1.x, p1.y, p2.x, p2.y);
4120
5948
  p1 = p2;
4121
5949
  }
4122
5950
  } else {
4123
- for (t = start + inc; t < end; t += inc) {
4124
- p2 = this.getPointOnEllipticalArc(points[0], points[1], points[2], points[3], t, 0);
5951
+ for (t2 = start + inc; t2 < end; t2 += inc) {
5952
+ p2 = this.getPointOnEllipticalArc(points[0], points[1], points[2], points[3], t2, 0);
4125
5953
  len += this.getLineLength(p1.x, p1.y, p2.x, p2.y);
4126
5954
  p1 = p2;
4127
5955
  }
@@ -4160,10 +5988,10 @@ class TextPathElement extends TextElement {
4160
5988
  if (len < PSEUDO_ZERO) {
4161
5989
  return null;
4162
5990
  }
4163
- var u = (fromX - p1x) * (p2x - p1x) + (fromY - p1y) * (p2y - p1y);
4164
- u /= len * len;
4165
- ix = p1x + u * (p2x - p1x);
4166
- iy = p1y + u * (p2y - p1y);
5991
+ var u2 = (fromX - p1x) * (p2x - p1x) + (fromY - p1y) * (p2y - p1y);
5992
+ u2 /= len * len;
5993
+ ix = p1x + u2 * (p2x - p1x);
5994
+ iy = p1y + u2 * (p2y - p1y);
4167
5995
  var pRise = this.getLineLength(fromX, fromY, ix, iy);
4168
5996
  var pRun = Math.sqrt(dist * dist - pRise * pRise);
4169
5997
  run = Math.sqrt(pRun * pRun / (1 + m2 * m2));
@@ -4181,7 +6009,7 @@ class TextPathElement extends TextElement {
4181
6009
  getPointOnPath(distance) {
4182
6010
  var fullLen = this.getPathLength();
4183
6011
  var cumulativePathLength = 0;
4184
- var p = null;
6012
+ var p2 = null;
4185
6013
  if (distance < -5e-5 || distance - 5e-5 > fullLen) {
4186
6014
  return null;
4187
6015
  }
@@ -4197,7 +6025,7 @@ class TextPathElement extends TextElement {
4197
6025
  var currentT = 0;
4198
6026
  switch (command.type) {
4199
6027
  case PathParser.LINE_TO:
4200
- p = this.getPointOnLine(delta, command.start.x, command.start.y, command.points[0], command.points[1], command.start.x, command.start.y);
6028
+ p2 = this.getPointOnLine(delta, command.start.x, command.start.y, command.points[0], command.points[1], command.start.x, command.start.y);
4201
6029
  break;
4202
6030
  case PathParser.ARC: {
4203
6031
  var start = command.points[4];
@@ -4207,7 +6035,7 @@ class TextPathElement extends TextElement {
4207
6035
  if (dTheta < 0 && currentT < end || dTheta >= 0 && currentT > end) {
4208
6036
  break;
4209
6037
  }
4210
- p = this.getPointOnEllipticalArc(command.points[0], command.points[1], command.points[2], command.points[3], currentT, command.points[6]);
6038
+ p2 = this.getPointOnEllipticalArc(command.points[0], command.points[1], command.points[2], command.points[3], currentT, command.points[6]);
4211
6039
  break;
4212
6040
  }
4213
6041
  case PathParser.CURVE_TO:
@@ -4215,18 +6043,18 @@ class TextPathElement extends TextElement {
4215
6043
  if (currentT > 1) {
4216
6044
  currentT = 1;
4217
6045
  }
4218
- p = this.getPointOnCubicBezier(currentT, command.start.x, command.start.y, command.points[0], command.points[1], command.points[2], command.points[3], command.points[4], command.points[5]);
6046
+ p2 = this.getPointOnCubicBezier(currentT, command.start.x, command.start.y, command.points[0], command.points[1], command.points[2], command.points[3], command.points[4], command.points[5]);
4219
6047
  break;
4220
6048
  case PathParser.QUAD_TO:
4221
6049
  currentT = delta / command.pathLength;
4222
6050
  if (currentT > 1) {
4223
6051
  currentT = 1;
4224
6052
  }
4225
- p = this.getPointOnQuadraticBezier(currentT, command.start.x, command.start.y, command.points[0], command.points[1], command.points[2], command.points[3]);
6053
+ p2 = this.getPointOnQuadraticBezier(currentT, command.start.x, command.start.y, command.points[0], command.points[1], command.points[2], command.points[3]);
4226
6054
  break;
4227
6055
  }
4228
- if (p) {
4229
- return p;
6056
+ if (p2) {
6057
+ return p2;
4230
6058
  }
4231
6059
  break;
4232
6060
  }
@@ -4243,18 +6071,18 @@ class TextPathElement extends TextElement {
4243
6071
  }
4244
6072
  getPointOnCubicBezier(pct, p1x, p1y, p2x, p2y, p3x, p3y, p4x, p4y) {
4245
6073
  var x = p4x * CB1(pct) + p3x * CB2(pct) + p2x * CB3(pct) + p1x * CB4(pct);
4246
- var y = p4y * CB1(pct) + p3y * CB2(pct) + p2y * CB3(pct) + p1y * CB4(pct);
6074
+ var y2 = p4y * CB1(pct) + p3y * CB2(pct) + p2y * CB3(pct) + p1y * CB4(pct);
4247
6075
  return {
4248
6076
  x,
4249
- y
6077
+ y: y2
4250
6078
  };
4251
6079
  }
4252
6080
  getPointOnQuadraticBezier(pct, p1x, p1y, p2x, p2y, p3x, p3y) {
4253
6081
  var x = p3x * QB1(pct) + p2x * QB2(pct) + p1x * QB3(pct);
4254
- var y = p3y * QB1(pct) + p2y * QB2(pct) + p1y * QB3(pct);
6082
+ var y2 = p3y * QB1(pct) + p2y * QB2(pct) + p1y * QB3(pct);
4255
6083
  return {
4256
6084
  x,
4257
- y
6085
+ y: y2
4258
6086
  };
4259
6087
  }
4260
6088
  getPointOnEllipticalArc(cx, cy, rx, ry, theta, psi) {
@@ -4279,21 +6107,21 @@ class TextPathElement extends TextElement {
4279
6107
  precision,
4280
6108
  points: []
4281
6109
  };
4282
- var s = 0;
4283
- for (var l = 0; l <= fullLen; l += precision) {
4284
- var p0 = this.getPointOnPath(l);
4285
- var p1 = this.getPointOnPath(l + precision);
6110
+ var s2 = 0;
6111
+ for (var l2 = 0; l2 <= fullLen; l2 += precision) {
6112
+ var p0 = this.getPointOnPath(l2);
6113
+ var p1 = this.getPointOnPath(l2 + precision);
4286
6114
  if (!p0 || !p1) {
4287
6115
  continue;
4288
6116
  }
4289
- s += this.getLineLength(p0.x, p0.y, p1.x, p1.y);
4290
- if (s >= step) {
6117
+ s2 += this.getLineLength(p0.x, p0.y, p1.x, p1.y);
6118
+ if (s2 >= step) {
4291
6119
  this.equidistantCache.points.push({
4292
6120
  x: p0.x,
4293
6121
  y: p0.y,
4294
- distance: l
6122
+ distance: l2
4295
6123
  });
4296
- s -= step;
6124
+ s2 -= step;
4297
6125
  }
4298
6126
  }
4299
6127
  }
@@ -4368,14 +6196,14 @@ class ImageElement extends RenderedElement {
4368
6196
  loaded
4369
6197
  } = this;
4370
6198
  var x = this.getAttribute("x").getPixels("x");
4371
- var y = this.getAttribute("y").getPixels("y");
6199
+ var y2 = this.getAttribute("y").getPixels("y");
4372
6200
  var width = this.getStyle("width").getPixels("x");
4373
6201
  var height = this.getStyle("height").getPixels("y");
4374
6202
  if (!loaded || !image || !width || !height) {
4375
6203
  return;
4376
6204
  }
4377
6205
  ctx.save();
4378
- ctx.translate(x, y);
6206
+ ctx.translate(x, y2);
4379
6207
  if (this.isSvg) {
4380
6208
  var subDocument = document2.canvg.forkString(ctx, this.image, {
4381
6209
  ignoreMouse: true,
@@ -4409,10 +6237,10 @@ class ImageElement extends RenderedElement {
4409
6237
  }
4410
6238
  getBoundingBox() {
4411
6239
  var x = this.getAttribute("x").getPixels("x");
4412
- var y = this.getAttribute("y").getPixels("y");
6240
+ var y2 = this.getAttribute("y").getPixels("y");
4413
6241
  var width = this.getStyle("width").getPixels("x");
4414
6242
  var height = this.getStyle("height").getPixels("y");
4415
- return new BoundingBox(x, y, x + width, y + height);
6243
+ return new BoundingBox(x, y2, x + width, y2 + height);
4416
6244
  }
4417
6245
  }
4418
6246
  class SymbolElement extends RenderedElement {
@@ -4576,18 +6404,18 @@ class UseElement extends RenderedElement {
4576
6404
  return this.cachedElement;
4577
6405
  }
4578
6406
  }
4579
- function imGet(img, x, y, width, _height, rgba) {
4580
- return img[y * width * 4 + x * 4 + rgba];
6407
+ function imGet(img, x, y2, width, _height, rgba) {
6408
+ return img[y2 * width * 4 + x * 4 + rgba];
4581
6409
  }
4582
- function imSet(img, x, y, width, _height, rgba, val) {
4583
- img[y * width * 4 + x * 4 + rgba] = val;
6410
+ function imSet(img, x, y2, width, _height, rgba, val) {
6411
+ img[y2 * width * 4 + x * 4 + rgba] = val;
4584
6412
  }
4585
- function m(matrix, i, v) {
4586
- var mi = matrix[i];
4587
- return mi * v;
6413
+ function m(matrix, i2, v2) {
6414
+ var mi = matrix[i2];
6415
+ return mi * v2;
4588
6416
  }
4589
- function c(a, m1, m2, m3) {
4590
- return m1 + Math.cos(a) * m2 + Math.sin(a) * m3;
6417
+ function c(a2, m1, m2, m3) {
6418
+ return m1 + Math.cos(a2) * m2 + Math.sin(a2) * m3;
4591
6419
  }
4592
6420
  class FeColorMatrixElement extends Element {
4593
6421
  constructor(document2, node2, captureTextNodes) {
@@ -4596,13 +6424,13 @@ class FeColorMatrixElement extends Element {
4596
6424
  var matrix = toNumbers(this.getAttribute("values").getString());
4597
6425
  switch (this.getAttribute("type").getString("matrix")) {
4598
6426
  case "saturate": {
4599
- var s = matrix[0];
4600
- matrix = [0.213 + 0.787 * s, 0.715 - 0.715 * s, 0.072 - 0.072 * s, 0, 0, 0.213 - 0.213 * s, 0.715 + 0.285 * s, 0.072 - 0.072 * s, 0, 0, 0.213 - 0.213 * s, 0.715 - 0.715 * s, 0.072 + 0.928 * s, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
6427
+ var s2 = matrix[0];
6428
+ matrix = [0.213 + 0.787 * s2, 0.715 - 0.715 * s2, 0.072 - 0.072 * s2, 0, 0, 0.213 - 0.213 * s2, 0.715 + 0.285 * s2, 0.072 - 0.072 * s2, 0, 0, 0.213 - 0.213 * s2, 0.715 - 0.715 * s2, 0.072 + 0.928 * s2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
4601
6429
  break;
4602
6430
  }
4603
6431
  case "hueRotate": {
4604
- var a = matrix[0] * Math.PI / 180;
4605
- matrix = [c(a, 0.213, 0.787, -0.213), c(a, 0.715, -0.715, -0.715), c(a, 0.072, -0.072, 0.928), 0, 0, c(a, 0.213, -0.213, 0.143), c(a, 0.715, 0.285, 0.14), c(a, 0.072, -0.072, -0.283), 0, 0, c(a, 0.213, -0.213, -0.787), c(a, 0.715, -0.715, 0.715), c(a, 0.072, 0.928, 0.072), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
6432
+ var a2 = matrix[0] * Math.PI / 180;
6433
+ matrix = [c(a2, 0.213, 0.787, -0.213), c(a2, 0.715, -0.715, -0.715), c(a2, 0.072, -0.072, 0.928), 0, 0, c(a2, 0.213, -0.213, 0.143), c(a2, 0.715, 0.285, 0.14), c(a2, 0.072, -0.072, -0.283), 0, 0, c(a2, 0.213, -0.213, -0.787), c(a2, 0.715, -0.715, 0.715), c(a2, 0.072, 0.928, 0.072), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
4606
6434
  break;
4607
6435
  }
4608
6436
  case "luminanceToAlpha":
@@ -4618,26 +6446,26 @@ class FeColorMatrixElement extends Element {
4618
6446
  matrix
4619
6447
  } = this;
4620
6448
  var srcData = ctx.getImageData(0, 0, width, height);
4621
- for (var y = 0; y < height; y++) {
6449
+ for (var y2 = 0; y2 < height; y2++) {
4622
6450
  for (var x = 0; x < width; x++) {
4623
- var r = imGet(srcData.data, x, y, width, height, 0);
4624
- var g = imGet(srcData.data, x, y, width, height, 1);
4625
- var b = imGet(srcData.data, x, y, width, height, 2);
4626
- var a = imGet(srcData.data, x, y, width, height, 3);
4627
- var nr = m(matrix, 0, r) + m(matrix, 1, g) + m(matrix, 2, b) + m(matrix, 3, a) + m(matrix, 4, 1);
4628
- var ng = m(matrix, 5, r) + m(matrix, 6, g) + m(matrix, 7, b) + m(matrix, 8, a) + m(matrix, 9, 1);
4629
- var nb = m(matrix, 10, r) + m(matrix, 11, g) + m(matrix, 12, b) + m(matrix, 13, a) + m(matrix, 14, 1);
4630
- var na = m(matrix, 15, r) + m(matrix, 16, g) + m(matrix, 17, b) + m(matrix, 18, a) + m(matrix, 19, 1);
6451
+ var r2 = imGet(srcData.data, x, y2, width, height, 0);
6452
+ var g = imGet(srcData.data, x, y2, width, height, 1);
6453
+ var b = imGet(srcData.data, x, y2, width, height, 2);
6454
+ var a2 = imGet(srcData.data, x, y2, width, height, 3);
6455
+ var nr = m(matrix, 0, r2) + m(matrix, 1, g) + m(matrix, 2, b) + m(matrix, 3, a2) + m(matrix, 4, 1);
6456
+ var ng = m(matrix, 5, r2) + m(matrix, 6, g) + m(matrix, 7, b) + m(matrix, 8, a2) + m(matrix, 9, 1);
6457
+ var nb = m(matrix, 10, r2) + m(matrix, 11, g) + m(matrix, 12, b) + m(matrix, 13, a2) + m(matrix, 14, 1);
6458
+ var na = m(matrix, 15, r2) + m(matrix, 16, g) + m(matrix, 17, b) + m(matrix, 18, a2) + m(matrix, 19, 1);
4631
6459
  if (includeOpacity) {
4632
6460
  nr = 0;
4633
6461
  ng = 0;
4634
6462
  nb = 0;
4635
- na *= a / 255;
6463
+ na *= a2 / 255;
4636
6464
  }
4637
- imSet(srcData.data, x, y, width, height, 0, nr);
4638
- imSet(srcData.data, x, y, width, height, 1, ng);
4639
- imSet(srcData.data, x, y, width, height, 2, nb);
4640
- imSet(srcData.data, x, y, width, height, 3, na);
6465
+ imSet(srcData.data, x, y2, width, height, 0, nr);
6466
+ imSet(srcData.data, x, y2, width, height, 1, ng);
6467
+ imSet(srcData.data, x, y2, width, height, 2, nb);
6468
+ imSet(srcData.data, x, y2, width, height, 3, na);
4641
6469
  }
4642
6470
  }
4643
6471
  ctx.clearRect(0, 0, width, height);
@@ -4654,7 +6482,7 @@ class MaskElement extends Element {
4654
6482
  document: document2
4655
6483
  } = this;
4656
6484
  var x = this.getAttribute("x").getPixels("x");
4657
- var y = this.getAttribute("y").getPixels("y");
6485
+ var y2 = this.getAttribute("y").getPixels("y");
4658
6486
  var width = this.getStyle("width").getPixels("x");
4659
6487
  var height = this.getStyle("height").getPixels("y");
4660
6488
  if (!width && !height) {
@@ -4663,12 +6491,12 @@ class MaskElement extends Element {
4663
6491
  boundingBox.addBoundingBox(child.getBoundingBox(ctx));
4664
6492
  });
4665
6493
  x = Math.floor(boundingBox.x1);
4666
- y = Math.floor(boundingBox.y1);
6494
+ y2 = Math.floor(boundingBox.y1);
4667
6495
  width = Math.floor(boundingBox.width);
4668
6496
  height = Math.floor(boundingBox.height);
4669
6497
  }
4670
6498
  var ignoredStyles = this.removeStyles(element, MaskElement.ignoreStyles);
4671
- var maskCanvas = document2.createCanvas(x + width, y + height);
6499
+ var maskCanvas = document2.createCanvas(x + width, y2 + height);
4672
6500
  var maskCtx = maskCanvas.getContext("2d");
4673
6501
  document2.screen.setDefaults(maskCtx);
4674
6502
  this.renderChildren(maskCtx);
@@ -4682,16 +6510,16 @@ class MaskElement extends Element {
4682
6510
  nodeName: "includeOpacity",
4683
6511
  value: "true"
4684
6512
  }]
4685
- }).apply(maskCtx, 0, 0, x + width, y + height);
4686
- var tmpCanvas = document2.createCanvas(x + width, y + height);
6513
+ }).apply(maskCtx, 0, 0, x + width, y2 + height);
6514
+ var tmpCanvas = document2.createCanvas(x + width, y2 + height);
4687
6515
  var tmpCtx = tmpCanvas.getContext("2d");
4688
6516
  document2.screen.setDefaults(tmpCtx);
4689
6517
  element.render(tmpCtx);
4690
6518
  tmpCtx.globalCompositeOperation = "destination-in";
4691
6519
  tmpCtx.fillStyle = maskCtx.createPattern(maskCanvas, "no-repeat");
4692
- tmpCtx.fillRect(0, 0, x + width, y + height);
6520
+ tmpCtx.fillRect(0, 0, x + width, y2 + height);
4693
6521
  ctx.fillStyle = tmpCtx.createPattern(tmpCanvas, "no-repeat");
4694
- ctx.fillRect(0, 0, x + width, y + height);
6522
+ ctx.fillRect(0, 0, x + width, y2 + height);
4695
6523
  this.restoreStyles(element, ignoredStyles);
4696
6524
  }
4697
6525
  render(_2) {
@@ -4777,19 +6605,19 @@ class FilterElement extends Element {
4777
6605
  return;
4778
6606
  }
4779
6607
  var x = Math.floor(boundingBox.x);
4780
- var y = Math.floor(boundingBox.y);
6608
+ var y2 = Math.floor(boundingBox.y);
4781
6609
  var ignoredStyles = this.removeStyles(element, FilterElement.ignoreStyles);
4782
6610
  var tmpCanvas = document2.createCanvas(tmpCanvasWidth, tmpCanvasHeight);
4783
6611
  var tmpCtx = tmpCanvas.getContext("2d");
4784
6612
  document2.screen.setDefaults(tmpCtx);
4785
- tmpCtx.translate(-x + px, -y + py);
6613
+ tmpCtx.translate(-x + px, -y2 + py);
4786
6614
  element.render(tmpCtx);
4787
6615
  children.forEach((child) => {
4788
6616
  if (typeof child.apply === "function") {
4789
6617
  child.apply(tmpCtx, 0, 0, tmpCanvasWidth, tmpCanvasHeight);
4790
6618
  }
4791
6619
  });
4792
- ctx.drawImage(tmpCanvas, 0, 0, tmpCanvasWidth, tmpCanvasHeight, x - px, y - py, tmpCanvasWidth, tmpCanvasHeight);
6620
+ ctx.drawImage(tmpCanvas, 0, 0, tmpCanvasWidth, tmpCanvasHeight, x - px, y2 - py, tmpCanvasWidth, tmpCanvasHeight);
4793
6621
  this.restoreStyles(element, ignoredStyles);
4794
6622
  }
4795
6623
  render(_2) {
@@ -4828,7 +6656,7 @@ class FeGaussianBlurElement extends Element {
4828
6656
  this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber());
4829
6657
  this.extraFilterDistance = this.blurRadius;
4830
6658
  }
4831
- apply(ctx, x, y, width, height) {
6659
+ apply(ctx, x, y2, width, height) {
4832
6660
  var {
4833
6661
  document: document2,
4834
6662
  blurRadius
@@ -4840,7 +6668,7 @@ class FeGaussianBlurElement extends Element {
4840
6668
  canvas.style.display = "none";
4841
6669
  body.appendChild(canvas);
4842
6670
  }
4843
- processCanvasRGBA(canvas, x, y, width, height, blurRadius);
6671
+ processCanvasRGBA(canvas, x, y2, width, height, blurRadius);
4844
6672
  if (body) {
4845
6673
  body.removeChild(canvas);
4846
6674
  }
@@ -4915,9 +6743,9 @@ function ownKeys$1(object, enumerableOnly) {
4915
6743
  return keys;
4916
6744
  }
4917
6745
  function _objectSpread$1(target) {
4918
- for (var i = 1; i < arguments.length; i++) {
4919
- var source = arguments[i] != null ? arguments[i] : {};
4920
- if (i % 2) {
6746
+ for (var i2 = 1; i2 < arguments.length; i2++) {
6747
+ var source = arguments[i2] != null ? arguments[i2] : {};
6748
+ if (i2 % 2) {
4921
6749
  ownKeys$1(Object(source), true).forEach(function(key) {
4922
6750
  _defineProperty(target, key, source[key]);
4923
6751
  });
@@ -5067,9 +6895,9 @@ function ownKeys(object, enumerableOnly) {
5067
6895
  return keys;
5068
6896
  }
5069
6897
  function _objectSpread(target) {
5070
- for (var i = 1; i < arguments.length; i++) {
5071
- var source = arguments[i] != null ? arguments[i] : {};
5072
- if (i % 2) {
6898
+ for (var i2 = 1; i2 < arguments.length; i2++) {
6899
+ var source = arguments[i2] != null ? arguments[i2] : {};
6900
+ if (i2 % 2) {
5073
6901
  ownKeys(Object(source), true).forEach(function(key) {
5074
6902
  _defineProperty(target, key, source[key]);
5075
6903
  });