node-red-contrib-tak-registration 0.3.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/README.md +1 -1
  2. package/node_modules/@turf/along/package.json +41 -69
  3. package/node_modules/@turf/angle/package.json +44 -75
  4. package/node_modules/@turf/area/package.json +38 -68
  5. package/node_modules/@turf/bbox/package.json +37 -81
  6. package/node_modules/@turf/bbox-clip/package.json +44 -81
  7. package/node_modules/@turf/bbox-polygon/package.json +36 -66
  8. package/node_modules/@turf/bearing/package.json +36 -70
  9. package/node_modules/@turf/bezier-spline/package.json +39 -67
  10. package/node_modules/@turf/boolean-clockwise/package.json +42 -83
  11. package/node_modules/@turf/boolean-contains/package.json +46 -80
  12. package/node_modules/@turf/boolean-crosses/package.json +45 -79
  13. package/node_modules/@turf/boolean-disjoint/package.json +44 -79
  14. package/node_modules/@turf/boolean-equal/package.json +47 -84
  15. package/node_modules/@turf/boolean-intersects/package.json +42 -77
  16. package/node_modules/@turf/boolean-overlap/package.json +48 -82
  17. package/node_modules/@turf/boolean-parallel/package.json +42 -73
  18. package/node_modules/@turf/boolean-point-in-polygon/package.json +37 -77
  19. package/node_modules/@turf/boolean-point-on-line/package.json +39 -73
  20. package/node_modules/@turf/boolean-within/package.json +46 -79
  21. package/node_modules/@turf/buffer/package.json +47 -84
  22. package/node_modules/@turf/center/package.json +42 -73
  23. package/node_modules/@turf/center-mean/package.json +45 -78
  24. package/node_modules/@turf/center-median/package.json +45 -76
  25. package/node_modules/@turf/center-of-mass/package.json +40 -68
  26. package/node_modules/@turf/centroid/package.json +40 -74
  27. package/node_modules/@turf/circle/package.json +41 -71
  28. package/node_modules/@turf/clean-coords/package.json +40 -75
  29. package/node_modules/@turf/clone/package.json +36 -81
  30. package/node_modules/@turf/clusters/package.json +39 -70
  31. package/node_modules/@turf/clusters-dbscan/package.json +51 -88
  32. package/node_modules/@turf/clusters-kmeans/package.json +53 -90
  33. package/node_modules/@turf/collect/package.json +42 -73
  34. package/node_modules/@turf/combine/package.json +37 -65
  35. package/node_modules/@turf/concave/package.json +56 -111
  36. package/node_modules/@turf/convex/package.json +39 -68
  37. package/node_modules/@turf/destination/package.json +41 -75
  38. package/node_modules/@turf/difference/package.json +35 -63
  39. package/node_modules/@turf/dissolve/package.json +38 -66
  40. package/node_modules/@turf/distance/package.json +38 -83
  41. package/node_modules/@turf/distance-weight/package.json +40 -72
  42. package/node_modules/@turf/ellipse/package.json +43 -75
  43. package/node_modules/@turf/envelope/package.json +36 -65
  44. package/node_modules/@turf/explode/package.json +36 -67
  45. package/node_modules/@turf/flatten/package.json +39 -73
  46. package/node_modules/@turf/flip/package.json +36 -64
  47. package/node_modules/@turf/great-circle/package.json +41 -78
  48. package/node_modules/@turf/helpers/package.json +38 -184
  49. package/node_modules/@turf/hex-grid/package.json +50 -97
  50. package/node_modules/@turf/interpolate/package.json +47 -78
  51. package/node_modules/@turf/intersect/package.json +39 -69
  52. package/node_modules/@turf/invariant/package.json +36 -126
  53. package/node_modules/@turf/isobands/package.json +52 -83
  54. package/node_modules/@turf/isolines/package.json +48 -79
  55. package/node_modules/@turf/kinks/package.json +35 -63
  56. package/node_modules/@turf/length/package.json +43 -78
  57. package/node_modules/@turf/line-arc/package.json +36 -65
  58. package/node_modules/@turf/line-chunk/package.json +44 -84
  59. package/node_modules/@turf/line-intersect/package.json +46 -85
  60. package/node_modules/@turf/line-offset/package.json +41 -78
  61. package/node_modules/@turf/line-overlap/package.json +48 -80
  62. package/node_modules/@turf/line-segment/package.json +38 -70
  63. package/node_modules/@turf/line-slice/package.json +39 -67
  64. package/node_modules/@turf/line-slice-along/package.json +36 -65
  65. package/node_modules/@turf/line-split/package.json +46 -77
  66. package/node_modules/@turf/line-to-polygon/package.json +43 -74
  67. package/node_modules/@turf/mask/package.json +35 -63
  68. package/node_modules/@turf/meta/package.json +39 -128
  69. package/node_modules/@turf/midpoint/package.json +36 -64
  70. package/node_modules/@turf/moran-index/package.json +39 -70
  71. package/node_modules/@turf/nearest-point/package.json +39 -69
  72. package/node_modules/@turf/nearest-point-on-line/package.json +40 -71
  73. package/node_modules/@turf/nearest-point-to-line/package.json +47 -78
  74. package/node_modules/@turf/planepoint/package.json +34 -62
  75. package/node_modules/@turf/point-grid/package.json +45 -80
  76. package/node_modules/@turf/point-on-feature/package.json +40 -68
  77. package/node_modules/@turf/point-to-line-distance/package.json +46 -78
  78. package/node_modules/@turf/points-within-polygon/package.json +35 -64
  79. package/node_modules/@turf/polygon-smooth/package.json +37 -68
  80. package/node_modules/@turf/polygon-tangents/package.json +43 -77
  81. package/node_modules/@turf/polygon-to-line/package.json +39 -69
  82. package/node_modules/@turf/polygonize/package.json +43 -77
  83. package/node_modules/@turf/projection/package.json +44 -77
  84. package/node_modules/@turf/random/package.json +34 -62
  85. package/node_modules/@turf/rectangle-grid/package.json +43 -77
  86. package/node_modules/@turf/rewind/package.json +43 -83
  87. package/node_modules/@turf/rhumb-bearing/package.json +43 -85
  88. package/node_modules/@turf/rhumb-destination/package.json +44 -85
  89. package/node_modules/@turf/rhumb-distance/package.json +44 -84
  90. package/node_modules/@turf/sample/package.json +32 -60
  91. package/node_modules/@turf/sector/package.json +37 -65
  92. package/node_modules/@turf/shortest-path/package.json +45 -79
  93. package/node_modules/@turf/simplify/package.json +43 -77
  94. package/node_modules/@turf/square/package.json +33 -62
  95. package/node_modules/@turf/square-grid/package.json +40 -69
  96. package/node_modules/@turf/standard-deviational-ellipse/package.json +43 -74
  97. package/node_modules/@turf/tag/package.json +38 -66
  98. package/node_modules/@turf/tesselate/package.json +40 -80
  99. package/node_modules/@turf/tin/package.json +34 -63
  100. package/node_modules/@turf/transform-rotate/package.json +45 -80
  101. package/node_modules/@turf/transform-scale/package.json +51 -86
  102. package/node_modules/@turf/transform-translate/package.json +44 -78
  103. package/node_modules/@turf/triangle-grid/package.json +42 -71
  104. package/node_modules/@turf/truncate/package.json +40 -72
  105. package/node_modules/@turf/turf/package.json +74 -102
  106. package/node_modules/@turf/union/package.json +39 -67
  107. package/node_modules/@turf/unkink-polygon/package.json +40 -68
  108. package/node_modules/@turf/voronoi/package.json +43 -83
  109. package/node_modules/@types/geojson/package.json +42 -66
  110. package/node_modules/adm-zip/LICENSE +21 -21
  111. package/node_modules/adm-zip/adm-zip.js +25 -22
  112. package/node_modules/adm-zip/headers/mainHeader.js +2 -1
  113. package/node_modules/adm-zip/package.json +28 -57
  114. package/node_modules/adm-zip/util/utils.js +1 -0
  115. package/node_modules/asynckit/package.json +40 -68
  116. package/node_modules/axios/CHANGELOG.md +473 -837
  117. package/node_modules/axios/LICENSE +4 -16
  118. package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  119. package/node_modules/axios/README.md +518 -114
  120. package/node_modules/axios/SECURITY.md +4 -3
  121. package/node_modules/axios/dist/axios.js +2759 -2070
  122. package/node_modules/axios/dist/axios.js.map +1 -0
  123. package/node_modules/axios/dist/axios.min.js +2 -2
  124. package/node_modules/axios/dist/axios.min.js.map +1 -0
  125. package/node_modules/axios/dist/browser/axios.cjs +3210 -0
  126. package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  127. package/node_modules/axios/dist/esm/axios.js +3232 -0
  128. package/node_modules/axios/dist/esm/axios.js.map +1 -0
  129. package/node_modules/axios/dist/esm/axios.min.js +2 -0
  130. package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  131. package/node_modules/axios/dist/node/axios.cjs +4237 -0
  132. package/node_modules/axios/dist/node/axios.cjs.map +1 -0
  133. package/node_modules/axios/index.d.cts +532 -0
  134. package/node_modules/axios/index.d.ts +398 -72
  135. package/node_modules/axios/index.js +41 -1
  136. package/node_modules/axios/lib/adapters/adapters.js +59 -0
  137. package/node_modules/axios/lib/adapters/http.js +479 -217
  138. package/node_modules/axios/lib/adapters/xhr.js +95 -54
  139. package/node_modules/axios/lib/axios.js +49 -20
  140. package/node_modules/axios/lib/cancel/CancelToken.js +91 -89
  141. package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  142. package/node_modules/axios/lib/cancel/isCancel.js +2 -2
  143. package/node_modules/axios/lib/core/Axios.js +155 -100
  144. package/node_modules/axios/lib/core/AxiosError.js +100 -0
  145. package/node_modules/axios/lib/core/AxiosHeaders.js +288 -0
  146. package/node_modules/axios/lib/core/InterceptorManager.js +62 -45
  147. package/node_modules/axios/lib/core/buildFullPath.js +5 -4
  148. package/node_modules/axios/lib/core/dispatchRequest.js +27 -33
  149. package/node_modules/axios/lib/core/mergeConfig.js +58 -52
  150. package/node_modules/axios/lib/core/settle.js +8 -6
  151. package/node_modules/axios/lib/core/transformData.js +15 -9
  152. package/node_modules/axios/lib/defaults/index.js +76 -41
  153. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  154. package/node_modules/axios/lib/env/classes/FormData.js +2 -0
  155. package/node_modules/axios/lib/env/data.js +1 -3
  156. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
  157. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  158. package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  159. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  160. package/node_modules/axios/lib/helpers/bind.js +3 -7
  161. package/node_modules/axios/lib/helpers/buildURL.js +26 -33
  162. package/node_modules/axios/lib/helpers/callbackify.js +16 -0
  163. package/node_modules/axios/lib/helpers/combineURLs.js +3 -2
  164. package/node_modules/axios/lib/helpers/cookies.js +43 -44
  165. package/node_modules/axios/lib/helpers/deprecatedMethod.js +4 -2
  166. package/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
  167. package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
  168. package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  169. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -2
  170. package/node_modules/axios/lib/helpers/isAxiosError.js +4 -3
  171. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +44 -45
  172. package/node_modules/axios/lib/helpers/null.js +2 -0
  173. package/node_modules/axios/lib/helpers/parseHeaders.js +24 -22
  174. package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  175. package/node_modules/axios/lib/helpers/readBlob.js +15 -0
  176. package/node_modules/axios/lib/helpers/speedometer.js +55 -0
  177. package/node_modules/axios/lib/helpers/spread.js +3 -2
  178. package/node_modules/axios/lib/helpers/throttle.js +33 -0
  179. package/node_modules/axios/lib/helpers/toFormData.js +203 -39
  180. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  181. package/node_modules/axios/lib/helpers/validator.js +27 -18
  182. package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  183. package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  184. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  185. package/node_modules/axios/lib/platform/browser/index.js +64 -0
  186. package/node_modules/axios/lib/platform/index.js +3 -0
  187. package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  188. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  189. package/node_modules/axios/lib/platform/node/index.js +12 -0
  190. package/node_modules/axios/lib/utils.js +517 -144
  191. package/node_modules/axios/package.json +194 -93
  192. package/node_modules/call-bind/package.json +78 -109
  193. package/node_modules/combined-stream/package.json +14 -46
  194. package/node_modules/commander/package.json +20 -53
  195. package/node_modules/concaveman/node_modules/quickselect/package.json +43 -0
  196. package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/README.md +22 -95
  197. package/node_modules/{@turf/unkink-polygon → concaveman}/node_modules/rbush/index.js +131 -181
  198. package/node_modules/concaveman/node_modules/rbush/package.json +56 -0
  199. package/node_modules/concaveman/node_modules/rbush/rbush.js +574 -0
  200. package/node_modules/concaveman/node_modules/rbush/rbush.min.js +1 -0
  201. package/node_modules/concaveman/package.json +15 -46
  202. package/node_modules/d3-array/package.json +19 -47
  203. package/node_modules/d3-geo/package.json +24 -52
  204. package/node_modules/d3-voronoi/package.json +19 -47
  205. package/node_modules/deep-equal/package.json +34 -64
  206. package/node_modules/define-properties/.eslintrc +10 -3
  207. package/node_modules/define-properties/.github/FUNDING.yml +12 -0
  208. package/node_modules/define-properties/.nycrc +9 -0
  209. package/node_modules/define-properties/CHANGELOG.md +39 -0
  210. package/node_modules/define-properties/README.md +11 -13
  211. package/node_modules/define-properties/index.js +12 -17
  212. package/node_modules/define-properties/package.json +85 -95
  213. package/node_modules/delayed-stream/package.json +14 -49
  214. package/node_modules/density-clustering/package.json +46 -70
  215. package/node_modules/earcut/README.md +12 -3
  216. package/node_modules/earcut/dist/earcut.dev.js +47 -50
  217. package/node_modules/earcut/dist/earcut.min.js +1 -1
  218. package/node_modules/earcut/package.json +26 -60
  219. package/node_modules/earcut/src/earcut.js +46 -49
  220. package/node_modules/follow-redirects/README.md +8 -1
  221. package/node_modules/follow-redirects/index.js +83 -36
  222. package/node_modules/follow-redirects/package.json +38 -74
  223. package/node_modules/form-data/package.json +37 -70
  224. package/node_modules/function-bind/package.json +23 -56
  225. package/node_modules/functions-have-names/.editorconfig +20 -0
  226. package/node_modules/functions-have-names/.eslintrc +19 -0
  227. package/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
  228. package/node_modules/functions-have-names/.nycrc +9 -0
  229. package/node_modules/functions-have-names/CHANGELOG.md +89 -0
  230. package/node_modules/functions-have-names/LICENSE +21 -0
  231. package/node_modules/functions-have-names/README.md +40 -0
  232. package/node_modules/functions-have-names/index.js +31 -0
  233. package/node_modules/functions-have-names/package.json +55 -0
  234. package/node_modules/functions-have-names/test/index.js +65 -0
  235. package/node_modules/geojson-equality/package.json +23 -55
  236. package/node_modules/geojson-rbush/node_modules/quickselect/package.json +43 -0
  237. package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/README.md +22 -95
  238. package/node_modules/{@turf/collect → geojson-rbush}/node_modules/rbush/index.js +131 -181
  239. package/node_modules/geojson-rbush/node_modules/rbush/package.json +56 -0
  240. package/node_modules/geojson-rbush/node_modules/rbush/rbush.js +574 -0
  241. package/node_modules/geojson-rbush/node_modules/rbush/rbush.min.js +1 -0
  242. package/node_modules/geojson-rbush/package.json +32 -71
  243. package/node_modules/get-intrinsic/.eslintrc +3 -8
  244. package/node_modules/get-intrinsic/.nycrc +0 -4
  245. package/node_modules/get-intrinsic/CHANGELOG.md +53 -0
  246. package/node_modules/get-intrinsic/README.md +7 -1
  247. package/node_modules/get-intrinsic/index.js +29 -8
  248. package/node_modules/get-intrinsic/package.json +91 -104
  249. package/node_modules/get-intrinsic/test/GetIntrinsic.js +26 -12
  250. package/node_modules/has/package.json +21 -46
  251. package/node_modules/has-property-descriptors/.eslintrc +13 -0
  252. package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  253. package/node_modules/has-property-descriptors/.nycrc +9 -0
  254. package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
  255. package/node_modules/has-property-descriptors/LICENSE +21 -0
  256. package/node_modules/has-property-descriptors/README.md +43 -0
  257. package/node_modules/has-property-descriptors/index.js +33 -0
  258. package/node_modules/has-property-descriptors/package.json +70 -0
  259. package/node_modules/has-property-descriptors/test/index.js +57 -0
  260. package/node_modules/has-proto/.eslintrc +5 -0
  261. package/node_modules/has-proto/.github/FUNDING.yml +12 -0
  262. package/node_modules/has-proto/CHANGELOG.md +23 -0
  263. package/node_modules/has-proto/LICENSE +21 -0
  264. package/node_modules/has-proto/README.md +38 -0
  265. package/node_modules/has-proto/index.js +11 -0
  266. package/node_modules/has-proto/package.json +74 -0
  267. package/node_modules/has-proto/test/index.js +19 -0
  268. package/node_modules/has-symbols/package.json +99 -125
  269. package/node_modules/has-tostringtag/package.json +82 -109
  270. package/node_modules/is-arguments/package.json +89 -114
  271. package/node_modules/is-date-object/package.json +77 -108
  272. package/node_modules/is-regex/package.json +84 -112
  273. package/node_modules/mime-db/HISTORY.md +8 -0
  274. package/node_modules/mime-db/LICENSE +19 -18
  275. package/node_modules/mime-db/README.md +1 -1
  276. package/node_modules/mime-db/db.json +54 -6
  277. package/node_modules/mime-db/index.js +1 -0
  278. package/node_modules/mime-db/package.json +24 -66
  279. package/node_modules/mime-types/HISTORY.md +9 -0
  280. package/node_modules/mime-types/README.md +1 -1
  281. package/node_modules/mime-types/package.json +19 -62
  282. package/node_modules/object-assign/package.json +15 -49
  283. package/node_modules/object-is/package.json +85 -112
  284. package/node_modules/object-keys/package.json +86 -116
  285. package/node_modules/point-in-polygon/package.json +19 -48
  286. package/node_modules/polygon-clipping/package.json +41 -80
  287. package/node_modules/proxy-from-env/.eslintrc +29 -0
  288. package/node_modules/proxy-from-env/.travis.yml +10 -0
  289. package/node_modules/proxy-from-env/LICENSE +20 -0
  290. package/node_modules/proxy-from-env/README.md +131 -0
  291. package/node_modules/proxy-from-env/index.js +108 -0
  292. package/node_modules/proxy-from-env/package.json +34 -0
  293. package/node_modules/proxy-from-env/test.js +483 -0
  294. package/node_modules/quickselect/package.json +13 -41
  295. package/node_modules/rbush/README.md +95 -22
  296. package/node_modules/rbush/index.js +181 -131
  297. package/node_modules/rbush/package.json +39 -71
  298. package/node_modules/rbush/rbush.js +412 -360
  299. package/node_modules/rbush/rbush.min.js +1 -1
  300. package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
  301. package/node_modules/regexp.prototype.flags/CHANGELOG.md +19 -0
  302. package/node_modules/regexp.prototype.flags/implementation.js +9 -0
  303. package/node_modules/regexp.prototype.flags/package.json +98 -122
  304. package/node_modules/regexp.prototype.flags/test/shimmed.js +2 -1
  305. package/node_modules/regexp.prototype.flags/test/tests.js +7 -5
  306. package/node_modules/robust-predicates/package.json +25 -52
  307. package/node_modules/skmeans/package.json +18 -53
  308. package/node_modules/splaytree/Readme.md +58 -57
  309. package/node_modules/splaytree/dist/splay.esm.js +21 -8
  310. package/node_modules/splaytree/dist/splay.esm.js.map +1 -1
  311. package/node_modules/splaytree/dist/splay.js +21 -8
  312. package/node_modules/splaytree/dist/splay.js.map +1 -1
  313. package/node_modules/splaytree/package.json +36 -68
  314. package/node_modules/splaytree/src/index.ts +16 -4
  315. package/node_modules/tinyqueue/package.json +34 -59
  316. package/node_modules/topojson-client/package.json +28 -56
  317. package/node_modules/topojson-server/package.json +27 -55
  318. package/node_modules/turf-jsts/package.json +33 -68
  319. package/node_modules/uuid/CHANGELOG.md +39 -0
  320. package/node_modules/uuid/README.md +30 -73
  321. package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  322. package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  323. package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  324. package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  325. package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  326. package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  327. package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  328. package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  329. package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  330. package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  331. package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  332. package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  333. package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  334. package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  335. package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  336. package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  337. package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  338. package/node_modules/uuid/dist/esm-browser/native.js +4 -0
  339. package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  340. package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  341. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  342. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  343. package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  344. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  345. package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  346. package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  347. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  348. package/node_modules/uuid/dist/esm-browser/version.js +1 -1
  349. package/node_modules/uuid/dist/esm-node/native.js +4 -0
  350. package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  351. package/node_modules/uuid/dist/esm-node/v1.js +2 -2
  352. package/node_modules/uuid/dist/esm-node/v35.js +6 -4
  353. package/node_modules/uuid/dist/esm-node/v4.js +7 -2
  354. package/node_modules/uuid/dist/esm-node/version.js +1 -1
  355. package/node_modules/uuid/dist/index.js +18 -18
  356. package/node_modules/uuid/dist/native-browser.js +11 -0
  357. package/node_modules/uuid/dist/native.js +15 -0
  358. package/node_modules/uuid/dist/rng-browser.js +2 -3
  359. package/node_modules/uuid/dist/stringify.js +8 -3
  360. package/node_modules/uuid/dist/v1.js +2 -2
  361. package/node_modules/uuid/dist/v35.js +7 -5
  362. package/node_modules/uuid/dist/v4.js +8 -2
  363. package/node_modules/uuid/dist/version.js +1 -1
  364. package/node_modules/uuid/package.json +87 -120
  365. package/package.json +12 -8
  366. package/tak-ingest.html +40 -0
  367. package/tak-ingest.js +48 -0
  368. package/tak-registration.html +13 -2
  369. package/tak-registration.js +55 -7
  370. package/node_modules/@turf/collect/node_modules/quickselect/package.json +0 -69
  371. package/node_modules/@turf/collect/node_modules/rbush/package.json +0 -85
  372. package/node_modules/@turf/collect/node_modules/rbush/rbush.js +0 -626
  373. package/node_modules/@turf/collect/node_modules/rbush/rbush.min.js +0 -1
  374. package/node_modules/@turf/unkink-polygon/node_modules/quickselect/package.json +0 -69
  375. package/node_modules/@turf/unkink-polygon/node_modules/rbush/package.json +0 -85
  376. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.js +0 -626
  377. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.min.js +0 -1
  378. package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
  379. package/node_modules/axios/dist/axios.map +0 -1
  380. package/node_modules/axios/dist/axios.min.map +0 -1
  381. package/node_modules/axios/lib/cancel/Cancel.js +0 -19
  382. package/node_modules/axios/lib/core/createError.js +0 -18
  383. package/node_modules/axios/lib/core/enhanceError.js +0 -43
  384. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  385. package/node_modules/axios/tsconfig.json +0 -14
  386. package/node_modules/axios/tslint.json +0 -6
  387. package/node_modules/combined-stream/yarn.lock +0 -17
  388. package/node_modules/d3-array/yarn.lock +0 -939
  389. package/node_modules/define-properties/.jscs.json +0 -175
  390. package/node_modules/define-properties/.travis.yml +0 -233
  391. package/node_modules/define-properties/test/index.js +0 -125
  392. package/node_modules/get-intrinsic/.eslintignore +0 -1
  393. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  394. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  395. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  396. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  397. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  398. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  399. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  400. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  401. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  402. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  403. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/LICENSE +0 -0
  404. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/README.md +0 -0
  405. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/index.js +0 -0
  406. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/quickselect.js +0 -0
  407. /package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/LICENSE +0 -0
  408. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/LICENSE +0 -0
  409. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/README.md +0 -0
  410. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/index.js +0 -0
  411. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/quickselect.js +0 -0
  412. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/LICENSE +0 -0
