lakutata 2.0.79 → 2.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/com/cacher.cjs +8 -10
  2. package/com/cacher.d.ts +83 -14
  3. package/com/cacher.mjs +8 -10
  4. package/com/database.cjs +11 -11
  5. package/com/database.mjs +11 -11
  6. package/com/docker.cjs +17 -19
  7. package/com/docker.d.ts +3 -141
  8. package/com/docker.mjs +13 -15
  9. package/com/entrypoint.cjs +7 -5
  10. package/com/entrypoint.mjs +7 -5
  11. package/com/logger.cjs +7 -7
  12. package/com/logger.mjs +7 -7
  13. package/com/monitor.cjs +5 -3
  14. package/com/monitor.mjs +5 -3
  15. package/decorator/ctrl.cjs +3 -3
  16. package/decorator/ctrl.mjs +3 -3
  17. package/decorator/orm.cjs +98 -98
  18. package/decorator/orm.mjs +142 -56
  19. package/helper.cjs +9 -11
  20. package/helper.mjs +5 -7
  21. package/lakutata.cjs +23 -30
  22. package/lakutata.mjs +14 -18
  23. package/orm.cjs +1423 -886
  24. package/orm.mjs +1474 -724
  25. package/package.json +1 -1
  26. package/provider/database.cjs +11 -11
  27. package/provider/database.mjs +11 -11
  28. package/provider/passwordHash.cjs +4 -2
  29. package/provider/passwordHash.mjs +4 -2
  30. package/src/components/Database.cjs +11 -11
  31. package/src/components/Database.mjs +11 -11
  32. package/src/components/Logger.cjs +7 -7
  33. package/src/components/Logger.mjs +7 -7
  34. package/src/components/cacher/Cacher.cjs +1178 -264
  35. package/src/components/cacher/Cacher.mjs +1087 -173
  36. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +479 -2963
  37. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +469 -2947
  38. package/src/components/docker/ConnectionOptionsBuilder.cjs +15 -17
  39. package/src/components/docker/ConnectionOptionsBuilder.mjs +13 -15
  40. package/src/components/docker/Docker.cjs +4884 -4945
  41. package/src/components/docker/Docker.mjs +4902 -4963
  42. package/src/components/docker/lib/DockerContainer.cjs +23 -25
  43. package/src/components/docker/lib/DockerContainer.mjs +17 -19
  44. package/src/components/docker/lib/DockerContainerTTY.cjs +9 -11
  45. package/src/components/docker/lib/DockerContainerTTY.mjs +9 -11
  46. package/src/components/docker/lib/DockerImage.cjs +4 -2
  47. package/src/components/docker/lib/DockerImage.mjs +4 -2
  48. package/src/components/entrypoint/Entrypoint.cjs +2170 -1678
  49. package/src/components/entrypoint/Entrypoint.mjs +2126 -1634
  50. package/src/components/entrypoint/lib/AccessControl.cjs +4 -2
  51. package/src/components/entrypoint/lib/AccessControl.mjs +4 -2
  52. package/src/components/entrypoint/lib/AccessControlRule.cjs +4 -2
  53. package/src/components/entrypoint/lib/AccessControlRule.mjs +4 -2
  54. package/src/components/entrypoint/lib/Controller.cjs +4 -2
  55. package/src/components/entrypoint/lib/Controller.mjs +4 -2
  56. package/src/components/monitor/AliveMonitor.cjs +4 -2
  57. package/src/components/monitor/AliveMonitor.mjs +4 -2
  58. package/src/components/monitor/CpuMonitor.cjs +5 -3
  59. package/src/components/monitor/CpuMonitor.mjs +5 -3
  60. package/src/components/monitor/EventLoopMonitor.cjs +4 -2
  61. package/src/components/monitor/EventLoopMonitor.mjs +4 -2
  62. package/src/components/monitor/HttpRequestMonitor.cjs +5 -3
  63. package/src/components/monitor/HttpRequestMonitor.mjs +5 -3
  64. package/src/components/monitor/MemoryMonitor.cjs +5 -3
  65. package/src/components/monitor/MemoryMonitor.mjs +5 -3
  66. package/src/decorators/ctrl/CLIAction.cjs +3 -3
  67. package/src/decorators/ctrl/CLIAction.mjs +3 -3
  68. package/src/decorators/ctrl/HTTPAction.cjs +3 -3
  69. package/src/decorators/ctrl/HTTPAction.mjs +3 -3
  70. package/src/decorators/ctrl/ServiceAction.cjs +3 -3
  71. package/src/decorators/ctrl/ServiceAction.mjs +3 -3
  72. package/src/decorators/ctrl/http/DELETE.cjs +3 -3
  73. package/src/decorators/ctrl/http/DELETE.mjs +3 -3
  74. package/src/decorators/ctrl/http/GET.cjs +3 -3
  75. package/src/decorators/ctrl/http/GET.mjs +3 -3
  76. package/src/decorators/ctrl/http/HEAD.cjs +3 -3
  77. package/src/decorators/ctrl/http/HEAD.mjs +3 -3
  78. package/src/decorators/ctrl/http/OPTIONS.cjs +3 -3
  79. package/src/decorators/ctrl/http/OPTIONS.mjs +3 -3
  80. package/src/decorators/ctrl/http/PATCH.cjs +3 -3
  81. package/src/decorators/ctrl/http/PATCH.mjs +3 -3
  82. package/src/decorators/ctrl/http/POST.cjs +3 -3
  83. package/src/decorators/ctrl/http/POST.mjs +3 -3
  84. package/src/decorators/ctrl/http/PUT.cjs +3 -3
  85. package/src/decorators/ctrl/http/PUT.mjs +3 -3
  86. package/src/decorators/orm/AfterInsert.cjs +17 -39
  87. package/src/decorators/orm/AfterInsert.mjs +18 -38
  88. package/src/decorators/orm/AfterLoad.cjs +17 -39
  89. package/src/decorators/orm/AfterLoad.mjs +18 -38
  90. package/src/decorators/orm/AfterRecover.cjs +17 -39
  91. package/src/decorators/orm/AfterRecover.mjs +18 -38
  92. package/src/decorators/orm/AfterRemove.cjs +17 -39
  93. package/src/decorators/orm/AfterRemove.mjs +18 -38
  94. package/src/decorators/orm/AfterSoftRemove.cjs +17 -39
  95. package/src/decorators/orm/AfterSoftRemove.mjs +18 -38
  96. package/src/decorators/orm/AfterUpdate.cjs +17 -39
  97. package/src/decorators/orm/AfterUpdate.mjs +18 -38
  98. package/src/decorators/orm/BeforeInsert.cjs +17 -39
  99. package/src/decorators/orm/BeforeInsert.mjs +18 -38
  100. package/src/decorators/orm/BeforeRecover.cjs +17 -39
  101. package/src/decorators/orm/BeforeRecover.mjs +18 -38
  102. package/src/decorators/orm/BeforeRemove.cjs +17 -39
  103. package/src/decorators/orm/BeforeRemove.mjs +18 -38
  104. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -39
  105. package/src/decorators/orm/BeforeSoftRemove.mjs +18 -38
  106. package/src/decorators/orm/BeforeUpdate.cjs +17 -39
  107. package/src/decorators/orm/BeforeUpdate.mjs +18 -38
  108. package/src/decorators/orm/Check.cjs +17 -42
  109. package/src/decorators/orm/Check.mjs +18 -41
  110. package/src/decorators/orm/ChildEntity.cjs +17 -42
  111. package/src/decorators/orm/ChildEntity.mjs +18 -41
  112. package/src/decorators/orm/Column.cjs +17 -74
  113. package/src/decorators/orm/Column.mjs +19 -74
  114. package/src/decorators/orm/CreateDateColumn.cjs +17 -38
  115. package/src/decorators/orm/CreateDateColumn.mjs +18 -37
  116. package/src/decorators/orm/DeleteDateColumn.cjs +17 -38
  117. package/src/decorators/orm/DeleteDateColumn.mjs +17 -36
  118. package/src/decorators/orm/Entity.cjs +17 -48
  119. package/src/decorators/orm/Entity.mjs +17 -46
  120. package/src/decorators/orm/EventSubscriber.cjs +17 -35
  121. package/src/decorators/orm/EventSubscriber.mjs +18 -34
  122. package/src/decorators/orm/Exclusion.cjs +17 -42
  123. package/src/decorators/orm/Exclusion.mjs +18 -41
  124. package/src/decorators/orm/Generated.cjs +17 -37
  125. package/src/decorators/orm/Generated.mjs +18 -36
  126. package/src/decorators/orm/Index.cjs +17 -54
  127. package/src/decorators/orm/Index.mjs +19 -54
  128. package/src/decorators/orm/JoinColumn.cjs +17 -42
  129. package/src/decorators/orm/JoinColumn.mjs +18 -41
  130. package/src/decorators/orm/JoinTable.cjs +17 -43
  131. package/src/decorators/orm/JoinTable.mjs +17 -41
  132. package/src/decorators/orm/ManyToMany.cjs +17 -55
  133. package/src/decorators/orm/ManyToMany.mjs +17 -53
  134. package/src/decorators/orm/ManyToOne.cjs +17 -55
  135. package/src/decorators/orm/ManyToOne.mjs +17 -53
  136. package/src/decorators/orm/ObjectIdColumn.cjs +17 -41
  137. package/src/decorators/orm/ObjectIdColumn.mjs +18 -40
  138. package/src/decorators/orm/OneToMany.cjs +17 -47
  139. package/src/decorators/orm/OneToMany.mjs +19 -47
  140. package/src/decorators/orm/OneToOne.cjs +17 -55
  141. package/src/decorators/orm/OneToOne.mjs +17 -53
  142. package/src/decorators/orm/PrimaryColumn.cjs +17 -62
  143. package/src/decorators/orm/PrimaryColumn.mjs +19 -62
  144. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +17 -67
  145. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +19 -67
  146. package/src/decorators/orm/RelationId.cjs +17 -39
  147. package/src/decorators/orm/RelationId.mjs +18 -38
  148. package/src/decorators/orm/TableInheritance.cjs +17 -39
  149. package/src/decorators/orm/TableInheritance.mjs +18 -38
  150. package/src/decorators/orm/Tree.cjs +17 -37
  151. package/src/decorators/orm/Tree.mjs +18 -36
  152. package/src/decorators/orm/TreeChildren.cjs +17 -44
  153. package/src/decorators/orm/TreeChildren.mjs +17 -42
  154. package/src/decorators/orm/TreeLevelColumn.cjs +17 -38
  155. package/src/decorators/orm/TreeLevelColumn.mjs +17 -36
  156. package/src/decorators/orm/TreeParent.cjs +17 -44
  157. package/src/decorators/orm/TreeParent.mjs +17 -42
  158. package/src/decorators/orm/Unique.cjs +17 -57
  159. package/src/decorators/orm/Unique.mjs +19 -57
  160. package/src/decorators/orm/UpdateDateColumn.cjs +17 -38
  161. package/src/decorators/orm/UpdateDateColumn.mjs +18 -37
  162. package/src/decorators/orm/VersionColumn.cjs +17 -38
  163. package/src/decorators/orm/VersionColumn.mjs +18 -37
  164. package/src/decorators/orm/ViewColumn.cjs +17 -38
  165. package/src/decorators/orm/ViewColumn.mjs +18 -37
  166. package/src/decorators/orm/ViewEntity.cjs +17 -47
  167. package/src/decorators/orm/ViewEntity.mjs +18 -46
  168. package/src/decorators/orm/VirtualColumn.cjs +17 -55
  169. package/src/decorators/orm/VirtualColumn.mjs +17 -53
  170. package/src/lib/base/BaseObject.cjs +4 -2
  171. package/src/lib/base/BaseObject.mjs +4 -2
  172. package/src/lib/base/EventEmitter.cjs +1200 -1193
  173. package/src/lib/base/EventEmitter.mjs +1201 -1194
  174. package/src/lib/base/internal/ApplicationConfigLoader.cjs +4 -2
  175. package/src/lib/base/internal/ApplicationConfigLoader.mjs +4 -2
  176. package/src/lib/base/internal/ControllerEntrypoint.cjs +3 -3
  177. package/src/lib/base/internal/ControllerEntrypoint.mjs +3 -3
  178. package/src/lib/base/internal/DataValidator.cjs +176 -179
  179. package/src/lib/base/internal/DataValidator.mjs +177 -180
  180. package/src/lib/base/internal/ModuleConfigLoader.cjs +4 -3
  181. package/src/lib/base/internal/ModuleConfigLoader.mjs +4 -3
  182. package/src/lib/base/internal/ObjectType.cjs +4 -2
  183. package/src/lib/base/internal/ObjectType.mjs +4 -2
  184. package/src/lib/base/internal/PatternManager.cjs +740 -735
  185. package/src/lib/base/internal/PatternManager.mjs +745 -740
  186. package/src/lib/base/internal/StringifyPattern.cjs +1 -1
  187. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  188. package/src/lib/core/Application.cjs +154 -146
  189. package/src/lib/core/Application.mjs +203 -197
  190. package/src/lib/core/Component.cjs +4 -2
  191. package/src/lib/core/Component.mjs +4 -2
  192. package/src/lib/core/Container.cjs +4 -2
  193. package/src/lib/core/Container.mjs +4 -2
  194. package/src/lib/core/Module.cjs +5 -3
  195. package/src/lib/core/Module.mjs +5 -3
  196. package/src/lib/core/Provider.cjs +4 -2
  197. package/src/lib/core/Provider.mjs +4 -2
  198. package/src/lib/helpers/Glob.cjs +970 -721
  199. package/src/lib/helpers/Glob.mjs +1036 -787
  200. package/src/lib/helpers/IsHtml.cjs +7 -13
  201. package/src/lib/helpers/IsHtml.mjs +7 -13
  202. package/src/lib/helpers/IsXML.cjs +1158 -1016
  203. package/src/lib/helpers/IsXML.mjs +871 -729
  204. package/src/lib/helpers/MD5.cjs +1 -1
  205. package/src/lib/helpers/MD5.mjs +1 -1
  206. package/src/lib/helpers/NonceStr.cjs +1 -1
  207. package/src/lib/helpers/NonceStr.mjs +1 -1
  208. package/src/lib/helpers/ObjectHash.cjs +379 -372
  209. package/src/lib/helpers/ObjectHash.mjs +379 -372
  210. package/src/lib/helpers/RandomString.cjs +168 -147
  211. package/src/lib/helpers/RandomString.mjs +167 -146
  212. package/src/lib/helpers/SHA1.cjs +1 -1
  213. package/src/lib/helpers/SHA1.mjs +1 -1
  214. package/src/lib/helpers/SHA256.cjs +1 -1
  215. package/src/lib/helpers/SHA256.mjs +1 -1
  216. package/src/lib/helpers/SortArray.cjs +1 -1
  217. package/src/lib/helpers/SortArray.mjs +1 -1
  218. package/src/lib/helpers/Statistics.cjs +1 -1
  219. package/src/lib/helpers/Statistics.mjs +1 -1
  220. package/src/lib/helpers/URLBuilder.cjs +355 -355
  221. package/src/lib/helpers/URLBuilder.mjs +350 -350
  222. package/src/lib/helpers/UUID.cjs +1 -1
  223. package/src/lib/helpers/UUID.mjs +1 -1
  224. package/src/lib/ioc/DependencyInjectionContainer.cjs +32 -30
  225. package/src/lib/ioc/DependencyInjectionContainer.mjs +12 -10
  226. package/src/lib/ioc/ListModules.cjs +5174 -5249
  227. package/src/lib/ioc/ListModules.mjs +5177 -5252
  228. package/src/lib/validation/VLD.cjs +4080 -3902
  229. package/src/lib/validation/VLD.mjs +2970 -2792
  230. package/src/options/ApplicationOptions.cjs +4 -2
  231. package/src/options/ApplicationOptions.mjs +4 -2
  232. package/src/options/LoadAnonymousObjectOptions.cjs +4 -2
  233. package/src/options/LoadAnonymousObjectOptions.mjs +4 -2
  234. package/src/options/LoadNamedObjectOptions.cjs +4 -2
  235. package/src/options/LoadNamedObjectOptions.mjs +4 -2
  236. package/src/options/LoadObjectOptions.cjs +4 -2
  237. package/src/options/LoadObjectOptions.mjs +4 -2
  238. package/src/options/ModuleLoadObjectsOptions.cjs +4 -2
  239. package/src/options/ModuleLoadObjectsOptions.mjs +4 -2
  240. package/src/options/ModuleOptions.cjs +4 -4
  241. package/src/options/ModuleOptions.mjs +4 -4
  242. package/src/options/OverridableNamedObjectOptions.cjs +4 -2
  243. package/src/options/OverridableNamedObjectOptions.mjs +4 -2
  244. package/src/options/OverridableObjectOptions.cjs +4 -2
  245. package/src/options/OverridableObjectOptions.mjs +4 -2
  246. package/src/providers/Database.cjs +11 -11
  247. package/src/providers/Database.mjs +11 -11
  248. package/src/providers/PasswordHash.cjs +5 -3
  249. package/src/providers/PasswordHash.mjs +190 -188
  250. package/src/providers/migration/GenerateMigration.cjs +15 -19
  251. package/src/providers/migration/GenerateMigration.mjs +15 -19
  252. package/vendor/Package.10.cjs +2 -8
  253. package/vendor/Package.10.mjs +2 -8
  254. package/vendor/Package.11.cjs +5 -83
  255. package/vendor/Package.11.mjs +5 -77
  256. package/vendor/Package.112.cjs +48900 -0
  257. package/vendor/Package.112.mjs +48764 -0
  258. package/vendor/Package.12.cjs +4 -2
  259. package/vendor/Package.12.mjs +6 -4
  260. package/vendor/Package.13.cjs +87 -1
  261. package/vendor/Package.13.mjs +81 -1
  262. package/vendor/Package.14.cjs +1 -14057
  263. package/vendor/Package.14.mjs +1 -14031
  264. package/vendor/Package.15.cjs +1 -1
  265. package/vendor/Package.15.mjs +1 -1
  266. package/vendor/Package.16.cjs +18129 -1935
  267. package/vendor/Package.16.mjs +18115 -1839
  268. package/vendor/Package.17.cjs +1922 -47929
  269. package/vendor/Package.17.mjs +1874 -47948
  270. package/vendor/Package.18.cjs +35 -1
  271. package/vendor/Package.18.mjs +35 -1
  272. package/vendor/Package.19.cjs +37 -0
  273. package/vendor/Package.19.mjs +35 -0
  274. package/vendor/Package.2.cjs +5739 -5710
  275. package/vendor/Package.2.mjs +5733 -5704
  276. package/vendor/Package.20.cjs +37 -0
  277. package/vendor/Package.20.mjs +35 -0
  278. package/vendor/Package.21.cjs +37 -0
  279. package/vendor/Package.21.mjs +35 -0
  280. package/vendor/Package.22.cjs +37 -0
  281. package/vendor/Package.22.mjs +35 -0
  282. package/vendor/Package.23.cjs +37 -0
  283. package/vendor/Package.23.mjs +35 -0
  284. package/vendor/Package.24.cjs +37 -0
  285. package/vendor/Package.24.mjs +35 -0
  286. package/vendor/Package.25.cjs +37 -0
  287. package/vendor/Package.25.mjs +35 -0
  288. package/vendor/Package.26.cjs +37 -0
  289. package/vendor/Package.26.mjs +35 -0
  290. package/vendor/Package.27.cjs +37 -0
  291. package/vendor/Package.27.mjs +35 -0
  292. package/vendor/Package.28.cjs +37 -0
  293. package/vendor/Package.28.mjs +35 -0
  294. package/vendor/Package.29.cjs +40 -0
  295. package/vendor/Package.29.mjs +38 -0
  296. package/vendor/Package.30.cjs +41 -0
  297. package/vendor/Package.30.mjs +39 -0
  298. package/vendor/Package.31.cjs +72 -0
  299. package/vendor/Package.31.mjs +70 -0
  300. package/vendor/Package.32.cjs +37 -0
  301. package/vendor/Package.32.mjs +35 -0
  302. package/vendor/Package.33.cjs +37 -0
  303. package/vendor/Package.33.mjs +35 -0
  304. package/vendor/Package.34.cjs +46 -0
  305. package/vendor/Package.34.mjs +44 -0
  306. package/vendor/Package.35.cjs +34 -0
  307. package/vendor/Package.35.mjs +32 -0
  308. package/vendor/Package.36.cjs +40 -0
  309. package/vendor/Package.36.mjs +38 -0
  310. package/vendor/Package.37.cjs +36 -0
  311. package/vendor/Package.37.mjs +34 -0
  312. package/vendor/Package.38.cjs +52 -0
  313. package/vendor/Package.38.mjs +50 -0
  314. package/vendor/Package.39.cjs +41 -0
  315. package/vendor/Package.39.mjs +39 -0
  316. package/vendor/Package.4.cjs +884 -874
  317. package/vendor/Package.4.mjs +884 -874
  318. package/vendor/Package.40.cjs +42 -0
  319. package/vendor/Package.40.mjs +40 -0
  320. package/vendor/Package.41.cjs +53 -0
  321. package/vendor/Package.41.mjs +51 -0
  322. package/vendor/Package.42.cjs +53 -0
  323. package/vendor/Package.42.mjs +51 -0
  324. package/vendor/Package.43.cjs +40 -0
  325. package/vendor/Package.43.mjs +38 -0
  326. package/vendor/Package.44.cjs +46 -0
  327. package/vendor/Package.44.mjs +44 -0
  328. package/vendor/Package.45.cjs +53 -0
  329. package/vendor/Package.45.mjs +51 -0
  330. package/vendor/Package.46.cjs +59 -0
  331. package/vendor/Package.46.mjs +57 -0
  332. package/vendor/Package.47.cjs +65 -0
  333. package/vendor/Package.47.mjs +63 -0
  334. package/vendor/Package.48.cjs +38 -0
  335. package/vendor/Package.48.mjs +36 -0
  336. package/vendor/Package.49.cjs +38 -0
  337. package/vendor/Package.49.mjs +36 -0
  338. package/vendor/Package.5.cjs +15 -11
  339. package/vendor/Package.5.mjs +11 -7
  340. package/vendor/Package.50.cjs +36 -0
  341. package/vendor/Package.50.mjs +34 -0
  342. package/vendor/Package.51.cjs +43 -0
  343. package/vendor/Package.51.mjs +41 -0
  344. package/vendor/Package.52.cjs +37 -0
  345. package/vendor/Package.52.mjs +35 -0
  346. package/vendor/Package.53.cjs +43 -0
  347. package/vendor/Package.53.mjs +41 -0
  348. package/vendor/Package.54.cjs +55 -0
  349. package/vendor/Package.54.mjs +53 -0
  350. package/vendor/Package.55.cjs +37 -0
  351. package/vendor/Package.55.mjs +35 -0
  352. package/vendor/Package.56.cjs +37 -0
  353. package/vendor/Package.56.mjs +35 -0
  354. package/vendor/Package.57.cjs +37 -0
  355. package/vendor/Package.57.mjs +35 -0
  356. package/vendor/Package.58.cjs +45 -0
  357. package/vendor/Package.58.mjs +43 -0
  358. package/vendor/Package.59.cjs +53 -0
  359. package/vendor/Package.59.mjs +51 -0
  360. package/vendor/Package.6.cjs +520 -511
  361. package/vendor/Package.6.mjs +543 -534
  362. package/vendor/Package.60.cjs +47649 -0
  363. package/vendor/Package.60.mjs +47606 -0
  364. package/vendor/Package.610.cjs +11 -11
  365. package/vendor/Package.610.mjs +11 -11
  366. package/vendor/Package.611.cjs +33 -23
  367. package/vendor/Package.611.mjs +19 -9
  368. package/vendor/Package.612.cjs +42 -36
  369. package/vendor/Package.612.mjs +35 -29
  370. package/vendor/Package.613.cjs +5 -4
  371. package/vendor/Package.613.mjs +5 -4
  372. package/vendor/Package.62.cjs +92 -89
  373. package/vendor/Package.62.mjs +185 -182
  374. package/vendor/Package.63.cjs +509 -166
  375. package/vendor/Package.63.mjs +490 -165
  376. package/vendor/Package.64.cjs +139 -511
  377. package/vendor/Package.64.mjs +139 -491
  378. package/vendor/Package.65.cjs +4135 -150
  379. package/vendor/Package.65.mjs +4143 -150
  380. package/vendor/Package.66.cjs +346 -4150
  381. package/vendor/Package.66.mjs +346 -4158
  382. package/vendor/Package.67.cjs +412 -261
  383. package/vendor/Package.67.mjs +410 -259
  384. package/vendor/Package.68.cjs +397 -405
  385. package/vendor/Package.68.mjs +227 -242
  386. package/vendor/Package.8.cjs +0 -4
  387. package/vendor/Package.8.mjs +0 -4
  388. package/vendor/Package.9.cjs +132 -118
  389. package/vendor/Package.9.mjs +138 -124
  390. package/vendor/TypeDef.internal.3.d.ts +0 -4
  391. package/vendor/Package.102.cjs +0 -48773
  392. package/vendor/Package.102.mjs +0 -48697
  393. package/vendor/Package.122.cjs +0 -3
  394. package/vendor/Package.122.mjs +0 -1
