antigravity-mobile-proxy 0.1.2 → 0.1.3

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 (594) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +2 -2
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +5 -2
  5. package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js +2 -2
  17. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js +2 -2
  19. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js +2 -2
  21. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js +2 -2
  23. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js +2 -2
  25. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js +6 -2
  27. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js +6 -2
  29. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js +6 -2
  31. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js +6 -2
  33. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js +6 -2
  35. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js +6 -2
  37. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/v1/chat/route.js +6 -2
  39. package/.next/standalone/.next/server/app/api/v1/chat/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js +6 -2
  41. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js +6 -3
  43. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js +2 -2
  45. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/api/v1/conversations/route.js +6 -3
  47. package/.next/standalone/.next/server/app/api/v1/conversations/route.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js +6 -2
  49. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js +6 -2
  51. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js.nft.json +1 -1
  52. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js +6 -2
  53. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/api/v1/health/route.js +6 -2
  55. package/.next/standalone/.next/server/app/api/v1/health/route.js.nft.json +1 -1
  56. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js +2 -2
  57. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js +2 -2
  59. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js.nft.json +1 -1
  60. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js +6 -2
  61. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js.nft.json +1 -1
  62. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js +6 -2
  63. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js.nft.json +1 -1
  64. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js +2 -2
  65. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js.nft.json +1 -1
  66. package/.next/standalone/.next/server/app/api/v1/windows/route.js +6 -2
  67. package/.next/standalone/.next/server/app/api/v1/windows/route.js.nft.json +1 -1
  68. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js +6 -2
  69. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js.nft.json +1 -1
  70. package/.next/standalone/.next/server/app/debug/page.js +1 -1
  71. package/.next/standalone/.next/server/app/debug/page.js.nft.json +1 -1
  72. package/.next/standalone/.next/server/app/favicon.ico/route.js +1 -1
  73. package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  74. package/.next/standalone/.next/server/app/page.js +1 -1
  75. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  76. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d31b133._.js +3 -0
  77. package/.next/standalone/.next/server/chunks/[root-of-the-server]__133ac672._.js +3 -0
  78. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1535be2d._.js +3 -0
  79. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ee7d416._.js +3 -0
  80. package/.next/standalone/.next/server/chunks/[root-of-the-server]__22df301c._.js +3 -0
  81. package/.next/standalone/.next/server/chunks/[root-of-the-server]__25f5f8ec._.js +3 -0
  82. package/.next/standalone/.next/server/chunks/[root-of-the-server]__26662154._.js +3 -0
  83. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__2ec5ba30._.js → [root-of-the-server]__3fe6d12c._.js} +2 -2
  84. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4b17d628._.js +3 -0
  85. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4c540a38._.js +3 -0
  86. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8d2624da._.js → [root-of-the-server]__4d161104._.js} +2 -2
  87. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53c4f34d._.js +3 -0
  88. package/.next/standalone/.next/server/chunks/[root-of-the-server]__68965284._.js +3 -0
  89. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8cb67283._.js +5 -0
  90. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f5ebbc3._.js +7 -0
  91. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f8bd59f._.js +20 -0
  92. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9166d84a._.js +3 -0
  93. package/.next/standalone/.next/server/chunks/[root-of-the-server]__94275f7f._.js +3 -0
  94. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c34d50c8._.js +3 -0
  95. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8fdd2340._.js → [root-of-the-server]__c696771d._.js} +2 -2
  96. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bd52b41._.js → [root-of-the-server]__cd7ccfdd._.js} +2 -2
  97. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5818e20._.js +3 -0
  98. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__360475ac._.js → [root-of-the-server]__db7b3604._.js} +2 -2
  99. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eeb89c13._.js → [root-of-the-server]__dc1db6cb._.js} +2 -2
  100. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4effd91a._.js → [root-of-the-server]__e9181374._.js} +2 -2
  101. package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb9ef4db._.js +3 -0
  102. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4448d3d4._.js → [root-of-the-server]__ec32b318._.js} +2 -2
  103. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7f18ffd0._.js → [root-of-the-server]__f54bea3d._.js} +2 -2
  104. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fabd57e0._.js +3 -0
  105. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd0215df._.js +3 -0
  106. package/.next/standalone/.next/server/chunks/lib_cdp_connection_ts_075c799e._.js +41 -0
  107. package/.next/standalone/.next/server/chunks/node_modules_151ca6ae._.js +3 -0
  108. package/.next/standalone/.next/server/chunks/node_modules_1f8a2929._.js +3 -0
  109. package/.next/standalone/.next/server/chunks/node_modules_2d9a2f12._.js +4 -0
  110. package/.next/standalone/.next/server/chunks/node_modules_3b486fee._.js +3 -0
  111. package/.next/standalone/.next/server/chunks/node_modules_64199bef._.js +3 -0
  112. package/.next/standalone/.next/server/chunks/node_modules_@puppeteer_browsers_lib_esm_main_83020de3.js +3 -0
  113. package/.next/standalone/.next/server/chunks/node_modules_f81d3958._.js +3 -0
  114. package/.next/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +2 -2
  115. package/.next/standalone/.next/server/chunks/node_modules_yargs_helpers_helpers_mjs_abe15519._.js +3 -0
  116. package/.next/standalone/.next/server/chunks/node_modules_yargs_index_mjs_c4f6f97b._.js +56 -0
  117. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__703e5e24._.js +3 -0
  118. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__edab6069._.js +3 -0
  119. package/.next/standalone/.next/server/chunks/ssr/node_modules_63dba3f8._.js +1 -1
  120. package/.next/standalone/.next/server/pages/500.html +2 -2
  121. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  122. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  123. package/.next/standalone/next.config.js +19 -0
  124. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  125. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  126. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  127. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  128. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  129. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  130. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  131. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  132. package/.next/standalone/node_modules/next/dist/build/generate-build-id.js +5 -1
  133. package/.next/standalone/package-lock.json +140 -129
  134. package/.next/standalone/package.json +4 -3
  135. package/.next/standalone/scripts/patch-next.js +69 -0
  136. package/.next/standalone/server.js +1 -1
  137. package/.next/standalone/tsconfig.json +14 -4
  138. package/package.json +4 -3
  139. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f06ee9._.js +0 -3
  140. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15c96786._.js +0 -3
  141. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19ee93c1._.js +0 -3
  142. package/.next/standalone/.next/server/chunks/[root-of-the-server]__324dc867._.js +0 -3
  143. package/.next/standalone/.next/server/chunks/[root-of-the-server]__38025e07._.js +0 -3
  144. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a837477._.js +0 -3
  145. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4f9fdc77._.js +0 -3
  146. package/.next/standalone/.next/server/chunks/[root-of-the-server]__556e6cd5._.js +0 -3
  147. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6479a312._.js +0 -3
  148. package/.next/standalone/.next/server/chunks/[root-of-the-server]__693625a1._.js +0 -3
  149. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6ec98c1f._.js +0 -3
  150. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7f696ede._.js +0 -3
  151. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8aa4aa02._.js +0 -3
  152. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d217c47._.js +0 -7
  153. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e54cdc1._.js +0 -3
  154. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a73e4e4f._.js +0 -3
  155. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cd1b9505._.js +0 -3
  156. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d850c12e._.js +0 -3
  157. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ef121746._.js +0 -3
  158. package/.next/standalone/.next/server/chunks/_7273dcfc._.js +0 -3
  159. package/.next/standalone/.next/server/chunks/_8dd0f398._.js +0 -5
  160. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4fe85c38._.js +0 -3
  161. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85930638._.js +0 -3
  162. package/.next/standalone/next.config.ts +0 -10
  163. package/.next/standalone/node_modules/@puppeteer/browsers/package.json +0 -125
  164. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
  165. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
  166. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
  167. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
  168. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
  169. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
  170. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
  171. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
  172. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
  173. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
  174. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
  175. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
  176. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
  177. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
  178. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
  179. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
  180. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
  181. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
  182. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
  183. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
  184. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
  185. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
  186. package/.next/standalone/node_modules/agent-base/dist/helpers.js +0 -66
  187. package/.next/standalone/node_modules/agent-base/dist/index.js +0 -178
  188. package/.next/standalone/node_modules/agent-base/package.json +0 -46
  189. package/.next/standalone/node_modules/ast-types/def/babel-core.js +0 -256
  190. package/.next/standalone/node_modules/ast-types/def/babel.js +0 -11
  191. package/.next/standalone/node_modules/ast-types/def/core.js +0 -298
  192. package/.next/standalone/node_modules/ast-types/def/es-proposals.js +0 -33
  193. package/.next/standalone/node_modules/ast-types/def/es2020.js +0 -16
  194. package/.next/standalone/node_modules/ast-types/def/es6.js +0 -210
  195. package/.next/standalone/node_modules/ast-types/def/es7.js +0 -34
  196. package/.next/standalone/node_modules/ast-types/def/esprima.js +0 -49
  197. package/.next/standalone/node_modules/ast-types/def/flow.js +0 -292
  198. package/.next/standalone/node_modules/ast-types/def/jsx.js +0 -103
  199. package/.next/standalone/node_modules/ast-types/def/type-annotations.js +0 -40
  200. package/.next/standalone/node_modules/ast-types/def/typescript.js +0 -344
  201. package/.next/standalone/node_modules/ast-types/fork.js +0 -52
  202. package/.next/standalone/node_modules/ast-types/gen/namedTypes.js +0 -6
  203. package/.next/standalone/node_modules/ast-types/lib/equiv.js +0 -154
  204. package/.next/standalone/node_modules/ast-types/lib/node-path.js +0 -411
  205. package/.next/standalone/node_modules/ast-types/lib/path-visitor.js +0 -343
  206. package/.next/standalone/node_modules/ast-types/lib/path.js +0 -331
  207. package/.next/standalone/node_modules/ast-types/lib/scope.js +0 -318
  208. package/.next/standalone/node_modules/ast-types/lib/shared.js +0 -47
  209. package/.next/standalone/node_modules/ast-types/lib/types.js +0 -780
  210. package/.next/standalone/node_modules/ast-types/main.js +0 -53
  211. package/.next/standalone/node_modules/ast-types/package.json +0 -65
  212. package/.next/standalone/node_modules/b4a/index.js +0 -188
  213. package/.next/standalone/node_modules/b4a/package.json +0 -49
  214. package/.next/standalone/node_modules/basic-ftp/dist/Client.js +0 -782
  215. package/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +0 -92
  216. package/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +0 -365
  217. package/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
  218. package/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
  219. package/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +0 -23
  220. package/.next/standalone/node_modules/basic-ftp/dist/index.js +0 -28
  221. package/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +0 -66
  222. package/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
  223. package/.next/standalone/node_modules/basic-ftp/dist/parseList.js +0 -79
  224. package/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
  225. package/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
  226. package/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
  227. package/.next/standalone/node_modules/basic-ftp/dist/transfer.js +0 -318
  228. package/.next/standalone/node_modules/basic-ftp/package.json +0 -52
  229. package/.next/standalone/node_modules/buffer-crc32/index.js +0 -111
  230. package/.next/standalone/node_modules/buffer-crc32/package.json +0 -39
  231. package/.next/standalone/node_modules/cliui/build/lib/index.js +0 -287
  232. package/.next/standalone/node_modules/cliui/build/lib/string-utils.js +0 -27
  233. package/.next/standalone/node_modules/cliui/index.mjs +0 -13
  234. package/.next/standalone/node_modules/cliui/package.json +0 -83
  235. package/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +0 -54
  236. package/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +0 -26
  237. package/.next/standalone/node_modules/data-uri-to-buffer/package.json +0 -48
  238. package/.next/standalone/node_modules/debug/package.json +0 -64
  239. package/.next/standalone/node_modules/debug/src/browser.js +0 -272
  240. package/.next/standalone/node_modules/debug/src/common.js +0 -292
  241. package/.next/standalone/node_modules/debug/src/index.js +0 -10
  242. package/.next/standalone/node_modules/debug/src/node.js +0 -263
  243. package/.next/standalone/node_modules/degenerator/dist/compile.js +0 -107
  244. package/.next/standalone/node_modules/degenerator/dist/degenerator.js +0 -156
  245. package/.next/standalone/node_modules/degenerator/dist/index.js +0 -19
  246. package/.next/standalone/node_modules/degenerator/package.json +0 -42
  247. package/.next/standalone/node_modules/end-of-stream/index.js +0 -96
  248. package/.next/standalone/node_modules/end-of-stream/package.json +0 -37
  249. package/.next/standalone/node_modules/escalade/package.json +0 -74
  250. package/.next/standalone/node_modules/escodegen/escodegen.js +0 -2667
  251. package/.next/standalone/node_modules/escodegen/package.json +0 -63
  252. package/.next/standalone/node_modules/esprima/dist/esprima.js +0 -6709
  253. package/.next/standalone/node_modules/esprima/package.json +0 -112
  254. package/.next/standalone/node_modules/estraverse/estraverse.js +0 -805
  255. package/.next/standalone/node_modules/estraverse/package.json +0 -40
  256. package/.next/standalone/node_modules/esutils/lib/ast.js +0 -144
  257. package/.next/standalone/node_modules/esutils/lib/code.js +0 -135
  258. package/.next/standalone/node_modules/esutils/lib/keyword.js +0 -165
  259. package/.next/standalone/node_modules/esutils/lib/utils.js +0 -33
  260. package/.next/standalone/node_modules/esutils/package.json +0 -44
  261. package/.next/standalone/node_modules/events-universal/default.js +0 -1
  262. package/.next/standalone/node_modules/events-universal/package.json +0 -39
  263. package/.next/standalone/node_modules/extract-zip/LICENSE +0 -23
  264. package/.next/standalone/node_modules/extract-zip/cli.js +0 -19
  265. package/.next/standalone/node_modules/extract-zip/index.js +0 -173
  266. package/.next/standalone/node_modules/extract-zip/package.json +0 -80
  267. package/.next/standalone/node_modules/extract-zip/readme.md +0 -57
  268. package/.next/standalone/node_modules/fast-fifo/fixed-size.js +0 -39
  269. package/.next/standalone/node_modules/fast-fifo/index.js +0 -48
  270. package/.next/standalone/node_modules/fast-fifo/package.json +0 -28
  271. package/.next/standalone/node_modules/fd-slicer/index.js +0 -296
  272. package/.next/standalone/node_modules/fd-slicer/package.json +0 -36
  273. package/.next/standalone/node_modules/get-stream/buffer-stream.js +0 -52
  274. package/.next/standalone/node_modules/get-stream/index.js +0 -60
  275. package/.next/standalone/node_modules/get-stream/package.json +0 -50
  276. package/.next/standalone/node_modules/get-uri/dist/data.js +0 -43
  277. package/.next/standalone/node_modules/get-uri/dist/file.js +0 -57
  278. package/.next/standalone/node_modules/get-uri/dist/ftp.js +0 -93
  279. package/.next/standalone/node_modules/get-uri/dist/http-error.js +0 -15
  280. package/.next/standalone/node_modules/get-uri/dist/http.js +0 -191
  281. package/.next/standalone/node_modules/get-uri/dist/https.js +0 -16
  282. package/.next/standalone/node_modules/get-uri/dist/index.js +0 -57
  283. package/.next/standalone/node_modules/get-uri/dist/notfound.js +0 -16
  284. package/.next/standalone/node_modules/get-uri/dist/notmodified.js +0 -17
  285. package/.next/standalone/node_modules/get-uri/package.json +0 -58
  286. package/.next/standalone/node_modules/has-flag/index.js +0 -8
  287. package/.next/standalone/node_modules/has-flag/package.json +0 -46
  288. package/.next/standalone/node_modules/http-proxy-agent/dist/index.js +0 -148
  289. package/.next/standalone/node_modules/http-proxy-agent/package.json +0 -47
  290. package/.next/standalone/node_modules/https-proxy-agent/dist/index.js +0 -180
  291. package/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  292. package/.next/standalone/node_modules/https-proxy-agent/package.json +0 -50
  293. package/.next/standalone/node_modules/ip-address/dist/address-error.js +0 -12
  294. package/.next/standalone/node_modules/ip-address/dist/common.js +0 -46
  295. package/.next/standalone/node_modules/ip-address/dist/ip-address.js +0 -35
  296. package/.next/standalone/node_modules/ip-address/dist/ipv4.js +0 -360
  297. package/.next/standalone/node_modules/ip-address/dist/ipv6.js +0 -1003
  298. package/.next/standalone/node_modules/ip-address/dist/v4/constants.js +0 -8
  299. package/.next/standalone/node_modules/ip-address/dist/v6/constants.js +0 -76
  300. package/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +0 -45
  301. package/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  302. package/.next/standalone/node_modules/ip-address/package.json +0 -78
  303. package/.next/standalone/node_modules/lru-cache/index.js +0 -1227
  304. package/.next/standalone/node_modules/lru-cache/package.json +0 -96
  305. package/.next/standalone/node_modules/ms/index.js +0 -162
  306. package/.next/standalone/node_modules/ms/package.json +0 -38
  307. package/.next/standalone/node_modules/netmask/lib/netmask.js +0 -208
  308. package/.next/standalone/node_modules/netmask/package.json +0 -36
  309. package/.next/standalone/node_modules/once/once.js +0 -42
  310. package/.next/standalone/node_modules/once/package.json +0 -33
  311. package/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +0 -238
  312. package/.next/standalone/node_modules/pac-proxy-agent/package.json +0 -58
  313. package/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +0 -73
  314. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
  315. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
  316. package/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
  317. package/.next/standalone/node_modules/pac-resolver/dist/index.js +0 -87
  318. package/.next/standalone/node_modules/pac-resolver/dist/ip.js +0 -50
  319. package/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +0 -42
  320. package/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
  321. package/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +0 -23
  322. package/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
  323. package/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
  324. package/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
  325. package/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +0 -92
  326. package/.next/standalone/node_modules/pac-resolver/dist/util.js +0 -22
  327. package/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
  328. package/.next/standalone/node_modules/pac-resolver/package.json +0 -47
  329. package/.next/standalone/node_modules/pend/index.js +0 -55
  330. package/.next/standalone/node_modules/pend/package.json +0 -18
  331. package/.next/standalone/node_modules/progress/index.js +0 -1
  332. package/.next/standalone/node_modules/progress/lib/node-progress.js +0 -236
  333. package/.next/standalone/node_modules/progress/package.json +0 -26
  334. package/.next/standalone/node_modules/proxy-agent/dist/index.js +0 -138
  335. package/.next/standalone/node_modules/proxy-agent/package.json +0 -60
  336. package/.next/standalone/node_modules/proxy-from-env/index.js +0 -108
  337. package/.next/standalone/node_modules/proxy-from-env/package.json +0 -34
  338. package/.next/standalone/node_modules/pump/index.js +0 -86
  339. package/.next/standalone/node_modules/pump/package.json +0 -30
  340. package/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +0 -1
  341. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -204
  342. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -182
  343. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +0 -68
  344. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +0 -34
  345. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +0 -90
  346. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -1406
  347. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +0 -10
  348. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +0 -904
  349. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +0 -461
  350. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +0 -56
  351. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +0 -211
  352. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -227
  353. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -1511
  354. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +0 -44
  355. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +0 -49
  356. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +0 -106
  357. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -22
  358. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +0 -769
  359. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +0 -83
  360. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +0 -591
  361. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +0 -162
  362. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +0 -26
  363. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +0 -327
  364. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +0 -26
  365. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +0 -192
  366. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +0 -39
  367. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +0 -129
  368. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +0 -244
  369. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +0 -372
  370. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +0 -151
  371. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +0 -23
  372. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +0 -206
  373. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +0 -458
  374. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +0 -457
  375. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +0 -175
  376. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +0 -358
  377. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +0 -455
  378. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +0 -24
  379. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +0 -91
  380. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +0 -195
  381. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +0 -126
  382. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +0 -499
  383. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +0 -157
  384. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +0 -20
  385. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +0 -101
  386. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +0 -174
  387. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +0 -162
  388. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +0 -601
  389. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +0 -1011
  390. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +0 -69
  391. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +0 -243
  392. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +0 -7
  393. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +0 -320
  394. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +0 -110
  395. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +0 -73
  396. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +0 -43
  397. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +0 -216
  398. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -54
  399. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -129
  400. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -39
  401. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +0 -18
  402. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +0 -133
  403. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -78
  404. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -114
  405. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -109
  406. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1604
  407. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -94
  408. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -128
  409. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -75
  410. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -70
  411. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -142
  412. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -23
  413. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +0 -21
  414. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -58
  415. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -18
  416. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +0 -100
  417. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -18
  418. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -98
  419. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -225
  420. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -51
  421. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -69
  422. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -24
  423. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -15
  424. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -39
  425. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -394
  426. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -197
  427. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -21
  428. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -35
  429. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -375
  430. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -24
  431. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
  432. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +0 -11
  433. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +0 -8
  434. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -41
  435. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -14
  436. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
  437. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +0 -105
  438. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -41
  439. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -70
  440. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +0 -46
  441. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -18
  442. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +0 -232
  443. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +0 -342
  444. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +0 -63
  445. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +0 -18
  446. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -13
  447. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +0 -10
  448. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +0 -44
  449. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +0 -196
  450. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +0 -2887
  451. package/.next/standalone/node_modules/puppeteer-core/package.json +0 -169
  452. package/.next/standalone/node_modules/semver/functions/clean.js +0 -8
  453. package/.next/standalone/node_modules/semver/functions/compare-build.js +0 -9
  454. package/.next/standalone/node_modules/semver/functions/compare-loose.js +0 -5
  455. package/.next/standalone/node_modules/semver/functions/diff.js +0 -60
  456. package/.next/standalone/node_modules/semver/functions/inc.js +0 -21
  457. package/.next/standalone/node_modules/semver/functions/major.js +0 -5
  458. package/.next/standalone/node_modules/semver/functions/minor.js +0 -5
  459. package/.next/standalone/node_modules/semver/functions/patch.js +0 -5
  460. package/.next/standalone/node_modules/semver/functions/prerelease.js +0 -8
  461. package/.next/standalone/node_modules/semver/functions/rcompare.js +0 -5
  462. package/.next/standalone/node_modules/semver/functions/rsort.js +0 -5
  463. package/.next/standalone/node_modules/semver/functions/sort.js +0 -5
  464. package/.next/standalone/node_modules/semver/functions/valid.js +0 -8
  465. package/.next/standalone/node_modules/semver/index.js +0 -91
  466. package/.next/standalone/node_modules/semver/ranges/gtr.js +0 -6
  467. package/.next/standalone/node_modules/semver/ranges/intersects.js +0 -9
  468. package/.next/standalone/node_modules/semver/ranges/ltr.js +0 -6
  469. package/.next/standalone/node_modules/semver/ranges/max-satisfying.js +0 -27
  470. package/.next/standalone/node_modules/semver/ranges/min-satisfying.js +0 -26
  471. package/.next/standalone/node_modules/semver/ranges/min-version.js +0 -63
  472. package/.next/standalone/node_modules/semver/ranges/outside.js +0 -82
  473. package/.next/standalone/node_modules/semver/ranges/simplify.js +0 -49
  474. package/.next/standalone/node_modules/semver/ranges/subset.js +0 -249
  475. package/.next/standalone/node_modules/semver/ranges/to-comparators.js +0 -10
  476. package/.next/standalone/node_modules/semver/ranges/valid.js +0 -13
  477. package/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  478. package/.next/standalone/node_modules/smart-buffer/build/utils.js +0 -108
  479. package/.next/standalone/node_modules/smart-buffer/package.json +0 -79
  480. package/.next/standalone/node_modules/socks/build/client/socksclient.js +0 -793
  481. package/.next/standalone/node_modules/socks/build/common/constants.js +0 -108
  482. package/.next/standalone/node_modules/socks/build/common/helpers.js +0 -167
  483. package/.next/standalone/node_modules/socks/build/common/receivebuffer.js +0 -43
  484. package/.next/standalone/node_modules/socks/build/common/util.js +0 -25
  485. package/.next/standalone/node_modules/socks/build/index.js +0 -18
  486. package/.next/standalone/node_modules/socks/package.json +0 -58
  487. package/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +0 -195
  488. package/.next/standalone/node_modules/socks-proxy-agent/package.json +0 -142
  489. package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
  490. package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
  491. package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
  492. package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
  493. package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
  494. package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
  495. package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  496. package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
  497. package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
  498. package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
  499. package/.next/standalone/node_modules/source-map/package.json +0 -73
  500. package/.next/standalone/node_modules/source-map/source-map.js +0 -8
  501. package/.next/standalone/node_modules/streamx/index.js +0 -1184
  502. package/.next/standalone/node_modules/streamx/package.json +0 -34
  503. package/.next/standalone/node_modules/supports-color/index.js +0 -135
  504. package/.next/standalone/node_modules/supports-color/package.json +0 -53
  505. package/.next/standalone/node_modules/tar-stream/constants.js +0 -14
  506. package/.next/standalone/node_modules/tar-stream/extract.js +0 -406
  507. package/.next/standalone/node_modules/tar-stream/headers.js +0 -321
  508. package/.next/standalone/node_modules/tar-stream/index.js +0 -2
  509. package/.next/standalone/node_modules/tar-stream/pack.js +0 -287
  510. package/.next/standalone/node_modules/tar-stream/package.json +0 -42
  511. package/.next/standalone/node_modules/text-decoder/index.js +0 -64
  512. package/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
  513. package/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
  514. package/.next/standalone/node_modules/text-decoder/package.json +0 -39
  515. package/.next/standalone/node_modules/tslib/package.json +0 -47
  516. package/.next/standalone/node_modules/tslib/tslib.js +0 -484
  517. package/.next/standalone/node_modules/wrappy/package.json +0 -29
  518. package/.next/standalone/node_modules/wrappy/wrappy.js +0 -33
  519. package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
  520. package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
  521. package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
  522. package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
  523. package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
  524. package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
  525. package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
  526. package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
  527. package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
  528. package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
  529. package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
  530. package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
  531. package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
  532. package/.next/standalone/node_modules/ws/package.json +0 -69
  533. package/.next/standalone/node_modules/ws/wrapper.mjs +0 -8
  534. package/.next/standalone/node_modules/y18n/build/lib/index.js +0 -174
  535. package/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  536. package/.next/standalone/node_modules/y18n/index.mjs +0 -8
  537. package/.next/standalone/node_modules/y18n/package.json +0 -70
  538. package/.next/standalone/node_modules/yargs/build/lib/argsert.js +0 -62
  539. package/.next/standalone/node_modules/yargs/build/lib/command.js +0 -449
  540. package/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +0 -48
  541. package/.next/standalone/node_modules/yargs/build/lib/completion.js +0 -243
  542. package/.next/standalone/node_modules/yargs/build/lib/middleware.js +0 -88
  543. package/.next/standalone/node_modules/yargs/build/lib/parse-command.js +0 -32
  544. package/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  545. package/.next/standalone/node_modules/yargs/build/lib/usage.js +0 -584
  546. package/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  547. package/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  548. package/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  549. package/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  550. package/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  551. package/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  552. package/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  553. package/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  554. package/.next/standalone/node_modules/yargs/build/lib/validation.js +0 -305
  555. package/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  556. package/.next/standalone/node_modules/yargs/build/lib/yerror.js +0 -9
  557. package/.next/standalone/node_modules/yargs/helpers/helpers.mjs +0 -10
  558. package/.next/standalone/node_modules/yargs/index.mjs +0 -8
  559. package/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  560. package/.next/standalone/node_modules/yargs/package.json +0 -123
  561. package/.next/standalone/node_modules/yargs-parser/build/lib/index.js +0 -62
  562. package/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  563. package/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  564. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  565. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  566. package/.next/standalone/node_modules/yargs-parser/package.json +0 -92
  567. package/.next/standalone/node_modules/yauzl/LICENSE +0 -21
  568. package/.next/standalone/node_modules/yauzl/README.md +0 -658
  569. package/.next/standalone/node_modules/yauzl/index.js +0 -796
  570. package/.next/standalone/node_modules/yauzl/package.json +0 -40
  571. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
  572. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +0 -0
  573. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +0 -0
  574. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
  575. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
  576. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
  577. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
  578. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
  579. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
  580. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
  581. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
  582. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
  583. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
  584. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
  585. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
  586. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
  587. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
  588. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
  589. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
  590. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +0 -0
  591. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +0 -0
  592. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_buildManifest.js +0 -0
  593. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_clientMiddlewareManifest.json +0 -0
  594. /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_ssgManifest.js +0 -0
