lakutata 2.0.96 → 2.0.98

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 (1190) hide show
  1. package/com/cacher.cjs +31 -135
  2. package/com/cacher.mjs +23 -127
  3. package/com/database.cjs +24 -166
  4. package/com/database.mjs +24 -166
  5. package/com/docker.cjs +94 -276
  6. package/com/docker.mjs +39 -221
  7. package/com/entrypoint.cjs +33 -119
  8. package/com/entrypoint.mjs +20 -106
  9. package/com/logger.cjs +19 -123
  10. package/com/logger.mjs +19 -123
  11. package/com/monitor.cjs +24 -88
  12. package/com/monitor.mjs +20 -84
  13. package/decorator/asst.cjs +5 -7
  14. package/decorator/asst.mjs +5 -7
  15. package/decorator/ctrl.cjs +22 -58
  16. package/decorator/ctrl.mjs +10 -46
  17. package/decorator/di.cjs +12 -42
  18. package/decorator/di.mjs +8 -38
  19. package/decorator/dto.cjs +13 -43
  20. package/decorator/dto.mjs +9 -39
  21. package/decorator/orm.cjs +117 -113
  22. package/decorator/orm.mjs +71 -67
  23. package/dtos.cjs +8 -38
  24. package/dtos.mjs +8 -38
  25. package/helper.cjs +73 -127
  26. package/helper.mjs +12 -66
  27. package/lakutata.cjs +116 -328
  28. package/lakutata.mjs +60 -272
  29. package/orm.cjs +854 -173
  30. package/orm.mjs +866 -65
  31. package/package.json +1 -1
  32. package/provider/database.cjs +26 -166
  33. package/provider/database.mjs +26 -166
  34. package/provider/passwordHash.cjs +18 -82
  35. package/provider/passwordHash.mjs +18 -82
  36. package/src/components/Database.cjs +36 -178
  37. package/src/components/Database.mjs +68 -210
  38. package/src/components/Logger.cjs +50 -191
  39. package/src/components/Logger.mjs +46 -194
  40. package/src/components/cacher/Cacher.cjs +511 -174
  41. package/src/components/cacher/Cacher.mjs +502 -171
  42. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +547 -35
  43. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +530 -34
  44. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +17 -61
  45. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +19 -63
  46. package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +21 -65
  47. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +22 -66
  48. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +7 -45
  49. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +18 -56
  50. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +23 -67
  51. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +23 -67
  52. package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +6 -44
  53. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +27 -65
  54. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +11 -55
  55. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +18 -62
  56. package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +4 -6
  57. package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +4 -6
  58. package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
  59. package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
  60. package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +4 -6
  61. package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +4 -6
  62. package/src/components/cacher/options/FileCacheOptions.cjs +15 -45
  63. package/src/components/cacher/options/FileCacheOptions.mjs +15 -45
  64. package/src/components/cacher/options/MemcacheCacheOptions.cjs +16 -46
  65. package/src/components/cacher/options/MemcacheCacheOptions.mjs +17 -47
  66. package/src/components/cacher/options/MongoCacheOptions.cjs +9 -39
  67. package/src/components/cacher/options/MongoCacheOptions.mjs +18 -48
  68. package/src/components/cacher/options/MysqlCacheOptions.cjs +9 -39
  69. package/src/components/cacher/options/MysqlCacheOptions.mjs +19 -49
  70. package/src/components/cacher/options/PostgresCacheOptions.cjs +21 -51
  71. package/src/components/cacher/options/PostgresCacheOptions.mjs +20 -50
  72. package/src/components/cacher/options/RedisCacheOptions.cjs +26 -56
  73. package/src/components/cacher/options/RedisCacheOptions.mjs +9 -39
  74. package/src/components/cacher/options/SqliteCacheOptions.cjs +15 -45
  75. package/src/components/cacher/options/SqliteCacheOptions.mjs +14 -44
  76. package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
  77. package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
  78. package/src/components/docker/ConnectionOptionsBuilder.cjs +32 -214
  79. package/src/components/docker/ConnectionOptionsBuilder.mjs +37 -219
  80. package/src/components/docker/Docker.cjs +8727 -408
  81. package/src/components/docker/Docker.mjs +8903 -578
  82. package/src/components/docker/exceptions/DockerConnectionException.cjs +4 -6
  83. package/src/components/docker/exceptions/DockerConnectionException.mjs +4 -6
  84. package/src/components/docker/exceptions/DockerImageBuildException.cjs +4 -6
  85. package/src/components/docker/exceptions/DockerImageBuildException.mjs +4 -6
  86. package/src/components/docker/exceptions/DockerImageImportException.cjs +4 -6
  87. package/src/components/docker/exceptions/DockerImageImportException.mjs +4 -6
  88. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +4 -6
  89. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +4 -6
  90. package/src/components/docker/exceptions/DockerImagePullException.cjs +4 -6
  91. package/src/components/docker/exceptions/DockerImagePullException.mjs +4 -6
  92. package/src/components/docker/exceptions/DockerImagePushException.cjs +4 -6
  93. package/src/components/docker/exceptions/DockerImagePushException.mjs +4 -6
  94. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +4 -6
  95. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +4 -6
  96. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +4 -6
  97. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +4 -6
  98. package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
  99. package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
  100. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
  101. package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
  102. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
  103. package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
  104. package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
  105. package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
  106. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
  107. package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
  108. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
  109. package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
  110. package/src/components/docker/lib/DockerContainer.cjs +174 -330
  111. package/src/components/docker/lib/DockerContainer.mjs +184 -340
  112. package/src/components/docker/lib/DockerContainerTTY.cjs +52 -260
  113. package/src/components/docker/lib/DockerContainerTTY.mjs +48 -263
  114. package/src/components/docker/lib/DockerImage.cjs +69 -131
  115. package/src/components/docker/lib/DockerImage.mjs +54 -116
  116. package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
  117. package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
  118. package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
  119. package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
  120. package/src/components/docker/options/DockerPruneOptions.cjs +14 -44
  121. package/src/components/docker/options/DockerPruneOptions.mjs +15 -45
  122. package/src/components/docker/options/auth/DockerAuthOptions.cjs +9 -39
  123. package/src/components/docker/options/auth/DockerAuthOptions.mjs +15 -45
  124. package/src/components/docker/options/container/ContainerCommitOptions.cjs +12 -42
  125. package/src/components/docker/options/container/ContainerCommitOptions.mjs +12 -42
  126. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +13 -43
  127. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +12 -42
  128. package/src/components/docker/options/container/ContainerExecOptions.cjs +9 -39
  129. package/src/components/docker/options/container/ContainerExecOptions.mjs +11 -41
  130. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +13 -43
  131. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +12 -42
  132. package/src/components/docker/options/container/ContainerKillOptions.cjs +9 -39
  133. package/src/components/docker/options/container/ContainerKillOptions.mjs +12 -42
  134. package/src/components/docker/options/container/ContainerLogsOptions.cjs +15 -45
  135. package/src/components/docker/options/container/ContainerLogsOptions.mjs +15 -45
  136. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +9 -39
  137. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +12 -42
  138. package/src/components/docker/options/container/ContainerSettingOptions.cjs +9 -39
  139. package/src/components/docker/options/container/ContainerSettingOptions.mjs +43 -73
  140. package/src/components/docker/options/container/ContainerStopOptions.cjs +12 -42
  141. package/src/components/docker/options/container/ContainerStopOptions.mjs +9 -39
  142. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +9 -39
  143. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +12 -42
  144. package/src/components/docker/options/image/ImageBuildOptions.cjs +26 -56
  145. package/src/components/docker/options/image/ImageBuildOptions.mjs +25 -55
  146. package/src/components/docker/options/image/ImageExportOptions.cjs +14 -44
  147. package/src/components/docker/options/image/ImageExportOptions.mjs +14 -44
  148. package/src/components/docker/options/image/ImageImportOptions.cjs +13 -43
  149. package/src/components/docker/options/image/ImageImportOptions.mjs +12 -42
  150. package/src/components/docker/options/image/ImagePullOptions.cjs +9 -39
  151. package/src/components/docker/options/image/ImagePullOptions.mjs +16 -46
  152. package/src/components/docker/options/image/ImagePushOptions.cjs +15 -45
  153. package/src/components/docker/options/image/ImagePushOptions.mjs +15 -45
  154. package/src/components/docker/options/image/ImageRemoveOptions.cjs +12 -42
  155. package/src/components/docker/options/image/ImageRemoveOptions.mjs +13 -43
  156. package/src/components/docker/options/image/ImageTagOptions.cjs +9 -39
  157. package/src/components/docker/options/image/ImageTagOptions.mjs +12 -42
  158. package/src/components/docker/options/network/NetworkCreateOptions.cjs +9 -39
  159. package/src/components/docker/options/network/NetworkCreateOptions.mjs +20 -50
  160. package/src/components/docker/types/ContainerBind.cjs +1 -1
  161. package/src/components/docker/types/ContainerBind.mjs +1 -1
  162. package/src/components/docker/types/ContainerCapability.cjs +1 -1
  163. package/src/components/docker/types/ContainerCapability.mjs +1 -1
  164. package/src/components/docker/types/ContainerConfig.cjs +1 -1
  165. package/src/components/docker/types/ContainerConfig.mjs +1 -1
  166. package/src/components/docker/types/ContainerDevice.cjs +1 -1
  167. package/src/components/docker/types/ContainerDevice.mjs +1 -1
  168. package/src/components/docker/types/ContainerNetwork.cjs +1 -1
  169. package/src/components/docker/types/ContainerNetwork.mjs +1 -1
  170. package/src/components/docker/types/ContainerPort.cjs +1 -1
  171. package/src/components/docker/types/ContainerPort.mjs +1 -1
  172. package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
  173. package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
  174. package/src/components/docker/types/ContainerState.cjs +1 -1
  175. package/src/components/docker/types/ContainerState.mjs +1 -1
  176. package/src/components/docker/types/ContainerStats.cjs +1 -1
  177. package/src/components/docker/types/ContainerStats.mjs +1 -1
  178. package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
  179. package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
  180. package/src/components/docker/types/ImageConfig.cjs +1 -1
  181. package/src/components/docker/types/ImageConfig.mjs +1 -1
  182. package/src/components/docker/types/ImageExposePort.cjs +1 -1
  183. package/src/components/docker/types/ImageExposePort.mjs +1 -1
  184. package/src/components/docker/types/NetworkInfo.cjs +1 -1
  185. package/src/components/docker/types/NetworkInfo.mjs +1 -1
  186. package/src/components/entrypoint/Entrypoint.cjs +1961 -322
  187. package/src/components/entrypoint/Entrypoint.mjs +1928 -281
  188. package/src/components/entrypoint/exceptions/AccessDenyException.cjs +4 -6
  189. package/src/components/entrypoint/exceptions/AccessDenyException.mjs +4 -6
  190. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +4 -6
  191. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +4 -6
  192. package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +4 -6
  193. package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +4 -6
  194. package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +4 -6
  195. package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +4 -6
  196. package/src/components/entrypoint/lib/AccessControl.cjs +71 -133
  197. package/src/components/entrypoint/lib/AccessControl.mjs +75 -137
  198. package/src/components/entrypoint/lib/AccessControlRule.cjs +19 -81
  199. package/src/components/entrypoint/lib/AccessControlRule.mjs +23 -85
  200. package/src/components/entrypoint/lib/Controller.cjs +42 -104
  201. package/src/components/entrypoint/lib/Controller.mjs +43 -105
  202. package/src/components/monitor/AliveMonitor.cjs +40 -104
  203. package/src/components/monitor/AliveMonitor.mjs +50 -114
  204. package/src/components/monitor/CpuMonitor.cjs +40 -104
  205. package/src/components/monitor/CpuMonitor.mjs +48 -112
  206. package/src/components/monitor/EventLoopMonitor.cjs +19 -83
  207. package/src/components/monitor/EventLoopMonitor.mjs +24 -88
  208. package/src/components/monitor/HttpRequestMonitor.cjs +41 -105
  209. package/src/components/monitor/HttpRequestMonitor.mjs +45 -109
  210. package/src/components/monitor/MemoryMonitor.cjs +87 -151
  211. package/src/components/monitor/MemoryMonitor.mjs +71 -135
  212. package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
  213. package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
  214. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
  215. package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
  216. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
  217. package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
  218. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
  219. package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
  220. package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
  221. package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
  222. package/src/constants/DIMetadataKey.cjs +3 -3
  223. package/src/constants/DIMetadataKey.mjs +3 -3
  224. package/src/constants/DTOMetadataKey.cjs +3 -3
  225. package/src/constants/DTOMetadataKey.mjs +3 -3
  226. package/src/decorators/asst/After.cjs +4 -6
  227. package/src/decorators/asst/After.mjs +5 -7
  228. package/src/decorators/asst/Before.cjs +4 -6
  229. package/src/decorators/asst/Before.mjs +5 -7
  230. package/src/decorators/ctrl/CLIAction.cjs +15 -51
  231. package/src/decorators/ctrl/CLIAction.mjs +19 -55
  232. package/src/decorators/ctrl/HTTPAction.cjs +15 -51
  233. package/src/decorators/ctrl/HTTPAction.mjs +19 -55
  234. package/src/decorators/ctrl/ServiceAction.cjs +15 -51
  235. package/src/decorators/ctrl/ServiceAction.mjs +18 -54
  236. package/src/decorators/ctrl/http/DELETE.cjs +12 -48
  237. package/src/decorators/ctrl/http/DELETE.mjs +14 -50
  238. package/src/decorators/ctrl/http/GET.cjs +12 -48
  239. package/src/decorators/ctrl/http/GET.mjs +14 -50
  240. package/src/decorators/ctrl/http/HEAD.cjs +12 -48
  241. package/src/decorators/ctrl/http/HEAD.mjs +14 -50
  242. package/src/decorators/ctrl/http/OPTIONS.cjs +12 -48
  243. package/src/decorators/ctrl/http/OPTIONS.mjs +14 -50
  244. package/src/decorators/ctrl/http/PATCH.cjs +12 -48
  245. package/src/decorators/ctrl/http/PATCH.mjs +14 -50
  246. package/src/decorators/ctrl/http/POST.cjs +12 -48
  247. package/src/decorators/ctrl/http/POST.mjs +14 -50
  248. package/src/decorators/ctrl/http/PUT.cjs +12 -48
  249. package/src/decorators/ctrl/http/PUT.mjs +14 -50
  250. package/src/decorators/di/Autoload.cjs +3 -3
  251. package/src/decorators/di/Autoload.mjs +3 -3
  252. package/src/decorators/di/Configurable.cjs +10 -40
  253. package/src/decorators/di/Configurable.mjs +12 -42
  254. package/src/decorators/di/Inject.cjs +20 -50
  255. package/src/decorators/di/Inject.mjs +25 -55
  256. package/src/decorators/di/Lifetime.cjs +5 -7
  257. package/src/decorators/di/Lifetime.mjs +15 -17
  258. package/src/decorators/dto/Accept.cjs +10 -40
  259. package/src/decorators/dto/Accept.mjs +13 -43
  260. package/src/decorators/dto/Expect.cjs +11 -41
  261. package/src/decorators/dto/Expect.mjs +13 -43
  262. package/src/decorators/dto/IndexSignature.cjs +10 -40
  263. package/src/decorators/dto/IndexSignature.mjs +13 -43
  264. package/src/decorators/dto/Return.cjs +10 -40
  265. package/src/decorators/dto/Return.mjs +13 -43
  266. package/src/decorators/orm/AfterInsert.cjs +17 -95
  267. package/src/decorators/orm/AfterInsert.mjs +17 -95
  268. package/src/decorators/orm/AfterLoad.cjs +17 -95
  269. package/src/decorators/orm/AfterLoad.mjs +17 -95
  270. package/src/decorators/orm/AfterRecover.cjs +17 -95
  271. package/src/decorators/orm/AfterRecover.mjs +17 -95
  272. package/src/decorators/orm/AfterRemove.cjs +17 -95
  273. package/src/decorators/orm/AfterRemove.mjs +17 -95
  274. package/src/decorators/orm/AfterSoftRemove.cjs +17 -95
  275. package/src/decorators/orm/AfterSoftRemove.mjs +17 -95
  276. package/src/decorators/orm/AfterUpdate.cjs +17 -95
  277. package/src/decorators/orm/AfterUpdate.mjs +17 -95
  278. package/src/decorators/orm/BeforeInsert.cjs +17 -95
  279. package/src/decorators/orm/BeforeInsert.mjs +17 -95
  280. package/src/decorators/orm/BeforeRecover.cjs +17 -95
  281. package/src/decorators/orm/BeforeRecover.mjs +17 -95
  282. package/src/decorators/orm/BeforeRemove.cjs +17 -95
  283. package/src/decorators/orm/BeforeRemove.mjs +17 -95
  284. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -95
  285. package/src/decorators/orm/BeforeSoftRemove.mjs +17 -95
  286. package/src/decorators/orm/BeforeUpdate.cjs +17 -95
  287. package/src/decorators/orm/BeforeUpdate.mjs +17 -95
  288. package/src/decorators/orm/Check.cjs +17 -95
  289. package/src/decorators/orm/Check.mjs +17 -95
  290. package/src/decorators/orm/ChildEntity.cjs +17 -95
  291. package/src/decorators/orm/ChildEntity.mjs +17 -95
  292. package/src/decorators/orm/Column.cjs +17 -95
  293. package/src/decorators/orm/Column.mjs +17 -95
  294. package/src/decorators/orm/CreateDateColumn.cjs +17 -95
  295. package/src/decorators/orm/CreateDateColumn.mjs +17 -95
  296. package/src/decorators/orm/DeleteDateColumn.cjs +17 -95
  297. package/src/decorators/orm/DeleteDateColumn.mjs +17 -95
  298. package/src/decorators/orm/Entity.cjs +17 -95
  299. package/src/decorators/orm/Entity.mjs +17 -95
  300. package/src/decorators/orm/EventSubscriber.cjs +17 -95
  301. package/src/decorators/orm/EventSubscriber.mjs +17 -95
  302. package/src/decorators/orm/Exclusion.cjs +17 -95
  303. package/src/decorators/orm/Exclusion.mjs +17 -95
  304. package/src/decorators/orm/Generated.cjs +17 -95
  305. package/src/decorators/orm/Generated.mjs +17 -95
  306. package/src/decorators/orm/Index.cjs +17 -95
  307. package/src/decorators/orm/Index.mjs +17 -95
  308. package/src/decorators/orm/JoinColumn.cjs +17 -95
  309. package/src/decorators/orm/JoinColumn.mjs +17 -95
  310. package/src/decorators/orm/JoinTable.cjs +17 -95
  311. package/src/decorators/orm/JoinTable.mjs +17 -95
  312. package/src/decorators/orm/ManyToMany.cjs +17 -95
  313. package/src/decorators/orm/ManyToMany.mjs +17 -95
  314. package/src/decorators/orm/ManyToOne.cjs +17 -95
  315. package/src/decorators/orm/ManyToOne.mjs +17 -95
  316. package/src/decorators/orm/ObjectIdColumn.cjs +17 -95
  317. package/src/decorators/orm/ObjectIdColumn.mjs +17 -95
  318. package/src/decorators/orm/OneToMany.cjs +17 -95
  319. package/src/decorators/orm/OneToMany.mjs +17 -95
  320. package/src/decorators/orm/OneToOne.cjs +17 -95
  321. package/src/decorators/orm/OneToOne.mjs +17 -95
  322. package/src/decorators/orm/PrimaryColumn.cjs +17 -95
  323. package/src/decorators/orm/PrimaryColumn.mjs +17 -95
  324. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -95
  325. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +17 -95
  326. package/src/decorators/orm/RelationId.cjs +17 -95
  327. package/src/decorators/orm/RelationId.mjs +17 -95
  328. package/src/decorators/orm/TableInheritance.cjs +17 -95
  329. package/src/decorators/orm/TableInheritance.mjs +17 -95
  330. package/src/decorators/orm/Tree.cjs +17 -95
  331. package/src/decorators/orm/Tree.mjs +17 -95
  332. package/src/decorators/orm/TreeChildren.cjs +17 -95
  333. package/src/decorators/orm/TreeChildren.mjs +17 -95
  334. package/src/decorators/orm/TreeLevelColumn.cjs +17 -95
  335. package/src/decorators/orm/TreeLevelColumn.mjs +17 -95
  336. package/src/decorators/orm/TreeParent.cjs +17 -95
  337. package/src/decorators/orm/TreeParent.mjs +17 -95
  338. package/src/decorators/orm/Unique.cjs +17 -95
  339. package/src/decorators/orm/Unique.mjs +17 -95
  340. package/src/decorators/orm/UpdateDateColumn.cjs +17 -95
  341. package/src/decorators/orm/UpdateDateColumn.mjs +17 -95
  342. package/src/decorators/orm/VersionColumn.cjs +17 -95
  343. package/src/decorators/orm/VersionColumn.mjs +17 -95
  344. package/src/decorators/orm/ViewColumn.cjs +17 -95
  345. package/src/decorators/orm/ViewColumn.mjs +17 -95
  346. package/src/decorators/orm/ViewEntity.cjs +17 -95
  347. package/src/decorators/orm/ViewEntity.mjs +17 -95
  348. package/src/decorators/orm/VirtualColumn.cjs +17 -95
  349. package/src/decorators/orm/VirtualColumn.mjs +17 -95
  350. package/src/dto/PaginationResultDTO.cjs +9 -39
  351. package/src/dto/PaginationResultDTO.mjs +18 -48
  352. package/src/dto/PaginationSearchDTO.cjs +9 -39
  353. package/src/dto/PaginationSearchDTO.mjs +13 -43
  354. package/src/exceptions/DestroyRuntimeContainerException.cjs +4 -6
  355. package/src/exceptions/DestroyRuntimeContainerException.mjs +4 -6
  356. package/src/exceptions/InvalidActionPatternDepthException.cjs +4 -6
  357. package/src/exceptions/InvalidActionPatternDepthException.mjs +4 -6
  358. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +4 -6
  359. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +4 -6
  360. package/src/exceptions/InvalidObjectTypeException.cjs +4 -6
  361. package/src/exceptions/InvalidObjectTypeException.mjs +4 -6
  362. package/src/exceptions/MethodNotFoundException.cjs +4 -6
  363. package/src/exceptions/MethodNotFoundException.mjs +4 -6
  364. package/src/exceptions/alias/AliasExistsException.cjs +4 -6
  365. package/src/exceptions/alias/AliasExistsException.mjs +6 -8
  366. package/src/exceptions/alias/AliasNotFoundException.cjs +4 -6
  367. package/src/exceptions/alias/AliasNotFoundException.mjs +4 -6
  368. package/src/exceptions/alias/InvalidAliasNameException.cjs +4 -6
  369. package/src/exceptions/alias/InvalidAliasNameException.mjs +4 -6
  370. package/src/exceptions/di/DependencyInjectionException.cjs +4 -6
  371. package/src/exceptions/di/DependencyInjectionException.mjs +4 -6
  372. package/src/exceptions/di/LifetimeLockedException.cjs +4 -6
  373. package/src/exceptions/di/LifetimeLockedException.mjs +4 -6
  374. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +4 -6
  375. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +4 -6
  376. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +4 -6
  377. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +4 -6
  378. package/src/exceptions/dto/InvalidMethodReturnException.cjs +4 -6
  379. package/src/exceptions/dto/InvalidMethodReturnException.mjs +4 -6
  380. package/src/exceptions/dto/InvalidValueException.cjs +4 -6
  381. package/src/exceptions/dto/InvalidValueException.mjs +4 -6
  382. package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
  383. package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
  384. package/src/interfaces/IConstructor.cjs +1 -1
  385. package/src/interfaces/IConstructor.mjs +1 -1
  386. package/src/interfaces/IPatRun.cjs +1 -1
  387. package/src/interfaces/IPatRun.mjs +1 -1
  388. package/src/lib/base/BaseObject.cjs +51 -259
  389. package/src/lib/base/BaseObject.mjs +41 -256
  390. package/src/lib/base/Context.cjs +11 -41
  391. package/src/lib/base/Context.mjs +23 -53
  392. package/src/lib/base/EventEmitter.cjs +1398 -47
  393. package/src/lib/base/EventEmitter.mjs +1397 -46
  394. package/src/lib/base/abstracts/Exception.cjs +12 -14
  395. package/src/lib/base/abstracts/Exception.mjs +4 -6
  396. package/src/lib/base/async-constructor/Append.cjs +1 -1
  397. package/src/lib/base/async-constructor/Append.mjs +1 -1
  398. package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
  399. package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
  400. package/src/lib/base/internal/ActionOptions.cjs +9 -39
  401. package/src/lib/base/internal/ActionOptions.mjs +9 -39
  402. package/src/lib/base/internal/ApplicationConfigLoader.cjs +54 -116
  403. package/src/lib/base/internal/ApplicationConfigLoader.mjs +54 -116
  404. package/src/lib/base/internal/BasicInfo.cjs +13 -15
  405. package/src/lib/base/internal/BasicInfo.mjs +15 -17
  406. package/src/lib/base/internal/CamelCase.cjs +1 -1
  407. package/src/lib/base/internal/CamelCase.mjs +1 -1
  408. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +3 -3
  409. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +3 -3
  410. package/src/lib/base/internal/ConstructorSymbol.cjs +3 -3
  411. package/src/lib/base/internal/ConstructorSymbol.mjs +3 -3
  412. package/src/lib/base/internal/ControllerEntrypoint.cjs +16 -24
  413. package/src/lib/base/internal/ControllerEntrypoint.mjs +39 -47
  414. package/src/lib/base/internal/DataValidator.cjs +203 -27
  415. package/src/lib/base/internal/DataValidator.mjs +203 -27
  416. package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
  417. package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
  418. package/src/lib/base/internal/FlexibleDTO.cjs +11 -41
  419. package/src/lib/base/internal/FlexibleDTO.mjs +13 -43
  420. package/src/lib/base/internal/GetActionDTOAndOptions.cjs +21 -51
  421. package/src/lib/base/internal/GetActionDTOAndOptions.mjs +23 -53
  422. package/src/lib/base/internal/IEEE754.cjs +1 -1
  423. package/src/lib/base/internal/IEEE754.mjs +1 -1
  424. package/src/lib/base/internal/MethodAssistantFunction.cjs +15 -17
  425. package/src/lib/base/internal/MethodAssistantFunction.mjs +8 -10
  426. package/src/lib/base/internal/MethodValidation.cjs +55 -85
  427. package/src/lib/base/internal/MethodValidation.mjs +42 -72
  428. package/src/lib/base/internal/ModuleConfigLoader.cjs +81 -143
  429. package/src/lib/base/internal/ModuleConfigLoader.mjs +76 -138
  430. package/src/lib/base/internal/ObjectConfiguration.cjs +26 -56
  431. package/src/lib/base/internal/ObjectConfiguration.mjs +25 -55
  432. package/src/lib/base/internal/ObjectContainer.cjs +3 -3
  433. package/src/lib/base/internal/ObjectContainer.mjs +3 -3
  434. package/src/lib/base/internal/ObjectInjection.cjs +3 -3
  435. package/src/lib/base/internal/ObjectInjection.mjs +3 -3
  436. package/src/lib/base/internal/ObjectLifetime.cjs +5 -7
  437. package/src/lib/base/internal/ObjectLifetime.mjs +12 -14
  438. package/src/lib/base/internal/ObjectSchemaValidation.cjs +23 -121
  439. package/src/lib/base/internal/ObjectSchemaValidation.mjs +14 -114
  440. package/src/lib/base/internal/ObjectType.cjs +27 -119
  441. package/src/lib/base/internal/ObjectType.mjs +20 -119
  442. package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
  443. package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
  444. package/src/lib/base/internal/PatternManager.cjs +831 -7
  445. package/src/lib/base/internal/PatternManager.mjs +835 -11
  446. package/src/lib/base/internal/StringifyPattern.cjs +5 -9
  447. package/src/lib/base/internal/StringifyPattern.mjs +5 -9
  448. package/src/lib/base/internal/ThrowWarning.cjs +1 -1
  449. package/src/lib/base/internal/ThrowWarning.mjs +1 -1
  450. package/src/lib/context/CLIContext.cjs +12 -42
  451. package/src/lib/context/CLIContext.mjs +15 -45
  452. package/src/lib/context/HTTPContext.cjs +15 -45
  453. package/src/lib/context/HTTPContext.mjs +14 -44
  454. package/src/lib/context/ServiceContext.cjs +12 -42
  455. package/src/lib/context/ServiceContext.mjs +18 -48
  456. package/src/lib/core/Alias.cjs +46 -48
  457. package/src/lib/core/Alias.mjs +24 -26
  458. package/src/lib/core/Application.cjs +486 -351
  459. package/src/lib/core/Application.mjs +531 -400
  460. package/src/lib/core/Component.cjs +24 -88
  461. package/src/lib/core/Component.mjs +28 -92
  462. package/src/lib/core/Container.cjs +50 -326
  463. package/src/lib/core/Container.mjs +45 -323
  464. package/src/lib/core/DTO.cjs +16 -194
  465. package/src/lib/core/DTO.mjs +12 -197
  466. package/src/lib/core/Module.cjs +39 -107
  467. package/src/lib/core/Module.mjs +53 -121
  468. package/src/lib/core/Provider.cjs +19 -81
  469. package/src/lib/core/Provider.mjs +25 -87
  470. package/src/lib/core/Time.cjs +52 -45
  471. package/src/lib/core/Time.mjs +52 -45
  472. package/src/lib/helpers/ArrayToSet.cjs +1 -1
  473. package/src/lib/helpers/ArrayToSet.mjs +1 -1
  474. package/src/lib/helpers/As.cjs +1 -1
  475. package/src/lib/helpers/As.mjs +1 -1
  476. package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
  477. package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
  478. package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
  479. package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
  480. package/src/lib/helpers/Delay.cjs +1 -1
  481. package/src/lib/helpers/Delay.mjs +1 -1
  482. package/src/lib/helpers/DevNull.cjs +1 -1
  483. package/src/lib/helpers/DevNull.mjs +1 -1
  484. package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
  485. package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
  486. package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
  487. package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
  488. package/src/lib/helpers/Glob.cjs +5502 -17
  489. package/src/lib/helpers/Glob.mjs +5472 -17
  490. package/src/lib/helpers/GraceExit.cjs +1 -1
  491. package/src/lib/helpers/GraceExit.mjs +1 -1
  492. package/src/lib/helpers/HexToIEEE754.cjs +1 -1
  493. package/src/lib/helpers/HexToIEEE754.mjs +1 -1
  494. package/src/lib/helpers/HexToSigned.cjs +1 -1
  495. package/src/lib/helpers/HexToSigned.mjs +1 -1
  496. package/src/lib/helpers/HexToUnsigned.cjs +1 -1
  497. package/src/lib/helpers/HexToUnsigned.mjs +1 -1
  498. package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
  499. package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
  500. package/src/lib/helpers/IPToolkit.cjs +1 -1
  501. package/src/lib/helpers/IPToolkit.mjs +1 -1
  502. package/src/lib/helpers/IsAbortError.cjs +1 -1
  503. package/src/lib/helpers/IsAbortError.mjs +1 -1
  504. package/src/lib/helpers/IsEmptyObject.cjs +1 -1
  505. package/src/lib/helpers/IsEmptyObject.mjs +1 -1
  506. package/src/lib/helpers/IsExists.cjs +1 -1
  507. package/src/lib/helpers/IsExists.mjs +1 -1
  508. package/src/lib/helpers/IsGlobString.cjs +4 -10
  509. package/src/lib/helpers/IsGlobString.mjs +3 -11
  510. package/src/lib/helpers/IsHtml.cjs +5 -5
  511. package/src/lib/helpers/IsHtml.mjs +6 -6
  512. package/src/lib/helpers/IsNativeFunction.cjs +1 -1
  513. package/src/lib/helpers/IsNativeFunction.mjs +1 -1
  514. package/src/lib/helpers/IsPath.cjs +1 -1
  515. package/src/lib/helpers/IsPath.mjs +1 -1
  516. package/src/lib/helpers/IsPromise.cjs +1 -1
  517. package/src/lib/helpers/IsPromise.mjs +1 -1
  518. package/src/lib/helpers/IsPromiseLike.cjs +1 -1
  519. package/src/lib/helpers/IsPromiseLike.mjs +1 -1
  520. package/src/lib/helpers/IsSymbol.cjs +10 -44
  521. package/src/lib/helpers/IsSymbol.mjs +9 -45
  522. package/src/lib/helpers/IsXML.cjs +1711 -6
  523. package/src/lib/helpers/IsXML.mjs +1712 -7
  524. package/src/lib/helpers/MD5.cjs +4 -4
  525. package/src/lib/helpers/MD5.mjs +4 -4
  526. package/src/lib/helpers/MergeArray.cjs +1 -1
  527. package/src/lib/helpers/MergeArray.mjs +1 -1
  528. package/src/lib/helpers/MergeMap.cjs +1 -1
  529. package/src/lib/helpers/MergeMap.mjs +1 -1
  530. package/src/lib/helpers/MergeSet.cjs +1 -1
  531. package/src/lib/helpers/MergeSet.mjs +1 -1
  532. package/src/lib/helpers/NoCase.cjs +1 -1
  533. package/src/lib/helpers/NoCase.mjs +1 -1
  534. package/src/lib/helpers/NonceStr.cjs +2 -6
  535. package/src/lib/helpers/NonceStr.mjs +4 -8
  536. package/src/lib/helpers/ObjectConstructor.cjs +1 -1
  537. package/src/lib/helpers/ObjectConstructor.mjs +1 -1
  538. package/src/lib/helpers/ObjectHash.cjs +405 -7
  539. package/src/lib/helpers/ObjectHash.mjs +399 -7
  540. package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
  541. package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
  542. package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
  543. package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
  544. package/src/lib/helpers/ObjectPath.cjs +1 -1
  545. package/src/lib/helpers/ObjectPath.mjs +1 -1
  546. package/src/lib/helpers/ObjectPrototype.cjs +1 -1
  547. package/src/lib/helpers/ObjectPrototype.mjs +1 -1
  548. package/src/lib/helpers/ObjectToMap.cjs +1 -1
  549. package/src/lib/helpers/ObjectToMap.mjs +1 -1
  550. package/src/lib/helpers/Paginator.cjs +1 -1
  551. package/src/lib/helpers/Paginator.mjs +1 -1
  552. package/src/lib/helpers/RandomString.cjs +172 -11
  553. package/src/lib/helpers/RandomString.mjs +166 -11
  554. package/src/lib/helpers/SHA1.cjs +4 -4
  555. package/src/lib/helpers/SHA1.mjs +4 -4
  556. package/src/lib/helpers/SHA256.cjs +4 -4
  557. package/src/lib/helpers/SHA256.mjs +4 -4
  558. package/src/lib/helpers/SetToArray.cjs +1 -1
  559. package/src/lib/helpers/SetToArray.mjs +1 -1
  560. package/src/lib/helpers/SignedToHex.cjs +1 -1
  561. package/src/lib/helpers/SignedToHex.mjs +1 -1
  562. package/src/lib/helpers/SortArray.cjs +2 -6
  563. package/src/lib/helpers/SortArray.mjs +7 -11
  564. package/src/lib/helpers/SortKeys.cjs +1 -1
  565. package/src/lib/helpers/SortKeys.mjs +1 -1
  566. package/src/lib/helpers/SortObject.cjs +1 -1
  567. package/src/lib/helpers/SortObject.mjs +1 -1
  568. package/src/lib/helpers/Statistics.cjs +2 -2
  569. package/src/lib/helpers/Statistics.mjs +2 -2
  570. package/src/lib/helpers/Templating.cjs +1 -1
  571. package/src/lib/helpers/Templating.mjs +1 -1
  572. package/src/lib/helpers/URLBuilder.cjs +417 -38
  573. package/src/lib/helpers/URLBuilder.mjs +417 -38
  574. package/src/lib/helpers/UUID.cjs +340 -22
  575. package/src/lib/helpers/UUID.mjs +340 -22
  576. package/src/lib/helpers/UniqueArray.cjs +1 -1
  577. package/src/lib/helpers/UniqueArray.mjs +1 -1
  578. package/src/lib/helpers/UnsignedToHex.cjs +1 -1
  579. package/src/lib/helpers/UnsignedToHex.mjs +1 -1
  580. package/src/lib/ioc/DependencyInjectionContainer.cjs +145 -197
  581. package/src/lib/ioc/DependencyInjectionContainer.mjs +102 -154
  582. package/src/lib/ioc/Errors.cjs +27 -57
  583. package/src/lib/ioc/Errors.mjs +25 -55
  584. package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
  585. package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
  586. package/src/lib/ioc/InjectionMode.cjs +1 -1
  587. package/src/lib/ioc/InjectionMode.mjs +1 -1
  588. package/src/lib/ioc/Lifetime.cjs +1 -1
  589. package/src/lib/ioc/Lifetime.mjs +1 -1
  590. package/src/lib/ioc/ListModules.cjs +5811 -99
  591. package/src/lib/ioc/ListModules.mjs +5779 -79
  592. package/src/lib/ioc/LoadModules.cjs +63 -93
  593. package/src/lib/ioc/LoadModules.mjs +65 -95
  594. package/src/lib/ioc/ParamParser.cjs +1 -1
  595. package/src/lib/ioc/ParamParser.mjs +1 -1
  596. package/src/lib/ioc/Resolvers.cjs +42 -72
  597. package/src/lib/ioc/Resolvers.mjs +44 -74
  598. package/src/lib/ioc/Utils.cjs +28 -58
  599. package/src/lib/ioc/Utils.mjs +34 -64
  600. package/src/lib/validation/VLD.cjs +11342 -98
  601. package/src/lib/validation/VLD.mjs +11298 -80
  602. package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
  603. package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
  604. package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
  605. package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
  606. package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
  607. package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
  608. package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
  609. package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
  610. package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
  611. package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
  612. package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
  613. package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
  614. package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
  615. package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
  616. package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
  617. package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
  618. package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
  619. package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
  620. package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
  621. package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
  622. package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
  623. package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
  624. package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
  625. package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
  626. package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
  627. package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
  628. package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
  629. package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
  630. package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
  631. package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
  632. package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
  633. package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
  634. package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
  635. package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
  636. package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
  637. package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
  638. package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
  639. package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
  640. package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
  641. package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
  642. package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
  643. package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
  644. package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
  645. package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
  646. package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
  647. package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
  648. package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
  649. package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
  650. package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
  651. package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
  652. package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
  653. package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
  654. package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
  655. package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
  656. package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
  657. package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
  658. package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
  659. package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
  660. package/src/lib/validation/interfaces/Reference.cjs +1 -1
  661. package/src/lib/validation/interfaces/Reference.mjs +1 -1
  662. package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
  663. package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
  664. package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
  665. package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
  666. package/src/lib/validation/interfaces/State.cjs +1 -1
  667. package/src/lib/validation/interfaces/State.mjs +1 -1
  668. package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
  669. package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
  670. package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
  671. package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
  672. package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
  673. package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
  674. package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
  675. package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
  676. package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
  677. package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
  678. package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
  679. package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
  680. package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
  681. package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
  682. package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
  683. package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
  684. package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
  685. package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
  686. package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
  687. package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
  688. package/src/lib/validation/types/CustomValidator.cjs +1 -1
  689. package/src/lib/validation/types/CustomValidator.mjs +1 -1
  690. package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
  691. package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
  692. package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
  693. package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
  694. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
  695. package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
  696. package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
  697. package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
  698. package/src/lib/validation/types/IsUnion.cjs +1 -1
  699. package/src/lib/validation/types/IsUnion.mjs +1 -1
  700. package/src/lib/validation/types/LanguageMessages.cjs +1 -1
  701. package/src/lib/validation/types/LanguageMessages.mjs +1 -1
  702. package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
  703. package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
  704. package/src/lib/validation/types/NullableType.cjs +1 -1
  705. package/src/lib/validation/types/NullableType.mjs +1 -1
  706. package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
  707. package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
  708. package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
  709. package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
  710. package/src/lib/validation/types/PresenceMode.cjs +1 -1
  711. package/src/lib/validation/types/PresenceMode.mjs +1 -1
  712. package/src/lib/validation/types/Primitives.cjs +1 -1
  713. package/src/lib/validation/types/Primitives.mjs +1 -1
  714. package/src/lib/validation/types/Schema.cjs +1 -1
  715. package/src/lib/validation/types/Schema.mjs +1 -1
  716. package/src/lib/validation/types/SchemaFunction.cjs +1 -1
  717. package/src/lib/validation/types/SchemaFunction.mjs +1 -1
  718. package/src/lib/validation/types/SchemaLike.cjs +1 -1
  719. package/src/lib/validation/types/SchemaLike.mjs +1 -1
  720. package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
  721. package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
  722. package/src/lib/validation/types/SchemaMap.cjs +1 -1
  723. package/src/lib/validation/types/SchemaMap.mjs +1 -1
  724. package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
  725. package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
  726. package/src/lib/validation/types/Types.cjs +1 -1
  727. package/src/lib/validation/types/Types.mjs +1 -1
  728. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
  729. package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
  730. package/src/options/ApplicationOptions.cjs +22 -84
  731. package/src/options/ApplicationOptions.mjs +25 -87
  732. package/src/options/LoadAnonymousObjectOptions.cjs +20 -82
  733. package/src/options/LoadAnonymousObjectOptions.mjs +22 -84
  734. package/src/options/LoadNamedObjectOptions.cjs +20 -82
  735. package/src/options/LoadNamedObjectOptions.mjs +22 -84
  736. package/src/options/LoadObjectOptions.cjs +23 -96
  737. package/src/options/LoadObjectOptions.mjs +18 -98
  738. package/src/options/ModuleLoadObjectsOptions.cjs +20 -82
  739. package/src/options/ModuleLoadObjectsOptions.mjs +20 -82
  740. package/src/options/ModuleOptions.cjs +26 -88
  741. package/src/options/ModuleOptions.mjs +25 -87
  742. package/src/options/OverridableNamedObjectOptions.cjs +20 -82
  743. package/src/options/OverridableNamedObjectOptions.mjs +23 -85
  744. package/src/options/OverridableObjectOptions.cjs +20 -82
  745. package/src/options/OverridableObjectOptions.mjs +22 -84
  746. package/src/providers/Database.cjs +41 -181
  747. package/src/providers/Database.mjs +74 -214
  748. package/src/providers/PasswordHash.cjs +541 -89
  749. package/src/providers/PasswordHash.mjs +535 -89
  750. package/src/providers/migration/GenerateMigration.cjs +37 -389
  751. package/src/providers/migration/GenerateMigration.mjs +33 -386
  752. package/src/types/ActionPattern.cjs +1 -1
  753. package/src/types/ActionPattern.mjs +1 -1
  754. package/src/types/ClassDecorator.cjs +1 -1
  755. package/src/types/ClassDecorator.mjs +1 -1
  756. package/src/types/ComponentOptions.cjs +1 -1
  757. package/src/types/ComponentOptions.mjs +1 -1
  758. package/src/types/JSONSchema.cjs +1 -1
  759. package/src/types/JSONSchema.mjs +1 -1
  760. package/src/types/MethodDecorator.cjs +1 -1
  761. package/src/types/MethodDecorator.mjs +1 -1
  762. package/src/types/ModuleOptions.cjs +1 -1
  763. package/src/types/ModuleOptions.mjs +1 -1
  764. package/src/types/ObjectOptions.cjs +1 -1
  765. package/src/types/ObjectOptions.mjs +1 -1
  766. package/src/types/ParameterDecorator.cjs +1 -1
  767. package/src/types/ParameterDecorator.mjs +1 -1
  768. package/src/types/PropertyDecorator.cjs +1 -1
  769. package/src/types/PropertyDecorator.mjs +1 -1
  770. package/src/types/ProviderOptions.cjs +1 -1
  771. package/src/types/ProviderOptions.mjs +1 -1
  772. package/vendor/Package.internal.1.cjs +938 -206
  773. package/vendor/Package.internal.1.mjs +938 -202
  774. package/vendor/Package.internal.10.cjs +17 -227
  775. package/vendor/Package.internal.10.mjs +18 -226
  776. package/vendor/Package.internal.11.cjs +15 -1608
  777. package/vendor/Package.internal.11.mjs +16 -1579
  778. package/vendor/Package.internal.12.cjs +13 -12547
  779. package/vendor/Package.internal.12.mjs +14 -12530
  780. package/vendor/Package.internal.13.cjs +22 -357
  781. package/vendor/Package.internal.13.mjs +23 -358
  782. package/vendor/Package.internal.14.cjs +17 -786
  783. package/vendor/Package.internal.14.mjs +18 -787
  784. package/vendor/Package.internal.15.cjs +18 -72
  785. package/vendor/Package.internal.15.mjs +19 -71
  786. package/vendor/Package.internal.16.cjs +13 -977
  787. package/vendor/Package.internal.16.mjs +14 -966
  788. package/vendor/Package.internal.17.cjs +19 -43
  789. package/vendor/Package.internal.17.mjs +20 -44
  790. package/vendor/Package.internal.18.cjs +16 -262
  791. package/vendor/Package.internal.18.mjs +17 -263
  792. package/vendor/Package.internal.19.cjs +16 -428
  793. package/vendor/Package.internal.19.mjs +17 -429
  794. package/vendor/Package.internal.2.cjs +29 -86
  795. package/vendor/Package.internal.2.mjs +30 -83
  796. package/vendor/Package.internal.20.cjs +18 -556
  797. package/vendor/Package.internal.20.mjs +19 -551
  798. package/vendor/Package.internal.21.cjs +19 -400
  799. package/vendor/Package.internal.21.mjs +20 -401
  800. package/vendor/Package.internal.22.cjs +56 -913
  801. package/vendor/Package.internal.22.mjs +57 -908
  802. package/vendor/Package.internal.23.cjs +15 -218
  803. package/vendor/Package.internal.23.mjs +17 -220
  804. package/vendor/Package.internal.24.cjs +16 -990
  805. package/vendor/Package.internal.24.mjs +17 -991
  806. package/vendor/Package.internal.25.cjs +32 -9
  807. package/vendor/Package.internal.25.mjs +33 -8
  808. package/vendor/Package.internal.26.cjs +15 -121
  809. package/vendor/Package.internal.26.mjs +16 -120
  810. package/vendor/Package.internal.27.cjs +18 -139
  811. package/vendor/Package.internal.27.mjs +19 -138
  812. package/vendor/Package.internal.28.cjs +21 -5
  813. package/vendor/Package.internal.28.mjs +22 -4
  814. package/vendor/Package.internal.29.cjs +36 -19
  815. package/vendor/Package.internal.29.mjs +37 -18
  816. package/vendor/Package.internal.3.cjs +532 -14232
  817. package/vendor/Package.internal.3.mjs +529 -14211
  818. package/vendor/Package.internal.30.cjs +22 -474
  819. package/vendor/Package.internal.30.mjs +23 -469
  820. package/vendor/Package.internal.31.cjs +21 -74
  821. package/vendor/Package.internal.31.mjs +24 -71
  822. package/vendor/Package.internal.310.cjs +10 -0
  823. package/vendor/Package.internal.310.mjs +8 -0
  824. package/vendor/Package.internal.32.cjs +40 -2
  825. package/vendor/Package.internal.32.mjs +42 -2
  826. package/vendor/Package.internal.33.cjs +34 -35
  827. package/vendor/Package.internal.33.mjs +35 -34
  828. package/vendor/Package.internal.34.cjs +20 -21
  829. package/vendor/Package.internal.34.mjs +21 -20
  830. package/vendor/Package.internal.35.cjs +29 -10
  831. package/vendor/Package.internal.35.mjs +30 -9
  832. package/vendor/Package.internal.36.cjs +39 -188
  833. package/vendor/Package.internal.36.mjs +42 -191
  834. package/vendor/Package.internal.37.cjs +43 -59
  835. package/vendor/Package.internal.37.mjs +46 -60
  836. package/vendor/Package.internal.38.cjs +43 -158
  837. package/vendor/Package.internal.38.mjs +44 -159
  838. package/vendor/Package.internal.39.cjs +19 -2070
  839. package/vendor/Package.internal.39.mjs +20 -2065
  840. package/vendor/Package.internal.4.cjs +463 -961
  841. package/vendor/Package.internal.4.mjs +444 -960
  842. package/vendor/Package.internal.40.cjs +16 -512
  843. package/vendor/Package.internal.40.mjs +17 -505
  844. package/vendor/Package.internal.41.cjs +15 -412
  845. package/vendor/Package.internal.41.mjs +16 -407
  846. package/vendor/Package.internal.42.cjs +21 -2356
  847. package/vendor/Package.internal.42.mjs +22 -2345
  848. package/vendor/Package.internal.43.cjs +17 -56
  849. package/vendor/Package.internal.43.mjs +18 -63
  850. package/vendor/Package.internal.44.cjs +25 -146
  851. package/vendor/Package.internal.44.mjs +26 -145
  852. package/vendor/Package.internal.45.cjs +31 -626
  853. package/vendor/Package.internal.45.mjs +33 -628
  854. package/vendor/Package.internal.46.cjs +16 -238
  855. package/vendor/Package.internal.46.mjs +17 -239
  856. package/vendor/Package.internal.47.cjs +16 -220
  857. package/vendor/Package.internal.47.mjs +17 -215
  858. package/vendor/Package.internal.48.cjs +23 -2
  859. package/vendor/Package.internal.48.mjs +25 -2
  860. package/vendor/Package.internal.49.cjs +24 -355
  861. package/vendor/Package.internal.49.mjs +27 -352
  862. package/vendor/Package.internal.5.cjs +4275 -340
  863. package/vendor/Package.internal.5.mjs +4274 -341
  864. package/vendor/Package.internal.50.cjs +30 -30
  865. package/vendor/Package.internal.50.mjs +32 -30
  866. package/vendor/Package.internal.51.cjs +48322 -38
  867. package/vendor/Package.internal.51.mjs +48282 -38
  868. package/vendor/Package.internal.510.cjs +154 -0
  869. package/vendor/Package.internal.510.mjs +142 -0
  870. package/vendor/Package.internal.511.cjs +168 -0
  871. package/vendor/Package.internal.511.mjs +156 -0
  872. package/vendor/Package.internal.512.cjs +6 -0
  873. package/vendor/Package.internal.512.mjs +6 -0
  874. package/vendor/Package.internal.513.cjs +192 -0
  875. package/vendor/Package.internal.513.mjs +180 -0
  876. package/vendor/Package.internal.52.cjs +676 -16
  877. package/vendor/Package.internal.52.mjs +672 -16
  878. package/vendor/{Package.internal.180.cjs → Package.internal.522.cjs} +1 -1
  879. package/vendor/{Package.internal.180.mjs → Package.internal.522.mjs} +2 -2
  880. package/vendor/Package.internal.53.cjs +7094 -63
  881. package/vendor/Package.internal.53.mjs +7067 -60
  882. package/vendor/Package.internal.54.cjs +183 -77
  883. package/vendor/Package.internal.54.mjs +184 -78
  884. package/vendor/Package.internal.542.cjs +171 -0
  885. package/vendor/Package.internal.542.mjs +153 -0
  886. package/vendor/Package.internal.55.cjs +3982 -56
  887. package/vendor/Package.internal.55.mjs +3995 -47
  888. package/vendor/Package.internal.552.cjs +49615 -0
  889. package/vendor/Package.internal.552.mjs +49572 -0
  890. package/vendor/Package.internal.56.cjs +838 -20
  891. package/vendor/Package.internal.56.mjs +839 -19
  892. package/vendor/Package.internal.57.cjs +14762 -322
  893. package/vendor/Package.internal.57.mjs +14740 -325
  894. package/vendor/Package.internal.58.cjs +136 -2
  895. package/vendor/Package.internal.58.mjs +126 -2
  896. package/vendor/Package.internal.59.cjs +323 -188
  897. package/vendor/Package.internal.59.mjs +319 -188
  898. package/vendor/Package.internal.6.cjs +4 -6109
  899. package/vendor/Package.internal.6.mjs +4 -6103
  900. package/vendor/Package.internal.7.cjs +6543 -494
  901. package/vendor/Package.internal.7.mjs +6531 -494
  902. package/vendor/Package.internal.8.cjs +152 -33
  903. package/vendor/Package.internal.8.mjs +152 -31
  904. package/vendor/Package.internal.9.cjs +16 -2160
  905. package/vendor/Package.internal.9.mjs +17 -2133
  906. package/vendor/TypeDef.internal.96.d.ts +28 -22
  907. package/vendor/Package.internal.100.cjs +0 -69
  908. package/vendor/Package.internal.100.mjs +0 -67
  909. package/vendor/Package.internal.101.cjs +0 -123
  910. package/vendor/Package.internal.101.mjs +0 -121
  911. package/vendor/Package.internal.102.cjs +0 -16
  912. package/vendor/Package.internal.102.mjs +0 -8
  913. package/vendor/Package.internal.103.cjs +0 -4
  914. package/vendor/Package.internal.103.mjs +0 -2
  915. package/vendor/Package.internal.104.cjs +0 -4
  916. package/vendor/Package.internal.104.mjs +0 -2
  917. package/vendor/Package.internal.105.cjs +0 -112
  918. package/vendor/Package.internal.105.mjs +0 -98
  919. package/vendor/Package.internal.106.cjs +0 -88
  920. package/vendor/Package.internal.106.mjs +0 -84
  921. package/vendor/Package.internal.107.cjs +0 -58
  922. package/vendor/Package.internal.107.mjs +0 -52
  923. package/vendor/Package.internal.108.cjs +0 -20
  924. package/vendor/Package.internal.108.mjs +0 -18
  925. package/vendor/Package.internal.109.cjs +0 -96
  926. package/vendor/Package.internal.109.mjs +0 -96
  927. package/vendor/Package.internal.110.cjs +0 -113
  928. package/vendor/Package.internal.110.mjs +0 -113
  929. package/vendor/Package.internal.111.cjs +0 -2176
  930. package/vendor/Package.internal.111.mjs +0 -2174
  931. package/vendor/Package.internal.112.cjs +0 -2466
  932. package/vendor/Package.internal.112.mjs +0 -2434
  933. package/vendor/Package.internal.113.cjs +0 -1306
  934. package/vendor/Package.internal.113.mjs +0 -1292
  935. package/vendor/Package.internal.114.cjs +0 -33
  936. package/vendor/Package.internal.114.mjs +0 -31
  937. package/vendor/Package.internal.115.cjs +0 -20
  938. package/vendor/Package.internal.115.mjs +0 -18
  939. package/vendor/Package.internal.116.cjs +0 -21
  940. package/vendor/Package.internal.116.mjs +0 -21
  941. package/vendor/Package.internal.117.cjs +0 -52
  942. package/vendor/Package.internal.117.mjs +0 -52
  943. package/vendor/Package.internal.118.cjs +0 -141
  944. package/vendor/Package.internal.118.mjs +0 -141
  945. package/vendor/Package.internal.119.cjs +0 -2
  946. package/vendor/Package.internal.119.mjs +0 -1
  947. package/vendor/Package.internal.120.cjs +0 -6
  948. package/vendor/Package.internal.120.mjs +0 -4
  949. package/vendor/Package.internal.121.cjs +0 -4
  950. package/vendor/Package.internal.121.mjs +0 -2
  951. package/vendor/Package.internal.122.cjs +0 -4
  952. package/vendor/Package.internal.122.mjs +0 -2
  953. package/vendor/Package.internal.123.cjs +0 -4
  954. package/vendor/Package.internal.123.mjs +0 -2
  955. package/vendor/Package.internal.124.cjs +0 -49
  956. package/vendor/Package.internal.124.mjs +0 -47
  957. package/vendor/Package.internal.125.cjs +0 -14
  958. package/vendor/Package.internal.125.mjs +0 -14
  959. package/vendor/Package.internal.126.cjs +0 -12
  960. package/vendor/Package.internal.126.mjs +0 -12
  961. package/vendor/Package.internal.127.cjs +0 -20
  962. package/vendor/Package.internal.127.mjs +0 -18
  963. package/vendor/Package.internal.128.cjs +0 -118
  964. package/vendor/Package.internal.128.mjs +0 -116
  965. package/vendor/Package.internal.129.cjs +0 -18
  966. package/vendor/Package.internal.129.mjs +0 -16
  967. package/vendor/Package.internal.130.cjs +0 -19
  968. package/vendor/Package.internal.130.mjs +0 -17
  969. package/vendor/Package.internal.131.cjs +0 -8876
  970. package/vendor/Package.internal.131.mjs +0 -8874
  971. package/vendor/Package.internal.132.cjs +0 -899
  972. package/vendor/Package.internal.132.mjs +0 -897
  973. package/vendor/Package.internal.133.cjs +0 -6769
  974. package/vendor/Package.internal.133.mjs +0 -6775
  975. package/vendor/Package.internal.134.cjs +0 -473
  976. package/vendor/Package.internal.134.mjs +0 -459
  977. package/vendor/Package.internal.135.cjs +0 -617
  978. package/vendor/Package.internal.135.mjs +0 -611
  979. package/vendor/Package.internal.136.cjs +0 -97
  980. package/vendor/Package.internal.136.mjs +0 -89
  981. package/vendor/Package.internal.137.cjs +0 -4
  982. package/vendor/Package.internal.137.mjs +0 -2
  983. package/vendor/Package.internal.138.cjs +0 -3753
  984. package/vendor/Package.internal.138.mjs +0 -3751
  985. package/vendor/Package.internal.139.cjs +0 -561
  986. package/vendor/Package.internal.139.mjs +0 -559
  987. package/vendor/Package.internal.140.cjs +0 -4
  988. package/vendor/Package.internal.140.mjs +0 -2
  989. package/vendor/Package.internal.141.cjs +0 -4
  990. package/vendor/Package.internal.141.mjs +0 -2
  991. package/vendor/Package.internal.142.cjs +0 -4
  992. package/vendor/Package.internal.142.mjs +0 -2
  993. package/vendor/Package.internal.143.cjs +0 -4
  994. package/vendor/Package.internal.143.mjs +0 -2
  995. package/vendor/Package.internal.144.cjs +0 -4
  996. package/vendor/Package.internal.144.mjs +0 -2
  997. package/vendor/Package.internal.145.cjs +0 -4
  998. package/vendor/Package.internal.145.mjs +0 -2
  999. package/vendor/Package.internal.146.cjs +0 -4
  1000. package/vendor/Package.internal.146.mjs +0 -2
  1001. package/vendor/Package.internal.147.cjs +0 -4
  1002. package/vendor/Package.internal.147.mjs +0 -2
  1003. package/vendor/Package.internal.148.cjs +0 -4
  1004. package/vendor/Package.internal.148.mjs +0 -2
  1005. package/vendor/Package.internal.149.cjs +0 -4
  1006. package/vendor/Package.internal.149.mjs +0 -2
  1007. package/vendor/Package.internal.150.cjs +0 -4
  1008. package/vendor/Package.internal.150.mjs +0 -2
  1009. package/vendor/Package.internal.151.cjs +0 -408
  1010. package/vendor/Package.internal.151.mjs +0 -400
  1011. package/vendor/Package.internal.152.cjs +0 -104
  1012. package/vendor/Package.internal.152.mjs +0 -104
  1013. package/vendor/Package.internal.153.cjs +0 -27
  1014. package/vendor/Package.internal.153.mjs +0 -27
  1015. package/vendor/Package.internal.154.cjs +0 -4
  1016. package/vendor/Package.internal.154.mjs +0 -2
  1017. package/vendor/Package.internal.155.cjs +0 -4
  1018. package/vendor/Package.internal.155.mjs +0 -2
  1019. package/vendor/Package.internal.156.cjs +0 -723
  1020. package/vendor/Package.internal.156.mjs +0 -723
  1021. package/vendor/Package.internal.157.cjs +0 -1548
  1022. package/vendor/Package.internal.157.mjs +0 -1540
  1023. package/vendor/Package.internal.158.cjs +0 -364
  1024. package/vendor/Package.internal.158.mjs +0 -364
  1025. package/vendor/Package.internal.159.cjs +0 -107
  1026. package/vendor/Package.internal.159.mjs +0 -107
  1027. package/vendor/Package.internal.160.cjs +0 -636
  1028. package/vendor/Package.internal.160.mjs +0 -622
  1029. package/vendor/Package.internal.161.cjs +0 -543
  1030. package/vendor/Package.internal.161.mjs +0 -533
  1031. package/vendor/Package.internal.162.cjs +0 -605
  1032. package/vendor/Package.internal.162.mjs +0 -605
  1033. package/vendor/Package.internal.163.cjs +0 -139
  1034. package/vendor/Package.internal.163.mjs +0 -131
  1035. package/vendor/Package.internal.164.cjs +0 -119
  1036. package/vendor/Package.internal.164.mjs +0 -111
  1037. package/vendor/Package.internal.165.cjs +0 -1224
  1038. package/vendor/Package.internal.165.mjs +0 -1214
  1039. package/vendor/Package.internal.166.cjs +0 -90
  1040. package/vendor/Package.internal.166.mjs +0 -98
  1041. package/vendor/Package.internal.167.cjs +0 -4
  1042. package/vendor/Package.internal.167.mjs +0 -2
  1043. package/vendor/Package.internal.168.cjs +0 -4
  1044. package/vendor/Package.internal.168.mjs +0 -2
  1045. package/vendor/Package.internal.169.cjs +0 -55
  1046. package/vendor/Package.internal.169.mjs +0 -55
  1047. package/vendor/Package.internal.170.cjs +0 -10
  1048. package/vendor/Package.internal.170.mjs +0 -10
  1049. package/vendor/Package.internal.171.cjs +0 -12
  1050. package/vendor/Package.internal.171.mjs +0 -6
  1051. package/vendor/Package.internal.172.cjs +0 -165
  1052. package/vendor/Package.internal.172.mjs +0 -163
  1053. package/vendor/Package.internal.173.cjs +0 -23
  1054. package/vendor/Package.internal.173.mjs +0 -15
  1055. package/vendor/Package.internal.174.cjs +0 -251
  1056. package/vendor/Package.internal.174.mjs +0 -249
  1057. package/vendor/Package.internal.175.cjs +0 -949
  1058. package/vendor/Package.internal.175.mjs +0 -947
  1059. package/vendor/Package.internal.176.cjs +0 -27
  1060. package/vendor/Package.internal.176.mjs +0 -27
  1061. package/vendor/Package.internal.177.cjs +0 -80
  1062. package/vendor/Package.internal.177.mjs +0 -72
  1063. package/vendor/Package.internal.178.cjs +0 -655
  1064. package/vendor/Package.internal.178.mjs +0 -653
  1065. package/vendor/Package.internal.179.cjs +0 -77
  1066. package/vendor/Package.internal.179.mjs +0 -75
  1067. package/vendor/Package.internal.181.cjs +0 -70
  1068. package/vendor/Package.internal.181.mjs +0 -68
  1069. package/vendor/Package.internal.182.cjs +0 -112
  1070. package/vendor/Package.internal.182.mjs +0 -110
  1071. package/vendor/Package.internal.183.cjs +0 -102
  1072. package/vendor/Package.internal.183.mjs +0 -100
  1073. package/vendor/Package.internal.184.cjs +0 -45450
  1074. package/vendor/Package.internal.184.mjs +0 -45432
  1075. package/vendor/Package.internal.185.cjs +0 -8
  1076. package/vendor/Package.internal.185.mjs +0 -6
  1077. package/vendor/Package.internal.186.cjs +0 -30
  1078. package/vendor/Package.internal.186.mjs +0 -28
  1079. package/vendor/Package.internal.187.cjs +0 -317
  1080. package/vendor/Package.internal.187.mjs +0 -315
  1081. package/vendor/Package.internal.188.cjs +0 -943
  1082. package/vendor/Package.internal.188.mjs +0 -951
  1083. package/vendor/Package.internal.189.cjs +0 -1090
  1084. package/vendor/Package.internal.189.mjs +0 -1090
  1085. package/vendor/Package.internal.190.cjs +0 -165
  1086. package/vendor/Package.internal.190.mjs +0 -165
  1087. package/vendor/Package.internal.191.cjs +0 -15
  1088. package/vendor/Package.internal.191.mjs +0 -13
  1089. package/vendor/Package.internal.192.cjs +0 -14
  1090. package/vendor/Package.internal.192.mjs +0 -12
  1091. package/vendor/Package.internal.193.cjs +0 -49
  1092. package/vendor/Package.internal.193.mjs +0 -47
  1093. package/vendor/Package.internal.194.cjs +0 -493
  1094. package/vendor/Package.internal.194.mjs +0 -471
  1095. package/vendor/Package.internal.195.cjs +0 -4
  1096. package/vendor/Package.internal.195.mjs +0 -2
  1097. package/vendor/Package.internal.196.cjs +0 -4
  1098. package/vendor/Package.internal.196.mjs +0 -2
  1099. package/vendor/Package.internal.197.cjs +0 -4
  1100. package/vendor/Package.internal.197.mjs +0 -2
  1101. package/vendor/Package.internal.198.cjs +0 -4
  1102. package/vendor/Package.internal.198.mjs +0 -2
  1103. package/vendor/Package.internal.199.cjs +0 -4
  1104. package/vendor/Package.internal.199.mjs +0 -2
  1105. package/vendor/Package.internal.200.cjs +0 -4
  1106. package/vendor/Package.internal.200.mjs +0 -2
  1107. package/vendor/Package.internal.201.cjs +0 -4
  1108. package/vendor/Package.internal.201.mjs +0 -2
  1109. package/vendor/Package.internal.202.cjs +0 -4
  1110. package/vendor/Package.internal.202.mjs +0 -2
  1111. package/vendor/Package.internal.60.cjs +0 -27
  1112. package/vendor/Package.internal.60.mjs +0 -27
  1113. package/vendor/Package.internal.61.cjs +0 -4
  1114. package/vendor/Package.internal.61.mjs +0 -2
  1115. package/vendor/Package.internal.62.cjs +0 -200
  1116. package/vendor/Package.internal.62.mjs +0 -200
  1117. package/vendor/Package.internal.63.cjs +0 -4019
  1118. package/vendor/Package.internal.63.mjs +0 -4027
  1119. package/vendor/Package.internal.64.cjs +0 -4
  1120. package/vendor/Package.internal.64.mjs +0 -2
  1121. package/vendor/Package.internal.65.cjs +0 -321
  1122. package/vendor/Package.internal.65.mjs +0 -321
  1123. package/vendor/Package.internal.66.cjs +0 -365
  1124. package/vendor/Package.internal.66.mjs +0 -363
  1125. package/vendor/Package.internal.67.cjs +0 -403
  1126. package/vendor/Package.internal.67.mjs +0 -395
  1127. package/vendor/Package.internal.68.cjs +0 -127
  1128. package/vendor/Package.internal.68.mjs +0 -125
  1129. package/vendor/Package.internal.69.cjs +0 -31
  1130. package/vendor/Package.internal.69.mjs +0 -29
  1131. package/vendor/Package.internal.70.cjs +0 -87
  1132. package/vendor/Package.internal.70.mjs +0 -85
  1133. package/vendor/Package.internal.71.cjs +0 -61
  1134. package/vendor/Package.internal.71.mjs +0 -59
  1135. package/vendor/Package.internal.72.cjs +0 -34
  1136. package/vendor/Package.internal.72.mjs +0 -32
  1137. package/vendor/Package.internal.73.cjs +0 -4
  1138. package/vendor/Package.internal.73.mjs +0 -2
  1139. package/vendor/Package.internal.74.cjs +0 -684
  1140. package/vendor/Package.internal.74.mjs +0 -662
  1141. package/vendor/Package.internal.75.cjs +0 -13896
  1142. package/vendor/Package.internal.75.mjs +0 -13870
  1143. package/vendor/Package.internal.76.cjs +0 -37
  1144. package/vendor/Package.internal.76.mjs +0 -31
  1145. package/vendor/Package.internal.77.cjs +0 -4077
  1146. package/vendor/Package.internal.77.mjs +0 -4077
  1147. package/vendor/Package.internal.78.cjs +0 -1664
  1148. package/vendor/Package.internal.78.mjs +0 -1664
  1149. package/vendor/Package.internal.79.cjs +0 -259
  1150. package/vendor/Package.internal.79.mjs +0 -257
  1151. package/vendor/Package.internal.80.cjs +0 -4964
  1152. package/vendor/Package.internal.80.mjs +0 -4948
  1153. package/vendor/Package.internal.81.cjs +0 -1239
  1154. package/vendor/Package.internal.81.mjs +0 -1225
  1155. package/vendor/Package.internal.82.cjs +0 -340
  1156. package/vendor/Package.internal.82.mjs +0 -326
  1157. package/vendor/Package.internal.83.cjs +0 -34
  1158. package/vendor/Package.internal.83.mjs +0 -32
  1159. package/vendor/Package.internal.84.cjs +0 -88
  1160. package/vendor/Package.internal.84.mjs +0 -88
  1161. package/vendor/Package.internal.85.cjs +0 -55
  1162. package/vendor/Package.internal.85.mjs +0 -55
  1163. package/vendor/Package.internal.86.cjs +0 -15
  1164. package/vendor/Package.internal.86.mjs +0 -13
  1165. package/vendor/Package.internal.87.cjs +0 -1355
  1166. package/vendor/Package.internal.87.mjs +0 -1355
  1167. package/vendor/Package.internal.88.cjs +0 -12
  1168. package/vendor/Package.internal.88.mjs +0 -6
  1169. package/vendor/Package.internal.89.cjs +0 -4
  1170. package/vendor/Package.internal.89.mjs +0 -2
  1171. package/vendor/Package.internal.90.cjs +0 -351
  1172. package/vendor/Package.internal.90.mjs +0 -351
  1173. package/vendor/Package.internal.91.cjs +0 -80
  1174. package/vendor/Package.internal.91.mjs +0 -80
  1175. package/vendor/Package.internal.92.cjs +0 -1445
  1176. package/vendor/Package.internal.92.mjs +0 -1433
  1177. package/vendor/Package.internal.93.cjs +0 -144
  1178. package/vendor/Package.internal.93.mjs +0 -142
  1179. package/vendor/Package.internal.94.cjs +0 -1822
  1180. package/vendor/Package.internal.94.mjs +0 -1814
  1181. package/vendor/Package.internal.95.cjs +0 -130
  1182. package/vendor/Package.internal.95.mjs +0 -124
  1183. package/vendor/Package.internal.96.cjs +0 -208
  1184. package/vendor/Package.internal.96.mjs +0 -208
  1185. package/vendor/Package.internal.97.cjs +0 -1641
  1186. package/vendor/Package.internal.97.mjs +0 -1641
  1187. package/vendor/Package.internal.98.cjs +0 -74
  1188. package/vendor/Package.internal.98.mjs +0 -74
  1189. package/vendor/Package.internal.99.cjs +0 -28
  1190. package/vendor/Package.internal.99.mjs +0 -28