@@ -1,35 +1,263 @@
1
- import { e as t } from "../../../vendor/Package.63.mjs";
1
+ import { fileURLToPath as t } from "node:url";
2
2
 
3
- import { fileURLToPath as e } from "node:url";
3
+ import { win32 as e, posix as s } from "node:path";
4
4
 
5
- import { win32 as s, posix as i } from "node:path";
5
+ import { realpathSync as i, readlinkSync as n, readdirSync as r, readdir as o, lstatSync as h } from "fs";
6
6
 
7
- import { realpathSync as n, readlinkSync as r, readdirSync as o, readdir as h, lstatSync as a } from "fs";
7
+ import * as a from "node:fs";
8
8
 
9
- import * as l from "node:fs";
9
+ import { realpath as l, readlink as c, readdir as f, lstat as u } from "node:fs/promises";
10
10
 
11
- import { realpath as c, readlink as f, readdir as u, lstat as d } from "node:fs/promises";
11
+ import { EventEmitter as d } from "node:events";
12
12
 
13
- import { EventEmitter as p } from "node:events";
13
+ import p from "node:stream";
14
14
 
15
- import g from "node:stream";
15
+ import { StringDecoder as g } from "node:string_decoder";
16
16
 
17
- import { StringDecoder as m } from "node:string_decoder";
17
+ const m = (t, e, s) => {
18
+ const i = t instanceof RegExp ? w(t, s) : t;
19
+ const n = e instanceof RegExp ? w(e, s) : e;
20
+ const r = i !== null && n != null && y(i, n, s);
21
+ return r && {
22
+ start: r[0],
23
+ end: r[1],
24
+ pre: s.slice(0, r[0]),
25
+ body: s.slice(r[0] + i.length, r[1]),
26
+ post: s.slice(r[1] + n.length)
27
+ };
28
+ };
29
+
30
+ const w = (t, e) => {
31
+ const s = e.match(t);
32
+ return s ? s[0] : null;
33
+ };
34
+
35
+ const y = (t, e, s) => {
36
+ let i, n, r, o = undefined, h;
37
+ let a = s.indexOf(t);
38
+ let l = s.indexOf(e, a + 1);
39
+ let c = a;
40
+ if (a >= 0 && l > 0) {
41
+ if (t === e) {
42
+ return [ a, l ];
43
+ }
44
+ i = [];
45
+ r = s.length;
46
+ while (c >= 0 && !h) {
47
+ if (c === a) {
48
+ i.push(c);
49
+ a = s.indexOf(t, c + 1);
50
+ } else if (i.length === 1) {
51
+ const t = i.pop();
52
+ if (t !== undefined) h = [ t, l ];
53
+ } else {
54
+ n = i.pop();
55
+ if (n !== undefined && n < r) {
56
+ r = n;
57
+ o = l;
58
+ }
59
+ l = s.indexOf(e, c + 1);
60
+ }
61
+ c = a < l && a >= 0 ? a : l;
62
+ }
63
+ if (i.length && o !== undefined) {
64
+ h = [ r, o ];
65
+ }
66
+ }
67
+ return h;
68
+ };
69
+
70
+ const b = "\0SLASH" + Math.random() + "\0";
71
+
72
+ const S = "\0OPEN" + Math.random() + "\0";
73
+
74
+ const k = "\0CLOSE" + Math.random() + "\0";
75
+
76
+ const x = "\0COMMA" + Math.random() + "\0";
77
+
78
+ const v = "\0PERIOD" + Math.random() + "\0";
79
+
80
+ const E = new RegExp(b, "g");
81
+
82
+ const C = new RegExp(S, "g");
83
+
84
+ const T = new RegExp(k, "g");
85
+
86
+ const A = new RegExp(x, "g");
87
+
88
+ const L = new RegExp(v, "g");
89
+
90
+ const M = /\\\\/g;
91
+
92
+ const P = /\\{/g;
93
+
94
+ const F = /\\}/g;
95
+
96
+ const R = /\\,/g;
97
+
98
+ const O = /\\./g;
99
+
100
+ function z(t) {
101
+ return !isNaN(t) ? parseInt(t, 10) : t.charCodeAt(0);
102
+ }
103
+
104
+ function D(t) {
105
+ return t.replace(M, b).replace(P, S).replace(F, k).replace(R, x).replace(O, v);
106
+ }
107
+
108
+ function N(t) {
109
+ return t.replace(E, "\\").replace(C, "{").replace(T, "}").replace(A, ",").replace(L, ".");
110
+ }
111
+
112
+ function B(t) {
113
+ if (!t) {
114
+ return [ "" ];
115
+ }
116
+ const e = [];
117
+ const s = m("{", "}", t);
118
+ if (!s) {
119
+ return t.split(",");
120
+ }
121
+ const {pre: i, body: n, post: r} = s;
122
+ const o = i.split(",");
123
+ o[o.length - 1] += "{" + n + "}";
124
+ const h = B(r);
125
+ if (r.length) {
126
+ o[o.length - 1] += h.shift();
127
+ o.push.apply(o, h);
128
+ }
129
+ e.push.apply(e, o);
130
+ return e;
131
+ }
132
+
133
+ function W(t) {
134
+ if (!t) {
135
+ return [];
136
+ }
137
+ if (t.slice(0, 2) === "{}") {
138
+ t = "\\{\\}" + t.slice(2);
139
+ }
140
+ return U(D(t), true).map(N);
141
+ }
142
+
143
+ function I(t) {
144
+ return "{" + t + "}";
145
+ }
146
+
147
+ function _(t) {
148
+ return /^-?0\d/.test(t);
149
+ }
18
150
 
19
- import "../../../vendor/Package.5.mjs";
151
+ function j(t, e) {
152
+ return t <= e;
153
+ }
20
154
 
21
- const w = 1024 * 64;
155
+ function $(t, e) {
156
+ return t >= e;
157
+ }
22
158
 
