blockmine 1.0.0 → 1.0.1

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 (507) hide show
  1. package/README.md +6 -3
  2. package/backend/.env +7 -0
  3. package/backend/node_modules/.bin/blockminejs +16 -0
  4. package/backend/node_modules/.bin/blockminejs.cmd +17 -0
  5. package/backend/node_modules/.bin/blockminejs.ps1 +28 -0
  6. package/backend/node_modules/.bin/nodemon +16 -0
  7. package/backend/node_modules/.bin/nodemon.cmd +17 -0
  8. package/backend/node_modules/.bin/nodemon.ps1 +28 -0
  9. package/backend/node_modules/.bin/nodetouch +16 -0
  10. package/backend/node_modules/.bin/nodetouch.cmd +17 -0
  11. package/backend/node_modules/.bin/nodetouch.ps1 +28 -0
  12. package/backend/node_modules/.bin/prisma +16 -0
  13. package/backend/node_modules/.bin/prisma.cmd +17 -0
  14. package/backend/node_modules/.bin/prisma.ps1 +28 -0
  15. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  16. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
  17. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
  18. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  19. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
  20. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
  21. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
  22. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +1 -0
  23. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +1 -0
  24. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
  25. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +1 -0
  26. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +1 -0
  27. package/backend/node_modules/.package-lock.json +2521 -0
  28. package/backend/node_modules/.prisma/client/client.d.ts +1 -0
  29. package/backend/node_modules/.prisma/client/client.js +4 -0
  30. package/backend/node_modules/.prisma/client/default.d.ts +1 -0
  31. package/backend/node_modules/.prisma/client/default.js +1 -0
  32. package/backend/node_modules/.prisma/client/deno/edge.d.ts +9 -0
  33. package/backend/node_modules/.prisma/client/edge.d.ts +1 -0
  34. package/backend/node_modules/.prisma/client/edge.js +263 -0
  35. package/backend/node_modules/.prisma/client/index-browser.js +258 -0
  36. package/backend/node_modules/.prisma/client/index.d.ts +15548 -0
  37. package/backend/node_modules/.prisma/client/index.js +286 -0
  38. package/backend/node_modules/.prisma/client/package.json +97 -0
  39. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
  40. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
  41. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
  42. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
  43. package/backend/node_modules/.prisma/client/schema.prisma +136 -0
  44. package/backend/node_modules/.prisma/client/wasm.d.ts +1 -0
  45. package/backend/node_modules/.prisma/client/wasm.js +258 -0
  46. package/backend/node_modules/@prisma/debug/LICENSE +201 -0
  47. package/backend/node_modules/@prisma/debug/README.md +29 -0
  48. package/backend/node_modules/@prisma/debug/dist/index.d.ts +35 -0
  49. package/backend/node_modules/@prisma/debug/dist/index.js +236 -0
  50. package/backend/node_modules/@prisma/debug/dist/util.d.ts +2 -0
  51. package/backend/node_modules/@prisma/debug/dist/util.js +74 -0
  52. package/backend/node_modules/@prisma/debug/package.json +37 -0
  53. package/backend/node_modules/@prisma/engines/LICENSE +201 -0
  54. package/backend/node_modules/@prisma/engines/README.md +13 -0
  55. package/backend/node_modules/@prisma/engines/dist/index.d.ts +18 -0
  56. package/backend/node_modules/@prisma/engines/dist/index.js +113 -0
  57. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +1 -0
  58. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +2048 -0
  59. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +1 -0
  60. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +128 -0
  61. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  62. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
  63. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
  64. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  65. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
  66. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
  67. package/backend/node_modules/@prisma/engines/package.json +41 -0
  68. package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
  69. package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
  70. package/backend/node_modules/@prisma/engines/scripts/postinstall.js +28 -0
  71. package/backend/node_modules/@prisma/engines-version/LICENSE +201 -0
  72. package/backend/node_modules/@prisma/engines-version/README.md +8 -0
  73. package/backend/node_modules/@prisma/engines-version/index.d.ts +1 -0
  74. package/backend/node_modules/@prisma/engines-version/index.js +5 -0
  75. package/backend/node_modules/@prisma/engines-version/package.json +27 -0
  76. package/backend/node_modules/@prisma/fetch-engine/LICENSE +201 -0
  77. package/backend/node_modules/@prisma/fetch-engine/README.md +8 -0
  78. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +5 -0
  79. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +25 -0
  80. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +1 -0
  81. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +25 -0
  82. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +2385 -0
  83. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +161 -0
  84. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +66 -0
  85. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +49 -0
  86. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +2457 -0
  87. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +1404 -0
  88. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +2385 -0
  89. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +44 -0
  90. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +159 -0
  91. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +8153 -0
  92. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +70 -0
  93. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +2786 -0
  94. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +4232 -0
  95. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +29 -0
  96. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +1 -0
  97. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +28 -0
  98. package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +27 -0
  99. package/backend/node_modules/@prisma/fetch-engine/dist/download.js +41 -0
  100. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +6 -0
  101. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +30 -0
  102. package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +14 -0
  103. package/backend/node_modules/@prisma/fetch-engine/dist/env.js +29 -0
  104. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +1 -0
  105. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +25 -0
  106. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +3 -0
  107. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +25 -0
  108. package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +5 -0
  109. package/backend/node_modules/@prisma/fetch-engine/dist/index.js +49 -0
  110. package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +2 -0
  111. package/backend/node_modules/@prisma/fetch-engine/dist/log.js +25 -0
  112. package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +371 -0
  113. package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +11 -0
  114. package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +29 -0
  115. package/backend/node_modules/@prisma/fetch-engine/package.json +59 -0
  116. package/backend/node_modules/@prisma/get-platform/LICENSE +201 -0
  117. package/backend/node_modules/@prisma/get-platform/README.md +16 -0
  118. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +4 -0
  119. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +25 -0
  120. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +2 -0
  121. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +26 -0
  122. package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +67 -0
  123. package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +34 -0
  124. package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +1 -0
  125. package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +62 -0
  126. package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +53 -0
  127. package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +367 -0
  128. package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +41 -0
  129. package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +14956 -0
  130. package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +43 -0
  131. package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +580 -0
  132. package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +70 -0
  133. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +8 -0
  134. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +25 -0
  135. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +105 -0
  136. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +38 -0
  137. package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +7 -0
  138. package/backend/node_modules/@prisma/get-platform/dist/index.js +43 -0
  139. package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +1 -0
  140. package/backend/node_modules/@prisma/get-platform/dist/link.js +26 -0
  141. package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +8 -0
  142. package/backend/node_modules/@prisma/get-platform/dist/logger.js +29 -0
  143. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +8 -0
  144. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +27 -0
  145. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +1 -0
  146. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +28 -0
  147. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +108 -0
  148. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +27 -0
  149. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +205 -0
  150. package/backend/node_modules/@prisma/get-platform/package.json +49 -0
  151. package/backend/node_modules/anymatch/LICENSE +15 -0
  152. package/backend/node_modules/anymatch/README.md +87 -0
  153. package/backend/node_modules/anymatch/index.d.ts +20 -0
  154. package/backend/node_modules/anymatch/index.js +104 -0
  155. package/backend/node_modules/anymatch/package.json +48 -0
  156. package/backend/node_modules/binary-extensions/binary-extensions.json +263 -0
  157. package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
  158. package/backend/node_modules/binary-extensions/index.d.ts +14 -0
  159. package/backend/node_modules/binary-extensions/index.js +1 -0
  160. package/backend/node_modules/binary-extensions/license +10 -0
  161. package/backend/node_modules/binary-extensions/package.json +40 -0
  162. package/backend/node_modules/binary-extensions/readme.md +25 -0
  163. package/backend/node_modules/brace-expansion/LICENSE +21 -0
  164. package/backend/node_modules/brace-expansion/README.md +129 -0
  165. package/backend/node_modules/brace-expansion/index.js +201 -0
  166. package/backend/node_modules/brace-expansion/package.json +47 -0
  167. package/backend/node_modules/braces/LICENSE +21 -0
  168. package/backend/node_modules/braces/README.md +586 -0
  169. package/backend/node_modules/braces/index.js +170 -0
  170. package/backend/node_modules/braces/lib/compile.js +60 -0
  171. package/backend/node_modules/braces/lib/constants.js +57 -0
  172. package/backend/node_modules/braces/lib/expand.js +113 -0
  173. package/backend/node_modules/braces/lib/parse.js +331 -0
  174. package/backend/node_modules/braces/lib/stringify.js +32 -0
  175. package/backend/node_modules/braces/lib/utils.js +122 -0
  176. package/backend/node_modules/braces/package.json +77 -0
  177. package/backend/node_modules/chokidar/LICENSE +21 -0
  178. package/backend/node_modules/chokidar/README.md +308 -0
  179. package/backend/node_modules/chokidar/index.js +973 -0
  180. package/backend/node_modules/chokidar/lib/constants.js +66 -0
  181. package/backend/node_modules/chokidar/lib/fsevents-handler.js +526 -0
  182. package/backend/node_modules/chokidar/lib/nodefs-handler.js +654 -0
  183. package/backend/node_modules/chokidar/package.json +70 -0
  184. package/backend/node_modules/chokidar/types/index.d.ts +192 -0
  185. package/backend/node_modules/concat-map/.travis.yml +4 -0
  186. package/backend/node_modules/concat-map/LICENSE +18 -0
  187. package/backend/node_modules/concat-map/README.markdown +62 -0
  188. package/backend/node_modules/concat-map/example/map.js +6 -0
  189. package/backend/node_modules/concat-map/index.js +13 -0
  190. package/backend/node_modules/concat-map/package.json +43 -0
  191. package/backend/node_modules/concat-map/test/map.js +39 -0
  192. package/backend/node_modules/debug/LICENSE +20 -0
  193. package/backend/node_modules/debug/README.md +481 -0
  194. package/backend/node_modules/debug/package.json +64 -0
  195. package/backend/node_modules/debug/src/browser.js +272 -0
  196. package/backend/node_modules/debug/src/common.js +292 -0
  197. package/backend/node_modules/debug/src/index.js +10 -0
  198. package/backend/node_modules/debug/src/node.js +263 -0
  199. package/backend/node_modules/fill-range/LICENSE +21 -0
  200. package/backend/node_modules/fill-range/README.md +237 -0
  201. package/backend/node_modules/fill-range/index.js +248 -0
  202. package/backend/node_modules/fill-range/package.json +74 -0
  203. package/backend/node_modules/glob-parent/CHANGELOG.md +110 -0
  204. package/backend/node_modules/glob-parent/LICENSE +15 -0
  205. package/backend/node_modules/glob-parent/README.md +137 -0
  206. package/backend/node_modules/glob-parent/index.js +42 -0
  207. package/backend/node_modules/glob-parent/package.json +48 -0
  208. package/backend/node_modules/has-flag/index.js +8 -0
  209. package/backend/node_modules/has-flag/license +9 -0
  210. package/backend/node_modules/has-flag/package.json +44 -0
  211. package/backend/node_modules/has-flag/readme.md +70 -0
  212. package/backend/node_modules/ignore-by-default/LICENSE +14 -0
  213. package/backend/node_modules/ignore-by-default/README.md +26 -0
  214. package/backend/node_modules/ignore-by-default/index.js +12 -0
  215. package/backend/node_modules/ignore-by-default/package.json +34 -0
  216. package/backend/node_modules/is-binary-path/index.d.ts +17 -0
  217. package/backend/node_modules/is-binary-path/index.js +7 -0
  218. package/backend/node_modules/is-binary-path/license +9 -0
  219. package/backend/node_modules/is-binary-path/package.json +40 -0
  220. package/backend/node_modules/is-binary-path/readme.md +34 -0
  221. package/backend/node_modules/is-extglob/LICENSE +21 -0
  222. package/backend/node_modules/is-extglob/README.md +107 -0
  223. package/backend/node_modules/is-extglob/index.js +20 -0
  224. package/backend/node_modules/is-extglob/package.json +69 -0
  225. package/backend/node_modules/is-glob/LICENSE +21 -0
  226. package/backend/node_modules/is-glob/README.md +206 -0
  227. package/backend/node_modules/is-glob/index.js +150 -0
  228. package/backend/node_modules/is-glob/package.json +81 -0
  229. package/backend/node_modules/is-number/LICENSE +21 -0
  230. package/backend/node_modules/is-number/README.md +187 -0
  231. package/backend/node_modules/is-number/index.js +18 -0
  232. package/backend/node_modules/is-number/package.json +82 -0
  233. package/backend/node_modules/minimatch/LICENSE +15 -0
  234. package/backend/node_modules/minimatch/README.md +230 -0
  235. package/backend/node_modules/minimatch/minimatch.js +947 -0
  236. package/backend/node_modules/minimatch/package.json +33 -0
  237. package/backend/node_modules/ms/index.js +162 -0
  238. package/backend/node_modules/ms/license.md +21 -0
  239. package/backend/node_modules/ms/package.json +38 -0
  240. package/backend/node_modules/ms/readme.md +59 -0
  241. package/backend/node_modules/nodemon/.prettierrc.json +3 -0
  242. package/backend/node_modules/nodemon/LICENSE +21 -0
  243. package/backend/node_modules/nodemon/README.md +441 -0
  244. package/backend/node_modules/nodemon/bin/nodemon.js +16 -0
  245. package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
  246. package/backend/node_modules/nodemon/doc/cli/authors.txt +8 -0
  247. package/backend/node_modules/nodemon/doc/cli/config.txt +44 -0
  248. package/backend/node_modules/nodemon/doc/cli/help.txt +29 -0
  249. package/backend/node_modules/nodemon/doc/cli/logo.txt +20 -0
  250. package/backend/node_modules/nodemon/doc/cli/options.txt +36 -0
  251. package/backend/node_modules/nodemon/doc/cli/topics.txt +8 -0
  252. package/backend/node_modules/nodemon/doc/cli/usage.txt +3 -0
  253. package/backend/node_modules/nodemon/doc/cli/whoami.txt +9 -0
  254. package/backend/node_modules/nodemon/index.d.ts +125 -0
  255. package/backend/node_modules/nodemon/jsconfig.json +7 -0
  256. package/backend/node_modules/nodemon/lib/cli/index.js +49 -0
  257. package/backend/node_modules/nodemon/lib/cli/parse.js +230 -0
  258. package/backend/node_modules/nodemon/lib/config/command.js +43 -0
  259. package/backend/node_modules/nodemon/lib/config/defaults.js +34 -0
  260. package/backend/node_modules/nodemon/lib/config/exec.js +234 -0
  261. package/backend/node_modules/nodemon/lib/config/index.js +93 -0
  262. package/backend/node_modules/nodemon/lib/config/load.js +225 -0
  263. package/backend/node_modules/nodemon/lib/help/index.js +27 -0
  264. package/backend/node_modules/nodemon/lib/index.js +1 -0
  265. package/backend/node_modules/nodemon/lib/monitor/index.js +4 -0
  266. package/backend/node_modules/nodemon/lib/monitor/match.js +287 -0
  267. package/backend/node_modules/nodemon/lib/monitor/run.js +562 -0
  268. package/backend/node_modules/nodemon/lib/monitor/signals.js +34 -0
  269. package/backend/node_modules/nodemon/lib/monitor/watch.js +244 -0
  270. package/backend/node_modules/nodemon/lib/nodemon.js +317 -0
  271. package/backend/node_modules/nodemon/lib/rules/add.js +89 -0
  272. package/backend/node_modules/nodemon/lib/rules/index.js +53 -0
  273. package/backend/node_modules/nodemon/lib/rules/parse.js +43 -0
  274. package/backend/node_modules/nodemon/lib/spawn.js +74 -0
  275. package/backend/node_modules/nodemon/lib/utils/bus.js +44 -0
  276. package/backend/node_modules/nodemon/lib/utils/clone.js +40 -0
  277. package/backend/node_modules/nodemon/lib/utils/colour.js +26 -0
  278. package/backend/node_modules/nodemon/lib/utils/index.js +103 -0
  279. package/backend/node_modules/nodemon/lib/utils/log.js +82 -0
  280. package/backend/node_modules/nodemon/lib/utils/merge.js +47 -0
  281. package/backend/node_modules/nodemon/lib/version.js +100 -0
  282. package/backend/node_modules/nodemon/package.json +75 -0
  283. package/backend/node_modules/picomatch/CHANGELOG.md +136 -0
  284. package/backend/node_modules/picomatch/LICENSE +21 -0
  285. package/backend/node_modules/picomatch/README.md +708 -0
  286. package/backend/node_modules/picomatch/index.js +3 -0
  287. package/backend/node_modules/picomatch/lib/constants.js +179 -0
  288. package/backend/node_modules/picomatch/lib/parse.js +1091 -0
  289. package/backend/node_modules/picomatch/lib/picomatch.js +342 -0
  290. package/backend/node_modules/picomatch/lib/scan.js +391 -0
  291. package/backend/node_modules/picomatch/lib/utils.js +64 -0
  292. package/backend/node_modules/picomatch/package.json +81 -0
  293. package/backend/node_modules/prisma/LICENSE +201 -0
  294. package/backend/node_modules/prisma/README.md +84 -0
  295. package/backend/node_modules/prisma/build/child.js +82915 -0
  296. package/backend/node_modules/prisma/build/index.js +2591 -0
  297. package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
  298. package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +5 -0
  299. package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +4 -0
  300. package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +4 -0
  301. package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +3 -0
  302. package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +11 -0
  303. package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +4 -0
  304. package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +4 -0
  305. package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +10 -0
  306. package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +6 -0
  307. package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +6 -0
  308. package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +4 -0
  309. package/backend/node_modules/prisma/build/public/assets/index.js +1 -0
  310. package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
  311. package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
  312. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
  313. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
  314. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
  315. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
  316. package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
  317. package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
  318. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
  319. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
  320. package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
  321. package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
  322. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
  323. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
  324. package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
  325. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
  326. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
  327. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
  328. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
  329. package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +4 -0
  330. package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +7 -0
  331. package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +5 -0
  332. package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +6 -0
  333. package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +4 -0
  334. package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +4 -0
  335. package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +7 -0
  336. package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +8 -0
  337. package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +4 -0
  338. package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +3 -0
  339. package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +4 -0
  340. package/backend/node_modules/prisma/build/public/assets/vendor.js +385 -0
  341. package/backend/node_modules/prisma/build/public/favicon.svg +5 -0
  342. package/backend/node_modules/prisma/build/public/http/databrowser.js +1 -0
  343. package/backend/node_modules/prisma/build/public/http/splash.js +1 -0
  344. package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
  345. package/backend/node_modules/prisma/build/public/index.css +1 -0
  346. package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +21 -0
  347. package/backend/node_modules/prisma/build/public/pages/http/splash.html +21 -0
  348. package/backend/node_modules/prisma/build/xdg-open +1066 -0
  349. package/backend/node_modules/prisma/package.json +136 -0
  350. package/backend/node_modules/prisma/preinstall/index.js +7 -0
  351. package/backend/node_modules/prisma/prisma-client/README.md +27 -0
  352. package/backend/node_modules/prisma/prisma-client/default.d.ts +1 -0
  353. package/backend/node_modules/prisma/prisma-client/default.js +3 -0
  354. package/backend/node_modules/prisma/prisma-client/edge.d.ts +1 -0
  355. package/backend/node_modules/prisma/prisma-client/edge.js +4 -0
  356. package/backend/node_modules/prisma/prisma-client/extension.d.ts +1 -0
  357. package/backend/node_modules/prisma/prisma-client/extension.js +4 -0
  358. package/backend/node_modules/prisma/prisma-client/generator-build/index.js +10351 -0
  359. package/backend/node_modules/prisma/prisma-client/index-browser.js +3 -0
  360. package/backend/node_modules/prisma/prisma-client/index.d.ts +1 -0
  361. package/backend/node_modules/prisma/prisma-client/index.js +4 -0
  362. package/backend/node_modules/prisma/prisma-client/package.json +281 -0
  363. package/backend/node_modules/prisma/prisma-client/react-native.d.ts +1 -0
  364. package/backend/node_modules/prisma/prisma-client/react-native.js +3 -0
  365. package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +1 -0
  366. package/backend/node_modules/prisma/prisma-client/runtime/binary.js +210 -0
  367. package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +31 -0
  368. package/backend/node_modules/prisma/prisma-client/runtime/edge.js +31 -0
  369. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +365 -0
  370. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +13 -0
  371. package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +3403 -0
  372. package/backend/node_modules/prisma/prisma-client/runtime/library.js +143 -0
  373. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +2 -0
  374. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +2 -0
  375. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +2 -0
  376. package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +3403 -0
  377. package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +80 -0
  378. package/backend/node_modules/prisma/prisma-client/scripts/colors.js +176 -0
  379. package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +9 -0
  380. package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +110 -0
  381. package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +65 -0
  382. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +5 -0
  383. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +410 -0
  384. package/backend/node_modules/prisma/prisma-client/sql.d.ts +1 -0
  385. package/backend/node_modules/prisma/prisma-client/sql.js +4 -0
  386. package/backend/node_modules/prisma/prisma-client/sql.mjs +1 -0
  387. package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
  388. package/backend/node_modules/prisma/scripts/preinstall-entry.js +10 -0
  389. package/backend/node_modules/pstree.remy/.travis.yml +8 -0
  390. package/backend/node_modules/pstree.remy/LICENSE +7 -0
  391. package/backend/node_modules/pstree.remy/README.md +26 -0
  392. package/backend/node_modules/pstree.remy/lib/index.js +37 -0
  393. package/backend/node_modules/pstree.remy/lib/tree.js +37 -0
  394. package/backend/node_modules/pstree.remy/lib/utils.js +53 -0
  395. package/backend/node_modules/pstree.remy/package.json +33 -0
  396. package/backend/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
  397. package/backend/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
  398. package/backend/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
  399. package/backend/node_modules/pstree.remy/tests/index.test.js +51 -0
  400. package/backend/node_modules/readdirp/LICENSE +21 -0
  401. package/backend/node_modules/readdirp/README.md +122 -0
  402. package/backend/node_modules/readdirp/index.d.ts +43 -0
  403. package/backend/node_modules/readdirp/index.js +287 -0
  404. package/backend/node_modules/readdirp/package.json +122 -0
  405. package/backend/node_modules/simple-update-notifier/LICENSE +21 -0
  406. package/backend/node_modules/simple-update-notifier/README.md +82 -0
  407. package/backend/node_modules/simple-update-notifier/build/index.d.ts +13 -0
  408. package/backend/node_modules/simple-update-notifier/build/index.js +210 -0
  409. package/backend/node_modules/simple-update-notifier/package.json +100 -0
  410. package/backend/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
  411. package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
  412. package/backend/node_modules/simple-update-notifier/src/cache.ts +44 -0
  413. package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
  414. package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
  415. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
  416. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
  417. package/backend/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
  418. package/backend/node_modules/simple-update-notifier/src/index.ts +34 -0
  419. package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
  420. package/backend/node_modules/simple-update-notifier/src/types.ts +8 -0
  421. package/backend/node_modules/supports-color/browser.js +5 -0
  422. package/backend/node_modules/supports-color/index.js +131 -0
  423. package/backend/node_modules/supports-color/license +9 -0
  424. package/backend/node_modules/supports-color/package.json +53 -0
  425. package/backend/node_modules/supports-color/readme.md +66 -0
  426. package/backend/node_modules/to-regex-range/LICENSE +21 -0
  427. package/backend/node_modules/to-regex-range/README.md +305 -0
  428. package/backend/node_modules/to-regex-range/index.js +288 -0
  429. package/backend/node_modules/to-regex-range/package.json +88 -0
  430. package/backend/node_modules/touch/LICENSE +15 -0
  431. package/backend/node_modules/touch/README.md +52 -0
  432. package/backend/node_modules/touch/bin/nodetouch.js +112 -0
  433. package/backend/node_modules/touch/index.js +224 -0
  434. package/backend/node_modules/touch/package.json +25 -0
  435. package/backend/node_modules/undefsafe/.github/workflows/release.yml +25 -0
  436. package/backend/node_modules/undefsafe/.jscsrc +13 -0
  437. package/backend/node_modules/undefsafe/.jshintrc +16 -0
  438. package/backend/node_modules/undefsafe/.travis.yml +18 -0
  439. package/backend/node_modules/undefsafe/LICENSE +22 -0
  440. package/backend/node_modules/undefsafe/README.md +63 -0
  441. package/backend/node_modules/undefsafe/example.js +14 -0
  442. package/backend/node_modules/undefsafe/lib/undefsafe.js +125 -0
  443. package/backend/node_modules/undefsafe/package.json +34 -0
  444. package/backend/package.json +1 -14
  445. package/backend/prisma/dev.db +0 -0
  446. package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +59 -0
  447. package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +23 -0
  448. package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +66 -0
  449. package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +20 -0
  450. package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +81 -0
  451. package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +46 -0
  452. package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +14 -0
  453. package/backend/storage/plugins/bot_1/clan-role-manager/README.md +64 -0
  454. package/backend/storage/plugins/bot_1/clan-role-manager/index.js +98 -0
  455. package/backend/storage/plugins/bot_1/clan-role-manager/package.json +13 -0
  456. package/backend/storage/plugins/bot_1/clan-welcome/index.js +32 -0
  457. package/backend/storage/plugins/bot_1/clan-welcome/package.json +22 -0
  458. package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +12 -0
  459. package/backend/storage/plugins/bot_1/parser-keksik/README.md +65 -0
  460. package/backend/storage/plugins/bot_1/parser-keksik/index.js +135 -0
  461. package/backend/storage/plugins/bot_1/parser-keksik/package.json +40 -0
  462. package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +35 -0
  463. package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +18 -0
  464. package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +12 -0
  465. package/backend/storage/plugins/bot_2/parser-keksik/README.md +65 -0
  466. package/backend/storage/plugins/bot_2/parser-keksik/index.js +135 -0
  467. package/backend/storage/plugins/bot_2/parser-keksik/package.json +40 -0
  468. package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +66 -0
  469. package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +20 -0
  470. package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +81 -0
  471. package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +46 -0
  472. package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +14 -0
  473. package/backend/storage/plugins/bot_3/clan-welcome/index.js +32 -0
  474. package/backend/storage/plugins/bot_3/clan-welcome/package.json +22 -0
  475. package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +12 -0
  476. package/backend/storage/plugins/bot_3/parser-keksik/README.md +65 -0
  477. package/backend/storage/plugins/bot_3/parser-keksik/index.js +135 -0
  478. package/backend/storage/plugins/bot_3/parser-keksik/package.json +40 -0
  479. package/backend/storage/plugins/bot_4/fly-keksik/index.js +111 -0
  480. package/backend/storage/plugins/bot_4/fly-keksik/package.json +59 -0
  481. package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +12 -0
  482. package/backend/storage/plugins/bot_4/parser-keksik/README.md +65 -0
  483. package/backend/storage/plugins/bot_4/parser-keksik/index.js +135 -0
  484. package/backend/storage/plugins/bot_4/parser-keksik/package.json +40 -0
  485. package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +66 -0
  486. package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +20 -0
  487. package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +12 -0
  488. package/backend/storage/plugins/bot_5/parser-keksik/README.md +65 -0
  489. package/backend/storage/plugins/bot_5/parser-keksik/index.js +117 -0
  490. package/backend/storage/plugins/bot_5/parser-keksik/package.json +40 -0
  491. package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +81 -0
  492. package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +46 -0
  493. package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +14 -0
  494. package/backend/storage/plugins/bot_6/clan-welcome/index.js +32 -0
  495. package/backend/storage/plugins/bot_6/clan-welcome/package.json +22 -0
  496. package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +12 -0
  497. package/backend/storage/plugins/bot_6/parser-keksik/README.md +65 -0
  498. package/backend/storage/plugins/bot_6/parser-keksik/index.js +135 -0
  499. package/backend/storage/plugins/bot_6/parser-keksik/package.json +40 -0
  500. package/package.json +29 -4
  501. package/frontend/package.json +0 -65
  502. package/image/1.png +0 -0
  503. package/image/2.png +0 -0
  504. package/image/3.png +0 -0
  505. package/image/logo.png +0 -0
  506. package/tailwind.config.js +0 -0
  507. package/vite.config.js +0 -0