@@ -1,782 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Client = void 0;
4
- const fs_1 = require("fs");
5
- const path_1 = require("path");
6
- const tls_1 = require("tls");
7
- const util_1 = require("util");
8
- const FtpContext_1 = require("./FtpContext");
9
- const parseList_1 = require("./parseList");
10
- const ProgressTracker_1 = require("./ProgressTracker");
11
- const StringWriter_1 = require("./StringWriter");
12
- const parseListMLSD_1 = require("./parseListMLSD");
13
- const netUtils_1 = require("./netUtils");
14
- const transfer_1 = require("./transfer");
15
- const parseControlResponse_1 = require("./parseControlResponse");
16
- // Use promisify to keep the library compatible with Node 8.
17
- const fsReadDir = (0, util_1.promisify)(fs_1.readdir);
18
- const fsMkDir = (0, util_1.promisify)(fs_1.mkdir);
19
- const fsStat = (0, util_1.promisify)(fs_1.stat);
20
- const fsOpen = (0, util_1.promisify)(fs_1.open);
21
- const fsClose = (0, util_1.promisify)(fs_1.close);
22
- const fsUnlink = (0, util_1.promisify)(fs_1.unlink);
23
- const defaultClientOptions = {
24
- allowSeparateTransferHost: true
25
- };
26
- const LIST_COMMANDS_DEFAULT = () => ["LIST -a", "LIST"];
27
- const LIST_COMMANDS_MLSD = () => ["MLSD", "LIST -a", "LIST"];
28
- /**
29
- * High-level API to interact with an FTP server.
30
- */
31
- class Client {
32
- /**
33
- * Instantiate an FTP client.
34
- *
35
- * @param timeout Timeout in milliseconds, use 0 for no timeout. Optional, default is 30 seconds.
36
- */
37
- constructor(timeout = 30000, options = defaultClientOptions) {
38
- this.availableListCommands = LIST_COMMANDS_DEFAULT();
39
- this.ftp = new FtpContext_1.FTPContext(timeout);
40
- this.prepareTransfer = this._enterFirstCompatibleMode([
41
- transfer_1.enterPassiveModeIPv6,
42
- options.allowSeparateTransferHost ? transfer_1.enterPassiveModeIPv4 : transfer_1.enterPassiveModeIPv4_forceControlHostIP
43
- ]);
44
- this.parseList = parseList_1.parseList;
45
- this._progressTracker = new ProgressTracker_1.ProgressTracker();
46
- }
47
- /**
48
- * Close the client and all open socket connections.
49
- *
50
- * Close the client and all open socket connections. The client can’t be used anymore after calling this method,
51
- * you have to either reconnect with `access` or `connect` or instantiate a new instance to continue any work.
52
- * A client is also closed automatically if any timeout or connection error occurs.
53
- */
54
- close() {
55
- this.ftp.close();
56
- this._progressTracker.stop();
57
- }
58
- /**
59
- * Returns true if the client is closed and can't be used anymore.
60
- */
61
- get closed() {
62
- return this.ftp.closed;
63
- }
64
- /**
65
- * Connect (or reconnect) to an FTP server.
66
- *
67
- * This is an instance method and thus can be called multiple times during the lifecycle of a `Client`
68
- * instance. Whenever you do, the client is reset with a new control connection. This also implies that
69
- * you can reopen a `Client` instance that has been closed due to an error when reconnecting with this
70
- * method. In fact, reconnecting is the only way to continue using a closed `Client`.
71
- *
72
- * @param host Host the client should connect to. Optional, default is "localhost".
73
- * @param port Port the client should connect to. Optional, default is 21.
74
- */
75
- connect(host = "localhost", port = 21) {
76
- this.ftp.reset();
77
- this.ftp.socket.connect({
78
- host,
79
- port,
80
- family: this.ftp.ipFamily
81
- }, () => this.ftp.log(`Connected to ${(0, netUtils_1.describeAddress)(this.ftp.socket)} (${(0, netUtils_1.describeTLS)(this.ftp.socket)})`));
82
- return this._handleConnectResponse();
83
- }
84
- /**
85
- * As `connect` but using implicit TLS. Implicit TLS is not an FTP standard and has been replaced by
86
- * explicit TLS. There are still FTP servers that support only implicit TLS, though.
87
- */
88
- connectImplicitTLS(host = "localhost", port = 21, tlsOptions = {}) {
89
- this.ftp.reset();
90
- this.ftp.socket = (0, tls_1.connect)(port, host, tlsOptions, () => this.ftp.log(`Connected to ${(0, netUtils_1.describeAddress)(this.ftp.socket)} (${(0, netUtils_1.describeTLS)(this.ftp.socket)})`));
91
- this.ftp.tlsOptions = tlsOptions;
92
- return this._handleConnectResponse();
93
- }
94
- /**
95
- * Handles the first reponse by an FTP server after the socket connection has been established.
96
- */
97
- _handleConnectResponse() {
98
- return this.ftp.handle(undefined, (res, task) => {
99
- if (res instanceof Error) {
100
- // The connection has been destroyed by the FTPContext at this point.
101
- task.reject(res);
102
- }
103
- else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) {
104
- task.resolve(res);
105
- }
106
- // Reject all other codes, including 120 "Service ready in nnn minutes".
107
- else {
108
- // Don't stay connected but don't replace the socket yet by using reset()
109
- // so the user can inspect properties of this instance.
110
- task.reject(new FtpContext_1.FTPError(res));
111
- }
112
- });
113
- }
114
- /**
115
- * Send an FTP command and handle the first response.
116
- */
117
- send(command, ignoreErrorCodesDEPRECATED = false) {
118
- if (ignoreErrorCodesDEPRECATED) { // Deprecated starting from 3.9.0
119
- this.ftp.log("Deprecated call using send(command, flag) with boolean flag to ignore errors. Use sendIgnoringError(command).");
120
- return this.sendIgnoringError(command);
121
- }
122
- return this.ftp.request(command);
123
- }
124
- /**
125
- * Send an FTP command and ignore an FTP error response. Any other kind of error or timeout will still reject the Promise.
126
- *
127
- * @param command
128
- */
129
- sendIgnoringError(command) {
130
- return this.ftp.handle(command, (res, task) => {
131
- if (res instanceof FtpContext_1.FTPError) {
132
- task.resolve({ code: res.code, message: res.message });
133
- }
134
- else if (res instanceof Error) {
135
- task.reject(res);
136
- }
137
- else {
138
- task.resolve(res);
139
- }
140
- });
141
- }
142
- /**
143
- * Upgrade the current socket connection to TLS.
144
- *
145
- * @param options TLS options as in `tls.connect(options)`, optional.
146
- * @param command Set the authentication command. Optional, default is "AUTH TLS".
147
- */
148
- async useTLS(options = {}, command = "AUTH TLS") {
149
- const ret = await this.send(command);
150
- this.ftp.socket = await (0, netUtils_1.upgradeSocket)(this.ftp.socket, options);
151
- this.ftp.tlsOptions = options; // Keep the TLS options for later data connections that should use the same options.
152
- this.ftp.log(`Control socket is using: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);
153
- return ret;
154
- }
155
- /**
156
- * Login a user with a password.
157
- *
158
- * @param user Username to use for login. Optional, default is "anonymous".
159
- * @param password Password to use for login. Optional, default is "guest".
160
- */
161
- login(user = "anonymous", password = "guest") {
162
- this.ftp.log(`Login security: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);
163
- return this.ftp.handle("USER " + user, (res, task) => {
164
- if (res instanceof Error) {
165
- task.reject(res);
166
- }
167
- else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) { // User logged in proceed OR Command superfluous
168
- task.resolve(res);
169
- }
170
- else if (res.code === 331) { // User name okay, need password
171
- this.ftp.send("PASS " + password);
172
- }
173
- else { // Also report error on 332 (Need account)
174
- task.reject(new FtpContext_1.FTPError(res));
175
- }
176
- });
177
- }
178
- /**
179
- * Set the usual default settings.
180
- *
181
- * Settings used:
182
- * * Binary mode (TYPE I)
183
- * * File structure (STRU F)
184
- * * Additional settings for FTPS (PBSZ 0, PROT P)
185
- */
186
- async useDefaultSettings() {
187
- const features = await this.features();
188
- // Use MLSD directory listing if possible. See https://tools.ietf.org/html/rfc3659#section-7.8:
189
- // "The presence of the MLST feature indicates that both MLST and MLSD are supported."
190
- const supportsMLSD = features.has("MLST");
191
- this.availableListCommands = supportsMLSD ? LIST_COMMANDS_MLSD() : LIST_COMMANDS_DEFAULT();
192
- await this.send("TYPE I"); // Binary mode
193
- await this.sendIgnoringError("STRU F"); // Use file structure
194
- await this.sendIgnoringError("OPTS UTF8 ON"); // Some servers expect UTF-8 to be enabled explicitly and setting before login might not have worked.
195
- if (supportsMLSD) {
196
- await this.sendIgnoringError("OPTS MLST type;size;modify;unique;unix.mode;unix.owner;unix.group;unix.ownername;unix.groupname;"); // Make sure MLSD listings include all we can parse
197
- }
198
- if (this.ftp.hasTLS) {
199
- await this.sendIgnoringError("PBSZ 0"); // Set to 0 for TLS
200
- await this.sendIgnoringError("PROT P"); // Protect channel (also for data connections)
201
- }
202
- }
203
- /**
204
- * Convenience method that calls `connect`, `useTLS`, `login` and `useDefaultSettings`.
205
- *
206
- * This is an instance method and thus can be called multiple times during the lifecycle of a `Client`
207
- * instance. Whenever you do, the client is reset with a new control connection. This also implies that
208
- * you can reopen a `Client` instance that has been closed due to an error when reconnecting with this
209
- * method. In fact, reconnecting is the only way to continue using a closed `Client`.
210
- */
211
- async access(options = {}) {
212
- var _a, _b;
213
- const useExplicitTLS = options.secure === true;
214
- const useImplicitTLS = options.secure === "implicit";
215
- let welcome;
216
- if (useImplicitTLS) {
217
- welcome = await this.connectImplicitTLS(options.host, options.port, options.secureOptions);
218
- }
219
- else {
220
- welcome = await this.connect(options.host, options.port);
221
- }
222
- if (useExplicitTLS) {
223
- // Fixes https://github.com/patrickjuchli/basic-ftp/issues/166 by making sure
224
- // host is set for any future data connection as well.
225
- const secureOptions = (_a = options.secureOptions) !== null && _a !== void 0 ? _a : {};
226
- secureOptions.host = (_b = secureOptions.host) !== null && _b !== void 0 ? _b : options.host;
227
- await this.useTLS(secureOptions);
228
- }
229
- // Set UTF-8 on before login in case there are non-ascii characters in user or password.
230
- // Note that this might not work before login depending on server.
231
- await this.sendIgnoringError("OPTS UTF8 ON");
232
- await this.login(options.user, options.password);
233
- await this.useDefaultSettings();
234
- return welcome;
235
- }
236
- /**
237
- * Get the current working directory.
238
- */
239
- async pwd() {
240
- const res = await this.send("PWD");
241
- // The directory is part of the return message, for example:
242
- // 257 "/this/that" is current directory.
243
- const parsed = res.message.match(/"(.+)"/);
244
- if (parsed === null || parsed[1] === undefined) {
245
- throw new Error(`Can't parse response to command 'PWD': ${res.message}`);
246
- }
247
- return parsed[1];
248
- }
249
- /**
250
- * Get a description of supported features.
251
- *
252
- * This sends the FEAT command and parses the result into a Map where keys correspond to available commands
253
- * and values hold further information. Be aware that your FTP servers might not support this
254
- * command in which case this method will not throw an exception but just return an empty Map.
255
- */
256
- async features() {
257
- const res = await this.sendIgnoringError("FEAT");
258
- const features = new Map();
259
- // Not supporting any special features will be reported with a single line.
260
- if (res.code < 400 && (0, parseControlResponse_1.isMultiline)(res.message)) {
261
- // The first and last line wrap the multiline response, ignore them.
262
- res.message.split("\n").slice(1, -1).forEach(line => {
263
- // A typical lines looks like: " REST STREAM" or " MDTM".
264
- // Servers might not use an indentation though.
265
- const entry = line.trim().split(" ");
266
- features.set(entry[0], entry[1] || "");
267
- });
268
- }
269
- return features;
270
- }
271
- /**
272
- * Set the working directory.
273
- */
274
- async cd(path) {
275
- const validPath = await this.protectWhitespace(path);
276
- return this.send("CWD " + validPath);
277
- }
278
- /**
279
- * Switch to the parent directory of the working directory.
280
- */
281
- async cdup() {
282
- return this.send("CDUP");
283
- }
284
- /**
285
- * Get the last modified time of a file. This is not supported by every FTP server, in which case
286
- * calling this method will throw an exception.
287
- */
288
- async lastMod(path) {
289
- const validPath = await this.protectWhitespace(path);
290
- const res = await this.send(`MDTM ${validPath}`);
291
- const date = res.message.slice(4);
292
- return (0, parseListMLSD_1.parseMLSxDate)(date);
293
- }
294
- /**
295
- * Get the size of a file.
296
- */
297
- async size(path) {
298
- const validPath = await this.protectWhitespace(path);
299
- const command = `SIZE ${validPath}`;
300
- const res = await this.send(command);
301
- // The size is part of the response message, for example: "213 555555". It's
302
- // possible that there is a commmentary appended like "213 5555, some commentary".
303
- const size = parseInt(res.message.slice(4), 10);
304
- if (Number.isNaN(size)) {
305
- throw new Error(`Can't parse response to command '${command}' as a numerical value: ${res.message}`);
306
- }
307
- return size;
308
- }
309
- /**
310
- * Rename a file.
311
- *
312
- * Depending on the FTP server this might also be used to move a file from one
313
- * directory to another by providing full paths.
314
- */
315
- async rename(srcPath, destPath) {
316
- const validSrc = await this.protectWhitespace(srcPath);
317
- const validDest = await this.protectWhitespace(destPath);
318
- await this.send("RNFR " + validSrc);
319
- return this.send("RNTO " + validDest);
320
- }
321
- /**
322
- * Remove a file from the current working directory.
323
- *
324
- * You can ignore FTP error return codes which won't throw an exception if e.g.
325
- * the file doesn't exist.
326
- */
327
- async remove(path, ignoreErrorCodes = false) {
328
- const validPath = await this.protectWhitespace(path);
329
- if (ignoreErrorCodes) {
330
- return this.sendIgnoringError(`DELE ${validPath}`);
331
- }
332
- return this.send(`DELE ${validPath}`);
333
- }
334
- /**
335
- * Report transfer progress for any upload or download to a given handler.
336
- *
337
- * This will also reset the overall transfer counter that can be used for multiple transfers. You can
338
- * also call the function without a handler to stop reporting to an earlier one.
339
- *
340
- * @param handler Handler function to call on transfer progress.
341
- */
342
- trackProgress(handler) {
343
- this._progressTracker.bytesOverall = 0;
344
- this._progressTracker.reportTo(handler);
345
- }
346
- /**
347
- * Upload data from a readable stream or a local file to a remote file.
348
- *
349
- * @param source Readable stream or path to a local file.
350
- * @param toRemotePath Path to a remote file to write to.
351
- */
352
- async uploadFrom(source, toRemotePath, options = {}) {
353
- return this._uploadWithCommand(source, toRemotePath, "STOR", options);
354
- }
355
- /**
356
- * Upload data from a readable stream or a local file by appending it to an existing file. If the file doesn't
357
- * exist the FTP server should create it.
358
- *
359
- * @param source Readable stream or path to a local file.
360
- * @param toRemotePath Path to a remote file to write to.
361
- */
362
- async appendFrom(source, toRemotePath, options = {}) {
363
- return this._uploadWithCommand(source, toRemotePath, "APPE", options);
364
- }
365
- /**
366
- * @protected
367
- */
368
- async _uploadWithCommand(source, remotePath, command, options) {
369
- if (typeof source === "string") {
370
- return this._uploadLocalFile(source, remotePath, command, options);
371
- }
372
- return this._uploadFromStream(source, remotePath, command);
373
- }
374
- /**
375
- * @protected
376
- */
377
- async _uploadLocalFile(localPath, remotePath, command, options) {
378
- const fd = await fsOpen(localPath, "r");
379
- const source = (0, fs_1.createReadStream)("", {
380
- fd,
381
- start: options.localStart,
382
- end: options.localEndInclusive,
383
- autoClose: false
384
- });
385
- try {
386
- return await this._uploadFromStream(source, remotePath, command);
387
- }
388
- finally {
389
- await ignoreError(() => fsClose(fd));
390
- }
391
- }
392
- /**
393
- * @protected
394
- */
395
- async _uploadFromStream(source, remotePath, command) {
396
- const onError = (err) => this.ftp.closeWithError(err);
397
- source.once("error", onError);
398
- try {
399
- const validPath = await this.protectWhitespace(remotePath);
400
- await this.prepareTransfer(this.ftp);
401
- // Keep the keyword `await` or the `finally` clause below runs too early
402
- // and removes the event listener for the source stream too early.
403
- return await (0, transfer_1.uploadFrom)(source, {
404
- ftp: this.ftp,
405
- tracker: this._progressTracker,
406
- command,
407
- remotePath: validPath,
408
- type: "upload"
409
- });
410
- }
411
- finally {
412
- source.removeListener("error", onError);
413
- }
414
- }
415
- /**
416
- * Download a remote file and pipe its data to a writable stream or to a local file.
417
- *
418
- * You can optionally define at which position of the remote file you'd like to start
419
- * downloading. If the destination you provide is a file, the offset will be applied
420
- * to it as well. For example: To resume a failed download, you'd request the size of
421
- * the local, partially downloaded file and use that as the offset. Assuming the size
422
- * is 23, you'd download the rest using `downloadTo("local.txt", "remote.txt", 23)`.
423
- *
424
- * @param destination Stream or path for a local file to write to.
425
- * @param fromRemotePath Path of the remote file to read from.
426
- * @param startAt Position within the remote file to start downloading at. If the destination is a file, this offset is also applied to it.
427
- */
428
- async downloadTo(destination, fromRemotePath, startAt = 0) {
429
- if (typeof destination === "string") {
430
- return this._downloadToFile(destination, fromRemotePath, startAt);
431
- }
432
- return this._downloadToStream(destination, fromRemotePath, startAt);
433
- }
434
- /**
435
- * @protected
436
- */
437
- async _downloadToFile(localPath, remotePath, startAt) {
438
- const appendingToLocalFile = startAt > 0;
439
- const fileSystemFlags = appendingToLocalFile ? "r+" : "w";
440
- const fd = await fsOpen(localPath, fileSystemFlags);
441
- const destination = (0, fs_1.createWriteStream)("", {
442
- fd,
443
- start: startAt,
444
- autoClose: false
445
- });
446
- try {
447
- return await this._downloadToStream(destination, remotePath, startAt);
448
- }
449
- catch (err) {
450
- const localFileStats = await ignoreError(() => fsStat(localPath));
451
- const hasDownloadedData = localFileStats && localFileStats.size > 0;
452
- const shouldRemoveLocalFile = !appendingToLocalFile && !hasDownloadedData;
453
- if (shouldRemoveLocalFile) {
454
- await ignoreError(() => fsUnlink(localPath));
455
- }
456
- throw err;
457
- }
458
- finally {
459
- await ignoreError(() => fsClose(fd));
460
- }
461
- }
462
- /**
463
- * @protected
464
- */
465
- async _downloadToStream(destination, remotePath, startAt) {
466
- const onError = (err) => this.ftp.closeWithError(err);
467
- destination.once("error", onError);
468
- try {
469
- const validPath = await this.protectWhitespace(remotePath);
470
- await this.prepareTransfer(this.ftp);
471
- // Keep the keyword `await` or the `finally` clause below runs too early
472
- // and removes the event listener for the source stream too early.
473
- return await (0, transfer_1.downloadTo)(destination, {
474
- ftp: this.ftp,
475
- tracker: this._progressTracker,
476
- command: startAt > 0 ? `REST ${startAt}` : `RETR ${validPath}`,
477
- remotePath: validPath,
478
- type: "download"
479
- });
480
- }
481
- finally {
482
- destination.removeListener("error", onError);
483
- destination.end();
484
- }
485
- }
486
- /**
487
- * List files and directories in the current working directory, or from `path` if specified.
488
- *
489
- * @param [path] Path to remote file or directory.
490
- */
491
- async list(path = "") {
492
- const validPath = await this.protectWhitespace(path);
493
- let lastError;
494
- for (const candidate of this.availableListCommands) {
495
- const command = validPath === "" ? candidate : `${candidate} ${validPath}`;
496
- await this.prepareTransfer(this.ftp);
497
- try {
498
- const parsedList = await this._requestListWithCommand(command);
499
- // Use successful candidate for all subsequent requests.
500
- this.availableListCommands = [candidate];
501
- return parsedList;
502
- }
503
- catch (err) {
504
- const shouldTryNext = err instanceof FtpContext_1.FTPError;
505
- if (!shouldTryNext) {
506
- throw err;
507
- }
508
- lastError = err;
509
- }
510
- }
511
- throw lastError;
512
- }
513
- /**
514
- * @protected
515
- */
516
- async _requestListWithCommand(command) {
517
- const buffer = new StringWriter_1.StringWriter();
518
- await (0, transfer_1.downloadTo)(buffer, {
519
- ftp: this.ftp,
520
- tracker: this._progressTracker,
521
- command,
522
- remotePath: "",
523
- type: "list"
524
- });
525
- const text = buffer.getText(this.ftp.encoding);
526
- this.ftp.log(text);
527
- return this.parseList(text);
528
- }
529
- /**
530
- * Remove a directory and all of its content.
531
- *
532
- * @param remoteDirPath The path of the remote directory to delete.
533
- * @example client.removeDir("foo") // Remove directory 'foo' using a relative path.
534
- * @example client.removeDir("foo/bar") // Remove directory 'bar' using a relative path.
535
- * @example client.removeDir("/foo/bar") // Remove directory 'bar' using an absolute path.
536
- * @example client.removeDir("/") // Remove everything.
537
- */
538
- async removeDir(remoteDirPath) {
539
- return this._exitAtCurrentDirectory(async () => {
540
- await this.cd(remoteDirPath);
541
- // Get the absolute path of the target because remoteDirPath might be a relative path, even `../` is possible.
542
- const absoluteDirPath = await this.pwd();
543
- await this.clearWorkingDir();
544
- const dirIsRoot = absoluteDirPath === "/";
545
- if (!dirIsRoot) {
546
- await this.cdup();
547
- await this.removeEmptyDir(absoluteDirPath);
548
- }
549
- });
550
- }
551
- /**
552
- * Remove all files and directories in the working directory without removing
553
- * the working directory itself.
554
- */
555
- async clearWorkingDir() {
556
- for (const file of await this.list()) {
557
- if (file.isDirectory) {
558
- await this.cd(file.name);
559
- await this.clearWorkingDir();
560
- await this.cdup();
561
- await this.removeEmptyDir(file.name);
562
- }
563
- else {
564
- await this.remove(file.name);
565
- }
566
- }
567
- }
568
- /**
569
- * Upload the contents of a local directory to the remote working directory.
570
- *
571
- * This will overwrite existing files with the same names and reuse existing directories.
572
- * Unrelated files and directories will remain untouched. You can optionally provide a `remoteDirPath`
573
- * to put the contents inside a directory which will be created if necessary including all
574
- * intermediate directories. If you did provide a remoteDirPath the working directory will stay
575
- * the same as before calling this method.
576
- *
577
- * @param localDirPath Local path, e.g. "foo/bar" or "../test"
578
- * @param [remoteDirPath] Remote path of a directory to upload to. Working directory if undefined.
579
- */
580
- async uploadFromDir(localDirPath, remoteDirPath) {
581
- return this._exitAtCurrentDirectory(async () => {
582
- if (remoteDirPath) {
583
- await this.ensureDir(remoteDirPath);
584
- }
585
- return await this._uploadToWorkingDir(localDirPath);
586
- });
587
- }
588
- /**
589
- * @protected
590
- */
591
- async _uploadToWorkingDir(localDirPath) {
592
- const files = await fsReadDir(localDirPath);
593
- for (const file of files) {
594
- const fullPath = (0, path_1.join)(localDirPath, file);
595
- const stats = await fsStat(fullPath);
596
- if (stats.isFile()) {
597
- await this.uploadFrom(fullPath, file);
598
- }
599
- else if (stats.isDirectory()) {
600
- await this._openDir(file);
601
- await this._uploadToWorkingDir(fullPath);
602
- await this.cdup();
603
- }
604
- }
605
- }
606
- /**
607
- * Download all files and directories of the working directory to a local directory.
608
- *
609
- * @param localDirPath The local directory to download to.
610
- * @param remoteDirPath Remote directory to download. Current working directory if not specified.
611
- */
612
- async downloadToDir(localDirPath, remoteDirPath) {
613
- return this._exitAtCurrentDirectory(async () => {
614
- if (remoteDirPath) {
615
- await this.cd(remoteDirPath);
616
- }
617
- return await this._downloadFromWorkingDir(localDirPath);
618
- });
619
- }
620
- /**
621
- * @protected
622
- */
623
- async _downloadFromWorkingDir(localDirPath) {
624
- await ensureLocalDirectory(localDirPath);
625
- for (const file of await this.list()) {
626
- const hasInvalidName = !file.name || (0, path_1.basename)(file.name) !== file.name;
627
- if (hasInvalidName) {
628
- const safeName = JSON.stringify(file.name);
629
- this.ftp.log(`Invalid filename from server listing, will skip file. (${safeName})`);
630
- continue;
631
- }
632
- const localPath = (0, path_1.join)(localDirPath, file.name);
633
- if (file.isDirectory) {
634
- await this.cd(file.name);
635
- await this._downloadFromWorkingDir(localPath);
636
- await this.cdup();
637
- }
638
- else if (file.isFile) {
639
- await this.downloadTo(localPath, file.name);
640
- }
641
- }
642
- }
643
- /**
644
- * Make sure a given remote path exists, creating all directories as necessary.
645
- * This function also changes the current working directory to the given path.
646
- */
647
- async ensureDir(remoteDirPath) {
648
- // If the remoteDirPath was absolute go to root directory.
649
- if (remoteDirPath.startsWith("/")) {
650
- await this.cd("/");
651
- }
652
- const names = remoteDirPath.split("/").filter(name => name !== "");
653
- for (const name of names) {
654
- await this._openDir(name);
655
- }
656
- }
657
- /**
658
- * Try to create a directory and enter it. This will not raise an exception if the directory
659
- * couldn't be created if for example it already exists.
660
- * @protected
661
- */
662
- async _openDir(dirName) {
663
- await this.sendIgnoringError("MKD " + dirName);
664
- await this.cd(dirName);
665
- }
666
- /**
667
- * Remove an empty directory, will fail if not empty.
668
- */
669
- async removeEmptyDir(path) {
670
- const validPath = await this.protectWhitespace(path);
671
- return this.send(`RMD ${validPath}`);
672
- }
673
- /**
674
- * FTP servers can't handle filenames that have leading whitespace. This method transforms
675
- * a given path to fix that issue for most cases.
676
- */
677
- async protectWhitespace(path) {
678
- if (!path.startsWith(" ")) {
679
- return path;
680
- }
681
- // Handle leading whitespace by prepending the absolute path:
682
- // " test.txt" while being in the root directory becomes "/ test.txt".
683
- const pwd = await this.pwd();
684
- const absolutePathPrefix = pwd.endsWith("/") ? pwd : pwd + "/";
685
- return absolutePathPrefix + path;
686
- }
687
- async _exitAtCurrentDirectory(func) {
688
- const userDir = await this.pwd();
689
- try {
690
- return await func();
691
- }
692
- finally {
693
- if (!this.closed) {
694
- await ignoreError(() => this.cd(userDir));
695
- }
696
- }
697
- }
698
- /**
699
- * Try all available transfer strategies and pick the first one that works. Update `client` to
700
- * use the working strategy for all successive transfer requests.
701
- *
702
- * @returns a function that will try the provided strategies.
703
- */
704
- _enterFirstCompatibleMode(strategies) {
705
- return async (ftp) => {
706
- ftp.log("Trying to find optimal transfer strategy...");
707
- let lastError = undefined;
708
- for (const strategy of strategies) {
709
- try {
710
- const res = await strategy(ftp);
711
- ftp.log("Optimal transfer strategy found.");
712
- this.prepareTransfer = strategy;
713
- return res;
714
- }
715
- catch (err) {
716
- // Try the next candidate no matter the exact error. It's possible that a server
717
- // answered incorrectly to a strategy, for example a PASV answer to an EPSV.
718
- lastError = err;
719
- }
720
- }
721
- throw new Error(`None of the available transfer strategies work. Last error response was '${lastError}'.`);
722
- };
723
- }
724
- /**
725
- * DEPRECATED, use `uploadFrom`.
726
- * @deprecated
727
- */
728
- async upload(source, toRemotePath, options = {}) {
729
- this.ftp.log("Warning: upload() has been deprecated, use uploadFrom().");
730
- return this.uploadFrom(source, toRemotePath, options);
731
- }
732
- /**
733
- * DEPRECATED, use `appendFrom`.
734
- * @deprecated
735
- */
736
- async append(source, toRemotePath, options = {}) {
737
- this.ftp.log("Warning: append() has been deprecated, use appendFrom().");
738
- return this.appendFrom(source, toRemotePath, options);
739
- }
740
- /**
741
- * DEPRECATED, use `downloadTo`.
742
- * @deprecated
743
- */
744
- async download(destination, fromRemotePath, startAt = 0) {
745
- this.ftp.log("Warning: download() has been deprecated, use downloadTo().");
746
- return this.downloadTo(destination, fromRemotePath, startAt);
747
- }
748
- /**
749
- * DEPRECATED, use `uploadFromDir`.
750
- * @deprecated
751
- */
752
- async uploadDir(localDirPath, remoteDirPath) {
753
- this.ftp.log("Warning: uploadDir() has been deprecated, use uploadFromDir().");
754
- return this.uploadFromDir(localDirPath, remoteDirPath);
755
- }
756
- /**
757
- * DEPRECATED, use `downloadToDir`.
758
- * @deprecated
759
- */
760
- async downloadDir(localDirPath) {
761
- this.ftp.log("Warning: downloadDir() has been deprecated, use downloadToDir().");
762
- return this.downloadToDir(localDirPath);
763
- }
764
- }
765
- exports.Client = Client;
766
- async function ensureLocalDirectory(path) {
767
- try {
768
- await fsStat(path);
769
- }
770
- catch (_a) {
771
- await fsMkDir(path, { recursive: true });
772
- }
773
- }
774
- async function ignoreError(func) {
775
- try {
776
- return await func();
777
- }
778
- catch (_a) {
779
- // Ignore
780
- return undefined;
781
- }
782
- }