lakutata 2.0.79 → 2.0.81

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 (394) hide show
  1. package/com/cacher.cjs +8 -10
  2. package/com/cacher.d.ts +83 -14
  3. package/com/cacher.mjs +8 -10
  4. package/com/database.cjs +11 -11
  5. package/com/database.mjs +11 -11
  6. package/com/docker.cjs +17 -19
  7. package/com/docker.d.ts +3 -141
  8. package/com/docker.mjs +13 -15
  9. package/com/entrypoint.cjs +7 -5
  10. package/com/entrypoint.mjs +7 -5
  11. package/com/logger.cjs +7 -7
  12. package/com/logger.mjs +7 -7
  13. package/com/monitor.cjs +5 -3
  14. package/com/monitor.mjs +5 -3
  15. package/decorator/ctrl.cjs +3 -3
  16. package/decorator/ctrl.mjs +3 -3
  17. package/decorator/orm.cjs +98 -98
  18. package/decorator/orm.mjs +142 -56
  19. package/helper.cjs +9 -11
  20. package/helper.mjs +5 -7
  21. package/lakutata.cjs +23 -30
  22. package/lakutata.mjs +14 -18
  23. package/orm.cjs +1423 -886
  24. package/orm.mjs +1474 -724
  25. package/package.json +1 -1
  26. package/provider/database.cjs +11 -11
  27. package/provider/database.mjs +11 -11
  28. package/provider/passwordHash.cjs +4 -2
  29. package/provider/passwordHash.mjs +4 -2
  30. package/src/components/Database.cjs +11 -11
  31. package/src/components/Database.mjs +11 -11
  32. package/src/components/Logger.cjs +7 -7
  33. package/src/components/Logger.mjs +7 -7
  34. package/src/components/cacher/Cacher.cjs +1178 -264
  35. package/src/components/cacher/Cacher.mjs +1087 -173
  36. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +479 -2963
  37. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +469 -2947
  38. package/src/components/docker/ConnectionOptionsBuilder.cjs +15 -17
  39. package/src/components/docker/ConnectionOptionsBuilder.mjs +13 -15
  40. package/src/components/docker/Docker.cjs +4884 -4945
  41. package/src/components/docker/Docker.mjs +4902 -4963
  42. package/src/components/docker/lib/DockerContainer.cjs +23 -25
  43. package/src/components/docker/lib/DockerContainer.mjs +17 -19
  44. package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
  45. package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
  46. package/src/components/docker/lib/DockerImage.cjs +4 -2
  47. package/src/components/docker/lib/DockerImage.mjs +4 -2
  48. package/src/components/entrypoint/Entrypoint.cjs +2170 -1678
  49. package/src/components/entrypoint/Entrypoint.mjs +2126 -1634
  50. package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
  51. package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
  52. package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
  53. package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
  54. package/src/components/entrypoint/lib/Controller.cjs +4 -2
  55. package/src/components/entrypoint/lib/Controller.mjs +4 -2
  56. package/src/components/monitor/AliveMonitor.cjs +4 -2
  57. package/src/components/monitor/AliveMonitor.mjs +4 -2
  58. package/src/components/monitor/CpuMonitor.cjs +5 -3
  59. package/src/components/monitor/CpuMonitor.mjs +5 -3
  60. package/src/components/monitor/EventLoopMonitor.cjs +4 -2
  61. package/src/components/monitor/EventLoopMonitor.mjs +4 -2
  62. package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
  63. package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
  64. package/src/components/monitor/MemoryMonitor.cjs +5 -3
  65. package/src/components/monitor/MemoryMonitor.mjs +5 -3
  66. package/src/decorators/ctrl/CLIAction.cjs +3 -3
  67. package/src/decorators/ctrl/CLIAction.mjs +3 -3
  68. package/src/decorators/ctrl/HTTPAction.cjs +3 -3
  69. package/src/decorators/ctrl/HTTPAction.mjs +3 -3
  70. package/src/decorators/ctrl/ServiceAction.cjs +3 -3
  71. package/src/decorators/ctrl/ServiceAction.mjs +3 -3
  72. package/src/decorators/ctrl/http/DELETE.cjs +3 -3
  73. package/src/decorators/ctrl/http/DELETE.mjs +3 -3
  74. package/src/decorators/ctrl/http/GET.cjs +3 -3
  75. package/src/decorators/ctrl/http/GET.mjs +3 -3
  76. package/src/decorators/ctrl/http/HEAD.cjs +3 -3
  77. package/src/decorators/ctrl/http/HEAD.mjs +3 -3
  78. package/src/decorators/ctrl/http/OPTIONS.cjs +3 -3
  79. package/src/decorators/ctrl/http/OPTIONS.mjs +3 -3
  80. package/src/decorators/ctrl/http/PATCH.cjs +3 -3
  81. package/src/decorators/ctrl/http/PATCH.mjs +3 -3
  82. package/src/decorators/ctrl/http/POST.cjs +3 -3
  83. package/src/decorators/ctrl/http/POST.mjs +3 -3
  84. package/src/decorators/ctrl/http/PUT.cjs +3 -3
  85. package/src/decorators/ctrl/http/PUT.mjs +3 -3
  86. package/src/decorators/orm/AfterInsert.cjs +17 -39
  87. package/src/decorators/orm/AfterInsert.mjs +18 -38
  88. package/src/decorators/orm/AfterLoad.cjs +17 -39
  89. package/src/decorators/orm/AfterLoad.mjs +18 -38
  90. package/src/decorators/orm/AfterRecover.cjs +17 -39
  91. package/src/decorators/orm/AfterRecover.mjs +18 -38
  92. package/src/decorators/orm/AfterRemove.cjs +17 -39
  93. package/src/decorators/orm/AfterRemove.mjs +18 -38
  94. package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
  95. package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
  96. package/src/decorators/orm/AfterUpdate.cjs +17 -39
  97. package/src/decorators/orm/AfterUpdate.mjs +18 -38
  98. package/src/decorators/orm/BeforeInsert.cjs +17 -39
  99. package/src/decorators/orm/BeforeInsert.mjs +18 -38
  100. package/src/decorators/orm/BeforeRecover.cjs +17 -39
  101. package/src/decorators/orm/BeforeRecover.mjs +18 -38
  102. package/src/decorators/orm/BeforeRemove.cjs +17 -39
  103. package/src/decorators/orm/BeforeRemove.mjs +18 -38
  104. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
  105. package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
  106. package/src/decorators/orm/BeforeUpdate.cjs +17 -39
  107. package/src/decorators/orm/BeforeUpdate.mjs +18 -38
  108. package/src/decorators/orm/Check.cjs +17 -42
  109. package/src/decorators/orm/Check.mjs +18 -41
  110. package/src/decorators/orm/ChildEntity.cjs +17 -42
  111. package/src/decorators/orm/ChildEntity.mjs +18 -41
  112. package/src/decorators/orm/Column.cjs +17 -74
  113. package/src/decorators/orm/Column.mjs +19 -74
  114. package/src/decorators/orm/CreateDateColumn.cjs +17 -38
  115. package/src/decorators/orm/CreateDateColumn.mjs +18 -37
  116. package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
  117. package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
  118. package/src/decorators/orm/Entity.cjs +17 -48
  119. package/src/decorators/orm/Entity.mjs +17 -46
  120. package/src/decorators/orm/EventSubscriber.cjs +17 -35
  121. package/src/decorators/orm/EventSubscriber.mjs +18 -34
  122. package/src/decorators/orm/Exclusion.cjs +17 -42
  123. package/src/decorators/orm/Exclusion.mjs +18 -41
  124. package/src/decorators/orm/Generated.cjs +17 -37
  125. package/src/decorators/orm/Generated.mjs +18 -36
  126. package/src/decorators/orm/Index.cjs +17 -54
  127. package/src/decorators/orm/Index.mjs +19 -54
  128. package/src/decorators/orm/JoinColumn.cjs +17 -42
  129. package/src/decorators/orm/JoinColumn.mjs +18 -41
  130. package/src/decorators/orm/JoinTable.cjs +17 -43
  131. package/src/decorators/orm/JoinTable.mjs +17 -41
  132. package/src/decorators/orm/ManyToMany.cjs +17 -55
  133. package/src/decorators/orm/ManyToMany.mjs +17 -53
  134. package/src/decorators/orm/ManyToOne.cjs +17 -55
  135. package/src/decorators/orm/ManyToOne.mjs +17 -53
  136. package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
  137. package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
  138. package/src/decorators/orm/OneToMany.cjs +17 -47
  139. package/src/decorators/orm/OneToMany.mjs +19 -47
  140. package/src/decorators/orm/OneToOne.cjs +17 -55
  141. package/src/decorators/orm/OneToOne.mjs +17 -53
  142. package/src/decorators/orm/PrimaryColumn.cjs +17 -62
  143. package/src/decorators/orm/PrimaryColumn.mjs +19 -62
  144. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
  145. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
  146. package/src/decorators/orm/RelationId.cjs +17 -39
  147. package/src/decorators/orm/RelationId.mjs +18 -38
  148. package/src/decorators/orm/TableInheritance.cjs +17 -39
  149. package/src/decorators/orm/TableInheritance.mjs +18 -38
  150. package/src/decorators/orm/Tree.cjs +17 -37
  151. package/src/decorators/orm/Tree.mjs +18 -36
  152. package/src/decorators/orm/TreeChildren.cjs +17 -44
  153. package/src/decorators/orm/TreeChildren.mjs +17 -42
  154. package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
  155. package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
  156. package/src/decorators/orm/TreeParent.cjs +17 -44
  157. package/src/decorators/orm/TreeParent.mjs +17 -42
  158. package/src/decorators/orm/Unique.cjs +17 -57
  159. package/src/decorators/orm/Unique.mjs +19 -57
  160. package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
  161. package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
  162. package/src/decorators/orm/VersionColumn.cjs +17 -38
  163. package/src/decorators/orm/VersionColumn.mjs +18 -37
  164. package/src/decorators/orm/ViewColumn.cjs +17 -38
  165. package/src/decorators/orm/ViewColumn.mjs +18 -37
  166. package/src/decorators/orm/ViewEntity.cjs +17 -47
  167. package/src/decorators/orm/ViewEntity.mjs +18 -46
  168. package/src/decorators/orm/VirtualColumn.cjs +17 -55
  169. package/src/decorators/orm/VirtualColumn.mjs +17 -53
  170. package/src/lib/base/BaseObject.cjs +4 -2
  171. package/src/lib/base/BaseObject.mjs +4 -2
  172. package/src/lib/base/EventEmitter.cjs +1200 -1193
  173. package/src/lib/base/EventEmitter.mjs +1201 -1194
  174. package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
  175. package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
  176. package/src/lib/base/internal/ControllerEntrypoint.cjs +3 -3
  177. package/src/lib/base/internal/ControllerEntrypoint.mjs +3 -3
  178. package/src/lib/base/internal/DataValidator.cjs +176 -179
  179. package/src/lib/base/internal/DataValidator.mjs +177 -180
  180. package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
  181. package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
  182. package/src/lib/base/internal/ObjectType.cjs +4 -2
  183. package/src/lib/base/internal/ObjectType.mjs +4 -2
  184. package/src/lib/base/internal/PatternManager.cjs +740 -735
  185. package/src/lib/base/internal/PatternManager.mjs +745 -740
  186. package/src/lib/base/internal/StringifyPattern.cjs +1 -1
  187. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  188. package/src/lib/core/Application.cjs +154 -146
  189. package/src/lib/core/Application.mjs +203 -197
  190. package/src/lib/core/Component.cjs +4 -2
  191. package/src/lib/core/Component.mjs +4 -2
  192. package/src/lib/core/Container.cjs +4 -2
  193. package/src/lib/core/Container.mjs +4 -2
  194. package/src/lib/core/Module.cjs +5 -3
  195. package/src/lib/core/Module.mjs +5 -3
  196. package/src/lib/core/Provider.cjs +4 -2
  197. package/src/lib/core/Provider.mjs +4 -2
  198. package/src/lib/helpers/Glob.cjs +970 -721
  199. package/src/lib/helpers/Glob.mjs +1036 -787
  200. package/src/lib/helpers/IsHtml.cjs +7 -13
  201. package/src/lib/helpers/IsHtml.mjs +7 -13
  202. package/src/lib/helpers/IsXML.cjs +1158 -1016
  203. package/src/lib/helpers/IsXML.mjs +871 -729
  204. package/src/lib/helpers/MD5.cjs +1 -1
  205. package/src/lib/helpers/MD5.mjs +1 -1
  206. package/src/lib/helpers/NonceStr.cjs +1 -1
  207. package/src/lib/helpers/NonceStr.mjs +1 -1
  208. package/src/lib/helpers/ObjectHash.cjs +379 -372
  209. package/src/lib/helpers/ObjectHash.mjs +379 -372
  210. package/src/lib/helpers/RandomString.cjs +168 -147
  211. package/src/lib/helpers/RandomString.mjs +167 -146
  212. package/src/lib/helpers/SHA1.cjs +1 -1
  213. package/src/lib/helpers/SHA1.mjs +1 -1
  214. package/src/lib/helpers/SHA256.cjs +1 -1
  215. package/src/lib/helpers/SHA256.mjs +1 -1
  216. package/src/lib/helpers/SortArray.cjs +1 -1
  217. package/src/lib/helpers/SortArray.mjs +1 -1
  218. package/src/lib/helpers/Statistics.cjs +1 -1
  219. package/src/lib/helpers/Statistics.mjs +1 -1
  220. package/src/lib/helpers/URLBuilder.cjs +355 -355
  221. package/src/lib/helpers/URLBuilder.mjs +350 -350
  222. package/src/lib/helpers/UUID.cjs +1 -1
  223. package/src/lib/helpers/UUID.mjs +1 -1
  224. package/src/lib/ioc/DependencyInjectionContainer.cjs +32 -30
  225. package/src/lib/ioc/DependencyInjectionContainer.mjs +12 -10
  226. package/src/lib/ioc/ListModules.cjs +5174 -5249
  227. package/src/lib/ioc/ListModules.mjs +5177 -5252
  228. package/src/lib/validation/VLD.cjs +4080 -3902
  229. package/src/lib/validation/VLD.mjs +2970 -2792
  230. package/src/options/ApplicationOptions.cjs +4 -2
  231. package/src/options/ApplicationOptions.mjs +4 -2
  232. package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
  233. package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
  234. package/src/options/LoadNamedObjectOptions.cjs +4 -2
  235. package/src/options/LoadNamedObjectOptions.mjs +4 -2
  236. package/src/options/LoadObjectOptions.cjs +4 -2
  237. package/src/options/LoadObjectOptions.mjs +4 -2
  238. package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
  239. package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
  240. package/src/options/ModuleOptions.cjs +4 -4
  241. package/src/options/ModuleOptions.mjs +4 -4
  242. package/src/options/OverridableNamedObjectOptions.cjs +4 -2
  243. package/src/options/OverridableNamedObjectOptions.mjs +4 -2
  244. package/src/options/OverridableObjectOptions.cjs +4 -2
  245. package/src/options/OverridableObjectOptions.mjs +4 -2
  246. package/src/providers/Database.cjs +11 -11
  247. package/src/providers/Database.mjs +11 -11
  248. package/src/providers/PasswordHash.cjs +5 -3
  249. package/src/providers/PasswordHash.mjs +190 -188
  250. package/src/providers/migration/GenerateMigration.cjs +15 -19
  251. package/src/providers/migration/GenerateMigration.mjs +15 -19
  252. package/vendor/Package.10.cjs +2 -8
  253. package/vendor/Package.10.mjs +2 -8
  254. package/vendor/Package.11.cjs +5 -83
  255. package/vendor/Package.11.mjs +5 -77
  256. package/vendor/Package.112.cjs +48900 -0
  257. package/vendor/Package.112.mjs +48764 -0
  258. package/vendor/Package.12.cjs +4 -2
  259. package/vendor/Package.12.mjs +6 -4
  260. package/vendor/Package.13.cjs +87 -1
  261. package/vendor/Package.13.mjs +81 -1
  262. package/vendor/Package.14.cjs +1 -14057
  263. package/vendor/Package.14.mjs +1 -14031
  264. package/vendor/Package.15.cjs +1 -1
  265. package/vendor/Package.15.mjs +1 -1
  266. package/vendor/Package.16.cjs +18129 -1935
  267. package/vendor/Package.16.mjs +18115 -1839
  268. package/vendor/Package.17.cjs +1922 -47929
  269. package/vendor/Package.17.mjs +1874 -47948
  270. package/vendor/Package.18.cjs +35 -1
  271. package/vendor/Package.18.mjs +35 -1
  272. package/vendor/Package.19.cjs +37 -0
  273. package/vendor/Package.19.mjs +35 -0
  274. package/vendor/Package.2.cjs +5739 -5710
  275. package/vendor/Package.2.mjs +5733 -5704
  276. package/vendor/Package.20.cjs +37 -0
  277. package/vendor/Package.20.mjs +35 -0
  278. package/vendor/Package.21.cjs +37 -0
  279. package/vendor/Package.21.mjs +35 -0
  280. package/vendor/Package.22.cjs +37 -0
  281. package/vendor/Package.22.mjs +35 -0
  282. package/vendor/Package.23.cjs +37 -0
  283. package/vendor/Package.23.mjs +35 -0
  284. package/vendor/Package.24.cjs +37 -0
  285. package/vendor/Package.24.mjs +35 -0
  286. package/vendor/Package.25.cjs +37 -0
  287. package/vendor/Package.25.mjs +35 -0
  288. package/vendor/Package.26.cjs +37 -0
  289. package/vendor/Package.26.mjs +35 -0
  290. package/vendor/Package.27.cjs +37 -0
  291. package/vendor/Package.27.mjs +35 -0
  292. package/vendor/Package.28.cjs +37 -0
  293. package/vendor/Package.28.mjs +35 -0
  294. package/vendor/Package.29.cjs +40 -0
  295. package/vendor/Package.29.mjs +38 -0
  296. package/vendor/Package.30.cjs +41 -0
  297. package/vendor/Package.30.mjs +39 -0
  298. package/vendor/Package.31.cjs +72 -0
  299. package/vendor/Package.31.mjs +70 -0
  300. package/vendor/Package.32.cjs +37 -0
  301. package/vendor/Package.32.mjs +35 -0
  302. package/vendor/Package.33.cjs +37 -0
  303. package/vendor/Package.33.mjs +35 -0
  304. package/vendor/Package.34.cjs +46 -0
  305. package/vendor/Package.34.mjs +44 -0
  306. package/vendor/Package.35.cjs +34 -0
  307. package/vendor/Package.35.mjs +32 -0
  308. package/vendor/Package.36.cjs +40 -0
  309. package/vendor/Package.36.mjs +38 -0
  310. package/vendor/Package.37.cjs +36 -0
  311. package/vendor/Package.37.mjs +34 -0
  312. package/vendor/Package.38.cjs +52 -0
  313. package/vendor/Package.38.mjs +50 -0
  314. package/vendor/Package.39.cjs +41 -0
  315. package/vendor/Package.39.mjs +39 -0
  316. package/vendor/Package.4.cjs +884 -874
  317. package/vendor/Package.4.mjs +884 -874
  318. package/vendor/Package.40.cjs +42 -0
  319. package/vendor/Package.40.mjs +40 -0
  320. package/vendor/Package.41.cjs +53 -0
  321. package/vendor/Package.41.mjs +51 -0
  322. package/vendor/Package.42.cjs +53 -0
  323. package/vendor/Package.42.mjs +51 -0
  324. package/vendor/Package.43.cjs +40 -0
  325. package/vendor/Package.43.mjs +38 -0
  326. package/vendor/Package.44.cjs +46 -0
  327. package/vendor/Package.44.mjs +44 -0
  328. package/vendor/Package.45.cjs +53 -0
  329. package/vendor/Package.45.mjs +51 -0
  330. package/vendor/Package.46.cjs +59 -0
  331. package/vendor/Package.46.mjs +57 -0
  332. package/vendor/Package.47.cjs +65 -0
  333. package/vendor/Package.47.mjs +63 -0
  334. package/vendor/Package.48.cjs +38 -0
  335. package/vendor/Package.48.mjs +36 -0
  336. package/vendor/Package.49.cjs +38 -0
  337. package/vendor/Package.49.mjs +36 -0
  338. package/vendor/Package.5.cjs +15 -11
  339. package/vendor/Package.5.mjs +11 -7
  340. package/vendor/Package.50.cjs +36 -0
  341. package/vendor/Package.50.mjs +34 -0
  342. package/vendor/Package.51.cjs +43 -0
  343. package/vendor/Package.51.mjs +41 -0
  344. package/vendor/Package.52.cjs +37 -0
  345. package/vendor/Package.52.mjs +35 -0
  346. package/vendor/Package.53.cjs +43 -0
  347. package/vendor/Package.53.mjs +41 -0
  348. package/vendor/Package.54.cjs +55 -0
  349. package/vendor/Package.54.mjs +53 -0
  350. package/vendor/Package.55.cjs +37 -0
  351. package/vendor/Package.55.mjs +35 -0
  352. package/vendor/Package.56.cjs +37 -0
  353. package/vendor/Package.56.mjs +35 -0
  354. package/vendor/Package.57.cjs +37 -0
  355. package/vendor/Package.57.mjs +35 -0
  356. package/vendor/Package.58.cjs +45 -0
  357. package/vendor/Package.58.mjs +43 -0
  358. package/vendor/Package.59.cjs +53 -0
  359. package/vendor/Package.59.mjs +51 -0
  360. package/vendor/Package.6.cjs +520 -511
  361. package/vendor/Package.6.mjs +543 -534
  362. package/vendor/Package.60.cjs +47649 -0
  363. package/vendor/Package.60.mjs +47606 -0
  364. package/vendor/Package.610.cjs +11 -11
  365. package/vendor/Package.610.mjs +11 -11
  366. package/vendor/Package.611.cjs +33 -23
  367. package/vendor/Package.611.mjs +19 -9
  368. package/vendor/Package.612.cjs +42 -36
  369. package/vendor/Package.612.mjs +35 -29
  370. package/vendor/Package.613.cjs +5 -4
  371. package/vendor/Package.613.mjs +5 -4
  372. package/vendor/Package.62.cjs +92 -89
  373. package/vendor/Package.62.mjs +185 -182
  374. package/vendor/Package.63.cjs +509 -166
  375. package/vendor/Package.63.mjs +490 -165
  376. package/vendor/Package.64.cjs +139 -511
  377. package/vendor/Package.64.mjs +139 -491
  378. package/vendor/Package.65.cjs +4135 -150
  379. package/vendor/Package.65.mjs +4143 -150
  380. package/vendor/Package.66.cjs +346 -4150
  381. package/vendor/Package.66.mjs +346 -4158
  382. package/vendor/Package.67.cjs +412 -261
  383. package/vendor/Package.67.mjs +410 -259
  384. package/vendor/Package.68.cjs +397 -405
  385. package/vendor/Package.68.mjs +227 -242
  386. package/vendor/Package.8.cjs +0 -4
  387. package/vendor/Package.8.mjs +0 -4
  388. package/vendor/Package.9.cjs +132 -118
  389. package/vendor/Package.9.mjs +138 -124
  390. package/vendor/TypeDef.internal.3.d.ts +0 -4
  391. package/vendor/Package.102.cjs +0 -48773
  392. package/vendor/Package.102.mjs +0 -48697
  393. package/vendor/Package.122.cjs +0 -3
  394. package/vendor/Package.122.mjs +0 -1
