node-red-contrib-tak-registration 0.13.0 → 0.13.1

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 (465) hide show
  1. package/node_modules/@turf/jsts/dist/jsts.min.js +1 -1
  2. package/node_modules/@turf/jsts/dist/jsts.min.js.map +1 -0
  3. package/node_modules/@turf/jsts/package.json +17 -17
  4. package/node_modules/@types/geojson/README.md +1 -1
  5. package/node_modules/@types/geojson/index.d.ts +4 -1
  6. package/node_modules/@types/geojson/package.json +4 -3
  7. package/node_modules/@types/node/README.md +2 -2
  8. package/node_modules/@types/node/assert.d.ts +2 -2
  9. package/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  10. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  11. package/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  12. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  13. package/node_modules/@types/node/crypto.d.ts +33 -9
  14. package/node_modules/@types/node/events.d.ts +2 -2
  15. package/node_modules/@types/node/fs/promises.d.ts +16 -5
  16. package/node_modules/@types/node/fs.d.ts +14 -8
  17. package/node_modules/@types/node/globals.d.ts +17 -48
  18. package/node_modules/@types/node/http.d.ts +38 -1
  19. package/node_modules/@types/node/http2.d.ts +4 -1
  20. package/node_modules/@types/node/https.d.ts +0 -1
  21. package/node_modules/@types/node/index.d.ts +8 -10
  22. package/node_modules/@types/node/module.d.ts +102 -1
  23. package/node_modules/@types/node/package.json +5 -9
  24. package/node_modules/@types/node/perf_hooks.d.ts +24 -0
  25. package/node_modules/@types/node/process.d.ts +61 -10
  26. package/node_modules/@types/node/readline/promises.d.ts +14 -2
  27. package/node_modules/@types/node/readline.d.ts +58 -9
  28. package/node_modules/@types/node/stream/promises.d.ts +8 -1
  29. package/node_modules/@types/node/stream/web.d.ts +5 -2
  30. package/node_modules/@types/node/stream.d.ts +2 -2
  31. package/node_modules/@types/node/test.d.ts +155 -5
  32. package/node_modules/@types/node/timers/promises.d.ts +1 -1
  33. package/node_modules/@types/node/tls.d.ts +6 -0
  34. package/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  35. package/node_modules/@types/node/url.d.ts +7 -4
  36. package/node_modules/@types/node/util.d.ts +80 -10
  37. package/node_modules/@types/node/v8.d.ts +1 -1
  38. package/node_modules/@types/node/vm.d.ts +81 -27
  39. package/node_modules/@types/node/worker_threads.d.ts +34 -1
  40. package/node_modules/axios/CHANGELOG.md +49 -0
  41. package/node_modules/axios/README.md +20 -8
  42. package/node_modules/axios/dist/axios.js +34 -63
  43. package/node_modules/axios/dist/axios.js.map +1 -1
  44. package/node_modules/axios/dist/axios.min.js +1 -1
  45. package/node_modules/axios/dist/axios.min.js.map +1 -1
  46. package/node_modules/axios/dist/browser/axios.cjs +40 -71
  47. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  48. package/node_modules/axios/dist/esm/axios.js +40 -71
  49. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  50. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  51. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  52. package/node_modules/axios/dist/node/axios.cjs +45 -75
  53. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  54. package/node_modules/axios/index.d.cts +5 -1
  55. package/node_modules/axios/index.d.ts +8 -1
  56. package/node_modules/axios/lib/adapters/http.js +4 -4
  57. package/node_modules/axios/lib/core/Axios.js +7 -2
  58. package/node_modules/axios/lib/core/mergeConfig.js +5 -5
  59. package/node_modules/axios/lib/env/data.js +1 -1
  60. package/node_modules/axios/lib/helpers/buildURL.js +7 -1
  61. package/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
  62. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +12 -65
  63. package/node_modules/axios/lib/helpers/validator.js +8 -0
  64. package/node_modules/axios/package.json +3 -3
  65. package/node_modules/fast-xml-parser/CHANGELOG.md +4 -0
  66. package/node_modules/fast-xml-parser/README.md +3 -2
  67. package/node_modules/fast-xml-parser/package.json +1 -1
  68. package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +21 -17
  69. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -0
  70. package/node_modules/point-in-polygon-hao/README.md +8 -7
  71. package/node_modules/point-in-polygon-hao/dist/cjs/index.cjs +322 -0
  72. package/node_modules/point-in-polygon-hao/dist/esm/index.d.ts +10 -0
  73. package/node_modules/point-in-polygon-hao/dist/esm/index.js +56 -0
  74. package/node_modules/point-in-polygon-hao/dist/pointInPolygon.js +286 -42
  75. package/node_modules/point-in-polygon-hao/dist/pointInPolygon.min.js +1 -1
  76. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/LICENSE +24 -0
  77. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/README.md +82 -0
  78. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/incircle.js +765 -0
  79. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/insphere.js +766 -0
  80. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient2d.js +184 -0
  81. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/orient3d.js +462 -0
  82. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/esm/util.js +138 -0
  83. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.d.ts +49 -0
  84. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/index.js +5 -0
  85. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/package.json +75 -0
  86. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.js +908 -0
  87. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/incircle.min.js +1 -0
  88. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.js +914 -0
  89. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/insphere.min.js +1 -0
  90. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.js +280 -0
  91. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient2d.min.js +1 -0
  92. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.js +601 -0
  93. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/orient3d.min.js +1 -0
  94. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.js +2328 -0
  95. package/node_modules/point-in-polygon-hao/node_modules/robust-predicates/umd/predicates.min.js +1 -0
  96. package/node_modules/point-in-polygon-hao/package.json +24 -20
  97. package/node_modules/tslib/modules/index.d.ts +1 -0
  98. package/node_modules/tslib/modules/index.js +2 -0
  99. package/node_modules/tslib/package.json +1 -1
  100. package/node_modules/tslib/tslib.d.ts +7 -0
  101. package/node_modules/tslib/tslib.es6.js +24 -1
  102. package/node_modules/tslib/tslib.es6.mjs +24 -1
  103. package/node_modules/tslib/tslib.js +56 -1
  104. package/node_modules/undici-types/eventsource.d.ts +0 -2
  105. package/node_modules/undici-types/filereader.d.ts +1 -1
  106. package/node_modules/undici-types/interceptors.d.ts +3 -1
  107. package/node_modules/undici-types/package.json +1 -1
  108. package/node_modules/undici-types/patch.d.ts +0 -38
  109. package/node_modules/undici-types/websocket.d.ts +0 -2
  110. package/node_modules/uuid/CHANGELOG.md +45 -2
  111. package/node_modules/uuid/README.md +71 -158
  112. package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  113. package/node_modules/uuid/dist/cjs/index.js +31 -0
  114. package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  115. package/node_modules/uuid/dist/cjs/max.js +3 -0
  116. package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
  117. package/node_modules/uuid/dist/cjs/md5.js +13 -0
  118. package/node_modules/uuid/dist/cjs/native.d.ts +5 -0
  119. package/node_modules/uuid/dist/cjs/native.js +4 -0
  120. package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  121. package/node_modules/uuid/dist/cjs/nil.js +3 -0
  122. package/node_modules/uuid/dist/cjs/package.json +1 -0
  123. package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  124. package/node_modules/uuid/dist/cjs/parse.js +11 -0
  125. package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  126. package/node_modules/uuid/dist/cjs/regex.js +3 -0
  127. package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  128. package/node_modules/uuid/dist/cjs/rng.js +13 -0
  129. package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
  130. package/node_modules/uuid/dist/cjs/sha1.js +13 -0
  131. package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  132. package/node_modules/uuid/dist/cjs/stringify.js +38 -0
  133. package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +1 -0
  134. package/node_modules/uuid/dist/cjs/test/parse.test.js +50 -0
  135. package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +1 -0
  136. package/node_modules/uuid/dist/cjs/test/rng.test.js +14 -0
  137. package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +1 -0
  138. package/node_modules/uuid/dist/cjs/test/stringify.test.js +23 -0
  139. package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +33 -0
  140. package/node_modules/uuid/dist/cjs/test/test_constants.js +91 -0
  141. package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +1 -0
  142. package/node_modules/uuid/dist/cjs/test/v1.test.js +127 -0
  143. package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +1 -0
  144. package/node_modules/uuid/dist/cjs/test/v35.test.js +143 -0
  145. package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +1 -0
  146. package/node_modules/uuid/dist/cjs/test/v4.test.js +60 -0
  147. package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +1 -0
  148. package/node_modules/uuid/dist/cjs/test/v6.test.js +56 -0
  149. package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +1 -0
  150. package/node_modules/uuid/dist/cjs/test/v7.test.js +194 -0
  151. package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +1 -0
  152. package/node_modules/uuid/dist/cjs/test/validate.test.js +13 -0
  153. package/node_modules/uuid/dist/cjs/test/version.test.d.ts +1 -0
  154. package/node_modules/uuid/dist/cjs/test/version.test.js +20 -0
  155. package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  156. package/node_modules/uuid/dist/cjs/types.js +2 -0
  157. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  158. package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  159. package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  160. package/node_modules/uuid/dist/cjs/v1.js +78 -0
  161. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  162. package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  163. package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  164. package/node_modules/uuid/dist/cjs/v3.js +14 -0
  165. package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  166. package/node_modules/uuid/dist/cjs/v35.js +41 -0
  167. package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  168. package/node_modules/uuid/dist/cjs/v4.js +23 -0
  169. package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  170. package/node_modules/uuid/dist/cjs/v5.js +14 -0
  171. package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  172. package/node_modules/uuid/dist/cjs/v6.js +19 -0
  173. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  174. package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  175. package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  176. package/node_modules/uuid/dist/cjs/v7.js +60 -0
  177. package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  178. package/node_modules/uuid/dist/cjs/validate.js +7 -0
  179. package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  180. package/node_modules/uuid/dist/cjs/version.js +10 -0
  181. package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  182. package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  183. package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  184. package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  185. package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  186. package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  187. package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  188. package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  189. package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  190. package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  191. package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  192. package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  193. package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  194. package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  195. package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  196. package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  197. package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  198. package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  199. package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  200. package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  201. package/node_modules/uuid/dist/cjs-browser/stringify.js +38 -0
  202. package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +1 -0
  203. package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +50 -0
  204. package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +1 -0
  205. package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +14 -0
  206. package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +1 -0
  207. package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +23 -0
  208. package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +33 -0
  209. package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +91 -0
  210. package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +1 -0
  211. package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +127 -0
  212. package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +1 -0
  213. package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +143 -0
  214. package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +1 -0
  215. package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +60 -0
  216. package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +1 -0
  217. package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +56 -0
  218. package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +1 -0
  219. package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +194 -0
  220. package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +1 -0
  221. package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +13 -0
  222. package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +1 -0
  223. package/node_modules/uuid/dist/cjs-browser/test/version.test.js +20 -0
  224. package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  225. package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  226. package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  227. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  228. package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  229. package/node_modules/uuid/dist/cjs-browser/v1.js +78 -0
  230. package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  231. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  232. package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  233. package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  234. package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  235. package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
  236. package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  237. package/node_modules/uuid/dist/cjs-browser/v4.js +23 -0
  238. package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  239. package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  240. package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  241. package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
  242. package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  243. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  244. package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  245. package/node_modules/uuid/dist/cjs-browser/v7.js +60 -0
  246. package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  247. package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  248. package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  249. package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  250. package/node_modules/uuid/dist/esm/bin/uuid +2 -0
  251. package/node_modules/uuid/dist/esm/index.d.ts +15 -0
  252. package/node_modules/uuid/dist/{esm-node → esm}/index.js +1 -1
  253. package/node_modules/uuid/dist/esm/max.d.ts +2 -0
  254. package/node_modules/uuid/dist/esm/max.js +1 -0
  255. package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
  256. package/node_modules/uuid/dist/esm/md5.js +11 -0
  257. package/node_modules/uuid/dist/esm/native.d.ts +5 -0
  258. package/node_modules/uuid/dist/esm/native.js +2 -0
  259. package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  260. package/node_modules/uuid/dist/esm/nil.js +1 -0
  261. package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  262. package/node_modules/uuid/dist/esm/parse.js +9 -0
  263. package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  264. package/node_modules/uuid/dist/{esm-node → esm}/regex.js +1 -1
  265. package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  266. package/node_modules/uuid/dist/esm/rng.js +10 -0
  267. package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
  268. package/node_modules/uuid/dist/esm/sha1.js +11 -0
  269. package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  270. package/node_modules/uuid/dist/esm/stringify.js +35 -0
  271. package/node_modules/uuid/dist/esm/test/parse.test.d.ts +1 -0
  272. package/node_modules/uuid/dist/esm/test/parse.test.js +48 -0
  273. package/node_modules/uuid/dist/esm/test/rng.test.d.ts +1 -0
  274. package/node_modules/uuid/dist/esm/test/rng.test.js +12 -0
  275. package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +1 -0
  276. package/node_modules/uuid/dist/esm/test/stringify.test.js +21 -0
  277. package/node_modules/uuid/dist/esm/test/test_constants.d.ts +33 -0
  278. package/node_modules/uuid/dist/esm/test/test_constants.js +88 -0
  279. package/node_modules/uuid/dist/esm/test/v1.test.d.ts +1 -0
  280. package/node_modules/uuid/dist/esm/test/v1.test.js +125 -0
  281. package/node_modules/uuid/dist/esm/test/v35.test.d.ts +1 -0
  282. package/node_modules/uuid/dist/esm/test/v35.test.js +141 -0
  283. package/node_modules/uuid/dist/esm/test/v4.test.d.ts +1 -0
  284. package/node_modules/uuid/dist/esm/test/v4.test.js +58 -0
  285. package/node_modules/uuid/dist/esm/test/v6.test.d.ts +1 -0
  286. package/node_modules/uuid/dist/esm/test/v6.test.js +54 -0
  287. package/node_modules/uuid/dist/esm/test/v7.test.d.ts +1 -0
  288. package/node_modules/uuid/dist/esm/test/v7.test.js +192 -0
  289. package/node_modules/uuid/dist/esm/test/validate.test.d.ts +1 -0
  290. package/node_modules/uuid/dist/esm/test/validate.test.js +11 -0
  291. package/node_modules/uuid/dist/esm/test/version.test.d.ts +1 -0
  292. package/node_modules/uuid/dist/esm/test/version.test.js +18 -0
  293. package/node_modules/uuid/dist/esm/types.d.ts +21 -0
  294. package/node_modules/uuid/dist/esm/types.js +1 -0
  295. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  296. package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  297. package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  298. package/node_modules/uuid/dist/esm/v1.js +75 -0
  299. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  300. package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  301. package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  302. package/node_modules/uuid/dist/esm/v3.js +9 -0
  303. package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  304. package/node_modules/uuid/dist/esm/v35.js +36 -0
  305. package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  306. package/node_modules/uuid/dist/esm/v4.js +21 -0
  307. package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  308. package/node_modules/uuid/dist/esm/v5.js +9 -0
  309. package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  310. package/node_modules/uuid/dist/esm/v6.js +17 -0
  311. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  312. package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  313. package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  314. package/node_modules/uuid/dist/esm/v7.js +57 -0
  315. package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  316. package/node_modules/uuid/dist/esm/validate.js +5 -0
  317. package/node_modules/uuid/dist/esm/version.d.ts +2 -0
  318. package/node_modules/uuid/dist/esm/version.js +8 -0
  319. package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  320. package/node_modules/uuid/dist/esm-browser/index.js +1 -1
  321. package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  322. package/node_modules/uuid/dist/esm-browser/max.js +1 -1
  323. package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  324. package/node_modules/uuid/dist/esm-browser/md5.js +113 -172
  325. package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  326. package/node_modules/uuid/dist/esm-browser/native.js +2 -4
  327. package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  328. package/node_modules/uuid/dist/esm-browser/nil.js +1 -1
  329. package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  330. package/node_modules/uuid/dist/esm-browser/parse.js +6 -34
  331. package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  332. package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
  333. package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  334. package/node_modules/uuid/dist/esm-browser/rng.js +8 -14
  335. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  336. package/node_modules/uuid/dist/esm-browser/sha1.js +62 -68
  337. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  338. package/node_modules/uuid/dist/esm-browser/stringify.js +29 -25
  339. package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +1 -0
  340. package/node_modules/uuid/dist/esm-browser/test/parse.test.js +48 -0
  341. package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +1 -0
  342. package/node_modules/uuid/dist/esm-browser/test/rng.test.js +12 -0
  343. package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +1 -0
  344. package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +21 -0
  345. package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +33 -0
  346. package/node_modules/uuid/dist/esm-browser/test/test_constants.js +88 -0
  347. package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +1 -0
  348. package/node_modules/uuid/dist/esm-browser/test/v1.test.js +125 -0
  349. package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +1 -0
  350. package/node_modules/uuid/dist/esm-browser/test/v35.test.js +141 -0
  351. package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +1 -0
  352. package/node_modules/uuid/dist/esm-browser/test/v4.test.js +58 -0
  353. package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +1 -0
  354. package/node_modules/uuid/dist/esm-browser/test/v6.test.js +54 -0
  355. package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +1 -0
  356. package/node_modules/uuid/dist/esm-browser/test/v7.test.js +192 -0
  357. package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +1 -0
  358. package/node_modules/uuid/dist/esm-browser/test/validate.test.js +11 -0
  359. package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +1 -0
  360. package/node_modules/uuid/dist/esm-browser/test/version.test.js +18 -0
  361. package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  362. package/node_modules/uuid/dist/esm-browser/types.js +1 -0
  363. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  364. package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  365. package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  366. package/node_modules/uuid/dist/esm-browser/v1.js +67 -117
  367. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  368. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +6 -16
  369. package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  370. package/node_modules/uuid/dist/esm-browser/v3.js +8 -3
  371. package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  372. package/node_modules/uuid/dist/esm-browser/v35.js +28 -47
  373. package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  374. package/node_modules/uuid/dist/esm-browser/v4.js +15 -19
  375. package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  376. package/node_modules/uuid/dist/esm-browser/v5.js +8 -3
  377. package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  378. package/node_modules/uuid/dist/esm-browser/v6.js +13 -32
  379. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  380. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +5 -15
  381. package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  382. package/node_modules/uuid/dist/esm-browser/v7.js +50 -139
  383. package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  384. package/node_modules/uuid/dist/esm-browser/validate.js +2 -2
  385. package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  386. package/node_modules/uuid/dist/esm-browser/version.js +5 -5
  387. package/node_modules/uuid/package.json +58 -66
  388. package/package.json +4 -4
  389. package/tak-registration.js +1 -4
  390. package/node_modules/@types/node/globals.global.d.ts +0 -1
  391. package/node_modules/point-in-polygon-hao/.eslintrc +0 -10
  392. package/node_modules/point-in-polygon-hao/CHANGES.md +0 -8
  393. package/node_modules/point-in-polygon-hao/FUNDING.yml +0 -2
  394. package/node_modules/point-in-polygon-hao/dist/pointInPolygon.mjs +0 -76
  395. package/node_modules/point-in-polygon-hao/rollup.config.js +0 -19
  396. package/node_modules/point-in-polygon-hao/src/index.js +0 -74
  397. package/node_modules/uuid/dist/bin/uuid +0 -2
  398. package/node_modules/uuid/dist/commonjs-browser/index.js +0 -104
  399. package/node_modules/uuid/dist/commonjs-browser/max.js +0 -7
  400. package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -200
  401. package/node_modules/uuid/dist/commonjs-browser/native.js +0 -10
  402. package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -7
  403. package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -44
  404. package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -7
  405. package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -23
  406. package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -82
  407. package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -38
  408. package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -131
  409. package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +0 -26
  410. package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -11
  411. package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -63
  412. package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -32
  413. package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -11
  414. package/node_modules/uuid/dist/commonjs-browser/v6.js +0 -42
  415. package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +0 -26
  416. package/node_modules/uuid/dist/commonjs-browser/v7.js +0 -152
  417. package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -12
  418. package/node_modules/uuid/dist/commonjs-browser/version.js +0 -15
  419. package/node_modules/uuid/dist/esm-node/max.js +0 -1
  420. package/node_modules/uuid/dist/esm-node/md5.js +0 -10
  421. package/node_modules/uuid/dist/esm-node/native.js +0 -4
  422. package/node_modules/uuid/dist/esm-node/nil.js +0 -1
  423. package/node_modules/uuid/dist/esm-node/parse.js +0 -37
  424. package/node_modules/uuid/dist/esm-node/rng.js +0 -10
  425. package/node_modules/uuid/dist/esm-node/sha1.js +0 -10
  426. package/node_modules/uuid/dist/esm-node/stringify.js +0 -31
  427. package/node_modules/uuid/dist/esm-node/v1.js +0 -125
  428. package/node_modules/uuid/dist/esm-node/v1ToV6.js +0 -20
  429. package/node_modules/uuid/dist/esm-node/v3.js +0 -4
  430. package/node_modules/uuid/dist/esm-node/v35.js +0 -55
  431. package/node_modules/uuid/dist/esm-node/v4.js +0 -25
  432. package/node_modules/uuid/dist/esm-node/v5.js +0 -4
  433. package/node_modules/uuid/dist/esm-node/v6.js +0 -32
  434. package/node_modules/uuid/dist/esm-node/v6ToV1.js +0 -20
  435. package/node_modules/uuid/dist/esm-node/v7.js +0 -146
  436. package/node_modules/uuid/dist/esm-node/validate.js +0 -5
  437. package/node_modules/uuid/dist/esm-node/version.js +0 -8
  438. package/node_modules/uuid/dist/index.js +0 -104
  439. package/node_modules/uuid/dist/max.js +0 -7
  440. package/node_modules/uuid/dist/md5-browser.js +0 -200
  441. package/node_modules/uuid/dist/md5.js +0 -17
  442. package/node_modules/uuid/dist/native-browser.js +0 -10
  443. package/node_modules/uuid/dist/native.js +0 -11
  444. package/node_modules/uuid/dist/nil.js +0 -7
  445. package/node_modules/uuid/dist/parse.js +0 -44
  446. package/node_modules/uuid/dist/regex.js +0 -7
  447. package/node_modules/uuid/dist/rng-browser.js +0 -23
  448. package/node_modules/uuid/dist/rng.js +0 -17
  449. package/node_modules/uuid/dist/sha1-browser.js +0 -82
  450. package/node_modules/uuid/dist/sha1.js +0 -17
  451. package/node_modules/uuid/dist/stringify.js +0 -38
  452. package/node_modules/uuid/dist/uuid-bin.js +0 -75
  453. package/node_modules/uuid/dist/v1.js +0 -131
  454. package/node_modules/uuid/dist/v1ToV6.js +0 -26
  455. package/node_modules/uuid/dist/v3.js +0 -11
  456. package/node_modules/uuid/dist/v35.js +0 -63
  457. package/node_modules/uuid/dist/v4.js +0 -32
  458. package/node_modules/uuid/dist/v5.js +0 -11
  459. package/node_modules/uuid/dist/v6.js +0 -38
  460. package/node_modules/uuid/dist/v6ToV1.js +0 -26
  461. package/node_modules/uuid/dist/v7.js +0 -152
  462. package/node_modules/uuid/dist/validate.js +0 -12
  463. package/node_modules/uuid/dist/version.js +0 -15
  464. package/node_modules/uuid/wrapper.mjs +0 -15
  465. /package/node_modules/point-in-polygon-hao/{index.d.ts → dist/cjs/index.d.cts} +0 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateV7State = updateV7State;