@@ -0,0 +1,1404 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var chunk_KDPLGCY6_exports = {};
30
+ __export(chunk_KDPLGCY6_exports, {
31
+ getProxyAgent: () => getProxyAgent
32
+ });
33
+ module.exports = __toCommonJS(chunk_KDPLGCY6_exports);
34
+ var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
35
+ var import_debug = __toESM(require("@prisma/debug"));
36
+ var import_url = __toESM(require("url"));
37
+ var require_ms = (0, import_chunk_AH6QHEOA.__commonJS)({
38
+ "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
39
+ "use strict";
40
+ var s = 1e3;
41
+ var m = s * 60;
42
+ var h = m * 60;
43
+ var d = h * 24;
44
+ var w = d * 7;
45
+ var y = d * 365.25;
46
+ module2.exports = function(val, options) {
47
+ options = options || {};
48
+ var type = typeof val;
49
+ if (type === "string" && val.length > 0) {
50
+ return parse(val);
51
+ } else if (type === "number" && isFinite(val)) {
52
+ return options.long ? fmtLong(val) : fmtShort(val);
53
+ }
54
+ throw new Error(
55
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
56
+ );
57
+ };
58
+ function parse(str) {
59
+ str = String(str);
60
+ if (str.length > 100) {
61
+ return;
62
+ }
63
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
64
+ str
65
+ );
66
+ if (!match) {
67
+ return;
68
+ }
69
+ var n = parseFloat(match[1]);
70
+ var type = (match[2] || "ms").toLowerCase();
71
+ switch (type) {
72
+ case "years":
73
+ case "year":
74
+ case "yrs":
75
+ case "yr":
76
+ case "y":
77
+ return n * y;
78
+ case "weeks":
79
+ case "week":
80
+ case "w":
81
+ return n * w;
82
+ case "days":
83
+ case "day":
84
+ case "d":
85
+ return n * d;
86
+ case "hours":
87
+ case "hour":
88
+ case "hrs":
89
+ case "hr":
90
+ case "h":
91
+ return n * h;
92
+ case "minutes":
93
+ case "minute":
94
+ case "mins":
95
+ case "min":
96
+ case "m":
97
+ return n * m;
98
+ case "seconds":
99
+ case "second":
100
+ case "secs":
101
+ case "sec":
102
+ case "s":
103
+ return n * s;
104
+ case "milliseconds":
105
+ case "millisecond":
106
+ case "msecs":
107
+ case "msec":
108
+ case "ms":
109
+ return n;
110
+ default:
111
+ return void 0;
112
+ }
113
+ }
114
+ function fmtShort(ms) {
115
+ var msAbs = Math.abs(ms);
116
+ if (msAbs >= d) {
117
+ return Math.round(ms / d) + "d";
118
+ }
119
+ if (msAbs >= h) {
120
+ return Math.round(ms / h) + "h";
121
+ }
122
+ if (msAbs >= m) {
123
+ return Math.round(ms / m) + "m";
124
+ }
125
+ if (msAbs >= s) {
126
+ return Math.round(ms / s) + "s";
127
+ }
128
+ return ms + "ms";
129
+ }
130
+ function fmtLong(ms) {
131
+ var msAbs = Math.abs(ms);
132
+ if (msAbs >= d) {
133
+ return plural(ms, msAbs, d, "day");
134
+ }
135
+ if (msAbs >= h) {
136
+ return plural(ms, msAbs, h, "hour");
137
+ }
138
+ if (msAbs >= m) {
139
+ return plural(ms, msAbs, m, "minute");
140
+ }
141
+ if (msAbs >= s) {
142
+ return plural(ms, msAbs, s, "second");
143
+ }
144
+ return ms + " ms";
145
+ }
146
+ function plural(ms, msAbs, n, name) {
147
+ var isPlural = msAbs >= n * 1.5;
148
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
149
+ }
150
+ }
151
+ });
152
+ var require_common = (0, import_chunk_AH6QHEOA.__commonJS)({
153
+ "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/common.js"(exports, module2) {
154
+ "use strict";
155
+ function setup(env) {
156
+ createDebug.debug = createDebug;
157
+ createDebug.default = createDebug;
158
+ createDebug.coerce = coerce;
159
+ createDebug.disable = disable;
160
+ createDebug.enable = enable;
161
+ createDebug.enabled = enabled;
162
+ createDebug.humanize = require_ms();
163
+ createDebug.destroy = destroy;
164
+ Object.keys(env).forEach((key) => {
165
+ createDebug[key] = env[key];
166
+ });
167
+ createDebug.names = [];
168
+ createDebug.skips = [];
169
+ createDebug.formatters = {};
170
+ function selectColor(namespace) {
171
+ let hash = 0;
172
+ for (let i = 0; i < namespace.length; i++) {
173
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
174
+ hash |= 0;
175
+ }
176
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
177
+ }
178
+ createDebug.selectColor = selectColor;
179
+ function createDebug(namespace) {
180
+ let prevTime;
181
+ let enableOverride = null;
182
+ let namespacesCache;
183
+ let enabledCache;
184
+ function debug2(...args) {
185
+ if (!debug2.enabled) {
186
+ return;
187
+ }
188
+ const self = debug2;
189
+ const curr = Number(/* @__PURE__ */ new Date());
190
+ const ms = curr - (prevTime || curr);
191
+ self.diff = ms;
192
+ self.prev = prevTime;
193
+ self.curr = curr;
194
+ prevTime = curr;
195
+ args[0] = createDebug.coerce(args[0]);
196
+ if (typeof args[0] !== "string") {
197
+ args.unshift("%O");
198
+ }
199
+ let index = 0;
200
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
201
+ if (match === "%%") {
202
+ return "%";
203
+ }
204
+ index++;
205
+ const formatter = createDebug.formatters[format];
206
+ if (typeof formatter === "function") {
207
+ const val = args[index];
208
+ match = formatter.call(self, val);
209
+ args.splice(index, 1);
210
+ index--;
211
+ }
212
+ return match;
213
+ });
214
+ createDebug.formatArgs.call(self, args);
215
+ const logFn = self.log || createDebug.log;
216
+ logFn.apply(self, args);
217
+ }
218
+ debug2.namespace = namespace;
219
+ debug2.useColors = createDebug.useColors();
220
+ debug2.color = createDebug.selectColor(namespace);
221
+ debug2.extend = extend;
222
+ debug2.destroy = createDebug.destroy;
223
+ Object.defineProperty(debug2, "enabled", {
224
+ enumerable: true,
225
+ configurable: false,
226
+ get: () => {
227
+ if (enableOverride !== null) {
228
+ return enableOverride;
229
+ }
230
+ if (namespacesCache !== createDebug.namespaces) {
231
+ namespacesCache = createDebug.namespaces;
232
+ enabledCache = createDebug.enabled(namespace);
233
+ }
234
+ return enabledCache;
235
+ },
236
+ set: (v) => {
237
+ enableOverride = v;
238
+ }
239
+ });
240
+ if (typeof createDebug.init === "function") {
241
+ createDebug.init(debug2);
242
+ }
243
+ return debug2;
244
+ }
245
+ function extend(namespace, delimiter) {
246
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
247
+ newDebug.log = this.log;
248
+ return newDebug;
249
+ }
250
+ function enable(namespaces) {
251
+ createDebug.save(namespaces);
252
+ createDebug.namespaces = namespaces;
253
+ createDebug.names = [];
254
+ createDebug.skips = [];
255
+ let i;
256
+ const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
257
+ const len = split.length;
258
+ for (i = 0; i < len; i++) {
259
+ if (!split[i]) {
260
+ continue;
261
+ }
262
+ namespaces = split[i].replace(/\*/g, ".*?");
263
+ if (namespaces[0] === "-") {
264
+ createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
265
+ } else {
266
+ createDebug.names.push(new RegExp("^" + namespaces + "$"));
267
+ }
268
+ }
269
+ }
270
+ function disable() {
271
+ const namespaces = [
272
+ ...createDebug.names.map(toNamespace),
273
+ ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
274
+ ].join(",");
275
+ createDebug.enable("");
276
+ return namespaces;
277
+ }
278
+ function enabled(name) {
279
+ if (name[name.length - 1] === "*") {
280
+ return true;
281
+ }
282
+ let i;
283
+ let len;
284
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
285
+ if (createDebug.skips[i].test(name)) {
286
+ return false;
287
+ }
288
+ }
289
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
290
+ if (createDebug.names[i].test(name)) {
291
+ return true;
292
+ }
293
+ }
294
+ return false;
295
+ }
296
+ function toNamespace(regexp) {
297
+ return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
298
+ }
299
+ function coerce(val) {
300
+ if (val instanceof Error) {
301
+ return val.stack || val.message;
302
+ }
303
+ return val;
304
+ }
305
+ function destroy() {
306
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
307
+ }
308
+ createDebug.enable(createDebug.load());
309
+ return createDebug;
310
+ }
311
+ module2.exports = setup;
312
+ }
313
+ });
314
+ var require_browser = (0, import_chunk_AH6QHEOA.__commonJS)({
315
+ "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/browser.js"(exports, module2) {
316
+ "use strict";
317
+ exports.formatArgs = formatArgs;
318
+ exports.save = save;
319
+ exports.load = load;
320
+ exports.useColors = useColors;
321
+ exports.storage = localstorage();
322
+ exports.destroy = /* @__PURE__ */ (() => {
323
+ let warned = false;
324
+ return () => {
325
+ if (!warned) {
326
+ warned = true;
327
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
328
+ }
329
+ };
330
+ })();
331
+ exports.colors = [
332
+ "#0000CC",
333
+ "#0000FF",
334
+ "#0033CC",
335
+ "#0033FF",
336
+ "#0066CC",
337
+ "#0066FF",
338
+ "#0099CC",
339
+ "#0099FF",
340
+ "#00CC00",
341
+ "#00CC33",
342
+ "#00CC66",
343
+ "#00CC99",
344
+ "#00CCCC",
345
+ "#00CCFF",
346
+ "#3300CC",
347
+ "#3300FF",
348
+ "#3333CC",
349
+ "#3333FF",
350
+ "#3366CC",
351
+ "#3366FF",
352
+ "#3399CC",
353
+ "#3399FF",
354
+ "#33CC00",
355
+ "#33CC33",
356
+ "#33CC66",
357
+ "#33CC99",
358
+ "#33CCCC",
359
+ "#33CCFF",
360
+ "#6600CC",
361
+ "#6600FF",
362
+ "#6633CC",
363
+ "#6633FF",
364
+ "#66CC00",
365
+ "#66CC33",
366
+ "#9900CC",
367
+ "#9900FF",
368
+ "#9933CC",
369
+ "#9933FF",
370
+ "#99CC00",
371
+ "#99CC33",
372
+ "#CC0000",
373
+ "#CC0033",
374
+ "#CC0066",
375
+ "#CC0099",
376
+ "#CC00CC",
377
+ "#CC00FF",
378
+ "#CC3300",
379
+ "#CC3333",
380
+ "#CC3366",
381
+ "#CC3399",
382
+ "#CC33CC",
383
+ "#CC33FF",
384
+ "#CC6600",
385
+ "#CC6633",
386
+ "#CC9900",
387
+ "#CC9933",
388
+ "#CCCC00",
389
+ "#CCCC33",
390
+ "#FF0000",
391
+ "#FF0033",
392
+ "#FF0066",
393
+ "#FF0099",
394
+ "#FF00CC",
395
+ "#FF00FF",
396
+ "#FF3300",
397
+ "#FF3333",
398
+ "#FF3366",
399
+ "#FF3399",
400
+ "#FF33CC",
401
+ "#FF33FF",
402
+ "#FF6600",
403
+ "#FF6633",
404
+ "#FF9900",
405
+ "#FF9933",
406
+ "#FFCC00",
407
+ "#FFCC33"
408
+ ];
409
+ function useColors() {
410
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
411
+ return true;
412
+ }
413
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
414
+ return false;
415
+ }
416
+ let m;
417
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
418
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
419
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
420
+ typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
421
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
422
+ }
423
+ function formatArgs(args) {
424
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
425
+ if (!this.useColors) {
426
+ return;
427
+ }
428
+ const c = "color: " + this.color;
429
+ args.splice(1, 0, c, "color: inherit");
430
+ let index = 0;
431
+ let lastC = 0;
432
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
433
+ if (match === "%%") {
434
+ return;
435
+ }
436
+ index++;
437
+ if (match === "%c") {
438
+ lastC = index;
439
+ }
440
+ });
441
+ args.splice(lastC, 0, c);
442
+ }
443
+ exports.log = console.debug || console.log || (() => {
444
+ });
445
+ function save(namespaces) {
446
+ try {
447
+ if (namespaces) {
448
+ exports.storage.setItem("debug", namespaces);
449
+ } else {
450
+ exports.storage.removeItem("debug");
451
+ }
452
+ } catch (error) {
453
+ }
454
+ }
455
+ function load() {
456
+ let r;
457
+ try {
458
+ r = exports.storage.getItem("debug");
459
+ } catch (error) {
460
+ }
461
+ if (!r && typeof process !== "undefined" && "env" in process) {
462
+ r = process.env.DEBUG;
463
+ }
464
+ return r;
465
+ }
466
+ function localstorage() {
467
+ try {
468
+ return localStorage;
469
+ } catch (error) {
470
+ }
471
+ }
472
+ module2.exports = require_common()(exports);
473
+ var { formatters } = module2.exports;
474
+ formatters.j = function(v) {
475
+ try {
476
+ return JSON.stringify(v);
477
+ } catch (error) {
478
+ return "[UnexpectedJSONParseError]: " + error.message;
479
+ }
480
+ };
481
+ }
482
+ });
483
+ var require_has_flag = (0, import_chunk_AH6QHEOA.__commonJS)({
484
+ "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
485
+ "use strict";
486
+ module2.exports = (flag, argv = process.argv) => {
487
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
488
+ const position = argv.indexOf(prefix + flag);
489
+ const terminatorPosition = argv.indexOf("--");
490
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
491
+ };
492
+ }
493
+ });
494
+ var require_supports_color = (0, import_chunk_AH6QHEOA.__commonJS)({
495
+ "../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
496
+ "use strict";
497
+ var os = (0, import_chunk_AH6QHEOA.__require)("os");
498
+ var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
499
+ var hasFlag = require_has_flag();
500
+ var { env } = process;
501
+ var flagForceColor;
502
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
503
+ flagForceColor = 0;
504
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
505
+ flagForceColor = 1;
506
+ }
507
+ function envForceColor() {
508
+ if ("FORCE_COLOR" in env) {
509
+ if (env.FORCE_COLOR === "true") {
510
+ return 1;
511
+ }
512
+ if (env.FORCE_COLOR === "false") {
513
+ return 0;
514
+ }
515
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
516
+ }
517
+ }
518
+ function translateLevel(level) {
519
+ if (level === 0) {
520
+ return false;
521
+ }
522
+ return {
523
+ level,
524
+ hasBasic: true,
525
+ has256: level >= 2,
526
+ has16m: level >= 3
527
+ };
528
+ }
529
+ function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
530
+ const noFlagForceColor = envForceColor();
531
+ if (noFlagForceColor !== void 0) {
532
+ flagForceColor = noFlagForceColor;
533
+ }
534
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
535
+ if (forceColor === 0) {
536
+ return 0;
537
+ }
538
+ if (sniffFlags) {
539
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
540
+ return 3;
541
+ }
542
+ if (hasFlag("color=256")) {
543
+ return 2;
544
+ }
545
+ }
546
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
547
+ return 0;
548
+ }
549
+ const min = forceColor || 0;
550
+ if (env.TERM === "dumb") {
551
+ return min;
552
+ }
553
+ if (process.platform === "win32") {
554
+ const osRelease = os.release().split(".");
555
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
556
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
557
+ }
558
+ return 1;
559
+ }
560
+ if ("CI" in env) {
561
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
562
+ return 1;
563
+ }
564
+ return min;
565
+ }
566
+ if ("TEAMCITY_VERSION" in env) {
567
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
568
+ }
569
+ if (env.COLORTERM === "truecolor") {
570
+ return 3;
571
+ }
572
+ if ("TERM_PROGRAM" in env) {
573
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
574
+ switch (env.TERM_PROGRAM) {
575
+ case "iTerm.app":
576
+ return version >= 3 ? 3 : 2;
577
+ case "Apple_Terminal":
578
+ return 2;
579
+ }
580
+ }
581
+ if (/-256(color)?$/i.test(env.TERM)) {
582
+ return 2;
583
+ }
584
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
585
+ return 1;
586
+ }
587
+ if ("COLORTERM" in env) {
588
+ return 1;
589
+ }
590
+ return min;
591
+ }
592
+ function getSupportLevel(stream, options = {}) {
593
+ const level = supportsColor(stream, {
594
+ streamIsTTY: stream && stream.isTTY,
595
+ ...options
596
+ });
597
+ return translateLevel(level);
598
+ }
599
+ module2.exports = {
600
+ supportsColor: getSupportLevel,
601
+ stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
602
+ stderr: getSupportLevel({ isTTY: tty.isatty(2) })
603
+ };
604
+ }
605
+ });
606
+ var require_node = (0, import_chunk_AH6QHEOA.__commonJS)({
607
+ "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/node.js"(exports, module2) {
608
+ "use strict";
609
+ var tty = (0, import_chunk_AH6QHEOA.__require)("tty");
610
+ var util = (0, import_chunk_AH6QHEOA.__require)("util");
611
+ exports.init = init;
612
+ exports.log = log;
613
+ exports.formatArgs = formatArgs;
614
+ exports.save = save;
615
+ exports.load = load;
616
+ exports.useColors = useColors;
617
+ exports.destroy = util.deprecate(
618
+ () => {
619
+ },
620
+ "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
621
+ );
622
+ exports.colors = [6, 2, 3, 4, 5, 1];
623
+ try {
624
+ const supportsColor = require_supports_color();
625
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
626
+ exports.colors = [
627
+ 20,
628
+ 21,
629
+ 26,
630
+ 27,
631
+ 32,
632
+ 33,
633
+ 38,
634
+ 39,
635
+ 40,
636
+ 41,
637
+ 42,
638
+ 43,
639
+ 44,
640
+ 45,
641
+ 56,
642
+ 57,
643
+ 62,
644
+ 63,
645
+ 68,
646
+ 69,
647
+ 74,
648
+ 75,
649
+ 76,
650
+ 77,
651
+ 78,
652
+ 79,
653
+ 80,
654
+ 81,
655
+ 92,
656
+ 93,
657
+ 98,
658
+ 99,
659
+ 112,
660
+ 113,
661
+ 128,
662
+ 129,
663
+ 134,
664
+ 135,
665
+ 148,
666
+ 149,
667
+ 160,
668
+ 161,
669
+ 162,
670
+ 163,
671
+ 164,
672
+ 165,
673
+ 166,
674
+ 167,
675
+ 168,
676
+ 169,
677
+ 170,
678
+ 171,
679
+ 172,
680
+ 173,
681
+ 178,
682
+ 179,
683
+ 184,
684
+ 185,
685
+ 196,
686
+ 197,
687
+ 198,
688
+ 199,
689
+ 200,
690
+ 201,
691
+ 202,
692
+ 203,
693
+ 204,
694
+ 205,
695
+ 206,
696
+ 207,
697
+ 208,
698
+ 209,
699
+ 214,
700
+ 215,
701
+ 220,
702
+ 221
703
+ ];
704
+ }
705
+ } catch (error) {
706
+ }
707
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
708
+ return /^debug_/i.test(key);
709
+ }).reduce((obj, key) => {
710
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
711
+ return k.toUpperCase();
712
+ });
713
+ let val = process.env[key];
714
+ if (/^(yes|on|true|enabled)$/i.test(val)) {
715
+ val = true;
716
+ } else if (/^(no|off|false|disabled)$/i.test(val)) {
717
+ val = false;
718
+ } else if (val === "null") {
719
+ val = null;
720
+ } else {
721
+ val = Number(val);
722
+ }
723
+ obj[prop] = val;
724
+ return obj;
725
+ }, {});
726
+ function useColors() {
727
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
728
+ }
729
+ function formatArgs(args) {
730
+ const { namespace: name, useColors: useColors2 } = this;
731
+ if (useColors2) {
732
+ const c = this.color;
733
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
734
+ const prefix = ` ${colorCode};1m${name} \x1B[0m`;
735
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
736
+ args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
737
+ } else {
738
+ args[0] = getDate() + name + " " + args[0];
739
+ }
740
+ }
741
+ function getDate() {
742
+ if (exports.inspectOpts.hideDate) {
743
+ return "";
744
+ }
745
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
746
+ }
747
+ function log(...args) {
748
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
749
+ }
750
+ function save(namespaces) {
751
+ if (namespaces) {
752
+ process.env.DEBUG = namespaces;
753
+ } else {
754
+ delete process.env.DEBUG;
755
+ }
756
+ }
757
+ function load() {
758
+ return process.env.DEBUG;
759
+ }
760
+ function init(debug2) {
761
+ debug2.inspectOpts = {};
762
+ const keys = Object.keys(exports.inspectOpts);
763
+ for (let i = 0; i < keys.length; i++) {
764
+ debug2.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
765
+ }
766
+ }
767
+ module2.exports = require_common()(exports);
768
+ var { formatters } = module2.exports;
769
+ formatters.o = function(v) {
770
+ this.inspectOpts.colors = this.useColors;
771
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
772
+ };
773
+ formatters.O = function(v) {
774
+ this.inspectOpts.colors = this.useColors;
775
+ return util.inspect(v, this.inspectOpts);
776
+ };
777
+ }
778
+ });
779
+ var require_src = (0, import_chunk_AH6QHEOA.__commonJS)({
780
+ "../../node_modules/.pnpm/debug@4.3.6/node_modules/debug/src/index.js"(exports, module2) {
781
+ "use strict";
782
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
783
+ module2.exports = require_browser();
784
+ } else {
785
+ module2.exports = require_node();
786
+ }
787
+ }
788
+ });
789
+ var require_helpers = (0, import_chunk_AH6QHEOA.__commonJS)({
790
+ "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/helpers.js"(exports) {
791
+ "use strict";
792
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
793
+ if (k2 === void 0) k2 = k;
794
+ var desc = Object.getOwnPropertyDescriptor(m, k);
795
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
796
+ desc = { enumerable: true, get: function() {
797
+ return m[k];
798
+ } };
799
+ }
800
+ Object.defineProperty(o, k2, desc);
801
+ } : function(o, m, k, k2) {
802
+ if (k2 === void 0) k2 = k;
803
+ o[k2] = m[k];
804
+ });
805
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
806
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
807
+ } : function(o, v) {
808
+ o["default"] = v;
809
+ });
810
+ var __importStar = exports && exports.__importStar || function(mod) {
811
+ if (mod && mod.__esModule) return mod;
812
+ var result = {};
813
+ if (mod != null) {
814
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
815
+ }
816
+ __setModuleDefault(result, mod);
817
+ return result;
818
+ };
819
+ Object.defineProperty(exports, "__esModule", { value: true });
820
+ exports.req = exports.json = exports.toBuffer = void 0;
821
+ var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
822
+ var https = __importStar((0, import_chunk_AH6QHEOA.__require)("https"));
823
+ async function toBuffer(stream) {
824
+ let length = 0;
825
+ const chunks = [];
826
+ for await (const chunk of stream) {
827
+ length += chunk.length;
828
+ chunks.push(chunk);
829
+ }
830
+ return Buffer.concat(chunks, length);
831
+ }
832
+ exports.toBuffer = toBuffer;
833
+ async function json(stream) {
834
+ const buf = await toBuffer(stream);
835
+ const str = buf.toString("utf8");
836
+ try {
837
+ return JSON.parse(str);
838
+ } catch (_err) {
839
+ const err = _err;
840
+ err.message += ` (input: ${str})`;
841
+ throw err;
842
+ }
843
+ }
844
+ exports.json = json;
845
+ function req(url, opts = {}) {
846
+ const href = typeof url === "string" ? url : url.href;
847
+ const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
848
+ const promise = new Promise((resolve, reject) => {
849
+ req2.once("response", resolve).once("error", reject).end();
850
+ });
851
+ req2.then = promise.then.bind(promise);
852
+ return req2;
853
+ }
854
+ exports.req = req;
855
+ }
856
+ });
857
+ var require_dist = (0, import_chunk_AH6QHEOA.__commonJS)({
858
+ "../../node_modules/.pnpm/agent-base@7.1.0/node_modules/agent-base/dist/index.js"(exports) {
859
+ "use strict";
860
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
861
+ if (k2 === void 0) k2 = k;
862
+ var desc = Object.getOwnPropertyDescriptor(m, k);
863
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
864
+ desc = { enumerable: true, get: function() {
865
+ return m[k];
866
+ } };
867
+ }
868
+ Object.defineProperty(o, k2, desc);
869
+ } : function(o, m, k, k2) {
870
+ if (k2 === void 0) k2 = k;
871
+ o[k2] = m[k];
872
+ });
873
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
874
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
875
+ } : function(o, v) {
876
+ o["default"] = v;
877
+ });
878
+ var __importStar = exports && exports.__importStar || function(mod) {
879
+ if (mod && mod.__esModule) return mod;
880
+ var result = {};
881
+ if (mod != null) {
882
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
883
+ }
884
+ __setModuleDefault(result, mod);
885
+ return result;
886
+ };
887
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
888
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
889
+ };
890
+ Object.defineProperty(exports, "__esModule", { value: true });
891
+ exports.Agent = void 0;
892
+ var http = __importStar((0, import_chunk_AH6QHEOA.__require)("http"));
893
+ __exportStar(require_helpers(), exports);
894
+ var INTERNAL = Symbol("AgentBaseInternalState");
895
+ var Agent = class extends http.Agent {
896
+ constructor(opts) {
897
+ super(opts);
898
+ this[INTERNAL] = {};
899
+ }
900
+ /**
901
+ * Determine whether this is an `http` or `https` request.
902
+ */
903
+ isSecureEndpoint(options) {
904
+ if (options) {
905
+ if (typeof options.secureEndpoint === "boolean") {
906
+ return options.secureEndpoint;
907
+ }
908
+ if (typeof options.protocol === "string") {
909
+ return options.protocol === "https:";
910
+ }
911
+ }
912
+ const { stack } = new Error();
913
+ if (typeof stack !== "string")
914
+ return false;
915
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
916
+ }
917
+ createSocket(req, options, cb) {
918
+ const connectOpts = {
919
+ ...options,
920
+ secureEndpoint: this.isSecureEndpoint(options)
921
+ };
922
+ Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
923
+ if (socket instanceof http.Agent) {
924
+ return socket.addRequest(req, connectOpts);
925
+ }
926
+ this[INTERNAL].currentSocket = socket;
927
+ super.createSocket(req, options, cb);
928
+ }, cb);
929
+ }
930
+ createConnection() {
931
+ const socket = this[INTERNAL].currentSocket;
932
+ this[INTERNAL].currentSocket = void 0;
933
+ if (!socket) {
934
+ throw new Error("No socket was returned in the `connect()` function");
935
+ }
936
+ return socket;
937
+ }
938
+ get defaultPort() {
939
+ return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
940
+ }
941
+ set defaultPort(v) {
942
+ if (this[INTERNAL]) {
943
+ this[INTERNAL].defaultPort = v;
944
+ }
945
+ }
946
+ get protocol() {
947
+ return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
948
+ }
949
+ set protocol(v) {
950
+ if (this[INTERNAL]) {
951
+ this[INTERNAL].protocol = v;
952
+ }
953
+ }
954
+ };
955
+ exports.Agent = Agent;
956
+ }
957
+ });
958
+ var require_dist2 = (0, import_chunk_AH6QHEOA.__commonJS)({
959
+ "../../node_modules/.pnpm/http-proxy-agent@7.0.2/node_modules/http-proxy-agent/dist/index.js"(exports) {
960
+ "use strict";
961
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
962
+ if (k2 === void 0) k2 = k;
963
+ var desc = Object.getOwnPropertyDescriptor(m, k);
964
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
965
+ desc = { enumerable: true, get: function() {
966
+ return m[k];
967
+ } };
968
+ }
969
+ Object.defineProperty(o, k2, desc);
970
+ } : function(o, m, k, k2) {
971
+ if (k2 === void 0) k2 = k;
972
+ o[k2] = m[k];
973
+ });
974
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
975
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
976
+ } : function(o, v) {
977
+ o["default"] = v;
978
+ });
979
+ var __importStar = exports && exports.__importStar || function(mod) {
980
+ if (mod && mod.__esModule) return mod;
981
+ var result = {};
982
+ if (mod != null) {
983
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
984
+ }
985
+ __setModuleDefault(result, mod);
986
+ return result;
987
+ };
988
+ var __importDefault = exports && exports.__importDefault || function(mod) {
989
+ return mod && mod.__esModule ? mod : { "default": mod };
990
+ };
991
+ Object.defineProperty(exports, "__esModule", { value: true });
992
+ exports.HttpProxyAgent = void 0;
993
+ var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net"));
994
+ var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls"));
995
+ var debug_1 = __importDefault(require_src());
996
+ var events_1 = (0, import_chunk_AH6QHEOA.__require)("events");
997
+ var agent_base_1 = require_dist();
998
+ var url_1 = (0, import_chunk_AH6QHEOA.__require)("url");
999
+ var debug2 = (0, debug_1.default)("http-proxy-agent");
1000
+ var HttpProxyAgent2 = class extends agent_base_1.Agent {
1001
+ constructor(proxy, opts) {
1002
+ super(opts);
1003
+ this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
1004
+ this.proxyHeaders = opts?.headers ?? {};
1005
+ debug2("Creating new HttpProxyAgent instance: %o", this.proxy.href);
1006
+ const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
1007
+ const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
1008
+ this.connectOpts = {
1009
+ ...opts ? omit(opts, "headers") : null,
1010
+ host,
1011
+ port
1012
+ };
1013
+ }
1014
+ addRequest(req, opts) {
1015
+ req._header = null;
1016
+ this.setRequestProps(req, opts);
1017
+ super.addRequest(req, opts);
1018
+ }
1019
+ setRequestProps(req, opts) {
1020
+ const { proxy } = this;
1021
+ const protocol = opts.secureEndpoint ? "https:" : "http:";
1022
+ const hostname = req.getHeader("host") || "localhost";
1023
+ const base = `${protocol}//${hostname}`;
1024
+ const url = new url_1.URL(req.path, base);
1025
+ if (opts.port !== 80) {
1026
+ url.port = String(opts.port);
1027
+ }
1028
+ req.path = String(url);
1029
+ const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
1030
+ if (proxy.username || proxy.password) {
1031
+ const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
1032
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
1033
+ }
1034
+ if (!headers["Proxy-Connection"]) {
1035
+ headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
1036
+ }
1037
+ for (const name of Object.keys(headers)) {
1038
+ const value = headers[name];
1039
+ if (value) {
1040
+ req.setHeader(name, value);
1041
+ }
1042
+ }
1043
+ }
1044
+ async connect(req, opts) {
1045
+ req._header = null;
1046
+ if (!req.path.includes("://")) {
1047
+ this.setRequestProps(req, opts);
1048
+ }
1049
+ let first;
1050
+ let endOfHeaders;
1051
+ debug2("Regenerating stored HTTP header string for request");
1052
+ req._implicitHeader();
1053
+ if (req.outputData && req.outputData.length > 0) {
1054
+ debug2("Patching connection write() output buffer with updated header");
1055
+ first = req.outputData[0].data;
1056
+ endOfHeaders = first.indexOf("\r\n\r\n") + 4;
1057
+ req.outputData[0].data = req._header + first.substring(endOfHeaders);
1058
+ debug2("Output buffer: %o", req.outputData[0].data);
1059
+ }
1060
+ let socket;
1061
+ if (this.proxy.protocol === "https:") {
1062
+ debug2("Creating `tls.Socket`: %o", this.connectOpts);
1063
+ socket = tls.connect(this.connectOpts);
1064
+ } else {
1065
+ debug2("Creating `net.Socket`: %o", this.connectOpts);
1066
+ socket = net.connect(this.connectOpts);
1067
+ }
1068
+ await (0, events_1.once)(socket, "connect");
1069
+ return socket;
1070
+ }
1071
+ };
1072
+ HttpProxyAgent2.protocols = ["http", "https"];
1073
+ exports.HttpProxyAgent = HttpProxyAgent2;
1074
+ function omit(obj, ...keys) {
1075
+ const ret = {};
1076
+ let key;
1077
+ for (key in obj) {
1078
+ if (!keys.includes(key)) {
1079
+ ret[key] = obj[key];
1080
+ }
1081
+ }
1082
+ return ret;
1083
+ }
1084
+ }
1085
+ });
1086
+ var require_parse_proxy_response = (0, import_chunk_AH6QHEOA.__commonJS)({
1087
+ "../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
1088
+ "use strict";
1089
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1090
+ return mod && mod.__esModule ? mod : { "default": mod };
1091
+ };
1092
+ Object.defineProperty(exports, "__esModule", { value: true });
1093
+ exports.parseProxyResponse = void 0;
1094
+ var debug_1 = __importDefault(require_src());
1095
+ var debug2 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
1096
+ function parseProxyResponse(socket) {
1097
+ return new Promise((resolve, reject) => {
1098
+ let buffersLength = 0;
1099
+ const buffers = [];
1100
+ function read() {
1101
+ const b = socket.read();
1102
+ if (b)
1103
+ ondata(b);
1104
+ else
1105
+ socket.once("readable", read);
1106
+ }
1107
+ function cleanup() {
1108
+ socket.removeListener("end", onend);
1109
+ socket.removeListener("error", onerror);
1110
+ socket.removeListener("readable", read);
1111
+ }
1112
+ function onend() {
1113
+ cleanup();
1114
+ debug2("onend");
1115
+ reject(new Error("Proxy connection ended before receiving CONNECT response"));
1116
+ }
1117
+ function onerror(err) {
1118
+ cleanup();
1119
+ debug2("onerror %o", err);
1120
+ reject(err);
1121
+ }
1122
+ function ondata(b) {
1123
+ buffers.push(b);
1124
+ buffersLength += b.length;
1125
+ const buffered = Buffer.concat(buffers, buffersLength);
1126
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
1127
+ if (endOfHeaders === -1) {
1128
+ debug2("have not received end of HTTP headers yet...");
1129
+ read();
1130
+ return;
1131
+ }
1132
+ const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
1133
+ const firstLine = headerParts.shift();
1134
+ if (!firstLine) {
1135
+ socket.destroy();
1136
+ return reject(new Error("No header received from proxy CONNECT response"));
1137
+ }
1138
+ const firstLineParts = firstLine.split(" ");
1139
+ const statusCode = +firstLineParts[1];
1140
+ const statusText = firstLineParts.slice(2).join(" ");
1141
+ const headers = {};
1142
+ for (const header of headerParts) {
1143
+ if (!header)
1144
+ continue;
1145
+ const firstColon = header.indexOf(":");
1146
+ if (firstColon === -1) {
1147
+ socket.destroy();
1148
+ return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
1149
+ }
1150
+ const key = header.slice(0, firstColon).toLowerCase();
1151
+ const value = header.slice(firstColon + 1).trimStart();
1152
+ const current = headers[key];
1153
+ if (typeof current === "string") {
1154
+ headers[key] = [current, value];
1155
+ } else if (Array.isArray(current)) {
1156
+ current.push(value);
1157
+ } else {
1158
+ headers[key] = value;
1159
+ }
1160
+ }
1161
+ debug2("got proxy server response: %o %o", firstLine, headers);
1162
+ cleanup();
1163
+ resolve({
1164
+ connect: {
1165
+ statusCode,
1166
+ statusText,
1167
+ headers
1168
+ },
1169
+ buffered
1170
+ });
1171
+ }
1172
+ socket.on("error", onerror);
1173
+ socket.on("end", onend);
1174
+ read();
1175
+ });
1176
+ }
1177
+ exports.parseProxyResponse = parseProxyResponse;
1178
+ }
1179
+ });
1180
+ var require_dist3 = (0, import_chunk_AH6QHEOA.__commonJS)({
1181
+ "../../node_modules/.pnpm/https-proxy-agent@7.0.5/node_modules/https-proxy-agent/dist/index.js"(exports) {
1182
+ "use strict";
1183
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
1184
+ if (k2 === void 0) k2 = k;
1185
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1186
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1187
+ desc = { enumerable: true, get: function() {
1188
+ return m[k];
1189
+ } };
1190
+ }
1191
+ Object.defineProperty(o, k2, desc);
1192
+ } : function(o, m, k, k2) {
1193
+ if (k2 === void 0) k2 = k;
1194
+ o[k2] = m[k];
1195
+ });
1196
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
1197
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
1198
+ } : function(o, v) {
1199
+ o["default"] = v;
1200
+ });
1201
+ var __importStar = exports && exports.__importStar || function(mod) {
1202
+ if (mod && mod.__esModule) return mod;
1203
+ var result = {};
1204
+ if (mod != null) {
1205
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1206
+ }
1207
+ __setModuleDefault(result, mod);
1208
+ return result;
1209
+ };
1210
+ var __importDefault = exports && exports.__importDefault || function(mod) {
1211
+ return mod && mod.__esModule ? mod : { "default": mod };
1212
+ };
1213
+ Object.defineProperty(exports, "__esModule", { value: true });
1214
+ exports.HttpsProxyAgent = void 0;
1215
+ var net = __importStar((0, import_chunk_AH6QHEOA.__require)("net"));
1216
+ var tls = __importStar((0, import_chunk_AH6QHEOA.__require)("tls"));
1217
+ var assert_1 = __importDefault((0, import_chunk_AH6QHEOA.__require)("assert"));
1218
+ var debug_1 = __importDefault(require_src());
1219
+ var agent_base_1 = require_dist();
1220
+ var url_1 = (0, import_chunk_AH6QHEOA.__require)("url");
1221
+ var parse_proxy_response_1 = require_parse_proxy_response();
1222
+ var debug2 = (0, debug_1.default)("https-proxy-agent");
1223
+ var HttpsProxyAgent2 = class extends agent_base_1.Agent {
1224
+ constructor(proxy, opts) {
1225
+ super(opts);
1226
+ this.options = { path: void 0 };
1227
+ this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
1228
+ this.proxyHeaders = opts?.headers ?? {};
1229
+ debug2("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
1230
+ const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
1231
+ const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
1232
+ this.connectOpts = {
1233
+ // Attempt to negotiate http/1.1 for proxy servers that support http/2
1234
+ ALPNProtocols: ["http/1.1"],
1235
+ ...opts ? omit(opts, "headers") : null,
1236
+ host,
1237
+ port
1238
+ };
1239
+ }
1240
+ /**
1241
+ * Called when the node-core HTTP client library is creating a
1242
+ * new HTTP request.
1243
+ */
1244
+ async connect(req, opts) {
1245
+ const { proxy } = this;
1246
+ if (!opts.host) {
1247
+ throw new TypeError('No "host" provided');
1248
+ }
1249
+ let socket;
1250
+ if (proxy.protocol === "https:") {
1251
+ debug2("Creating `tls.Socket`: %o", this.connectOpts);
1252
+ const servername = this.connectOpts.servername || this.connectOpts.host;
1253
+ socket = tls.connect({
1254
+ ...this.connectOpts,
1255
+ servername
1256
+ });
1257
+ } else {
1258
+ debug2("Creating `net.Socket`: %o", this.connectOpts);
1259
+ socket = net.connect(this.connectOpts);
1260
+ }
1261
+ const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
1262
+ const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
1263
+ let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
1264
+ `;
1265
+ if (proxy.username || proxy.password) {
1266
+ const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
1267
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
1268
+ }
1269
+ headers.Host = `${host}:${opts.port}`;
1270
+ if (!headers["Proxy-Connection"]) {
1271
+ headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
1272
+ }
1273
+ for (const name of Object.keys(headers)) {
1274
+ payload += `${name}: ${headers[name]}\r
1275
+ `;
1276
+ }
1277
+ const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
1278
+ socket.write(`${payload}\r
1279
+ `);
1280
+ const { connect, buffered } = await proxyResponsePromise;
1281
+ req.emit("proxyConnect", connect);
1282
+ this.emit("proxyConnect", connect, req);
1283
+ if (connect.statusCode === 200) {
1284
+ req.once("socket", resume);
1285
+ if (opts.secureEndpoint) {
1286
+ debug2("Upgrading socket connection to TLS");
1287
+ const servername = opts.servername || opts.host;
1288
+ return tls.connect({
1289
+ ...omit(opts, "host", "path", "port"),
1290
+ socket,
1291
+ servername
1292
+ });
1293
+ }
1294
+ return socket;
1295
+ }
1296
+ socket.destroy();
1297
+ const fakeSocket = new net.Socket({ writable: false });
1298
+ fakeSocket.readable = true;
1299
+ req.once("socket", (s) => {
1300
+ debug2("Replaying proxy buffer for failed request");
1301
+ (0, assert_1.default)(s.listenerCount("data") > 0);
1302
+ s.push(buffered);
1303
+ s.push(null);
1304
+ });
1305
+ return fakeSocket;
1306
+ }
1307
+ };
1308
+ HttpsProxyAgent2.protocols = ["http", "https"];
1309
+ exports.HttpsProxyAgent = HttpsProxyAgent2;
1310
+ function resume(socket) {
1311
+ socket.resume();
1312
+ }
1313
+ function omit(obj, ...keys) {
1314
+ const ret = {};
1315
+ let key;
1316
+ for (key in obj) {
1317
+ if (!keys.includes(key)) {
1318
+ ret[key] = obj[key];
1319
+ }
1320
+ }
1321
+ return ret;
1322
+ }
1323
+ }
1324
+ });
1325
+ var import_http_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist2());
1326
+ var import_https_proxy_agent = (0, import_chunk_AH6QHEOA.__toESM)(require_dist3());
1327
+ var debug = (0, import_debug.default)("prisma:fetch-engine:getProxyAgent");
1328
+ function formatHostname(hostname) {
1329
+ return hostname.replace(/^\.*/, ".").toLowerCase();
1330
+ }
1331
+ function parseNoProxyZone(zone) {
1332
+ zone = zone.trim().toLowerCase();
1333
+ const zoneParts = zone.split(":", 2);
1334
+ const zoneHost = formatHostname(zoneParts[0]);
1335
+ const zonePort = zoneParts[1];
1336
+ const hasPort = zone.includes(":");
1337
+ return { hostname: zoneHost, port: zonePort, hasPort };
1338
+ }
1339
+ function uriInNoProxy(uri, noProxy) {
1340
+ const port = uri.port || (uri.protocol === "https:" ? "443" : "80");
1341
+ const hostname = formatHostname(uri.hostname);
1342
+ const noProxyList = noProxy.split(",");
1343
+ return noProxyList.map(parseNoProxyZone).some(function(noProxyZone) {
1344
+ const isMatchedAt = hostname.indexOf(noProxyZone.hostname);
1345
+ const hostnameMatched = isMatchedAt > -1 && isMatchedAt === hostname.length - noProxyZone.hostname.length;
1346
+ if (noProxyZone.hasPort) {
1347
+ return port === noProxyZone.port && hostnameMatched;
1348
+ }
1349
+ return hostnameMatched;
1350
+ });
1351
+ }
1352
+ function getProxyFromURI(uri) {
1353
+ const noProxy = process.env.NO_PROXY || process.env.no_proxy || "";
1354
+ if (noProxy) debug(`noProxy is set to "${noProxy}"`);
1355
+ if (noProxy === "*") {
1356
+ return null;
1357
+ }
1358
+ if (noProxy !== "" && uriInNoProxy(uri, noProxy)) {
1359
+ return null;
1360
+ }
1361
+ if (uri.protocol === "http:") {
1362
+ const httpProxy = process.env.HTTP_PROXY || process.env.http_proxy || null;
1363
+ if (httpProxy) debug(`uri.protocol is HTTP and the URL for the proxy is "${httpProxy}"`);
1364
+ return httpProxy;
1365
+ }
1366
+ if (uri.protocol === "https:") {
1367
+ const httpsProxy = process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy || null;
1368
+ if (httpsProxy) debug(`uri.protocol is HTTPS and the URL for the proxy is "${httpsProxy}"`);
1369
+ return httpsProxy;
1370
+ }
1371
+ return null;
1372
+ }
1373
+ function getProxyAgent(url) {
1374
+ try {
1375
+ const uri = import_url.default.parse(url);
1376
+ const proxy = getProxyFromURI(uri);
1377
+ if (!proxy) {
1378
+ return void 0;
1379
+ } else if (uri.protocol === "http:") {
1380
+ try {
1381
+ return new import_http_proxy_agent.HttpProxyAgent(proxy);
1382
+ } catch (agentError) {
1383
+ throw new Error(
1384
+ `Error while instantiating HttpProxyAgent with URL: "${proxy}"
1385
+ ${agentError}
1386
+ Check the following env vars "http_proxy" or "HTTP_PROXY". The value should be a valid URL starting with "http://"`
1387
+ );
1388
+ }
1389
+ } else if (uri.protocol === "https:") {
1390
+ try {
1391
+ return new import_https_proxy_agent.HttpsProxyAgent(proxy);
1392
+ } catch (agentError) {
1393
+ throw new Error(
1394
+ `Error while instantiating HttpsProxyAgent with URL: "${proxy}"
1395
+ ${agentError}
1396
+ Check the following env vars "https_proxy" or "HTTPS_PROXY". The value should be a valid URL starting with "https://"`
1397
+ );
1398
+ }
1399
+ }
1400
+ } catch (e) {
1401
+ console.warn(`An error occurred in getProxyAgent(), no proxy agent will be used.`, e);
1402
+ }
1403
+ return void 0;
1404
+ }