playwright-smart-test 0.0.0-stage → 1.0.2

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 (1544) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +289 -2
  3. package/dist/ai/ai-analyzer.d.ts +17 -0
  4. package/dist/ai/ai-analyzer.js +224 -0
  5. package/dist/catalog/test-catalog.d.ts +8 -0
  6. package/dist/catalog/test-catalog.js +111 -0
  7. package/dist/cli/index.d.ts +2 -0
  8. package/dist/cli/index.js +147 -0
  9. package/dist/config/index.d.ts +3 -0
  10. package/dist/config/index.js +39 -0
  11. package/dist/config/schema.d.ts +97 -0
  12. package/dist/config/schema.js +72 -0
  13. package/dist/diff/git-diff-analyzer.d.ts +24 -0
  14. package/dist/diff/git-diff-analyzer.js +105 -0
  15. package/dist/index.d.ts +8 -0
  16. package/dist/index.js +8 -0
  17. package/dist/reporters/github-reporter.d.ts +5 -0
  18. package/dist/reporters/github-reporter.js +72 -0
  19. package/dist/reporters/terminal-reporter.d.ts +5 -0
  20. package/dist/reporters/terminal-reporter.js +69 -0
  21. package/dist/runner/playwright-runner.d.ts +7 -0
  22. package/dist/runner/playwright-runner.js +25 -0
  23. package/dist/selector/test-selector.d.ts +18 -0
  24. package/dist/selector/test-selector.js +303 -0
  25. package/node_modules/@colors/colors/LICENSE +26 -0
  26. package/node_modules/@colors/colors/README.md +219 -0
  27. package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  28. package/node_modules/@colors/colors/examples/safe-string.js +80 -0
  29. package/node_modules/@colors/colors/index.d.ts +136 -0
  30. package/node_modules/@colors/colors/lib/colors.js +211 -0
  31. package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  32. package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  33. package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  34. package/node_modules/@colors/colors/lib/index.js +13 -0
  35. package/node_modules/@colors/colors/lib/maps/america.js +10 -0
  36. package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  37. package/node_modules/@colors/colors/lib/maps/random.js +11 -0
  38. package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  39. package/node_modules/@colors/colors/lib/styles.js +95 -0
  40. package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  41. package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  42. package/node_modules/@colors/colors/package.json +45 -0
  43. package/node_modules/@colors/colors/safe.d.ts +48 -0
  44. package/node_modules/@colors/colors/safe.js +10 -0
  45. package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  46. package/node_modules/@google/genai/LICENSE +202 -0
  47. package/node_modules/@google/genai/README.md +244 -0
  48. package/node_modules/@google/genai/dist/genai.d.ts +3329 -0
  49. package/node_modules/@google/genai/dist/index.js +6999 -0
  50. package/node_modules/@google/genai/dist/index.js.map +1 -0
  51. package/node_modules/@google/genai/dist/index.mjs +6961 -0
  52. package/node_modules/@google/genai/dist/index.mjs.map +1 -0
  53. package/node_modules/@google/genai/dist/node/index.js +7308 -0
  54. package/node_modules/@google/genai/dist/node/index.js.map +1 -0
  55. package/node_modules/@google/genai/dist/node/node.d.ts +3334 -0
  56. package/node_modules/@google/genai/dist/web/index.mjs +7007 -0
  57. package/node_modules/@google/genai/dist/web/index.mjs.map +1 -0
  58. package/node_modules/@google/genai/dist/web/web.d.ts +3329 -0
  59. package/node_modules/@google/genai/node/package.json +4 -0
  60. package/node_modules/@google/genai/package.json +104 -0
  61. package/node_modules/@google/genai/web/package.json +4 -0
  62. package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
  63. package/node_modules/@isaacs/nonrecursive-glob-match/README.md +333 -0
  64. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +114 -0
  65. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
  66. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +762 -0
  67. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
  68. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
  69. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
  70. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
  71. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
  72. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
  73. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
  74. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
  75. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +114 -0
  76. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
  77. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +758 -0
  78. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
  79. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
  80. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
  81. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
  82. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
  83. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
  84. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
  85. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
  86. package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
  87. package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +900 -0
  88. package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
  89. package/node_modules/agent-base/LICENSE +22 -0
  90. package/node_modules/agent-base/README.md +69 -0
  91. package/node_modules/agent-base/dist/helpers.d.ts +15 -0
  92. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  93. package/node_modules/agent-base/dist/helpers.js +66 -0
  94. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  95. package/node_modules/agent-base/dist/index.d.ts +41 -0
  96. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  97. package/node_modules/agent-base/dist/index.js +178 -0
  98. package/node_modules/agent-base/dist/index.js.map +1 -0
  99. package/node_modules/agent-base/package.json +46 -0
  100. package/node_modules/ansi-regex/index.d.ts +37 -0
  101. package/node_modules/ansi-regex/index.js +10 -0
  102. package/node_modules/ansi-regex/license +9 -0
  103. package/node_modules/ansi-regex/package.json +55 -0
  104. package/node_modules/ansi-regex/readme.md +78 -0
  105. package/node_modules/balanced-match/LICENSE.md +23 -0
  106. package/node_modules/balanced-match/README.md +57 -0
  107. package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  108. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  109. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  110. package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  111. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  112. package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  113. package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  114. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  115. package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  116. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  117. package/node_modules/balanced-match/package.json +68 -0
  118. package/node_modules/base64-js/LICENSE +21 -0
  119. package/node_modules/base64-js/README.md +34 -0
  120. package/node_modules/base64-js/base64js.min.js +1 -0
  121. package/node_modules/base64-js/index.d.ts +3 -0
  122. package/node_modules/base64-js/index.js +150 -0
  123. package/node_modules/base64-js/package.json +47 -0
  124. package/node_modules/bignumber.js/CHANGELOG.md +381 -0
  125. package/node_modules/bignumber.js/LICENCE.md +26 -0
  126. package/node_modules/bignumber.js/README.md +289 -0
  127. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  128. package/node_modules/bignumber.js/bignumber.d.ts +5 -0
  129. package/node_modules/bignumber.js/bignumber.js +2922 -0
  130. package/node_modules/bignumber.js/bignumber.mjs +2907 -0
  131. package/node_modules/bignumber.js/doc/API.html +2249 -0
  132. package/node_modules/bignumber.js/package.json +60 -0
  133. package/node_modules/bignumber.js/types.d.ts +1821 -0
  134. package/node_modules/brace-expansion/LICENSE +23 -0
  135. package/node_modules/brace-expansion/README.md +105 -0
  136. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +12 -0
  137. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  138. package/node_modules/brace-expansion/dist/commonjs/index.js +333 -0
  139. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  140. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  141. package/node_modules/brace-expansion/dist/esm/index.d.ts +12 -0
  142. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  143. package/node_modules/brace-expansion/dist/esm/index.js +329 -0
  144. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  145. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  146. package/node_modules/brace-expansion/package.json +65 -0
  147. package/node_modules/buffer-equal-constant-time/.npmignore +2 -0
  148. package/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
  149. package/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
  150. package/node_modules/buffer-equal-constant-time/README.md +50 -0
  151. package/node_modules/buffer-equal-constant-time/index.js +41 -0
  152. package/node_modules/buffer-equal-constant-time/package.json +21 -0
  153. package/node_modules/buffer-equal-constant-time/test.js +42 -0
  154. package/node_modules/cli-table3/LICENSE +21 -0
  155. package/node_modules/cli-table3/README.md +236 -0
  156. package/node_modules/cli-table3/index.d.ts +96 -0
  157. package/node_modules/cli-table3/index.js +1 -0
  158. package/node_modules/cli-table3/package.json +100 -0
  159. package/node_modules/cli-table3/src/cell.js +409 -0
  160. package/node_modules/cli-table3/src/debug.js +28 -0
  161. package/node_modules/cli-table3/src/layout-manager.js +254 -0
  162. package/node_modules/cli-table3/src/table.js +106 -0
  163. package/node_modules/cli-table3/src/utils.js +344 -0
  164. package/node_modules/commander/LICENSE +22 -0
  165. package/node_modules/commander/Readme.md +1157 -0
  166. package/node_modules/commander/esm.mjs +16 -0
  167. package/node_modules/commander/index.js +24 -0
  168. package/node_modules/commander/lib/argument.js +149 -0
  169. package/node_modules/commander/lib/command.js +2509 -0
  170. package/node_modules/commander/lib/error.js +39 -0
  171. package/node_modules/commander/lib/help.js +520 -0
  172. package/node_modules/commander/lib/option.js +330 -0
  173. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  174. package/node_modules/commander/package-support.json +16 -0
  175. package/node_modules/commander/package.json +84 -0
  176. package/node_modules/commander/typings/esm.d.mts +3 -0
  177. package/node_modules/commander/typings/index.d.ts +969 -0
  178. package/node_modules/debug/LICENSE +20 -0
  179. package/node_modules/debug/README.md +481 -0
  180. package/node_modules/debug/package.json +64 -0
  181. package/node_modules/debug/src/browser.js +272 -0
  182. package/node_modules/debug/src/common.js +292 -0
  183. package/node_modules/debug/src/index.js +10 -0
  184. package/node_modules/debug/src/node.js +263 -0
  185. package/node_modules/dotenv/CHANGELOG.md +520 -0
  186. package/node_modules/dotenv/LICENSE +23 -0
  187. package/node_modules/dotenv/README-es.md +411 -0
  188. package/node_modules/dotenv/README.md +645 -0
  189. package/node_modules/dotenv/SECURITY.md +1 -0
  190. package/node_modules/dotenv/config.d.ts +1 -0
  191. package/node_modules/dotenv/config.js +9 -0
  192. package/node_modules/dotenv/lib/cli-options.js +17 -0
  193. package/node_modules/dotenv/lib/env-options.js +28 -0
  194. package/node_modules/dotenv/lib/main.d.ts +162 -0
  195. package/node_modules/dotenv/lib/main.js +386 -0
  196. package/node_modules/dotenv/package.json +62 -0
  197. package/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
  198. package/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
  199. package/node_modules/ecdsa-sig-formatter/README.md +65 -0
  200. package/node_modules/ecdsa-sig-formatter/package.json +46 -0
  201. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
  202. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  203. package/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  204. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  205. package/node_modules/emoji-regex/README.md +73 -0
  206. package/node_modules/emoji-regex/es2015/index.js +6 -0
  207. package/node_modules/emoji-regex/es2015/text.js +6 -0
  208. package/node_modules/emoji-regex/index.d.ts +23 -0
  209. package/node_modules/emoji-regex/index.js +6 -0
  210. package/node_modules/emoji-regex/package.json +50 -0
  211. package/node_modules/emoji-regex/text.js +6 -0
  212. package/node_modules/extend/.editorconfig +20 -0
  213. package/node_modules/extend/.eslintrc +17 -0
  214. package/node_modules/extend/.jscs.json +175 -0
  215. package/node_modules/extend/.travis.yml +230 -0
  216. package/node_modules/extend/CHANGELOG.md +83 -0
  217. package/node_modules/extend/LICENSE +23 -0
  218. package/node_modules/extend/README.md +81 -0
  219. package/node_modules/extend/component.json +32 -0
  220. package/node_modules/extend/index.js +117 -0
  221. package/node_modules/extend/package.json +42 -0
  222. package/node_modules/gaxios/LICENSE +202 -0
  223. package/node_modules/gaxios/README.md +171 -0
  224. package/node_modules/gaxios/build/src/common.d.ts +220 -0
  225. package/node_modules/gaxios/build/src/common.js +172 -0
  226. package/node_modules/gaxios/build/src/common.js.map +1 -0
  227. package/node_modules/gaxios/build/src/gaxios.d.ts +51 -0
  228. package/node_modules/gaxios/build/src/gaxios.js +363 -0
  229. package/node_modules/gaxios/build/src/gaxios.js.map +1 -0
  230. package/node_modules/gaxios/build/src/index.d.ts +14 -0
  231. package/node_modules/gaxios/build/src/index.js +33 -0
  232. package/node_modules/gaxios/build/src/index.js.map +1 -0
  233. package/node_modules/gaxios/build/src/retry.d.ts +8 -0
  234. package/node_modules/gaxios/build/src/retry.js +139 -0
  235. package/node_modules/gaxios/build/src/retry.js.map +1 -0
  236. package/node_modules/gaxios/build/src/util.d.ts +4 -0
  237. package/node_modules/gaxios/build/src/util.js +17 -0
  238. package/node_modules/gaxios/build/src/util.js.map +1 -0
  239. package/node_modules/gaxios/package.json +95 -0
  240. package/node_modules/gcp-metadata/LICENSE +202 -0
  241. package/node_modules/gcp-metadata/README.md +235 -0
  242. package/node_modules/gcp-metadata/build/src/gcp-residency.d.ts +57 -0
  243. package/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  244. package/node_modules/gcp-metadata/build/src/gcp-residency.js.map +1 -0
  245. package/node_modules/gcp-metadata/build/src/index.d.ts +156 -0
  246. package/node_modules/gcp-metadata/build/src/index.js +408 -0
  247. package/node_modules/gcp-metadata/build/src/index.js.map +1 -0
  248. package/node_modules/gcp-metadata/package.json +73 -0
  249. package/node_modules/glob/LICENSE.md +63 -0
  250. package/node_modules/glob/README.md +1377 -0
  251. package/node_modules/glob/dist/commonjs/glob.d.ts +405 -0
  252. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  253. package/node_modules/glob/dist/commonjs/glob.js +241 -0
  254. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  255. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  256. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  257. package/node_modules/glob/dist/commonjs/has-magic.js +24 -0
  258. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  259. package/node_modules/glob/dist/commonjs/ignore.d.ts +36 -0
  260. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  261. package/node_modules/glob/dist/commonjs/ignore.js +139 -0
  262. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  263. package/node_modules/glob/dist/commonjs/index.d.ts +98 -0
  264. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  265. package/node_modules/glob/dist/commonjs/index.js +68 -0
  266. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  267. package/node_modules/glob/dist/commonjs/index.min.js +3 -0
  268. package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
  269. package/node_modules/glob/dist/commonjs/package.json +3 -0
  270. package/node_modules/glob/dist/commonjs/pattern.d.ts +86 -0
  271. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  272. package/node_modules/glob/dist/commonjs/pattern.js +235 -0
  273. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  274. package/node_modules/glob/dist/commonjs/processor.d.ts +72 -0
  275. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  276. package/node_modules/glob/dist/commonjs/processor.js +314 -0
  277. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  278. package/node_modules/glob/dist/commonjs/walker.d.ts +99 -0
  279. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  280. package/node_modules/glob/dist/commonjs/walker.js +402 -0
  281. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  282. package/node_modules/glob/dist/esm/glob.d.ts +405 -0
  283. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  284. package/node_modules/glob/dist/esm/glob.js +237 -0
  285. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  286. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  287. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  288. package/node_modules/glob/dist/esm/has-magic.js +20 -0
  289. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  290. package/node_modules/glob/dist/esm/ignore.d.ts +36 -0
  291. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  292. package/node_modules/glob/dist/esm/ignore.js +135 -0
  293. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  294. package/node_modules/glob/dist/esm/index.d.ts +98 -0
  295. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  296. package/node_modules/glob/dist/esm/index.js +55 -0
  297. package/node_modules/glob/dist/esm/index.js.map +1 -0
  298. package/node_modules/glob/dist/esm/index.min.js +3 -0
  299. package/node_modules/glob/dist/esm/index.min.js.map +7 -0
  300. package/node_modules/glob/dist/esm/package.json +3 -0
  301. package/node_modules/glob/dist/esm/pattern.d.ts +86 -0
  302. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  303. package/node_modules/glob/dist/esm/pattern.js +231 -0
  304. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  305. package/node_modules/glob/dist/esm/processor.d.ts +72 -0
  306. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  307. package/node_modules/glob/dist/esm/processor.js +307 -0
  308. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  309. package/node_modules/glob/dist/esm/walker.d.ts +99 -0
  310. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  311. package/node_modules/glob/dist/esm/walker.js +396 -0
  312. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  313. package/node_modules/glob/package.json +114 -0
  314. package/node_modules/glob/src/glob.ts +655 -0
  315. package/node_modules/glob/src/has-magic.ts +23 -0
  316. package/node_modules/glob/src/ignore.ts +162 -0
  317. package/node_modules/glob/src/index.ts +225 -0
  318. package/node_modules/glob/src/pattern.ts +286 -0
  319. package/node_modules/glob/src/processor.ts +333 -0
  320. package/node_modules/glob/src/walker.ts +523 -0
  321. package/node_modules/google-auth-library/LICENSE +202 -0
  322. package/node_modules/google-auth-library/README.md +1470 -0
  323. package/node_modules/google-auth-library/build/src/auth/authclient.d.ts +202 -0
  324. package/node_modules/google-auth-library/build/src/auth/authclient.js +116 -0
  325. package/node_modules/google-auth-library/build/src/auth/awsclient.d.ts +120 -0
  326. package/node_modules/google-auth-library/build/src/auth/awsclient.js +164 -0
  327. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.d.ts +40 -0
  328. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +209 -0
  329. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.d.ts +322 -0
  330. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +468 -0
  331. package/node_modules/google-auth-library/build/src/auth/computeclient.d.ts +37 -0
  332. package/node_modules/google-auth-library/build/src/auth/computeclient.js +117 -0
  333. package/node_modules/google-auth-library/build/src/auth/credentials.d.ts +75 -0
  334. package/node_modules/google-auth-library/build/src/auth/credentials.js +15 -0
  335. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.d.ts +79 -0
  336. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +196 -0
  337. package/node_modules/google-auth-library/build/src/auth/downscopedclient.d.ts +139 -0
  338. package/node_modules/google-auth-library/build/src/auth/downscopedclient.js +262 -0
  339. package/node_modules/google-auth-library/build/src/auth/envDetect.d.ts +10 -0
  340. package/node_modules/google-auth-library/build/src/auth/envDetect.js +89 -0
  341. package/node_modules/google-auth-library/build/src/auth/executable-response.d.ts +137 -0
  342. package/node_modules/google-auth-library/build/src/auth/executable-response.js +146 -0
  343. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.d.ts +78 -0
  344. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +239 -0
  345. package/node_modules/google-auth-library/build/src/auth/externalclient.d.ts +26 -0
  346. package/node_modules/google-auth-library/build/src/auth/externalclient.js +64 -0
  347. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.d.ts +42 -0
  348. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +81 -0
  349. package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +375 -0
  350. package/node_modules/google-auth-library/build/src/auth/googleauth.js +841 -0
  351. package/node_modules/google-auth-library/build/src/auth/iam.d.ts +23 -0
  352. package/node_modules/google-auth-library/build/src/auth/iam.js +41 -0
  353. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.d.ts +102 -0
  354. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +107 -0
  355. package/node_modules/google-auth-library/build/src/auth/idtokenclient.d.ts +27 -0
  356. package/node_modules/google-auth-library/build/src/auth/idtokenclient.js +55 -0
  357. package/node_modules/google-auth-library/build/src/auth/impersonated.d.ts +127 -0
  358. package/node_modules/google-auth-library/build/src/auth/impersonated.js +186 -0
  359. package/node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts +62 -0
  360. package/node_modules/google-auth-library/build/src/auth/jwtaccess.js +192 -0
  361. package/node_modules/google-auth-library/build/src/auth/jwtclient.d.ts +117 -0
  362. package/node_modules/google-auth-library/build/src/auth/jwtclient.js +284 -0
  363. package/node_modules/google-auth-library/build/src/auth/loginticket.d.ts +140 -0
  364. package/node_modules/google-auth-library/build/src/auth/loginticket.js +57 -0
  365. package/node_modules/google-auth-library/build/src/auth/oauth2client.d.ts +575 -0
  366. package/node_modules/google-auth-library/build/src/auth/oauth2client.js +794 -0
  367. package/node_modules/google-auth-library/build/src/auth/oauth2common.d.ts +92 -0
  368. package/node_modules/google-auth-library/build/src/auth/oauth2common.js +192 -0
  369. package/node_modules/google-auth-library/build/src/auth/passthrough.d.ts +38 -0
  370. package/node_modules/google-auth-library/build/src/auth/passthrough.js +61 -0
  371. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.d.ts +155 -0
  372. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +215 -0
  373. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts +51 -0
  374. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +156 -0
  375. package/node_modules/google-auth-library/build/src/auth/refreshclient.d.ts +50 -0
  376. package/node_modules/google-auth-library/build/src/auth/refreshclient.js +132 -0
  377. package/node_modules/google-auth-library/build/src/auth/stscredentials.d.ts +114 -0
  378. package/node_modules/google-auth-library/build/src/auth/stscredentials.js +109 -0
  379. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.d.ts +57 -0
  380. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +63 -0
  381. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.d.ts +27 -0
  382. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +126 -0
  383. package/node_modules/google-auth-library/build/src/crypto/crypto.d.ts +44 -0
  384. package/node_modules/google-auth-library/build/src/crypto/crypto.js +47 -0
  385. package/node_modules/google-auth-library/build/src/crypto/node/crypto.d.ts +25 -0
  386. package/node_modules/google-auth-library/build/src/crypto/node/crypto.js +82 -0
  387. package/node_modules/google-auth-library/build/src/index.d.ts +33 -0
  388. package/node_modules/google-auth-library/build/src/index.js +68 -0
  389. package/node_modules/google-auth-library/build/src/messages.d.ts +11 -0
  390. package/node_modules/google-auth-library/build/src/messages.js +39 -0
  391. package/node_modules/google-auth-library/build/src/options.d.ts +1 -0
  392. package/node_modules/google-auth-library/build/src/options.js +34 -0
  393. package/node_modules/google-auth-library/build/src/transporters.d.ts +40 -0
  394. package/node_modules/google-auth-library/build/src/transporters.js +110 -0
  395. package/node_modules/google-auth-library/build/src/util.d.ts +151 -0
  396. package/node_modules/google-auth-library/build/src/util.js +125 -0
  397. package/node_modules/google-auth-library/package.json +94 -0
  398. package/node_modules/google-logging-utils/LICENSE +202 -0
  399. package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -0
  400. package/node_modules/google-logging-utils/build/src/colours.js +80 -0
  401. package/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
  402. package/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
  403. package/node_modules/google-logging-utils/build/src/index.js +31 -0
  404. package/node_modules/google-logging-utils/build/src/index.js.map +1 -0
  405. package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +222 -0
  406. package/node_modules/google-logging-utils/build/src/logging-utils.js +406 -0
  407. package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
  408. package/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
  409. package/node_modules/google-logging-utils/build/src/temporal.js +68 -0
  410. package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
  411. package/node_modules/google-logging-utils/package.json +39 -0
  412. package/node_modules/gtoken/LICENSE +21 -0
  413. package/node_modules/gtoken/README.md +187 -0
  414. package/node_modules/gtoken/build/src/index.d.ts +93 -0
  415. package/node_modules/gtoken/build/src/index.js +276 -0
  416. package/node_modules/gtoken/package.json +62 -0
  417. package/node_modules/https-proxy-agent/LICENSE +22 -0
  418. package/node_modules/https-proxy-agent/README.md +70 -0
  419. package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
  420. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  421. package/node_modules/https-proxy-agent/dist/index.js +180 -0
  422. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  423. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
  424. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  425. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  426. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  427. package/node_modules/https-proxy-agent/package.json +50 -0
  428. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  429. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  430. package/node_modules/is-fullwidth-code-point/license +9 -0
  431. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  432. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  433. package/node_modules/is-stream/index.d.ts +79 -0
  434. package/node_modules/is-stream/index.js +28 -0
  435. package/node_modules/is-stream/license +9 -0
  436. package/node_modules/is-stream/package.json +42 -0
  437. package/node_modules/is-stream/readme.md +60 -0
  438. package/node_modules/json-bigint/LICENSE +20 -0
  439. package/node_modules/json-bigint/README.md +240 -0
  440. package/node_modules/json-bigint/index.js +12 -0
  441. package/node_modules/json-bigint/lib/parse.js +443 -0
  442. package/node_modules/json-bigint/lib/stringify.js +384 -0
  443. package/node_modules/json-bigint/package.json +34 -0
  444. package/node_modules/jwa/LICENSE +17 -0
  445. package/node_modules/jwa/README.md +150 -0
  446. package/node_modules/jwa/index.js +266 -0
  447. package/node_modules/jwa/opslevel.yml +6 -0
  448. package/node_modules/jwa/package.json +37 -0
  449. package/node_modules/jws/CHANGELOG.md +56 -0
  450. package/node_modules/jws/LICENSE +17 -0
  451. package/node_modules/jws/index.js +22 -0
  452. package/node_modules/jws/lib/data-stream.js +55 -0
  453. package/node_modules/jws/lib/sign-stream.js +83 -0
  454. package/node_modules/jws/lib/tostring.js +10 -0
  455. package/node_modules/jws/lib/verify-stream.js +125 -0
  456. package/node_modules/jws/opslevel.yml +6 -0
  457. package/node_modules/jws/package.json +34 -0
  458. package/node_modules/jws/readme.md +255 -0
  459. package/node_modules/lru-cache/LICENSE.md +55 -0
  460. package/node_modules/lru-cache/README.md +469 -0
  461. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  462. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  463. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  464. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  465. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  466. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  467. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  468. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  469. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  470. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  471. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  472. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  473. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  474. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  475. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  476. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  477. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  478. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  479. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  480. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  481. package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  482. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  483. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  484. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  485. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  486. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  487. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  488. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  489. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  490. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  491. package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  492. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  493. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  494. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  495. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  496. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  497. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  498. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  499. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  500. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  501. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  502. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  503. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  504. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  505. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  506. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  507. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  508. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  509. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  510. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  511. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  512. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  513. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  514. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  515. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  516. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  517. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  518. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  519. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  520. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  521. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  522. package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
  523. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  524. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  525. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  526. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  527. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  528. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  529. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  530. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  531. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  532. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  533. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  534. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  535. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  536. package/node_modules/lru-cache/dist/esm/index.js +1729 -0
  537. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  538. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  539. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  540. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  541. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  542. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  543. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  544. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  545. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  546. package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  547. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  548. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  549. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  550. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  551. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  552. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  553. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  554. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  555. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  556. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  557. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  558. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  559. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  560. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  561. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  562. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  563. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  564. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  565. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  566. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  567. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  568. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  569. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  570. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  571. package/node_modules/lru-cache/package.json +180 -0
  572. package/node_modules/minimatch/LICENSE.md +55 -0
  573. package/node_modules/minimatch/README.md +546 -0
  574. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  575. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  576. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  577. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  578. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  579. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  580. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  581. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  582. package/node_modules/minimatch/dist/commonjs/index.d.ts +185 -0
  583. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  584. package/node_modules/minimatch/dist/commonjs/index.js +1550 -0
  585. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  586. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  587. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  588. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  589. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  590. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  591. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  592. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  593. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  594. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  595. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  596. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  597. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  598. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  599. package/node_modules/minimatch/dist/esm/index.d.ts +185 -0
  600. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  601. package/node_modules/minimatch/dist/esm/index.js +1539 -0
  602. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  603. package/node_modules/minimatch/dist/esm/package.json +3 -0
  604. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  605. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  606. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  607. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  608. package/node_modules/minimatch/package.json +74 -0
  609. package/node_modules/minipass/LICENSE.md +55 -0
  610. package/node_modules/minipass/README.md +825 -0
  611. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  612. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  613. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  614. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  615. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  616. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  617. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  618. package/node_modules/minipass/dist/esm/index.js +1020 -0
  619. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  620. package/node_modules/minipass/dist/esm/package.json +3 -0
  621. package/node_modules/minipass/package.json +77 -0
  622. package/node_modules/ms/index.js +162 -0
  623. package/node_modules/ms/license.md +21 -0
  624. package/node_modules/ms/package.json +38 -0
  625. package/node_modules/ms/readme.md +59 -0
  626. package/node_modules/node-fetch/LICENSE.md +22 -0
  627. package/node_modules/node-fetch/README.md +634 -0
  628. package/node_modules/node-fetch/browser.js +25 -0
  629. package/node_modules/node-fetch/lib/index.es.js +1777 -0
  630. package/node_modules/node-fetch/lib/index.js +1787 -0
  631. package/node_modules/node-fetch/lib/index.mjs +1775 -0
  632. package/node_modules/node-fetch/package.json +89 -0
  633. package/node_modules/path-scurry/LICENSE.md +55 -0
  634. package/node_modules/path-scurry/README.md +635 -0
  635. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1122 -0
  636. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  637. package/node_modules/path-scurry/dist/commonjs/index.js +2056 -0
  638. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  639. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  640. package/node_modules/path-scurry/dist/esm/index.d.ts +1122 -0
  641. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  642. package/node_modules/path-scurry/dist/esm/index.js +2011 -0
  643. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  644. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  645. package/node_modules/path-scurry/package.json +72 -0
  646. package/node_modules/picocolors/LICENSE +15 -0
  647. package/node_modules/picocolors/README.md +21 -0
  648. package/node_modules/picocolors/package.json +25 -0
  649. package/node_modules/picocolors/picocolors.browser.js +4 -0
  650. package/node_modules/picocolors/picocolors.d.ts +5 -0
  651. package/node_modules/picocolors/picocolors.js +75 -0
  652. package/node_modules/picocolors/types.d.ts +51 -0
  653. package/node_modules/safe-buffer/LICENSE +21 -0
  654. package/node_modules/safe-buffer/README.md +584 -0
  655. package/node_modules/safe-buffer/index.d.ts +187 -0
  656. package/node_modules/safe-buffer/index.js +65 -0
  657. package/node_modules/safe-buffer/package.json +51 -0
  658. package/node_modules/string-width/index.d.ts +29 -0
  659. package/node_modules/string-width/index.js +47 -0
  660. package/node_modules/string-width/license +9 -0
  661. package/node_modules/string-width/package.json +56 -0
  662. package/node_modules/string-width/readme.md +50 -0
  663. package/node_modules/strip-ansi/index.d.ts +17 -0
  664. package/node_modules/strip-ansi/index.js +4 -0
  665. package/node_modules/strip-ansi/license +9 -0
  666. package/node_modules/strip-ansi/package.json +54 -0
  667. package/node_modules/strip-ansi/readme.md +46 -0
  668. package/node_modules/tr46/.npmignore +4 -0
  669. package/node_modules/tr46/index.js +193 -0
  670. package/node_modules/tr46/lib/.gitkeep +0 -0
  671. package/node_modules/tr46/lib/mappingTable.json +1 -0
  672. package/node_modules/tr46/package.json +31 -0
  673. package/node_modules/webidl-conversions/LICENSE.md +12 -0
  674. package/node_modules/webidl-conversions/README.md +53 -0
  675. package/node_modules/webidl-conversions/lib/index.js +189 -0
  676. package/node_modules/webidl-conversions/package.json +23 -0
  677. package/node_modules/whatwg-url/LICENSE.txt +21 -0
  678. package/node_modules/whatwg-url/README.md +67 -0
  679. package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  680. package/node_modules/whatwg-url/lib/URL.js +196 -0
  681. package/node_modules/whatwg-url/lib/public-api.js +11 -0
  682. package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  683. package/node_modules/whatwg-url/lib/utils.js +20 -0
  684. package/node_modules/whatwg-url/package.json +32 -0
  685. package/node_modules/ws/LICENSE +20 -0
  686. package/node_modules/ws/README.md +540 -0
  687. package/node_modules/ws/browser.js +8 -0
  688. package/node_modules/ws/index.js +22 -0
  689. package/node_modules/ws/lib/buffer-util.js +142 -0
  690. package/node_modules/ws/lib/constants.js +19 -0
  691. package/node_modules/ws/lib/event-target.js +292 -0
  692. package/node_modules/ws/lib/extension.js +203 -0
  693. package/node_modules/ws/lib/limiter.js +55 -0
  694. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  695. package/node_modules/ws/lib/receiver.js +743 -0
  696. package/node_modules/ws/lib/sender.js +610 -0
  697. package/node_modules/ws/lib/stream.js +161 -0
  698. package/node_modules/ws/lib/subprotocol.js +62 -0
  699. package/node_modules/ws/lib/validation.js +152 -0
  700. package/node_modules/ws/lib/websocket-server.js +562 -0
  701. package/node_modules/ws/lib/websocket.js +1426 -0
  702. package/node_modules/ws/package.json +74 -0
  703. package/node_modules/ws/wrapper.mjs +21 -0
  704. package/node_modules/zod/LICENSE +21 -0
  705. package/node_modules/zod/README.md +218 -0
  706. package/node_modules/zod/compile.cjs +96 -0
  707. package/node_modules/zod/compile.d.cts +1 -0
  708. package/node_modules/zod/compile.d.ts +1 -0
  709. package/node_modules/zod/compile.js +52 -0
  710. package/node_modules/zod/index.cjs +52 -0
  711. package/node_modules/zod/index.d.cts +3 -0
  712. package/node_modules/zod/index.d.ts +3 -0
  713. package/node_modules/zod/index.js +7 -0
  714. package/node_modules/zod/locales/index.cjs +36 -0
  715. package/node_modules/zod/locales/index.d.cts +1 -0
  716. package/node_modules/zod/locales/index.d.ts +1 -0
  717. package/node_modules/zod/locales/index.js +1 -0
  718. package/node_modules/zod/locales/package.json +7 -0
  719. package/node_modules/zod/mini/index.cjs +51 -0
  720. package/node_modules/zod/mini/index.d.cts +3 -0
  721. package/node_modules/zod/mini/index.d.ts +3 -0
  722. package/node_modules/zod/mini/index.js +3 -0
  723. package/node_modules/zod/mini/package.json +7 -0
  724. package/node_modules/zod/package.json +147 -0
  725. package/node_modules/zod/src/compile.ts +56 -0
  726. package/node_modules/zod/src/index.ts +7 -0
  727. package/node_modules/zod/src/locales/index.ts +1 -0
  728. package/node_modules/zod/src/mini/index.ts +3 -0
  729. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  730. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  731. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  732. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  733. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  734. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  735. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  736. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  737. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  738. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  739. package/node_modules/zod/src/v3/errors.ts +13 -0
  740. package/node_modules/zod/src/v3/external.ts +6 -0
  741. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  742. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  743. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  744. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  745. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  746. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  747. package/node_modules/zod/src/v3/index.ts +4 -0
  748. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  749. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  750. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  751. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  752. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  753. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  754. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  755. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  756. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  757. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  758. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  759. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  760. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  761. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  762. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  763. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  764. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  765. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  766. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  767. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  768. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  769. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  770. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  771. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  772. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  773. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  774. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  775. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  776. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  777. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  778. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  779. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  780. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  781. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  782. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  783. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  784. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  785. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  786. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  787. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  788. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  789. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  790. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  791. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  792. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  793. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  794. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  795. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  796. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  797. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  798. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  799. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  800. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  801. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  802. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  803. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  804. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  805. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  806. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  807. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  808. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  809. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  810. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  811. package/node_modules/zod/src/v3/types.ts +5138 -0
  812. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  813. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  814. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  815. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  816. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  817. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  818. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  819. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  820. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  821. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  822. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  823. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  824. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  825. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  826. package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  827. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  828. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  829. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  830. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  831. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  832. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  833. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  834. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  835. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  836. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  837. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  838. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  839. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  840. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  841. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  842. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  843. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  844. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  845. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  846. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  847. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  848. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  849. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  850. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  851. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  852. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  853. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  854. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  855. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  856. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  857. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  858. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  859. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  860. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  861. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  862. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  863. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  864. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  865. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  866. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  867. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  868. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  869. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  870. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  871. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  872. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  873. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  874. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  875. package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  876. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  877. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  878. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  879. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  880. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  881. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  882. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  883. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  884. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  885. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  886. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  887. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  888. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  889. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  890. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  891. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  892. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  893. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  894. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  895. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  896. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  897. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  898. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  899. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  900. package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  901. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  902. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  903. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  904. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  905. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  906. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  907. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  908. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  909. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  910. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  911. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  912. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  913. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  914. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  915. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  916. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  917. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  918. package/node_modules/zod/src/v4/core/core.ts +230 -0
  919. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  920. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  921. package/node_modules/zod/src/v4/core/index.ts +19 -0
  922. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  923. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  924. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  925. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  926. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  927. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  928. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  929. package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  930. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  931. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  932. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  933. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  934. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  935. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  936. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  937. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  938. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  939. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  940. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  941. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  942. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  943. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  944. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  945. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  946. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  947. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  948. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  949. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  950. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  951. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  952. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  953. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  954. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  955. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  956. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  957. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  958. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  959. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  960. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  961. package/node_modules/zod/src/v4/core/util.ts +1293 -0
  962. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  963. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  964. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  965. package/node_modules/zod/src/v4/index.ts +4 -0
  966. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  967. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  968. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  969. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  970. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  971. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  972. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  973. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  974. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  975. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  976. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  977. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  978. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  979. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  980. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  981. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  982. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  983. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  984. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  985. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  986. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  987. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  988. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  989. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  990. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  991. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  992. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  993. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  994. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  995. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  996. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  997. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  998. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  999. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  1000. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  1001. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  1002. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  1003. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  1004. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1005. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  1006. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  1007. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  1008. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  1009. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  1010. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  1011. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  1012. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  1013. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  1014. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  1015. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  1016. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  1017. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  1018. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  1019. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  1020. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  1021. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  1022. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  1023. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  1024. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  1025. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  1026. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  1027. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  1028. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  1029. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  1030. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  1031. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  1032. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  1033. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  1034. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  1035. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1036. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  1037. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  1038. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  1039. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  1040. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  1041. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  1042. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  1043. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  1044. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  1045. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  1046. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  1047. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  1048. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  1049. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  1050. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  1051. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  1052. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1053. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  1054. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  1055. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  1056. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  1057. package/node_modules/zod/v3/ZodError.cjs +167 -0
  1058. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1059. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1060. package/node_modules/zod/v3/ZodError.js +143 -0
  1061. package/node_modules/zod/v3/errors.cjs +36 -0
  1062. package/node_modules/zod/v3/errors.d.cts +5 -0
  1063. package/node_modules/zod/v3/errors.d.ts +5 -0
  1064. package/node_modules/zod/v3/errors.js +9 -0
  1065. package/node_modules/zod/v3/external.cjs +41 -0
  1066. package/node_modules/zod/v3/external.d.cts +6 -0
  1067. package/node_modules/zod/v3/external.d.ts +6 -0
  1068. package/node_modules/zod/v3/external.js +6 -0
  1069. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  1070. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1071. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1072. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1073. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  1074. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1075. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1076. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1077. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  1078. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1079. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1080. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1081. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  1082. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1083. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1084. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1085. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  1086. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1087. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1088. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1089. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  1090. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1091. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1092. package/node_modules/zod/v3/helpers/util.js +133 -0
  1093. package/node_modules/zod/v3/index.cjs +52 -0
  1094. package/node_modules/zod/v3/index.d.cts +4 -0
  1095. package/node_modules/zod/v3/index.d.ts +4 -0
  1096. package/node_modules/zod/v3/index.js +4 -0
  1097. package/node_modules/zod/v3/locales/en.cjs +112 -0
  1098. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1099. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1100. package/node_modules/zod/v3/locales/en.js +109 -0
  1101. package/node_modules/zod/v3/package.json +7 -0
  1102. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  1103. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1104. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1105. package/node_modules/zod/v3/standard-schema.js +1 -0
  1106. package/node_modules/zod/v3/types.cjs +3798 -0
  1107. package/node_modules/zod/v3/types.d.cts +1034 -0
  1108. package/node_modules/zod/v3/types.d.ts +1034 -0
  1109. package/node_modules/zod/v3/types.js +3697 -0
  1110. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  1111. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1112. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1113. package/node_modules/zod/v4/classic/checks.js +1 -0
  1114. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  1115. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1116. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1117. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1118. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  1119. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  1120. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  1121. package/node_modules/zod/v4/classic/compat.js +31 -0
  1122. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1123. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  1124. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  1125. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1126. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  1127. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  1128. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  1129. package/node_modules/zod/v4/classic/errors.js +57 -0
  1130. package/node_modules/zod/v4/classic/external.cjs +97 -0
  1131. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  1132. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  1133. package/node_modules/zod/v4/classic/external.js +17 -0
  1134. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  1135. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1136. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1137. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  1138. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1139. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1140. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1141. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1142. package/node_modules/zod/v4/classic/index.cjs +52 -0
  1143. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  1144. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  1145. package/node_modules/zod/v4/classic/index.js +4 -0
  1146. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  1147. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1148. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1149. package/node_modules/zod/v4/classic/iso.js +15 -0
  1150. package/node_modules/zod/v4/classic/package.json +7 -0
  1151. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  1152. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1153. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1154. package/node_modules/zod/v4/classic/parse.js +16 -0
  1155. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  1156. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  1157. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  1158. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  1159. package/node_modules/zod/v4/core/api.cjs +1269 -0
  1160. package/node_modules/zod/v4/core/api.d.cts +335 -0
  1161. package/node_modules/zod/v4/core/api.d.ts +335 -0
  1162. package/node_modules/zod/v4/core/api.js +1107 -0
  1163. package/node_modules/zod/v4/core/checks.cjs +561 -0
  1164. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  1165. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  1166. package/node_modules/zod/v4/core/checks.js +516 -0
  1167. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  1168. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  1169. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  1170. package/node_modules/zod/v4/core/compile.js +1866 -0
  1171. package/node_modules/zod/v4/core/core.cjs +167 -0
  1172. package/node_modules/zod/v4/core/core.d.cts +82 -0
  1173. package/node_modules/zod/v4/core/core.d.ts +82 -0
  1174. package/node_modules/zod/v4/core/core.js +141 -0
  1175. package/node_modules/zod/v4/core/doc.cjs +61 -0
  1176. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  1177. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  1178. package/node_modules/zod/v4/core/doc.js +38 -0
  1179. package/node_modules/zod/v4/core/errors.cjs +317 -0
  1180. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  1181. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  1182. package/node_modules/zod/v4/core/errors.js +267 -0
  1183. package/node_modules/zod/v4/core/index.cjs +70 -0
  1184. package/node_modules/zod/v4/core/index.d.cts +19 -0
  1185. package/node_modules/zod/v4/core/index.d.ts +19 -0
  1186. package/node_modules/zod/v4/core/index.js +19 -0
  1187. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  1188. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1189. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1190. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1191. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  1192. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  1193. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  1194. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  1195. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  1196. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1197. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1198. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1199. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1200. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1201. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1202. package/node_modules/zod/v4/core/memoizer.js +311 -0
  1203. package/node_modules/zod/v4/core/package.json +7 -0
  1204. package/node_modules/zod/v4/core/parse.cjs +233 -0
  1205. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  1206. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  1207. package/node_modules/zod/v4/core/parse.js +175 -0
  1208. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  1209. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  1210. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  1211. package/node_modules/zod/v4/core/regexes.js +156 -0
  1212. package/node_modules/zod/v4/core/registries.cjs +75 -0
  1213. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1214. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1215. package/node_modules/zod/v4/core/registries.js +51 -0
  1216. package/node_modules/zod/v4/core/schemas.cjs +2699 -0
  1217. package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  1218. package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  1219. package/node_modules/zod/v4/core/schemas.js +2636 -0
  1220. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  1221. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1222. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1223. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1224. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  1225. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  1226. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  1227. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  1228. package/node_modules/zod/v4/core/util.cjs +964 -0
  1229. package/node_modules/zod/v4/core/util.d.cts +280 -0
  1230. package/node_modules/zod/v4/core/util.d.ts +280 -0
  1231. package/node_modules/zod/v4/core/util.js +873 -0
  1232. package/node_modules/zod/v4/core/versions.cjs +27 -0
  1233. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1234. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1235. package/node_modules/zod/v4/core/versions.js +5 -0
  1236. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1237. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  1238. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  1239. package/node_modules/zod/v4/core/visit.js +169 -0
  1240. package/node_modules/zod/v4/index.cjs +51 -0
  1241. package/node_modules/zod/v4/index.d.cts +3 -0
  1242. package/node_modules/zod/v4/index.d.ts +3 -0
  1243. package/node_modules/zod/v4/index.js +4 -0
  1244. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  1245. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1246. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1247. package/node_modules/zod/v4/locales/ar.js +111 -0
  1248. package/node_modules/zod/v4/locales/az.cjs +137 -0
  1249. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  1250. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1251. package/node_modules/zod/v4/locales/az.js +110 -0
  1252. package/node_modules/zod/v4/locales/be.cjs +195 -0
  1253. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  1254. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1255. package/node_modules/zod/v4/locales/be.js +168 -0
  1256. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  1257. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1258. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1259. package/node_modules/zod/v4/locales/bg.js +125 -0
  1260. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1261. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1262. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1263. package/node_modules/zod/v4/locales/bn.js +113 -0
  1264. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  1265. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1266. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1267. package/node_modules/zod/v4/locales/ca.js +112 -0
  1268. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1269. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1270. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1271. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1272. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  1273. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1274. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1275. package/node_modules/zod/v4/locales/cs.js +116 -0
  1276. package/node_modules/zod/v4/locales/da.cjs +147 -0
  1277. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  1278. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  1279. package/node_modules/zod/v4/locales/da.js +120 -0
  1280. package/node_modules/zod/v4/locales/de.cjs +140 -0
  1281. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  1282. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1283. package/node_modules/zod/v4/locales/de.js +113 -0
  1284. package/node_modules/zod/v4/locales/el.cjs +139 -0
  1285. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  1286. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  1287. package/node_modules/zod/v4/locales/el.js +112 -0
  1288. package/node_modules/zod/v4/locales/en.cjs +152 -0
  1289. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1290. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  1291. package/node_modules/zod/v4/locales/en.js +125 -0
  1292. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  1293. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1294. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1295. package/node_modules/zod/v4/locales/eo.js +114 -0
  1296. package/node_modules/zod/v4/locales/es.cjs +163 -0
  1297. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  1298. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1299. package/node_modules/zod/v4/locales/es.js +136 -0
  1300. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  1301. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1302. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1303. package/node_modules/zod/v4/locales/fa.js +119 -0
  1304. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  1305. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1306. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1307. package/node_modules/zod/v4/locales/fi.js +117 -0
  1308. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1309. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1310. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1311. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1312. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  1313. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1314. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1315. package/node_modules/zod/v4/locales/fr.js +129 -0
  1316. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1317. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1318. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1319. package/node_modules/zod/v4/locales/gu.js +113 -0
  1320. package/node_modules/zod/v4/locales/he.cjs +248 -0
  1321. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  1322. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1323. package/node_modules/zod/v4/locales/he.js +221 -0
  1324. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1325. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1326. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1327. package/node_modules/zod/v4/locales/hi.js +111 -0
  1328. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  1329. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1330. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1331. package/node_modules/zod/v4/locales/hr.js +126 -0
  1332. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  1333. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1334. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1335. package/node_modules/zod/v4/locales/hu.js +113 -0
  1336. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  1337. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1338. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1339. package/node_modules/zod/v4/locales/hy.js +158 -0
  1340. package/node_modules/zod/v4/locales/id.cjs +138 -0
  1341. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  1342. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1343. package/node_modules/zod/v4/locales/id.js +111 -0
  1344. package/node_modules/zod/v4/locales/index.cjs +152 -0
  1345. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  1346. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  1347. package/node_modules/zod/v4/locales/index.js +63 -0
  1348. package/node_modules/zod/v4/locales/is.cjs +141 -0
  1349. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  1350. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  1351. package/node_modules/zod/v4/locales/is.js +114 -0
  1352. package/node_modules/zod/v4/locales/it.cjs +140 -0
  1353. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  1354. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1355. package/node_modules/zod/v4/locales/it.js +113 -0
  1356. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  1357. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1358. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1359. package/node_modules/zod/v4/locales/ja.js +112 -0
  1360. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  1361. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1362. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1363. package/node_modules/zod/v4/locales/ka.js +117 -0
  1364. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  1365. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1366. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1367. package/node_modules/zod/v4/locales/kh.js +5 -0
  1368. package/node_modules/zod/v4/locales/km.cjs +142 -0
  1369. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  1370. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  1371. package/node_modules/zod/v4/locales/km.js +115 -0
  1372. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1373. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1374. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1375. package/node_modules/zod/v4/locales/kn.js +116 -0
  1376. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  1377. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1378. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1379. package/node_modules/zod/v4/locales/ko.js +116 -0
  1380. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  1381. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1382. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1383. package/node_modules/zod/v4/locales/lt.js +207 -0
  1384. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  1385. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1386. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1387. package/node_modules/zod/v4/locales/mk.js +114 -0
  1388. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  1389. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1390. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1391. package/node_modules/zod/v4/locales/ms.js +112 -0
  1392. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1393. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1394. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1395. package/node_modules/zod/v4/locales/ne.js +111 -0
  1396. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  1397. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1398. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1399. package/node_modules/zod/v4/locales/nl.js +115 -0
  1400. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1401. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1402. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1403. package/node_modules/zod/v4/locales/nn.js +113 -0
  1404. package/node_modules/zod/v4/locales/no.cjs +140 -0
  1405. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  1406. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1407. package/node_modules/zod/v4/locales/no.js +113 -0
  1408. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  1409. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1410. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1411. package/node_modules/zod/v4/locales/ota.js +114 -0
  1412. package/node_modules/zod/v4/locales/package.json +7 -0
  1413. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  1414. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1415. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1416. package/node_modules/zod/v4/locales/pl.js +114 -0
  1417. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  1418. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1419. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1420. package/node_modules/zod/v4/locales/ps.js +119 -0
  1421. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1422. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1423. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1424. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1425. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  1426. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1427. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1428. package/node_modules/zod/v4/locales/pt.js +142 -0
  1429. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  1430. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1431. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1432. package/node_modules/zod/v4/locales/ro.js +122 -0
  1433. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  1434. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1435. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1436. package/node_modules/zod/v4/locales/ru.js +168 -0
  1437. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1438. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1439. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1440. package/node_modules/zod/v4/locales/sk.js +116 -0
  1441. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  1442. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1443. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1444. package/node_modules/zod/v4/locales/sl.js +114 -0
  1445. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  1446. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1447. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1448. package/node_modules/zod/v4/locales/sv.js +115 -0
  1449. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  1450. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1451. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1452. package/node_modules/zod/v4/locales/ta.js +115 -0
  1453. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1454. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1455. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1456. package/node_modules/zod/v4/locales/tg.js +117 -0
  1457. package/node_modules/zod/v4/locales/th.cjs +142 -0
  1458. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1459. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1460. package/node_modules/zod/v4/locales/th.js +115 -0
  1461. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1462. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1463. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1464. package/node_modules/zod/v4/locales/tk.js +107 -0
  1465. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  1466. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1467. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1468. package/node_modules/zod/v4/locales/tr.js +110 -0
  1469. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1470. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1471. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1472. package/node_modules/zod/v4/locales/ua.js +5 -0
  1473. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  1474. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1475. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1476. package/node_modules/zod/v4/locales/uk.js +113 -0
  1477. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  1478. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1479. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1480. package/node_modules/zod/v4/locales/ur.js +115 -0
  1481. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  1482. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1483. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1484. package/node_modules/zod/v4/locales/uz.js +113 -0
  1485. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  1486. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1487. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1488. package/node_modules/zod/v4/locales/vi.js +113 -0
  1489. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  1490. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1491. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1492. package/node_modules/zod/v4/locales/yo.js +112 -0
  1493. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1494. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1495. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1496. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1497. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1498. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1499. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1500. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1501. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  1502. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1503. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1504. package/node_modules/zod/v4/mini/checks.js +1 -0
  1505. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1506. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1507. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1508. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1509. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1510. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1511. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1512. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1513. package/node_modules/zod/v4/mini/external.cjs +95 -0
  1514. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  1515. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  1516. package/node_modules/zod/v4/mini/external.js +16 -0
  1517. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1518. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1519. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1520. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1521. package/node_modules/zod/v4/mini/index.cjs +51 -0
  1522. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1523. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1524. package/node_modules/zod/v4/mini/index.js +3 -0
  1525. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  1526. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1527. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1528. package/node_modules/zod/v4/mini/iso.js +34 -0
  1529. package/node_modules/zod/v4/mini/package.json +7 -0
  1530. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  1531. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1532. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1533. package/node_modules/zod/v4/mini/parse.js +1 -0
  1534. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1535. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1536. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1537. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  1538. package/node_modules/zod/v4/package.json +7 -0
  1539. package/node_modules/zod/v4-mini/index.cjs +51 -0
  1540. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1541. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1542. package/node_modules/zod/v4-mini/index.js +3 -0
  1543. package/node_modules/zod/v4-mini/package.json +7 -0
  1544. package/package.json +66 -4