@@ -1,1814 +0,0 @@
1
- /* Build Date: Mon Nov 24 2025 18:02:01 GMT+0800 (China Standard Time) */
2
- import t from "util";
3
-
4
- import { b as e } from "./Package.internal.45.mjs";
5
-
6
- import n from "path";
7
-
8
- var u = {};
9
-
10
- const o = n;
11
-
12
- const r = "\\\\/";
13
-
14
- const s = `[^${r}]`;
15
-
16
- const a = "\\.";
17
-
18
- const i = "\\+";
19
-
20
- const c = "\\?";
21
-
22
- const l = "\\/";
23
-
24
- const p = "(?=.)";
25
-
26
- const f = "[^/]";
27
-
28
- const A = `(?:${l}|$)`;
29
-
30
- const R = `(?:^|${l})`;
31
-
32
- const h = `${a}{1,2}${A}`;
33
-
34
- const _ = `(?!${a})`;
35
-
36
- const E = `(?!${R}${h})`;
37
-
38
- const g = `(?!${a}{0,1}${A})`;
39
-
40
- const b = `(?!${h})`;
41
-
42
- const y = `[^.${l}]`;
43
-
44
- const S = `${f}*?`;
45
-
46
- const $ = {
47
- DOT_LITERAL: a,
48
- PLUS_LITERAL: i,
49
- QMARK_LITERAL: c,
50
- SLASH_LITERAL: l,
51
- ONE_CHAR: p,
52
- QMARK: f,
53
- END_ANCHOR: A,
54
- DOTS_SLASH: h,
55
- NO_DOT: _,
56
- NO_DOTS: E,
57
- NO_DOT_SLASH: g,
58
- NO_DOTS_SLASH: b,
59
- QMARK_NO_DOT: y,
60
- STAR: S,
61
- START_ANCHOR: R
62
- };
63
-
64
- const C = {
65
- ...$,
66
- SLASH_LITERAL: `[${r}]`,
67
- QMARK: s,
68
- STAR: `${s}*?`,
69
- DOTS_SLASH: `${a}{1,2}(?:[${r}]|$)`,
70
- NO_DOT: `(?!${a})`,
71
- NO_DOTS: `(?!(?:^|[${r}])${a}{1,2}(?:[${r}]|$))`,
72
- NO_DOT_SLASH: `(?!${a}{0,1}(?:[${r}]|$))`,
73
- NO_DOTS_SLASH: `(?!${a}{1,2}(?:[${r}]|$))`,
74
- QMARK_NO_DOT: `[^.${r}]`,
75
- START_ANCHOR: `(?:^|[${r}])`,
76
- END_ANCHOR: `(?:[${r}]|$)`
77
- };
78
-
79
- const x = {
80
- alnum: "a-zA-Z0-9",
81
- alpha: "a-zA-Z",
82
- ascii: "\\x00-\\x7F",
83
- blank: " \\t",
84
- cntrl: "\\x00-\\x1F\\x7F",
85
- digit: "0-9",
86
- graph: "\\x21-\\x7E",
87
- lower: "a-z",
88
- print: "\\x20-\\x7E ",
89
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
90
- space: " \\t\\r\\n\\v\\f",
91
- upper: "A-Z",
92
- word: "A-Za-z0-9_",
93
- xdigit: "A-Fa-f0-9"
94
- };
95
-
96
- var d = {
97
- MAX_LENGTH: 1024 * 64,
98
- POSIX_REGEX_SOURCE: x,
99
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
100
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
101
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
102
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
103
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
104
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
105
- REPLACEMENTS: {
106
- "***": "*",
107
- "**/**": "**",
108
- "**/**/**": "**"
109
- },
110
- CHAR_0: 48,
111
- CHAR_9: 57,
112
- CHAR_UPPERCASE_A: 65,
113
- CHAR_LOWERCASE_A: 97,
114
- CHAR_UPPERCASE_Z: 90,
115
- CHAR_LOWERCASE_Z: 122,
116
- CHAR_LEFT_PARENTHESES: 40,
117
- CHAR_RIGHT_PARENTHESES: 41,
118
- CHAR_ASTERISK: 42,
119
- CHAR_AMPERSAND: 38,
120
- CHAR_AT: 64,
121
- CHAR_BACKWARD_SLASH: 92,
122
- CHAR_CARRIAGE_RETURN: 13,
123
- CHAR_CIRCUMFLEX_ACCENT: 94,
124
- CHAR_COLON: 58,
125
- CHAR_COMMA: 44,
126
- CHAR_DOT: 46,
127
- CHAR_DOUBLE_QUOTE: 34,
128
- CHAR_EQUAL: 61,
129
- CHAR_EXCLAMATION_MARK: 33,
130
- CHAR_FORM_FEED: 12,
131
- CHAR_FORWARD_SLASH: 47,
132
- CHAR_GRAVE_ACCENT: 96,
133
- CHAR_HASH: 35,
134
- CHAR_HYPHEN_MINUS: 45,
135
- CHAR_LEFT_ANGLE_BRACKET: 60,
136
- CHAR_LEFT_CURLY_BRACE: 123,
137
- CHAR_LEFT_SQUARE_BRACKET: 91,
138
- CHAR_LINE_FEED: 10,
139
- CHAR_NO_BREAK_SPACE: 160,
140
- CHAR_PERCENT: 37,
141
- CHAR_PLUS: 43,
142
- CHAR_QUESTION_MARK: 63,
143
- CHAR_RIGHT_ANGLE_BRACKET: 62,
144
- CHAR_RIGHT_CURLY_BRACE: 125,
145
- CHAR_RIGHT_SQUARE_BRACKET: 93,
146
- CHAR_SEMICOLON: 59,
147
- CHAR_SINGLE_QUOTE: 39,
148
- CHAR_SPACE: 32,
149
- CHAR_TAB: 9,
150
- CHAR_UNDERSCORE: 95,
151
- CHAR_VERTICAL_LINE: 124,
152
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
153
- SEP: o.sep,
154
- extglobChars(t) {
155
- return {
156
- "!": {
157
- type: "negate",
158
- open: "(?:(?!(?:",
159
- close: `))${t.STAR})`
160
- },
161
- "?": {
162
- type: "qmark",
163
- open: "(?:",
164
- close: ")?"
165
- },
166
- "+": {
167
- type: "plus",
168
- open: "(?:",
169
- close: ")+"
170
- },
171
- "*": {
172
- type: "star",
173
- open: "(?:",
174
- close: ")*"
175
- },
176
- "@": {
177
- type: "at",
178
- open: "(?:",
179
- close: ")"
180
- }
181
- };
182
- },
183
- globChars(t) {
184
- return t === true ? C : $;
185
- }
186
- };
187
-
188
- (function(t) {
189
- const e = n;
190
- const u = process.platform === "win32";
191
- const {REGEX_BACKSLASH: o, REGEX_REMOVE_BACKSLASH: r, REGEX_SPECIAL_CHARS: s, REGEX_SPECIAL_CHARS_GLOBAL: a} = d;
192
- t.isObject = t => t !== null && typeof t === "object" && !Array.isArray(t);
193
- t.hasRegexChars = t => s.test(t);
194
- t.isRegexChar = e => e.length === 1 && t.hasRegexChars(e);
195
- t.escapeRegex = t => t.replace(a, "\\$1");
196
- t.toPosixSlashes = t => t.replace(o, "/");
197
- t.removeBackslashes = t => t.replace(r, t => t === "\\" ? "" : t);
198
- t.supportsLookbehinds = () => {
199
- const t = process.version.slice(1).split(".").map(Number);
200
- if (t.length === 3 && t[0] >= 9 || t[0] === 8 && t[1] >= 10) {
201
- return true;
202
- }
203
- return false;
204
- };
205
- t.isWindows = t => {
206
- if (t && typeof t.windows === "boolean") {
207
- return t.windows;
208
- }
209
- return u === true || e.sep === "\\";
210
- };
211
- t.escapeLast = (e, n, u) => {
212
- const o = e.lastIndexOf(n, u);
213
- if (o === -1) return e;
214
- if (e[o - 1] === "\\") return t.escapeLast(e, n, o - 1);
215
- return `${e.slice(0, o)}\\${e.slice(o)}`;
216
- };
217
- t.removePrefix = (t, e = {}) => {
218
- let n = t;
219
- if (n.startsWith("./")) {
220
- n = n.slice(2);
221
- e.prefix = "./";
222
- }
223
- return n;
224
- };
225
- t.wrapOutput = (t, e = {}, n = {}) => {
226
- const u = n.contains ? "" : "^";
227
- const o = n.contains ? "" : "$";
228
- let r = `${u}(?:${t})${o}`;
229
- if (e.negated === true) {
230
- r = `(?:^(?!${r}).*$)`;
231
- }
232
- return r;
233
- };
234
- })(u);
235
-
236
- const v = u;
237
-
238
- const {CHAR_ASTERISK: H, CHAR_AT: T, CHAR_BACKWARD_SLASH: L, CHAR_COMMA: O, CHAR_DOT: k, CHAR_EXCLAMATION_MARK: m, CHAR_FORWARD_SLASH: w, CHAR_LEFT_CURLY_BRACE: N, CHAR_LEFT_PARENTHESES: I, CHAR_LEFT_SQUARE_BRACKET: B, CHAR_PLUS: M, CHAR_QUESTION_MARK: G, CHAR_RIGHT_CURLY_BRACE: D, CHAR_RIGHT_PARENTHESES: P, CHAR_RIGHT_SQUARE_BRACKET: K} = d;
239
-
240
- const U = t => t === w || t === L;
241
-
242
- const X = t => {
243
- if (t.isPrefix !== true) {
244
- t.depth = t.isGlobstar ? Infinity : 1;
245
- }
246
- };
247
-
248
- const F = (t, e) => {
249
- const n = e || {};
250
- const u = t.length - 1;
251
- const o = n.parts === true || n.scanToEnd === true;
252
- const r = [];
253
- const s = [];
254
- const a = [];
255
- let i = t;
256
- let c = -1;
257
- let l = 0;
258
- let p = 0;
259
- let f = false;
260
- let A = false;
261
- let R = false;
262
- let h = false;
263
- let _ = false;
264
- let E = false;
265
- let g = false;
266
- let b = false;
267
- let y = false;
268
- let S = false;
269
- let $ = 0;
270
- let C;
271
- let x;
272
- let d = {
273
- value: "",
274
- depth: 0,
275
- isGlob: false
276
- };
277
- const F = () => c >= u;
278
- const Q = () => i.charCodeAt(c + 1);
279
- const W = () => {
280
- C = x;
281
- return i.charCodeAt(++c);
282
- };
283
- while (c < u) {
284
- x = W();
285
- let t;
286
- if (x === L) {
287
- g = d.backslashes = true;
288
- x = W();
289
- if (x === N) {
290
- E = true;
291
- }
292
- continue;
293
- }
294
- if (E === true || x === N) {
295
- $++;
296
- while (F() !== true && (x = W())) {
297
- if (x === L) {
298
- g = d.backslashes = true;
299
- W();
300
- continue;
301
- }
302
- if (x === N) {
303
- $++;
304
- continue;
305
- }
306
- if (E !== true && x === k && (x = W()) === k) {
307
- f = d.isBrace = true;
308
- R = d.isGlob = true;
309
- S = true;
310
- if (o === true) {
311
- continue;
312
- }
313
- break;
314
- }
315
- if (E !== true && x === O) {
316
- f = d.isBrace = true;
317
- R = d.isGlob = true;
318
- S = true;
319
- if (o === true) {
320
- continue;
321
- }
322
- break;
323
- }
324
- if (x === D) {
325
- $--;
326
- if ($ === 0) {
327
- E = false;
328
- f = d.isBrace = true;
329
- S = true;
330
- break;
331
- }
332
- }
333
- }
334
- if (o === true) {
335
- continue;
336
- }
337
- break;
338
- }
339
- if (x === w) {
340
- r.push(c);
341
- s.push(d);
342
- d = {
343
- value: "",
344
- depth: 0,
345
- isGlob: false
346
- };
347
- if (S === true) continue;
348
- if (C === k && c === l + 1) {
349
- l += 2;
350
- continue;
351
- }
352
- p = c + 1;
353
- continue;
354
- }
355
- if (n.noext !== true) {
356
- const t = x === M || x === T || x === H || x === G || x === m;
357
- if (t === true && Q() === I) {
358
- R = d.isGlob = true;
359
- h = d.isExtglob = true;
360
- S = true;
361
- if (x === m && c === l) {
362
- y = true;
363
- }
364
- if (o === true) {
365
- while (F() !== true && (x = W())) {
366
- if (x === L) {
367
- g = d.backslashes = true;
368
- x = W();
369
- continue;
370
- }
371
- if (x === P) {
372
- R = d.isGlob = true;
373
- S = true;
374
- break;
375
- }
376
- }
377
- continue;
378
- }
379
- break;
380
- }
381
- }
382
- if (x === H) {
383
- if (C === H) _ = d.isGlobstar = true;
384
- R = d.isGlob = true;
385
- S = true;
386
- if (o === true) {
387
- continue;
388
- }
389
- break;
390
- }
391
- if (x === G) {
392
- R = d.isGlob = true;
393
- S = true;
394
- if (o === true) {
395
- continue;
396
- }
397
- break;
398
- }
399
- if (x === B) {
400
- while (F() !== true && (t = W())) {
401
- if (t === L) {
402
- g = d.backslashes = true;
403
- W();
404
- continue;
405
- }
406
- if (t === K) {
407
- A = d.isBracket = true;
408
- R = d.isGlob = true;
409
- S = true;
410
- break;
411
- }
412
- }
413
- if (o === true) {
414
- continue;
415
- }
416
- break;
417
- }
418
- if (n.nonegate !== true && x === m && c === l) {
419
- b = d.negated = true;
420
- l++;
421
- continue;
422
- }
423
- if (n.noparen !== true && x === I) {
424
- R = d.isGlob = true;
425
- if (o === true) {
426
- while (F() !== true && (x = W())) {
427
- if (x === I) {
428
- g = d.backslashes = true;
429
- x = W();
430
- continue;
431
- }
432
- if (x === P) {
433
- S = true;
434
- break;
435
- }
436
- }
437
- continue;
438
- }
439
- break;
440
- }
441
- if (R === true) {
442
- S = true;
443
- if (o === true) {
444
- continue;
445
- }
446
- break;
447
- }
448
- }
449
- if (n.noext === true) {
450
- h = false;
451
- R = false;
452
- }
453
- let j = i;
454
- let q = "";
455
- let Z = "";
456
- if (l > 0) {
457
- q = i.slice(0, l);
458
- i = i.slice(l);
459
- p -= l;
460
- }
461
- if (j && R === true && p > 0) {
462
- j = i.slice(0, p);
463
- Z = i.slice(p);
464
- } else if (R === true) {
465
- j = "";
466
- Z = i;
467
- } else {
468
- j = i;
469
- }
470
- if (j && j !== "" && j !== "/" && j !== i) {
471
- if (U(j.charCodeAt(j.length - 1))) {
472
- j = j.slice(0, -1);
473
- }
474
- }
475
- if (n.unescape === true) {
476
- if (Z) Z = v.removeBackslashes(Z);
477
- if (j && g === true) {
478
- j = v.removeBackslashes(j);
479
- }
480
- }
481
- const Y = {
482
- prefix: q,
483
- input: t,
484
- start: l,
485
- base: j,
486
- glob: Z,
487
- isBrace: f,
488
- isBracket: A,
489
- isGlob: R,
490
- isExtglob: h,
491
- isGlobstar: _,
492
- negated: b,
493
- negatedExtglob: y
494
- };
495
- if (n.tokens === true) {
496
- Y.maxDepth = 0;
497
- if (!U(x)) {
498
- s.push(d);
499
- }
500
- Y.tokens = s;
501
- }
502
- if (n.parts === true || n.tokens === true) {
503
- let e;
504
- for (let u = 0; u < r.length; u++) {
505
- const o = e ? e + 1 : l;
506
- const i = r[u];
507
- const c = t.slice(o, i);
508
- if (n.tokens) {
509
- if (u === 0 && l !== 0) {
510
- s[u].isPrefix = true;
511
- s[u].value = q;
512
- } else {
513
- s[u].value = c;
514
- }
515
- X(s[u]);
516
- Y.maxDepth += s[u].depth;
517
- }
518
- if (u !== 0 || c !== "") {
519
- a.push(c);
520
- }
521
- e = i;
522
- }
523
- if (e && e + 1 < t.length) {
524
- const u = t.slice(e + 1);
525
- a.push(u);
526
- if (n.tokens) {
527
- s[s.length - 1].value = u;
528
- X(s[s.length - 1]);
529
- Y.maxDepth += s[s.length - 1].depth;
530
- }
531
- }
532
- Y.slashes = r;
533
- Y.parts = a;
534
- }
535
- return Y;
536
- };
537
-
538
- var Q = F;
539
-
540
- const W = d;
541
-
542
- const j = u;
543
-
544
- const {MAX_LENGTH: q, POSIX_REGEX_SOURCE: Z, REGEX_NON_SPECIAL_CHARS: Y, REGEX_SPECIAL_CHARS_BACKREF: z, REPLACEMENTS: V} = W;
545
-
546
- const J = (t, e) => {
547
- if (typeof e.expandRange === "function") {
548
- return e.expandRange(...t, e);
549
- }
550
- t.sort();
551
- const n = `[${t.join("-")}]`;
552
- try {
553
- new RegExp(n);
554
- } catch (e) {
555
- return t.map(t => j.escapeRegex(t)).join("..");
556
- }
557
- return n;
558
- };
559
-
560
- const tt = (t, e) => `Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;
561
-
562
- const et = (t, e) => {
563
- if (typeof t !== "string") {
564
- throw new TypeError("Expected a string");
565
- }
566
- t = V[t] || t;
567
- const n = {
568
- ...e
569
- };
570
- const u = typeof n.maxLength === "number" ? Math.min(q, n.maxLength) : q;
571
- let o = t.length;
572
- if (o > u) {
573
- throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${u}`);
574
- }
575
- const r = {
576
- type: "bos",
577
- value: "",
578
- output: n.prepend || ""
579
- };
580
- const s = [ r ];
581
- const a = n.capture ? "" : "?:";
582
- const i = j.isWindows(e);
583
- const c = W.globChars(i);
584
- const l = W.extglobChars(c);
585
- const {DOT_LITERAL: p, PLUS_LITERAL: f, SLASH_LITERAL: A, ONE_CHAR: R, DOTS_SLASH: h, NO_DOT: _, NO_DOT_SLASH: E, NO_DOTS_SLASH: g, QMARK: b, QMARK_NO_DOT: y, STAR: S, START_ANCHOR: $} = c;
586
- const C = t => `(${a}(?:(?!${$}${t.dot ? h : p}).)*?)`;
587
- const x = n.dot ? "" : _;
588
- const d = n.dot ? b : y;
589
- let v = n.bash === true ? C(n) : S;
590
- if (n.capture) {
591
- v = `(${v})`;
592
- }
593
- if (typeof n.noext === "boolean") {
594
- n.noextglob = n.noext;
595
- }
596
- const H = {
597
- input: t,
598
- index: -1,
599
- start: 0,
600
- dot: n.dot === true,
601
- consumed: "",
602
- output: "",
603
- prefix: "",
604
- backtrack: false,
605
- negated: false,
606
- brackets: 0,
607
- braces: 0,
608
- parens: 0,
609
- quotes: 0,
610
- globstar: false,
611
- tokens: s
612
- };
613
- t = j.removePrefix(t, H);
614
- o = t.length;
615
- const T = [];
616
- const L = [];
617
- const O = [];
618
- let k = r;
619
- let m;
620
- const w = () => H.index === o - 1;
621
- const N = H.peek = (e = 1) => t[H.index + e];
622
- const I = H.advance = () => t[++H.index] || "";
623
- const B = () => t.slice(H.index + 1);
624
- const M = (t = "", e = 0) => {
625
- H.consumed += t;
626
- H.index += e;
627
- };
628
- const G = t => {
629
- H.output += t.output != null ? t.output : t.value;
630
- M(t.value);
631
- };
632
- const D = () => {
633
- let t = 1;
634
- while (N() === "!" && (N(2) !== "(" || N(3) === "?")) {
635
- I();
636
- H.start++;
637
- t++;
638
- }
639
- if (t % 2 === 0) {
640
- return false;
641
- }
642
- H.negated = true;
643
- H.start++;
644
- return true;
645
- };
646
- const P = t => {
647
- H[t]++;
648
- O.push(t);
649
- };
650
- const K = t => {
651
- H[t]--;
652
- O.pop();
653
- };
654
- const U = t => {
655
- if (k.type === "globstar") {
656
- const e = H.braces > 0 && (t.type === "comma" || t.type === "brace");
657
- const n = t.extglob === true || T.length && (t.type === "pipe" || t.type === "paren");
658
- if (t.type !== "slash" && t.type !== "paren" && !e && !n) {
659
- H.output = H.output.slice(0, -k.output.length);
660
- k.type = "star";
661
- k.value = "*";
662
- k.output = v;
663
- H.output += k.output;
664
- }
665
- }
666
- if (T.length && t.type !== "paren") {
667
- T[T.length - 1].inner += t.value;
668
- }
669
- if (t.value || t.output) G(t);
670
- if (k && k.type === "text" && t.type === "text") {
671
- k.value += t.value;
672
- k.output = (k.output || "") + t.value;
673
- return;
674
- }
675
- t.prev = k;
676
- s.push(t);
677
- k = t;
678
- };
679
- const X = (t, e) => {
680
- const u = {
681
- ...l[e],
682
- conditions: 1,
683
- inner: ""
684
- };
685
- u.prev = k;
686
- u.parens = H.parens;
687
- u.output = H.output;
688
- const o = (n.capture ? "(" : "") + u.open;
689
- P("parens");
690
- U({
691
- type: t,
692
- value: e,
693
- output: H.output ? "" : R
694
- });
695
- U({
696
- type: "paren",
697
- extglob: true,
698
- value: I(),
699
- output: o
700
- });
701
- T.push(u);
702
- };
703
- const F = t => {
704
- let u = t.close + (n.capture ? ")" : "");
705
- let o;
706
- if (t.type === "negate") {
707
- let r = v;
708
- if (t.inner && t.inner.length > 1 && t.inner.includes("/")) {
709
- r = C(n);
710
- }
711
- if (r !== v || w() || /^\)+$/.test(B())) {
712
- u = t.close = `)$))${r}`;
713
- }
714
- if (t.inner.includes("*") && (o = B()) && /^\.[^\\/.]+$/.test(o)) {
715
- const n = et(o, {
716
- ...e,
717
- fastpaths: false
718
- }).output;
719
- u = t.close = `)${n})${r})`;
720
- }
721
- if (t.prev.type === "bos") {
722
- H.negatedExtglob = true;
723
- }
724
- }
725
- U({
726
- type: "paren",
727
- extglob: true,
728
- value: m,
729
- output: u
730
- });
731
- K("parens");
732
- };
733
- if (n.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(t)) {
734
- let u = false;
735
- let o = t.replace(z, (t, e, n, o, r, s) => {
736
- if (o === "\\") {
737
- u = true;
738
- return t;
739
- }
740
- if (o === "?") {
741
- if (e) {
742
- return e + o + (r ? b.repeat(r.length) : "");
743
- }
744
- if (s === 0) {
745
- return d + (r ? b.repeat(r.length) : "");
746
- }
747
- return b.repeat(n.length);
748
- }
749
- if (o === ".") {
750
- return p.repeat(n.length);
751
- }
752
- if (o === "*") {
753
- if (e) {
754
- return e + o + (r ? v : "");
755
- }
756
- return v;
757
- }
758
- return e ? t : `\\${t}`;
759
- });
760
- if (u === true) {
761
- if (n.unescape === true) {
762
- o = o.replace(/\\/g, "");
763
- } else {
764
- o = o.replace(/\\+/g, t => t.length % 2 === 0 ? "\\\\" : t ? "\\" : "");
765
- }
766
- }
767
- if (o === t && n.contains === true) {
768
- H.output = t;
769
- return H;
770
- }
771
- H.output = j.wrapOutput(o, H, e);
772
- return H;
773
- }
774
- while (!w()) {
775
- m = I();
776
- if (m === "\0") {
777
- continue;
778
- }
779
- if (m === "\\") {
780
- const t = N();
781
- if (t === "/" && n.bash !== true) {
782
- continue;
783
- }
784
- if (t === "." || t === ";") {
785
- continue;
786
- }
787
- if (!t) {
788
- m += "\\";
789
- U({
790
- type: "text",
791
- value: m
792
- });
793
- continue;
794
- }
795
- const e = /^\\+/.exec(B());
796
- let u = 0;
797
- if (e && e[0].length > 2) {
798
- u = e[0].length;
799
- H.index += u;
800
- if (u % 2 !== 0) {
801
- m += "\\";
802
- }
803
- }
804
- if (n.unescape === true) {
805
- m = I();
806
- } else {
807
- m += I();
808
- }
809
- if (H.brackets === 0) {
810
- U({
811
- type: "text",
812
- value: m
813
- });
814
- continue;
815
- }
816
- }
817
- if (H.brackets > 0 && (m !== "]" || k.value === "[" || k.value === "[^")) {
818
- if (n.posix !== false && m === ":") {
819
- const t = k.value.slice(1);
820
- if (t.includes("[")) {
821
- k.posix = true;
822
- if (t.includes(":")) {
823
- const t = k.value.lastIndexOf("[");
824
- const e = k.value.slice(0, t);
825
- const n = k.value.slice(t + 2);
826
- const u = Z[n];
827
- if (u) {
828
- k.value = e + u;
829
- H.backtrack = true;
830
- I();
831
- if (!r.output && s.indexOf(k) === 1) {
832
- r.output = R;
833
- }
834
- continue;
835
- }
836
- }
837
- }
838
- }
839
- if (m === "[" && N() !== ":" || m === "-" && N() === "]") {
840
- m = `\\${m}`;
841
- }
842
- if (m === "]" && (k.value === "[" || k.value === "[^")) {
843
- m = `\\${m}`;
844
- }
845
- if (n.posix === true && m === "!" && k.value === "[") {
846
- m = "^";
847
- }
848
- k.value += m;
849
- G({
850
- value: m
851
- });
852
- continue;
853
- }
854
- if (H.quotes === 1 && m !== '"') {
855
- m = j.escapeRegex(m);
856
- k.value += m;
857
- G({
858
- value: m
859
- });
860
- continue;
861
- }
862
- if (m === '"') {
863
- H.quotes = H.quotes === 1 ? 0 : 1;
864
- if (n.keepQuotes === true) {
865
- U({
866
- type: "text",
867
- value: m
868
- });
869
- }
870
- continue;
871
- }
872
- if (m === "(") {
873
- P("parens");
874
- U({
875
- type: "paren",
876
- value: m
877
- });
878
- continue;
879
- }
880
- if (m === ")") {
881
- if (H.parens === 0 && n.strictBrackets === true) {
882
- throw new SyntaxError(tt("opening", "("));
883
- }
884
- const t = T[T.length - 1];
885
- if (t && H.parens === t.parens + 1) {
886
- F(T.pop());
887
- continue;
888
- }
889
- U({
890
- type: "paren",
891
- value: m,
892
- output: H.parens ? ")" : "\\)"
893
- });
894
- K("parens");
895
- continue;
896
- }
897
- if (m === "[") {
898
- if (n.nobracket === true || !B().includes("]")) {
899
- if (n.nobracket !== true && n.strictBrackets === true) {
900
- throw new SyntaxError(tt("closing", "]"));
901
- }
902
- m = `\\${m}`;
903
- } else {
904
- P("brackets");
905
- }
906
- U({
907
- type: "bracket",
908
- value: m
909
- });
910
- continue;
911
- }
912
- if (m === "]") {
913
- if (n.nobracket === true || k && k.type === "bracket" && k.value.length === 1) {
914
- U({
915
- type: "text",
916
- value: m,
917
- output: `\\${m}`
918
- });
919
- continue;
920
- }
921
- if (H.brackets === 0) {
922
- if (n.strictBrackets === true) {
923
- throw new SyntaxError(tt("opening", "["));
924
- }
925
- U({
926
- type: "text",
927
- value: m,
928
- output: `\\${m}`
929
- });
930
- continue;
931
- }
932
- K("brackets");
933
- const t = k.value.slice(1);
934
- if (k.posix !== true && t[0] === "^" && !t.includes("/")) {
935
- m = `/${m}`;
936
- }
937
- k.value += m;
938
- G({
939
- value: m
940
- });
941
- if (n.literalBrackets === false || j.hasRegexChars(t)) {
942
- continue;
943
- }
944
- const e = j.escapeRegex(k.value);
945
- H.output = H.output.slice(0, -k.value.length);
946
- if (n.literalBrackets === true) {
947
- H.output += e;
948
- k.value = e;
949
- continue;
950
- }
951
- k.value = `(${a}${e}|${k.value})`;
952
- H.output += k.value;
953
- continue;
954
- }
955
- if (m === "{" && n.nobrace !== true) {
956
- P("braces");
957
- const t = {
958
- type: "brace",
959
- value: m,
960
- output: "(",
961
- outputIndex: H.output.length,
962
- tokensIndex: H.tokens.length
963
- };
964
- L.push(t);
965
- U(t);
966
- continue;
967
- }
968
- if (m === "}") {
969
- const t = L[L.length - 1];
970
- if (n.nobrace === true || !t) {
971
- U({
972
- type: "text",
973
- value: m,
974
- output: m
975
- });
976
- continue;
977
- }
978
- let e = ")";
979
- if (t.dots === true) {
980
- const t = s.slice();
981
- const u = [];
982
- for (let e = t.length - 1; e >= 0; e--) {
983
- s.pop();
984
- if (t[e].type === "brace") {
985
- break;
986
- }
987
- if (t[e].type !== "dots") {
988
- u.unshift(t[e].value);
989
- }
990
- }
991
- e = J(u, n);
992
- H.backtrack = true;
993
- }
994
- if (t.comma !== true && t.dots !== true) {
995
- const n = H.output.slice(0, t.outputIndex);
996
- const u = H.tokens.slice(t.tokensIndex);
997
- t.value = t.output = "\\{";
998
- m = e = "\\}";
999
- H.output = n;
1000
- for (const t of u) {
1001
- H.output += t.output || t.value;
1002
- }
1003
- }
1004
- U({
1005
- type: "brace",
1006
- value: m,
1007
- output: e
1008
- });
1009
- K("braces");
1010
- L.pop();
1011
- continue;
1012
- }
1013
- if (m === "|") {
1014
- if (T.length > 0) {
1015
- T[T.length - 1].conditions++;
1016
- }
1017
- U({
1018
- type: "text",
1019
- value: m
1020
- });
1021
- continue;
1022
- }
1023
- if (m === ",") {
1024
- let t = m;
1025
- const e = L[L.length - 1];
1026
- if (e && O[O.length - 1] === "braces") {
1027
- e.comma = true;
1028
- t = "|";
1029
- }
1030
- U({
1031
- type: "comma",
1032
- value: m,
1033
- output: t
1034
- });
1035
- continue;
1036
- }
1037
- if (m === "/") {
1038
- if (k.type === "dot" && H.index === H.start + 1) {
1039
- H.start = H.index + 1;
1040
- H.consumed = "";
1041
- H.output = "";
1042
- s.pop();
1043
- k = r;
1044
- continue;
1045
- }
1046
- U({
1047
- type: "slash",
1048
- value: m,
1049
- output: A
1050
- });
1051
- continue;
1052
- }
1053
- if (m === ".") {
1054
- if (H.braces > 0 && k.type === "dot") {
1055
- if (k.value === ".") k.output = p;
1056
- const t = L[L.length - 1];
1057
- k.type = "dots";
1058
- k.output += m;
1059
- k.value += m;
1060
- t.dots = true;
1061
- continue;
1062
- }
1063
- if (H.braces + H.parens === 0 && k.type !== "bos" && k.type !== "slash") {
1064
- U({
1065
- type: "text",
1066
- value: m,
1067
- output: p
1068
- });
1069
- continue;
1070
- }
1071
- U({
1072
- type: "dot",
1073
- value: m,
1074
- output: p
1075
- });
1076
- continue;
1077
- }
1078
- if (m === "?") {
1079
- const t = k && k.value === "(";
1080
- if (!t && n.noextglob !== true && N() === "(" && N(2) !== "?") {
1081
- X("qmark", m);
1082
- continue;
1083
- }
1084
- if (k && k.type === "paren") {
1085
- const t = N();
1086
- let e = m;
1087
- if (t === "<" && !j.supportsLookbehinds()) {
1088
- throw new Error("Node.js v10 or higher is required for regex lookbehinds");
1089
- }
1090
- if (k.value === "(" && !/[!=<:]/.test(t) || t === "<" && !/<([!=]|\w+>)/.test(B())) {
1091
- e = `\\${m}`;
1092
- }
1093
- U({
1094
- type: "text",
1095
- value: m,
1096
- output: e
1097
- });
1098
- continue;
1099
- }
1100
- if (n.dot !== true && (k.type === "slash" || k.type === "bos")) {
1101
- U({
1102
- type: "qmark",
1103
- value: m,
1104
- output: y
1105
- });
1106
- continue;
1107
- }
1108
- U({
1109
- type: "qmark",
1110
- value: m,
1111
- output: b
1112
- });
1113
- continue;
1114
- }
1115
- if (m === "!") {
1116
- if (n.noextglob !== true && N() === "(") {
1117
- if (N(2) !== "?" || !/[!=<:]/.test(N(3))) {
1118
- X("negate", m);
1119
- continue;
1120
- }
1121
- }
1122
- if (n.nonegate !== true && H.index === 0) {
1123
- D();
1124
- continue;
1125
- }
1126
- }
1127
- if (m === "+") {
1128
- if (n.noextglob !== true && N() === "(" && N(2) !== "?") {
1129
- X("plus", m);
1130
- continue;
1131
- }
1132
- if (k && k.value === "(" || n.regex === false) {
1133
- U({
1134
- type: "plus",
1135
- value: m,
1136
- output: f
1137
- });
1138
- continue;
1139
- }
1140
- if (k && (k.type === "bracket" || k.type === "paren" || k.type === "brace") || H.parens > 0) {
1141
- U({
1142
- type: "plus",
1143
- value: m
1144
- });
1145
- continue;
1146
- }
1147
- U({
1148
- type: "plus",
1149
- value: f
1150
- });
1151
- continue;
1152
- }
1153
- if (m === "@") {
1154
- if (n.noextglob !== true && N() === "(" && N(2) !== "?") {
1155
- U({
1156
- type: "at",
1157
- extglob: true,
1158
- value: m,
1159
- output: ""
1160
- });
1161
- continue;
1162
- }
1163
- U({
1164
- type: "text",
1165
- value: m
1166
- });
1167
- continue;
1168
- }
1169
- if (m !== "*") {
1170
- if (m === "$" || m === "^") {
1171
- m = `\\${m}`;
1172
- }
1173
- const t = Y.exec(B());
1174
- if (t) {
1175
- m += t[0];
1176
- H.index += t[0].length;
1177
- }
1178
- U({
1179
- type: "text",
1180
- value: m
1181
- });
1182
- continue;
1183
- }
1184
- if (k && (k.type === "globstar" || k.star === true)) {
1185
- k.type = "star";
1186
- k.star = true;
1187
- k.value += m;
1188
- k.output = v;
1189
- H.backtrack = true;
1190
- H.globstar = true;
1191
- M(m);
1192
- continue;
1193
- }
1194
- let e = B();
1195
- if (n.noextglob !== true && /^\([^?]/.test(e)) {
1196
- X("star", m);
1197
- continue;
1198
- }
1199
- if (k.type === "star") {
1200
- if (n.noglobstar === true) {
1201
- M(m);
1202
- continue;
1203
- }
1204
- const u = k.prev;
1205
- const o = u.prev;
1206
- const r = u.type === "slash" || u.type === "bos";
1207
- const s = o && (o.type === "star" || o.type === "globstar");
1208
- if (n.bash === true && (!r || e[0] && e[0] !== "/")) {
1209
- U({
1210
- type: "star",
1211
- value: m,
1212
- output: ""
1213
- });
1214
- continue;
1215
- }
1216
- const a = H.braces > 0 && (u.type === "comma" || u.type === "brace");
1217
- const i = T.length && (u.type === "pipe" || u.type === "paren");
1218
- if (!r && u.type !== "paren" && !a && !i) {
1219
- U({
1220
- type: "star",
1221
- value: m,
1222
- output: ""
1223
- });
1224
- continue;
1225
- }
1226
- while (e.slice(0, 3) === "/**") {
1227
- const n = t[H.index + 4];
1228
- if (n && n !== "/") {
1229
- break;
1230
- }
1231
- e = e.slice(3);
1232
- M("/**", 3);
1233
- }
1234
- if (u.type === "bos" && w()) {
1235
- k.type = "globstar";
1236
- k.value += m;
1237
- k.output = C(n);
1238
- H.output = k.output;
1239
- H.globstar = true;
1240
- M(m);
1241
- continue;
1242
- }
1243
- if (u.type === "slash" && u.prev.type !== "bos" && !s && w()) {
1244
- H.output = H.output.slice(0, -(u.output + k.output).length);
1245
- u.output = `(?:${u.output}`;
1246
- k.type = "globstar";
1247
- k.output = C(n) + (n.strictSlashes ? ")" : "|$)");
1248
- k.value += m;
1249
- H.globstar = true;
1250
- H.output += u.output + k.output;
1251
- M(m);
1252
- continue;
1253
- }
1254
- if (u.type === "slash" && u.prev.type !== "bos" && e[0] === "/") {
1255
- const t = e[1] !== void 0 ? "|$" : "";
1256
- H.output = H.output.slice(0, -(u.output + k.output).length);
1257
- u.output = `(?:${u.output}`;
1258
- k.type = "globstar";
1259
- k.output = `${C(n)}${A}|${A}${t})`;
1260
- k.value += m;
1261
- H.output += u.output + k.output;
1262
- H.globstar = true;
1263
- M(m + I());
1264
- U({
1265
- type: "slash",
1266
- value: "/",
1267
- output: ""
1268
- });
1269
- continue;
1270
- }
1271
- if (u.type === "bos" && e[0] === "/") {
1272
- k.type = "globstar";
1273
- k.value += m;
1274
- k.output = `(?:^|${A}|${C(n)}${A})`;
1275
- H.output = k.output;
1276
- H.globstar = true;
1277
- M(m + I());
1278
- U({
1279
- type: "slash",
1280
- value: "/",
1281
- output: ""
1282
- });
1283
- continue;
1284
- }
1285
- H.output = H.output.slice(0, -k.output.length);
1286
- k.type = "globstar";
1287
- k.output = C(n);
1288
- k.value += m;
1289
- H.output += k.output;
1290
- H.globstar = true;
1291
- M(m);
1292
- continue;
1293
- }
1294
- const u = {
1295
- type: "star",
1296
- value: m,
1297
- output: v
1298
- };
1299
- if (n.bash === true) {
1300
- u.output = ".*?";
1301
- if (k.type === "bos" || k.type === "slash") {
1302
- u.output = x + u.output;
1303
- }
1304
- U(u);
1305
- continue;
1306
- }
1307
- if (k && (k.type === "bracket" || k.type === "paren") && n.regex === true) {
1308
- u.output = m;
1309
- U(u);
1310
- continue;
1311
- }
1312
- if (H.index === H.start || k.type === "slash" || k.type === "dot") {
1313
- if (k.type === "dot") {
1314
- H.output += E;
1315
- k.output += E;
1316
- } else if (n.dot === true) {
1317
- H.output += g;
1318
- k.output += g;
1319
- } else {
1320
- H.output += x;
1321
- k.output += x;
1322
- }
1323
- if (N() !== "*") {
1324
- H.output += R;
1325
- k.output += R;
1326
- }
1327
- }
1328
- U(u);
1329
- }
1330
- while (H.brackets > 0) {
1331
- if (n.strictBrackets === true) throw new SyntaxError(tt("closing", "]"));
1332
- H.output = j.escapeLast(H.output, "[");
1333
- K("brackets");
1334
- }
1335
- while (H.parens > 0) {
1336
- if (n.strictBrackets === true) throw new SyntaxError(tt("closing", ")"));
1337
- H.output = j.escapeLast(H.output, "(");
1338
- K("parens");
1339
- }
1340
- while (H.braces > 0) {
1341
- if (n.strictBrackets === true) throw new SyntaxError(tt("closing", "}"));
1342
- H.output = j.escapeLast(H.output, "{");
1343
- K("braces");
1344
- }
1345
- if (n.strictSlashes !== true && (k.type === "star" || k.type === "bracket")) {
1346
- U({
1347
- type: "maybe_slash",
1348
- value: "",
1349
- output: `${A}?`
1350
- });
1351
- }
1352
- if (H.backtrack === true) {
1353
- H.output = "";
1354
- for (const t of H.tokens) {
1355
- H.output += t.output != null ? t.output : t.value;
1356
- if (t.suffix) {
1357
- H.output += t.suffix;
1358
- }
1359
- }
1360
- }
1361
- return H;
1362
- };
1363
-
1364
- et.fastpaths = (t, e) => {
1365
- const n = {
1366
- ...e
1367
- };
1368
- const u = typeof n.maxLength === "number" ? Math.min(q, n.maxLength) : q;
1369
- const o = t.length;
1370
- if (o > u) {
1371
- throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${u}`);
1372
- }
1373
- t = V[t] || t;
1374
- const r = j.isWindows(e);
1375
- const {DOT_LITERAL: s, SLASH_LITERAL: a, ONE_CHAR: i, DOTS_SLASH: c, NO_DOT: l, NO_DOTS: p, NO_DOTS_SLASH: f, STAR: A, START_ANCHOR: R} = W.globChars(r);
1376
- const h = n.dot ? p : l;
1377
- const _ = n.dot ? f : l;
1378
- const E = n.capture ? "" : "?:";
1379
- const g = {
1380
- negated: false,
1381
- prefix: ""
1382
- };
1383
- let b = n.bash === true ? ".*?" : A;
1384
- if (n.capture) {
1385
- b = `(${b})`;
1386
- }
1387
- const y = t => {
1388
- if (t.noglobstar === true) return b;
1389
- return `(${E}(?:(?!${R}${t.dot ? c : s}).)*?)`;
1390
- };
1391
- const S = t => {
1392
- switch (t) {
1393
- case "*":
1394
- return `${h}${i}${b}`;
1395
-
1396
- case ".*":
1397
- return `${s}${i}${b}`;
1398
-
1399
- case "*.*":
1400
- return `${h}${b}${s}${i}${b}`;
1401
-
1402
- case "*/*":
1403
- return `${h}${b}${a}${i}${_}${b}`;
1404
-
1405
- case "**":
1406
- return h + y(n);
1407
-
1408
- case "**/*":
1409
- return `(?:${h}${y(n)}${a})?${_}${i}${b}`;
1410
-
1411
- case "**/*.*":
1412
- return `(?:${h}${y(n)}${a})?${_}${b}${s}${i}${b}`;
1413
-
1414
- case "**/.*":
1415
- return `(?:${h}${y(n)}${a})?${s}${i}${b}`;
1416
-
1417
- default:
1418
- {
1419
- const e = /^(.*?)\.(\w+)$/.exec(t);
1420
- if (!e) return;
1421
- const n = S(e[1]);
1422
- if (!n) return;
1423
- return n + s + e[2];
1424
- }
1425
- }
1426
- };
1427
- const $ = j.removePrefix(t, g);
1428
- let C = S($);
1429
- if (C && n.strictSlashes !== true) {
1430
- C += `${a}?`;
1431
- }
1432
- return C;
1433
- };
1434
-
1435
- var nt = et;
1436
-
1437
- const ut = n;
1438
-
1439
- const ot = Q;
1440
-
1441
- const rt = nt;
1442
-
1443
- const st = u;
1444
-
1445
- const at = d;
1446
-
1447
- const it = t => t && typeof t === "object" && !Array.isArray(t);
1448
-
1449
- const ct = (t, e, n = false) => {
1450
- if (Array.isArray(t)) {
1451
- const u = t.map(t => ct(t, e, n));
1452
- const o = t => {
1453
- for (const e of u) {
1454
- const n = e(t);
1455
- if (n) return n;
1456
- }
1457
- return false;
1458
- };
1459
- return o;
1460
- }
1461
- const u = it(t) && t.tokens && t.input;
1462
- if (t === "" || typeof t !== "string" && !u) {
1463
- throw new TypeError("Expected pattern to be a non-empty string");
1464
- }
1465
- const o = e || {};
1466
- const r = st.isWindows(e);
1467
- const s = u ? ct.compileRe(t, e) : ct.makeRe(t, e, false, true);
1468
- const a = s.state;
1469
- delete s.state;
1470
- let i = () => false;
1471
- if (o.ignore) {
1472
- const t = {
1473
- ...e,
1474
- ignore: null,
1475
- onMatch: null,
1476
- onResult: null
1477
- };
1478
- i = ct(o.ignore, t, n);
1479
- }
1480
- const c = (n, u = false) => {
1481
- const {isMatch: c, match: l, output: p} = ct.test(n, s, e, {
1482
- glob: t,
1483
- posix: r
1484
- });
1485
- const f = {
1486
- glob: t,
1487
- state: a,
1488
- regex: s,
1489
- posix: r,
1490
- input: n,
1491
- output: p,
1492
- match: l,
1493
- isMatch: c
1494
- };
1495
- if (typeof o.onResult === "function") {
1496
- o.onResult(f);
1497
- }
1498
- if (c === false) {
1499
- f.isMatch = false;
1500
- return u ? f : false;
1501
- }
1502
- if (i(n)) {
1503
- if (typeof o.onIgnore === "function") {
1504
- o.onIgnore(f);
1505
- }
1506
- f.isMatch = false;
1507
- return u ? f : false;
1508
- }
1509
- if (typeof o.onMatch === "function") {
1510
- o.onMatch(f);
1511
- }
1512
- return u ? f : true;
1513
- };
1514
- if (n) {
1515
- c.state = a;
1516
- }
1517
- return c;
1518
- };
1519
-
1520
- ct.test = (t, e, n, {glob: u, posix: o} = {}) => {
1521
- if (typeof t !== "string") {
1522
- throw new TypeError("Expected input to be a string");
1523
- }
1524
- if (t === "") {
1525
- return {
1526
- isMatch: false,
1527
- output: ""
1528
- };
1529
- }
1530
- const r = n || {};
1531
- const s = r.format || (o ? st.toPosixSlashes : null);
1532
- let a = t === u;
1533
- let i = a && s ? s(t) : t;
1534
- if (a === false) {
1535
- i = s ? s(t) : t;
1536
- a = i === u;
1537
- }
1538
- if (a === false || r.capture === true) {
1539
- if (r.matchBase === true || r.basename === true) {
1540
- a = ct.matchBase(t, e, n, o);
1541
- } else {
1542
- a = e.exec(i);
1543
- }
1544
- }
1545
- return {
1546
- isMatch: Boolean(a),
1547
- match: a,
1548
- output: i
1549
- };
1550
- };
1551
-
1552
- ct.matchBase = (t, e, n, u = st.isWindows(n)) => {
1553
- const o = e instanceof RegExp ? e : ct.makeRe(e, n);
1554
- return o.test(ut.basename(t));
1555
- };
1556
-
1557
- ct.isMatch = (t, e, n) => ct(e, n)(t);
1558
-
1559
- ct.parse = (t, e) => {
1560
- if (Array.isArray(t)) return t.map(t => ct.parse(t, e));
1561
- return rt(t, {
1562
- ...e,
1563
- fastpaths: false
1564
- });
1565
- };
1566
-
1567
- ct.scan = (t, e) => ot(t, e);
1568
-
1569
- ct.compileRe = (t, e, n = false, u = false) => {
1570
- if (n === true) {
1571
- return t.output;
1572
- }
1573
- const o = e || {};
1574
- const r = o.contains ? "" : "^";
1575
- const s = o.contains ? "" : "$";
1576
- let a = `${r}(?:${t.output})${s}`;
1577
- if (t && t.negated === true) {
1578
- a = `^(?!${a}).*$`;
1579
- }
1580
- const i = ct.toRegex(a, e);
1581
- if (u === true) {
1582
- i.state = t;
1583
- }
1584
- return i;
1585
- };
1586
-
1587
- ct.makeRe = (t, e = {}, n = false, u = false) => {
1588
- if (!t || typeof t !== "string") {
1589
- throw new TypeError("Expected a non-empty string");
1590
- }
1591
- let o = {
1592
- negated: false,
1593
- fastpaths: true
1594
- };
1595
- if (e.fastpaths !== false && (t[0] === "." || t[0] === "*")) {
1596
- o.output = rt.fastpaths(t, e);
1597
- }
1598
- if (!o.output) {
1599
- o = rt(t, e);
1600
- }
1601
- return ct.compileRe(o, e, n, u);
1602
- };
1603
-
1604
- ct.toRegex = (t, e) => {
1605
- try {
1606
- const n = e || {};
1607
- return new RegExp(t, n.flags || (n.nocase ? "i" : ""));
1608
- } catch (t) {
1609
- if (e && e.debug === true) throw t;
1610
- return /$^/;
1611
- }
1612
- };
1613
-
1614
- ct.constants = at;
1615
-
1616
- var lt = ct;
1617
-
1618
- var pt = lt;
1619
-
1620
- const ft = t;
1621
-
1622
- const At = e;
1623
-
1624
- const Rt = pt;
1625
-
1626
- const ht = u;
1627
-
1628
- const _t = t => t === "" || t === "./";
1629
-
1630
- const Et = t => {
1631
- const e = t.indexOf("{");
1632
- return e > -1 && t.indexOf("}", e) > -1;
1633
- };
1634
-
1635
- const gt = (t, e, n) => {
1636
- e = [].concat(e);
1637
- t = [].concat(t);
1638
- let u = new Set;
1639
- let o = new Set;
1640
- let r = new Set;
1641
- let s = 0;
1642
- let a = t => {
1643
- r.add(t.output);
1644
- if (n && n.onResult) {
1645
- n.onResult(t);
1646
- }
1647
- };
1648
- for (let r = 0; r < e.length; r++) {
1649
- let i = Rt(String(e[r]), {
1650
- ...n,
1651
- onResult: a
1652
- }, true);
1653
- let c = i.state.negated || i.state.negatedExtglob;
1654
- if (c) s++;
1655
- for (let e of t) {
1656
- let t = i(e, true);
1657
- let n = c ? !t.isMatch : t.isMatch;
1658
- if (!n) continue;
1659
- if (c) {
1660
- u.add(t.output);
1661
- } else {
1662
- u.delete(t.output);
1663
- o.add(t.output);
1664
- }
1665
- }
1666
- }
1667
- let i = s === e.length ? [ ...r ] : [ ...o ];
1668
- let c = i.filter(t => !u.has(t));
1669
- if (n && c.length === 0) {
1670
- if (n.failglob === true) {
1671
- throw new Error(`No matches found for "${e.join(", ")}"`);
1672
- }
1673
- if (n.nonull === true || n.nullglob === true) {
1674
- return n.unescape ? e.map(t => t.replace(/\\/g, "")) : e;
1675
- }
1676
- }
1677
- return c;
1678
- };
1679
-
1680
- gt.match = gt;
1681
-
1682
- gt.matcher = (t, e) => Rt(t, e);
1683
-
1684
- gt.isMatch = (t, e, n) => Rt(e, n)(t);
1685
-
1686
- gt.any = gt.isMatch;
1687
-
1688
- gt.not = (t, e, n = {}) => {
1689
- e = [].concat(e).map(String);
1690
- let u = new Set;
1691
- let o = [];
1692
- let r = t => {
1693
- if (n.onResult) n.onResult(t);
1694
- o.push(t.output);
1695
- };
1696
- let s = new Set(gt(t, e, {
1697
- ...n,
1698
- onResult: r
1699
- }));
1700
- for (let t of o) {
1701
- if (!s.has(t)) {
1702
- u.add(t);
1703
- }
1704
- }
1705
- return [ ...u ];
1706
- };
1707
-
1708
- gt.contains = (t, e, n) => {
1709
- if (typeof t !== "string") {
1710
- throw new TypeError(`Expected a string: "${ft.inspect(t)}"`);
1711
- }
1712
- if (Array.isArray(e)) {
1713
- return e.some(e => gt.contains(t, e, n));
1714
- }
1715
- if (typeof e === "string") {
1716
- if (_t(t) || _t(e)) {
1717
- return false;
1718
- }
1719
- if (t.includes(e) || t.startsWith("./") && t.slice(2).includes(e)) {
1720
- return true;
1721
- }
1722
- }
1723
- return gt.isMatch(t, e, {
1724
- ...n,
1725
- contains: true
1726
- });
1727
- };
1728
-
1729
- gt.matchKeys = (t, e, n) => {
1730
- if (!ht.isObject(t)) {
1731
- throw new TypeError("Expected the first argument to be an object");
1732
- }
1733
- let u = gt(Object.keys(t), e, n);
1734
- let o = {};
1735
- for (let e of u) o[e] = t[e];
1736
- return o;
1737
- };
1738
-
1739
- gt.some = (t, e, n) => {
1740
- let u = [].concat(t);
1741
- for (let t of [].concat(e)) {
1742
- let e = Rt(String(t), n);
1743
- if (u.some(t => e(t))) {
1744
- return true;
1745
- }
1746
- }
1747
- return false;
1748
- };
1749
-
1750
- gt.every = (t, e, n) => {
1751
- let u = [].concat(t);
1752
- for (let t of [].concat(e)) {
1753
- let e = Rt(String(t), n);
1754
- if (!u.every(t => e(t))) {
1755
- return false;
1756
- }
1757
- }
1758
- return true;
1759
- };
1760
-
1761
- gt.all = (t, e, n) => {
1762
- if (typeof t !== "string") {
1763
- throw new TypeError(`Expected a string: "${ft.inspect(t)}"`);
1764
- }
1765
- return [].concat(e).every(e => Rt(e, n)(t));
1766
- };
1767
-
1768
- gt.capture = (t, e, n) => {
1769
- let u = ht.isWindows(n);
1770
- let o = Rt.makeRe(String(t), {
1771
- ...n,
1772
- capture: true
1773
- });
1774
- let r = o.exec(u ? ht.toPosixSlashes(e) : e);
1775
- if (r) {
1776
- return r.slice(1).map(t => t === void 0 ? "" : t);
1777
- }
1778
- };
1779
-
1780
- gt.makeRe = (...t) => Rt.makeRe(...t);
1781
-
1782
- gt.scan = (...t) => Rt.scan(...t);
1783
-
1784
- gt.parse = (t, e) => {
1785
- let n = [];
1786
- for (let u of [].concat(t || [])) {
1787
- for (let t of At(String(u), e)) {
1788
- n.push(Rt.parse(t, e));
1789
- }
1790
- }
1791
- return n;
1792
- };
1793
-
1794
- gt.braces = (t, e) => {
1795
- if (typeof t !== "string") throw new TypeError("Expected a string");
1796
- if (e && e.nobrace === true || !Et(t)) {
1797
- return [ t ];
1798
- }
1799
- return At(t, e);
1800
- };
1801
-
1802
- gt.braceExpand = (t, e) => {
1803
- if (typeof t !== "string") throw new TypeError("Expected a string");
1804
- return gt.braces(t, {
1805
- ...e,
1806
- expand: true
1807
- });
1808
- };
1809
-
1810
- gt.hasBraces = Et;
1811
-
1812
- var bt = gt;
1813
-
1814
- export { bt as m };