@@ -1,543 +1,191 @@
1
- const n = "ffffffff-ffff-ffff-ffff-ffffffffffff";
2
-
3
- const t = "00000000-0000-0000-0000-000000000000";
4
-
5
- const e = /^(?:[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;
6
-
7
- function r(n) {
8
- return typeof n === "string" && e.test(n);
9
- }
10
-
11
- function o(n) {
12
- if (!r(n)) {
13
- throw TypeError("Invalid UUID");
14
- }
15
- let t;
16
- return Uint8Array.of((t = parseInt(n.slice(0, 8), 16)) >>> 24, t >>> 16 & 255, t >>> 8 & 255, t & 255, (t = parseInt(n.slice(9, 13), 16)) >>> 8, t & 255, (t = parseInt(n.slice(14, 18), 16)) >>> 8, t & 255, (t = parseInt(n.slice(19, 23), 16)) >>> 8, t & 255, (t = parseInt(n.slice(24, 36), 16)) / 1099511627776 & 255, t / 4294967296 & 255, t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, t & 255);
17
- }
18
-
19
- const f = [];
20
-
21
- for (let n = 0; n < 256; ++n) {
22
- f.push((n + 256).toString(16).slice(1));
23
- }
24
-
25
- function s(n, t = 0) {
26
- return (f[n[t + 0]] + f[n[t + 1]] + f[n[t + 2]] + f[n[t + 3]] + "-" + f[n[t + 4]] + f[n[t + 5]] + "-" + f[n[t + 6]] + f[n[t + 7]] + "-" + f[n[t + 8]] + f[n[t + 9]] + "-" + f[n[t + 10]] + f[n[t + 11]] + f[n[t + 12]] + f[n[t + 13]] + f[n[t + 14]] + f[n[t + 15]]).toLowerCase();
27
- }
28
-
29
- function c(n, t = 0) {
30
- const e = s(n, t);
31
- if (!r(e)) {
32
- throw TypeError("Stringified UUID is invalid");
33
- }
34
- return e;
35
- }
36
-
37
- let i;
38
-
39
- const u = new Uint8Array(16);
40
-
41
- function a() {
42
- if (!i) {
43
- if (typeof crypto === "undefined" || !crypto.getRandomValues) {
44
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
45
- }
46
- i = crypto.getRandomValues.bind(crypto);
47
- }
48
- return i(u);
49
- }
50
-
51
- const l = {};
52
-
53
- function d(n, t, e) {
54
- let r;
55
- const o = n?._v6 ?? false;
56
- if (n) {
57
- const t = Object.keys(n);
58
- if (t.length === 1 && t[0] === "_v6") {
59
- n = undefined;
60
- }
61
- }
62
- if (n) {
63
- r = y(n.random ?? n.rng?.() ?? a(), n.msecs, n.nsecs, n.clockseq, n.node, t, e);
64
- } else {
65
- const n = Date.now();
66
- const f = a();
67
- g(l, n, f);
68
- r = y(f, l.msecs, l.nsecs, o ? undefined : l.clockseq, o ? undefined : l.node, t, e);
69
- }
70
- return t ?? s(r);
1
+ function e(e) {
2
+ return typeof e === "object" && e !== null;
71
3
  }
72
4
 
73
- function g(n, t, e) {
74
- n.msecs ??= -Infinity;
75
- n.nsecs ??= 0;
76
- if (t === n.msecs) {
77
- n.nsecs++;
78
- if (n.nsecs >= 1e4) {
79
- n.node = undefined;
80
- n.nsecs = 0;
81
- }
82
- } else if (t > n.msecs) {
83
- n.nsecs = 0;
84
- } else if (t < n.msecs) {
85
- n.node = undefined;
86
- }
87
- if (!n.node) {
88
- n.node = e.slice(10, 16);
89
- n.node[0] |= 1;
90
- n.clockseq = (e[8] << 8 | e[9]) & 16383;
91
- }
92
- n.msecs = t;
93
- return n;
5
+ function n(n) {
6
+ return e(n) && typeof n.length === "number";
94
7
  }
95
8
 
96
- function y(n, t, e, r, o, f, s = 0) {
97
- if (n.length < 16) {
98
- throw new Error("Random bytes length must be >= 16");
99
- }
100
- if (!f) {
101
- f = new Uint8Array(16);
102
- s = 0;
9
+ function i(e) {
10
+ if (Array.isArray(e)) {
11
+ return e;
12
+ } else if (e === undefined) {
13
+ return [];
14
+ } else if (n(e) || e instanceof Set) {
15
+ return Array.from(e);
103
16
  } else {
104
- if (s < 0 || s + 16 > f.length) {
105
- throw new RangeError(`UUID byte range ${s}:${s + 15} is out of buffer bounds`);
106
- }
107
- }
108
- t ??= Date.now();
109
- e ??= 0;
110
- r ??= (n[8] << 8 | n[9]) & 16383;
111
- o ??= n.slice(10, 16);
112
- t += 122192928e5;
113
- const c = ((t & 268435455) * 1e4 + e) % 4294967296;
114
- f[s++] = c >>> 24 & 255;
115
- f[s++] = c >>> 16 & 255;
116
- f[s++] = c >>> 8 & 255;
117
- f[s++] = c & 255;
118
- const i = t / 4294967296 * 1e4 & 268435455;
119
- f[s++] = i >>> 8 & 255;
120
- f[s++] = i & 255;
121
- f[s++] = i >>> 24 & 15 | 16;
122
- f[s++] = i >>> 16 & 255;
123
- f[s++] = r >>> 8 | 128;
124
- f[s++] = r & 255;
125
- for (let n = 0; n < 6; ++n) {
126
- f[s++] = o[n];
127
- }
128
- return f;
129
- }
130
-
131
- function h(n) {
132
- const t = typeof n === "string" ? o(n) : n;
133
- const e = U(t);
134
- return typeof n === "string" ? s(e) : e;
135
- }
136
-
137
- function U(n) {
138
- return Uint8Array.of((n[6] & 15) << 4 | n[7] >> 4 & 15, (n[7] & 15) << 4 | (n[4] & 240) >> 4, (n[4] & 15) << 4 | (n[5] & 240) >> 4, (n[5] & 15) << 4 | (n[0] & 240) >> 4, (n[0] & 15) << 4 | (n[1] & 240) >> 4, (n[1] & 15) << 4 | (n[2] & 240) >> 4, 96 | n[2] & 15, n[3], n[8], n[9], n[10], n[11], n[12], n[13], n[14], n[15]);
139
- }
140
-
141
- function p(n) {
142
- const t = I(n);
143
- const e = b(t, n.length * 8);
144
- return w(e);
145
- }
146
-
147
- function w(n) {
148
- const t = new Uint8Array(n.length * 4);
149
- for (let e = 0; e < n.length * 4; e++) {
150
- t[e] = n[e >> 2] >>> e % 4 * 8 & 255;
17
+ return [ e ];
151
18
  }
152
- return t;
153
19
  }
154
20
 
155
- function m(n) {
156
- return (n + 64 >>> 9 << 4) + 14 + 1;
21
+ function t(e) {
22
+ return !isNaN(parseFloat(e));
157
23
  }
158
24
 
159
- function b(n, t) {
160
- const e = new Uint32Array(m(t)).fill(0);
161
- e.set(n);
162
- e[t >> 5] |= 128 << t % 32;
163
- e[e.length - 1] = t;
164
- n = e;
165
- let r = 1732584193;
166
- let o = -271733879;
167
- let f = -1732584194;
168
- let s = 271733878;
169
- for (let t = 0; t < n.length; t += 16) {
170
- const e = r;
171
- const c = o;
172
- const i = f;
173
- const u = s;
174
- r = E(r, o, f, s, n[t], 7, -680876936);
175
- s = E(s, r, o, f, n[t + 1], 12, -389564586);
176
- f = E(f, s, r, o, n[t + 2], 17, 606105819);
177
- o = E(o, f, s, r, n[t + 3], 22, -1044525330);
178
- r = E(r, o, f, s, n[t + 4], 7, -176418897);
179
- s = E(s, r, o, f, n[t + 5], 12, 1200080426);
180
- f = E(f, s, r, o, n[t + 6], 17, -1473231341);
181
- o = E(o, f, s, r, n[t + 7], 22, -45705983);
182
- r = E(r, o, f, s, n[t + 8], 7, 1770035416);
183
- s = E(s, r, o, f, n[t + 9], 12, -1958414417);
184
- f = E(f, s, r, o, n[t + 10], 17, -42063);
185
- o = E(o, f, s, r, n[t + 11], 22, -1990404162);
186
- r = E(r, o, f, s, n[t + 12], 7, 1804603682);
187
- s = E(s, r, o, f, n[t + 13], 12, -40341101);
188
- f = E(f, s, r, o, n[t + 14], 17, -1502002290);
189
- o = E(o, f, s, r, n[t + 15], 22, 1236535329);
190
- r = q(r, o, f, s, n[t + 1], 5, -165796510);
191
- s = q(s, r, o, f, n[t + 6], 9, -1069501632);
192
- f = q(f, s, r, o, n[t + 11], 14, 643717713);
193
- o = q(o, f, s, r, n[t], 20, -373897302);
194
- r = q(r, o, f, s, n[t + 5], 5, -701558691);
195
- s = q(s, r, o, f, n[t + 10], 9, 38016083);
196
- f = q(f, s, r, o, n[t + 15], 14, -660478335);
197
- o = q(o, f, s, r, n[t + 4], 20, -405537848);
198
- r = q(r, o, f, s, n[t + 9], 5, 568446438);
199
- s = q(s, r, o, f, n[t + 14], 9, -1019803690);
200
- f = q(f, s, r, o, n[t + 3], 14, -187363961);
201
- o = q(o, f, s, r, n[t + 8], 20, 1163531501);
202
- r = q(r, o, f, s, n[t + 13], 5, -1444681467);
203
- s = q(s, r, o, f, n[t + 2], 9, -51403784);
204
- f = q(f, s, r, o, n[t + 7], 14, 1735328473);
205
- o = q(o, f, s, r, n[t + 12], 20, -1926607734);
206
- r = v(r, o, f, s, n[t + 5], 4, -378558);
207
- s = v(s, r, o, f, n[t + 8], 11, -2022574463);
208
- f = v(f, s, r, o, n[t + 11], 16, 1839030562);
209
- o = v(o, f, s, r, n[t + 14], 23, -35309556);
210
- r = v(r, o, f, s, n[t + 1], 4, -1530992060);
211
- s = v(s, r, o, f, n[t + 4], 11, 1272893353);
212
- f = v(f, s, r, o, n[t + 7], 16, -155497632);
213
- o = v(o, f, s, r, n[t + 10], 23, -1094730640);
214
- r = v(r, o, f, s, n[t + 13], 4, 681279174);
215
- s = v(s, r, o, f, n[t], 11, -358537222);
216
- f = v(f, s, r, o, n[t + 3], 16, -722521979);
217
- o = v(o, f, s, r, n[t + 6], 23, 76029189);
218
- r = v(r, o, f, s, n[t + 9], 4, -640364487);
219
- s = v(s, r, o, f, n[t + 12], 11, -421815835);
220
- f = v(f, s, r, o, n[t + 15], 16, 530742520);
221
- o = v(o, f, s, r, n[t + 2], 23, -995338651);
222
- r = $(r, o, f, s, n[t], 6, -198630844);
223
- s = $(s, r, o, f, n[t + 7], 10, 1126891415);
224
- f = $(f, s, r, o, n[t + 14], 15, -1416354905);
225
- o = $(o, f, s, r, n[t + 5], 21, -57434055);
226
- r = $(r, o, f, s, n[t + 12], 6, 1700485571);
227
- s = $(s, r, o, f, n[t + 3], 10, -1894986606);
228
- f = $(f, s, r, o, n[t + 10], 15, -1051523);
229
- o = $(o, f, s, r, n[t + 1], 21, -2054922799);
230
- r = $(r, o, f, s, n[t + 8], 6, 1873313359);
231
- s = $(s, r, o, f, n[t + 15], 10, -30611744);
232
- f = $(f, s, r, o, n[t + 6], 15, -1560198380);
233
- o = $(o, f, s, r, n[t + 13], 21, 1309151649);
234
- r = $(r, o, f, s, n[t + 4], 6, -145523070);
235
- s = $(s, r, o, f, n[t + 11], 10, -1120210379);
236
- f = $(f, s, r, o, n[t + 2], 15, 718787259);
237
- o = $(o, f, s, r, n[t + 9], 21, -343485551);
238
- r = A(r, e);
239
- o = A(o, c);
240
- f = A(f, i);
241
- s = A(s, u);
242
- }
243
- return Uint32Array.of(r, o, f, s);
25
+ function s(e) {
26
+ return !isNaN(parseFloat(e)) && isFinite(e);
244
27
  }
245
28
 
246
- function I(n) {
247
- if (n.length === 0) {
248
- return new Uint32Array;
249
- }
250
- const t = new Uint32Array(m(n.length * 8)).fill(0);
251
- for (let e = 0; e < n.length; e++) {
252
- t[e >> 2] |= (n[e] & 255) << e % 4 * 8;
253
- }
254
- return t;
29
+ function r(e) {
30
+ return e !== null && typeof e === "object" && e.constructor === Object;
255
31
  }
256
32
 
257
- function A(n, t) {
258
- const e = (n & 65535) + (t & 65535);
259
- const r = (n >> 16) + (t >> 16) + (e >> 16);
260
- return r << 16 | e & 65535;
33
+ function u(e) {
34
+ return f(e) && typeof e.length === "number";
261
35
  }
262
36
 
263
- function D(n, t) {
264
- return n << t | n >>> 32 - t;
37
+ function f(e) {
38
+ return typeof e === "object" && e !== null;
265
39
  }
266
40
 
267
- function R(n, t, e, r, o, f) {
268
- return A(D(A(A(t, n), A(r, f)), o), e);
41
+ function o(e) {
42
+ return typeof e !== "undefined";
269
43
  }
270
44
 
271
- function E(n, t, e, r, o, f, s) {
272
- return R(t & e | ~t & r, n, t, o, f, s);
45
+ function c(e) {
46
+ return !o(e);
273
47
  }
274
48
 
275
- function q(n, t, e, r, o, f, s) {
276
- return R(t & r | e & ~r, n, t, o, f, s);
49
+ function l(e) {
50
+ return e === null;
277
51
  }
278
52
 
279
- function v(n, t, e, r, o, f, s) {
280
- return R(t ^ e ^ r, n, t, o, f, s);
53
+ function a(e) {
54
+ return o(e) && !l(e) && !Number.isNaN(e);
281
55
  }
282
56
 
283
- function $(n, t, e, r, o, f, s) {
284
- return R(e ^ (t | ~r), n, t, o, f, s);
285
- }
286
-
287
- function k(n) {
288
- n = unescape(encodeURIComponent(n));
289
- const t = new Uint8Array(n.length);
290
- for (let e = 0; e < n.length; ++e) {
291
- t[e] = n.charCodeAt(e);
292
- }
293
- return t;
294
- }
295
-
296
- const M = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
297
-
298
- const S = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
299
-
300
- function N(n, t, e, r, f, c) {
301
- const i = typeof e === "string" ? k(e) : e;
302
- const u = typeof r === "string" ? o(r) : r;
303
- if (typeof r === "string") {
304
- r = o(r);
305
- }
306
- if (r?.length !== 16) {
307
- throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
308
- }
309
- let a = new Uint8Array(16 + i.length);
310
- a.set(u);
311
- a.set(i, u.length);
312
- a = t(a);
313
- a[6] = a[6] & 15 | n;
314
- a[8] = a[8] & 63 | 128;
315
- if (f) {
316
- c = c || 0;
317
- for (let n = 0; n < 16; ++n) {
318
- f[c + n] = a[n];
319
- }
320
- return f;
57
+ function d(e) {
58
+ if (typeof e === "function") {
59
+ return /^class /.test(Function.prototype.toString.call(e));
60
+ } else {
61
+ return false;
321
62
  }
322
- return s(a);
323
- }
324
-
325
- function T(n, t, e, r) {
326
- return N(48, p, n, t, e, r);
327
63
  }
328
64
 
329
- T.DNS = M;
330
-
331
- T.URL = S;
332
-
333
- const C = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
334
-
335
- const L = {
336
- randomUUID: C
337
- };
338
-
339
- function V(n, t, e) {
340
- n = n || {};
341
- const r = n.random ?? n.rng?.() ?? a();
342
- if (r.length < 16) {
343
- throw new Error("Random bytes length must be >= 16");
344
- }
345
- r[6] = r[6] & 15 | 64;
346
- r[8] = r[8] & 63 | 128;
347
- if (t) {
348
- e = e || 0;
349
- if (e < 0 || e + 16 > t.length) {
350
- throw new RangeError(`UUID byte range ${e}:${e + 15} is out of buffer bounds`);
351
- }
352
- for (let n = 0; n < 16; ++n) {
353
- t[e + n] = r[n];
354
- }
355
- return t;
356
- }
357
- return s(r);
358
- }
65
+ function y(e) {
66
+ if (e === null) return true;
67
+ switch (typeof e) {
68
+ case "string":
69
+ case "number":
70
+ case "symbol":
71
+ case "undefined":
72
+ case "boolean":
73
+ return true;
359
74
 
360
- function _(n, t, e) {
361
- if (L.randomUUID && !t && !n) {
362
- return L.randomUUID();
75
+ default:
76
+ return false;
363
77
  }
364
- return V(n, t, e);
365
78
  }
366
79
 
367
- function j(n, t, e, r) {
368
- switch (n) {
369
- case 0:
370
- return t & e ^ ~t & r;
371
-
372
- case 1:
373
- return t ^ e ^ r;
374
-
375
- case 2:
376
- return t & e ^ t & r ^ e & r;
377
-
378
- case 3:
379
- return t ^ e ^ r;
80
+ function b(e) {
81
+ if (e) {
82
+ const n = o(Promise) && e instanceof Promise;
83
+ const i = e.then && typeof e.then === "function";
84
+ return !!(n || i);
85
+ } else {
86
+ return false;
380
87
  }
381
88
  }
382
89
 
383
- function x(n, t) {
384
- return n << t | n >>> 32 - t;
385
- }
386
-
387
- function O(n) {
388
- const t = [ 1518500249, 1859775393, 2400959708, 3395469782 ];
389
- const e = [ 1732584193, 4023233417, 2562383102, 271733878, 3285377520 ];
390
- const r = new Uint8Array(n.length + 1);
391
- r.set(n);
392
- r[n.length] = 128;
393
- n = r;
394
- const o = n.length / 4 + 2;
395
- const f = Math.ceil(o / 16);
396
- const s = new Array(f);
397
- for (let t = 0; t < f; ++t) {
398
- const e = new Uint32Array(16);
399
- for (let r = 0; r < 16; ++r) {
400
- e[r] = n[t * 64 + r * 4] << 24 | n[t * 64 + r * 4 + 1] << 16 | n[t * 64 + r * 4 + 2] << 8 | n[t * 64 + r * 4 + 3];
401
- }
402
- s[t] = e;
403
- }
404
- s[f - 1][14] = (n.length - 1) * 8 / Math.pow(2, 32);
405
- s[f - 1][14] = Math.floor(s[f - 1][14]);
406
- s[f - 1][15] = (n.length - 1) * 8 & 4294967295;
407
- for (let n = 0; n < f; ++n) {
408
- const r = new Uint32Array(80);
409
- for (let t = 0; t < 16; ++t) {
410
- r[t] = s[n][t];
411
- }
412
- for (let n = 16; n < 80; ++n) {
413
- r[n] = x(r[n - 3] ^ r[n - 8] ^ r[n - 14] ^ r[n - 16], 1);
414
- }
415
- let o = e[0];
416
- let f = e[1];
417
- let c = e[2];
418
- let i = e[3];
419
- let u = e[4];
420
- for (let n = 0; n < 80; ++n) {
421
- const e = Math.floor(n / 20);
422
- const s = x(o, 5) + j(e, f, c, i) + u + t[e] + r[n] >>> 0;
423
- u = i;
424
- i = c;
425
- c = x(f, 30) >>> 0;
426
- f = o;
427
- o = s;
428
- }
429
- e[0] = e[0] + o >>> 0;
430
- e[1] = e[1] + f >>> 0;
431
- e[2] = e[2] + c >>> 0;
432
- e[3] = e[3] + i >>> 0;
433
- e[4] = e[4] + u >>> 0;
90
+ function m(e) {
91
+ if (e === null || !o(e)) {
92
+ return false;
93
+ } else {
94
+ return typeof e[Symbol.iterator] === "function" || typeof e[Symbol.asyncIterator] === "function";
434
95
  }
435
- return Uint8Array.of(e[0] >> 24, e[0] >> 16, e[0] >> 8, e[0], e[1] >> 24, e[1] >> 16, e[1] >> 8, e[1], e[2] >> 24, e[2] >> 16, e[2] >> 8, e[2], e[3] >> 24, e[3] >> 16, e[3] >> 8, e[3], e[4] >> 24, e[4] >> 16, e[4] >> 8, e[4]);
436
96
  }
437
97
 
438
- function z(n, t, e, r) {
439
- return N(80, O, n, t, e, r);
98
+ function p(e) {
99
+ return typeof e === "string";
440
100
  }
441
101
 
442
- z.DNS = M;
443
-
444
- z.URL = S;
445
-
446
- function B(n, t, e) {
447
- n ??= {};
448
- e ??= 0;
449
- let r = d({
450
- ...n,
451
- _v6: true
452
- }, new Uint8Array(16));
453
- r = h(r);
454
- if (t) {
455
- for (let n = 0; n < 16; n++) {
456
- t[e + n] = r[n];
457
- }
458
- return t;
459
- }
460
- return s(r);
102
+ function N(e) {
103
+ return typeof e === "function";
461
104
  }
462
105
 
463
- function F(n) {
464
- const t = typeof n === "string" ? o(n) : n;
465
- const e = G(t);
466
- return typeof n === "string" ? s(e) : e;
106
+ function D(e) {
107
+ return typeof e === "function" && e.constructor.name === "AsyncFunction";
467
108
  }
468
109
 
469
- function G(n) {
470
- return Uint8Array.of((n[3] & 15) << 4 | n[4] >> 4 & 15, (n[4] & 15) << 4 | (n[5] & 240) >> 4, (n[5] & 15) << 4 | n[6] & 15, n[7], (n[1] & 15) << 4 | (n[2] & 240) >> 4, (n[2] & 15) << 4 | (n[3] & 240) >> 4, 16 | (n[0] & 240) >> 4, (n[0] & 15) << 4 | (n[1] & 240) >> 4, n[8], n[9], n[10], n[11], n[12], n[13], n[14], n[15]);
471
- }
472
-
473
- const H = {};
110
+ const k = {
111
+ isNumber: t,
112
+ isFiniteNumber: s,
113
+ isPlainObject: r,
114
+ isArrayLike: u,
115
+ isObject: f,
116
+ isDefined: o,
117
+ isUndefined: c,
118
+ isNull: l,
119
+ isDefinedValue: a,
120
+ isClass: d,
121
+ isPrimitive: y,
122
+ isPromise: b,
123
+ isIterable: m,
124
+ isString: p,
125
+ isFunction: N,
126
+ isAsyncFunction: D
127
+ };
474
128
 
475
- function J(n, t, e) {
476
- let r;
477
- if (n) {
478
- r = P(n.random ?? n.rng?.() ?? a(), n.msecs, n.seq, t, e);
479
- } else {
480
- const n = Date.now();
481
- const o = a();
482
- K(H, n, o);
483
- r = P(o, H.msecs, H.seq, t, e);
484
- }
485
- return t ?? s(r);
129
+ function R(e, n = {}) {
130
+ n = Object.assign({
131
+ computed: {},
132
+ customOrders: {},
133
+ nullRank: 1,
134
+ undefinedRank: 1,
135
+ nanRank: 1
136
+ }, n);
137
+ e.sort(g(n));
138
+ return e;
486
139
  }
487
140
 
488
- function K(n, t, e) {
489
- n.msecs ??= -Infinity;
490
- n.seq ??= 0;
491
- if (t > n.msecs) {
492
- n.seq = e[6] << 23 | e[7] << 16 | e[8] << 8 | e[9];
493
- n.msecs = t;
494
- } else {
495
- n.seq = n.seq + 1 | 0;
496
- if (n.seq === 0) {
497
- n.msecs++;
141
+ function g(e = {}) {
142
+ const n = i(e.by);
143
+ const t = i(e.order);
144
+ const {customOrders: s, computed: r} = e;
145
+ return function i(u, f, o = 0) {
146
+ const c = t[o] || "asc";
147
+ if (!(c === "asc" || c === "desc" || s[c])) {
148
+ return 0;
498
149
  }
499
- }
500
- return n;
501
- }
502
-
503
- function P(n, t, e, r, o = 0) {
504
- if (n.length < 16) {
505
- throw new Error("Random bytes length must be >= 16");
506
- }
507
- if (!r) {
508
- r = new Uint8Array(16);
509
- o = 0;
510
- } else {
511
- if (o < 0 || o + 16 > r.length) {
512
- throw new RangeError(`UUID byte range ${o}:${o + 15} is out of buffer bounds`);
150
+ let l, a, d;
151
+ if (n.length) {
152
+ a = k.isDefined(u[n[o]]) ? u[n[o]] : r[n[o]] && r[n[o]](u);
153
+ d = k.isDefined(f[n[o]]) ? f[n[o]] : r[n[o]] && r[n[o]](f);
154
+ } else {
155
+ a = u;
156
+ d = f;
513
157
  }
514
- }
515
- t ??= Date.now();
516
- e ??= n[6] * 127 << 24 | n[7] << 16 | n[8] << 8 | n[9];
517
- r[o++] = t / 1099511627776 & 255;
518
- r[o++] = t / 4294967296 & 255;
519
- r[o++] = t / 16777216 & 255;
520
- r[o++] = t / 65536 & 255;
521
- r[o++] = t / 256 & 255;
522
- r[o++] = t & 255;
523
- r[o++] = 112 | e >>> 28 & 15;
524
- r[o++] = e >>> 20 & 255;
525
- r[o++] = 128 | e >>> 14 & 63;
526
- r[o++] = e >>> 6 & 255;
527
- r[o++] = e << 2 & 255 | n[10] & 3;
528
- r[o++] = n[11];
529
- r[o++] = n[12];
530
- r[o++] = n[13];
531
- r[o++] = n[14];
532
- r[o++] = n[15];
533
- return r;
534
- }
535
-
536
- function Q(n) {
537
- if (!r(n)) {
538
- throw TypeError("Invalid UUID");
539
- }
540
- return parseInt(n.slice(14, 15), 16);
158
+ if (s && s[c]) {
159
+ l = s[c].indexOf(a) - s[c].indexOf(d);
160
+ } else if (a === d) {
161
+ l = 0;
162
+ } else if (k.isNull(a) && k.isUndefined(d)) {
163
+ l = c === "asc" ? 1 : c === "desc" ? -1 : 0;
164
+ } else if (k.isUndefined(a) && k.isNull(d)) {
165
+ l = c === "asc" ? -1 : c === "desc" ? 1 : 0;
166
+ } else if (k.isNull(a) && k.isDefinedValue(d)) {
167
+ l = e.nullRank;
168
+ } else if (k.isUndefined(a) && k.isDefinedValue(d)) {
169
+ l = e.undefinedRank;
170
+ } else if (Number.isNaN(a) && k.isDefinedValue(d)) {
171
+ l = e.nanRank;
172
+ } else if (k.isNull(d) && k.isDefinedValue(a)) {
173
+ l = -e.nullRank;
174
+ } else if (k.isUndefined(d) && k.isDefinedValue(a)) {
175
+ l = -e.undefinedRank;
176
+ } else if (Number.isNaN(d) && k.isDefinedValue(a)) {
177
+ l = -e.nanRank;
178
+ } else {
179
+ l = a < d ? -1 : a > d ? 1 : 0;
180
+ if (c === "desc") {
181
+ l = l * -1;
182
+ }
183
+ }
184
+ if (l === 0 && k.isDefined(n[o + 1])) {
185
+ l = i(u, f, o + 1);
186
+ }
187
+ return l;
188
+ };
541
189
  }
542
190
 
543
- export { n as M, t as N, d as a, T as b, _ as c, B as d, r as e, Q as f, o as p, c as s, z as v };
191
+ export { R as s };