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,214 +0,0 @@
1
- function _typeof(obj) {
2
- "@babel/helpers - typeof";
3
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
4
- _typeof = function(obj2) {
5
- return typeof obj2;
6
- };
7
- } else {
8
- _typeof = function(obj2) {
9
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
10
- };
11
- }
12
- return _typeof(obj);
13
- }
14
- function _classCallCheck(instance, Constructor) {
15
- if (!(instance instanceof Constructor)) {
16
- throw new TypeError("Cannot call a class as a function");
17
- }
18
- }
19
- 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];
20
- 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];
21
- function getImageDataFromCanvas(canvas, topX, topY, width, height) {
22
- if (typeof canvas === "string") {
23
- canvas = document.getElementById(canvas);
24
- }
25
- if (!canvas || _typeof(canvas) !== "object" || !("getContext" in canvas)) {
26
- throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
27
- }
28
- var context = canvas.getContext("2d");
29
- try {
30
- return context.getImageData(topX, topY, width, height);
31
- } catch (e) {
32
- throw new Error("unable to access image data: " + e);
33
- }
34
- }
35
- function processCanvasRGBA(canvas, topX, topY, width, height, radius) {
36
- if (isNaN(radius) || radius < 1) {
37
- return;
38
- }
39
- radius |= 0;
40
- var imageData = getImageDataFromCanvas(canvas, topX, topY, width, height);
41
- imageData = processImageDataRGBA(imageData, topX, topY, width, height, radius);
42
- canvas.getContext("2d").putImageData(imageData, topX, topY);
43
- }
44
- function processImageDataRGBA(imageData, topX, topY, width, height, radius) {
45
- var pixels = imageData.data;
46
- var div = 2 * radius + 1;
47
- var widthMinus1 = width - 1;
48
- var heightMinus1 = height - 1;
49
- var radiusPlus1 = radius + 1;
50
- var sumFactor = radiusPlus1 * (radiusPlus1 + 1) / 2;
51
- var stackStart = new BlurStack();
52
- var stack = stackStart;
53
- var stackEnd;
54
- for (var i = 1; i < div; i++) {
55
- stack = stack.next = new BlurStack();
56
- if (i === radiusPlus1) {
57
- stackEnd = stack;
58
- }
59
- }
60
- stack.next = stackStart;
61
- var stackIn = null, stackOut = null, yw = 0, yi = 0;
62
- var mulSum = mulTable[radius];
63
- var shgSum = shgTable[radius];
64
- for (var y = 0; y < height; y++) {
65
- stack = stackStart;
66
- var pr = pixels[yi], pg = pixels[yi + 1], pb = pixels[yi + 2], pa = pixels[yi + 3];
67
- for (var _i = 0; _i < radiusPlus1; _i++) {
68
- stack.r = pr;
69
- stack.g = pg;
70
- stack.b = pb;
71
- stack.a = pa;
72
- stack = stack.next;
73
- }
74
- 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;
75
- for (var _i2 = 1; _i2 < radiusPlus1; _i2++) {
76
- var p = yi + ((widthMinus1 < _i2 ? widthMinus1 : _i2) << 2);
77
- var r = pixels[p], g = pixels[p + 1], b = pixels[p + 2], a = pixels[p + 3];
78
- var rbs = radiusPlus1 - _i2;
79
- rSum += (stack.r = r) * rbs;
80
- gSum += (stack.g = g) * rbs;
81
- bSum += (stack.b = b) * rbs;
82
- aSum += (stack.a = a) * rbs;
83
- rInSum += r;
84
- gInSum += g;
85
- bInSum += b;
86
- aInSum += a;
87
- stack = stack.next;
88
- }
89
- stackIn = stackStart;
90
- stackOut = stackEnd;
91
- for (var x = 0; x < width; x++) {
92
- var paInitial = aSum * mulSum >> shgSum;
93
- pixels[yi + 3] = paInitial;
94
- if (paInitial !== 0) {
95
- var _a2 = 255 / paInitial;
96
- pixels[yi] = (rSum * mulSum >> shgSum) * _a2;
97
- pixels[yi + 1] = (gSum * mulSum >> shgSum) * _a2;
98
- pixels[yi + 2] = (bSum * mulSum >> shgSum) * _a2;
99
- } else {
100
- pixels[yi] = pixels[yi + 1] = pixels[yi + 2] = 0;
101
- }
102
- rSum -= rOutSum;
103
- gSum -= gOutSum;
104
- bSum -= bOutSum;
105
- aSum -= aOutSum;
106
- rOutSum -= stackIn.r;
107
- gOutSum -= stackIn.g;
108
- bOutSum -= stackIn.b;
109
- aOutSum -= stackIn.a;
110
- var _p = x + radius + 1;
111
- _p = yw + (_p < widthMinus1 ? _p : widthMinus1) << 2;
112
- rInSum += stackIn.r = pixels[_p];
113
- gInSum += stackIn.g = pixels[_p + 1];
114
- bInSum += stackIn.b = pixels[_p + 2];
115
- aInSum += stackIn.a = pixels[_p + 3];
116
- rSum += rInSum;
117
- gSum += gInSum;
118
- bSum += bInSum;
119
- aSum += aInSum;
120
- stackIn = stackIn.next;
121
- var _stackOut = stackOut, _r = _stackOut.r, _g = _stackOut.g, _b = _stackOut.b, _a = _stackOut.a;
122
- rOutSum += _r;
123
- gOutSum += _g;
124
- bOutSum += _b;
125
- aOutSum += _a;
126
- rInSum -= _r;
127
- gInSum -= _g;
128
- bInSum -= _b;
129
- aInSum -= _a;
130
- stackOut = stackOut.next;
131
- yi += 4;
132
- }
133
- yw += width;
134
- }
135
- for (var _x = 0; _x < width; _x++) {
136
- yi = _x << 2;
137
- 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;
138
- stack = stackStart;
139
- for (var _i3 = 0; _i3 < radiusPlus1; _i3++) {
140
- stack.r = _pr;
141
- stack.g = _pg;
142
- stack.b = _pb;
143
- stack.a = _pa;
144
- stack = stack.next;
145
- }
146
- var yp = width;
147
- var _gInSum = 0, _bInSum = 0, _aInSum = 0, _rInSum = 0;
148
- for (var _i4 = 1; _i4 <= radius; _i4++) {
149
- yi = yp + _x << 2;
150
- var _rbs = radiusPlus1 - _i4;
151
- _rSum += (stack.r = _pr = pixels[yi]) * _rbs;
152
- _gSum += (stack.g = _pg = pixels[yi + 1]) * _rbs;
153
- _bSum += (stack.b = _pb = pixels[yi + 2]) * _rbs;
154
- _aSum += (stack.a = _pa = pixels[yi + 3]) * _rbs;
155
- _rInSum += _pr;
156
- _gInSum += _pg;
157
- _bInSum += _pb;
158
- _aInSum += _pa;
159
- stack = stack.next;
160
- if (_i4 < heightMinus1) {
161
- yp += width;
162
- }
163
- }
164
- yi = _x;
165
- stackIn = stackStart;
166
- stackOut = stackEnd;
167
- for (var _y = 0; _y < height; _y++) {
168
- var _p2 = yi << 2;
169
- pixels[_p2 + 3] = _pa = _aSum * mulSum >> shgSum;
170
- if (_pa > 0) {
171
- _pa = 255 / _pa;
172
- pixels[_p2] = (_rSum * mulSum >> shgSum) * _pa;
173
- pixels[_p2 + 1] = (_gSum * mulSum >> shgSum) * _pa;
174
- pixels[_p2 + 2] = (_bSum * mulSum >> shgSum) * _pa;
175
- } else {
176
- pixels[_p2] = pixels[_p2 + 1] = pixels[_p2 + 2] = 0;
177
- }
178
- _rSum -= _rOutSum;
179
- _gSum -= _gOutSum;
180
- _bSum -= _bOutSum;
181
- _aSum -= _aOutSum;
182
- _rOutSum -= stackIn.r;
183
- _gOutSum -= stackIn.g;
184
- _bOutSum -= stackIn.b;
185
- _aOutSum -= stackIn.a;
186
- _p2 = _x + ((_p2 = _y + radiusPlus1) < heightMinus1 ? _p2 : heightMinus1) * width << 2;
187
- _rSum += _rInSum += stackIn.r = pixels[_p2];
188
- _gSum += _gInSum += stackIn.g = pixels[_p2 + 1];
189
- _bSum += _bInSum += stackIn.b = pixels[_p2 + 2];
190
- _aSum += _aInSum += stackIn.a = pixels[_p2 + 3];
191
- stackIn = stackIn.next;
192
- _rOutSum += _pr = stackOut.r;
193
- _gOutSum += _pg = stackOut.g;
194
- _bOutSum += _pb = stackOut.b;
195
- _aOutSum += _pa = stackOut.a;
196
- _rInSum -= _pr;
197
- _gInSum -= _pg;
198
- _bInSum -= _pb;
199
- _aInSum -= _pa;
200
- stackOut = stackOut.next;
201
- yi += width;
202
- }
203
- }
204
- return imageData;
205
- }
206
- var BlurStack = function BlurStack2() {
207
- _classCallCheck(this, BlurStack2);
208
- this.r = 0;
209
- this.g = 0;
210
- this.b = 0;
211
- this.a = 0;
212
- this.next = null;
213
- };
214
- export { processCanvasRGBA as p };
@@ -1,441 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- var t = function(r2, e2) {
16
- return (t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t2, r3) {
17
- t2.__proto__ = r3;
18
- } || function(t2, r3) {
19
- for (var e3 in r3)
20
- Object.prototype.hasOwnProperty.call(r3, e3) && (t2[e3] = r3[e3]);
21
- })(r2, e2);
22
- };
23
- function r(r2, e2) {
24
- if ("function" != typeof e2 && null !== e2)
25
- throw new TypeError("Class extends value " + String(e2) + " is not a constructor or null");
26
- function i2() {
27
- this.constructor = r2;
28
- }
29
- t(r2, e2), r2.prototype = null === e2 ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
30
- }
31
- function e(t2) {
32
- var r2 = "";
33
- Array.isArray(t2) || (t2 = [t2]);
34
- for (var e2 = 0; e2 < t2.length; e2++) {
35
- var i2 = t2[e2];
36
- if (i2.type === _.CLOSE_PATH)
37
- r2 += "z";
38
- else if (i2.type === _.HORIZ_LINE_TO)
39
- r2 += (i2.relative ? "h" : "H") + i2.x;
40
- else if (i2.type === _.VERT_LINE_TO)
41
- r2 += (i2.relative ? "v" : "V") + i2.y;
42
- else if (i2.type === _.MOVE_TO)
43
- r2 += (i2.relative ? "m" : "M") + i2.x + " " + i2.y;
44
- else if (i2.type === _.LINE_TO)
45
- r2 += (i2.relative ? "l" : "L") + i2.x + " " + i2.y;
46
- else if (i2.type === _.CURVE_TO)
47
- r2 += (i2.relative ? "c" : "C") + i2.x1 + " " + i2.y1 + " " + i2.x2 + " " + i2.y2 + " " + i2.x + " " + i2.y;
48
- else if (i2.type === _.SMOOTH_CURVE_TO)
49
- r2 += (i2.relative ? "s" : "S") + i2.x2 + " " + i2.y2 + " " + i2.x + " " + i2.y;
50
- else if (i2.type === _.QUAD_TO)
51
- r2 += (i2.relative ? "q" : "Q") + i2.x1 + " " + i2.y1 + " " + i2.x + " " + i2.y;
52
- else if (i2.type === _.SMOOTH_QUAD_TO)
53
- r2 += (i2.relative ? "t" : "T") + i2.x + " " + i2.y;
54
- else {
55
- if (i2.type !== _.ARC)
56
- throw new Error('Unexpected command type "' + i2.type + '" at index ' + e2 + ".");
57
- r2 += (i2.relative ? "a" : "A") + i2.rX + " " + i2.rY + " " + i2.xRot + " " + +i2.lArcFlag + " " + +i2.sweepFlag + " " + i2.x + " " + i2.y;
58
- }
59
- }
60
- return r2;
61
- }
62
- function i(t2, r2) {
63
- var e2 = t2[0], i2 = t2[1];
64
- return [e2 * Math.cos(r2) - i2 * Math.sin(r2), e2 * Math.sin(r2) + i2 * Math.cos(r2)];
65
- }
66
- function a() {
67
- for (var t2 = [], r2 = 0; r2 < arguments.length; r2++)
68
- t2[r2] = arguments[r2];
69
- for (var e2 = 0; e2 < t2.length; e2++)
70
- if ("number" != typeof t2[e2])
71
- throw new Error("assertNumbers arguments[" + e2 + "] is not a number. " + typeof t2[e2] + " == typeof " + t2[e2]);
72
- return true;
73
- }
74
- var n = Math.PI;
75
- function o(t2, r2, e2) {
76
- t2.lArcFlag = 0 === t2.lArcFlag ? 0 : 1, t2.sweepFlag = 0 === t2.sweepFlag ? 0 : 1;
77
- var a2 = t2.rX, o2 = t2.rY, s2 = t2.x, u2 = t2.y;
78
- a2 = Math.abs(t2.rX), o2 = Math.abs(t2.rY);
79
- 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);
80
- 1 < p2 && (a2 *= Math.sqrt(p2), o2 *= Math.sqrt(p2)), t2.rX = a2, t2.rY = o2;
81
- 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);
82
- 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;
83
- }
84
- function s(t2, r2, e2) {
85
- a(t2, r2, e2);
86
- var i2 = t2 * t2 + r2 * r2 - e2 * e2;
87
- if (0 > i2)
88
- return [];
89
- if (0 === i2)
90
- return [[t2 * e2 / (t2 * t2 + r2 * r2), r2 * e2 / (t2 * t2 + r2 * r2)]];
91
- var n2 = Math.sqrt(i2);
92
- 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)]];
93
- }
94
- var u, h = Math.PI / 180;
95
- function c(t2, r2, e2) {
96
- return (1 - e2) * t2 + e2 * r2;
97
- }
98
- function y(t2, r2, e2, i2) {
99
- return t2 + Math.cos(i2 / 180 * n) * r2 + Math.sin(i2 / 180 * n) * e2;
100
- }
101
- function p(t2, r2, e2, i2) {
102
- 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;
103
- return Math.abs(s2) < a2 ? [-h2 / u2] : function(t3, r3, e3) {
104
- void 0 === e3 && (e3 = 1e-6);
105
- var i3 = t3 * t3 / 4 - r3;
106
- if (i3 < -e3)
107
- return [];
108
- if (i3 <= e3)
109
- return [-t3 / 2];
110
- var a3 = Math.sqrt(i3);
111
- return [-t3 / 2 - a3, -t3 / 2 + a3];
112
- }(u2 / s2, h2 / s2, a2);
113
- }
114
- function m(t2, r2, e2, i2, a2) {
115
- var n2 = 1 - a2;
116
- return t2 * (n2 * n2 * n2) + r2 * (3 * n2 * n2 * a2) + e2 * (3 * n2 * a2 * a2) + i2 * (a2 * a2 * a2);
117
- }
118
- !function(t2) {
119
- function r2() {
120
- return u2(function(t3, r3, e3) {
121
- 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;
122
- });
123
- }
124
- function e2() {
125
- var t3 = NaN, r3 = NaN, e3 = NaN, i2 = NaN;
126
- return u2(function(a2, n3, o2) {
127
- 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;
128
- });
129
- }
130
- function n2() {
131
- var t3 = NaN, r3 = NaN;
132
- return u2(function(e3, i2, a2) {
133
- 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) {
134
- t3 = e3.relative ? i2 + e3.x1 : e3.x1, r3 = e3.relative ? a2 + e3.y1 : e3.y1;
135
- var n3 = e3.x1, o2 = e3.y1;
136
- 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;
137
- } else
138
- t3 = NaN, r3 = NaN;
139
- return e3;
140
- });
141
- }
142
- function u2(t3) {
143
- var r3 = 0, e3 = 0, i2 = NaN, a2 = NaN;
144
- return function(n3) {
145
- if (isNaN(i2) && !(n3.type & _.MOVE_TO))
146
- throw new Error("path must start with moveto");
147
- var o2 = t3(n3, r3, e3, i2, a2);
148
- 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;
149
- };
150
- }
151
- function O2(t3, r3, e3, i2, n3, o2) {
152
- return a(t3, r3, e3, i2, n3, o2), u2(function(a2, s2, u3, h2) {
153
- 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;
154
- function l3(t4) {
155
- return t4 * t4;
156
- }
157
- 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));
158
- var T2 = t3 * i2 - r3 * e3;
159
- if (void 0 !== a2.xRot && (1 !== t3 || 0 !== r3 || 0 !== e3 || 1 !== i2))
160
- if (0 === T2)
161
- delete a2.rX, delete a2.rY, delete a2.xRot, delete a2.lArcFlag, delete a2.sweepFlag, a2.type = _.LINE_TO;
162
- else {
163
- 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);
164
- 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;
165
- }
166
- return void 0 !== a2.sweepFlag && 0 > T2 && (a2.sweepFlag = +!a2.sweepFlag), a2;
167
- });
168
- }
169
- function l2() {
170
- return function(t3) {
171
- var r3 = {};
172
- for (var e3 in t3)
173
- r3[e3] = t3[e3];
174
- return r3;
175
- };
176
- }
177
- t2.ROUND = function(t3) {
178
- function r3(r4) {
179
- return Math.round(r4 * t3) / t3;
180
- }
181
- return void 0 === t3 && (t3 = 1e13), a(t3), function(t4) {
182
- 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;
183
- };
184
- }, t2.TO_ABS = r2, t2.TO_REL = function() {
185
- return u2(function(t3, r3, e3) {
186
- 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;
187
- });
188
- }, t2.NORMALIZE_HVZ = function(t3, r3, e3) {
189
- return void 0 === t3 && (t3 = true), void 0 === r3 && (r3 = true), void 0 === e3 && (e3 = true), u2(function(i2, a2, n3, o2, s2) {
190
- if (isNaN(o2) && !(i2.type & _.MOVE_TO))
191
- throw new Error("path must start with moveto");
192
- 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;
193
- });
194
- }, t2.NORMALIZE_ST = e2, t2.QT_TO_C = n2, t2.INFO = u2, t2.SANITIZE = function(t3) {
195
- void 0 === t3 && (t3 = 0), a(t3);
196
- var r3 = NaN, e3 = NaN, i2 = NaN, n3 = NaN;
197
- return u2(function(a2, o2, s2, u3, h2) {
198
- var c2 = Math.abs, y2 = false, p2 = 0, m2 = 0;
199
- 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) {
200
- 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;
201
- 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;
202
- 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;
203
- c2(O3) <= t3 && c2(l3) <= t3 && c2(p2) <= t3 && c2(m2) <= t3 && c2(T2) <= t3 && c2(v2) <= t3 && (y2 = true);
204
- }
205
- return a2.type & _.CLOSE_PATH && c2(o2 - u3) <= t3 && c2(s2 - h2) <= t3 && (y2 = true), y2 ? [] : a2;
206
- });
207
- }, t2.MATRIX = O2, t2.ROTATE = function(t3, r3, e3) {
208
- void 0 === r3 && (r3 = 0), void 0 === e3 && (e3 = 0), a(t3, r3, e3);
209
- var i2 = Math.sin(t3), n3 = Math.cos(t3);
210
- return O2(n3, i2, -i2, n3, r3 - r3 * n3 + e3 * i2, e3 - r3 * i2 - e3 * n3);
211
- }, t2.TRANSLATE = function(t3, r3) {
212
- return void 0 === r3 && (r3 = 0), a(t3, r3), O2(1, 0, 0, 1, t3, r3);
213
- }, t2.SCALE = function(t3, r3) {
214
- return void 0 === r3 && (r3 = t3), a(t3, r3), O2(t3, 0, 0, r3, 0, 0);
215
- }, t2.SKEW_X = function(t3) {
216
- return a(t3), O2(1, 0, Math.atan(t3), 1, 0, 0);
217
- }, t2.SKEW_Y = function(t3) {
218
- return a(t3), O2(1, Math.atan(t3), 0, 1, 0, 0);
219
- }, t2.X_AXIS_SYMMETRY = function(t3) {
220
- return void 0 === t3 && (t3 = 0), a(t3), O2(-1, 0, 0, 1, t3, 0);
221
- }, t2.Y_AXIS_SYMMETRY = function(t3) {
222
- return void 0 === t3 && (t3 = 0), a(t3), O2(1, 0, 0, -1, 0, t3);
223
- }, t2.A_TO_C = function() {
224
- return u2(function(t3, r3, e3) {
225
- return _.ARC === t3.type ? function(t4, r4, e4) {
226
- var a2, n3, s2, u3;
227
- t4.cX || o(t4, r4, e4);
228
- 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++) {
229
- var f2 = c(t4.phi1, t4.phi2, v2 / m2), N2 = c(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];
230
- O3[v2] = { relative: t4.relative, type: _.CURVE_TO };
231
- var H = function(r5, e5) {
232
- var a3 = i([r5 * t4.rX, e5 * t4.rY], t4.xRot), n4 = a3[0], o2 = a3[1];
233
- return [t4.cX + n4, t4.cY + o2];
234
- };
235
- 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];
236
- }
237
- return O3;
238
- }(t3, t3.relative ? 0 : r3, t3.relative ? 0 : e3) : t3;
239
- });
240
- }, t2.ANNOTATE_ARCS = function() {
241
- return u2(function(t3, r3, e3) {
242
- return t3.relative && (r3 = 0, e3 = 0), _.ARC === t3.type && o(t3, r3, e3), t3;
243
- });
244
- }, t2.CLONE = l2, t2.CALCULATE_BOUNDS = function() {
245
- var t3 = function(t4) {
246
- var r3 = {};
247
- for (var e3 in t4)
248
- r3[e3] = t4[e3];
249
- return r3;
250
- }, i2 = r2(), a2 = n2(), h2 = e2(), c2 = u2(function(r3, e3, n3) {
251
- var u3 = h2(a2(i2(t3(r3))));
252
- function O3(t4) {
253
- t4 > c2.maxX && (c2.maxX = t4), t4 < c2.minX && (c2.minX = t4);
254
- }
255
- function l3(t4) {
256
- t4 > c2.maxY && (c2.maxY = t4), t4 < c2.minY && (c2.minY = t4);
257
- }
258
- 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) {
259
- O3(u3.x), l3(u3.y);
260
- for (var T2 = 0, v2 = p(e3, u3.x1, u3.x2, u3.x); T2 < v2.length; T2++) {
261
- 0 < (w = v2[T2]) && 1 > w && O3(m(e3, u3.x1, u3.x2, u3.x, w));
262
- }
263
- for (var f2 = 0, N2 = p(n3, u3.y1, u3.y2, u3.y); f2 < N2.length; f2++) {
264
- 0 < (w = N2[f2]) && 1 > w && l3(m(n3, u3.y1, u3.y2, u3.y, w));
265
- }
266
- }
267
- if (u3.type & _.ARC) {
268
- O3(u3.x), l3(u3.y), o(u3, e3, n3);
269
- 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) {
270
- var r4 = t4[0], e4 = t4[1], i3 = 180 * Math.atan2(e4, r4) / Math.PI;
271
- return i3 < R ? i3 + 360 : i3;
272
- }, S = 0, L = s(A, -d, 0).map(I); S < L.length; S++) {
273
- (w = L[S]) > R && w < g && O3(y(u3.cX, d, A, w));
274
- }
275
- for (var H = 0, U = s(C, -E, 0).map(I); H < U.length; H++) {
276
- var w;
277
- (w = U[H]) > R && w < g && l3(y(u3.cY, E, C, w));
278
- }
279
- }
280
- return r3;
281
- });
282
- return c2.minX = 1 / 0, c2.maxX = -1 / 0, c2.minY = 1 / 0, c2.maxY = -1 / 0, c2;
283
- };
284
- }(u || (u = {}));
285
- var O, l = function() {
286
- function t2() {
287
- }
288
- return t2.prototype.round = function(t3) {
289
- return this.transform(u.ROUND(t3));
290
- }, t2.prototype.toAbs = function() {
291
- return this.transform(u.TO_ABS());
292
- }, t2.prototype.toRel = function() {
293
- return this.transform(u.TO_REL());
294
- }, t2.prototype.normalizeHVZ = function(t3, r2, e2) {
295
- return this.transform(u.NORMALIZE_HVZ(t3, r2, e2));
296
- }, t2.prototype.normalizeST = function() {
297
- return this.transform(u.NORMALIZE_ST());
298
- }, t2.prototype.qtToC = function() {
299
- return this.transform(u.QT_TO_C());
300
- }, t2.prototype.aToC = function() {
301
- return this.transform(u.A_TO_C());
302
- }, t2.prototype.sanitize = function(t3) {
303
- return this.transform(u.SANITIZE(t3));
304
- }, t2.prototype.translate = function(t3, r2) {
305
- return this.transform(u.TRANSLATE(t3, r2));
306
- }, t2.prototype.scale = function(t3, r2) {
307
- return this.transform(u.SCALE(t3, r2));
308
- }, t2.prototype.rotate = function(t3, r2, e2) {
309
- return this.transform(u.ROTATE(t3, r2, e2));
310
- }, t2.prototype.matrix = function(t3, r2, e2, i2, a2, n2) {
311
- return this.transform(u.MATRIX(t3, r2, e2, i2, a2, n2));
312
- }, t2.prototype.skewX = function(t3) {
313
- return this.transform(u.SKEW_X(t3));
314
- }, t2.prototype.skewY = function(t3) {
315
- return this.transform(u.SKEW_Y(t3));
316
- }, t2.prototype.xSymmetry = function(t3) {
317
- return this.transform(u.X_AXIS_SYMMETRY(t3));
318
- }, t2.prototype.ySymmetry = function(t3) {
319
- return this.transform(u.Y_AXIS_SYMMETRY(t3));
320
- }, t2.prototype.annotateArcs = function() {
321
- return this.transform(u.ANNOTATE_ARCS());
322
- }, t2;
323
- }(), T = function(t2) {
324
- return " " === t2 || " " === t2 || "\r" === t2 || "\n" === t2;
325
- }, v = function(t2) {
326
- return "0".charCodeAt(0) <= t2.charCodeAt(0) && t2.charCodeAt(0) <= "9".charCodeAt(0);
327
- }, f = function(t2) {
328
- function e2() {
329
- var r2 = t2.call(this) || this;
330
- return r2.curNumber = "", r2.curCommandType = -1, r2.curCommandRelative = false, r2.canParseCommandOrComma = true, r2.curNumberHasExp = false, r2.curNumberHasExpDigits = false, r2.curNumberHasDecimal = false, r2.curArgs = [], r2;
331
- }
332
- return r(e2, t2), e2.prototype.finish = function(t3) {
333
- if (void 0 === t3 && (t3 = []), this.parse(" ", t3), 0 !== this.curArgs.length || !this.canParseCommandOrComma)
334
- throw new SyntaxError("Unterminated command at the path end.");
335
- return t3;
336
- }, e2.prototype.parse = function(t3, r2) {
337
- var e3 = this;
338
- void 0 === r2 && (r2 = []);
339
- for (var i2 = function(t4) {
340
- r2.push(t4), e3.curArgs.length = 0, e3.canParseCommandOrComma = true;
341
- }, a2 = 0; a2 < t3.length; a2++) {
342
- 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);
343
- if (!v(n2) || s2)
344
- if ("e" !== n2 && "E" !== n2)
345
- if ("-" !== n2 && "+" !== n2 || !this.curNumberHasExp || this.curNumberHasExpDigits)
346
- if ("." !== n2 || this.curNumberHasExp || this.curNumberHasDecimal || o2) {
347
- if (this.curNumber && -1 !== this.curCommandType) {
348
- var u2 = Number(this.curNumber);
349
- if (isNaN(u2))
350
- throw new SyntaxError("Invalid number ending at " + a2);
351
- if (this.curCommandType === _.ARC) {
352
- if (0 === this.curArgs.length || 1 === this.curArgs.length) {
353
- if (0 > u2)
354
- throw new SyntaxError('Expected positive number, got "' + u2 + '" at index "' + a2 + '"');
355
- } else if ((3 === this.curArgs.length || 4 === this.curArgs.length) && "0" !== this.curNumber && "1" !== this.curNumber)
356
- throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + a2 + '"');
357
- }
358
- 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;
359
- }
360
- if (!T(n2))
361
- if ("," === n2 && this.canParseCommandOrComma)
362
- this.canParseCommandOrComma = false;
363
- else if ("+" !== n2 && "-" !== n2 && "." !== n2)
364
- if (s2)
365
- this.curNumber = n2, this.curNumberHasDecimal = false;
366
- else {
367
- if (0 !== this.curArgs.length)
368
- throw new SyntaxError("Unterminated command at index " + a2 + ".");
369
- if (!this.canParseCommandOrComma)
370
- throw new SyntaxError('Unexpected character "' + n2 + '" at index ' + a2 + ". Command cannot follow comma");
371
- if (this.canParseCommandOrComma = false, "z" !== n2 && "Z" !== n2)
372
- if ("h" === n2 || "H" === n2)
373
- this.curCommandType = _.HORIZ_LINE_TO, this.curCommandRelative = "h" === n2;
374
- else if ("v" === n2 || "V" === n2)
375
- this.curCommandType = _.VERT_LINE_TO, this.curCommandRelative = "v" === n2;
376
- else if ("m" === n2 || "M" === n2)
377
- this.curCommandType = _.MOVE_TO, this.curCommandRelative = "m" === n2;
378
- else if ("l" === n2 || "L" === n2)
379
- this.curCommandType = _.LINE_TO, this.curCommandRelative = "l" === n2;
380
- else if ("c" === n2 || "C" === n2)
381
- this.curCommandType = _.CURVE_TO, this.curCommandRelative = "c" === n2;
382
- else if ("s" === n2 || "S" === n2)
383
- this.curCommandType = _.SMOOTH_CURVE_TO, this.curCommandRelative = "s" === n2;
384
- else if ("q" === n2 || "Q" === n2)
385
- this.curCommandType = _.QUAD_TO, this.curCommandRelative = "q" === n2;
386
- else if ("t" === n2 || "T" === n2)
387
- this.curCommandType = _.SMOOTH_QUAD_TO, this.curCommandRelative = "t" === n2;
388
- else {
389
- if ("a" !== n2 && "A" !== n2)
390
- throw new SyntaxError('Unexpected character "' + n2 + '" at index ' + a2 + ".");
391
- this.curCommandType = _.ARC, this.curCommandRelative = "a" === n2;
392
- }
393
- else
394
- r2.push({ type: _.CLOSE_PATH }), this.canParseCommandOrComma = true, this.curCommandType = -1;
395
- }
396
- else
397
- this.curNumber = n2, this.curNumberHasDecimal = "." === n2;
398
- } else
399
- this.curNumber += n2, this.curNumberHasDecimal = true;
400
- else
401
- this.curNumber += n2;
402
- else
403
- this.curNumber += n2, this.curNumberHasExp = true;
404
- else
405
- this.curNumber += n2, this.curNumberHasExpDigits = this.curNumberHasExp;
406
- }
407
- return r2;
408
- }, e2.prototype.transform = function(t3) {
409
- return Object.create(this, { parse: { value: function(r2, e3) {
410
- void 0 === e3 && (e3 = []);
411
- for (var i2 = 0, a2 = Object.getPrototypeOf(this).parse.call(this, r2); i2 < a2.length; i2++) {
412
- var n2 = a2[i2], o2 = t3(n2);
413
- Array.isArray(o2) ? e3.push.apply(e3, o2) : e3.push(o2);
414
- }
415
- return e3;
416
- } } });
417
- }, e2;
418
- }(l), _ = function(t2) {
419
- function i2(r2) {
420
- var e2 = t2.call(this) || this;
421
- return e2.commands = "string" == typeof r2 ? i2.parse(r2) : r2, e2;
422
- }
423
- return r(i2, t2), i2.prototype.encode = function() {
424
- return i2.encode(this.commands);
425
- }, i2.prototype.getBounds = function() {
426
- var t3 = u.CALCULATE_BOUNDS();
427
- return this.transform(t3), t3;
428
- }, i2.prototype.transform = function(t3) {
429
- for (var r2 = [], e2 = 0, i3 = this.commands; e2 < i3.length; e2++) {
430
- var a2 = t3(i3[e2]);
431
- Array.isArray(a2) ? r2.push.apply(r2, a2) : r2.push(a2);
432
- }
433
- return this.commands = r2, this;
434
- }, i2.encode = function(t3) {
435
- return e(t3);
436
- }, i2.parse = function(t3) {
437
- var r2 = new f(), e2 = [];
438
- return r2.parse(t3, e2), r2.finish(e2), e2;
439
- }, 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;
440
- }(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);
441
- export { _ };