23
- const y = t => {
159
+ function U(t, e) {
160
+ const s = [];
161
+ const i = m("{", "}", t);
162
+ if (!i) return [ t ];
163
+ const n = i.pre;
164
+ const r = i.post.length ? U(i.post, false) : [ "" ];
165
+ if (/\$$/.test(i.pre)) {
166
+ for (let t = 0; t < r.length; t++) {
167
+ const e = n + "{" + i.body + "}" + r[t];
168
+ s.push(e);
169
+ }
170
+ } else {
171
+ const o = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);
172
+ const h = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);
173
+ const a = o || h;
174
+ const l = i.body.indexOf(",") >= 0;
175
+ if (!a && !l) {
176
+ if (i.post.match(/,(?!,).*\}/)) {
177
+ t = i.pre + "{" + i.body + k + i.post;
178
+ return U(t);
179
+ }
180
+ return [ t ];
181
+ }
182
+ let c;
183
+ if (a) {
184
+ c = i.body.split(/\.\./);
185
+ } else {
186
+ c = B(i.body);
187
+ if (c.length === 1 && c[0] !== undefined) {
188
+ c = U(c[0], false).map(I);
189
+ if (c.length === 1) {
190
+ return r.map((t => i.pre + c[0] + t));
191
+ }
192
+ }
193
+ }
194
+ let f;
195
+ if (a && c[0] !== undefined && c[1] !== undefined) {
196
+ const t = z(c[0]);
197
+ const e = z(c[1]);
198
+ const s = Math.max(c[0].length, c[1].length);
199
+ let i = c.length === 3 && c[2] !== undefined ? Math.abs(z(c[2])) : 1;
200
+ let n = j;
201
+ const r = e < t;
202
+ if (r) {
203
+ i *= -1;
204
+ n = $;
205
+ }
206
+ const o = c.some(_);
207
+ f = [];
208
+ for (let r = t; n(r, e); r += i) {
209
+ let t;
210
+ if (h) {
211
+ t = String.fromCharCode(r);
212
+ if (t === "\\") {
213
+ t = "";
214
+ }
215
+ } else {
216
+ t = String(r);
217
+ if (o) {
218
+ const e = s - t.length;
219
+ if (e > 0) {
220
+ const s = new Array(e + 1).join("0");
221
+ if (r < 0) {
222
+ t = "-" + s + t.slice(1);
223
+ } else {
224
+ t = s + t;
225
+ }
226
+ }
227
+ }
228
+ }
229
+ f.push(t);
230
+ }
231
+ } else {
232
+ f = [];
233
+ for (let t = 0; t < c.length; t++) {
234
+ f.push.apply(f, U(c[t], false));
235
+ }
236
+ }
237
+ for (let t = 0; t < f.length; t++) {
238
+ for (let i = 0; i < r.length; i++) {
239
+ const o = n + f[t] + r[i];
240
+ if (!e || a || o) {
241
+ s.push(o);
242
+ }
243
+ }
244
+ }
245
+ }
246
+ return s;
247
+ }
248
+
249
+ const G = 1024 * 64;
250
+
251
+ const H = t => {
24
252
  if (typeof t !== "string") {
25
253
  throw new TypeError("invalid pattern");
26
254
  }
27
- if (t.length > w) {
255
+ if (t.length > G) {
28
256
  throw new TypeError("pattern is too long");
29
257
  }
30
258
  };
31
259
 
32
- const b = {
260
+ const Z = {
33
261
  "[:alnum:]": [ "\\p{L}\\p{Nl}\\p{Nd}", true ],
34
262
  "[:alpha:]": [ "\\p{L}\\p{Nl}", true ],
35
263
  "[:ascii:]": [ "\\x" + "00-\\x" + "7f", false ],
@@ -46,13 +274,13 @@ const b = {
46
274
  "[:xdigit:]": [ "A-Fa-f0-9", false ]
47
275
  };
48
276
 
49
- const S = t => t.replace(/[[\]\\-]/g, "\\$&");
277
+ const q = t => t.replace(/[[\]\\-]/g, "\\$&");
50
278
 
51
- const k = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
279
+ const V = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
52
280
 
53
- const v = t => t.join("");
281
+ const J = t => t.join("");
54
282
 
55
- const x = (t, e) => {
283
+ const K = (t, e) => {
56
284
  const s = e;
57
285
  if (t.charAt(s) !== "[") {
58
286
  throw new Error("not in a brace expression");
@@ -86,7 +314,7 @@ const x = (t, e) => {
86
314
  }
87
315
  }
88
316
  if (e === "[" && !a) {
89
- for (const [e, [o, a, l]] of Object.entries(b)) {
317
+ for (const [e, [o, a, l]] of Object.entries(Z)) {
90
318
  if (t.startsWith(e, r)) {
91
319
  if (f) {
92
320
  return [ "$.", false, t.length - s, true ];
@@ -101,16 +329,16 @@ const x = (t, e) => {
101
329
  a = false;
102
330
  if (f) {
103
331
  if (e > f) {
104
- i.push(S(f) + "-" + S(e));
332
+ i.push(q(f) + "-" + q(e));
105
333
  } else if (e === f) {
106
- i.push(S(e));
334
+ i.push(q(e));
107
335
  }
108
336
  f = "";
109
337
  r++;
110
338
  continue;
111
339
  }
112
340
  if (t.startsWith("-]", r + 1)) {
113
- i.push(S(e + "-"));
341
+ i.push(q(e + "-"));
114
342
  r += 2;
115
343
  continue;
116
344
  }
@@ -119,7 +347,7 @@ const x = (t, e) => {
119
347
  r += 2;
120
348
  continue;
121
349
  }
122
- i.push(S(e));
350
+ i.push(q(e));
123
351
  r++;
124
352
  }
125
353
  if (c < r) {
@@ -130,37 +358,42 @@ const x = (t, e) => {
130
358
  }
131
359
  if (n.length === 0 && i.length === 1 && /^\\?.$/.test(i[0]) && !l) {
132
360
  const t = i[0].length === 2 ? i[0].slice(-1) : i[0];
133
- return [ k(t), false, c - s, false ];
361
+ return [ V(t), false, c - s, false ];
134
362
  }
135
- const u = "[" + (l ? "^" : "") + v(i) + "]";
136
- const d = "[" + (l ? "" : "^") + v(n) + "]";
363
+ const u = "[" + (l ? "^" : "") + J(i) + "]";
364
+ const d = "[" + (l ? "" : "^") + J(n) + "]";
137
365
  const p = i.length && n.length ? "(" + u + "|" + d + ")" : i.length ? u : d;
138
366
  return [ p, h, c - s, true ];
139
367
  };
140
368
 
141
- const E = (t, {windowsPathsNoEscape: e = false} = {}) => e ? t.replace(/\[([^\/\\])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
369
+ const Y = (t, {windowsPathsNoEscape: e = false, magicalBraces: s = true} = {}) => {
370
+ if (s) {
371
+ return e ? t.replace(/\[([^\/\\])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
372
+ }
373
+ return e ? t.replace(/\[([^\/\\{}])\]/g, "$1") : t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
374
+ };
142
375
 
143
- const C = new Set([ "!", "?", "+", "*", "@" ]);
376
+ const X = new Set([ "!", "?", "+", "*", "@" ]);
144
377
 
145
- const T = t => C.has(t);
378
+ const Q = t => X.has(t);
146
379
 
147
- const L = "(?!(?:^|/)\\.\\.?(?:$|/))";
380
+ const tt = "(?!(?:^|/)\\.\\.?(?:$|/))";
148
381
 
149
- const A = "(?!\\.)";
382
+ const et = "(?!\\.)";
150
383
 
151
- const M = new Set([ "[", "." ]);
384
+ const st = new Set([ "[", "." ]);
152
385
 
153
- const P = new Set([ "..", "." ]);
386
+ const it = new Set([ "..", "." ]);
154
387
 
155
- const F = new Set("().*{}+?[]^$\\!");
388
+ const nt = new Set("().*{}+?[]^$\\!");
156
389
 
157
- const R = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
390
+ const rt = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
158
391
 
159
- const z = "[^/]";
392
+ const ot = "[^/]";
160
393
 
161
- const O = z + "*?";
394
+ const ht = ot + "*?";
162
395
 
163
- const D = z + "+?";
396
+ const at = ot + "+?";
164
397
 
165
398
  class AST {
166
399
  type;
@@ -306,7 +539,7 @@ class AST {
306
539
  l += s;
307
540
  continue;
308
541
  }
309
- if (!i.noext && T(s) && t.charAt(a) === "(") {
542
+ if (!i.noext && Q(s) && t.charAt(a) === "(") {
310
543
  e.push(l);
311
544
  l = "";
312
545
  const n = new AST(s, e);
@@ -347,7 +580,7 @@ class AST {
347
580
  f += s;
348
581
  continue;
349
582
  }
350
- if (T(s) && t.charAt(a) === "(") {
583
+ if (Q(s) && t.charAt(a) === "(") {
351
584
  l.push(f);
352
585
  f = "";
353
586
  const e = new AST(s, l);
@@ -404,7 +637,7 @@ class AST {
404
637
  const e = t ?? !!this.#a.dot;
405
638
  if (this.#t === this) this.#f();
406
639
  if (!this.type) {
407
- const s = this.isStart() && this.isEnd();
640
+ const s = this.isStart() && this.isEnd() && !this.#i.some((t => typeof t !== "string"));
408
641
  const i = this.#i.map((e => {
409
642
  const [i, n, r, o] = typeof e === "string" ? AST.#d(e, this.#e, s) : e.toRegExpSource(t);
410
643
  this.#e = this.#e || r;
@@ -414,12 +647,12 @@ class AST {
414
647
  let n = "";
415
648
  if (this.isStart()) {
416
649
  if (typeof this.#i[0] === "string") {
417
- const s = this.#i.length === 1 && P.has(this.#i[0]);
650
+ const s = this.#i.length === 1 && it.has(this.#i[0]);
418
651
  if (!s) {
419
- const s = M;
652
+ const s = st;
420
653
  const r = e && s.has(i.charAt(0)) || i.startsWith("\\.") && s.has(i.charAt(2)) || i.startsWith("\\.\\.") && s.has(i.charAt(4));
421
654
  const o = !e && !t && s.has(i.charAt(0));
422
- n = r ? L : o ? A : "";
655
+ n = r ? tt : o ? et : "";
423
656
  }
424
657
  }
425
658
  }
@@ -428,7 +661,7 @@ class AST {
428
661
  r = "(?:$|\\/)";
429
662
  }
430
663
  const o = n + i + r;
431
- return [ o, E(i), this.#e = !!this.#e, this.#s ];
664
+ return [ o, Y(i), this.#e = !!this.#e, this.#s ];
432
665
  }
433
666
  const s = this.type === "*" || this.type === "+";
434
667
  const i = this.type === "!" ? "(?:(?!(?:" : "(?:";
@@ -438,9 +671,9 @@ class AST {
438
671
  this.#i = [ t ];
439
672
  this.type = null;
440
673
  this.#e = undefined;
441
- return [ t, E(this.toString()), false, false ];
674
+ return [ t, Y(this.toString()), false, false ];
442
675
  }
443
- let r = !s || t || e || !A ? "" : this.#p(true);
676
+ let r = !s || t || e || !et ? "" : this.#p(true);
444
677
  if (r === n) {
445
678
  r = "";
446
679
  }
@@ -449,12 +682,12 @@ class AST {
449
682
  }
450
683
  let o = "";
451
684
  if (this.type === "!" && this.#c) {
452
- o = (this.isStart() && !e ? A : "") + D;
685
+ o = (this.isStart() && !e ? et : "") + at;
453
686
  } else {
454
- const s = this.type === "!" ? "))" + (this.isStart() && !e && !t ? A : "") + O + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && r ? ")" : this.type === "*" && r ? `)?` : `)${this.type}`;
687
+ const s = this.type === "!" ? "))" + (this.isStart() && !e && !t ? et : "") + ht + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && r ? ")" : this.type === "*" && r ? `)?` : `)${this.type}`;
455
688
  o = i + n + s;
456
689
  }
457
- return [ o, E(n), this.#e = !!this.#e, this.#s ];
690
+ return [ o, Y(n), this.#e = !!this.#e, this.#s ];
458
691
  }
459
692
  #p(t) {
460
693
  return this.#i.map((e => {
@@ -474,7 +707,7 @@ class AST {
474
707
  const h = t.charAt(o);
475
708
  if (i) {
476
709
  i = false;
477
- n += (F.has(h) ? "\\" : "") + h;
710
+ n += (nt.has(h) ? "\\" : "") + h;
478
711
  continue;
479
712
  }
480
713
  if (h === "\\") {
@@ -486,7 +719,7 @@ class AST {
486
719
  continue;
487
720
  }
488
721
  if (h === "[") {
489
- const [s, i, h, a] = x(t, o);
722
+ const [s, i, h, a] = K(t, o);
490
723
  if (h) {
491
724
  n += s;
492
725
  r = r || i;
@@ -496,102 +729,107 @@ class AST {
496
729
  }
497
730
  }
498
731
  if (h === "*") {
499
- if (s && t === "*") n += D; else n += O;
732
+ n += s && t === "*" ? at : ht;
500
733
  e = true;
501
734
  continue;
502
735
  }
503
736
  if (h === "?") {
504
- n += z;
737
+ n += ot;
505
738
  e = true;
506
739
  continue;
507
740
  }
508
- n += R(h);
741
+ n += rt(h);
509
742
  }
510
- return [ n, E(t), !!e, r ];
743
+ return [ n, Y(t), !!e, r ];
511
744
  }
512
745
  }
513
746
 
514
- const N = (t, {windowsPathsNoEscape: e = false} = {}) => e ? t.replace(/[?*()[\]]/g, "[$&]") : t.replace(/[?*()[\]\\]/g, "\\$&");
747
+ const lt = (t, {windowsPathsNoEscape: e = false, magicalBraces: s = false} = {}) => {
748
+ if (s) {
749
+ return e ? t.replace(/[?*()[\]{}]/g, "[$&]") : t.replace(/[?*()[\]\\{}]/g, "\\$&");
750
+ }
751
+ return e ? t.replace(/[?*()[\]]/g, "[$&]") : t.replace(/[?*()[\]\\]/g, "\\$&");
752
+ };
515
753
 
516
- const B = (t, e, s = {}) => {
517
- y(e);
754
+ const ct = (t, e, s = {}) => {
755
+ H(e);
518
756
  if (!s.nocomment && e.charAt(0) === "#") {
519
757
  return false;
520
758
  }
521
759
  return new Minimatch(e, s).match(t);
522
760
  };
523
761
 
524
- const W = /^\*+([^+@!?\*\[\(]*)$/;
762
+ const ft = /^\*+([^+@!?\*\[\(]*)$/;
525
763
 
526
- const I = t => e => !e.startsWith(".") && e.endsWith(t);
764
+ const ut = t => e => !e.startsWith(".") && e.endsWith(t);
527
765
 
528
- const _ = t => e => e.endsWith(t);
766
+ const dt = t => e => e.endsWith(t);
529
767
 
530
- const j = t => {
768
+ const pt = t => {
531
769
  t = t.toLowerCase();
532
770
  return e => !e.startsWith(".") && e.toLowerCase().endsWith(t);
533
771
  };
534
772
 
535
- const U = t => {
773
+ const gt = t => {
536
774
  t = t.toLowerCase();
537
775
  return e => e.toLowerCase().endsWith(t);
538
776
  };
539
777
 
540
- const G = /^\*+\.\*+$/;
778
+ const mt = /^\*+\.\*+$/;
541
779
 
542
- const $ = t => !t.startsWith(".") && t.includes(".");
780
+ const wt = t => !t.startsWith(".") && t.includes(".");
543
781
 
544
- const H = t => t !== "." && t !== ".." && t.includes(".");
782
+ const yt = t => t !== "." && t !== ".." && t.includes(".");
545
783
 
546
- const q = /^\.\*+$/;
784
+ const bt = /^\.\*+$/;
547
785
 
548
- const Z = t => t !== "." && t !== ".." && t.startsWith(".");
786
+ const St = t => t !== "." && t !== ".." && t.startsWith(".");
549
787
 
550
- const V = /^\*+$/;
788
+ const kt = /^\*+$/;
551
789
 
552
- const J = t => t.length !== 0 && !t.startsWith(".");
790
+ const xt = t => t.length !== 0 && !t.startsWith(".");
553
791
 
554
- const K = t => t.length !== 0 && t !== "." && t !== "..";
792
+ const vt = t => t.length !== 0 && t !== "." && t !== "..";
555
793
 
556
- const Y = /^\?+([^+@!?\*\[\(]*)?$/;
794
+ const Et = /^\?+([^+@!?\*\[\(]*)?$/;
557
795
 
558
- const X = ([t, e = ""]) => {
559
- const s = st([ t ]);
796
+ const Ct = ([t, e = ""]) => {
797
+ const s = Mt([ t ]);
560
798
  if (!e) return s;
561
799
  e = e.toLowerCase();
562
800
  return t => s(t) && t.toLowerCase().endsWith(e);
563
801
  };
564
802
 
565
- const Q = ([t, e = ""]) => {
566
- const s = it([ t ]);
803
+ const Tt = ([t, e = ""]) => {
804
+ const s = Pt([ t ]);
567
805
  if (!e) return s;
568
806
  e = e.toLowerCase();
569
807
  return t => s(t) && t.toLowerCase().endsWith(e);
570
808
  };
571
809
 
572
- const tt = ([t, e = ""]) => {
573
- const s = it([ t ]);
810
+ const At = ([t, e = ""]) => {
811
+ const s = Pt([ t ]);
574
812
  return !e ? s : t => s(t) && t.endsWith(e);
575
813
  };
576
814
 
577
- const et = ([t, e = ""]) => {
578
- const s = st([ t ]);
815
+ const Lt = ([t, e = ""]) => {
816
+ const s = Mt([ t ]);
579
817
  return !e ? s : t => s(t) && t.endsWith(e);
580
818
  };
581
819
 
582
- const st = ([t]) => {
820
+ const Mt = ([t]) => {
583
821
  const e = t.length;
584
822
  return t => t.length === e && !t.startsWith(".");
585
823
  };
586
824
 
587
- const it = ([t]) => {
825
+ const Pt = ([t]) => {
588
826
  const e = t.length;
589
827
  return t => t.length === e && t !== "." && t !== "..";
590
828
  };
591
829
 
592
- const nt = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
830
+ const Ft = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
593
831
 
594
- const rt = {
832
+ const Rt = {
595
833
  win32: {
596
834
  sep: "\\"
597
835
  },
@@ -600,80 +838,80 @@ const rt = {
600
838
  }
601
839
  };
602
840
 
603
- const ot = nt === "win32" ? rt.win32.sep : rt.posix.sep;
841
+ const Ot = Ft === "win32" ? Rt.win32.sep : Rt.posix.sep;
604
842
 
605
- B.sep = ot;
843
+ ct.sep = Ot;
606
844
 
607
- const ht = Symbol("globstar **");
845
+ const zt = Symbol("globstar **");
608
846
 
609
- B.GLOBSTAR = ht;
847
+ ct.GLOBSTAR = zt;
610
848
 
611
- const at = "[^/]";
849
+ const Dt = "[^/]";
612
850
 
613
- const lt = at + "*?";
851
+ const Nt = Dt + "*?";
614
852
 
615
- const ct = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
853
+ const Bt = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
616
854
 
617
- const ft = "(?:(?!(?:\\/|^)\\.).)*?";
855
+ const Wt = "(?:(?!(?:\\/|^)\\.).)*?";
618
856
 
619
- const ut = (t, e = {}) => s => B(s, t, e);
857
+ const It = (t, e = {}) => s => ct(s, t, e);
620
858
 
621
- B.filter = ut;
859
+ ct.filter = It;
622
860
 
623
- const dt = (t, e = {}) => Object.assign({}, t, e);
861
+ const _t = (t, e = {}) => Object.assign({}, t, e);
624
862
 
625
- const pt = t => {
863
+ const jt = t => {
626
864
  if (!t || typeof t !== "object" || !Object.keys(t).length) {
627
- return B;
865
+ return ct;
628
866
  }
629
- const e = B;
630
- const s = (s, i, n = {}) => e(s, i, dt(t, n));
867
+ const e = ct;
868
+ const s = (s, i, n = {}) => e(s, i, _t(t, n));
631
869
  return Object.assign(s, {
632
870
  Minimatch: class Minimatch extends e.Minimatch {
633
871
  constructor(e, s = {}) {
634
- super(e, dt(t, s));
872
+ super(e, _t(t, s));
635
873
  }
636
874
  static defaults(s) {
637
- return e.defaults(dt(t, s)).Minimatch;
875
+ return e.defaults(_t(t, s)).Minimatch;
638
876
  }
639
877
  },
640
878
  AST: class AST extends e.AST {
641
879
  constructor(e, s, i = {}) {
642
- super(e, s, dt(t, i));
880
+ super(e, s, _t(t, i));
643
881
  }
644
882
  static fromGlob(s, i = {}) {
645
- return e.AST.fromGlob(s, dt(t, i));
883
+ return e.AST.fromGlob(s, _t(t, i));
646
884
  }
647
885
  },
648
- unescape: (s, i = {}) => e.unescape(s, dt(t, i)),
649
- escape: (s, i = {}) => e.escape(s, dt(t, i)),
650
- filter: (s, i = {}) => e.filter(s, dt(t, i)),
651
- defaults: s => e.defaults(dt(t, s)),
652
- makeRe: (s, i = {}) => e.makeRe(s, dt(t, i)),
653
- braceExpand: (s, i = {}) => e.braceExpand(s, dt(t, i)),
654
- match: (s, i, n = {}) => e.match(s, i, dt(t, n)),
886
+ unescape: (s, i = {}) => e.unescape(s, _t(t, i)),
887
+ escape: (s, i = {}) => e.escape(s, _t(t, i)),
888
+ filter: (s, i = {}) => e.filter(s, _t(t, i)),
889
+ defaults: s => e.defaults(_t(t, s)),
890
+ makeRe: (s, i = {}) => e.makeRe(s, _t(t, i)),
891
+ braceExpand: (s, i = {}) => e.braceExpand(s, _t(t, i)),
892
+ match: (s, i, n = {}) => e.match(s, i, _t(t, n)),
655
893
  sep: e.sep,
656
- GLOBSTAR: ht
894
+ GLOBSTAR: zt
657
895
  });
658
896
  };
659
897
 
660
- B.defaults = pt;
898
+ ct.defaults = jt;
661
899
 
662
- const gt = (e, s = {}) => {
663
- y(e);
664
- if (s.nobrace || !/\{(?:(?!\{).)*\}/.test(e)) {
665
- return [ e ];
900
+ const $t = (t, e = {}) => {
901
+ H(t);
902
+ if (e.nobrace || !/\{(?:(?!\{).)*\}/.test(t)) {
903
+ return [ t ];
666
904
  }
667
- return t(e);
905
+ return W(t);
668
906
  };
669
907
 
670
- B.braceExpand = gt;
908
+ ct.braceExpand = $t;
671
909
 
672
- const mt = (t, e = {}) => new Minimatch(t, e).makeRe();
910
+ const Ut = (t, e = {}) => new Minimatch(t, e).makeRe();
673
911
 
674
- B.makeRe = mt;
912
+ ct.makeRe = Ut;
675
913
 
676
- const wt = (t, e, s = {}) => {
914
+ const Gt = (t, e, s = {}) => {
677
915
  const i = new Minimatch(e, s);
678
916
  t = t.filter((t => i.match(t)));
679
917
  if (i.options.nonull && !t.length) {
@@ -682,11 +920,11 @@ const wt = (t, e, s = {}) => {
682
920
  return t;
683
921
  };
684
922
 
685
- B.match = wt;
923
+ ct.match = Gt;
686
924
 
687
- const yt = /[?*]|[+@!]\(.*?\)|\[|\]/;
925
+ const Ht = /[?*]|[+@!]\(.*?\)|\[|\]/;
688
926
 
689
- const bt = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
927
+ const Zt = t => t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
690
928
 
691
929
  class Minimatch {
692
930
  options;
@@ -707,11 +945,11 @@ class Minimatch {
707
945
  windowsNoMagicRoot;
708
946
  regexp;
709
947
  constructor(t, e = {}) {
710
- y(t);
948
+ H(t);
711
949
  e = e || {};
712
950
  this.options = e;
713
951
  this.pattern = t;
714
- this.platform = e.platform || nt;
952
+ this.platform = e.platform || Ft;
715
953
  this.isWindows = this.platform === "win32";
716
954
  this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === false;
717
955
  if (this.windowsPathsNoEscape) {
@@ -765,7 +1003,7 @@ class Minimatch {
765
1003
  this.debug(this.pattern, this.globParts);
766
1004
  let i = this.globParts.map(((t, e, s) => {
767
1005
  if (this.isWindows && this.windowsNoMagicRoot) {
768
- const e = t[0] === "" && t[1] === "" && (t[2] === "?" || !yt.test(t[2])) && !yt.test(t[3]);
1006
+ const e = t[0] === "" && t[1] === "" && (t[2] === "?" || !Ht.test(t[2])) && !Ht.test(t[3]);
769
1007
  const s = /^[a-z]:/i.test(t[0]);
770
1008
  if (e) {
771
1009
  return [ ...t.slice(0, 4), ...t.slice(4).map((t => this.parse(t))) ];
@@ -1032,7 +1270,7 @@ class Minimatch {
1032
1270
  if (l === false) {
1033
1271
  return false;
1034
1272
  }
1035
- if (l === ht) {
1273
+ if (l === zt) {
1036
1274
  this.debug("GLOBSTAR", [ e, l, c ]);
1037
1275
  var f = r;
1038
1276
  var u = o + 1;
@@ -1087,25 +1325,25 @@ class Minimatch {
1087
1325
  }
1088
1326
  }
1089
1327
  braceExpand() {
1090
- return gt(this.pattern, this.options);
1328
+ return $t(this.pattern, this.options);
1091
1329
  }
1092
1330
  parse(t) {
1093
- y(t);
1331
+ H(t);
1094
1332
  const e = this.options;
1095
- if (t === "**") return ht;
1333
+ if (t === "**") return zt;
1096
1334
  if (t === "") return "";
1097
1335
  let s;
1098
1336
  let i = null;
1099
- if (s = t.match(V)) {
1100
- i = e.dot ? K : J;
1101
- } else if (s = t.match(W)) {
1102
- i = (e.nocase ? e.dot ? U : j : e.dot ? _ : I)(s[1]);
1103
- } else if (s = t.match(Y)) {
1104
- i = (e.nocase ? e.dot ? Q : X : e.dot ? tt : et)(s);
1105
- } else if (s = t.match(G)) {
1106
- i = e.dot ? H : $;
1107
- } else if (s = t.match(q)) {
1108
- i = Z;
1337
+ if (s = t.match(kt)) {
1338
+ i = e.dot ? vt : xt;
1339
+ } else if (s = t.match(ft)) {
1340
+ i = (e.nocase ? e.dot ? gt : pt : e.dot ? dt : ut)(s[1]);
1341
+ } else if (s = t.match(Et)) {
1342
+ i = (e.nocase ? e.dot ? Tt : Ct : e.dot ? At : Lt)(s);
1343
+ } else if (s = t.match(mt)) {
1344
+ i = e.dot ? yt : wt;
1345
+ } else if (s = t.match(bt)) {
1346
+ i = St;
1109
1347
  }
1110
1348
  const n = AST.fromGlob(t, this.options).toMMPattern();
1111
1349
  if (i && typeof n === "object") {
@@ -1123,38 +1361,49 @@ class Minimatch {
1123
1361
  return this.regexp;
1124
1362
  }
1125
1363
  const e = this.options;
1126
- const s = e.noglobstar ? lt : e.dot ? ct : ft;
1364
+ const s = e.noglobstar ? Nt : e.dot ? Bt : Wt;
1127
1365
  const i = new Set(e.nocase ? [ "i" ] : []);
1128
1366
  let n = t.map((t => {
1129
1367
  const e = t.map((t => {
1130
1368
  if (t instanceof RegExp) {
1131
1369
  for (const e of t.flags.split("")) i.add(e);
1132
1370
  }
1133
- return typeof t === "string" ? bt(t) : t === ht ? ht : t._src;
1371
+ return typeof t === "string" ? Zt(t) : t === zt ? zt : t._src;
1134
1372
  }));
1135
1373
  e.forEach(((t, i) => {
1136
1374
  const n = e[i + 1];
1137
1375
  const r = e[i - 1];
1138
- if (t !== ht || r === ht) {
1376
+ if (t !== zt || r === zt) {
1139
1377
  return;
1140
1378
  }
1141
1379
  if (r === undefined) {
1142
- if (n !== undefined && n !== ht) {
1380
+ if (n !== undefined && n !== zt) {
1143
1381
  e[i + 1] = "(?:\\/|" + s + "\\/)?" + n;
1144
1382
  } else {
1145
1383
  e[i] = s;
1146
1384
  }
1147
1385
  } else if (n === undefined) {
1148
- e[i - 1] = r + "(?:\\/|" + s + ")?";
1149
- } else if (n !== ht) {
1386
+ e[i - 1] = r + "(?:\\/|\\/" + s + ")?";
1387
+ } else if (n !== zt) {
1150
1388
  e[i - 1] = r + "(?:\\/|\\/" + s + "\\/)" + n;
1151
- e[i + 1] = ht;
1389
+ e[i + 1] = zt;
1152
1390
  }
1153
1391
  }));
1154
- return e.filter((t => t !== ht)).join("/");
1392
+ const n = e.filter((t => t !== zt));
1393
+ if (this.partial && n.length >= 1) {
1394
+ const t = [];
1395
+ for (let e = 1; e <= n.length; e++) {
1396
+ t.push(n.slice(0, e).join("/"));
1397
+ }
1398
+ return "(?:" + t.join("|") + ")";
1399
+ }
1400
+ return n.join("/");
1155
1401
  })).join("|");
1156
1402
  const [r, o] = t.length > 1 ? [ "(?:", ")" ] : [ "", "" ];
1157
1403
  n = "^" + r + n + o + "$";
1404
+ if (this.partial) {
1405
+ n = "^(?:\\/|" + r + n.slice(1, -1) + o + ")$";
1406
+ }
1158
1407
  if (this.negate) n = "^(?!" + n + ").+$";
1159
1408
  try {
1160
1409
  this.regexp = new RegExp(n, [ ...i ].join(""));
@@ -1217,34 +1466,34 @@ class Minimatch {
1217
1466
  return this.negate;
1218
1467
  }
1219
1468
  static defaults(t) {
1220
- return B.defaults(t).Minimatch;
1469
+ return ct.defaults(t).Minimatch;
1221
1470
  }
1222
1471
  }
1223
1472
 
1224
- B.AST = AST;
1473
+ ct.AST = AST;
1225
1474
 
1226
- B.Minimatch = Minimatch;
1475
+ ct.Minimatch = Minimatch;
1227
1476
 
1228
- B.escape = N;
1477
+ ct.escape = lt;
1229
1478
 
1230
- B.unescape = E;
1479
+ ct.unescape = Y;
1231
1480
 
1232
- const St = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
1481
+ const qt = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
1233
1482
 
1234
- const kt = new Set;
1483
+ const Vt = new Set;
1235
1484
 
1236
- const vt = typeof process === "object" && !!process ? process : {};
1485
+ const Jt = typeof process === "object" && !!process ? process : {};
1237
1486
 
1238
- const xt = (t, e, s, i) => {
1239
- typeof vt.emitWarning === "function" ? vt.emitWarning(t, e, s, i) : console.error(`[${s}] ${e}: ${t}`);
1487
+ const Kt = (t, e, s, i) => {
1488
+ typeof Jt.emitWarning === "function" ? Jt.emitWarning(t, e, s, i) : console.error(`[${s}] ${e}: ${t}`);
1240
1489
  };
1241
1490
 
1242
- let Et = globalThis.AbortController;
1491
+ let Yt = globalThis.AbortController;
1243
1492
 
1244
- let Ct = globalThis.AbortSignal;
1493
+ let Xt = globalThis.AbortSignal;
1245
1494
 
1246
- if (typeof Et === "undefined") {
1247
- Ct = class AbortSignal {
1495
+ if (typeof Yt === "undefined") {
1496
+ Xt = class AbortSignal {
1248
1497
  onabort;
1249
1498
  _onabort=[];
1250
1499
  reason;
@@ -1253,11 +1502,11 @@ if (typeof Et === "undefined") {
1253
1502
  this._onabort.push(e);
1254
1503
  }
1255
1504
  };
1256
- Et = class AbortController {
1505
+ Yt = class AbortController {
1257
1506
  constructor() {
1258
1507
  e();
1259
1508
  }
1260
- signal=new Ct;
1509
+ signal=new Xt;
1261
1510
  abort(t) {
1262
1511
  if (this.signal.aborted) return;
1263
1512
  this.signal.reason = t;
@@ -1268,21 +1517,21 @@ if (typeof Et === "undefined") {
1268
1517
  this.signal.onabort?.(t);
1269
1518
  }
1270
1519
  };
1271
- let t = vt.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
1520
+ let t = Jt.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
1272
1521
  const e = () => {
1273
1522
  if (!t) return;
1274
1523
  t = false;
1275
- xt("AbortController is not defined. If using lru-cache in " + "node 14, load an AbortController polyfill from the " + "`node-abort-controller` package. A minimal polyfill is " + "provided for use by LRUCache.fetch(), but it should not be " + "relied upon in other contexts (eg, passing it to other APIs that " + "use AbortController/AbortSignal might have undesirable effects). " + "You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e);
1524
+ Kt("AbortController is not defined. If using lru-cache in " + "node 14, load an AbortController polyfill from the " + "`node-abort-controller` package. A minimal polyfill is " + "provided for use by LRUCache.fetch(), but it should not be " + "relied upon in other contexts (eg, passing it to other APIs that " + "use AbortController/AbortSignal might have undesirable effects). " + "You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e);
1276
1525
  };
1277
1526
  }
1278
1527
 
1279
- const Tt = t => !kt.has(t);
1528
+ const Qt = t => !Vt.has(t);
1280
1529
 
1281
- const Lt = Symbol("type");
1530
+ const te = Symbol("type");
1282
1531
 
1283
- const At = t => t && t === Math.floor(t) && t > 0 && isFinite(t);
1532
+ const ee = t => t && t === Math.floor(t) && t > 0 && isFinite(t);
1284
1533
 
1285
- const Mt = t => !At(t) ? null : t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
1534
+ const se = t => !ee(t) ? null : t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
1286
1535
 
1287
1536
  class ZeroArray extends Array {
1288
1537
  constructor(t) {
@@ -1296,7 +1545,7 @@ class Stack {
1296
1545
  length;
1297
1546
  static #g=false;
1298
1547
  static create(t) {
1299
- const e = Mt(t);
1548
+ const e = se(t);
1300
1549
  if (!e) return [];
1301
1550
  Stack.#g = true;
1302
1551
  const s = new Stack(t, e);
@@ -1325,7 +1574,7 @@ class LRUCache {
1325
1574
  #b;
1326
1575
  #S;
1327
1576
  #k;
1328
- #v;
1577
+ #x;
1329
1578
  ttl;
1330
1579
  ttlResolution;
1331
1580
  ttlAutopurge;
@@ -1341,18 +1590,18 @@ class LRUCache {
1341
1590
  allowStaleOnFetchAbort;
1342
1591
  allowStaleOnFetchRejection;
1343
1592
  ignoreFetchAbort;
1344
- #x;
1593
+ #v;
1345
1594
  #E;
1346
1595
  #C;
1347
1596
  #T;
1348
- #L;
1349
1597
  #A;
1598
+ #L;
1350
1599
  #M;
1351
1600
  #P;
1352
1601
  #F;
1353
1602
  #R;
1354
- #z;
1355
1603
  #O;
1604
+ #z;
1356
1605
  #D;
1357
1606
  #N;
1358
1607
  #B;
@@ -1363,11 +1612,11 @@ class LRUCache {
1363
1612
  return {
1364
1613
  starts: t.#D,
1365
1614
  ttls: t.#N,
1366
- sizes: t.#O,
1615
+ sizes: t.#z,
1367
1616
  keyMap: t.#C,
1368
1617
  keyList: t.#T,
1369
- valList: t.#L,
1370
- next: t.#A,
1618
+ valList: t.#A,
1619
+ next: t.#L,
1371
1620
  prev: t.#M,
1372
1621
  get head() {
1373
1622
  return t.#P;
@@ -1377,11 +1626,11 @@ class LRUCache {
1377
1626
  },
1378
1627
  free: t.#R,
1379
1628
  isBackgroundFetch: e => t.#j(e),
1380
- backgroundFetch: (e, s, i, n) => t.#U(e, s, i, n),
1381
- moveToTail: e => t.#G(e),
1382
- indexes: e => t.#$(e),
1629
+ backgroundFetch: (e, s, i, n) => t.#$(e, s, i, n),
1630
+ moveToTail: e => t.#U(e),
1631
+ indexes: e => t.#G(e),
1383
1632
  rindexes: e => t.#H(e),
1384
- isStale: e => t.#q(e)
1633
+ isStale: e => t.#Z(e)
1385
1634
  };
1386
1635
  }
1387
1636
  get max() {
@@ -1394,13 +1643,13 @@ class LRUCache {
1394
1643
  return this.#E;
1395
1644
  }
1396
1645
  get size() {
1397
- return this.#x;
1646
+ return this.#v;
1398
1647
  }
1399
1648
  get fetchMethod() {
1400
1649
  return this.#k;
1401
1650
  }
1402
1651
  get memoMethod() {
1403
- return this.#v;
1652
+ return this.#x;
1404
1653
  }
1405
1654
  get dispose() {
1406
1655
  return this.#y;
@@ -1412,12 +1661,12 @@ class LRUCache {
1412
1661
  return this.#S;
1413
1662
  }
1414
1663
  constructor(t) {
1415
- const {max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: o, allowStale: h, dispose: a, onInsert: l, disposeAfter: c, noDisposeOnSet: f, noUpdateTTL: u, maxSize: d = 0, maxEntrySize: p = 0, sizeCalculation: g, fetchMethod: m, memoMethod: w, noDeleteOnFetchRejection: y, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: S, allowStaleOnFetchAbort: k, ignoreFetchAbort: v} = t;
1416
- if (e !== 0 && !At(e)) {
1664
+ const {max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: o, allowStale: h, dispose: a, onInsert: l, disposeAfter: c, noDisposeOnSet: f, noUpdateTTL: u, maxSize: d = 0, maxEntrySize: p = 0, sizeCalculation: g, fetchMethod: m, memoMethod: w, noDeleteOnFetchRejection: y, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: S, allowStaleOnFetchAbort: k, ignoreFetchAbort: x} = t;
1665
+ if (e !== 0 && !ee(e)) {
1417
1666
  throw new TypeError("max option must be a nonnegative integer");
1418
1667
  }
1419
- const x = e ? Mt(e) : Array;
1420
- if (!x) {
1668
+ const v = e ? se(e) : Array;
1669
+ if (!v) {
1421
1670
  throw new Error("invalid max value: " + e);
1422
1671
  }
1423
1672
  this.#m = e;
@@ -1435,7 +1684,7 @@ class LRUCache {
1435
1684
  if (w !== undefined && typeof w !== "function") {
1436
1685
  throw new TypeError("memoMethod must be a function if defined");
1437
1686
  }
1438
- this.#v = w;
1687
+ this.#x = w;
1439
1688
  if (m !== undefined && typeof m !== "function") {
1440
1689
  throw new TypeError("fetchMethod must be a function if specified");
1441
1690
  }
@@ -1443,13 +1692,13 @@ class LRUCache {
1443
1692
  this.#W = !!m;
1444
1693
  this.#C = new Map;
1445
1694
  this.#T = new Array(e).fill(undefined);
1446
- this.#L = new Array(e).fill(undefined);
1447
- this.#A = new x(e);
1448
- this.#M = new x(e);
1695
+ this.#A = new Array(e).fill(undefined);
1696
+ this.#L = new v(e);
1697
+ this.#M = new v(e);
1449
1698
  this.#P = 0;
1450
1699
  this.#F = 0;
1451
1700
  this.#R = Stack.create(e);
1452
- this.#x = 0;
1701
+ this.#v = 0;
1453
1702
  this.#E = 0;
1454
1703
  if (typeof a === "function") {
1455
1704
  this.#y = a;
@@ -1459,10 +1708,10 @@ class LRUCache {
1459
1708
  }
1460
1709
  if (typeof c === "function") {
1461
1710
  this.#S = c;
1462
- this.#z = [];
1711
+ this.#O = [];
1463
1712
  } else {
1464
1713
  this.#S = undefined;
1465
- this.#z = undefined;
1714
+ this.#O = undefined;
1466
1715
  }
1467
1716
  this.#B = !!this.#y;
1468
1717
  this.#_ = !!this.#b;
@@ -1472,27 +1721,27 @@ class LRUCache {
1472
1721
  this.noDeleteOnFetchRejection = !!y;
1473
1722
  this.allowStaleOnFetchRejection = !!S;
1474
1723
  this.allowStaleOnFetchAbort = !!k;
1475
- this.ignoreFetchAbort = !!v;
1724
+ this.ignoreFetchAbort = !!x;
1476
1725
  if (this.maxEntrySize !== 0) {
1477
1726
  if (this.#w !== 0) {
1478
- if (!At(this.#w)) {
1727
+ if (!ee(this.#w)) {
1479
1728
  throw new TypeError("maxSize must be a positive integer if specified");
1480
1729
  }
1481
1730
  }
1482
- if (!At(this.maxEntrySize)) {
1731
+ if (!ee(this.maxEntrySize)) {
1483
1732
  throw new TypeError("maxEntrySize must be a positive integer if specified");
1484
1733
  }
1485
- this.#Z();
1734
+ this.#q();
1486
1735
  }
1487
1736
  this.allowStale = !!h;
1488
1737
  this.noDeleteOnStaleGet = !!b;
1489
1738
  this.updateAgeOnGet = !!r;
1490
1739
  this.updateAgeOnHas = !!o;
1491
- this.ttlResolution = At(i) || i === 0 ? i : 1;
1740
+ this.ttlResolution = ee(i) || i === 0 ? i : 1;
1492
1741
  this.ttlAutopurge = !!n;
1493
1742
  this.ttl = s || 0;
1494
1743
  if (this.ttl) {
1495
- if (!At(this.ttl)) {
1744
+ if (!ee(this.ttl)) {
1496
1745
  throw new TypeError("ttl must be a positive integer if specified");
1497
1746
  }
1498
1747
  this.#V();
@@ -1502,10 +1751,10 @@ class LRUCache {
1502
1751
  }
1503
1752
  if (!this.ttlAutopurge && !this.#m && !this.#w) {
1504
1753
  const t = "LRU_CACHE_UNBOUNDED";
1505
- if (Tt(t)) {
1506
- kt.add(t);
1754
+ if (Qt(t)) {
1755
+ Vt.add(t);
1507
1756
  const e = "TTL caching without ttlAutopurge, max, or maxSize can " + "result in unbounded memory consumption.";
1508
- xt(e, "UnboundedCacheWarning", t, LRUCache);
1757
+ Kt(e, "UnboundedCacheWarning", t, LRUCache);
1509
1758
  }
1510
1759
  }
1511
1760
  }
@@ -1517,12 +1766,12 @@ class LRUCache {
1517
1766
  const e = new ZeroArray(this.#m);
1518
1767
  this.#N = t;
1519
1768
  this.#D = e;
1520
- this.#J = (s, i, n = St.now()) => {
1769
+ this.#J = (s, i, n = qt.now()) => {
1521
1770
  e[s] = i !== 0 ? n : 0;
1522
1771
  t[s] = i;
1523
1772
  if (i !== 0 && this.ttlAutopurge) {
1524
1773
  const t = setTimeout((() => {
1525
- if (this.#q(s)) {
1774
+ if (this.#Z(s)) {
1526
1775
  this.#K(this.#T[s], "expire");
1527
1776
  }
1528
1777
  }), i + 1);
@@ -1532,7 +1781,7 @@ class LRUCache {
1532
1781
  }
1533
1782
  };
1534
1783
  this.#Y = s => {
1535
- e[s] = t[s] !== 0 ? St.now() : 0;
1784
+ e[s] = t[s] !== 0 ? qt.now() : 0;
1536
1785
  };
1537
1786
  this.#X = (n, r) => {
1538
1787
  if (t[r]) {
@@ -1548,7 +1797,7 @@ class LRUCache {
1548
1797
  };
1549
1798
  let s = 0;
1550
1799
  const i = () => {
1551
- const t = St.now();
1800
+ const t = qt.now();
1552
1801
  if (this.ttlResolution > 0) {
1553
1802
  s = t;
1554
1803
  const e = setTimeout((() => s = 0), this.ttlResolution);
@@ -1571,7 +1820,7 @@ class LRUCache {
1571
1820
  const a = (s || i()) - h;
1572
1821
  return o - a;
1573
1822
  };
1574
- this.#q = n => {
1823
+ this.#Z = n => {
1575
1824
  const r = e[n];
1576
1825
  const o = t[n];
1577
1826
  return !!o && !!r && (s || i()) - r > o;
@@ -1580,11 +1829,11 @@ class LRUCache {
1580
1829
  #Y=() => {};
1581
1830
  #X=() => {};
1582
1831
  #J=() => {};
1583
- #q=() => false;
1584
- #Z() {
1832
+ #Z=() => false;
1833
+ #q() {
1585
1834
  const t = new ZeroArray(this.#m);
1586
1835
  this.#E = 0;
1587
- this.#O = t;
1836
+ this.#z = t;
1588
1837
  this.#Q = e => {
1589
1838
  this.#E -= t[e];
1590
1839
  t[e] = 0;
@@ -1593,13 +1842,13 @@ class LRUCache {
1593
1842
  if (this.#j(e)) {
1594
1843
  return 0;
1595
1844
  }
1596
- if (!At(s)) {
1845
+ if (!ee(s)) {
1597
1846
  if (i) {
1598
1847
  if (typeof i !== "function") {
1599
1848
  throw new TypeError("sizeCalculation must be a function");
1600
1849
  }
1601
1850
  s = i(e, t);
1602
- if (!At(s)) {
1851
+ if (!ee(s)) {
1603
1852
  throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1604
1853
  }
1605
1854
  } else {
@@ -1631,13 +1880,13 @@ class LRUCache {
1631
1880
  }
1632
1881
  return 0;
1633
1882
  };
1634
- * #$({allowStale: t = this.allowStale} = {}) {
1635
- if (this.#x) {
1883
+ * #G({allowStale: t = this.allowStale} = {}) {
1884
+ if (this.#v) {
1636
1885
  for (let e = this.#F; true; ) {
1637
1886
  if (!this.#it(e)) {
1638
1887
  break;
1639
1888
  }
1640
- if (t || !this.#q(e)) {
1889
+ if (t || !this.#Z(e)) {
1641
1890
  yield e;
1642
1891
  }
1643
1892
  if (e === this.#P) {
@@ -1649,18 +1898,18 @@ class LRUCache {
1649
1898
  }
1650
1899
  }
1651
1900
  * #H({allowStale: t = this.allowStale} = {}) {
1652
- if (this.#x) {
1901
+ if (this.#v) {
1653
1902
  for (let e = this.#P; true; ) {
1654
1903
  if (!this.#it(e)) {
1655
1904
  break;
1656
1905
  }
1657
- if (t || !this.#q(e)) {
1906
+ if (t || !this.#Z(e)) {
1658
1907
  yield e;
1659
1908
  }
1660
1909
  if (e === this.#F) {
1661
1910
  break;
1662
1911
  } else {
1663
- e = this.#A[e];
1912
+ e = this.#L[e];
1664
1913
  }
1665
1914
  }
1666
1915
  }
@@ -1669,23 +1918,23 @@ class LRUCache {
1669
1918
  return t !== undefined && this.#C.get(this.#T[t]) === t;
1670
1919
  }
1671
1920
  * entries() {
1672
- for (const t of this.#$()) {
1673
- if (this.#L[t] !== undefined && this.#T[t] !== undefined && !this.#j(this.#L[t])) {
1674
- yield [ this.#T[t], this.#L[t] ];
1921
+ for (const t of this.#G()) {
1922
+ if (this.#A[t] !== undefined && this.#T[t] !== undefined && !this.#j(this.#A[t])) {
1923
+ yield [ this.#T[t], this.#A[t] ];
1675
1924
  }
1676
1925
  }
1677
1926
  }
1678
1927
  * rentries() {
1679
1928
  for (const t of this.#H()) {
1680
- if (this.#L[t] !== undefined && this.#T[t] !== undefined && !this.#j(this.#L[t])) {
1681
- yield [ this.#T[t], this.#L[t] ];
1929
+ if (this.#A[t] !== undefined && this.#T[t] !== undefined && !this.#j(this.#A[t])) {
1930
+ yield [ this.#T[t], this.#A[t] ];
1682
1931
  }
1683
1932
  }
1684
1933
  }
1685
1934
  * keys() {
1686
- for (const t of this.#$()) {
1935
+ for (const t of this.#G()) {
1687
1936
  const e = this.#T[t];
1688
- if (e !== undefined && !this.#j(this.#L[t])) {
1937
+ if (e !== undefined && !this.#j(this.#A[t])) {
1689
1938
  yield e;
1690
1939
  }
1691
1940
  }
@@ -1693,24 +1942,24 @@ class LRUCache {
1693
1942
  * rkeys() {
1694
1943
  for (const t of this.#H()) {
1695
1944
  const e = this.#T[t];
1696
- if (e !== undefined && !this.#j(this.#L[t])) {
1945
+ if (e !== undefined && !this.#j(this.#A[t])) {
1697
1946
  yield e;
1698
1947
  }
1699
1948
  }
1700
1949
  }
1701
1950
  * values() {
1702
- for (const t of this.#$()) {
1703
- const e = this.#L[t];
1704
- if (e !== undefined && !this.#j(this.#L[t])) {
1705
- yield this.#L[t];
1951
+ for (const t of this.#G()) {
1952
+ const e = this.#A[t];
1953
+ if (e !== undefined && !this.#j(this.#A[t])) {
1954
+ yield this.#A[t];
1706
1955
  }
1707
1956
  }
1708
1957
  }
1709
1958
  * rvalues() {
1710
1959
  for (const t of this.#H()) {
1711
- const e = this.#L[t];
1712
- if (e !== undefined && !this.#j(this.#L[t])) {
1713
- yield this.#L[t];
1960
+ const e = this.#A[t];
1961
+ if (e !== undefined && !this.#j(this.#A[t])) {
1962
+ yield this.#A[t];
1714
1963
  }
1715
1964
  }
1716
1965
  }
@@ -1719,8 +1968,8 @@ class LRUCache {
1719
1968
  }
1720
1969
  [Symbol.toStringTag]="LRUCache";
1721
1970
  find(t, e = {}) {
1722
- for (const s of this.#$()) {
1723
- const i = this.#L[s];
1971
+ for (const s of this.#G()) {
1972
+ const i = this.#A[s];
1724
1973
  const n = this.#j(i) ? i.__staleWhileFetching : i;
1725
1974
  if (n === undefined) continue;
1726
1975
  if (t(n, this.#T[s], this)) {
@@ -1729,8 +1978,8 @@ class LRUCache {
1729
1978
  }
1730
1979
  }
1731
1980
  forEach(t, e = this) {
1732
- for (const s of this.#$()) {
1733
- const i = this.#L[s];
1981
+ for (const s of this.#G()) {
1982
+ const i = this.#A[s];
1734
1983
  const n = this.#j(i) ? i.__staleWhileFetching : i;
1735
1984
  if (n === undefined) continue;
1736
1985
  t.call(e, n, this.#T[s], this);
@@ -1738,7 +1987,7 @@ class LRUCache {
1738
1987
  }
1739
1988
  rforEach(t, e = this) {
1740
1989
  for (const s of this.#H()) {
1741
- const i = this.#L[s];
1990
+ const i = this.#A[s];
1742
1991
  const n = this.#j(i) ? i.__staleWhileFetching : i;
1743
1992
  if (n === undefined) continue;
1744
1993
  t.call(e, n, this.#T[s], this);
@@ -1749,7 +1998,7 @@ class LRUCache {
1749
1998
  for (const e of this.#H({
1750
1999
  allowStale: true
1751
2000
  })) {
1752
- if (this.#q(e)) {
2001
+ if (this.#Z(e)) {
1753
2002
  this.#K(this.#T[e], "expire");
1754
2003
  t = true;
1755
2004
  }
@@ -1759,7 +2008,7 @@ class LRUCache {
1759
2008
  info(t) {
1760
2009
  const e = this.#C.get(t);
1761
2010
  if (e === undefined) return undefined;
1762
- const s = this.#L[e];
2011
+ const s = this.#A[e];
1763
2012
  const i = this.#j(s) ? s.__staleWhileFetching : s;
1764
2013
  if (i === undefined) return undefined;
1765
2014
  const n = {
@@ -1769,23 +2018,23 @@ class LRUCache {
1769
2018
  const t = this.#N[e];
1770
2019
  const s = this.#D[e];
1771
2020
  if (t && s) {
1772
- const e = t - (St.now() - s);
2021
+ const e = t - (qt.now() - s);
1773
2022
  n.ttl = e;
1774
2023
  n.start = Date.now();
1775
2024
  }
1776
2025
  }
1777
- if (this.#O) {
1778
- n.size = this.#O[e];
2026
+ if (this.#z) {
2027
+ n.size = this.#z[e];
1779
2028
  }
1780
2029
  return n;
1781
2030
  }
1782
2031
  dump() {
1783
2032
  const t = [];
1784
- for (const e of this.#$({
2033
+ for (const e of this.#G({
1785
2034
  allowStale: true
1786
2035
  })) {
1787
2036
  const s = this.#T[e];
1788
- const i = this.#L[e];
2037
+ const i = this.#A[e];
1789
2038
  const n = this.#j(i) ? i.__staleWhileFetching : i;
1790
2039
  if (n === undefined || s === undefined) continue;
1791
2040
  const r = {
@@ -1793,11 +2042,11 @@ class LRUCache {
1793
2042
  };
1794
2043
  if (this.#N && this.#D) {
1795
2044
  r.ttl = this.#N[e];
1796
- const t = St.now() - this.#D[e];
2045
+ const t = qt.now() - this.#D[e];
1797
2046
  r.start = Math.floor(Date.now() - t);
1798
2047
  }
1799
- if (this.#O) {
1800
- r.size = this.#O[e];
2048
+ if (this.#z) {
2049
+ r.size = this.#z[e];
1801
2050
  }
1802
2051
  t.unshift([ s, r ]);
1803
2052
  }
@@ -1808,7 +2057,7 @@ class LRUCache {
1808
2057
  for (const [e, s] of t) {
1809
2058
  if (s.start) {
1810
2059
  const t = Date.now() - s.start;
1811
- s.start = St.now() - t;
2060
+ s.start = qt.now() - t;
1812
2061
  }
1813
2062
  this.set(e, s.value, s);
1814
2063
  }
@@ -1829,16 +2078,16 @@ class LRUCache {
1829
2078
  this.#K(t, "set");
1830
2079
  return this;
1831
2080
  }
1832
- let c = this.#x === 0 ? undefined : this.#C.get(t);
2081
+ let c = this.#v === 0 ? undefined : this.#C.get(t);
1833
2082
  if (c === undefined) {
1834
- c = this.#x === 0 ? this.#F : this.#R.length !== 0 ? this.#R.pop() : this.#x === this.#m ? this.#st(false) : this.#x;
2083
+ c = this.#v === 0 ? this.#F : this.#R.length !== 0 ? this.#R.pop() : this.#v === this.#m ? this.#st(false) : this.#v;
1835
2084
  this.#T[c] = t;
1836
- this.#L[c] = e;
2085
+ this.#A[c] = e;
1837
2086
  this.#C.set(t, c);
1838
- this.#A[this.#F] = c;
2087
+ this.#L[this.#F] = c;
1839
2088
  this.#M[c] = this.#F;
1840
2089
  this.#F = c;
1841
- this.#x++;
2090
+ this.#v++;
1842
2091
  this.#et(c, l, h);
1843
2092
  if (h) h.set = "add";
1844
2093
  a = false;
@@ -1846,8 +2095,8 @@ class LRUCache {
1846
2095
  this.#b?.(e, t, "add");
1847
2096
  }
1848
2097
  } else {
1849
- this.#G(c);
1850
- const s = this.#L[c];
2098
+ this.#U(c);
2099
+ const s = this.#A[c];
1851
2100
  if (e !== s) {
1852
2101
  if (this.#W && this.#j(s)) {
1853
2102
  s.__abortController.abort(new Error("replaced"));
@@ -1857,7 +2106,7 @@ class LRUCache {
1857
2106
  this.#y?.(e, t, "set");
1858
2107
  }
1859
2108
  if (this.#I) {
1860
- this.#z?.push([ e, t, "set" ]);
2109
+ this.#O?.push([ e, t, "set" ]);
1861
2110
  }
1862
2111
  }
1863
2112
  } else if (!r) {
@@ -1865,12 +2114,12 @@ class LRUCache {
1865
2114
  this.#y?.(s, t, "set");
1866
2115
  }
1867
2116
  if (this.#I) {
1868
- this.#z?.push([ s, t, "set" ]);
2117
+ this.#O?.push([ s, t, "set" ]);
1869
2118
  }
1870
2119
  }
1871
2120
  this.#Q(c);
1872
2121
  this.#et(c, l, h);
1873
- this.#L[c] = e;
2122
+ this.#A[c] = e;
1874
2123
  if (h) {
1875
2124
  h.set = "replace";
1876
2125
  const t = s && this.#j(s) ? s.__staleWhileFetching : s;
@@ -1892,8 +2141,8 @@ class LRUCache {
1892
2141
  }
1893
2142
  if (h) this.#X(h, c);
1894
2143
  }
1895
- if (!r && this.#I && this.#z) {
1896
- const t = this.#z;
2144
+ if (!r && this.#I && this.#O) {
2145
+ const t = this.#O;
1897
2146
  let e;
1898
2147
  while (e = t?.shift()) {
1899
2148
  this.#S?.(...e);
@@ -1903,8 +2152,8 @@ class LRUCache {
1903
2152
  }
1904
2153
  pop() {
1905
2154
  try {
1906
- while (this.#x) {
1907
- const t = this.#L[this.#P];
2155
+ while (this.#v) {
2156
+ const t = this.#A[this.#P];
1908
2157
  this.#st(true);
1909
2158
  if (this.#j(t)) {
1910
2159
  if (t.__staleWhileFetching) {
@@ -1915,8 +2164,8 @@ class LRUCache {
1915
2164
  }
1916
2165
  }
1917
2166
  } finally {
1918
- if (this.#I && this.#z) {
1919
- const t = this.#z;
2167
+ if (this.#I && this.#O) {
2168
+ const t = this.#O;
1920
2169
  let e;
1921
2170
  while (e = t?.shift()) {
1922
2171
  this.#S?.(...e);
@@ -1927,7 +2176,7 @@ class LRUCache {
1927
2176
  #st(t) {
1928
2177
  const e = this.#P;
1929
2178
  const s = this.#T[e];
1930
- const i = this.#L[e];
2179
+ const i = this.#A[e];
1931
2180
  if (this.#W && this.#j(i)) {
1932
2181
  i.__abortController.abort(new Error("evicted"));
1933
2182
  } else if (this.#B || this.#I) {
@@ -1935,34 +2184,34 @@ class LRUCache {
1935
2184
  this.#y?.(i, s, "evict");
1936
2185
  }
1937
2186
  if (this.#I) {
1938
- this.#z?.push([ i, s, "evict" ]);
2187
+ this.#O?.push([ i, s, "evict" ]);
1939
2188
  }
1940
2189
  }
1941
2190
  this.#Q(e);
1942
2191
  if (t) {
1943
2192
  this.#T[e] = undefined;
1944
- this.#L[e] = undefined;
2193
+ this.#A[e] = undefined;
1945
2194
  this.#R.push(e);
1946
2195
  }
1947
- if (this.#x === 1) {
2196
+ if (this.#v === 1) {
1948
2197
  this.#P = this.#F = 0;
1949
2198
  this.#R.length = 0;
1950
2199
  } else {
1951
- this.#P = this.#A[e];
2200
+ this.#P = this.#L[e];
1952
2201
  }
1953
2202
  this.#C.delete(s);
1954
- this.#x--;
2203
+ this.#v--;
1955
2204
  return e;
1956
2205
  }
1957
2206
  has(t, e = {}) {
1958
2207
  const {updateAgeOnHas: s = this.updateAgeOnHas, status: i} = e;
1959
2208
  const n = this.#C.get(t);
1960
2209
  if (n !== undefined) {
1961
- const t = this.#L[n];
2210
+ const t = this.#A[n];
1962
2211
  if (this.#j(t) && t.__staleWhileFetching === undefined) {
1963
2212
  return false;
1964
2213
  }
1965
- if (!this.#q(n)) {
2214
+ if (!this.#Z(n)) {
1966
2215
  if (s) {
1967
2216
  this.#Y(n);
1968
2217
  }
@@ -1983,18 +2232,18 @@ class LRUCache {
1983
2232
  peek(t, e = {}) {
1984
2233
  const {allowStale: s = this.allowStale} = e;
1985
2234
  const i = this.#C.get(t);
1986
- if (i === undefined || !s && this.#q(i)) {
2235
+ if (i === undefined || !s && this.#Z(i)) {
1987
2236
  return;
1988
2237
  }
1989
- const n = this.#L[i];
2238
+ const n = this.#A[i];
1990
2239
  return this.#j(n) ? n.__staleWhileFetching : n;
1991
2240
  }
1992
- #U(t, e, s, i) {
1993
- const n = e === undefined ? undefined : this.#L[e];
2241
+ #$(t, e, s, i) {
2242
+ const n = e === undefined ? undefined : this.#A[e];
1994
2243
  if (this.#j(n)) {
1995
2244
  return n;
1996
2245
  }
1997
- const r = new Et;
2246
+ const r = new Yt;
1998
2247
  const {signal: o} = s;
1999
2248
  o?.addEventListener("abort", (() => r.abort(o.reason)), {
2000
2249
  signal: r.signal
@@ -2020,10 +2269,10 @@ class LRUCache {
2020
2269
  return c(r.signal.reason);
2021
2270
  }
2022
2271
  const l = u;
2023
- if (this.#L[e] === u) {
2272
+ if (this.#A[e] === u) {
2024
2273
  if (i === undefined) {
2025
2274
  if (l.__staleWhileFetching) {
2026
- this.#L[e] = l.__staleWhileFetching;
2275
+ this.#A[e] = l.__staleWhileFetching;
2027
2276
  } else {
2028
2277
  this.#K(t, "fetch");
2029
2278
  }
@@ -2047,12 +2296,12 @@ class LRUCache {
2047
2296
  const h = o || s.allowStaleOnFetchRejection;
2048
2297
  const a = h || s.noDeleteOnFetchRejection;
2049
2298
  const l = u;
2050
- if (this.#L[e] === u) {
2299
+ if (this.#A[e] === u) {
2051
2300
  const s = !a || l.__staleWhileFetching === undefined;
2052
2301
  if (s) {
2053
2302
  this.#K(t, "fetch");
2054
2303
  } else if (!o) {
2055
- this.#L[e] = l.__staleWhileFetching;
2304
+ this.#A[e] = l.__staleWhileFetching;
2056
2305
  }
2057
2306
  }
2058
2307
  if (h) {
@@ -2092,14 +2341,14 @@ class LRUCache {
2092
2341
  });
2093
2342
  e = this.#C.get(t);
2094
2343
  } else {
2095
- this.#L[e] = d;
2344
+ this.#A[e] = d;
2096
2345
  }
2097
2346
  return d;
2098
2347
  }
2099
2348
  #j(t) {
2100
2349
  if (!this.#W) return false;
2101
2350
  const e = t;
2102
- return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof Et;
2351
+ return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof Yt;
2103
2352
  }
2104
2353
  async fetch(t, e = {}) {
2105
2354
  const {allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: r = this.ttl, noDisposeOnSet: o = this.noDisposeOnSet, size: h = 0, sizeCalculation: a = this.sizeCalculation, noUpdateTTL: l = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: f = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: d = this.allowStaleOnFetchAbort, context: p, forceRefresh: g = false, status: m, signal: w} = e;
@@ -2131,10 +2380,10 @@ class LRUCache {
2131
2380
  let b = this.#C.get(t);
2132
2381
  if (b === undefined) {
2133
2382
  if (m) m.fetch = "miss";
2134
- const e = this.#U(t, b, y, p);
2383
+ const e = this.#$(t, b, y, p);
2135
2384
  return e.__returned = e;
2136
2385
  } else {
2137
- const e = this.#L[b];
2386
+ const e = this.#A[b];
2138
2387
  if (this.#j(e)) {
2139
2388
  const t = s && e.__staleWhileFetching !== undefined;
2140
2389
  if (m) {
@@ -2143,17 +2392,17 @@ class LRUCache {
2143
2392
  }
2144
2393
  return t ? e.__staleWhileFetching : e.__returned = e;
2145
2394
  }
2146
- const n = this.#q(b);
2395
+ const n = this.#Z(b);
2147
2396
  if (!g && !n) {
2148
2397
  if (m) m.fetch = "hit";
2149
- this.#G(b);
2398
+ this.#U(b);
2150
2399
  if (i) {
2151
2400
  this.#Y(b);
2152
2401
  }
2153
2402
  if (m) this.#X(m, b);
2154
2403
  return e;
2155
2404
  }
2156
- const r = this.#U(t, b, y, p);
2405
+ const r = this.#$(t, b, y, p);
2157
2406
  const o = r.__staleWhileFetching !== undefined;
2158
2407
  const h = o && s;
2159
2408
  if (m) {
@@ -2169,7 +2418,7 @@ class LRUCache {
2169
2418
  return s;
2170
2419
  }
2171
2420
  memo(t, e = {}) {
2172
- const s = this.#v;
2421
+ const s = this.#x;
2173
2422
  if (!s) {
2174
2423
  throw new Error("no memoMethod provided to constructor");
2175
2424
  }
@@ -2187,10 +2436,10 @@ class LRUCache {
2187
2436
  const {allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: r} = e;
2188
2437
  const o = this.#C.get(t);
2189
2438
  if (o !== undefined) {
2190
- const e = this.#L[o];
2439
+ const e = this.#A[o];
2191
2440
  const h = this.#j(e);
2192
2441
  if (r) this.#X(r, o);
2193
- if (this.#q(o)) {
2442
+ if (this.#Z(o)) {
2194
2443
  if (r) r.get = "stale";
2195
2444
  if (!h) {
2196
2445
  if (!n) {
@@ -2209,7 +2458,7 @@ class LRUCache {
2209
2458
  if (h) {
2210
2459
  return e.__staleWhileFetching;
2211
2460
  }
2212
- this.#G(o);
2461
+ this.#U(o);
2213
2462
  if (i) {
2214
2463
  this.#Y(o);
2215
2464
  }
@@ -2221,14 +2470,14 @@ class LRUCache {
2221
2470
  }
2222
2471
  #nt(t, e) {
2223
2472
  this.#M[e] = t;
2224
- this.#A[t] = e;
2473
+ this.#L[t] = e;
2225
2474
  }
2226
- #G(t) {
2475
+ #U(t) {
2227
2476
  if (t !== this.#F) {
2228
2477
  if (t === this.#P) {
2229
- this.#P = this.#A[t];
2478
+ this.#P = this.#L[t];
2230
2479
  } else {
2231
- this.#nt(this.#M[t], this.#A[t]);
2480
+ this.#nt(this.#M[t], this.#L[t]);
2232
2481
  }
2233
2482
  this.#nt(this.#F, t);
2234
2483
  this.#F = t;
@@ -2239,15 +2488,15 @@ class LRUCache {
2239
2488
  }
2240
2489
  #K(t, e) {
2241
2490
  let s = false;
2242
- if (this.#x !== 0) {
2491
+ if (this.#v !== 0) {
2243
2492
  const i = this.#C.get(t);
2244
2493
  if (i !== undefined) {
2245
2494
  s = true;
2246
- if (this.#x === 1) {
2495
+ if (this.#v === 1) {
2247
2496
  this.#rt(e);
2248
2497
  } else {
2249
2498
  this.#Q(i);
2250
- const s = this.#L[i];
2499
+ const s = this.#A[i];
2251
2500
  if (this.#j(s)) {
2252
2501
  s.__abortController.abort(new Error("deleted"));
2253
2502
  } else if (this.#B || this.#I) {
@@ -2255,29 +2504,29 @@ class LRUCache {
2255
2504
  this.#y?.(s, t, e);
2256
2505
  }
2257
2506
  if (this.#I) {
2258
- this.#z?.push([ s, t, e ]);
2507
+ this.#O?.push([ s, t, e ]);
2259
2508
  }
2260
2509
  }
2261
2510
  this.#C.delete(t);
2262
2511
  this.#T[i] = undefined;
2263
- this.#L[i] = undefined;
2512
+ this.#A[i] = undefined;
2264
2513
  if (i === this.#F) {
2265
2514
  this.#F = this.#M[i];
2266
2515
  } else if (i === this.#P) {
2267
- this.#P = this.#A[i];
2516
+ this.#P = this.#L[i];
2268
2517
  } else {
2269
2518
  const t = this.#M[i];
2270
- this.#A[t] = this.#A[i];
2271
- const e = this.#A[i];
2519
+ this.#L[t] = this.#L[i];
2520
+ const e = this.#L[i];
2272
2521
  this.#M[e] = this.#M[i];
2273
2522
  }
2274
- this.#x--;
2523
+ this.#v--;
2275
2524
  this.#R.push(i);
2276
2525
  }
2277
2526
  }
2278
2527
  }
2279
- if (this.#I && this.#z?.length) {
2280
- const t = this.#z;
2528
+ if (this.#I && this.#O?.length) {
2529
+ const t = this.#O;
2281
2530
  let e;
2282
2531
  while (e = t?.shift()) {
2283
2532
  this.#S?.(...e);
@@ -2292,7 +2541,7 @@ class LRUCache {
2292
2541
  for (const e of this.#H({
2293
2542
  allowStale: true
2294
2543
  })) {
2295
- const s = this.#L[e];
2544
+ const s = this.#A[e];
2296
2545
  if (this.#j(s)) {
2297
2546
  s.__abortController.abort(new Error("deleted"));
2298
2547
  } else {
@@ -2301,27 +2550,27 @@ class LRUCache {
2301
2550
  this.#y?.(s, i, t);
2302
2551
  }
2303
2552
  if (this.#I) {
2304
- this.#z?.push([ s, i, t ]);
2553
+ this.#O?.push([ s, i, t ]);
2305
2554
  }
2306
2555
  }
2307
2556
  }
2308
2557
  this.#C.clear();
2309
- this.#L.fill(undefined);
2558
+ this.#A.fill(undefined);
2310
2559
  this.#T.fill(undefined);
2311
2560
  if (this.#N && this.#D) {
2312
2561
  this.#N.fill(0);
2313
2562
  this.#D.fill(0);
2314
2563
  }
2315
- if (this.#O) {
2316
- this.#O.fill(0);
2564
+ if (this.#z) {
2565
+ this.#z.fill(0);
2317
2566
  }
2318
2567
  this.#P = 0;
2319
2568
  this.#F = 0;
2320
2569
  this.#R.length = 0;
2321
2570
  this.#E = 0;
2322
- this.#x = 0;
2323
- if (this.#I && this.#z) {
2324
- const t = this.#z;
2571
+ this.#v = 0;
2572
+ if (this.#I && this.#O) {
2573
+ const t = this.#O;
2325
2574
  let e;
2326
2575
  while (e = t?.shift()) {
2327
2576
  this.#S?.(...e);
@@ -2330,88 +2579,88 @@ class LRUCache {
2330
2579
  }
2331
2580
  }
2332
2581
 
2333
- const Pt = typeof process === "object" && process ? process : {
2582
+ const ie = typeof process === "object" && process ? process : {
2334
2583
  stdout: null,
2335
2584
  stderr: null
2336
2585
  };
2337
2586
 
2338
- const Ft = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof g || Rt(t) || zt(t));
2587
+ const ne = t => !!t && typeof t === "object" && (t instanceof Minipass || t instanceof p || re(t) || oe(t));
2339
2588
 
2340
- const Rt = t => !!t && typeof t === "object" && t instanceof p && typeof t.pipe === "function" && t.pipe !== g.Writable.prototype.pipe;
2589
+ const re = t => !!t && typeof t === "object" && t instanceof d && typeof t.pipe === "function" && t.pipe !== p.Writable.prototype.pipe;
2341
2590
 
2342
- const zt = t => !!t && typeof t === "object" && t instanceof p && typeof t.write === "function" && typeof t.end === "function";
2591
+ const oe = t => !!t && typeof t === "object" && t instanceof d && typeof t.write === "function" && typeof t.end === "function";
2343
2592
 
2344
- const Ot = Symbol("EOF");
2593
+ const he = Symbol("EOF");
2345
2594
 
2346
- const Dt = Symbol("maybeEmitEnd");
2595
+ const ae = Symbol("maybeEmitEnd");
2347
2596
 
2348
- const Nt = Symbol("emittedEnd");
2597
+ const le = Symbol("emittedEnd");
2349
2598
 
2350
- const Bt = Symbol("emittingEnd");
2599
+ const ce = Symbol("emittingEnd");
2351
2600
 
2352
- const Wt = Symbol("emittedError");
2601
+ const fe = Symbol("emittedError");
2353
2602
 
2354
- const It = Symbol("closed");
2603
+ const ue = Symbol("closed");
2355
2604
 
2356
- const _t = Symbol("read");
2605
+ const de = Symbol("read");
2357
2606
 
2358
- const jt = Symbol("flush");
2607
+ const pe = Symbol("flush");
2359
2608
 
2360
- const Ut = Symbol("flushChunk");
2609
+ const ge = Symbol("flushChunk");
2361
2610
 
2362
- const Gt = Symbol("encoding");
2611
+ const me = Symbol("encoding");
2363
2612
 
2364
- const $t = Symbol("decoder");
2613
+ const we = Symbol("decoder");
2365
2614
 
2366
- const Ht = Symbol("flowing");
2615
+ const ye = Symbol("flowing");
2367
2616
 
2368
- const qt = Symbol("paused");
2617
+ const be = Symbol("paused");
2369
2618
 
2370
- const Zt = Symbol("resume");
2619
+ const Se = Symbol("resume");
2371
2620
 
2372
- const Vt = Symbol("buffer");
2621
+ const ke = Symbol("buffer");
2373
2622
 
2374
- const Jt = Symbol("pipes");
2623
+ const xe = Symbol("pipes");
2375
2624
 
2376
- const Kt = Symbol("bufferLength");
2625
+ const ve = Symbol("bufferLength");
2377
2626
 
2378
- const Yt = Symbol("bufferPush");
2627
+ const Ee = Symbol("bufferPush");
2379
2628
 
2380
- const Xt = Symbol("bufferShift");
2629
+ const Ce = Symbol("bufferShift");
2381
2630
 
2382
- const Qt = Symbol("objectMode");
2631
+ const Te = Symbol("objectMode");
2383
2632
 
2384
- const te = Symbol("destroyed");
2633
+ const Ae = Symbol("destroyed");
2385
2634
 
2386
- const ee = Symbol("error");
2635
+ const Le = Symbol("error");
2387
2636
 
2388
- const se = Symbol("emitData");
2637
+ const Me = Symbol("emitData");
2389
2638
 
2390
- const ie = Symbol("emitEnd");
2639
+ const Pe = Symbol("emitEnd");
2391
2640
 
2392
- const ne = Symbol("emitEnd2");
2641
+ const Fe = Symbol("emitEnd2");
2393
2642
 
2394
- const re = Symbol("async");
2643
+ const Re = Symbol("async");
2395
2644
 
2396
- const oe = Symbol("abort");
2645
+ const Oe = Symbol("abort");
2397
2646
 
2398
- const he = Symbol("aborted");
2647
+ const ze = Symbol("aborted");
2399
2648
 
2400
- const ae = Symbol("signal");
2649
+ const De = Symbol("signal");
2401
2650
 
2402
- const le = Symbol("dataListeners");
2651
+ const Ne = Symbol("dataListeners");
2403
2652
 
2404
- const ce = Symbol("discarded");
2653
+ const Be = Symbol("discarded");
2405
2654
 
2406
- const fe = t => Promise.resolve().then(t);
2655
+ const We = t => Promise.resolve().then(t);
2407
2656
 
2408
- const ue = t => t();
2657
+ const Ie = t => t();
2409
2658
 
2410
- const de = t => t === "end" || t === "finish" || t === "prefinish";
2659
+ const _e = t => t === "end" || t === "finish" || t === "prefinish";
2411
2660
 
2412
- const pe = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
2661
+ const je = t => t instanceof ArrayBuffer || !!t && typeof t === "object" && t.constructor && t.constructor.name === "ArrayBuffer" && t.byteLength >= 0;
2413
2662
 
2414
- const ge = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
2663
+ const $e = t => !Buffer.isBuffer(t) && ArrayBuffer.isView(t);
2415
2664
 
2416
2665
  class Pipe {
2417
2666
  src;
@@ -2422,7 +2671,7 @@ class Pipe {
2422
2671
  this.src = t;
2423
2672
  this.dest = e;
2424
2673
  this.opts = s;
2425
- this.ondrain = () => t[Zt]();
2674
+ this.ondrain = () => t[Se]();
2426
2675
  this.dest.on("drain", this.ondrain);
2427
2676
  }
2428
2677
  unpipe() {
@@ -2447,30 +2696,30 @@ class PipeProxyErrors extends Pipe {
2447
2696
  }
2448
2697
  }
2449
2698
 
2450
- const me = t => !!t.objectMode;
2451
-
2452
- const we = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
2453
-
2454
- class Minipass extends p {
2455
- [Ht]=false;
2456
- [qt]=false;
2457
- [Jt]=[];
2458
- [Vt]=[];
2459
- [Qt];
2460
- [Gt];
2461
- [re];
2462
- [$t];
2463
- [Ot]=false;
2464
- [Nt]=false;
2465
- [Bt]=false;
2466
- [It]=false;
2467
- [Wt]=null;
2468
- [Kt]=0;
2469
- [te]=false;
2470
- [ae];
2699
+ const Ue = t => !!t.objectMode;
2700
+
2701
+ const Ge = t => !t.objectMode && !!t.encoding && t.encoding !== "buffer";
2702
+
2703
+ class Minipass extends d {
2704
+ [ye]=false;
2705
+ [be]=false;
2706
+ [xe]=[];
2707
+ [ke]=[];
2708
+ [Te];
2709
+ [me];
2710
+ [Re];
2711
+ [we];
2471
2712
  [he]=false;
2472
- [le]=0;
2713
+ [le]=false;
2473
2714
  [ce]=false;
2715
+ [ue]=false;
2716
+ [fe]=null;
2717
+ [ve]=0;
2718
+ [Ae]=false;
2719
+ [De];
2720
+ [ze]=false;
2721
+ [Ne]=0;
2722
+ [Be]=false;
2474
2723
  writable=true;
2475
2724
  readable=true;
2476
2725
  constructor(...t) {
@@ -2479,43 +2728,43 @@ class Minipass extends p {
2479
2728
  if (e.objectMode && typeof e.encoding === "string") {
2480
2729
  throw new TypeError("Encoding and objectMode may not be used together");
2481
2730
  }
2482
- if (me(e)) {
2483
- this[Qt] = true;
2484
- this[Gt] = null;
2485
- } else if (we(e)) {
2486
- this[Gt] = e.encoding;
2487
- this[Qt] = false;
2731
+ if (Ue(e)) {
2732
+ this[Te] = true;
2733
+ this[me] = null;
2734
+ } else if (Ge(e)) {
2735
+ this[me] = e.encoding;
2736
+ this[Te] = false;
2488
2737
  } else {
2489
- this[Qt] = false;
2490
- this[Gt] = null;
2738
+ this[Te] = false;
2739
+ this[me] = null;
2491
2740
  }
2492
- this[re] = !!e.async;
2493
- this[$t] = this[Gt] ? new m(this[Gt]) : null;
2741
+ this[Re] = !!e.async;
2742
+ this[we] = this[me] ? new g(this[me]) : null;
2494
2743
  if (e && e.debugExposeBuffer === true) {
2495
2744
  Object.defineProperty(this, "buffer", {
2496
- get: () => this[Vt]
2745
+ get: () => this[ke]
2497
2746
  });
2498
2747
  }
2499
2748
  if (e && e.debugExposePipes === true) {
2500
2749
  Object.defineProperty(this, "pipes", {
2501
- get: () => this[Jt]
2750
+ get: () => this[xe]
2502
2751
  });
2503
2752
  }
2504
2753
  const {signal: s} = e;
2505
2754
  if (s) {
2506
- this[ae] = s;
2755
+ this[De] = s;
2507
2756
  if (s.aborted) {
2508
- this[oe]();
2757
+ this[Oe]();
2509
2758
  } else {
2510
- s.addEventListener("abort", (() => this[oe]()));
2759
+ s.addEventListener("abort", (() => this[Oe]()));
2511
2760
  }
2512
2761
  }
2513
2762
  }
2514
2763
  get bufferLength() {
2515
- return this[Kt];
2764
+ return this[ve];
2516
2765
  }
2517
2766
  get encoding() {
2518
- return this[Gt];
2767
+ return this[me];
2519
2768
  }
2520
2769
  set encoding(t) {
2521
2770
  throw new Error("Encoding must be set at instantiation time");
@@ -2524,30 +2773,30 @@ class Minipass extends p {
2524
2773
  throw new Error("Encoding must be set at instantiation time");
2525
2774
  }
2526
2775
  get objectMode() {
2527
- return this[Qt];
2776
+ return this[Te];
2528
2777
  }
2529
2778
  set objectMode(t) {
2530
2779
  throw new Error("objectMode must be set at instantiation time");
2531
2780
  }
2532
2781
  get ["async"]() {
2533
- return this[re];
2782
+ return this[Re];
2534
2783
  }
2535
2784
  set ["async"](t) {
2536
- this[re] = this[re] || !!t;
2785
+ this[Re] = this[Re] || !!t;
2537
2786
  }
2538
- [oe]() {
2539
- this[he] = true;
2540
- this.emit("abort", this[ae]?.reason);
2541
- this.destroy(this[ae]?.reason);
2787
+ [Oe]() {
2788
+ this[ze] = true;
2789
+ this.emit("abort", this[De]?.reason);
2790
+ this.destroy(this[De]?.reason);
2542
2791
  }
2543
2792
  get aborted() {
2544
- return this[he];
2793
+ return this[ze];
2545
2794
  }
2546
2795
  set aborted(t) {}
2547
2796
  write(t, e, s) {
2548
- if (this[he]) return false;
2549
- if (this[Ot]) throw new Error("write after end");
2550
- if (this[te]) {
2797
+ if (this[ze]) return false;
2798
+ if (this[he]) throw new Error("write after end");
2799
+ if (this[Ae]) {
2551
2800
  this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
2552
2801
  code: "ERR_STREAM_DESTROYED"
2553
2802
  }));
@@ -2558,70 +2807,70 @@ class Minipass extends p {
2558
2807
  e = "utf8";
2559
2808
  }
2560
2809
  if (!e) e = "utf8";
2561
- const i = this[re] ? fe : ue;
2562
- if (!this[Qt] && !Buffer.isBuffer(t)) {
2563
- if (ge(t)) {
2810
+ const i = this[Re] ? We : Ie;
2811
+ if (!this[Te] && !Buffer.isBuffer(t)) {
2812
+ if ($e(t)) {
2564
2813
  t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
2565
- } else if (pe(t)) {
2814
+ } else if (je(t)) {
2566
2815
  t = Buffer.from(t);
2567
2816
  } else if (typeof t !== "string") {
2568
2817
  throw new Error("Non-contiguous data written to non-objectMode stream");
2569
2818
  }
2570
2819
  }
2571
- if (this[Qt]) {
2572
- if (this[Ht] && this[Kt] !== 0) this[jt](true);
2573
- if (this[Ht]) this.emit("data", t); else this[Yt](t);
2574
- if (this[Kt] !== 0) this.emit("readable");
2820
+ if (this[Te]) {
2821
+ if (this[ye] && this[ve] !== 0) this[pe](true);
2822
+ if (this[ye]) this.emit("data", t); else this[Ee](t);
2823
+ if (this[ve] !== 0) this.emit("readable");
2575
2824
  if (s) i(s);
2576
- return this[Ht];
2825
+ return this[ye];
2577
2826
  }
2578
2827
  if (!t.length) {
2579
- if (this[Kt] !== 0) this.emit("readable");
2828
+ if (this[ve] !== 0) this.emit("readable");
2580
2829
  if (s) i(s);
2581
- return this[Ht];
2830
+ return this[ye];
2582
2831
  }
2583
- if (typeof t === "string" && !(e === this[Gt] && !this[$t]?.lastNeed)) {
2832
+ if (typeof t === "string" && !(e === this[me] && !this[we]?.lastNeed)) {
2584
2833
  t = Buffer.from(t, e);
2585
2834
  }
2586
- if (Buffer.isBuffer(t) && this[Gt]) {
2587
- t = this[$t].write(t);
2835
+ if (Buffer.isBuffer(t) && this[me]) {
2836
+ t = this[we].write(t);
2588
2837
  }
2589
- if (this[Ht] && this[Kt] !== 0) this[jt](true);
2590
- if (this[Ht]) this.emit("data", t); else this[Yt](t);
2591
- if (this[Kt] !== 0) this.emit("readable");
2838
+ if (this[ye] && this[ve] !== 0) this[pe](true);
2839
+ if (this[ye]) this.emit("data", t); else this[Ee](t);
2840
+ if (this[ve] !== 0) this.emit("readable");
2592
2841
  if (s) i(s);
2593
- return this[Ht];
2842
+ return this[ye];
2594
2843
  }
2595
2844
  read(t) {
2596
- if (this[te]) return null;
2597
- this[ce] = false;
2598
- if (this[Kt] === 0 || t === 0 || t && t > this[Kt]) {
2599
- this[Dt]();
2845
+ if (this[Ae]) return null;
2846
+ this[Be] = false;
2847
+ if (this[ve] === 0 || t === 0 || t && t > this[ve]) {
2848
+ this[ae]();
2600
2849
  return null;
2601
2850
  }
2602
- if (this[Qt]) t = null;
2603
- if (this[Vt].length > 1 && !this[Qt]) {
2604
- this[Vt] = [ this[Gt] ? this[Vt].join("") : Buffer.concat(this[Vt], this[Kt]) ];
2851
+ if (this[Te]) t = null;
2852
+ if (this[ke].length > 1 && !this[Te]) {
2853
+ this[ke] = [ this[me] ? this[ke].join("") : Buffer.concat(this[ke], this[ve]) ];
2605
2854
  }
2606
- const e = this[_t](t || null, this[Vt][0]);
2607
- this[Dt]();
2855
+ const e = this[de](t || null, this[ke][0]);
2856
+ this[ae]();
2608
2857
  return e;
2609
2858
  }
2610
- [_t](t, e) {
2611
- if (this[Qt]) this[Xt](); else {
2859
+ [de](t, e) {
2860
+ if (this[Te]) this[Ce](); else {
2612
2861
  const s = e;
2613
- if (t === s.length || t === null) this[Xt](); else if (typeof s === "string") {
2614
- this[Vt][0] = s.slice(t);
2862
+ if (t === s.length || t === null) this[Ce](); else if (typeof s === "string") {
2863
+ this[ke][0] = s.slice(t);
2615
2864
  e = s.slice(0, t);
2616
- this[Kt] -= t;
2865
+ this[ve] -= t;
2617
2866
  } else {
2618
- this[Vt][0] = s.subarray(t);
2867
+ this[ke][0] = s.subarray(t);
2619
2868
  e = s.subarray(0, t);
2620
- this[Kt] -= t;
2869
+ this[ve] -= t;
2621
2870
  }
2622
2871
  }
2623
2872
  this.emit("data", e);
2624
- if (!this[Vt].length && !this[Ot]) this.emit("drain");
2873
+ if (!this[ke].length && !this[he]) this.emit("drain");
2625
2874
  return e;
2626
2875
  }
2627
2876
  end(t, e, s) {
@@ -2635,78 +2884,78 @@ class Minipass extends p {
2635
2884
  }
2636
2885
  if (t !== undefined) this.write(t, e);
2637
2886
  if (s) this.once("end", s);
2638
- this[Ot] = true;
2887
+ this[he] = true;
2639
2888
  this.writable = false;
2640
- if (this[Ht] || !this[qt]) this[Dt]();
2889
+ if (this[ye] || !this[be]) this[ae]();
2641
2890
  return this;
2642
2891
  }
2643
- [Zt]() {
2644
- if (this[te]) return;
2645
- if (!this[le] && !this[Jt].length) {
2646
- this[ce] = true;
2892
+ [Se]() {
2893
+ if (this[Ae]) return;
2894
+ if (!this[Ne] && !this[xe].length) {
2895
+ this[Be] = true;
2647
2896
  }
2648
- this[qt] = false;
2649
- this[Ht] = true;
2897
+ this[be] = false;
2898
+ this[ye] = true;
2650
2899
  this.emit("resume");
2651
- if (this[Vt].length) this[jt](); else if (this[Ot]) this[Dt](); else this.emit("drain");
2900
+ if (this[ke].length) this[pe](); else if (this[he]) this[ae](); else this.emit("drain");
2652
2901
  }
2653
2902
  resume() {
2654
- return this[Zt]();
2903
+ return this[Se]();
2655
2904
  }
2656
2905
  pause() {
2657
- this[Ht] = false;
2658
- this[qt] = true;
2659
- this[ce] = false;
2906
+ this[ye] = false;
2907
+ this[be] = true;
2908
+ this[Be] = false;
2660
2909
  }
2661
2910
  get destroyed() {
2662
- return this[te];
2911
+ return this[Ae];
2663
2912
  }
2664
2913
  get flowing() {
2665
- return this[Ht];
2914
+ return this[ye];
2666
2915
  }
2667
2916
  get paused() {
2668
- return this[qt];
2917
+ return this[be];
2669
2918
  }
2670
- [Yt](t) {
2671
- if (this[Qt]) this[Kt] += 1; else this[Kt] += t.length;
2672
- this[Vt].push(t);
2919
+ [Ee](t) {
2920
+ if (this[Te]) this[ve] += 1; else this[ve] += t.length;
2921
+ this[ke].push(t);
2673
2922
  }
2674
- [Xt]() {
2675
- if (this[Qt]) this[Kt] -= 1; else this[Kt] -= this[Vt][0].length;
2676
- return this[Vt].shift();
2923
+ [Ce]() {
2924
+ if (this[Te]) this[ve] -= 1; else this[ve] -= this[ke][0].length;
2925
+ return this[ke].shift();
2677
2926
  }
2678
- [jt](t = false) {
2679
- do {} while (this[Ut](this[Xt]()) && this[Vt].length);
2680
- if (!t && !this[Vt].length && !this[Ot]) this.emit("drain");
2927
+ [pe](t = false) {
2928
+ do {} while (this[ge](this[Ce]()) && this[ke].length);
2929
+ if (!t && !this[ke].length && !this[he]) this.emit("drain");
2681
2930
  }
2682
- [Ut](t) {
2931
+ [ge](t) {
2683
2932
  this.emit("data", t);
2684
- return this[Ht];
2933
+ return this[ye];
2685
2934
  }
2686
2935
  pipe(t, e) {
2687
- if (this[te]) return t;
2688
- this[ce] = false;
2689
- const s = this[Nt];
2936
+ if (this[Ae]) return t;
2937
+ this[Be] = false;
2938
+ const s = this[le];
2690
2939
  e = e || {};
2691
- if (t === Pt.stdout || t === Pt.stderr) e.end = false; else e.end = e.end !== false;
2940
+ if (t === ie.stdout || t === ie.stderr) e.end = false; else e.end = e.end !== false;
2692
2941
  e.proxyErrors = !!e.proxyErrors;
2693
2942
  if (s) {
2694
2943
  if (e.end) t.end();
2695
2944
  } else {
2696
- this[Jt].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
2697
- if (this[re]) fe((() => this[Zt]())); else this[Zt]();
2945
+ this[xe].push(!e.proxyErrors ? new Pipe(this, t, e) : new PipeProxyErrors(this, t, e));
2946
+ if (this[Re]) We((() => this[Se]())); else this[Se]();
2698
2947
  }
2699
2948
  return t;
2700
2949
  }
2701
2950
  unpipe(t) {
2702
- const e = this[Jt].find((e => e.dest === t));
2951
+ const e = this[xe].find((e => e.dest === t));
2703
2952
  if (e) {
2704
- if (this[Jt].length === 1) {
2705
- if (this[Ht] && this[le] === 0) {
2706
- this[Ht] = false;
2953
+ if (this[xe].length === 1) {
2954
+ if (this[ye] && this[Ne] === 0) {
2955
+ this[ye] = false;
2707
2956
  }
2708
- this[Jt] = [];
2709
- } else this[Jt].splice(this[Jt].indexOf(e), 1);
2957
+ this[xe] = [];
2958
+ } else this[xe].splice(this[xe].indexOf(e), 1);
2710
2959
  e.unpipe();
2711
2960
  }
2712
2961
  }
@@ -2716,19 +2965,19 @@ class Minipass extends p {
2716
2965
  on(t, e) {
2717
2966
  const s = super.on(t, e);
2718
2967
  if (t === "data") {
2719
- this[ce] = false;
2720
- this[le]++;
2721
- if (!this[Jt].length && !this[Ht]) {
2722
- this[Zt]();
2968
+ this[Be] = false;
2969
+ this[Ne]++;
2970
+ if (!this[xe].length && !this[ye]) {
2971
+ this[Se]();
2723
2972
  }
2724
- } else if (t === "readable" && this[Kt] !== 0) {
2973
+ } else if (t === "readable" && this[ve] !== 0) {
2725
2974
  super.emit("readable");
2726
- } else if (de(t) && this[Nt]) {
2975
+ } else if (_e(t) && this[le]) {
2727
2976
  super.emit(t);
2728
2977
  this.removeAllListeners(t);
2729
- } else if (t === "error" && this[Wt]) {
2978
+ } else if (t === "error" && this[fe]) {
2730
2979
  const t = e;
2731
- if (this[re]) fe((() => t.call(this, this[Wt]))); else t.call(this, this[Wt]);
2980
+ if (this[Re]) We((() => t.call(this, this[fe]))); else t.call(this, this[fe]);
2732
2981
  }
2733
2982
  return s;
2734
2983
  }
@@ -2738,9 +2987,9 @@ class Minipass extends p {
2738
2987
  off(t, e) {
2739
2988
  const s = super.off(t, e);
2740
2989
  if (t === "data") {
2741
- this[le] = this.listeners("data").length;
2742
- if (this[le] === 0 && !this[ce] && !this[Jt].length) {
2743
- this[Ht] = false;
2990
+ this[Ne] = this.listeners("data").length;
2991
+ if (this[Ne] === 0 && !this[Be] && !this[xe].length) {
2992
+ this[ye] = false;
2744
2993
  }
2745
2994
  }
2746
2995
  return s;
@@ -2748,49 +2997,49 @@ class Minipass extends p {
2748
2997
  removeAllListeners(t) {
2749
2998
  const e = super.removeAllListeners(t);
2750
2999
  if (t === "data" || t === undefined) {
2751
- this[le] = 0;
2752
- if (!this[ce] && !this[Jt].length) {
2753
- this[Ht] = false;
3000
+ this[Ne] = 0;
3001
+ if (!this[Be] && !this[xe].length) {
3002
+ this[ye] = false;
2754
3003
  }
2755
3004
  }
2756
3005
  return e;
2757
3006
  }
2758
3007
  get emittedEnd() {
2759
- return this[Nt];
3008
+ return this[le];
2760
3009
  }
2761
- [Dt]() {
2762
- if (!this[Bt] && !this[Nt] && !this[te] && this[Vt].length === 0 && this[Ot]) {
2763
- this[Bt] = true;
3010
+ [ae]() {
3011
+ if (!this[ce] && !this[le] && !this[Ae] && this[ke].length === 0 && this[he]) {
3012
+ this[ce] = true;
2764
3013
  this.emit("end");
2765
3014
  this.emit("prefinish");
2766
3015
  this.emit("finish");
2767
- if (this[It]) this.emit("close");
2768
- this[Bt] = false;
3016
+ if (this[ue]) this.emit("close");
3017
+ this[ce] = false;
2769
3018
  }
2770
3019
  }
2771
3020
  emit(t, ...e) {
2772
3021
  const s = e[0];
2773
- if (t !== "error" && t !== "close" && t !== te && this[te]) {
3022
+ if (t !== "error" && t !== "close" && t !== Ae && this[Ae]) {
2774
3023
  return false;
2775
3024
  } else if (t === "data") {
2776
- return !this[Qt] && !s ? false : this[re] ? (fe((() => this[se](s))), true) : this[se](s);
3025
+ return !this[Te] && !s ? false : this[Re] ? (We((() => this[Me](s))), true) : this[Me](s);
2777
3026
  } else if (t === "end") {
2778
- return this[ie]();
3027
+ return this[Pe]();
2779
3028
  } else if (t === "close") {
2780
- this[It] = true;
2781
- if (!this[Nt] && !this[te]) return false;
3029
+ this[ue] = true;
3030
+ if (!this[le] && !this[Ae]) return false;
2782
3031
  const t = super.emit("close");
2783
3032
  this.removeAllListeners("close");
2784
3033
  return t;
2785
3034
  } else if (t === "error") {
2786
- this[Wt] = s;
2787
- super.emit(ee, s);
2788
- const t = !this[ae] || this.listeners("error").length ? super.emit("error", s) : false;
2789
- this[Dt]();
3035
+ this[fe] = s;
3036
+ super.emit(Le, s);
3037
+ const t = !this[De] || this.listeners("error").length ? super.emit("error", s) : false;
3038
+ this[ae]();
2790
3039
  return t;
2791
3040
  } else if (t === "resume") {
2792
3041
  const t = super.emit("resume");
2793
- this[Dt]();
3042
+ this[ae]();
2794
3043
  return t;
2795
3044
  } else if (t === "finish" || t === "prefinish") {
2796
3045
  const e = super.emit(t);
@@ -2798,34 +3047,34 @@ class Minipass extends p {
2798
3047
  return e;
2799
3048
  }
2800
3049
  const i = super.emit(t, ...e);
2801
- this[Dt]();
3050
+ this[ae]();
2802
3051
  return i;
2803
3052
  }
2804
- [se](t) {
2805
- for (const e of this[Jt]) {
3053
+ [Me](t) {
3054
+ for (const e of this[xe]) {
2806
3055
  if (e.dest.write(t) === false) this.pause();
2807
3056
  }
2808
- const e = this[ce] ? false : super.emit("data", t);
2809
- this[Dt]();
3057
+ const e = this[Be] ? false : super.emit("data", t);
3058
+ this[ae]();
2810
3059
  return e;
2811
3060
  }
2812
- [ie]() {
2813
- if (this[Nt]) return false;
2814
- this[Nt] = true;
3061
+ [Pe]() {
3062
+ if (this[le]) return false;
3063
+ this[le] = true;
2815
3064
  this.readable = false;
2816
- return this[re] ? (fe((() => this[ne]())), true) : this[ne]();
3065
+ return this[Re] ? (We((() => this[Fe]())), true) : this[Fe]();
2817
3066
  }
2818
- [ne]() {
2819
- if (this[$t]) {
2820
- const t = this[$t].end();
3067
+ [Fe]() {
3068
+ if (this[we]) {
3069
+ const t = this[we].end();
2821
3070
  if (t) {
2822
- for (const e of this[Jt]) {
3071
+ for (const e of this[xe]) {
2823
3072
  e.dest.write(t);
2824
3073
  }
2825
- if (!this[ce]) super.emit("data", t);
3074
+ if (!this[Be]) super.emit("data", t);
2826
3075
  }
2827
3076
  }
2828
- for (const t of this[Jt]) {
3077
+ for (const t of this[xe]) {
2829
3078
  t.end();
2830
3079
  }
2831
3080
  const t = super.emit("end");
@@ -2836,31 +3085,31 @@ class Minipass extends p {
2836
3085
  const t = Object.assign([], {
2837
3086
  dataLength: 0
2838
3087
  });
2839
- if (!this[Qt]) t.dataLength = 0;
3088
+ if (!this[Te]) t.dataLength = 0;
2840
3089
  const e = this.promise();
2841
3090
  this.on("data", (e => {
2842
3091
  t.push(e);
2843
- if (!this[Qt]) t.dataLength += e.length;
3092
+ if (!this[Te]) t.dataLength += e.length;
2844
3093
  }));
2845
3094
  await e;
2846
3095
  return t;
2847
3096
  }
2848
3097
  async concat() {
2849
- if (this[Qt]) {
3098
+ if (this[Te]) {
2850
3099
  throw new Error("cannot concat in objectMode");
2851
3100
  }
2852
3101
  const t = await this.collect();
2853
- return this[Gt] ? t.join("") : Buffer.concat(t, t.dataLength);
3102
+ return this[me] ? t.join("") : Buffer.concat(t, t.dataLength);
2854
3103
  }
2855
3104
  async promise() {
2856
3105
  return new Promise(((t, e) => {
2857
- this.on(te, (() => e(new Error("stream destroyed"))));
3106
+ this.on(Ae, (() => e(new Error("stream destroyed"))));
2858
3107
  this.on("error", (t => e(t)));
2859
3108
  this.on("end", (() => t()));
2860
3109
  }));
2861
3110
  }
2862
3111
  [Symbol.asyncIterator]() {
2863
- this[ce] = false;
3112
+ this[Be] = false;
2864
3113
  let t = false;
2865
3114
  const e = async () => {
2866
3115
  this.pause();
@@ -2877,30 +3126,30 @@ class Minipass extends p {
2877
3126
  done: false,
2878
3127
  value: s
2879
3128
  });
2880
- if (this[Ot]) return e();
3129
+ if (this[he]) return e();
2881
3130
  let i;
2882
3131
  let n;
2883
3132
  const r = t => {
2884
3133
  this.off("data", o);
2885
3134
  this.off("end", h);
2886
- this.off(te, a);
3135
+ this.off(Ae, a);
2887
3136
  e();
2888
3137
  n(t);
2889
3138
  };
2890
3139
  const o = t => {
2891
3140
  this.off("error", r);
2892
3141
  this.off("end", h);
2893
- this.off(te, a);
3142
+ this.off(Ae, a);
2894
3143
  this.pause();
2895
3144
  i({
2896
3145
  value: t,
2897
- done: !!this[Ot]
3146
+ done: !!this[he]
2898
3147
  });
2899
3148
  };
2900
3149
  const h = () => {
2901
3150
  this.off("error", r);
2902
3151
  this.off("data", o);
2903
- this.off(te, a);
3152
+ this.off(Ae, a);
2904
3153
  e();
2905
3154
  i({
2906
3155
  done: true,
@@ -2911,7 +3160,7 @@ class Minipass extends p {
2911
3160
  return new Promise(((t, e) => {
2912
3161
  n = e;
2913
3162
  i = t;
2914
- this.once(te, a);
3163
+ this.once(Ae, a);
2915
3164
  this.once("error", r);
2916
3165
  this.once("end", h);
2917
3166
  this.once("data", o);
@@ -2927,12 +3176,12 @@ class Minipass extends p {
2927
3176
  };
2928
3177
  }
2929
3178
  [Symbol.iterator]() {
2930
- this[ce] = false;
3179
+ this[Be] = false;
2931
3180
  let t = false;
2932
3181
  const e = () => {
2933
3182
  this.pause();
2934
- this.off(ee, e);
2935
- this.off(te, e);
3183
+ this.off(Le, e);
3184
+ this.off(Ae, e);
2936
3185
  this.off("end", e);
2937
3186
  t = true;
2938
3187
  return {
@@ -2949,8 +3198,8 @@ class Minipass extends p {
2949
3198
  };
2950
3199
  };
2951
3200
  this.once("end", e);
2952
- this.once(ee, e);
2953
- this.once(te, e);
3201
+ this.once(Le, e);
3202
+ this.once(Ae, e);
2954
3203
  return {
2955
3204
  next: s,
2956
3205
  throw: e,
@@ -2961,110 +3210,110 @@ class Minipass extends p {
2961
3210
  };
2962
3211
  }
2963
3212
  destroy(t) {
2964
- if (this[te]) {
2965
- if (t) this.emit("error", t); else this.emit(te);
3213
+ if (this[Ae]) {
3214
+ if (t) this.emit("error", t); else this.emit(Ae);
2966
3215
  return this;
2967
3216
  }
2968
- this[te] = true;
2969
- this[ce] = true;
2970
- this[Vt].length = 0;
2971
- this[Kt] = 0;
3217
+ this[Ae] = true;
3218
+ this[Be] = true;
3219
+ this[ke].length = 0;
3220
+ this[ve] = 0;
2972
3221
  const e = this;
2973
- if (typeof e.close === "function" && !this[It]) e.close();
2974
- if (t) this.emit("error", t); else this.emit(te);
3222
+ if (typeof e.close === "function" && !this[ue]) e.close();
3223
+ if (t) this.emit("error", t); else this.emit(Ae);
2975
3224
  return this;
2976
3225
  }
2977
3226
  static get isStream() {
2978
- return Ft;
3227
+ return ne;
2979
3228
  }
2980
3229
  }
2981
3230
 
2982
- const ye = n.native;
3231
+ const He = i.native;
2983
3232
 
2984
- const be = {
2985
- lstatSync: a,
2986
- readdir: h,
2987
- readdirSync: o,
2988
- readlinkSync: r,
2989
- realpathSync: ye,
3233
+ const Ze = {
3234
+ lstatSync: h,
3235
+ readdir: o,
3236
+ readdirSync: r,
3237
+ readlinkSync: n,
3238
+ realpathSync: He,
2990
3239
  promises: {
2991
- lstat: d,
2992
- readdir: u,
2993
- readlink: f,
2994
- realpath: c
3240
+ lstat: u,
3241
+ readdir: f,
3242
+ readlink: c,
3243
+ realpath: l
2995
3244
  }
2996
3245
  };
2997
3246
 
2998
- const Se = t => !t || t === be || t === l ? be : {
2999
- ...be,
3247
+ const qe = t => !t || t === Ze || t === a ? Ze : {
3248
+ ...Ze,
3000
3249
  ...t,
3001
3250
  promises: {
3002
- ...be.promises,
3251
+ ...Ze.promises,
3003
3252
  ...t.promises || {}
3004
3253
  }
3005
3254
  };
3006
3255
 
3007
- const ke = /^\\\\\?\\([a-z]:)\\?$/i;
3256
+ const Ve = /^\\\\\?\\([a-z]:)\\?$/i;
3008
3257
 
3009
- const ve = t => t.replace(/\//g, "\\").replace(ke, "$1\\");
3258
+ const Je = t => t.replace(/\//g, "\\").replace(Ve, "$1\\");
3010
3259
 
3011
- const xe = /[\\\/]/;
3260
+ const Ke = /[\\\/]/;
3012
3261
 
3013
- const Ee = 0;
3262
+ const Ye = 0;
3014
3263
 
3015
- const Ce = 1;
3264
+ const Xe = 1;
3016
3265
 
3017
- const Te = 2;
3266
+ const Qe = 2;
3018
3267
 
3019
- const Le = 4;
3268
+ const ts = 4;
3020
3269
 
3021
- const Ae = 6;
3270
+ const es = 6;
3022
3271
 
3023
- const Me = 8;
3272
+ const ss = 8;
3024
3273
 
3025
- const Pe = 10;
3274
+ const is = 10;
3026
3275
 
3027
- const Fe = 12;
3276
+ const ns = 12;
3028
3277
 
3029
- const Re = 15;
3278
+ const rs = 15;
3030
3279
 
3031
- const ze = ~Re;
3280
+ const os = ~rs;
3032
3281
 
3033
- const Oe = 16;
3282
+ const hs = 16;
3034
3283
 
3035
- const De = 32;
3284
+ const as = 32;
3036
3285
 
3037
- const Ne = 64;
3286
+ const ls = 64;
3038
3287
 
3039
- const Be = 128;
3288
+ const cs = 128;
3040
3289
 
3041
- const We = 256;
3290
+ const fs = 256;
3042
3291
 
3043
- const Ie = 512;
3292
+ const us = 512;
3044
3293
 
3045
- const _e = Ne | Be | Ie;
3294
+ const ds = ls | cs | us;
3046
3295
 
3047
- const je = 1023;
3296
+ const ps = 1023;
3048
3297
 
3049
- const Ue = t => t.isFile() ? Me : t.isDirectory() ? Le : t.isSymbolicLink() ? Pe : t.isCharacterDevice() ? Te : t.isBlockDevice() ? Ae : t.isSocket() ? Fe : t.isFIFO() ? Ce : Ee;
3298
+ const gs = t => t.isFile() ? ss : t.isDirectory() ? ts : t.isSymbolicLink() ? is : t.isCharacterDevice() ? Qe : t.isBlockDevice() ? es : t.isSocket() ? ns : t.isFIFO() ? Xe : Ye;
3050
3299
 
3051
- const Ge = new Map;
3300
+ const ms = new Map;
3052
3301
 
3053
- const $e = t => {
3054
- const e = Ge.get(t);
3302
+ const ws = t => {
3303
+ const e = ms.get(t);
3055
3304
  if (e) return e;
3056
3305
  const s = t.normalize("NFKD");
3057
- Ge.set(t, s);
3306
+ ms.set(t, s);
3058
3307
  return s;
3059
3308
  };
3060
3309
 
3061
- const He = new Map;
3310
+ const ys = new Map;
3062
3311
 
3063
- const qe = t => {
3064
- const e = He.get(t);
3312
+ const bs = t => {
3313
+ const e = ys.get(t);
3065
3314
  if (e) return e;
3066
- const s = $e(t.toLowerCase());
3067
- He.set(t, s);
3315
+ const s = ws(t.toLowerCase());
3316
+ ys.set(t, s);
3068
3317
  return s;
3069
3318
  };
3070
3319
 
@@ -3085,7 +3334,7 @@ class ChildrenCache extends LRUCache {
3085
3334
  }
3086
3335
  }
3087
3336
 
3088
- const Ze = Symbol("PathScurry setAsCwd");
3337
+ const Ss = Symbol("PathScurry setAsCwd");
3089
3338
 
3090
3339
  class PathBase {
3091
3340
  name;
@@ -3127,9 +3376,9 @@ class PathBase {
3127
3376
  get ino() {
3128
3377
  return this.#pt;
3129
3378
  }
3130
- #x;
3379
+ #v;
3131
3380
  get size() {
3132
- return this.#x;
3381
+ return this.#v;
3133
3382
  }
3134
3383
  #gt;
3135
3384
  get blocks() {
@@ -3159,46 +3408,46 @@ class PathBase {
3159
3408
  get mtime() {
3160
3409
  return this.#kt;
3161
3410
  }
3162
- #vt;
3411
+ #xt;
3163
3412
  get ctime() {
3164
- return this.#vt;
3413
+ return this.#xt;
3165
3414
  }
3166
- #xt;
3415
+ #vt;
3167
3416
  get birthtime() {
3168
- return this.#xt;
3417
+ return this.#vt;
3169
3418
  }
3170
3419
  #Et;
3171
3420
  #Ct;
3172
3421
  #Tt;
3173
- #Lt;
3174
3422
  #At;
3423
+ #Lt;
3175
3424
  #Mt;
3176
3425
  #Pt;
3177
3426
  #Ft;
3178
3427
  #Rt;
3179
- #zt;
3428
+ #Ot;
3180
3429
  get parentPath() {
3181
3430
  return (this.parent || this).fullpath();
3182
3431
  }
3183
3432
  get path() {
3184
3433
  return this.parentPath;
3185
3434
  }
3186
- constructor(t, e = Ee, s, i, n, r, o) {
3435
+ constructor(t, e = Ye, s, i, n, r, o) {
3187
3436
  this.name = t;
3188
- this.#Et = n ? qe(t) : $e(t);
3189
- this.#Pt = e & je;
3437
+ this.#Et = n ? bs(t) : ws(t);
3438
+ this.#Pt = e & ps;
3190
3439
  this.nocase = n;
3191
3440
  this.roots = i;
3192
3441
  this.root = s || this;
3193
3442
  this.#Ft = r;
3194
3443
  this.#Tt = o.fullpath;
3195
- this.#At = o.relative;
3444
+ this.#Lt = o.relative;
3196
3445
  this.#Mt = o.relativePosix;
3197
3446
  this.parent = o.parent;
3198
3447
  if (this.parent) {
3199
3448
  this.#ot = this.parent.#ot;
3200
3449
  } else {
3201
- this.#ot = Se(o.fs);
3450
+ this.#ot = qe(o.fs);
3202
3451
  }
3203
3452
  }
3204
3453
  depth() {
@@ -3216,10 +3465,10 @@ class PathBase {
3216
3465
  const e = this.getRootString(t);
3217
3466
  const s = t.substring(e.length);
3218
3467
  const i = s.split(this.splitSep);
3219
- const n = e ? this.getRoot(e).#Ot(i) : this.#Ot(i);
3468
+ const n = e ? this.getRoot(e).#zt(i) : this.#zt(i);
3220
3469
  return n;
3221
3470
  }
3222
- #Ot(t) {
3471
+ #zt(t) {
3223
3472
  let e = this;
3224
3473
  for (const s of t) {
3225
3474
  e = e.child(s);
@@ -3235,7 +3484,7 @@ class PathBase {
3235
3484
  provisional: 0
3236
3485
  });
3237
3486
  this.#Ft.set(this, e);
3238
- this.#Pt &= ~Oe;
3487
+ this.#Pt &= ~hs;
3239
3488
  return e;
3240
3489
  }
3241
3490
  child(t, e) {
@@ -3246,7 +3495,7 @@ class PathBase {
3246
3495
  return this.parent || this;
3247
3496
  }
3248
3497
  const s = this.children();
3249
- const i = this.nocase ? qe(t) : $e(t);
3498
+ const i = this.nocase ? bs(t) : ws(t);
3250
3499
  for (const t of s) {
3251
3500
  if (t.#Et === i) {
3252
3501
  return t;
@@ -3254,26 +3503,26 @@ class PathBase {
3254
3503
  }
3255
3504
  const n = this.parent ? this.sep : "";
3256
3505
  const r = this.#Tt ? this.#Tt + n + t : undefined;
3257
- const o = this.newChild(t, Ee, {
3506
+ const o = this.newChild(t, Ye, {
3258
3507
  ...e,
3259
3508
  parent: this,
3260
3509
  fullpath: r
3261
3510
  });
3262
3511
  if (!this.canReaddir()) {
3263
- o.#Pt |= Be;
3512
+ o.#Pt |= cs;
3264
3513
  }
3265
3514
  s.push(o);
3266
3515
  return o;
3267
3516
  }
3268
3517
  relative() {
3269
3518
  if (this.isCWD) return "";
3270
- if (this.#At !== undefined) {
3271
- return this.#At;
3519
+ if (this.#Lt !== undefined) {
3520
+ return this.#Lt;
3272
3521
  }
3273
3522
  const t = this.name;
3274
3523
  const e = this.parent;
3275
3524
  if (!e) {
3276
- return this.#At = this.name;
3525
+ return this.#Lt = this.name;
3277
3526
  }
3278
3527
  const s = e.relative();
3279
3528
  return s + (!s || !e.parent ? "" : this.sep) + t;
@@ -3304,23 +3553,23 @@ class PathBase {
3304
3553
  return this.#Tt = i;
3305
3554
  }
3306
3555
  fullpathPosix() {
3307
- if (this.#Lt !== undefined) return this.#Lt;
3308
- if (this.sep === "/") return this.#Lt = this.fullpath();
3556
+ if (this.#At !== undefined) return this.#At;
3557
+ if (this.sep === "/") return this.#At = this.fullpath();
3309
3558
  if (!this.parent) {
3310
3559
  const t = this.fullpath().replace(/\\/g, "/");
3311
3560
  if (/^[a-z]:\//i.test(t)) {
3312
- return this.#Lt = `//?/${t}`;
3561
+ return this.#At = `//?/${t}`;
3313
3562
  } else {
3314
- return this.#Lt = t;
3563
+ return this.#At = t;
3315
3564
  }
3316
3565
  }
3317
3566
  const t = this.parent;
3318
3567
  const e = t.fullpathPosix();
3319
3568
  const s = e + (!e || !t.parent ? "" : "/") + this.name;
3320
- return this.#Lt = s;
3569
+ return this.#At = s;
3321
3570
  }
3322
3571
  isUnknown() {
3323
- return (this.#Pt & Re) === Ee;
3572
+ return (this.#Pt & rs) === Ye;
3324
3573
  }
3325
3574
  isType(t) {
3326
3575
  return this[`is${t}`]();
@@ -3329,34 +3578,34 @@ class PathBase {
3329
3578
  return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
3330
3579
  }
3331
3580
  isFile() {
3332
- return (this.#Pt & Re) === Me;
3581
+ return (this.#Pt & rs) === ss;
3333
3582
  }
3334
3583
  isDirectory() {
3335
- return (this.#Pt & Re) === Le;
3584
+ return (this.#Pt & rs) === ts;
3336
3585
  }
3337
3586
  isCharacterDevice() {
3338
- return (this.#Pt & Re) === Te;
3587
+ return (this.#Pt & rs) === Qe;
3339
3588
  }
3340
3589
  isBlockDevice() {
3341
- return (this.#Pt & Re) === Ae;
3590
+ return (this.#Pt & rs) === es;
3342
3591
  }
3343
3592
  isFIFO() {
3344
- return (this.#Pt & Re) === Ce;
3593
+ return (this.#Pt & rs) === Xe;
3345
3594
  }
3346
3595
  isSocket() {
3347
- return (this.#Pt & Re) === Fe;
3596
+ return (this.#Pt & rs) === ns;
3348
3597
  }
3349
3598
  isSymbolicLink() {
3350
- return (this.#Pt & Pe) === Pe;
3599
+ return (this.#Pt & is) === is;
3351
3600
  }
3352
3601
  lstatCached() {
3353
- return this.#Pt & De ? this : undefined;
3602
+ return this.#Pt & as ? this : undefined;
3354
3603
  }
3355
3604
  readlinkCached() {
3356
3605
  return this.#Rt;
3357
3606
  }
3358
3607
  realpathCached() {
3359
- return this.#zt;
3608
+ return this.#Ot;
3360
3609
  }
3361
3610
  readdirCached() {
3362
3611
  const t = this.children();
@@ -3365,17 +3614,17 @@ class PathBase {
3365
3614
  canReadlink() {
3366
3615
  if (this.#Rt) return true;
3367
3616
  if (!this.parent) return false;
3368
- const t = this.#Pt & Re;
3369
- return !(t !== Ee && t !== Pe || this.#Pt & We || this.#Pt & Be);
3617
+ const t = this.#Pt & rs;
3618
+ return !(t !== Ye && t !== is || this.#Pt & fs || this.#Pt & cs);
3370
3619
  }
3371
3620
  calledReaddir() {
3372
- return !!(this.#Pt & Oe);
3621
+ return !!(this.#Pt & hs);
3373
3622
  }
3374
3623
  isENOENT() {
3375
- return !!(this.#Pt & Be);
3624
+ return !!(this.#Pt & cs);
3376
3625
  }
3377
3626
  isNamed(t) {
3378
- return !this.nocase ? this.#Et === $e(t) : this.#Et === qe(t);
3627
+ return !this.nocase ? this.#Et === ws(t) : this.#Et === bs(t);
3379
3628
  }
3380
3629
  async readlink() {
3381
3630
  const t = this.#Rt;
@@ -3422,15 +3671,15 @@ class PathBase {
3422
3671
  }
3423
3672
  }
3424
3673
  #Nt(t) {
3425
- this.#Pt |= Oe;
3674
+ this.#Pt |= hs;
3426
3675
  for (let e = t.provisional; e < t.length; e++) {
3427
3676
  const s = t[e];
3428
3677
  if (s) s.#Bt();
3429
3678
  }
3430
3679
  }
3431
3680
  #Bt() {
3432
- if (this.#Pt & Be) return;
3433
- this.#Pt = (this.#Pt | Be) & ze;
3681
+ if (this.#Pt & cs) return;
3682
+ this.#Pt = (this.#Pt | cs) & os;
3434
3683
  this.#Wt();
3435
3684
  }
3436
3685
  #Wt() {
@@ -3441,14 +3690,14 @@ class PathBase {
3441
3690
  }
3442
3691
  }
3443
3692
  #It() {
3444
- this.#Pt |= Ie;
3693
+ this.#Pt |= us;
3445
3694
  this.#_t();
3446
3695
  }
3447
3696
  #_t() {
3448
- if (this.#Pt & Ne) return;
3697
+ if (this.#Pt & ls) return;
3449
3698
  let t = this.#Pt;
3450
- if ((t & Re) === Le) t &= ze;
3451
- this.#Pt = t | Ne;
3699
+ if ((t & rs) === ts) t &= os;
3700
+ this.#Pt = t | ls;
3452
3701
  this.#Wt();
3453
3702
  }
3454
3703
  #jt(t = "") {
@@ -3460,7 +3709,7 @@ class PathBase {
3460
3709
  this.children().provisional = 0;
3461
3710
  }
3462
3711
  }
3463
- #Ut(t = "") {
3712
+ #$t(t = "") {
3464
3713
  if (t === "ENOTDIR") {
3465
3714
  const t = this.parent;
3466
3715
  t.#_t();
@@ -3470,45 +3719,45 @@ class PathBase {
3470
3719
  }
3471
3720
  #Dt(t = "") {
3472
3721
  let e = this.#Pt;
3473
- e |= We;
3474
- if (t === "ENOENT") e |= Be;
3722
+ e |= fs;
3723
+ if (t === "ENOENT") e |= cs;
3475
3724
  if (t === "EINVAL" || t === "UNKNOWN") {
3476
- e &= ze;
3725
+ e &= os;
3477
3726
  }
3478
3727
  this.#Pt = e;
3479
3728
  if (t === "ENOTDIR" && this.parent) {
3480
3729
  this.parent.#_t();
3481
3730
  }
3482
3731
  }
3483
- #Gt(t, e) {
3484
- return this.#$t(t, e) || this.#Ht(t, e);
3732
+ #Ut(t, e) {
3733
+ return this.#Gt(t, e) || this.#Ht(t, e);
3485
3734
  }
3486
3735
  #Ht(t, e) {
3487
- const s = Ue(t);
3736
+ const s = gs(t);
3488
3737
  const i = this.newChild(t.name, s, {
3489
3738
  parent: this
3490
3739
  });
3491
- const n = i.#Pt & Re;
3492
- if (n !== Le && n !== Pe && n !== Ee) {
3493
- i.#Pt |= Ne;
3740
+ const n = i.#Pt & rs;
3741
+ if (n !== ts && n !== is && n !== Ye) {
3742
+ i.#Pt |= ls;
3494
3743
  }
3495
3744
  e.unshift(i);
3496
3745
  e.provisional++;
3497
3746
  return i;
3498
3747
  }
3499
- #$t(t, e) {
3748
+ #Gt(t, e) {
3500
3749
  for (let s = e.provisional; s < e.length; s++) {
3501
3750
  const i = e[s];
3502
- const n = this.nocase ? qe(t.name) : $e(t.name);
3751
+ const n = this.nocase ? bs(t.name) : ws(t.name);
3503
3752
  if (n !== i.#Et) {
3504
3753
  continue;
3505
3754
  }
3506
- return this.#qt(t, i, s, e);
3755
+ return this.#Zt(t, i, s, e);
3507
3756
  }
3508
3757
  }
3509
- #qt(t, e, s, i) {
3758
+ #Zt(t, e, s, i) {
3510
3759
  const n = e.name;
3511
- e.#Pt = e.#Pt & ze | Ue(t);
3760
+ e.#Pt = e.#Pt & os | gs(t);
3512
3761
  if (n !== t.name) e.name = t.name;
3513
3762
  if (s !== i.provisional) {
3514
3763
  if (s === i.length - 1) i.pop(); else i.splice(s, 1);
@@ -3518,34 +3767,34 @@ class PathBase {
3518
3767
  return e;
3519
3768
  }
3520
3769
  async lstat() {
3521
- if ((this.#Pt & Be) === 0) {
3770
+ if ((this.#Pt & cs) === 0) {
3522
3771
  try {
3523
- this.#Zt(await this.#ot.promises.lstat(this.fullpath()));
3772
+ this.#qt(await this.#ot.promises.lstat(this.fullpath()));
3524
3773
  return this;
3525
3774
  } catch (t) {
3526
- this.#Ut(t.code);
3775
+ this.#$t(t.code);
3527
3776
  }
3528
3777
  }
3529
3778
  }
3530
3779
  lstatSync() {
3531
- if ((this.#Pt & Be) === 0) {
3780
+ if ((this.#Pt & cs) === 0) {
3532
3781
  try {
3533
- this.#Zt(this.#ot.lstatSync(this.fullpath()));
3782
+ this.#qt(this.#ot.lstatSync(this.fullpath()));
3534
3783
  return this;
3535
3784
  } catch (t) {
3536
- this.#Ut(t.code);
3785
+ this.#$t(t.code);
3537
3786
  }
3538
3787
  }
3539
3788
  }
3540
- #Zt(t) {
3789
+ #qt(t) {
3541
3790
  const {atime: e, atimeMs: s, birthtime: i, birthtimeMs: n, blksize: r, blocks: o, ctime: h, ctimeMs: a, dev: l, gid: c, ino: f, mode: u, mtime: d, mtimeMs: p, nlink: g, rdev: m, size: w, uid: y} = t;
3542
3791
  this.#St = e;
3543
3792
  this.#mt = s;
3544
- this.#xt = i;
3793
+ this.#vt = i;
3545
3794
  this.#bt = n;
3546
3795
  this.#dt = r;
3547
3796
  this.#gt = o;
3548
- this.#vt = h;
3797
+ this.#xt = h;
3549
3798
  this.#yt = a;
3550
3799
  this.#ht = l;
3551
3800
  this.#ft = c;
@@ -3555,12 +3804,12 @@ class PathBase {
3555
3804
  this.#wt = p;
3556
3805
  this.#lt = g;
3557
3806
  this.#ut = m;
3558
- this.#x = w;
3807
+ this.#v = w;
3559
3808
  this.#ct = y;
3560
- const b = Ue(t);
3561
- this.#Pt = this.#Pt & ze | b | De;
3562
- if (b !== Ee && b !== Le && b !== Pe) {
3563
- this.#Pt |= Ne;
3809
+ const b = gs(t);
3810
+ this.#Pt = this.#Pt & os | b | as;
3811
+ if (b !== Ye && b !== ts && b !== is) {
3812
+ this.#Pt |= ls;
3564
3813
  }
3565
3814
  }
3566
3815
  #Vt=[];
@@ -3596,7 +3845,7 @@ class PathBase {
3596
3845
  s.provisional = 0;
3597
3846
  } else {
3598
3847
  for (const t of e) {
3599
- this.#Gt(t, s);
3848
+ this.#Ut(t, s);
3600
3849
  }
3601
3850
  this.#Nt(s);
3602
3851
  }
@@ -3623,7 +3872,7 @@ class PathBase {
3623
3872
  for (const s of await this.#ot.promises.readdir(e, {
3624
3873
  withFileTypes: true
3625
3874
  })) {
3626
- this.#Gt(s, t);
3875
+ this.#Ut(s, t);
3627
3876
  }
3628
3877
  this.#Nt(t);
3629
3878
  } catch (e) {
@@ -3648,7 +3897,7 @@ class PathBase {
3648
3897
  for (const s of this.#ot.readdirSync(e, {
3649
3898
  withFileTypes: true
3650
3899
  })) {
3651
- this.#Gt(s, t);
3900
+ this.#Ut(s, t);
3652
3901
  }
3653
3902
  this.#Nt(t);
3654
3903
  } catch (e) {
@@ -3658,37 +3907,37 @@ class PathBase {
3658
3907
  return t.slice(0, t.provisional);
3659
3908
  }
3660
3909
  canReaddir() {
3661
- if (this.#Pt & _e) return false;
3662
- const t = Re & this.#Pt;
3663
- if (!(t === Ee || t === Le || t === Pe)) {
3910
+ if (this.#Pt & ds) return false;
3911
+ const t = rs & this.#Pt;
3912
+ if (!(t === Ye || t === ts || t === is)) {
3664
3913
  return false;
3665
3914
  }
3666
3915
  return true;
3667
3916
  }
3668
3917
  shouldWalk(t, e) {
3669
- return (this.#Pt & Le) === Le && !(this.#Pt & _e) && !t.has(this) && (!e || e(this));
3918
+ return (this.#Pt & ts) === ts && !(this.#Pt & ds) && !t.has(this) && (!e || e(this));
3670
3919
  }
3671
3920
  async realpath() {
3672
- if (this.#zt) return this.#zt;
3673
- if ((Ie | We | Be) & this.#Pt) return undefined;
3921
+ if (this.#Ot) return this.#Ot;
3922
+ if ((us | fs | cs) & this.#Pt) return undefined;
3674
3923
  try {
3675
3924
  const t = await this.#ot.promises.realpath(this.fullpath());
3676
- return this.#zt = this.resolve(t);
3925
+ return this.#Ot = this.resolve(t);
3677
3926
  } catch (t) {
3678
3927
  this.#It();
3679
3928
  }
3680
3929
  }
3681
3930
  realpathSync() {
3682
- if (this.#zt) return this.#zt;
3683
- if ((Ie | We | Be) & this.#Pt) return undefined;
3931
+ if (this.#Ot) return this.#Ot;
3932
+ if ((us | fs | cs) & this.#Pt) return undefined;
3684
3933
  try {
3685
3934
  const t = this.#ot.realpathSync(this.fullpath());
3686
- return this.#zt = this.resolve(t);
3935
+ return this.#Ot = this.resolve(t);
3687
3936
  } catch (t) {
3688
3937
  this.#It();
3689
3938
  }
3690
3939
  }
3691
- [Ze](t) {
3940
+ [Ss](t) {
3692
3941
  if (t === this) return;
3693
3942
  t.isCWD = false;
3694
3943
  this.isCWD = true;
@@ -3697,14 +3946,14 @@ class PathBase {
3697
3946
  let i = this;
3698
3947
  while (i && i.parent) {
3699
3948
  e.add(i);
3700
- i.#At = s.join(this.sep);
3949
+ i.#Lt = s.join(this.sep);
3701
3950
  i.#Mt = s.join("/");
3702
3951
  i = i.parent;
3703
3952
  s.push("..");
3704
3953
  }
3705
3954
  i = t;
3706
3955
  while (i && i.parent && !e.has(i)) {
3707
- i.#At = undefined;
3956
+ i.#Lt = undefined;
3708
3957
  i.#Mt = undefined;
3709
3958
  i = i.parent;
3710
3959
  }
@@ -3713,18 +3962,18 @@ class PathBase {
3713
3962
 
3714
3963
  class PathWin32 extends PathBase {
3715
3964
  sep="\\";
3716
- splitSep=xe;
3717
- constructor(t, e = Ee, s, i, n, r, o) {
3965
+ splitSep=Ke;
3966
+ constructor(t, e = Ye, s, i, n, r, o) {
3718
3967
  super(t, e, s, i, n, r, o);
3719
3968
  }
3720
- newChild(t, e = Ee, s = {}) {
3969
+ newChild(t, e = Ye, s = {}) {
3721
3970
  return new PathWin32(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
3722
3971
  }
3723
3972
  getRootString(t) {
3724
- return s.parse(t).root;
3973
+ return e.parse(t).root;
3725
3974
  }
3726
3975
  getRoot(t) {
3727
- t = ve(t.toUpperCase());
3976
+ t = Je(t.toUpperCase());
3728
3977
  if (t === this.root.name) {
3729
3978
  return this.root;
3730
3979
  }
@@ -3736,7 +3985,7 @@ class PathWin32 extends PathBase {
3736
3985
  return this.roots[t] = new PathScurryWin32(t, this).root;
3737
3986
  }
3738
3987
  sameRoot(t, e = this.root.name) {
3739
- t = t.toUpperCase().replace(/\//g, "\\").replace(ke, "$1\\");
3988
+ t = t.toUpperCase().replace(/\//g, "\\").replace(Ve, "$1\\");
3740
3989
  return t === e;
3741
3990
  }
3742
3991
  }
@@ -3744,7 +3993,7 @@ class PathWin32 extends PathBase {
3744
3993
  class PathPosix extends PathBase {
3745
3994
  splitSep="/";
3746
3995
  sep="/";
3747
- constructor(t, e = Ee, s, i, n, r, o) {
3996
+ constructor(t, e = Ye, s, i, n, r, o) {
3748
3997
  super(t, e, s, i, n, r, o);
3749
3998
  }
3750
3999
  getRootString(t) {
@@ -3753,7 +4002,7 @@ class PathPosix extends PathBase {
3753
4002
  getRoot(t) {
3754
4003
  return this.root;
3755
4004
  }
3756
- newChild(t, e = Ee, s = {}) {
4005
+ newChild(t, e = Ye, s = {}) {
3757
4006
  return new PathPosix(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
3758
4007
  }
3759
4008
  }
@@ -3768,12 +4017,12 @@ class PathScurryBase {
3768
4017
  #Ft;
3769
4018
  nocase;
3770
4019
  #ot;
3771
- constructor(t = process.cwd(), s, i, {nocase: n, childrenCacheSize: r = 16 * 1024, fs: o = be} = {}) {
3772
- this.#ot = Se(o);
3773
- if (t instanceof URL || t.startsWith("file://")) {
3774
- t = e(t);
4020
+ constructor(e = process.cwd(), s, i, {nocase: n, childrenCacheSize: r = 16 * 1024, fs: o = Ze} = {}) {
4021
+ this.#ot = qe(o);
4022
+ if (e instanceof URL || e.startsWith("file://")) {
4023
+ e = t(e);
3775
4024
  }
3776
- const h = s.resolve(t);
4025
+ const h = s.resolve(e);
3777
4026
  this.roots = Object.create(null);
3778
4027
  this.rootPath = this.parseRootPath(h);
3779
4028
  this.#Xt = new ResolveCache;
@@ -4218,16 +4467,16 @@ class PathScurryBase {
4218
4467
  chdir(t = this.cwd) {
4219
4468
  const e = this.cwd;
4220
4469
  this.cwd = typeof t === "string" ? this.cwd.resolve(t) : t;
4221
- this.cwd[Ze](e);
4470
+ this.cwd[Ss](e);
4222
4471
  }
4223
4472
  }
4224
4473
 
4225
4474
  class PathScurryWin32 extends PathScurryBase {
4226
4475
  sep="\\";
4227
- constructor(t = process.cwd(), e = {}) {
4228
- const {nocase: i = true} = e;
4229
- super(t, s, "\\", {
4230
- ...e,
4476
+ constructor(t = process.cwd(), s = {}) {
4477
+ const {nocase: i = true} = s;
4478
+ super(t, e, "\\", {
4479
+ ...s,
4231
4480
  nocase: i
4232
4481
  });
4233
4482
  this.nocase = i;
@@ -4236,10 +4485,10 @@ class PathScurryWin32 extends PathScurryBase {
4236
4485
  }
4237
4486
  }
4238
4487
  parseRootPath(t) {
4239
- return s.parse(t).root.toUpperCase();
4488
+ return e.parse(t).root.toUpperCase();
4240
4489
  }
4241
4490
  newRoot(t) {
4242
- return new PathWin32(this.rootPath, Le, undefined, this.roots, this.nocase, this.childrenCache(), {
4491
+ return new PathWin32(this.rootPath, ts, undefined, this.roots, this.nocase, this.childrenCache(), {
4243
4492
  fs: t
4244
4493
  });
4245
4494
  }
@@ -4251,18 +4500,18 @@ class PathScurryWin32 extends PathScurryBase {
4251
4500
  class PathScurryPosix extends PathScurryBase {
4252
4501
  sep="/";
4253
4502
  constructor(t = process.cwd(), e = {}) {
4254
- const {nocase: s = false} = e;
4255
- super(t, i, "/", {
4503
+ const {nocase: i = false} = e;
4504
+ super(t, s, "/", {
4256
4505
  ...e,
4257
- nocase: s
4506
+ nocase: i
4258
4507
  });
4259
- this.nocase = s;
4508
+ this.nocase = i;
4260
4509
  }
4261
4510
  parseRootPath(t) {
4262
4511
  return "/";
4263
4512
  }
4264
4513
  newRoot(t) {
4265
- return new PathPosix(this.rootPath, Le, undefined, this.roots, this.nocase, this.childrenCache(), {
4514
+ return new PathPosix(this.rootPath, ts, undefined, this.roots, this.nocase, this.childrenCache(), {
4266
4515
  fs: t
4267
4516
  });
4268
4517
  }
@@ -4281,13 +4530,13 @@ class PathScurryDarwin extends PathScurryPosix {
4281
4530
  }
4282
4531
  }
4283
4532
 
4284
- const Ve = process.platform === "win32" ? PathWin32 : PathPosix;
4533
+ const ks = process.platform === "win32" ? PathWin32 : PathPosix;
4285
4534
 
4286
- const Je = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
4535
+ const xs = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
4287
4536
 
4288
- const Ke = t => t.length >= 1;
4537
+ const vs = t => t.length >= 1;
4289
4538
 
4290
- const Ye = t => t.length >= 1;
4539
+ const Es = t => t.length >= 1;
4291
4540
 
4292
4541
  class Pattern {
4293
4542
  #te;
@@ -4302,10 +4551,10 @@ class Pattern {
4302
4551
  #ae;
4303
4552
  #le=true;
4304
4553
  constructor(t, e, s, i) {
4305
- if (!Ke(t)) {
4554
+ if (!vs(t)) {
4306
4555
  throw new TypeError("empty pattern list");
4307
4556
  }
4308
- if (!Ye(e)) {
4557
+ if (!Es(e)) {
4309
4558
  throw new TypeError("empty glob list");
4310
4559
  }
4311
4560
  if (e.length !== t.length) {
@@ -4354,7 +4603,7 @@ class Pattern {
4354
4603
  return typeof this.#te[this.#se] === "string";
4355
4604
  }
4356
4605
  isGlobstar() {
4357
- return this.#te[this.#se] === ht;
4606
+ return this.#te[this.#se] === zt;
4358
4607
  }
4359
4608
  isRegExp() {
4360
4609
  return this.#te[this.#se] instanceof RegExp;
@@ -4400,7 +4649,7 @@ class Pattern {
4400
4649
  }
4401
4650
  }
4402
4651
 
4403
- const Xe = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
4652
+ const Cs = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
4404
4653
 
4405
4654
  class Ignore {
4406
4655
  relative;
@@ -4409,7 +4658,7 @@ class Ignore {
4409
4658
  absoluteChildren;
4410
4659
  platform;
4411
4660
  mmopts;
4412
- constructor(t, {nobrace: e, nocase: s, noext: i, noglobstar: n, platform: r = Xe}) {
4661
+ constructor(t, {nobrace: e, nocase: s, noext: i, noglobstar: n, platform: r = Cs}) {
4413
4662
  this.relative = [];
4414
4663
  this.absolute = [];
4415
4664
  this.relativeChildren = [];
@@ -4585,7 +4834,7 @@ class Processor {
4585
4834
  const e = n === ".." || n === "" || n === ".";
4586
4835
  this.matches.add(t.resolve(n), i, e);
4587
4836
  continue;
4588
- } else if (n === ht) {
4837
+ } else if (n === zt) {
4589
4838
  if (!t.isSymbolicLink() || this.follow || e.checkFollowGlobstar()) {
4590
4839
  this.subwalks.add(t, e);
4591
4840
  }
@@ -4621,7 +4870,7 @@ class Processor {
4621
4870
  const s = e.isAbsolute();
4622
4871
  const n = e.pattern();
4623
4872
  const r = e.rest();
4624
- if (n === ht) {
4873
+ if (n === zt) {
4625
4874
  i.testGlobstar(t, e, r, s);
4626
4875
  } else if (n instanceof RegExp) {
4627
4876
  i.testRegExp(t, n, r, s);
@@ -4679,7 +4928,7 @@ class Processor {
4679
4928
  }
4680
4929
  }
4681
4930
 
4682
- const Qe = (t, e) => typeof t === "string" ? new Ignore([ t ], e) : Array.isArray(t) ? new Ignore(t, e) : t;
4931
+ const Ts = (t, e) => typeof t === "string" ? new Ignore([ t ], e) : Array.isArray(t) ? new Ignore(t, e) : t;
4683
4932
 
4684
4933
  class GlobUtil {
4685
4934
  path;
@@ -4701,7 +4950,7 @@ class GlobUtil {
4701
4950
  this.#ue = !s.posix && s.platform === "win32" ? "\\" : "/";
4702
4951
  this.includeChildMatches = s.includeChildMatches !== false;
4703
4952
  if (s.ignore || !this.includeChildMatches) {
4704
- this.#fe = Qe(s.ignore ?? [], s);
4953
+ this.#fe = Ts(s.ignore ?? [], s);
4705
4954
  if (!this.includeChildMatches && typeof this.#fe.add !== "function") {
4706
4955
  const t = "cannot ignore child matches, ignore lacks add() method.";
4707
4956
  throw new Error(t);
@@ -4976,9 +5225,9 @@ class GlobStream extends GlobUtil {
4976
5225
  }
4977
5226
  }
4978
5227
 
4979
- const ts = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
5228
+ const As = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
4980
5229
 
4981
- let es = class Glob {
5230
+ let Ls = class Glob {
4982
5231
  absolute;
4983
5232
  cwd;
4984
5233
  root;
@@ -5006,7 +5255,7 @@ let es = class Glob {
5006
5255
  includeChildMatches;
5007
5256
  opts;
5008
5257
  patterns;
5009
- constructor(t, s) {
5258
+ constructor(e, s) {
5010
5259
  if (!s) throw new TypeError("glob options required");
5011
5260
  this.withFileTypes = !!s.withFileTypes;
5012
5261
  this.signal = s.signal;
@@ -5018,7 +5267,7 @@ let es = class Glob {
5018
5267
  if (!s.cwd) {
5019
5268
  this.cwd = "";
5020
5269
  } else if (s.cwd instanceof URL || s.cwd.startsWith("file://")) {
5021
- s.cwd = e(s.cwd);
5270
+ s.cwd = t(s.cwd);
5022
5271
  }
5023
5272
  this.cwd = s.cwd || "";
5024
5273
  this.root = s.root;
@@ -5036,21 +5285,21 @@ let es = class Glob {
5036
5285
  if (this.withFileTypes && this.absolute !== undefined) {
5037
5286
  throw new Error("cannot set absolute and withFileTypes:true");
5038
5287
  }
5039
- if (typeof t === "string") {
5040
- t = [ t ];
5288
+ if (typeof e === "string") {
5289
+ e = [ e ];
5041
5290
  }
5042
5291
  this.windowsPathsNoEscape = !!s.windowsPathsNoEscape || s.allowWindowsEscape === false;
5043
5292
  if (this.windowsPathsNoEscape) {
5044
- t = t.map((t => t.replace(/\\/g, "/")));
5293
+ e = e.map((t => t.replace(/\\/g, "/")));
5045
5294
  }
5046
5295
  if (this.matchBase) {
5047
5296
  if (s.noglobstar) {
5048
5297
  throw new TypeError("base matching requires globstar");
5049
5298
  }
5050
- t = t.map((t => t.includes("/") ? t : `./**/${t}`));
5299
+ e = e.map((t => t.includes("/") ? t : `./**/${t}`));
5051
5300
  }
5052
- this.pattern = t;
5053
- this.platform = s.platform || ts;
5301
+ this.pattern = e;
5302
+ this.platform = s.platform || As;
5054
5303
  this.opts = {
5055
5304
  ...s,
5056
5305
  platform: this.platform
@@ -5061,7 +5310,7 @@ let es = class Glob {
5061
5310
  throw new Error("nocase option contradicts provided scurry option");
5062
5311
  }
5063
5312
  } else {
5064
- const t = s.platform === "win32" ? PathScurryWin32 : s.platform === "darwin" ? PathScurryDarwin : s.platform ? PathScurryPosix : Je;
5313
+ const t = s.platform === "win32" ? PathScurryWin32 : s.platform === "darwin" ? PathScurryDarwin : s.platform ? PathScurryPosix : xs;
5065
5314
  this.scurry = new t(this.cwd, {
5066
5315
  nocase: s.nocase,
5067
5316
  fs: s.fs
@@ -5146,7 +5395,7 @@ let es = class Glob {
5146
5395
  }
5147
5396
  };
5148
5397
 
5149
- const ss = (t, e = {}) => {
5398
+ const Ms = (t, e = {}) => {
5150
5399
  if (!Array.isArray(t)) {
5151
5400
  t = [ t ];
5152
5401
  }
@@ -5156,69 +5405,69 @@ const ss = (t, e = {}) => {
5156
5405
  return false;
5157
5406
  };
5158
5407
 
5159
- function is(t, e = {}) {
5160
- return new es(t, e).streamSync();
5408
+ function Ps(t, e = {}) {
5409
+ return new Ls(t, e).streamSync();
5161
5410
  }
5162
5411
 
5163
- function ns(t, e = {}) {
5164
- return new es(t, e).stream();
5412
+ function Fs(t, e = {}) {
5413
+ return new Ls(t, e).stream();
5165
5414
  }
5166
5415
 
5167
- function rs(t, e = {}) {
5168
- return new es(t, e).walkSync();
5416
+ function Rs(t, e = {}) {
5417
+ return new Ls(t, e).walkSync();
5169
5418
  }
5170
5419
 
5171
- async function os(t, e = {}) {
5172
- return new es(t, e).walk();
5420
+ async function Os(t, e = {}) {
5421
+ return new Ls(t, e).walk();
5173
5422
  }
5174
5423
 
5175
- function hs(t, e = {}) {
5176
- return new es(t, e).iterateSync();
5424
+ function zs(t, e = {}) {
5425
+ return new Ls(t, e).iterateSync();
5177
5426
  }
5178
5427
 
5179
- function as(t, e = {}) {
5180
- return new es(t, e).iterate();
5428
+ function Ds(t, e = {}) {
5429
+ return new Ls(t, e).iterate();
5181
5430
  }
5182
5431
 
5183
- const ls = is;
5432
+ const Ns = Ps;
5184
5433
 
5185
- const cs = Object.assign(ns, {
5186
- sync: is
5434
+ const Bs = Object.assign(Fs, {
5435
+ sync: Ps
5187
5436
  });
5188
5437
 
5189
- const fs = hs;
5438
+ const Ws = zs;
5190
5439
 
5191
- const us = Object.assign(as, {
5192
- sync: hs
5440
+ const Is = Object.assign(Ds, {
5441
+ sync: zs
5193
5442
  });
5194
5443
 
5195
- const ds = Object.assign(rs, {
5196
- stream: is,
5197
- iterate: hs
5444
+ const _s = Object.assign(Rs, {
5445
+ stream: Ps,
5446
+ iterate: zs
5198
5447
  });
5199
5448
 
5200
- const ps = Object.assign(os, {
5201
- glob: os,
5202
- globSync: rs,
5203
- sync: ds,
5204
- globStream: ns,
5205
- stream: cs,
5206
- globStreamSync: is,
5207
- streamSync: ls,
5208
- globIterate: as,
5209
- iterate: us,
5210
- globIterateSync: hs,
5211
- iterateSync: fs,
5212
- Glob: es,
5213
- hasMagic: ss,
5214
- escape: N,
5215
- unescape: E
5449
+ const js = Object.assign(Os, {
5450
+ glob: Os,
5451
+ globSync: Rs,
5452
+ sync: _s,
5453
+ globStream: Fs,
5454
+ stream: Bs,
5455
+ globStreamSync: Ps,
5456
+ streamSync: Ns,
5457
+ globIterate: Ds,
5458
+ iterate: Is,
5459
+ globIterateSync: zs,
5460
+ iterateSync: Ws,
5461
+ Glob: Ls,
5462
+ hasMagic: Ms,
5463
+ escape: lt,
5464
+ unescape: Y
5216
5465
  });
5217
5466
 
5218
- ps.glob = ps;
5467
+ js.glob = js;
5219
5468
 
5220
- async function gs(t, e) {
5221
- return e ? await ps(t, e) : await ps(t);
5469
+ async function $s(t, e) {
5470
+ return e ? await js(t, e) : await js(t);
5222
5471
  }
5223
5472
 
5224
- export { gs as Glob };
5473
+ export { $s as Glob };