@@ -0,0 +1,2011 @@
1
+ import { LRUCache } from 'lru-cache';
2
+ import { posix, win32 } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps, } from 'fs';
5
+ import * as actualFS from 'node:fs';
6
+ const realpathSync = rps.native;
7
+ // TODO: test perf of fs/promises realpath vs realpathCB,
8
+ // since the promises one uses realpath.native
9
+ import { lstat, readdir, readlink, realpath } from 'node:fs/promises';
10
+ import { Minipass } from 'minipass';
11
+ const defaultFS = {
12
+ lstatSync,
13
+ readdir: readdirCB,
14
+ readdirSync,
15
+ readlinkSync,
16
+ realpathSync,
17
+ promises: {
18
+ lstat,
19
+ readdir,
20
+ readlink,
21
+ realpath,
22
+ },
23
+ };
24
+ // if they just gave us require('fs') then use our default
25
+ const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS ?
26
+ defaultFS
27
+ : {
28
+ ...defaultFS,
29
+ ...fsOption,
30
+ promises: {
31
+ ...defaultFS.promises,
32
+ ...(fsOption.promises),
33
+ },
34
+ };
35
+ // turn something like //?/c:/ into c:\, and //?/UNC/host/share/ or
36
+ // //host/share into \\host\share\
37
+ const uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
38
+ const uncLongRegexp = /^\\\\\?\\UNC\\([^\\]+\\[^\\]+)\\?$/i;
39
+ const uncShareRegexp = /^\\\\[^\\?]+\\[^\\]+$/;
40
+ const uncToDrive = (rootPath) => rootPath
41
+ .replace(/\//g, '\\')
42
+ .replace(uncDriveRegexp, '$1\\')
43
+ .replace(uncLongRegexp, '\\\\$1\\')
44
+ .replace(uncShareRegexp, '$&\\');
45
+ // path.win32.parse() only finds the //?/UNC/ of a long UNC root
46
+ const longUncRoot = /^[\\/]{2}\?[\\/]unc[\\/][^\\/]+[\\/][^\\/]+(?:[\\/]|$)/i;
47
+ // //?/c:/x is the same path as c:/x
48
+ const longDrivePrefix = /^[\\/]{2}\?[\\/](?=[a-z]:)/i;
49
+ // //?/UNC/host/share/x is the same path as //host/share/x. This
50
+ // matches up to the / after UNC, which with a \ in front of it is
51
+ // the // in front of the host.
52
+ const longUncPrefix = /^[\\/]{2}\?[\\/]unc(?=[\\/][^\\/]+[\\/][^\\/])/i;
53
+ // windows paths are separated by either / or \
54
+ const eitherSep = /[\\/]/;
55
+ const UNKNOWN = 0; // may not even exist, for all we know
56
+ const IFIFO = 0b0001;
57
+ const IFCHR = 0b0010;
58
+ const IFDIR = 0b0100;
59
+ const IFBLK = 0b0110;
60
+ const IFREG = 0b1000;
61
+ const IFLNK = 0b1010;
62
+ const IFSOCK = 0b1100;
63
+ const IFMT = 0b1111;
64
+ // mask to unset low 4 bits
65
+ const IFMT_UNKNOWN = ~IFMT;
66
+ // set after successfully calling readdir() and getting entries.
67
+ const READDIR_CALLED = 0b0000_0001_0000;
68
+ // set after a successful lstat()
69
+ const LSTAT_CALLED = 0b0000_0010_0000;
70
+ // set if an entry (or one of its parents) is definitely not a dir
71
+ const ENOTDIR = 0b0000_0100_0000;
72
+ // set if an entry (or one of its parents) does not exist
73
+ // (can also be set on lstat errors like EACCES or ENAMETOOLONG)
74
+ const ENOENT = 0b0000_1000_0000;
75
+ // cannot have child entries -- also verify &IFMT is either IFDIR or IFLNK
76
+ // set if we fail to readlink
77
+ const ENOREADLINK = 0b0001_0000_0000;
78
+ // set if we know realpath() will fail
79
+ const ENOREALPATH = 0b0010_0000_0000;
80
+ const ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
81
+ const TYPEMASK = 0b0011_1111_1111;
82
+ const entToType = (s) => s.isFile() ? IFREG
83
+ : s.isDirectory() ? IFDIR
84
+ : s.isSymbolicLink() ? IFLNK
85
+ : s.isCharacterDevice() ? IFCHR
86
+ : s.isBlockDevice() ? IFBLK
87
+ : s.isSocket() ? IFSOCK
88
+ : s.isFIFO() ? IFIFO
89
+ : UNKNOWN;
90
+ // normalize unicode path names
91
+ const normalizeCache = new LRUCache({ max: 2 ** 12 });
92
+ const normalize = (s) => {
93
+ const c = normalizeCache.get(s);
94
+ if (c)
95
+ return c;
96
+ const n = s.normalize('NFKD');
97
+ normalizeCache.set(s, n);
98
+ return n;
99
+ };
100
+ const normalizeNocaseCache = new LRUCache({ max: 2 ** 12 });
101
+ const normalizeNocase = (s) => {
102
+ const c = normalizeNocaseCache.get(s);
103
+ if (c)
104
+ return c;
105
+ const n = normalize(s.toLowerCase());
106
+ normalizeNocaseCache.set(s, n);
107
+ return n;
108
+ };
109
+ /**
110
+ * An LRUCache for storing resolved path strings or Path objects.
111
+ * @internal
112
+ */
113
+ export class ResolveCache extends LRUCache {
114
+ constructor() {
115
+ super({ max: 256 });
116
+ }
117
+ }
118
+ // In order to prevent blowing out the js heap by allocating hundreds of
119
+ // thousands of Path entries when walking extremely large trees, the "children"
120
+ // in this tree are represented by storing an array of Path entries in an
121
+ // LRUCache, indexed by the parent. At any time, Path.children() may return an
122
+ // empty array, indicating that it doesn't know about any of its children, and
123
+ // thus has to rebuild that cache. This is fine, it just means that we don't
124
+ // benefit as much from having the cached entries, but huge directory walks
125
+ // don't blow out the stack, and smaller ones are still as fast as possible.
126
+ //
127
+ //It does impose some complexity when building up the readdir data, because we
128
+ //need to pass a reference to the children array that we started with.
129
+ /**
130
+ * an LRUCache for storing child entries.
131
+ * @internal
132
+ */
133
+ export class ChildrenCache extends LRUCache {
134
+ constructor(maxSize = 16 * 1024) {
135
+ super({
136
+ maxSize,
137
+ // parent + children
138
+ sizeCalculation: a => a.length + 1,
139
+ });
140
+ }
141
+ }
142
+ const setAsCwd = Symbol('PathScurry setAsCwd');
143
+ /**
144
+ * Path objects are sort of like a super-powered
145
+ * {@link https://nodejs.org/docs/latest/api/fs.html#class-fsdirent fs.Dirent}
146
+ *
147
+ * Each one represents a single filesystem entry on disk, which may or may not
148
+ * exist. It includes methods for reading various types of information via
149
+ * lstat, readlink, and readdir, and caches all information to the greatest
150
+ * degree possible.
151
+ *
152
+ * Note that fs operations that would normally throw will instead return an
153
+ * "empty" value. This is in order to prevent excessive overhead from error
154
+ * stack traces.
155
+ */
156
+ export class PathBase {
157
+ /**
158
+ * the basename of this path
159
+ *
160
+ * **Important**: *always* test the path name against any test string
161
+ * usingthe {@link isNamed} method, and not by directly comparing this
162
+ * string. Otherwise, unicode path strings that the system sees as identical
163
+ * will not be properly treated as the same path, leading to incorrect
164
+ * behavior and possible security issues.
165
+ */
166
+ name;
167
+ /**
168
+ * the Path entry corresponding to the path root.
169
+ *
170
+ * @internal
171
+ */
172
+ root;
173
+ /**
174
+ * All roots found within the current PathScurry family
175
+ *
176
+ * @internal
177
+ */
178
+ roots;
179
+ /**
180
+ * a reference to the parent path, or undefined in the case of root entries
181
+ *
182
+ * @internal
183
+ */
184
+ parent;
185
+ /**
186
+ * boolean indicating whether paths are compared case-insensitively
187
+ * @internal
188
+ */
189
+ nocase;
190
+ /**
191
+ * boolean indicating that this path is the current working directory
192
+ * of the PathScurry collection that contains it.
193
+ */
194
+ isCWD = false;
195
+ // potential default fs override
196
+ #fs;
197
+ // Stats fields
198
+ #dev;
199
+ get dev() {
200
+ return this.#dev;
201
+ }
202
+ #mode;
203
+ get mode() {
204
+ return this.#mode;
205
+ }
206
+ #nlink;
207
+ get nlink() {
208
+ return this.#nlink;
209
+ }
210
+ #uid;
211
+ get uid() {
212
+ return this.#uid;
213
+ }
214
+ #gid;
215
+ get gid() {
216
+ return this.#gid;
217
+ }
218
+ #rdev;
219
+ get rdev() {
220
+ return this.#rdev;
221
+ }
222
+ #blksize;
223
+ get blksize() {
224
+ return this.#blksize;
225
+ }
226
+ #ino;
227
+ get ino() {
228
+ return this.#ino;
229
+ }
230
+ #size;
231
+ get size() {
232
+ return this.#size;
233
+ }
234
+ #blocks;
235
+ get blocks() {
236
+ return this.#blocks;
237
+ }
238
+ #atimeMs;
239
+ get atimeMs() {
240
+ return this.#atimeMs;
241
+ }
242
+ #mtimeMs;
243
+ get mtimeMs() {
244
+ return this.#mtimeMs;
245
+ }
246
+ #ctimeMs;
247
+ get ctimeMs() {
248
+ return this.#ctimeMs;
249
+ }
250
+ #birthtimeMs;
251
+ get birthtimeMs() {
252
+ return this.#birthtimeMs;
253
+ }
254
+ #atime;
255
+ get atime() {
256
+ return this.#atime;
257
+ }
258
+ #mtime;
259
+ get mtime() {
260
+ return this.#mtime;
261
+ }
262
+ #ctime;
263
+ get ctime() {
264
+ return this.#ctime;
265
+ }
266
+ #birthtime;
267
+ get birthtime() {
268
+ return this.#birthtime;
269
+ }
270
+ #matchName;
271
+ #depth;
272
+ #fullpath;
273
+ #fullpathPosix;
274
+ #relative;
275
+ #relativePosix;
276
+ #type;
277
+ #children;
278
+ #linkTarget;
279
+ #realpath;
280
+ /**
281
+ * This property is for compatibility with the Dirent class as of
282
+ * Node v20, where Dirent['parentPath'] refers to the path of the
283
+ * directory that was passed to readdir. For root entries, it's the path
284
+ * to the entry itself.
285
+ */
286
+ get parentPath() {
287
+ return (this.parent || this).fullpath();
288
+ }
289
+ /* c8 ignore start */
290
+ /**
291
+ * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
292
+ * this property refers to the *parent* path, not the path object itself.
293
+ *
294
+ * @deprecated
295
+ */
296
+ get path() {
297
+ return this.parentPath;
298
+ }
299
+ /* c8 ignore stop */
300
+ /**
301
+ * Do not create new Path objects directly. They should always be accessed
302
+ * via the PathScurry class or other methods on the Path class.
303
+ *
304
+ * @internal
305
+ */
306
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
307
+ this.name = name;
308
+ this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
309
+ this.#type = type & TYPEMASK;
310
+ this.nocase = nocase;
311
+ this.roots = roots;
312
+ this.root = root || this;
313
+ this.#children = children;
314
+ this.#fullpath = opts.fullpath;
315
+ this.#relative = opts.relative;
316
+ this.#relativePosix = opts.relativePosix;
317
+ this.parent = opts.parent;
318
+ if (this.parent) {
319
+ this.#fs = this.parent.#fs;
320
+ }
321
+ else {
322
+ this.#fs = fsFromOption(opts.fs);
323
+ }
324
+ }
325
+ /**
326
+ * The file system methods that this Path uses, for a new root on
327
+ * another drive or UNC share.
328
+ *
329
+ * @internal
330
+ */
331
+ get fs() {
332
+ return this.#fs;
333
+ }
334
+ /**
335
+ * Returns the depth of the Path object from its root.
336
+ *
337
+ * For example, a path at `/foo/bar` would have a depth of 2.
338
+ */
339
+ depth() {
340
+ if (this.#depth !== undefined)
341
+ return this.#depth;
342
+ if (!this.parent)
343
+ return (this.#depth = 0);
344
+ return (this.#depth = this.parent.depth() + 1);
345
+ }
346
+ /**
347
+ * @internal
348
+ */
349
+ childrenCache() {
350
+ return this.#children;
351
+ }
352
+ /**
353
+ * Get the Path object referenced by the string path, resolved from this Path
354
+ */
355
+ resolve(path) {
356
+ if (!path) {
357
+ return this;
358
+ }
359
+ const rootPath = this.getRootString(path);
360
+ const dir = path.substring(rootPath.length);
361
+ const dirParts = dir.split(this.splitSep);
362
+ const result = rootPath ?
363
+ this.getRoot(rootPath).#resolveParts(dirParts)
364
+ : this.#resolveParts(dirParts);
365
+ return result;
366
+ }
367
+ #resolveParts(dirParts) {
368
+ let p = this;
369
+ for (const part of dirParts) {
370
+ p = p.child(part);
371
+ }
372
+ return p;
373
+ }
374
+ /**
375
+ * Returns the cached children Path objects, if still available. If they
376
+ * have fallen out of the cache, then returns an empty array, and resets the
377
+ * READDIR_CALLED bit, so that future calls to readdir() will require an fs
378
+ * lookup.
379
+ *
380
+ * @internal
381
+ */
382
+ children() {
383
+ const cached = this.#children.get(this);
384
+ if (cached) {
385
+ return cached;
386
+ }
387
+ const children = Object.assign([], { provisional: 0 });
388
+ this.#children.set(this, children);
389
+ this.#type &= ~READDIR_CALLED;
390
+ return children;
391
+ }
392
+ /**
393
+ * Resolves a path portion and returns or creates the child Path.
394
+ *
395
+ * Returns `this` if pathPart is `''` or `'.'`, or `parent` if pathPart is
396
+ * `'..'`.
397
+ *
398
+ * This should not be called directly. If `pathPart` contains any path
399
+ * separators, it will lead to unsafe undefined behavior.
400
+ *
401
+ * Use `Path.resolve()` instead.
402
+ *
403
+ * @internal
404
+ */
405
+ child(pathPart, opts) {
406
+ if (pathPart === '' || pathPart === '.') {
407
+ return this;
408
+ }
409
+ if (pathPart === '..') {
410
+ return this.parent || this;
411
+ }
412
+ // find the child
413
+ const children = this.children();
414
+ const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
415
+ for (const p of children) {
416
+ if (p.#matchName === name) {
417
+ return p;
418
+ }
419
+ }
420
+ // didn't find it, create provisional child, since it might not
421
+ // actually exist. If we know the parent isn't a dir, then
422
+ // in fact it CAN'T exist.
423
+ const s = this.parent ? this.sep : '';
424
+ const fullpath = this.#fullpath ? this.#fullpath + s + pathPart : undefined;
425
+ const pchild = this.newChild(pathPart, UNKNOWN, {
426
+ ...opts,
427
+ parent: this,
428
+ fullpath,
429
+ });
430
+ if (!this.canReaddir()) {
431
+ pchild.#type |= ENOENT;
432
+ }
433
+ // don't have to update provisional, because if we have real children,
434
+ // then provisional is set to children.length, otherwise a lower number
435
+ children.push(pchild);
436
+ return pchild;
437
+ }
438
+ /**
439
+ * The relative path from the cwd. If it does not share an ancestor with
440
+ * the cwd, then this ends up being equivalent to the fullpath()
441
+ */
442
+ relative() {
443
+ if (this.isCWD)
444
+ return '';
445
+ if (this.#relative !== undefined) {
446
+ return this.#relative;
447
+ }
448
+ const name = this.name;
449
+ const p = this.parent;
450
+ if (!p) {
451
+ return (this.#relative = this.name);
452
+ }
453
+ const pv = p.relative();
454
+ return pv + (!pv || !p.parent ? '' : this.sep) + name;
455
+ }
456
+ /**
457
+ * The relative path from the cwd, using / as the path separator.
458
+ * If it does not share an ancestor with
459
+ * the cwd, then this ends up being equivalent to the fullpathPosix()
460
+ * On posix systems, this is identical to relative().
461
+ */
462
+ relativePosix() {
463
+ if (this.sep === '/')
464
+ return this.relative();
465
+ if (this.isCWD)
466
+ return '';
467
+ if (this.#relativePosix !== undefined)
468
+ return this.#relativePosix;
469
+ const name = this.name;
470
+ const p = this.parent;
471
+ if (!p) {
472
+ return (this.#relativePosix = this.fullpathPosix());
473
+ }
474
+ const pv = p.relativePosix();
475
+ return pv + (!pv || !p.parent ? '' : '/') + name;
476
+ }
477
+ /**
478
+ * The fully resolved path string for this Path entry
479
+ */
480
+ fullpath() {
481
+ if (this.#fullpath !== undefined) {
482
+ return this.#fullpath;
483
+ }
484
+ const name = this.name;
485
+ const p = this.parent;
486
+ if (!p) {
487
+ return (this.#fullpath = this.name);
488
+ }
489
+ const pv = p.fullpath();
490
+ const fp = pv + (!p.parent ? '' : this.sep) + name;
491
+ return (this.#fullpath = fp);
492
+ }
493
+ /**
494
+ * On platforms other than windows, this is identical to fullpath.
495
+ *
496
+ * On windows, this is overridden to return the forward-slash form of the
497
+ * full UNC path.
498
+ */
499
+ fullpathPosix() {
500
+ if (this.#fullpathPosix !== undefined)
501
+ return this.#fullpathPosix;
502
+ if (this.sep === '/')
503
+ return (this.#fullpathPosix = this.fullpath());
504
+ if (!this.parent) {
505
+ const p = this.fullpath().replace(/\\/g, '/');
506
+ if (/^[a-z]:\//i.test(p)) {
507
+ return (this.#fullpathPosix = `//?/${p}`);
508
+ }
509
+ else {
510
+ return (this.#fullpathPosix = p);
511
+ }
512
+ }
513
+ const p = this.parent;
514
+ const pfpp = p.fullpathPosix();
515
+ const fpp = pfpp + (!pfpp || !p.parent ? '' : '/') + this.name;
516
+ return (this.#fullpathPosix = fpp);
517
+ }
518
+ /**
519
+ * Is the Path of an unknown type?
520
+ *
521
+ * Note that we might know *something* about it if there has been a previous
522
+ * filesystem operation, for example that it does not exist, or is not a
523
+ * link, or whether it has child entries.
524
+ */
525
+ isUnknown() {
526
+ return (this.#type & IFMT) === UNKNOWN;
527
+ }
528
+ isType(type) {
529
+ return this[`is${type}`]();
530
+ }
531
+ getType() {
532
+ return (this.isUnknown() ? 'Unknown'
533
+ : this.isDirectory() ? 'Directory'
534
+ : this.isFile() ? 'File'
535
+ : this.isSymbolicLink() ? 'SymbolicLink'
536
+ : this.isFIFO() ? 'FIFO'
537
+ : this.isCharacterDevice() ? 'CharacterDevice'
538
+ : this.isBlockDevice() ? 'BlockDevice'
539
+ : /* c8 ignore start */ this.isSocket() ? 'Socket'
540
+ : 'Unknown');
541
+ /* c8 ignore stop */
542
+ }
543
+ /**
544
+ * Is the Path a regular file?
545
+ */
546
+ isFile() {
547
+ return (this.#type & IFMT) === IFREG;
548
+ }
549
+ /**
550
+ * Is the Path a directory?
551
+ */
552
+ isDirectory() {
553
+ return (this.#type & IFMT) === IFDIR;
554
+ }
555
+ /**
556
+ * Is the path a character device?
557
+ */
558
+ isCharacterDevice() {
559
+ return (this.#type & IFMT) === IFCHR;
560
+ }
561
+ /**
562
+ * Is the path a block device?
563
+ */
564
+ isBlockDevice() {
565
+ return (this.#type & IFMT) === IFBLK;
566
+ }
567
+ /**
568
+ * Is the path a FIFO pipe?
569
+ */
570
+ isFIFO() {
571
+ return (this.#type & IFMT) === IFIFO;
572
+ }
573
+ /**
574
+ * Is the path a socket?
575
+ */
576
+ isSocket() {
577
+ return (this.#type & IFMT) === IFSOCK;
578
+ }
579
+ /**
580
+ * Is the path a symbolic link?
581
+ */
582
+ isSymbolicLink() {
583
+ return (this.#type & IFLNK) === IFLNK;
584
+ }
585
+ /**
586
+ * Return the entry if it has been subject of a successful lstat, or
587
+ * undefined otherwise.
588
+ *
589
+ * Does not read the filesystem, so an undefined result *could* simply
590
+ * mean that we haven't called lstat on it.
591
+ */
592
+ lstatCached() {
593
+ return this.#type & LSTAT_CALLED ? this : undefined;
594
+ }
595
+ /**
596
+ * Return the cached link target if the entry has been the subject of a
597
+ * successful readlink, or undefined otherwise.
598
+ *
599
+ * Does not read the filesystem, so an undefined result *could* just mean we
600
+ * don't have any cached data. Only use it if you are very sure that a
601
+ * readlink() has been called at some point.
602
+ */
603
+ readlinkCached() {
604
+ return this.#linkTarget;
605
+ }
606
+ /**
607
+ * Returns the cached realpath target if the entry has been the subject
608
+ * of a successful realpath, or undefined otherwise.
609
+ *
610
+ * Does not read the filesystem, so an undefined result *could* just mean we
611
+ * don't have any cached data. Only use it if you are very sure that a
612
+ * realpath() has been called at some point.
613
+ */
614
+ realpathCached() {
615
+ return this.#realpath;
616
+ }
617
+ /**
618
+ * Returns the cached child Path entries array if the entry has been the
619
+ * subject of a successful readdir(), or [] otherwise.
620
+ *
621
+ * Does not read the filesystem, so an empty array *could* just mean we
622
+ * don't have any cached data. Only use it if you are very sure that a
623
+ * readdir() has been called recently enough to still be valid.
624
+ */
625
+ readdirCached() {
626
+ const children = this.children();
627
+ return children.slice(0, children.provisional);
628
+ }
629
+ /**
630
+ * Return true if it's worth trying to readlink. Ie, we don't (yet) have
631
+ * any indication that readlink will definitely fail.
632
+ *
633
+ * Returns false if the path is known to not be a symlink, if a previous
634
+ * readlink failed, or if the entry does not exist.
635
+ */
636
+ canReadlink() {
637
+ if (this.#linkTarget)
638
+ return true;
639
+ if (!this.parent)
640
+ return false;
641
+ // cases where it cannot possibly succeed
642
+ const ifmt = this.#type & IFMT;
643
+ return !((ifmt !== UNKNOWN && ifmt !== IFLNK) ||
644
+ this.#type & ENOREADLINK ||
645
+ this.#type & ENOENT);
646
+ }
647
+ /**
648
+ * Return true if readdir has previously been successfully called on this
649
+ * path, indicating that cachedReaddir() is likely valid.
650
+ */
651
+ calledReaddir() {
652
+ return !!(this.#type & READDIR_CALLED);
653
+ }
654
+ /**
655
+ * Returns true if the path is known to not exist. That is, a previous lstat
656
+ * or readdir failed to verify its existence when that would have been
657
+ * expected, or a parent entry was marked either enoent or enotdir.
658
+ */
659
+ isENOENT() {
660
+ return !!(this.#type & ENOENT);
661
+ }
662
+ /**
663
+ * Return true if the path is a match for the given path name. This handles
664
+ * case sensitivity and unicode normalization.
665
+ *
666
+ * Note: even on case-sensitive systems, it is **not** safe to test the
667
+ * equality of the `.name` property to determine whether a given pathname
668
+ * matches, due to unicode normalization mismatches.
669
+ *
670
+ * Always use this method instead of testing the `path.name` property
671
+ * directly.
672
+ */
673
+ isNamed(n) {
674
+ return !this.nocase ?
675
+ this.#matchName === normalize(n)
676
+ : this.#matchName === normalizeNocase(n);
677
+ }
678
+ /**
679
+ * Return the Path object corresponding to the target of a symbolic link.
680
+ *
681
+ * If the Path is not a symbolic link, or if the readlink call fails for any
682
+ * reason, `undefined` is returned.
683
+ *
684
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
685
+ */
686
+ async readlink() {
687
+ const target = this.#linkTarget;
688
+ if (target) {
689
+ return target;
690
+ }
691
+ if (!this.canReadlink()) {
692
+ return undefined;
693
+ }
694
+ /* c8 ignore start */
695
+ // already covered by the canReadlink test, here for ts grumples
696
+ if (!this.parent) {
697
+ return undefined;
698
+ }
699
+ /* c8 ignore stop */
700
+ try {
701
+ const read = await this.#fs.promises.readlink(this.fullpath());
702
+ const linkTarget = (await this.parent.realpath())?.resolve(read);
703
+ if (linkTarget) {
704
+ return (this.#linkTarget = linkTarget);
705
+ }
706
+ }
707
+ catch (er) {
708
+ this.#readlinkFail(er.code);
709
+ return undefined;
710
+ }
711
+ }
712
+ /**
713
+ * Synchronous {@link PathBase.readlink}
714
+ */
715
+ readlinkSync() {
716
+ const target = this.#linkTarget;
717
+ if (target) {
718
+ return target;
719
+ }
720
+ if (!this.canReadlink()) {
721
+ return undefined;
722
+ }
723
+ /* c8 ignore start */
724
+ // already covered by the canReadlink test, here for ts grumples
725
+ if (!this.parent) {
726
+ return undefined;
727
+ }
728
+ /* c8 ignore stop */
729
+ try {
730
+ const read = this.#fs.readlinkSync(this.fullpath());
731
+ const linkTarget = this.parent.realpathSync()?.resolve(read);
732
+ if (linkTarget) {
733
+ return (this.#linkTarget = linkTarget);
734
+ }
735
+ }
736
+ catch (er) {
737
+ this.#readlinkFail(er.code);
738
+ return undefined;
739
+ }
740
+ }
741
+ #readdirSuccess(children) {
742
+ // succeeded, mark readdir called bit
743
+ this.#type |= READDIR_CALLED;
744
+ // mark all remaining provisional children as ENOENT
745
+ for (let p = children.provisional; p < children.length; p++) {
746
+ const c = children[p];
747
+ if (c)
748
+ c.#markENOENT();
749
+ }
750
+ }
751
+ #markENOENT() {
752
+ // mark as UNKNOWN and ENOENT
753
+ if (this.#type & ENOENT)
754
+ return;
755
+ this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN;
756
+ this.#markChildrenENOENT();
757
+ }
758
+ #markChildrenENOENT() {
759
+ // all children are provisional and do not exist
760
+ const children = this.children();
761
+ children.provisional = 0;
762
+ for (const p of children) {
763
+ p.#markENOENT();
764
+ }
765
+ }
766
+ #markENOREALPATH() {
767
+ this.#type |= ENOREALPATH;
768
+ this.#markENOTDIR();
769
+ }
770
+ // save the information when we know the entry is not a dir
771
+ #markENOTDIR() {
772
+ // entry is not a directory, so any children can't exist.
773
+ // this *should* be impossible, since any children created
774
+ // after it's been marked ENOTDIR should be marked ENOENT,
775
+ // so it won't even get to this point.
776
+ /* c8 ignore start */
777
+ if (this.#type & ENOTDIR)
778
+ return;
779
+ /* c8 ignore stop */
780
+ let t = this.#type;
781
+ // this could happen if we stat a dir, then delete it,
782
+ // then try to read it or one of its children.
783
+ if ((t & IFMT) === IFDIR)
784
+ t &= IFMT_UNKNOWN;
785
+ this.#type = t | ENOTDIR;
786
+ this.#markChildrenENOENT();
787
+ }
788
+ #readdirFail(code = '') {
789
+ // markENOTDIR and markENOENT also set provisional=0
790
+ if (code === 'ENOTDIR' || code === 'EPERM') {
791
+ this.#markENOTDIR();
792
+ }
793
+ else if (code === 'ENOENT') {
794
+ this.#markENOENT();
795
+ }
796
+ else {
797
+ this.children().provisional = 0;
798
+ }
799
+ }
800
+ #lstatFail(code = '') {
801
+ // Windows just raises ENOENT in this case, disable for win CI
802
+ /* c8 ignore start */
803
+ if (code === 'ENOTDIR') {
804
+ // already know it has a parent by this point
805
+ const p = this.parent;
806
+ p.#markENOTDIR();
807
+ }
808
+ else if (code === 'ENOENT') {
809
+ /* c8 ignore stop */
810
+ this.#markENOENT();
811
+ }
812
+ }
813
+ #readlinkFail(code = '') {
814
+ let ter = this.#type;
815
+ ter |= ENOREADLINK;
816
+ if (code === 'ENOENT')
817
+ ter |= ENOENT;
818
+ // windows gets a weird error when you try to readlink a file
819
+ if (code === 'EINVAL' || code === 'UNKNOWN') {
820
+ // exists, but not a symlink, we don't know WHAT it is, so remove
821
+ // all IFMT bits.
822
+ ter &= IFMT_UNKNOWN;
823
+ }
824
+ this.#type = ter;
825
+ // windows just gets ENOENT in this case. We do cover the case,
826
+ // just disabled because it's impossible on Windows CI
827
+ /* c8 ignore start */
828
+ if (code === 'ENOTDIR' && this.parent) {
829
+ this.parent.#markENOTDIR();
830
+ }
831
+ /* c8 ignore stop */
832
+ }
833
+ #readdirAddChild(e, c) {
834
+ return (this.#readdirMaybePromoteChild(e, c) ||
835
+ this.#readdirAddNewChild(e, c));
836
+ }
837
+ #readdirAddNewChild(e, c) {
838
+ // alloc new entry at head, so it's never provisional
839
+ const type = entToType(e);
840
+ const child = this.newChild(e.name, type, { parent: this });
841
+ const ifmt = child.#type & IFMT;
842
+ if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
843
+ child.#type |= ENOTDIR;
844
+ }
845
+ c.unshift(child);
846
+ c.provisional++;
847
+ return child;
848
+ }
849
+ #readdirMaybePromoteChild(e, c) {
850
+ for (let p = c.provisional; p < c.length; p++) {
851
+ const pchild = c[p];
852
+ const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
853
+ if (name !== pchild.#matchName) {
854
+ continue;
855
+ }
856
+ return this.#readdirPromoteChild(e, pchild, p, c);
857
+ }
858
+ }
859
+ #readdirPromoteChild(e, p, index, c) {
860
+ const v = p.name;
861
+ // retain any other flags, but set ifmt from dirent
862
+ p.#type = (p.#type & IFMT_UNKNOWN) | entToType(e);
863
+ // case sensitivity fixing when we learn the true name.
864
+ if (v !== e.name)
865
+ p.name = e.name;
866
+ // just advance provisional index (potentially off the list),
867
+ // otherwise we have to splice/pop it out and re-insert at head
868
+ if (index !== c.provisional) {
869
+ if (index === c.length - 1)
870
+ c.pop();
871
+ else
872
+ c.splice(index, 1);
873
+ c.unshift(p);
874
+ }
875
+ c.provisional++;
876
+ return p;
877
+ }
878
+ /**
879
+ * Call lstat() on this Path, and update all known information that can be
880
+ * determined.
881
+ *
882
+ * Note that unlike `fs.lstat()`, the returned value does not contain some
883
+ * information, such as `mode`, `dev`, `nlink`, and `ino`. If that
884
+ * information is required, you will need to call `fs.lstat` yourself.
885
+ *
886
+ * If the Path refers to a nonexistent file, or if the lstat call fails for
887
+ * any reason, `undefined` is returned. Otherwise the updated Path object is
888
+ * returned.
889
+ *
890
+ * Results are cached, and thus may be out of date if the filesystem is
891
+ * mutated.
892
+ */
893
+ async lstat() {
894
+ if ((this.#type & ENOENT) === 0) {
895
+ try {
896
+ this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
897
+ return this;
898
+ }
899
+ catch (er) {
900
+ this.#lstatFail(er.code);
901
+ }
902
+ }
903
+ }
904
+ /**
905
+ * synchronous {@link PathBase.lstat}
906
+ */
907
+ lstatSync() {
908
+ if ((this.#type & ENOENT) === 0) {
909
+ try {
910
+ this.#applyStat(this.#fs.lstatSync(this.fullpath()));
911
+ return this;
912
+ }
913
+ catch (er) {
914
+ this.#lstatFail(er.code);
915
+ }
916
+ }
917
+ }
918
+ #applyStat(st) {
919
+ const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid, } = st;
920
+ this.#atime = atime;
921
+ this.#atimeMs = atimeMs;
922
+ this.#birthtime = birthtime;
923
+ this.#birthtimeMs = birthtimeMs;
924
+ this.#blksize = blksize;
925
+ this.#blocks = blocks;
926
+ this.#ctime = ctime;
927
+ this.#ctimeMs = ctimeMs;
928
+ this.#dev = dev;
929
+ this.#gid = gid;
930
+ this.#ino = ino;
931
+ this.#mode = mode;
932
+ this.#mtime = mtime;
933
+ this.#mtimeMs = mtimeMs;
934
+ this.#nlink = nlink;
935
+ this.#rdev = rdev;
936
+ this.#size = size;
937
+ this.#uid = uid;
938
+ const ifmt = entToType(st);
939
+ // retain any other flags, but set the ifmt
940
+ this.#type = (this.#type & IFMT_UNKNOWN) | ifmt | LSTAT_CALLED;
941
+ if (ifmt !== UNKNOWN && ifmt !== IFDIR && ifmt !== IFLNK) {
942
+ this.#type |= ENOTDIR;
943
+ }
944
+ }
945
+ #onReaddirCB = [];
946
+ #readdirCBInFlight = false;
947
+ #callOnReaddirCB(children) {
948
+ this.#readdirCBInFlight = false;
949
+ const cbs = this.#onReaddirCB.slice();
950
+ this.#onReaddirCB.length = 0;
951
+ cbs.forEach(cb => cb(null, children));
952
+ }
953
+ /**
954
+ * Standard node-style callback interface to get list of directory entries.
955
+ *
956
+ * If the Path cannot or does not contain any children, then an empty array
957
+ * is returned.
958
+ *
959
+ * Results are cached, and thus may be out of date if the filesystem is
960
+ * mutated.
961
+ *
962
+ * @param cb The callback called with (er, entries). Note that the `er`
963
+ * param is somewhat extraneous, as all readdir() errors are handled and
964
+ * simply result in an empty set of entries being returned.
965
+ * @param allowZalgo Boolean indicating that immediately known results should
966
+ * *not* be deferred with `queueMicrotask`. Defaults to `false`. Release
967
+ * zalgo at your peril, the dark pony lord is devious and unforgiving.
968
+ */
969
+ readdirCB(cb, allowZalgo = false) {
970
+ if (!this.canReaddir()) {
971
+ if (allowZalgo)
972
+ cb(null, []);
973
+ else
974
+ queueMicrotask(() => cb(null, []));
975
+ return;
976
+ }
977
+ const children = this.children();
978
+ if (this.calledReaddir()) {
979
+ const c = children.slice(0, children.provisional);
980
+ if (allowZalgo)
981
+ cb(null, c);
982
+ else
983
+ queueMicrotask(() => cb(null, c));
984
+ return;
985
+ }
986
+ // don't have to worry about zalgo at this point.
987
+ this.#onReaddirCB.push(cb);
988
+ if (this.#readdirCBInFlight) {
989
+ return;
990
+ }
991
+ this.#readdirCBInFlight = true;
992
+ // else read the directory, fill up children
993
+ // de-provisionalize any provisional children.
994
+ const fullpath = this.fullpath();
995
+ this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
996
+ if (er) {
997
+ this.#readdirFail(er.code);
998
+ children.provisional = 0;
999
+ }
1000
+ else {
1001
+ // if we didn't get an error, we always get entries.
1002
+ //@ts-ignore
1003
+ for (const e of entries) {
1004
+ this.#readdirAddChild(e, children);
1005
+ }
1006
+ this.#readdirSuccess(children);
1007
+ }
1008
+ this.#callOnReaddirCB(children.slice(0, children.provisional));
1009
+ return;
1010
+ });
1011
+ }
1012
+ #asyncReaddirInFlight;
1013
+ /**
1014
+ * Return an array of known child entries.
1015
+ *
1016
+ * If the Path cannot or does not contain any children, then an empty array
1017
+ * is returned.
1018
+ *
1019
+ * Results are cached, and thus may be out of date if the filesystem is
1020
+ * mutated.
1021
+ */
1022
+ async readdir() {
1023
+ if (!this.canReaddir()) {
1024
+ return [];
1025
+ }
1026
+ const children = this.children();
1027
+ if (this.calledReaddir()) {
1028
+ return children.slice(0, children.provisional);
1029
+ }
1030
+ // else read the directory, fill up children
1031
+ // de-provisionalize any provisional children.
1032
+ const fullpath = this.fullpath();
1033
+ if (this.#asyncReaddirInFlight) {
1034
+ await this.#asyncReaddirInFlight;
1035
+ }
1036
+ else {
1037
+ /* c8 ignore start */
1038
+ let resolve = () => { };
1039
+ /* c8 ignore stop */
1040
+ this.#asyncReaddirInFlight = new Promise(res => (resolve = res));
1041
+ try {
1042
+ for (const e of await this.#fs.promises.readdir(fullpath, {
1043
+ withFileTypes: true,
1044
+ })) {
1045
+ this.#readdirAddChild(e, children);
1046
+ }
1047
+ this.#readdirSuccess(children);
1048
+ }
1049
+ catch (er) {
1050
+ this.#readdirFail(er.code);
1051
+ children.provisional = 0;
1052
+ }
1053
+ this.#asyncReaddirInFlight = undefined;
1054
+ resolve();
1055
+ }
1056
+ return children.slice(0, children.provisional);
1057
+ }
1058
+ /**
1059
+ * synchronous {@link PathBase.readdir}
1060
+ */
1061
+ readdirSync() {
1062
+ if (!this.canReaddir()) {
1063
+ return [];
1064
+ }
1065
+ const children = this.children();
1066
+ if (this.calledReaddir()) {
1067
+ return children.slice(0, children.provisional);
1068
+ }
1069
+ // else read the directory, fill up children
1070
+ // de-provisionalize any provisional children.
1071
+ const fullpath = this.fullpath();
1072
+ try {
1073
+ for (const e of this.#fs.readdirSync(fullpath, {
1074
+ withFileTypes: true,
1075
+ })) {
1076
+ this.#readdirAddChild(e, children);
1077
+ }
1078
+ this.#readdirSuccess(children);
1079
+ }
1080
+ catch (er) {
1081
+ this.#readdirFail(er.code);
1082
+ children.provisional = 0;
1083
+ }
1084
+ return children.slice(0, children.provisional);
1085
+ }
1086
+ canReaddir() {
1087
+ if (this.#type & ENOCHILD)
1088
+ return false;
1089
+ const ifmt = IFMT & this.#type;
1090
+ // we always set ENOTDIR when setting IFMT, so should be impossible
1091
+ /* c8 ignore start */
1092
+ if (!(ifmt === UNKNOWN || ifmt === IFDIR || ifmt === IFLNK)) {
1093
+ return false;
1094
+ }
1095
+ /* c8 ignore stop */
1096
+ return true;
1097
+ }
1098
+ shouldWalk(dirs, walkFilter) {
1099
+ return ((this.#type & IFDIR) === IFDIR &&
1100
+ !(this.#type & ENOCHILD) &&
1101
+ !dirs.has(this) &&
1102
+ (!walkFilter || walkFilter(this)));
1103
+ }
1104
+ /**
1105
+ * Return the Path object corresponding to path as resolved
1106
+ * by realpath(3).
1107
+ *
1108
+ * If the realpath call fails for any reason, `undefined` is returned.
1109
+ *
1110
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
1111
+ * On success, returns a Path object.
1112
+ */
1113
+ async realpath() {
1114
+ if (this.#realpath)
1115
+ return this.#realpath;
1116
+ if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
1117
+ return undefined;
1118
+ try {
1119
+ const rp = await this.#fs.promises.realpath(this.fullpath());
1120
+ return (this.#realpath = this.resolve(rp));
1121
+ }
1122
+ catch {
1123
+ this.#markENOREALPATH();
1124
+ }
1125
+ }
1126
+ /**
1127
+ * Synchronous {@link realpath}
1128
+ */
1129
+ realpathSync() {
1130
+ if (this.#realpath)
1131
+ return this.#realpath;
1132
+ if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
1133
+ return undefined;
1134
+ try {
1135
+ const rp = this.#fs.realpathSync(this.fullpath());
1136
+ return (this.#realpath = this.resolve(rp));
1137
+ }
1138
+ catch {
1139
+ this.#markENOREALPATH();
1140
+ }
1141
+ }
1142
+ /**
1143
+ * Internal method to mark this Path object as the scurry cwd,
1144
+ * called by {@link PathScurry#chdir}
1145
+ *
1146
+ * @internal
1147
+ */
1148
+ [setAsCwd](oldCwd) {
1149
+ if (oldCwd === this)
1150
+ return;
1151
+ oldCwd.isCWD = false;
1152
+ this.isCWD = true;
1153
+ const changed = new Set([]);
1154
+ let rp = [];
1155
+ let p = this;
1156
+ while (p && p.parent) {
1157
+ changed.add(p);
1158
+ p.#relative = rp.join(this.sep);
1159
+ p.#relativePosix = rp.join('/');
1160
+ p = p.parent;
1161
+ rp.push('..');
1162
+ }
1163
+ // now un-memoize parents of old cwd
1164
+ p = oldCwd;
1165
+ while (p && p.parent && !changed.has(p)) {
1166
+ p.#relative = undefined;
1167
+ p.#relativePosix = undefined;
1168
+ p = p.parent;
1169
+ }
1170
+ }
1171
+ }
1172
+ /**
1173
+ * Path class used on win32 systems
1174
+ *
1175
+ * Uses `'\\'` as the path separator for returned paths, either `'\\'` or `'/'`
1176
+ * as the path separator for parsing paths.
1177
+ */
1178
+ export class PathWin32 extends PathBase {
1179
+ /**
1180
+ * Separator for generating path strings.
1181
+ */
1182
+ sep = '\\';
1183
+ /**
1184
+ * Separator for parsing path strings.
1185
+ */
1186
+ splitSep = eitherSep;
1187
+ /**
1188
+ * Do not create new Path objects directly. They should always be accessed
1189
+ * via the PathScurry class or other methods on the Path class.
1190
+ *
1191
+ * @internal
1192
+ */
1193
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
1194
+ super(name, type, root, roots, nocase, children, opts);
1195
+ }
1196
+ /**
1197
+ * @internal
1198
+ */
1199
+ newChild(name, type = UNKNOWN, opts = {}) {
1200
+ return new PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
1201
+ }
1202
+ /**
1203
+ * @internal
1204
+ */
1205
+ getRootString(path) {
1206
+ return longUncRoot.exec(path)?.[0] ?? win32.parse(path).root;
1207
+ }
1208
+ /**
1209
+ * @internal
1210
+ */
1211
+ getRoot(rootPath) {
1212
+ rootPath = uncToDrive(rootPath.toUpperCase());
1213
+ // a root with no drive or UNC host is the root of this path
1214
+ if (rootPath === this.root.name || /^[\\/]$/.test(rootPath)) {
1215
+ return this.root;
1216
+ }
1217
+ // ok, not that one, check if it matches another we know about
1218
+ for (const [compare, root] of Object.entries(this.roots)) {
1219
+ if (this.sameRoot(rootPath, compare)) {
1220
+ return (this.roots[rootPath] = root);
1221
+ }
1222
+ }
1223
+ // otherwise, have to create a new one.
1224
+ return (this.roots[rootPath] = new PathScurryWin32(rootPath, {
1225
+ nocase: this.nocase,
1226
+ fs: this.fs,
1227
+ }).root);
1228
+ }
1229
+ /**
1230
+ * @internal
1231
+ */
1232
+ sameRoot(rootPath, compare = this.root.name) {
1233
+ // windows can (rarely) have case-sensitive filesystem, but
1234
+ // UNC and drive letters are always case-insensitive, and canonically
1235
+ // represented uppercase.
1236
+ return uncToDrive(rootPath.toUpperCase()) === compare;
1237
+ }
1238
+ }
1239
+ /**
1240
+ * Path class used on all posix systems.
1241
+ *
1242
+ * Uses `'/'` as the path separator.
1243
+ */
1244
+ export class PathPosix extends PathBase {
1245
+ /**
1246
+ * separator for parsing path strings
1247
+ */
1248
+ splitSep = '/';
1249
+ /**
1250
+ * separator for generating path strings
1251
+ */
1252
+ sep = '/';
1253
+ /**
1254
+ * Do not create new Path objects directly. They should always be accessed
1255
+ * via the PathScurry class or other methods on the Path class.
1256
+ *
1257
+ * @internal
1258
+ */
1259
+ constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
1260
+ super(name, type, root, roots, nocase, children, opts);
1261
+ }
1262
+ /**
1263
+ * @internal
1264
+ */
1265
+ getRootString(path) {
1266
+ return path.startsWith('/') ? '/' : '';
1267
+ }
1268
+ /**
1269
+ * @internal
1270
+ */
1271
+ getRoot(_rootPath) {
1272
+ return this.root;
1273
+ }
1274
+ /**
1275
+ * @internal
1276
+ */
1277
+ newChild(name, type = UNKNOWN, opts = {}) {
1278
+ return new PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
1279
+ }
1280
+ }
1281
+ /**
1282
+ * The base class for all PathScurry classes, providing the interface for path
1283
+ * resolution and filesystem operations.
1284
+ *
1285
+ * Typically, you should *not* instantiate this class directly, but rather one
1286
+ * of the platform-specific classes, or the exported {@link PathScurry} which
1287
+ * defaults to the current platform.
1288
+ */
1289
+ export class PathScurryBase {
1290
+ /**
1291
+ * The root Path entry for the current working directory of this Scurry
1292
+ */
1293
+ root;
1294
+ /**
1295
+ * The string path for the root of this Scurry's current working directory
1296
+ */
1297
+ rootPath;
1298
+ /**
1299
+ * A collection of all roots encountered, referenced by rootPath
1300
+ */
1301
+ roots;
1302
+ /**
1303
+ * The Path entry corresponding to this PathScurry's current working directory.
1304
+ */
1305
+ cwd;
1306
+ #resolveCache;
1307
+ #resolvePosixCache;
1308
+ #children;
1309
+ /**
1310
+ * Perform path comparisons case-insensitively.
1311
+ *
1312
+ * Defaults true on Darwin and Windows systems, false elsewhere.
1313
+ */
1314
+ nocase;
1315
+ #fs;
1316
+ /**
1317
+ * This class should not be instantiated directly.
1318
+ *
1319
+ * Use PathScurryWin32, PathScurryDarwin, PathScurryPosix, or PathScurry
1320
+ *
1321
+ * @internal
1322
+ */
1323
+ constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS, } = {}) {
1324
+ this.#fs = fsFromOption(fs);
1325
+ if (cwd instanceof URL || cwd.startsWith('file://')) {
1326
+ cwd = fileURLToPath(cwd);
1327
+ }
1328
+ // resolve and split root, and then add to the store.
1329
+ // this is the only time we call path.resolve()
1330
+ const cwdPath = pathImpl.resolve(cwd);
1331
+ this.roots = Object.create(null);
1332
+ this.rootPath = this.parseRootPath(cwdPath);
1333
+ this.#resolveCache = new ResolveCache();
1334
+ this.#resolvePosixCache = new ResolveCache();
1335
+ this.#children = new ChildrenCache(childrenCacheSize);
1336
+ const split = cwdPath.substring(this.rootPath.length).split(sep);
1337
+ // resolve('/') leaves '', splits to [''], we don't want that.
1338
+ if (split.length === 1 && !split[0]) {
1339
+ split.pop();
1340
+ }
1341
+ /* c8 ignore start */
1342
+ if (nocase === undefined) {
1343
+ throw new TypeError('must provide nocase setting to PathScurryBase ctor');
1344
+ }
1345
+ /* c8 ignore stop */
1346
+ this.nocase = nocase;
1347
+ this.root = this.newRoot(this.#fs);
1348
+ this.roots[this.rootPath] = this.root;
1349
+ let prev = this.root;
1350
+ let len = split.length - 1;
1351
+ const joinSep = pathImpl.sep;
1352
+ let abs = this.rootPath;
1353
+ let sawFirst = false;
1354
+ for (const part of split) {
1355
+ const l = len--;
1356
+ prev = prev.child(part, {
1357
+ relative: new Array(l).fill('..').join(joinSep),
1358
+ relativePosix: new Array(l).fill('..').join('/'),
1359
+ fullpath: (abs += (sawFirst ? '' : joinSep) + part),
1360
+ });
1361
+ sawFirst = true;
1362
+ }
1363
+ this.cwd = prev;
1364
+ }
1365
+ /**
1366
+ * Get the depth of a provided path, string, or the cwd
1367
+ */
1368
+ depth(path = this.cwd) {
1369
+ if (typeof path === 'string') {
1370
+ path = this.cwd.resolve(path);
1371
+ }
1372
+ return path.depth();
1373
+ }
1374
+ /**
1375
+ * Return the cache of child entries. Exposed so subclasses can create
1376
+ * child Path objects in a platform-specific way.
1377
+ *
1378
+ * @internal
1379
+ */
1380
+ childrenCache() {
1381
+ return this.#children;
1382
+ }
1383
+ /**
1384
+ * Resolve one or more path strings to a resolved string
1385
+ *
1386
+ * Same interface as require('path').resolve.
1387
+ *
1388
+ * Much faster than path.resolve() when called multiple times for the same
1389
+ * path, because the resolved Path objects are cached. Much slower
1390
+ * otherwise.
1391
+ */
1392
+ resolve(...paths) {
1393
+ // first figure out the minimum number of paths we have to test
1394
+ // we always start at cwd, but any absolutes will bump the start
1395
+ let r = '';
1396
+ for (let i = paths.length - 1; i >= 0; i--) {
1397
+ const p = paths[i];
1398
+ if (!p || p === '.')
1399
+ continue;
1400
+ r = r ? `${p}/${r}` : p;
1401
+ if (this.isAbsolute(p)) {
1402
+ break;
1403
+ }
1404
+ }
1405
+ const cached = this.#resolveCache.get(r);
1406
+ if (cached !== undefined) {
1407
+ return cached;
1408
+ }
1409
+ const result = this.cwd.resolve(r).fullpath();
1410
+ this.#resolveCache.set(r, result);
1411
+ return result;
1412
+ }
1413
+ /**
1414
+ * Resolve one or more path strings to a resolved string, returning
1415
+ * the posix path. Identical to .resolve() on posix systems, but on
1416
+ * windows will return a forward-slash separated UNC path.
1417
+ *
1418
+ * Same interface as require('path').resolve.
1419
+ *
1420
+ * Much faster than path.resolve() when called multiple times for the same
1421
+ * path, because the resolved Path objects are cached. Much slower
1422
+ * otherwise.
1423
+ */
1424
+ resolvePosix(...paths) {
1425
+ // first figure out the minimum number of paths we have to test
1426
+ // we always start at cwd, but any absolutes will bump the start
1427
+ let r = '';
1428
+ for (let i = paths.length - 1; i >= 0; i--) {
1429
+ const p = paths[i];
1430
+ if (!p || p === '.')
1431
+ continue;
1432
+ r = r ? `${p}/${r}` : p;
1433
+ if (this.isAbsolute(p)) {
1434
+ break;
1435
+ }
1436
+ }
1437
+ const cached = this.#resolvePosixCache.get(r);
1438
+ if (cached !== undefined) {
1439
+ return cached;
1440
+ }
1441
+ const result = this.cwd.resolve(r).fullpathPosix();
1442
+ this.#resolvePosixCache.set(r, result);
1443
+ return result;
1444
+ }
1445
+ /**
1446
+ * find the relative path from the cwd to the supplied path string or entry
1447
+ */
1448
+ relative(entry = this.cwd) {
1449
+ if (typeof entry === 'string') {
1450
+ entry = this.cwd.resolve(entry);
1451
+ }
1452
+ return entry.relative();
1453
+ }
1454
+ /**
1455
+ * find the relative path from the cwd to the supplied path string or
1456
+ * entry, using / as the path delimiter, even on Windows.
1457
+ */
1458
+ relativePosix(entry = this.cwd) {
1459
+ if (typeof entry === 'string') {
1460
+ entry = this.cwd.resolve(entry);
1461
+ }
1462
+ return entry.relativePosix();
1463
+ }
1464
+ /**
1465
+ * Return the basename for the provided string or Path object
1466
+ */
1467
+ basename(entry = this.cwd) {
1468
+ if (typeof entry === 'string') {
1469
+ entry = this.cwd.resolve(entry);
1470
+ }
1471
+ return entry.name;
1472
+ }
1473
+ /**
1474
+ * Return the dirname for the provided string or Path object
1475
+ */
1476
+ dirname(entry = this.cwd) {
1477
+ if (typeof entry === 'string') {
1478
+ entry = this.cwd.resolve(entry);
1479
+ }
1480
+ return (entry.parent || entry).fullpath();
1481
+ }
1482
+ async readdir(entry = this.cwd, opts = {
1483
+ withFileTypes: true,
1484
+ }) {
1485
+ if (typeof entry === 'string') {
1486
+ entry = this.cwd.resolve(entry);
1487
+ }
1488
+ else if (!(entry instanceof PathBase)) {
1489
+ opts = entry;
1490
+ entry = this.cwd;
1491
+ }
1492
+ const { withFileTypes } = opts;
1493
+ if (!entry.canReaddir()) {
1494
+ return [];
1495
+ }
1496
+ else {
1497
+ const p = await entry.readdir();
1498
+ return withFileTypes ? p : p.map(e => e.name);
1499
+ }
1500
+ }
1501
+ readdirSync(entry = this.cwd, opts = {
1502
+ withFileTypes: true,
1503
+ }) {
1504
+ if (typeof entry === 'string') {
1505
+ entry = this.cwd.resolve(entry);
1506
+ }
1507
+ else if (!(entry instanceof PathBase)) {
1508
+ opts = entry;
1509
+ entry = this.cwd;
1510
+ }
1511
+ const { withFileTypes = true } = opts;
1512
+ if (!entry.canReaddir()) {
1513
+ return [];
1514
+ }
1515
+ else if (withFileTypes) {
1516
+ return entry.readdirSync();
1517
+ }
1518
+ else {
1519
+ return entry.readdirSync().map(e => e.name);
1520
+ }
1521
+ }
1522
+ /**
1523
+ * Call lstat() on the string or Path object, and update all known
1524
+ * information that can be determined.
1525
+ *
1526
+ * Note that unlike `fs.lstat()`, the returned value does not contain some
1527
+ * information, such as `mode`, `dev`, `nlink`, and `ino`. If that
1528
+ * information is required, you will need to call `fs.lstat` yourself.
1529
+ *
1530
+ * If the Path refers to a nonexistent file, or if the lstat call fails for
1531
+ * any reason, `undefined` is returned. Otherwise the updated Path object is
1532
+ * returned.
1533
+ *
1534
+ * Results are cached, and thus may be out of date if the filesystem is
1535
+ * mutated.
1536
+ */
1537
+ async lstat(entry = this.cwd) {
1538
+ if (typeof entry === 'string') {
1539
+ entry = this.cwd.resolve(entry);
1540
+ }
1541
+ return entry.lstat();
1542
+ }
1543
+ /**
1544
+ * synchronous {@link PathScurryBase.lstat}
1545
+ */
1546
+ lstatSync(entry = this.cwd) {
1547
+ if (typeof entry === 'string') {
1548
+ entry = this.cwd.resolve(entry);
1549
+ }
1550
+ return entry.lstatSync();
1551
+ }
1552
+ async readlink(entry = this.cwd, { withFileTypes } = {
1553
+ withFileTypes: false,
1554
+ }) {
1555
+ if (typeof entry === 'string') {
1556
+ entry = this.cwd.resolve(entry);
1557
+ }
1558
+ else if (!(entry instanceof PathBase)) {
1559
+ withFileTypes = entry.withFileTypes;
1560
+ entry = this.cwd;
1561
+ }
1562
+ const e = await entry.readlink();
1563
+ return withFileTypes ? e : e?.fullpath();
1564
+ }
1565
+ readlinkSync(entry = this.cwd, { withFileTypes } = {
1566
+ withFileTypes: false,
1567
+ }) {
1568
+ if (typeof entry === 'string') {
1569
+ entry = this.cwd.resolve(entry);
1570
+ }
1571
+ else if (!(entry instanceof PathBase)) {
1572
+ withFileTypes = entry.withFileTypes;
1573
+ entry = this.cwd;
1574
+ }
1575
+ const e = entry.readlinkSync();
1576
+ return withFileTypes ? e : e?.fullpath();
1577
+ }
1578
+ async realpath(entry = this.cwd, { withFileTypes } = {
1579
+ withFileTypes: false,
1580
+ }) {
1581
+ if (typeof entry === 'string') {
1582
+ entry = this.cwd.resolve(entry);
1583
+ }
1584
+ else if (!(entry instanceof PathBase)) {
1585
+ withFileTypes = entry.withFileTypes;
1586
+ entry = this.cwd;
1587
+ }
1588
+ const e = await entry.realpath();
1589
+ return withFileTypes ? e : e?.fullpath();
1590
+ }
1591
+ realpathSync(entry = this.cwd, { withFileTypes } = {
1592
+ withFileTypes: false,
1593
+ }) {
1594
+ if (typeof entry === 'string') {
1595
+ entry = this.cwd.resolve(entry);
1596
+ }
1597
+ else if (!(entry instanceof PathBase)) {
1598
+ withFileTypes = entry.withFileTypes;
1599
+ entry = this.cwd;
1600
+ }
1601
+ const e = entry.realpathSync();
1602
+ return withFileTypes ? e : e?.fullpath();
1603
+ }
1604
+ async walk(entry = this.cwd, opts = {}) {
1605
+ if (typeof entry === 'string') {
1606
+ entry = this.cwd.resolve(entry);
1607
+ }
1608
+ else if (!(entry instanceof PathBase)) {
1609
+ opts = entry;
1610
+ entry = this.cwd;
1611
+ }
1612
+ const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
1613
+ const results = [];
1614
+ if (!filter || filter(entry)) {
1615
+ results.push(withFileTypes ? entry : entry.fullpath());
1616
+ }
1617
+ const dirs = new Set();
1618
+ const walk = (dir, cb) => {
1619
+ dirs.add(dir);
1620
+ dir.readdirCB((er, entries) => {
1621
+ /* c8 ignore start */
1622
+ if (er) {
1623
+ return cb(er);
1624
+ }
1625
+ /* c8 ignore stop */
1626
+ let len = entries.length;
1627
+ if (!len)
1628
+ return cb();
1629
+ const next = () => {
1630
+ if (--len === 0) {
1631
+ cb();
1632
+ }
1633
+ };
1634
+ for (const e of entries) {
1635
+ if (!filter || filter(e)) {
1636
+ results.push(withFileTypes ? e : e.fullpath());
1637
+ }
1638
+ if (follow && e.isSymbolicLink()) {
1639
+ e.realpath()
1640
+ .then(r => (r?.isUnknown() ? r.lstat() : r))
1641
+ .then(r => r?.shouldWalk(dirs, walkFilter) ? walk(r, next) : next());
1642
+ }
1643
+ else {
1644
+ if (e.shouldWalk(dirs, walkFilter)) {
1645
+ walk(e, next);
1646
+ }
1647
+ else {
1648
+ next();
1649
+ }
1650
+ }
1651
+ }
1652
+ }, true); // zalgooooooo
1653
+ };
1654
+ const start = entry;
1655
+ return new Promise((res, rej) => {
1656
+ walk(start, er => {
1657
+ /* c8 ignore start */
1658
+ if (er)
1659
+ return rej(er);
1660
+ /* c8 ignore stop */
1661
+ res(results);
1662
+ });
1663
+ });
1664
+ }
1665
+ walkSync(entry = this.cwd, opts = {}) {
1666
+ if (typeof entry === 'string') {
1667
+ entry = this.cwd.resolve(entry);
1668
+ }
1669
+ else if (!(entry instanceof PathBase)) {
1670
+ opts = entry;
1671
+ entry = this.cwd;
1672
+ }
1673
+ const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
1674
+ const results = [];
1675
+ if (!filter || filter(entry)) {
1676
+ results.push(withFileTypes ? entry : entry.fullpath());
1677
+ }
1678
+ const dirs = new Set([entry]);
1679
+ for (const dir of dirs) {
1680
+ const entries = dir.readdirSync();
1681
+ for (const e of entries) {
1682
+ if (!filter || filter(e)) {
1683
+ results.push(withFileTypes ? e : e.fullpath());
1684
+ }
1685
+ let r = e;
1686
+ if (e.isSymbolicLink()) {
1687
+ if (!(follow && (r = e.realpathSync())))
1688
+ continue;
1689
+ if (r.isUnknown())
1690
+ r.lstatSync();
1691
+ }
1692
+ if (r.shouldWalk(dirs, walkFilter)) {
1693
+ dirs.add(r);
1694
+ }
1695
+ }
1696
+ }
1697
+ return results;
1698
+ }
1699
+ /**
1700
+ * Support for `for await`
1701
+ *
1702
+ * Alias for {@link PathScurryBase.iterate}
1703
+ *
1704
+ * Note: As of Node 19, this is very slow, compared to other methods of
1705
+ * walking. Consider using {@link PathScurryBase.stream} if memory overhead
1706
+ * and backpressure are concerns, or {@link PathScurryBase.walk} if not.
1707
+ */
1708
+ [Symbol.asyncIterator]() {
1709
+ return this.iterate();
1710
+ }
1711
+ iterate(entry = this.cwd, options = {}) {
1712
+ // iterating async over the stream is significantly more performant,
1713
+ // especially in the warm-cache scenario, because it buffers up directory
1714
+ // entries in the background instead of waiting for a yield for each one.
1715
+ if (typeof entry === 'string') {
1716
+ entry = this.cwd.resolve(entry);
1717
+ }
1718
+ else if (!(entry instanceof PathBase)) {
1719
+ options = entry;
1720
+ entry = this.cwd;
1721
+ }
1722
+ return this.stream(entry, options)[Symbol.asyncIterator]();
1723
+ }
1724
+ /**
1725
+ * Iterating over a PathScurry performs a synchronous walk.
1726
+ *
1727
+ * Alias for {@link PathScurryBase.iterateSync}
1728
+ */
1729
+ [Symbol.iterator]() {
1730
+ return this.iterateSync();
1731
+ }
1732
+ *iterateSync(entry = this.cwd, opts = {}) {
1733
+ if (typeof entry === 'string') {
1734
+ entry = this.cwd.resolve(entry);
1735
+ }
1736
+ else if (!(entry instanceof PathBase)) {
1737
+ opts = entry;
1738
+ entry = this.cwd;
1739
+ }
1740
+ const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
1741
+ if (!filter || filter(entry)) {
1742
+ yield withFileTypes ? entry : entry.fullpath();
1743
+ }
1744
+ const dirs = new Set([entry]);
1745
+ for (const dir of dirs) {
1746
+ const entries = dir.readdirSync();
1747
+ for (const e of entries) {
1748
+ if (!filter || filter(e)) {
1749
+ yield withFileTypes ? e : e.fullpath();
1750
+ }
1751
+ let r = e;
1752
+ if (e.isSymbolicLink()) {
1753
+ if (!(follow && (r = e.realpathSync())))
1754
+ continue;
1755
+ if (r.isUnknown())
1756
+ r.lstatSync();
1757
+ }
1758
+ if (r.shouldWalk(dirs, walkFilter)) {
1759
+ dirs.add(r);
1760
+ }
1761
+ }
1762
+ }
1763
+ }
1764
+ stream(entry = this.cwd, opts = {}) {
1765
+ if (typeof entry === 'string') {
1766
+ entry = this.cwd.resolve(entry);
1767
+ }
1768
+ else if (!(entry instanceof PathBase)) {
1769
+ opts = entry;
1770
+ entry = this.cwd;
1771
+ }
1772
+ const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
1773
+ const results = new Minipass({ objectMode: true });
1774
+ if (!filter || filter(entry)) {
1775
+ results.write(withFileTypes ? entry : entry.fullpath());
1776
+ }
1777
+ const dirs = new Set();
1778
+ const queue = [entry];
1779
+ let processing = 0;
1780
+ const process = () => {
1781
+ let paused = false;
1782
+ while (!paused) {
1783
+ const dir = queue.shift();
1784
+ if (!dir) {
1785
+ if (processing === 0)
1786
+ results.end();
1787
+ return;
1788
+ }
1789
+ processing++;
1790
+ dirs.add(dir);
1791
+ const onReaddir = (er, entries, didRealpaths = false) => {
1792
+ /* c8 ignore start */
1793
+ if (er)
1794
+ return results.emit('error', er);
1795
+ /* c8 ignore stop */
1796
+ if (follow && !didRealpaths) {
1797
+ const promises = [];
1798
+ for (const e of entries) {
1799
+ if (e.isSymbolicLink()) {
1800
+ promises.push(e
1801
+ .realpath()
1802
+ .then((r) => r?.isUnknown() ? r.lstat() : r));
1803
+ }
1804
+ }
1805
+ if (promises.length) {
1806
+ Promise.all(promises).then(() => onReaddir(null, entries, true));
1807
+ return;
1808
+ }
1809
+ }
1810
+ for (const e of entries) {
1811
+ if (e && (!filter || filter(e))) {
1812
+ if (!results.write(withFileTypes ? e : e.fullpath())) {
1813
+ paused = true;
1814
+ }
1815
+ }
1816
+ }
1817
+ processing--;
1818
+ for (const e of entries) {
1819
+ const r = e.realpathCached() || e;
1820
+ if (r.shouldWalk(dirs, walkFilter)) {
1821
+ queue.push(r);
1822
+ }
1823
+ }
1824
+ if (paused && !results.flowing) {
1825
+ results.once('drain', process);
1826
+ }
1827
+ else if (!sync) {
1828
+ process();
1829
+ }
1830
+ };
1831
+ // zalgo containment
1832
+ let sync = true;
1833
+ dir.readdirCB(onReaddir, true);
1834
+ sync = false;
1835
+ }
1836
+ };
1837
+ process();
1838
+ return results;
1839
+ }
1840
+ streamSync(entry = this.cwd, opts = {}) {
1841
+ if (typeof entry === 'string') {
1842
+ entry = this.cwd.resolve(entry);
1843
+ }
1844
+ else if (!(entry instanceof PathBase)) {
1845
+ opts = entry;
1846
+ entry = this.cwd;
1847
+ }
1848
+ const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
1849
+ const results = new Minipass({ objectMode: true });
1850
+ const dirs = new Set();
1851
+ if (!filter || filter(entry)) {
1852
+ results.write(withFileTypes ? entry : entry.fullpath());
1853
+ }
1854
+ const queue = [entry];
1855
+ let processing = 0;
1856
+ const process = () => {
1857
+ let paused = false;
1858
+ while (!paused) {
1859
+ const dir = queue.shift();
1860
+ if (!dir) {
1861
+ if (processing === 0)
1862
+ results.end();
1863
+ return;
1864
+ }
1865
+ processing++;
1866
+ dirs.add(dir);
1867
+ const entries = dir.readdirSync();
1868
+ for (const e of entries) {
1869
+ if (!filter || filter(e)) {
1870
+ if (!results.write(withFileTypes ? e : e.fullpath())) {
1871
+ paused = true;
1872
+ }
1873
+ }
1874
+ }
1875
+ processing--;
1876
+ for (const e of entries) {
1877
+ let r = e;
1878
+ if (e.isSymbolicLink()) {
1879
+ if (!(follow && (r = e.realpathSync())))
1880
+ continue;
1881
+ if (r.isUnknown())
1882
+ r.lstatSync();
1883
+ }
1884
+ if (r.shouldWalk(dirs, walkFilter)) {
1885
+ queue.push(r);
1886
+ }
1887
+ }
1888
+ }
1889
+ if (paused && !results.flowing)
1890
+ results.once('drain', process);
1891
+ };
1892
+ process();
1893
+ return results;
1894
+ }
1895
+ chdir(path = this.cwd) {
1896
+ const oldCwd = this.cwd;
1897
+ this.cwd = typeof path === 'string' ? this.cwd.resolve(path) : path;
1898
+ this.cwd[setAsCwd](oldCwd);
1899
+ }
1900
+ }
1901
+ /**
1902
+ * Windows implementation of {@link PathScurryBase}
1903
+ *
1904
+ * Defaults to case insensitve, uses `'\\'` to generate path strings. Uses
1905
+ * {@link PathWin32} for Path objects.
1906
+ */
1907
+ export class PathScurryWin32 extends PathScurryBase {
1908
+ /**
1909
+ * separator for generating path strings
1910
+ */
1911
+ sep = '\\';
1912
+ constructor(cwd = process.cwd(), opts = {}) {
1913
+ const { nocase = true } = opts;
1914
+ // use the same root as resolve() does for these paths
1915
+ if (typeof cwd === 'string' && !cwd.startsWith('file://')) {
1916
+ cwd = cwd.replace(longDrivePrefix, '').replace(longUncPrefix, '\\');
1917
+ }
1918
+ super(cwd, win32, '\\', { ...opts, nocase });
1919
+ this.nocase = nocase;
1920
+ for (let p = this.cwd; p; p = p.parent) {
1921
+ p.nocase = this.nocase;
1922
+ }
1923
+ }
1924
+ /**
1925
+ * @internal
1926
+ */
1927
+ parseRootPath(dir) {
1928
+ // if the path starts with a single separator, it's not a UNC, and we'll
1929
+ // just get separator as the root, and driveFromUNC will return \
1930
+ // In that case, mount \ on the root from the cwd.
1931
+ return win32.parse(dir).root.toUpperCase();
1932
+ }
1933
+ /**
1934
+ * @internal
1935
+ */
1936
+ newRoot(fs) {
1937
+ return new PathWin32(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs });
1938
+ }
1939
+ /**
1940
+ * Return true if the provided path string is an absolute path
1941
+ */
1942
+ isAbsolute(p) {
1943
+ return (p.startsWith('/') || p.startsWith('\\') || /^[a-z]:(\/|\\)/i.test(p));
1944
+ }
1945
+ }
1946
+ /**
1947
+ * {@link PathScurryBase} implementation for all posix systems other than Darwin.
1948
+ *
1949
+ * Defaults to case-sensitive matching, uses `'/'` to generate path strings.
1950
+ *
1951
+ * Uses {@link PathPosix} for Path objects.
1952
+ */
1953
+ export class PathScurryPosix extends PathScurryBase {
1954
+ /**
1955
+ * separator for generating path strings
1956
+ */
1957
+ sep = '/';
1958
+ constructor(cwd = process.cwd(), opts = {}) {
1959
+ const { nocase = false } = opts;
1960
+ super(cwd, posix, '/', { ...opts, nocase });
1961
+ this.nocase = nocase;
1962
+ }
1963
+ /**
1964
+ * @internal
1965
+ */
1966
+ parseRootPath(_dir) {
1967
+ return '/';
1968
+ }
1969
+ /**
1970
+ * @internal
1971
+ */
1972
+ newRoot(fs) {
1973
+ return new PathPosix(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs });
1974
+ }
1975
+ /**
1976
+ * Return true if the provided path string is an absolute path
1977
+ */
1978
+ isAbsolute(p) {
1979
+ return p.startsWith('/');
1980
+ }
1981
+ }
1982
+ /**
1983
+ * {@link PathScurryBase} implementation for Darwin (macOS) systems.
1984
+ *
1985
+ * Defaults to case-insensitive matching, uses `'/'` for generating path
1986
+ * strings.
1987
+ *
1988
+ * Uses {@link PathPosix} for Path objects.
1989
+ */
1990
+ export class PathScurryDarwin extends PathScurryPosix {
1991
+ constructor(cwd = process.cwd(), opts = {}) {
1992
+ const { nocase = true } = opts;
1993
+ super(cwd, { ...opts, nocase });
1994
+ }
1995
+ }
1996
+ /**
1997
+ * Default {@link PathBase} implementation for the current platform.
1998
+ *
1999
+ * {@link PathWin32} on Windows systems, {@link PathPosix} on all others.
2000
+ */
2001
+ export const Path = process.platform === 'win32' ? PathWin32 : PathPosix;
2002
+ /**
2003
+ * Default {@link PathScurryBase} implementation for the current platform.
2004
+ *
2005
+ * {@link PathScurryWin32} on Windows systems, {@link PathScurryDarwin} on
2006
+ * Darwin (macOS) systems, {@link PathScurryPosix} on all others.
2007
+ */
2008
+ export const PathScurry = process.platform === 'win32' ? PathScurryWin32
2009
+ : process.platform === 'darwin' ? PathScurryDarwin
2010
+ : PathScurryPosix;
2011
+ //# sourceMappingURL=index.js.map