4
+ const rng_js_1 = require("./rng.js");
5
+ const stringify_js_1 = require("./stringify.js");
6
+ const _state = {};
7
+ function v7(options, buf, offset) {
8
+ let bytes;
9
+ if (options) {
10
+ bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
11
+ }
12
+ else {
13
+ const now = Date.now();
14
+ const rnds = (0, rng_js_1.default)();
15
+ updateV7State(_state, now, rnds);
16
+ bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
17
+ }
18
+ return buf ? bytes : (0, stringify_js_1.unsafeStringify)(bytes);
19
+ }
20
+ function updateV7State(state, now, rnds) {
21
+ state.msecs ??= -Infinity;
22
+ state.seq ??= 0;
23
+ if (now > state.msecs) {
24
+ state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
25
+ state.msecs = now;
26
+ }
27
+ else {
28
+ state.seq = (state.seq + 1) | 0;
29
+ if (state.seq === 0) {
30
+ state.msecs++;
31
+ }
32
+ }
33
+ return state;
34
+ }
35
+ function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
36
+ if (!buf) {
37
+ buf = new Uint8Array(16);
38
+ offset = 0;
39
+ }
40
+ msecs ??= Date.now();
41
+ seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
42
+ buf[offset++] = (msecs / 0x10000000000) & 0xff;
43
+ buf[offset++] = (msecs / 0x100000000) & 0xff;
44
+ buf[offset++] = (msecs / 0x1000000) & 0xff;
45
+ buf[offset++] = (msecs / 0x10000) & 0xff;
46
+ buf[offset++] = (msecs / 0x100) & 0xff;
47
+ buf[offset++] = msecs & 0xff;
48
+ buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
49
+ buf[offset++] = (seq >>> 20) & 0xff;
50
+ buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
51
+ buf[offset++] = (seq >>> 6) & 0xff;
52
+ buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
53
+ buf[offset++] = rnds[11];
54
+ buf[offset++] = rnds[12];
55
+ buf[offset++] = rnds[13];
56
+ buf[offset++] = rnds[14];
57
+ buf[offset++] = rnds[15];
58
+ return buf;
59
+ }
60
+ exports.default = v7;
@@ -0,0 +1,2 @@
1
+ declare function validate(uuid: unknown): boolean;
2
+ export default validate;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const regex_js_1 = require("./regex.js");
4
+ function validate(uuid) {
5
+ return typeof uuid === 'string' && regex_js_1.default.test(uuid);
6
+ }
7
+ exports.default = validate;
@@ -0,0 +1,2 @@
1
+ declare function version(uuid: string): number;
2
+ export default version;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const validate_js_1 = require("./validate.js");
4
+ function version(uuid) {
5
+ if (!(0, validate_js_1.default)(uuid)) {
6
+ throw TypeError('Invalid UUID');
7
+ }
8
+ return parseInt(uuid.slice(14, 15), 16);
9
+ }
10
+ exports.default = version;
@@ -0,0 +1,15 @@
1
+ export type * from './types.js';
2
+ export { default as MAX } from './max.js';
3
+ export { default as NIL } from './nil.js';
4
+ export { default as parse } from './parse.js';
5
+ export { default as stringify } from './stringify.js';
6
+ export { default as v1 } from './v1.js';
7
+ export { default as v1ToV6 } from './v1ToV6.js';
8
+ export { default as v3 } from './v3.js';
9
+ export { default as v4 } from './v4.js';
10
+ export { default as v5 } from './v5.js';
11
+ export { default as v6 } from './v6.js';
12
+ export { default as v6ToV1 } from './v6ToV1.js';
13
+ export { default as v7 } from './v7.js';
14
+ export { default as validate } from './validate.js';
15
+ export { default as version } from './version.js';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0;
4
+ var max_js_1 = require("./max.js");
5
+ Object.defineProperty(exports, "MAX", { enumerable: true, get: function () { return max_js_1.default; } });
6
+ var nil_js_1 = require("./nil.js");
7
+ Object.defineProperty(exports, "NIL", { enumerable: true, get: function () { return nil_js_1.default; } });
8
+ var parse_js_1 = require("./parse.js");
9
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_js_1.default; } });
10
+ var stringify_js_1 = require("./stringify.js");
11
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.default; } });
12
+ var v1_js_1 = require("./v1.js");
13
+ Object.defineProperty(exports, "v1", { enumerable: true, get: function () { return v1_js_1.default; } });
14
+ var v1ToV6_js_1 = require("./v1ToV6.js");
15
+ Object.defineProperty(exports, "v1ToV6", { enumerable: true, get: function () { return v1ToV6_js_1.default; } });
16
+ var v3_js_1 = require("./v3.js");
17
+ Object.defineProperty(exports, "v3", { enumerable: true, get: function () { return v3_js_1.default; } });
18
+ var v4_js_1 = require("./v4.js");
19
+ Object.defineProperty(exports, "v4", { enumerable: true, get: function () { return v4_js_1.default; } });
20
+ var v5_js_1 = require("./v5.js");
21
+ Object.defineProperty(exports, "v5", { enumerable: true, get: function () { return v5_js_1.default; } });
22
+ var v6_js_1 = require("./v6.js");
23
+ Object.defineProperty(exports, "v6", { enumerable: true, get: function () { return v6_js_1.default; } });
24
+ var v6ToV1_js_1 = require("./v6ToV1.js");
25
+ Object.defineProperty(exports, "v6ToV1", { enumerable: true, get: function () { return v6ToV1_js_1.default; } });
26
+ var v7_js_1 = require("./v7.js");
27
+ Object.defineProperty(exports, "v7", { enumerable: true, get: function () { return v7_js_1.default; } });
28
+ var validate_js_1 = require("./validate.js");
29
+ Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_js_1.default; } });
30
+ var version_js_1 = require("./version.js");
31
+ Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_js_1.default; } });
@@ -0,0 +1,2 @@
1
+ declare const _default: "ffffffff-ffff-ffff-ffff-ffffffffffff";
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
@@ -0,0 +1,2 @@
1
+ declare function md5(bytes: Uint8Array): Uint8Array;
2
+ export default md5;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function md5(bytes) {
4
+ const words = uint8ToUint32(bytes);
5
+ const md5Bytes = wordsToMd5(words, bytes.length * 8);
6
+ return uint32ToUint8(md5Bytes);
7
+ }
8
+ function uint32ToUint8(input) {
9
+ const bytes = new Uint8Array(input.length * 4);
10
+ for (let i = 0; i < input.length * 4; i++) {
11
+ bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff;
12
+ }
13
+ return bytes;
14
+ }
15
+ function getOutputLength(inputLength8) {
16
+ return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1;
17
+ }
18
+ function wordsToMd5(x, len) {
19
+ const xpad = new Uint32Array(getOutputLength(len)).fill(0);
20
+ xpad.set(x);
21
+ xpad[len >> 5] |= 0x80 << len % 32;
22
+ xpad[xpad.length - 1] = len;
23
+ x = xpad;
24
+ let a = 1732584193;
25
+ let b = -271733879;
26
+ let c = -1732584194;
27
+ let d = 271733878;
28
+ for (let i = 0; i < x.length; i += 16) {
29
+ const olda = a;
30
+ const oldb = b;
31
+ const oldc = c;
32
+ const oldd = d;
33
+ a = md5ff(a, b, c, d, x[i], 7, -680876936);
34
+ d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
35
+ c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
36
+ b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
37
+ a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
38
+ d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
39
+ c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
40
+ b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
41
+ a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
42
+ d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
43
+ c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
44
+ b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
45
+ a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
46
+ d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
47
+ c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
48
+ b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
49
+ a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
50
+ d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
51
+ c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
52
+ b = md5gg(b, c, d, a, x[i], 20, -373897302);
53
+ a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
54
+ d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
55
+ c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
56
+ b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
57
+ a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
58
+ d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
59
+ c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
60
+ b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
61
+ a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
62
+ d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
63
+ c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
64
+ b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
65
+ a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
66
+ d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
67
+ c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
68
+ b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
69
+ a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
70
+ d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
71
+ c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
72
+ b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
73
+ a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
74
+ d = md5hh(d, a, b, c, x[i], 11, -358537222);
75
+ c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
76
+ b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
77
+ a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
78
+ d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
79
+ c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
80
+ b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
81
+ a = md5ii(a, b, c, d, x[i], 6, -198630844);
82
+ d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
83
+ c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
84
+ b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
85
+ a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
86
+ d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
87
+ c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
88
+ b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
89
+ a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
90
+ d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
91
+ c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
92
+ b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
93
+ a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
94
+ d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
95
+ c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
96
+ b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
97
+ a = safeAdd(a, olda);
98
+ b = safeAdd(b, oldb);
99
+ c = safeAdd(c, oldc);
100
+ d = safeAdd(d, oldd);
101
+ }
102
+ return Uint32Array.of(a, b, c, d);
103
+ }
104
+ function uint8ToUint32(input) {
105
+ if (input.length === 0) {
106
+ return new Uint32Array();
107
+ }
108
+ const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0);
109
+ for (let i = 0; i < input.length; i++) {
110
+ output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8);
111
+ }
112
+ return output;
113
+ }
114
+ function safeAdd(x, y) {
115
+ const lsw = (x & 0xffff) + (y & 0xffff);
116
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
117
+ return (msw << 16) | (lsw & 0xffff);
118
+ }
119
+ function bitRotateLeft(num, cnt) {
120
+ return (num << cnt) | (num >>> (32 - cnt));
121
+ }
122
+ function md5cmn(q, a, b, x, s, t) {
123
+ return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
124
+ }
125
+ function md5ff(a, b, c, d, x, s, t) {
126
+ return md5cmn((b & c) | (~b & d), a, b, x, s, t);
127
+ }
128
+ function md5gg(a, b, c, d, x, s, t) {
129
+ return md5cmn((b & d) | (c & ~d), a, b, x, s, t);
130
+ }
131
+ function md5hh(a, b, c, d, x, s, t) {
132
+ return md5cmn(b ^ c ^ d, a, b, x, s, t);
133
+ }
134
+ function md5ii(a, b, c, d, x, s, t) {
135
+ return md5cmn(c ^ (b | ~d), a, b, x, s, t);
136
+ }
137
+ exports.default = md5;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ randomUUID: false | (() => `${string}-${string}-${string}-${string}-${string}`);
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
4
+ exports.default = { randomUUID };
@@ -0,0 +1,2 @@
1
+ declare const _default: "00000000-0000-0000-0000-000000000000";
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = '00000000-0000-0000-0000-000000000000';
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1,2 @@
1
+ declare function parse(uuid: string): Uint8Array;
2
+ export default parse;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const validate_js_1 = require("./validate.js");
4
+ function parse(uuid) {
5
+ if (!(0, validate_js_1.default)(uuid)) {
6
+ throw TypeError('Invalid UUID');
7
+ }
8
+ let v;
9
+ return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
10
+ }
11
+ exports.default = parse;
@@ -0,0 +1,2 @@
1
+ declare const _default: RegExp;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
@@ -0,0 +1 @@
1
+ export default function rng(): Uint8Array;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = rng;
4
+ let getRandomValues;
5
+ const rnds8 = new Uint8Array(16);
6
+ function rng() {
7
+ if (!getRandomValues) {
8
+ if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
9
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
10
+ }
11
+ getRandomValues = crypto.getRandomValues.bind(crypto);
12
+ }
13
+ return getRandomValues(rnds8);
14
+ }
@@ -0,0 +1,2 @@
1
+ declare function sha1(bytes: Uint8Array): Uint8Array;
2
+ export default sha1;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function f(s, x, y, z) {
4
+ switch (s) {
5
+ case 0:
6
+ return (x & y) ^ (~x & z);
7
+ case 1:
8
+ return x ^ y ^ z;
9
+ case 2:
10
+ return (x & y) ^ (x & z) ^ (y & z);
11
+ case 3:
12
+ return x ^ y ^ z;
13
+ }
14
+ }
15
+ function ROTL(x, n) {
16
+ return (x << n) | (x >>> (32 - n));
17
+ }
18
+ function sha1(bytes) {
19
+ const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
20
+ const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
21
+ const newBytes = new Uint8Array(bytes.length + 1);
22
+ newBytes.set(bytes);
23
+ newBytes[bytes.length] = 0x80;
24
+ bytes = newBytes;
25
+ const l = bytes.length / 4 + 2;
26
+ const N = Math.ceil(l / 16);
27
+ const M = new Array(N);
28
+ for (let i = 0; i < N; ++i) {
29
+ const arr = new Uint32Array(16);
30
+ for (let j = 0; j < 16; ++j) {
31
+ arr[j] =
32
+ (bytes[i * 64 + j * 4] << 24) |
33
+ (bytes[i * 64 + j * 4 + 1] << 16) |
34
+ (bytes[i * 64 + j * 4 + 2] << 8) |
35
+ bytes[i * 64 + j * 4 + 3];
36
+ }
37
+ M[i] = arr;
38
+ }
39
+ M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32);
40
+ M[N - 1][14] = Math.floor(M[N - 1][14]);
41
+ M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff;
42
+ for (let i = 0; i < N; ++i) {
43
+ const W = new Uint32Array(80);
44
+ for (let t = 0; t < 16; ++t) {
45
+ W[t] = M[i][t];
46
+ }
47
+ for (let t = 16; t < 80; ++t) {
48
+ W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
49
+ }
50
+ let a = H[0];
51
+ let b = H[1];
52
+ let c = H[2];
53
+ let d = H[3];
54
+ let e = H[4];
55
+ for (let t = 0; t < 80; ++t) {
56
+ const s = Math.floor(t / 20);
57
+ const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0;
58
+ e = d;
59
+ d = c;
60
+ c = ROTL(b, 30) >>> 0;
61
+ b = a;
62
+ a = T;
63
+ }
64
+ H[0] = (H[0] + a) >>> 0;
65
+ H[1] = (H[1] + b) >>> 0;
66
+ H[2] = (H[2] + c) >>> 0;
67
+ H[3] = (H[3] + d) >>> 0;
68
+ H[4] = (H[4] + e) >>> 0;
69
+ }
70
+ return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]);
71
+ }
72
+ exports.default = sha1;
@@ -0,0 +1,3 @@
1
+ export declare function unsafeStringify(arr: Uint8Array, offset?: number): string;
2
+ declare function stringify(arr: Uint8Array, offset?: number): string;
3
+ export default stringify;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unsafeStringify = unsafeStringify;
4
+ const validate_js_1 = require("./validate.js");
5
+ const byteToHex = [];
6
+ for (let i = 0; i < 256; ++i) {
7
+ byteToHex.push((i + 0x100).toString(16).slice(1));
8
+ }
9
+ function unsafeStringify(arr, offset = 0) {
10
+ return (byteToHex[arr[offset + 0]] +
11
+ byteToHex[arr[offset + 1]] +
12
+ byteToHex[arr[offset + 2]] +
13
+ byteToHex[arr[offset + 3]] +
14
+ '-' +
15
+ byteToHex[arr[offset + 4]] +
16
+ byteToHex[arr[offset + 5]] +
17
+ '-' +
18
+ byteToHex[arr[offset + 6]] +
19
+ byteToHex[arr[offset + 7]] +
20
+ '-' +
21
+ byteToHex[arr[offset + 8]] +
22
+ byteToHex[arr[offset + 9]] +
23
+ '-' +
24
+ byteToHex[arr[offset + 10]] +
25
+ byteToHex[arr[offset + 11]] +
26
+ byteToHex[arr[offset + 12]] +
27
+ byteToHex[arr[offset + 13]] +
28
+ byteToHex[arr[offset + 14]] +
29
+ byteToHex[arr[offset + 15]]).toLowerCase();
30
+ }
31
+ function stringify(arr, offset = 0) {
32
+ const uuid = unsafeStringify(arr, offset);
33
+ if (!(0, validate_js_1.default)(uuid)) {
34
+ throw TypeError('Stringified UUID is invalid');
35
+ }
36
+ return uuid;
37
+ }
38
+ exports.default = stringify;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const assert = require("assert");
4
+ const node_test_1 = require("node:test");
5
+ const parse_js_1 = require("../parse.js");
6
+ const stringify_js_1 = require("../stringify.js");
7
+ const v4_js_1 = require("../v4.js");
8
+ function splitmix32(a) {
9
+ return function () {
10
+ a |= 0;
11
+ a = (a + 0x9e3779b9) | 0;
12
+ let t = a ^ (a >>> 16);
13
+ t = Math.imul(t, 0x21f0aaad);
14
+ t = t ^ (t >>> 15);
15
+ t = Math.imul(t, 0x735a2d97);
16
+ return ((t = t ^ (t >>> 15)) >>> 0) / 4294967296;
17
+ };
18
+ }
19
+ const rand = splitmix32(0x12345678);
20
+ function rng(bytes = new Uint8Array(16)) {
21
+ for (let i = 0; i < 16; i++) {
22
+ bytes[i] = rand() * 256;
23
+ }
24
+ return bytes;
25
+ }
26
+ (0, node_test_1.describe)('parse', () => {
27
+ (0, node_test_1.default)('String -> bytes parsing', () => {
28
+ assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), Uint8Array.from([
29
+ 0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08,
30
+ 0x4b,
31
+ ]));
32
+ });
33
+ (0, node_test_1.default)('String -> bytes -> string symmetry for assorted uuids', () => {
34
+ for (let i = 0; i < 1000; i++) {
35
+ const uuid = (0, v4_js_1.default)({ rng });
36
+ assert.equal((0, stringify_js_1.default)((0, parse_js_1.default)(uuid)), uuid);
37
+ }
38
+ });
39
+ (0, node_test_1.default)('Case neutrality', () => {
40
+ assert.deepStrictEqual((0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'), (0, parse_js_1.default)('0f5abcd1-c194-47f3-905b-2df7263a084b'.toUpperCase()));
41
+ });
42
+ (0, node_test_1.default)('Null UUID case', () => {
43
+ assert.deepStrictEqual((0, parse_js_1.default)('00000000-0000-0000-0000-000000000000'), Uint8Array.from(new Array(16).fill(0)));
44
+ });
45
+ (0, node_test_1.default)('UUID validation', () => {
46
+ assert.throws(() => (0, parse_js_1.default)());
47
+ assert.throws(() => (0, parse_js_1.default)('invalid uuid'));
48
+ assert.throws(() => (0, parse_js_1.default)('zyxwvuts-rqpo-nmlk-jihg-fedcba000000'));
49
+ });
50
+ });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const assert = require("assert");
4
+ const node_test_1 = require("node:test");
5
+ const rng_js_1 = require("../rng.js");
6
+ (0, node_test_1.describe)('rng', () => {
7
+ (0, node_test_1.default)('Node.js RNG', () => {
8
+ const bytes = (0, rng_js_1.default)();
9
+ assert.equal(bytes.length, 16);
10
+ for (let i = 0; i < bytes.length; ++i) {
11
+ assert.equal(typeof bytes[i], 'number');
12
+ }
13
+ });
14
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const assert = require("assert");
4
+ const node_test_1 = require("node:test");
5
+ const stringify_js_1 = require("../stringify.js");
6
+ const BYTES = Uint8Array.of(0x0f, 0x5a, 0xbc, 0xd1, 0xc1, 0x94, 0x47, 0xf3, 0x90, 0x5b, 0x2d, 0xf7, 0x26, 0x3a, 0x08, 0x4b);
7
+ (0, node_test_1.describe)('stringify', () => {
8
+ (0, node_test_1.default)('Stringify Array (unsafe)', () => {
9
+ assert.equal((0, stringify_js_1.unsafeStringify)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b');
10
+ });
11
+ (0, node_test_1.default)('Stringify w/ offset (unsafe)', () => {
12
+ const bytes = new Uint8Array(19).fill(0);
13
+ bytes.set(BYTES, 3);
14
+ assert.equal((0, stringify_js_1.unsafeStringify)(bytes, 3), '0f5abcd1-c194-47f3-905b-2df7263a084b');
15
+ });
16
+ (0, node_test_1.default)('Stringify Array (safe)', () => {
17
+ assert.equal((0, stringify_js_1.default)(BYTES), '0f5abcd1-c194-47f3-905b-2df7263a084b');
18
+ });
19
+ (0, node_test_1.default)('Throws on not enough values (safe)', () => {
20
+ const bytes = BYTES.slice(0, 15);
21
+ assert.throws(() => (0, stringify_js_1.default)(bytes));
22
+ });
23
+ });
@@ -0,0 +1,33 @@
1
+ export declare const TESTS: ({
2
+ value: string;
3
+ expectedValidate: boolean;
4
+ expectedVersion: number;
5
+ } | {
6
+ value: string;
7
+ expectedValidate: boolean;
8
+ expectedVersion?: undefined;
9
+ } | {
10
+ value: undefined;
11
+ expectedValidate: boolean;
12
+ expectedVersion?: undefined;
13
+ } | {
14
+ value: null;
15
+ expectedValidate: boolean;
16
+ expectedVersion?: undefined;
17
+ } | {
18
+ value: number;
19
+ expectedValidate: boolean;
20
+ expectedVersion?: undefined;
21
+ } | {
22
+ value: RegExp;
23
+ expectedValidate: boolean;
24
+ expectedVersion?: undefined;
25
+ } | {
26
+ value: Date;
27
+ expectedValidate: boolean;
28
+ expectedVersion?: undefined;
29
+ } | {
30
+ value: boolean;
31
+ expectedValidate: boolean;
32
+ expectedVersion?: undefined;
33
+ })[];