@@ -0,0 +1,574 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, global.RBush = factory());
5
+ }(this, function () { 'use strict';
6
+
7
+ function quickselect(arr, k, left, right, compare) {
8
+ quickselectStep(arr, k, left || 0, right || (arr.length - 1), compare || defaultCompare);
9
+ }
10
+
11
+ function quickselectStep(arr, k, left, right, compare) {
12
+
13
+ while (right > left) {
14
+ if (right - left > 600) {
15
+ var n = right - left + 1;
16
+ var m = k - left + 1;
17
+ var z = Math.log(n);
18
+ var s = 0.5 * Math.exp(2 * z / 3);
19
+ var sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);
20
+ var newLeft = Math.max(left, Math.floor(k - m * s / n + sd));
21
+ var newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));
22
+ quickselectStep(arr, k, newLeft, newRight, compare);
23
+ }
24
+
25
+ var t = arr[k];
26
+ var i = left;
27
+ var j = right;
28
+
29
+ swap(arr, left, k);
30
+ if (compare(arr[right], t) > 0) { swap(arr, left, right); }
31
+
32
+ while (i < j) {
33
+ swap(arr, i, j);
34
+ i++;
35
+ j--;
36
+ while (compare(arr[i], t) < 0) { i++; }
37
+ while (compare(arr[j], t) > 0) { j--; }
38
+ }
39
+
40
+ if (compare(arr[left], t) === 0) { swap(arr, left, j); }
41
+ else {
42
+ j++;
43
+ swap(arr, j, right);
44
+ }
45
+
46
+ if (j <= k) { left = j + 1; }
47
+ if (k <= j) { right = j - 1; }
48
+ }
49
+ }
50
+
51
+ function swap(arr, i, j) {
52
+ var tmp = arr[i];
53
+ arr[i] = arr[j];
54
+ arr[j] = tmp;
55
+ }
56
+
57
+ function defaultCompare(a, b) {
58
+ return a < b ? -1 : a > b ? 1 : 0;
59
+ }
60
+
61
+ var RBush = function RBush(maxEntries) {
62
+ if ( maxEntries === void 0 ) maxEntries = 9;
63
+
64
+ // max entries in a node is 9 by default; min node fill is 40% for best performance
65
+ this._maxEntries = Math.max(4, maxEntries);
66
+ this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4));
67
+ this.clear();
68
+ };
69
+
70
+ RBush.prototype.all = function all () {
71
+ return this._all(this.data, []);
72
+ };
73
+
74
+ RBush.prototype.search = function search (bbox) {
75
+ var node = this.data;
76
+ var result = [];
77
+
78
+ if (!intersects(bbox, node)) { return result; }
79
+
80
+ var toBBox = this.toBBox;
81
+ var nodesToSearch = [];
82
+
83
+ while (node) {
84
+ for (var i = 0; i < node.children.length; i++) {
85
+ var child = node.children[i];
86
+ var childBBox = node.leaf ? toBBox(child) : child;
87
+
88
+ if (intersects(bbox, childBBox)) {
89
+ if (node.leaf) { result.push(child); }
90
+ else if (contains(bbox, childBBox)) { this._all(child, result); }
91
+ else { nodesToSearch.push(child); }
92
+ }
93
+ }
94
+ node = nodesToSearch.pop();
95
+ }
96
+
97
+ return result;
98
+ };
99
+
100
+ RBush.prototype.collides = function collides (bbox) {
101
+ var node = this.data;
102
+
103
+ if (!intersects(bbox, node)) { return false; }
104
+
105
+ var nodesToSearch = [];
106
+ while (node) {
107
+ for (var i = 0; i < node.children.length; i++) {
108
+ var child = node.children[i];
109
+ var childBBox = node.leaf ? this.toBBox(child) : child;
110
+
111
+ if (intersects(bbox, childBBox)) {
112
+ if (node.leaf || contains(bbox, childBBox)) { return true; }
113
+ nodesToSearch.push(child);
114
+ }
115
+ }
116
+ node = nodesToSearch.pop();
117
+ }
118
+
119
+ return false;
120
+ };
121
+
122
+ RBush.prototype.load = function load (data) {
123
+ if (!(data && data.length)) { return this; }
124
+
125
+ if (data.length < this._minEntries) {
126
+ for (var i = 0; i < data.length; i++) {
127
+ this.insert(data[i]);
128
+ }
129
+ return this;
130
+ }
131
+
132
+ // recursively build the tree with the given data from scratch using OMT algorithm
133
+ var node = this._build(data.slice(), 0, data.length - 1, 0);
134
+
135
+ if (!this.data.children.length) {
136
+ // save as is if tree is empty
137
+ this.data = node;
138
+
139
+ } else if (this.data.height === node.height) {
140
+ // split root if trees have the same height
141
+ this._splitRoot(this.data, node);
142
+
143
+ } else {
144
+ if (this.data.height < node.height) {
145
+ // swap trees if inserted one is bigger
146
+ var tmpNode = this.data;
147
+ this.data = node;
148
+ node = tmpNode;
149
+ }
150
+
151
+ // insert the small tree into the large tree at appropriate level
152
+ this._insert(node, this.data.height - node.height - 1, true);
153
+ }
154
+
155
+ return this;
156
+ };
157
+
158
+ RBush.prototype.insert = function insert (item) {
159
+ if (item) { this._insert(item, this.data.height - 1); }
160
+ return this;
161
+ };
162
+
163
+ RBush.prototype.clear = function clear () {
164
+ this.data = createNode([]);
165
+ return this;
166
+ };
167
+
168
+ RBush.prototype.remove = function remove (item, equalsFn) {
169
+ if (!item) { return this; }
170
+
171
+ var node = this.data;
172
+ var bbox = this.toBBox(item);
173
+ var path = [];
174
+ var indexes = [];
175
+ var i, parent, goingUp;
176
+
177
+ // depth-first iterative tree traversal
178
+ while (node || path.length) {
179
+
180
+ if (!node) { // go up
181
+ node = path.pop();
182
+ parent = path[path.length - 1];
183
+ i = indexes.pop();
184
+ goingUp = true;
185
+ }
186
+
187
+ if (node.leaf) { // check current node
188
+ var index = findItem(item, node.children, equalsFn);
189
+
190
+ if (index !== -1) {
191
+ // item found, remove the item and condense tree upwards
192
+ node.children.splice(index, 1);
193
+ path.push(node);
194
+ this._condense(path);
195
+ return this;
196
+ }
197
+ }
198
+
199
+ if (!goingUp && !node.leaf && contains(node, bbox)) { // go down
200
+ path.push(node);
201
+ indexes.push(i);
202
+ i = 0;
203
+ parent = node;
204
+ node = node.children[0];
205
+
206
+ } else if (parent) { // go right
207
+ i++;
208
+ node = parent.children[i];
209
+ goingUp = false;
210
+
211
+ } else { node = null; } // nothing found
212
+ }
213
+
214
+ return this;
215
+ };
216
+
217
+ RBush.prototype.toBBox = function toBBox (item) { return item; };
218
+
219
+ RBush.prototype.compareMinX = function compareMinX (a, b) { return a.minX - b.minX; };
220
+ RBush.prototype.compareMinY = function compareMinY (a, b) { return a.minY - b.minY; };
221
+
222
+ RBush.prototype.toJSON = function toJSON () { return this.data; };
223
+
224
+ RBush.prototype.fromJSON = function fromJSON (data) {
225
+ this.data = data;
226
+ return this;
227
+ };
228
+
229
+ RBush.prototype._all = function _all (node, result) {
230
+ var nodesToSearch = [];
231
+ while (node) {
232
+ if (node.leaf) { result.push.apply(result, node.children); }
233
+ else { nodesToSearch.push.apply(nodesToSearch, node.children); }
234
+
235
+ node = nodesToSearch.pop();
236
+ }
237
+ return result;
238
+ };
239
+
240
+ RBush.prototype._build = function _build (items, left, right, height) {
241
+
242
+ var N = right - left + 1;
243
+ var M = this._maxEntries;
244
+ var node;
245
+
246
+ if (N <= M) {
247
+ // reached leaf level; return leaf
248
+ node = createNode(items.slice(left, right + 1));
249
+ calcBBox(node, this.toBBox);
250
+ return node;
251
+ }
252
+
253
+ if (!height) {
254
+ // target height of the bulk-loaded tree
255
+ height = Math.ceil(Math.log(N) / Math.log(M));
256
+
257
+ // target number of root entries to maximize storage utilization
258
+ M = Math.ceil(N / Math.pow(M, height - 1));
259
+ }
260
+
261
+ node = createNode([]);
262
+ node.leaf = false;
263
+ node.height = height;
264
+
265
+ // split the items into M mostly square tiles
266
+
267
+ var N2 = Math.ceil(N / M);
268
+ var N1 = N2 * Math.ceil(Math.sqrt(M));
269
+
270
+ multiSelect(items, left, right, N1, this.compareMinX);
271
+
272
+ for (var i = left; i <= right; i += N1) {
273
+
274
+ var right2 = Math.min(i + N1 - 1, right);
275
+
276
+ multiSelect(items, i, right2, N2, this.compareMinY);
277
+
278
+ for (var j = i; j <= right2; j += N2) {
279
+
280
+ var right3 = Math.min(j + N2 - 1, right2);
281
+
282
+ // pack each entry recursively
283
+ node.children.push(this._build(items, j, right3, height - 1));
284
+ }
285
+ }
286
+
287
+ calcBBox(node, this.toBBox);
288
+
289
+ return node;
290
+ };
291
+
292
+ RBush.prototype._chooseSubtree = function _chooseSubtree (bbox, node, level, path) {
293
+ while (true) {
294
+ path.push(node);
295
+
296
+ if (node.leaf || path.length - 1 === level) { break; }
297
+
298
+ var minArea = Infinity;
299
+ var minEnlargement = Infinity;
300
+ var targetNode = (void 0);
301
+
302
+ for (var i = 0; i < node.children.length; i++) {
303
+ var child = node.children[i];
304
+ var area = bboxArea(child);
305
+ var enlargement = enlargedArea(bbox, child) - area;
306
+
307
+ // choose entry with the least area enlargement
308
+ if (enlargement < minEnlargement) {
309
+ minEnlargement = enlargement;
310
+ minArea = area < minArea ? area : minArea;
311
+ targetNode = child;
312
+
313
+ } else if (enlargement === minEnlargement) {
314
+ // otherwise choose one with the smallest area
315
+ if (area < minArea) {
316
+ minArea = area;
317
+ targetNode = child;
318
+ }
319
+ }
320
+ }
321
+
322
+ node = targetNode || node.children[0];
323
+ }
324
+
325
+ return node;
326
+ };
327
+
328
+ RBush.prototype._insert = function _insert (item, level, isNode) {
329
+ var bbox = isNode ? item : this.toBBox(item);
330
+ var insertPath = [];
331
+
332
+ // find the best node for accommodating the item, saving all nodes along the path too
333
+ var node = this._chooseSubtree(bbox, this.data, level, insertPath);
334
+
335
+ // put the item into the node
336
+ node.children.push(item);
337
+ extend(node, bbox);
338
+
339
+ // split on node overflow; propagate upwards if necessary
340
+ while (level >= 0) {
341
+ if (insertPath[level].children.length > this._maxEntries) {
342
+ this._split(insertPath, level);
343
+ level--;
344
+ } else { break; }
345
+ }
346
+
347
+ // adjust bboxes along the insertion path
348
+ this._adjustParentBBoxes(bbox, insertPath, level);
349
+ };
350
+
351
+ // split overflowed node into two
352
+ RBush.prototype._split = function _split (insertPath, level) {
353
+ var node = insertPath[level];
354
+ var M = node.children.length;
355
+ var m = this._minEntries;
356
+
357
+ this._chooseSplitAxis(node, m, M);
358
+
359
+ var splitIndex = this._chooseSplitIndex(node, m, M);
360
+
361
+ var newNode = createNode(node.children.splice(splitIndex, node.children.length - splitIndex));
362
+ newNode.height = node.height;
363
+ newNode.leaf = node.leaf;
364
+
365
+ calcBBox(node, this.toBBox);
366
+ calcBBox(newNode, this.toBBox);
367
+
368
+ if (level) { insertPath[level - 1].children.push(newNode); }
369
+ else { this._splitRoot(node, newNode); }
370
+ };
371
+
372
+ RBush.prototype._splitRoot = function _splitRoot (node, newNode) {
373
+ // split root node
374
+ this.data = createNode([node, newNode]);
375
+ this.data.height = node.height + 1;
376
+ this.data.leaf = false;
377
+ calcBBox(this.data, this.toBBox);
378
+ };
379
+
380
+ RBush.prototype._chooseSplitIndex = function _chooseSplitIndex (node, m, M) {
381
+ var index;
382
+ var minOverlap = Infinity;
383
+ var minArea = Infinity;
384
+
385
+ for (var i = m; i <= M - m; i++) {
386
+ var bbox1 = distBBox(node, 0, i, this.toBBox);
387
+ var bbox2 = distBBox(node, i, M, this.toBBox);
388
+
389
+ var overlap = intersectionArea(bbox1, bbox2);
390
+ var area = bboxArea(bbox1) + bboxArea(bbox2);
391
+
392
+ // choose distribution with minimum overlap
393
+ if (overlap < minOverlap) {
394
+ minOverlap = overlap;
395
+ index = i;
396
+
397
+ minArea = area < minArea ? area : minArea;
398
+
399
+ } else if (overlap === minOverlap) {
400
+ // otherwise choose distribution with minimum area
401
+ if (area < minArea) {
402
+ minArea = area;
403
+ index = i;
404
+ }
405
+ }
406
+ }
407
+
408
+ return index || M - m;
409
+ };
410
+
411
+ // sorts node children by the best axis for split
412
+ RBush.prototype._chooseSplitAxis = function _chooseSplitAxis (node, m, M) {
413
+ var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX;
414
+ var compareMinY = node.leaf ? this.compareMinY : compareNodeMinY;
415
+ var xMargin = this._allDistMargin(node, m, M, compareMinX);
416
+ var yMargin = this._allDistMargin(node, m, M, compareMinY);
417
+
418
+ // if total distributions margin value is minimal for x, sort by minX,
419
+ // otherwise it's already sorted by minY
420
+ if (xMargin < yMargin) { node.children.sort(compareMinX); }
421
+ };
422
+
423
+ // total margin of all possible split distributions where each node is at least m full
424
+ RBush.prototype._allDistMargin = function _allDistMargin (node, m, M, compare) {
425
+ node.children.sort(compare);
426
+
427
+ var toBBox = this.toBBox;
428
+ var leftBBox = distBBox(node, 0, m, toBBox);
429
+ var rightBBox = distBBox(node, M - m, M, toBBox);
430
+ var margin = bboxMargin(leftBBox) + bboxMargin(rightBBox);
431
+
432
+ for (var i = m; i < M - m; i++) {
433
+ var child = node.children[i];
434
+ extend(leftBBox, node.leaf ? toBBox(child) : child);
435
+ margin += bboxMargin(leftBBox);
436
+ }
437
+
438
+ for (var i$1 = M - m - 1; i$1 >= m; i$1--) {
439
+ var child$1 = node.children[i$1];
440
+ extend(rightBBox, node.leaf ? toBBox(child$1) : child$1);
441
+ margin += bboxMargin(rightBBox);
442
+ }
443
+
444
+ return margin;
445
+ };
446
+
447
+ RBush.prototype._adjustParentBBoxes = function _adjustParentBBoxes (bbox, path, level) {
448
+ // adjust bboxes along the given tree path
449
+ for (var i = level; i >= 0; i--) {
450
+ extend(path[i], bbox);
451
+ }
452
+ };
453
+
454
+ RBush.prototype._condense = function _condense (path) {
455
+ // go through the path, removing empty nodes and updating bboxes
456
+ for (var i = path.length - 1, siblings = (void 0); i >= 0; i--) {
457
+ if (path[i].children.length === 0) {
458
+ if (i > 0) {
459
+ siblings = path[i - 1].children;
460
+ siblings.splice(siblings.indexOf(path[i]), 1);
461
+
462
+ } else { this.clear(); }
463
+
464
+ } else { calcBBox(path[i], this.toBBox); }
465
+ }
466
+ };
467
+
468
+ function findItem(item, items, equalsFn) {
469
+ if (!equalsFn) { return items.indexOf(item); }
470
+
471
+ for (var i = 0; i < items.length; i++) {
472
+ if (equalsFn(item, items[i])) { return i; }
473
+ }
474
+ return -1;
475
+ }
476
+
477
+ // calculate node's bbox from bboxes of its children
478
+ function calcBBox(node, toBBox) {
479
+ distBBox(node, 0, node.children.length, toBBox, node);
480
+ }
481
+
482
+ // min bounding rectangle of node children from k to p-1
483
+ function distBBox(node, k, p, toBBox, destNode) {
484
+ if (!destNode) { destNode = createNode(null); }
485
+ destNode.minX = Infinity;
486
+ destNode.minY = Infinity;
487
+ destNode.maxX = -Infinity;
488
+ destNode.maxY = -Infinity;
489
+
490
+ for (var i = k; i < p; i++) {
491
+ var child = node.children[i];
492
+ extend(destNode, node.leaf ? toBBox(child) : child);
493
+ }
494
+
495
+ return destNode;
496
+ }
497
+
498
+ function extend(a, b) {
499
+ a.minX = Math.min(a.minX, b.minX);
500
+ a.minY = Math.min(a.minY, b.minY);
501
+ a.maxX = Math.max(a.maxX, b.maxX);
502
+ a.maxY = Math.max(a.maxY, b.maxY);
503
+ return a;
504
+ }
505
+
506
+ function compareNodeMinX(a, b) { return a.minX - b.minX; }
507
+ function compareNodeMinY(a, b) { return a.minY - b.minY; }
508
+
509
+ function bboxArea(a) { return (a.maxX - a.minX) * (a.maxY - a.minY); }
510
+ function bboxMargin(a) { return (a.maxX - a.minX) + (a.maxY - a.minY); }
511
+
512
+ function enlargedArea(a, b) {
513
+ return (Math.max(b.maxX, a.maxX) - Math.min(b.minX, a.minX)) *
514
+ (Math.max(b.maxY, a.maxY) - Math.min(b.minY, a.minY));
515
+ }
516
+
517
+ function intersectionArea(a, b) {
518
+ var minX = Math.max(a.minX, b.minX);
519
+ var minY = Math.max(a.minY, b.minY);
520
+ var maxX = Math.min(a.maxX, b.maxX);
521
+ var maxY = Math.min(a.maxY, b.maxY);
522
+
523
+ return Math.max(0, maxX - minX) *
524
+ Math.max(0, maxY - minY);
525
+ }
526
+
527
+ function contains(a, b) {
528
+ return a.minX <= b.minX &&
529
+ a.minY <= b.minY &&
530
+ b.maxX <= a.maxX &&
531
+ b.maxY <= a.maxY;
532
+ }
533
+
534
+ function intersects(a, b) {
535
+ return b.minX <= a.maxX &&
536
+ b.minY <= a.maxY &&
537
+ b.maxX >= a.minX &&
538
+ b.maxY >= a.minY;
539
+ }
540
+
541
+ function createNode(children) {
542
+ return {
543
+ children: children,
544
+ height: 1,
545
+ leaf: true,
546
+ minX: Infinity,
547
+ minY: Infinity,
548
+ maxX: -Infinity,
549
+ maxY: -Infinity
550
+ };
551
+ }
552
+
553
+ // sort an array so that items come in groups of n unsorted items, with groups sorted between each other;
554
+ // combines selection algorithm with binary divide & conquer approach
555
+
556
+ function multiSelect(arr, left, right, n, compare) {
557
+ var stack = [left, right];
558
+
559
+ while (stack.length) {
560
+ right = stack.pop();
561
+ left = stack.pop();
562
+
563
+ if (right - left <= n) { continue; }
564
+
565
+ var mid = left + Math.ceil((right - left) / n / 2) * n;
566
+ quickselect(arr, mid, left, right, compare);
567
+
568
+ stack.push(left, mid, mid, right);
569
+ }
570
+ }
571
+
572
+ return RBush;
573
+
574
+ }));
@@ -0,0 +1 @@
1
+ !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t=t||self).RBush=i()}(this,function(){"use strict";function t(t,r,e,a,h){!function t(n,r,e,a,h){for(;a>e;){if(a-e>600){var o=a-e+1,s=r-e+1,l=Math.log(o),f=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*f*(o-f)/o)*(s-o/2<0?-1:1),m=Math.max(e,Math.floor(r-s*f/o+u)),c=Math.min(a,Math.floor(r+(o-s)*f/o+u));t(n,r,m,c,h)}var p=n[r],d=e,x=a;for(i(n,e,r),h(n[a],p)>0&&i(n,e,a);d<x;){for(i(n,d,x),d++,x--;h(n[d],p)<0;)d++;for(;h(n[x],p)>0;)x--}0===h(n[e],p)?i(n,e,x):i(n,++x,a),x<=r&&(e=x+1),r<=x&&(a=x-1)}}(t,r,e||0,a||t.length-1,h||n)}function i(t,i,n){var r=t[i];t[i]=t[n],t[n]=r}function n(t,i){return t<i?-1:t>i?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function e(t,i,n){if(!n)return i.indexOf(t);for(var r=0;r<i.length;r++)if(n(t,i[r]))return r;return-1}function a(t,i){h(t,0,t.children.length,i,t)}function h(t,i,n,r,e){e||(e=p(null)),e.minX=1/0,e.minY=1/0,e.maxX=-1/0,e.maxY=-1/0;for(var a=i;a<n;a++){var h=t.children[a];o(e,t.leaf?r(h):h)}return e}function o(t,i){return t.minX=Math.min(t.minX,i.minX),t.minY=Math.min(t.minY,i.minY),t.maxX=Math.max(t.maxX,i.maxX),t.maxY=Math.max(t.maxY,i.maxY),t}function s(t,i){return t.minX-i.minX}function l(t,i){return t.minY-i.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,i){return t.minX<=i.minX&&t.minY<=i.minY&&i.maxX<=t.maxX&&i.maxY<=t.maxY}function c(t,i){return i.minX<=t.maxX&&i.minY<=t.maxY&&i.maxX>=t.minX&&i.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function d(i,n,r,e,a){for(var h=[n,r];h.length;)if(!((r=h.pop())-(n=h.pop())<=e)){var o=n+Math.ceil((r-n)/e/2)*e;t(i,o,n,r,a),h.push(n,o,o,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var i=this.data,n=[];if(!c(t,i))return n;for(var r=this.toBBox,e=[];i;){for(var a=0;a<i.children.length;a++){var h=i.children[a],o=i.leaf?r(h):h;c(t,o)&&(i.leaf?n.push(h):m(t,o)?this._all(h,n):e.push(h))}i=e.pop()}return n},r.prototype.collides=function(t){var i=this.data;if(!c(t,i))return!1;for(var n=[];i;){for(var r=0;r<i.children.length;r++){var e=i.children[r],a=i.leaf?this.toBBox(e):e;if(c(t,a)){if(i.leaf||m(t,a))return!0;n.push(e)}}i=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var i=0;i<t.length;i++)this.insert(t[i]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=p([]),this},r.prototype.remove=function(t,i){if(!t)return this;for(var n,r,a,h=this.data,o=this.toBBox(t),s=[],l=[];h||s.length;){if(h||(h=s.pop(),r=s[s.length-1],n=l.pop(),a=!0),h.leaf){var f=e(t,h.children,i);if(-1!==f)return h.children.splice(f,1),s.push(h),this._condense(s),this}a||h.leaf||!m(h,o)?r?(n++,h=r.children[n],a=!1):h=null:(s.push(h),l.push(n),n=0,r=h,h=h.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,i){return t.minX-i.minX},r.prototype.compareMinY=function(t,i){return t.minY-i.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,i){for(var n=[];t;)t.leaf?i.push.apply(i,t.children):n.push.apply(n,t.children),t=n.pop();return i},r.prototype._build=function(t,i,n,r){var e,h=n-i+1,o=this._maxEntries;if(h<=o)return a(e=p(t.slice(i,n+1)),this.toBBox),e;r||(r=Math.ceil(Math.log(h)/Math.log(o)),o=Math.ceil(h/Math.pow(o,r-1))),(e=p([])).leaf=!1,e.height=r;var s=Math.ceil(h/o),l=s*Math.ceil(Math.sqrt(o));d(t,i,n,l,this.compareMinX);for(var f=i;f<=n;f+=l){var u=Math.min(f+l-1,n);d(t,f,u,s,this.compareMinY);for(var m=f;m<=u;m+=s){var c=Math.min(m+s-1,u);e.children.push(this._build(t,m,c,r-1))}}return a(e,this.toBBox),e},r.prototype._chooseSubtree=function(t,i,n,r){for(;r.push(i),!i.leaf&&r.length-1!==n;){for(var e=1/0,a=1/0,h=void 0,o=0;o<i.children.length;o++){var s=i.children[o],l=f(s),u=(m=t,c=s,(Math.max(c.maxX,m.maxX)-Math.min(c.minX,m.minX))*(Math.max(c.maxY,m.maxY)-Math.min(c.minY,m.minY))-l);u<a?(a=u,e=l<e?l:e,h=s):u===a&&l<e&&(e=l,h=s)}i=h||i.children[0]}var m,c;return i},r.prototype._insert=function(t,i,n){var r=n?t:this.toBBox(t),e=[],a=this._chooseSubtree(r,this.data,i,e);for(a.children.push(t),o(a,r);i>=0&&e[i].children.length>this._maxEntries;)this._split(e,i),i--;this._adjustParentBBoxes(r,e,i)},r.prototype._split=function(t,i){var n=t[i],r=n.children.length,e=this._minEntries;this._chooseSplitAxis(n,e,r);var h=this._chooseSplitIndex(n,e,r),o=p(n.children.splice(h,n.children.length-h));o.height=n.height,o.leaf=n.leaf,a(n,this.toBBox),a(o,this.toBBox),i?t[i-1].children.push(o):this._splitRoot(n,o)},r.prototype._splitRoot=function(t,i){this.data=p([t,i]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(t,i,n){for(var r,e,a,o,s,l,u,m=1/0,c=1/0,p=i;p<=n-i;p++){var d=h(t,0,p,this.toBBox),x=h(t,p,n,this.toBBox),v=(e=d,a=x,o=void 0,s=void 0,l=void 0,u=void 0,o=Math.max(e.minX,a.minX),s=Math.max(e.minY,a.minY),l=Math.min(e.maxX,a.maxX),u=Math.min(e.maxY,a.maxY),Math.max(0,l-o)*Math.max(0,u-s)),M=f(d)+f(x);v<m?(m=v,r=p,c=M<c?M:c):v===m&&M<c&&(c=M,r=p)}return r||n-i},r.prototype._chooseSplitAxis=function(t,i,n){var r=t.leaf?this.compareMinX:s,e=t.leaf?this.compareMinY:l;this._allDistMargin(t,i,n,r)<this._allDistMargin(t,i,n,e)&&t.children.sort(r)},r.prototype._allDistMargin=function(t,i,n,r){t.children.sort(r);for(var e=this.toBBox,a=h(t,0,i,e),s=h(t,n-i,n,e),l=u(a)+u(s),f=i;f<n-i;f++){var m=t.children[f];o(a,t.leaf?e(m):m),l+=u(a)}for(var c=n-i-1;c>=i;c--){var p=t.children[c];o(s,t.leaf?e(p):p),l+=u(s)}return l},r.prototype._adjustParentBBoxes=function(t,i,n){for(var r=n;r>=0;r--)o(i[r],t)},r.prototype._condense=function(t){for(var i=t.length-1,n=void 0;i>=0;i--)0===t[i].children.length?i>0?(n=t[i-1].children).splice(n.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},r});
@@ -1,57 +1,33 @@
1
1
  {
2
- "_from": "geojson-rbush@3.x",
3
- "_id": "geojson-rbush@3.2.0",
4
- "_inBundle": false,
5
- "_integrity": "sha512-oVltQTXolxvsz1sZnutlSuLDEcQAKYC/uXt9zDzJJ6bu0W+baTI8LZBaTup5afzibEH4N3jlq2p+a152wlBJ7w==",
6
- "_location": "/geojson-rbush",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "geojson-rbush@3.x",
12
- "name": "geojson-rbush",
13
- "escapedName": "geojson-rbush",
14
- "rawSpec": "3.x",
15
- "saveSpec": null,
16
- "fetchSpec": "3.x"
17
- },
18
- "_requiredBy": [
19
- "/@turf/line-intersect",
20
- "/@turf/line-overlap",
21
- "/@turf/line-split"
2
+ "name": "geojson-rbush",
3
+ "version": "3.2.0",
4
+ "description": "GeoJSON implementation of RBush",
5
+ "main": "index",
6
+ "types": "index.d.ts",
7
+ "files": [
8
+ "index.js",
9
+ "index.d.ts"
22
10
  ],
23
- "_resolved": "https://registry.npmjs.org/geojson-rbush/-/geojson-rbush-3.2.0.tgz",
24
- "_shasum": "8b543cf0d56f99b78faf1da52bb66acad6dfc290",
25
- "_spec": "geojson-rbush@3.x",
26
- "_where": "/Users/conway/Projects/TAKreg/node_modules/@turf/line-intersect",
27
- "author": {
28
- "name": "Denis Carriere",
29
- "email": "@DenisCarriere"
11
+ "scripts": {
12
+ "pretest": "tsc types.ts",
13
+ "test": "node test.js --coverage",
14
+ "bench": "node bench.js",
15
+ "docs": "documentation readme index.js --section=API"
30
16
  },
31
- "bundleDependencies": false,
17
+ "keywords": [
18
+ "geojson",
19
+ "index",
20
+ "tree",
21
+ "spatial",
22
+ "rbush"
23
+ ],
24
+ "author": "Denis Carriere <@DenisCarriere>",
32
25
  "contributors": [
33
- {
34
- "name": "Vladimir Agafonkin",
35
- "email": "@mourner"
36
- },
37
- {
38
- "name": "Denis Carriere",
39
- "email": "@DenisCarriere"
40
- },
41
- {
42
- "name": "Jordan Rousseau",
43
- "email": "@jvrousseau"
44
- }
26
+ "Vladimir Agafonkin <@mourner>",
27
+ "Denis Carriere <@DenisCarriere>",
28
+ "Jordan Rousseau <@jvrousseau>"
45
29
  ],
46
- "dependencies": {
47
- "@turf/bbox": "*",
48
- "@turf/helpers": "6.x",
49
- "@turf/meta": "6.x",
50
- "@types/geojson": "7946.0.8",
51
- "rbush": "^3.0.1"
52
- },
53
- "deprecated": false,
54
- "description": "GeoJSON implementation of RBush",
30
+ "license": "MIT",
55
31
  "devDependencies": {
56
32
  "@turf/bbox-polygon": "*",
57
33
  "@turf/random": "*",
@@ -64,26 +40,11 @@
64
40
  "typescript": "*",
65
41
  "write-json-file": "*"
66
42
  },
67
- "files": [
68
- "index.js",
69
- "index.d.ts"
70
- ],
71
- "keywords": [
72
- "geojson",
73
- "index",
74
- "tree",
75
- "spatial",
76
- "rbush"
77
- ],
78
- "license": "MIT",
79
- "main": "index",
80
- "name": "geojson-rbush",
81
- "scripts": {
82
- "bench": "node bench.js",
83
- "docs": "documentation readme index.js --section=API",
84
- "pretest": "tsc types.ts",
85
- "test": "node test.js --coverage"
86
- },
87
- "types": "index.d.ts",
88
- "version": "3.2.0"
43
+ "dependencies": {
44
+ "@turf/bbox": "*",
45
+ "@turf/helpers": "6.x",
46
+ "@turf/meta": "6.x",
47
+ "@types/geojson": "7946.0.8",
48
+ "rbush": "^3.0.1"
49
+ }
89
50
  }