@shopify/cli 4.0.0 → 4.2.0

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 (392) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics-CX22YIUZ.js +1 -0
  3. package/dist/analytics-UBWQIQYF.js +1 -0
  4. package/dist/angular-UTTM4Y4S.js +4 -0
  5. package/dist/bootstrap.js +1 -1
  6. package/dist/{chunk-DU4WR4OP.js → chunk-23AMFHXC.js} +1 -1
  7. package/dist/{chunk-LNHLDRC5.js → chunk-2EJCY4CE.js} +1 -1
  8. package/dist/{chunk-YMWHHINU.js → chunk-2KH2S7PI.js} +1 -1
  9. package/dist/chunk-2N4O33VM.js +6 -0
  10. package/dist/{chunk-WZBSLU4Q.js → chunk-2VLMN5QZ.js} +1 -1
  11. package/dist/chunk-2WNODIWJ.js +1 -0
  12. package/dist/chunk-2YXKZWYW.js +1 -0
  13. package/dist/{chunk-GFJ7UV74.js → chunk-3BRUCKZ2.js} +1 -1
  14. package/dist/{chunk-RM5SJJN6.js → chunk-3V63X7WZ.js} +66 -66
  15. package/dist/chunk-3YWUSKWF.js +159 -0
  16. package/dist/chunk-42RMKTCJ.js +8 -0
  17. package/dist/{chunk-V2CNCPIE.js → chunk-4EXYYBQ6.js} +1 -1
  18. package/dist/chunk-4KRT35A2.js +1 -0
  19. package/dist/chunk-4V4DQ6W7.js +836 -0
  20. package/dist/chunk-4Z2WYNTE.js +1 -0
  21. package/dist/chunk-57N2DFIF.js +1 -0
  22. package/dist/chunk-5TIJLYZU.js +3 -0
  23. package/dist/{chunk-GNPS5SBU.js → chunk-6AJZKIZ3.js} +1 -1
  24. package/dist/{chunk-XNO6DZYP.js → chunk-6HZTMQD6.js} +1 -1
  25. package/dist/chunk-6LK6ZP3Q.js +1 -0
  26. package/dist/chunk-6SXOUZ7V.js +1 -0
  27. package/dist/chunk-6TEXPRI2.js +2 -0
  28. package/dist/{chunk-OUOYKNMY.js → chunk-6TORWTD7.js} +1 -1
  29. package/dist/{chunk-IASVAERO.js → chunk-6YAXFS6V.js} +1 -1
  30. package/dist/chunk-6YHJ554P.js +6 -0
  31. package/dist/chunk-6ZIOYXEF.js +3 -0
  32. package/dist/chunk-7BFDUVOG.js +1 -0
  33. package/dist/chunk-7DVOSOEP.js +11 -0
  34. package/dist/chunk-7JESXDF2.js +14 -0
  35. package/dist/chunk-7KJ5TBWG.js +5 -0
  36. package/dist/{chunk-7MUKLZOL.js → chunk-A3VYI4LO.js} +2 -2
  37. package/dist/{chunk-4HHXSMD7.js → chunk-A5SQCM63.js} +2 -2
  38. package/dist/chunk-A6X2IVGT.js +4 -0
  39. package/dist/{chunk-HUZUORYM.js → chunk-AP3RFOPL.js} +10 -10
  40. package/dist/{chunk-3LVGAQB4.js → chunk-ATPFTRCC.js} +1 -1
  41. package/dist/chunk-AWQ5AR2K.js +5 -0
  42. package/dist/chunk-BECEP46I.js +16 -0
  43. package/dist/{chunk-JPGO36XP.js → chunk-BHWEA4V2.js} +1 -1
  44. package/dist/chunk-BPVZ7E63.js +1 -0
  45. package/dist/chunk-C2FFA4O4.js +1 -0
  46. package/dist/chunk-C3LZPAAH.js +3 -0
  47. package/dist/chunk-C6ABJCRG.js +1 -0
  48. package/dist/chunk-CCEA5CUX.js +1 -0
  49. package/dist/chunk-CE6FKJFS.js +1 -0
  50. package/dist/chunk-CW7WJZKR.js +28 -0
  51. package/dist/chunk-D3DDLLNF.js +2 -0
  52. package/dist/chunk-D656BV5Z.js +25 -0
  53. package/dist/chunk-DCBYHVKW.js +1 -0
  54. package/dist/{chunk-RF2DPBA6.js → chunk-DCK2FX6J.js} +1 -1
  55. package/dist/chunk-DERA4K6A.js +32 -0
  56. package/dist/chunk-DNLOSMHL.js +3 -0
  57. package/dist/chunk-E2YBU6D3.js +294 -0
  58. package/dist/{chunk-INEU4XKS.js → chunk-F47MFBKM.js} +1 -1
  59. package/dist/chunk-F6T3UBBL.js +1 -0
  60. package/dist/{chunk-WXVZJJOR.js → chunk-FBVBO5YQ.js} +1 -1
  61. package/dist/chunk-FD5S2O6M.js +7 -0
  62. package/dist/chunk-FFYYJKF7.js +1 -0
  63. package/dist/{chunk-LX3ZOW52.js → chunk-FGVC22EY.js} +1 -1
  64. package/dist/{chunk-NRAFVIU3.js → chunk-FP2NOZSD.js} +1 -1
  65. package/dist/chunk-FQDRVPCY.js +2 -0
  66. package/dist/{chunk-IOLVEXM6.js → chunk-FSTCEWXX.js} +1 -1
  67. package/dist/chunk-FTN7Y6HD.js +7 -0
  68. package/dist/{chunk-52GC6XUT.js → chunk-GVITHCQJ.js} +1 -1
  69. package/dist/chunk-H4W4DFKK.js +1 -0
  70. package/dist/{chunk-72F3YBNA.js → chunk-HD5TYIDZ.js} +1 -1
  71. package/dist/chunk-HHXHOQQP.js +3 -0
  72. package/dist/chunk-HJSYHK4S.js +8 -0
  73. package/dist/chunk-HLMFVORT.js +1 -0
  74. package/dist/chunk-HSYRYSX4.js +3 -0
  75. package/dist/chunk-I3LX25MB.js +1 -0
  76. package/dist/chunk-INFBVFMU.js +4 -0
  77. package/dist/chunk-IOQQUHST.js +18 -0
  78. package/dist/chunk-IVGWFPMA.js +19 -0
  79. package/dist/chunk-IWCPQD7X.js +1382 -0
  80. package/dist/chunk-IWE4RUI7.js +1 -0
  81. package/dist/chunk-IXUVSFW2.js +1 -0
  82. package/dist/chunk-J6VTZEE2.js +15 -0
  83. package/dist/{chunk-MQNYGGAM.js → chunk-K3PGC6DC.js} +1 -1
  84. package/dist/{chunk-MBAFWQSZ.js → chunk-K77WAKOB.js} +1 -1
  85. package/dist/{chunk-UGDBJTLP.js → chunk-K7K6GNF6.js} +1 -1
  86. package/dist/chunk-KFCGMT67.js +1 -0
  87. package/dist/chunk-KLA7AWG6.js +7 -0
  88. package/dist/{chunk-6B53BWJW.js → chunk-KQU6HOJ3.js} +1 -1
  89. package/dist/{chunk-A74GETYC.js → chunk-KU5OPV7U.js} +1 -1
  90. package/dist/chunk-L2VSSINY.js +1 -0
  91. package/dist/chunk-LCCMXY6N.js +1 -0
  92. package/dist/{chunk-GOJ2QHSR.js → chunk-LITB5QQX.js} +1 -1
  93. package/dist/chunk-LKS47US7.js +8 -0
  94. package/dist/{chunk-DJONKJSZ.js → chunk-LQMSF3F7.js} +1 -1
  95. package/dist/chunk-LTWXTDDR.js +5 -0
  96. package/dist/{chunk-D6JARNEH.js → chunk-M2TJICTB.js} +1 -1
  97. package/dist/chunk-M4LOKANA.js +1 -0
  98. package/dist/chunk-M4V2OQAX.js +1 -0
  99. package/dist/chunk-MA52QGHP.js +1 -0
  100. package/dist/chunk-MFLBTJO7.js +1 -0
  101. package/dist/chunk-MGL4YM3S.js +28 -0
  102. package/dist/{chunk-6TZAAS5H.js → chunk-MIO2CV3Q.js} +1 -1
  103. package/dist/{chunk-2APPXD5Z.js → chunk-MKE434RB.js} +1 -1
  104. package/dist/chunk-MZJRNFAU.js +1 -0
  105. package/dist/{chunk-HSK7YMRE.js → chunk-N3YWHJMB.js} +11 -11
  106. package/dist/{chunk-TQYMC7TH.js → chunk-N5ROZKPZ.js} +1 -1
  107. package/dist/chunk-NBYS6YQ2.js +5 -0
  108. package/dist/chunk-NEZEHBT2.js +1 -0
  109. package/dist/chunk-NO5KVFTV.js +22 -0
  110. package/dist/{chunk-3DQIVE24.js → chunk-NP4UFPAX.js} +1 -1
  111. package/dist/chunk-NPM3MFB3.js +7 -0
  112. package/dist/{chunk-JVIKCGDY.js → chunk-NXL6LDJU.js} +1 -1
  113. package/dist/chunk-OA4P6AKS.js +1 -0
  114. package/dist/chunk-OKNBZSGN.js +2 -0
  115. package/dist/chunk-OKOYLEA7.js +278 -0
  116. package/dist/chunk-OLOBQ42K.js +1 -0
  117. package/dist/chunk-OYP7DKPU.js +1 -0
  118. package/dist/{chunk-7UYZQN4V.js → chunk-PBTXPBI6.js} +2 -2
  119. package/dist/chunk-PLQFX5ZP.js +9 -0
  120. package/dist/{chunk-JLBH7RCF.js → chunk-PS25FEBF.js} +1 -1
  121. package/dist/{chunk-OLZHWPZP.js → chunk-PSQFZAF3.js} +1 -1
  122. package/dist/chunk-PUTZFF2Z.js +613 -0
  123. package/dist/chunk-QLQGHMVU.js +15 -0
  124. package/dist/{chunk-XLELNRFF.js → chunk-QTGMS62F.js} +1 -1
  125. package/dist/chunk-R6JNXEB3.js +1 -0
  126. package/dist/chunk-RAH5NW3R.js +1 -0
  127. package/dist/{chunk-R466TU3N.js → chunk-RGNAWKD7.js} +1 -1
  128. package/dist/chunk-RL5BWZ7D.js +15 -0
  129. package/dist/{chunk-Y5JKV2AI.js → chunk-RVMB5LC2.js} +1 -1
  130. package/dist/chunk-SSM346XI.js +5 -0
  131. package/dist/chunk-T5MK7ZSF.js +1 -0
  132. package/dist/{chunk-22PCRFG4.js → chunk-TGACBJIY.js} +1 -1
  133. package/dist/{chunk-KBQ4LGFB.js → chunk-TLSAQ6FG.js} +1 -1
  134. package/dist/chunk-TNQXTZAX.js +32 -0
  135. package/dist/{chunk-ELVFJ7BR.js → chunk-TQGTEVSR.js} +1 -1
  136. package/dist/chunk-TXUTT6UA.js +17 -0
  137. package/dist/chunk-U3ZG675O.js +5 -0
  138. package/dist/chunk-UARVYVLN.js +3 -0
  139. package/dist/chunk-UBKVCI7A.js +3 -0
  140. package/dist/{chunk-SRCQVUMC.js → chunk-UCLSPAVX.js} +1 -1
  141. package/dist/chunk-ULQG3XQS.js +1 -0
  142. package/dist/chunk-UOQ75BL3.js +1 -0
  143. package/dist/{chunk-OXPWCC7I.js → chunk-UOQQNAHX.js} +2 -2
  144. package/dist/chunk-UURFVUAH.js +11 -0
  145. package/dist/chunk-VA5IUGZV.js +2 -0
  146. package/dist/{chunk-YZDDTYTU.js → chunk-VEDZUOVI.js} +3 -3
  147. package/dist/chunk-VICNWPLQ.js +567 -0
  148. package/dist/chunk-VPL2NDH6.js +370 -0
  149. package/dist/chunk-VT77EFRL.js +10 -0
  150. package/dist/chunk-VYXVYOIJ.js +3 -0
  151. package/dist/chunk-WCWNI3ZV.js +283 -0
  152. package/dist/chunk-WNGV4JQS.js +4 -0
  153. package/dist/chunk-WUK5NQSX.js +6 -0
  154. package/dist/chunk-X2TC7S57.js +103 -0
  155. package/dist/chunk-X4CV6TRE.js +1 -0
  156. package/dist/chunk-XDAOLCPN.js +4 -0
  157. package/dist/chunk-XFKCDWXB.js +5 -0
  158. package/dist/chunk-XP6IRAZN.js +1 -0
  159. package/dist/{chunk-JGXWQULI.js → chunk-XX343DDG.js} +1 -1
  160. package/dist/{chunk-Q7ING5F5.js → chunk-XXE7667M.js} +1 -1
  161. package/dist/chunk-YGMVL6NZ.js +6 -0
  162. package/dist/chunk-YJB7P2HC.js +1 -0
  163. package/dist/{chunk-P6XE4MH5.js → chunk-YS6VOQ7I.js} +1 -1
  164. package/dist/chunk-ZZYFG22L.js +26 -0
  165. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  166. package/dist/cli/commands/app/build.js +1 -1
  167. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  168. package/dist/cli/commands/app/bulk/execute.js +1 -9
  169. package/dist/cli/commands/app/bulk/status.js +1 -5
  170. package/dist/cli/commands/app/config/link.js +1 -4
  171. package/dist/cli/commands/app/config/pull.js +1 -1
  172. package/dist/cli/commands/app/config/use.js +1 -1
  173. package/dist/cli/commands/app/config/validate.js +1 -3
  174. package/dist/cli/commands/app/demo/watcher.js +1 -1
  175. package/dist/cli/commands/app/deploy.js +1 -22
  176. package/dist/cli/commands/app/dev/clean.js +1 -5
  177. package/dist/cli/commands/app/dev.js +1 -320
  178. package/dist/cli/commands/app/env/pull.js +1 -11
  179. package/dist/cli/commands/app/env/show.js +1 -1
  180. package/dist/cli/commands/app/execute.js +1 -1
  181. package/dist/cli/commands/app/function/build.js +1 -1
  182. package/dist/cli/commands/app/function/info.js +1 -16
  183. package/dist/cli/commands/app/function/replay.js +1 -5
  184. package/dist/cli/commands/app/function/run.js +1 -1
  185. package/dist/cli/commands/app/function/schema.js +1 -1
  186. package/dist/cli/commands/app/function/typegen.js +1 -1
  187. package/dist/cli/commands/app/generate/extension.js +1 -5
  188. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  189. package/dist/cli/commands/app/import-extensions.js +1 -1
  190. package/dist/cli/commands/app/info.js +1 -11
  191. package/dist/cli/commands/app/init.js +1 -10
  192. package/dist/cli/commands/app/logs.js +1 -2
  193. package/dist/cli/commands/app/release.js +1 -4
  194. package/dist/cli/commands/app/versions/list.js +1 -1
  195. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  196. package/dist/cli/commands/auth/login.js +1 -1
  197. package/dist/cli/commands/auth/logout.js +1 -1
  198. package/dist/cli/commands/cache/clear.js +1 -1
  199. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  200. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  201. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  202. package/dist/cli/commands/debug/command-flags.js +1 -1
  203. package/dist/cli/commands/docs/generate.d.ts +0 -8
  204. package/dist/cli/commands/docs/generate.js +1 -1
  205. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  206. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  207. package/dist/cli/commands/help.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  209. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  210. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  211. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  212. package/dist/cli/commands/notifications/generate.js +1 -1
  213. package/dist/cli/commands/notifications/list.js +1 -1
  214. package/dist/cli/commands/organization/list.js +1 -1
  215. package/dist/cli/commands/search.js +1 -1
  216. package/dist/cli/commands/theme/check.js +1 -1
  217. package/dist/cli/commands/theme/console.js +1 -15
  218. package/dist/cli/commands/theme/delete.js +1 -7
  219. package/dist/cli/commands/theme/dev.js +1 -26
  220. package/dist/cli/commands/theme/duplicate.js +1 -32
  221. package/dist/cli/commands/theme/info.js +1 -1
  222. package/dist/cli/commands/theme/init.js +1 -8
  223. package/dist/cli/commands/theme/language-server.js +1 -1
  224. package/dist/cli/commands/theme/list.js +1 -1
  225. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  226. package/dist/cli/commands/theme/open.js +1 -8
  227. package/dist/cli/commands/theme/package.js +1 -7
  228. package/dist/cli/commands/theme/preview.js +1 -1
  229. package/dist/cli/commands/theme/profile.js +1 -3
  230. package/dist/cli/commands/theme/publish.js +1 -7
  231. package/dist/cli/commands/theme/pull.js +1 -3
  232. package/dist/cli/commands/theme/push.js +1 -28
  233. package/dist/cli/commands/theme/rename.js +1 -6
  234. package/dist/cli/commands/theme/share.js +1 -3
  235. package/dist/cli/commands/upgrade.js +1 -1
  236. package/dist/cli/commands/version.js +1 -1
  237. package/dist/command-registry.js +1 -1
  238. package/dist/conf-store-6QNH5BID.js +1 -0
  239. package/dist/configs/all.yml +3 -0
  240. package/dist/configs/recommended.yml +3 -0
  241. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-TSPWW5YF.js} +1 -1
  242. package/dist/data/filters.json +60 -0
  243. package/dist/data/latest.json +1 -1
  244. package/dist/data/setting.json +29 -9
  245. package/dist/data/shopify_system_translations.json +71 -19
  246. package/dist/data/tags.json +3 -3
  247. package/dist/deprecations-F6JWVV2W.js +1 -0
  248. package/dist/{devtools-OLOT2NY4.js → devtools-HCKYP7DQ.js} +1 -1
  249. package/dist/{devtools-UFRKBFGI.js → devtools-VEZNCV6W.js} +1 -1
  250. package/dist/dist-4BD6KOLR.js +1 -0
  251. package/dist/dist-AUABCVPI.js +1 -0
  252. package/dist/environments-RGLI75HN.js +1 -0
  253. package/dist/error-OZALZZ3U.js +1 -0
  254. package/dist/error-handler-V7LSEXHM.js +1 -0
  255. package/dist/{estree-KI7NUW53.js → estree-BYYJYS3A.js} +1 -1
  256. package/dist/fs-YMUQ6JLE.js +1 -0
  257. package/dist/hooks/app-init.js +1 -1
  258. package/dist/hooks/did-you-mean.js +1 -1
  259. package/dist/hooks/hydrogen-init.js +1 -1
  260. package/dist/hooks/plugin-plugins.js +1 -1
  261. package/dist/hooks/postrun.js +1 -1
  262. package/dist/hooks/prerun.js +1 -1
  263. package/dist/hooks/public-metadata.js +1 -1
  264. package/dist/hooks/sensitive-metadata.js +1 -1
  265. package/dist/hooks/tunnel-provider.js +1 -1
  266. package/dist/hooks/tunnel-start.js +1 -1
  267. package/dist/html-HETICZ2F.js +25 -0
  268. package/dist/index.js +9 -1182
  269. package/dist/is-global-BLIZ57HQ.js +1 -0
  270. package/dist/is-wsl-TN2CXYI7.js +1 -0
  271. package/dist/{latest-version-EFWBOTWM.js → latest-version-6OAYLOBL.js} +1 -1
  272. package/dist/{lib-QB6I6CTC.js → lib-AK5EOIKR.js} +1 -1
  273. package/dist/{lib-C3VO2BQW.js → lib-LVUMLZ4H.js} +1 -1
  274. package/dist/lib-ME6554NA.js +1 -0
  275. package/dist/local-GPDAXHE6.js +1 -0
  276. package/dist/local-storage-P66KJG6I.js +1 -0
  277. package/dist/{markdown-PLKL4IZK.js → markdown-5TVCXM53.js} +1 -1
  278. package/dist/{metadata-UDMOTRS7.js → metadata-TRH25EHU.js} +1 -1
  279. package/dist/{morph-EMYAITFM.js → morph-I35VYPBH.js} +4 -4
  280. package/dist/node-package-manager-GO4ZRTKQ.js +1 -0
  281. package/dist/notifications-system-HM6JZ6WJ.js +1 -0
  282. package/dist/{npa-ICFSA3NL.js → npa-VNALV7XY.js} +1 -1
  283. package/dist/output-7IYOMPSA.js +1 -0
  284. package/dist/{postcss-3FJQPJI2.js → postcss-IIK6CGAW.js} +1 -1
  285. package/dist/{prettier-NVRHEAFO.js → prettier-ZSBNNQTK.js} +1 -1
  286. package/dist/system-X5C4EQQH.js +1 -0
  287. package/dist/tsconfig.tsbuildinfo +1 -1
  288. package/dist/ui-H62CMRLG.js +1 -0
  289. package/dist/upgrade-EEOPH464.js +1 -0
  290. package/dist/version-76NBQR4K.js +1 -0
  291. package/dist/version-IGSEISUA.js +1 -0
  292. package/dist/{workerd-L2EJKIAQ.js → workerd-ST6XJKUN.js} +1 -1
  293. package/oclif.manifest.json +142 -7
  294. package/package.json +14 -11
  295. package/dist/analytics-6IHHYAV6.js +0 -1
  296. package/dist/analytics-KKVP5DT3.js +0 -1
  297. package/dist/angular-VRDO2DBE.js +0 -4
  298. package/dist/chunk-26D72ZNV.js +0 -1
  299. package/dist/chunk-2I4PRX2I.js +0 -1
  300. package/dist/chunk-2VQJQ36C.js +0 -103
  301. package/dist/chunk-323UTVMM.js +0 -1
  302. package/dist/chunk-3F6NZK7S.js +0 -2
  303. package/dist/chunk-4G7J6HIV.js +0 -1
  304. package/dist/chunk-66RJ5T7A.js +0 -102
  305. package/dist/chunk-6BMMB2UO.js +0 -1
  306. package/dist/chunk-6HBRBQAN.js +0 -6
  307. package/dist/chunk-74HYYXXE.js +0 -17
  308. package/dist/chunk-7BGM2GAH.js +0 -1
  309. package/dist/chunk-AIV5RI3X.js +0 -1
  310. package/dist/chunk-AKML26N3.js +0 -7
  311. package/dist/chunk-ALKTLKQ6.js +0 -5
  312. package/dist/chunk-B2EHO7ZC.js +0 -847
  313. package/dist/chunk-B2IVY4V5.js +0 -1
  314. package/dist/chunk-BDVAE5MS.js +0 -28
  315. package/dist/chunk-CERXUPGC.js +0 -14
  316. package/dist/chunk-D3TSJA5S.js +0 -1
  317. package/dist/chunk-DFMQWJQ3.js +0 -3
  318. package/dist/chunk-DJQVNH7P.js +0 -567
  319. package/dist/chunk-ELYP4KFP.js +0 -8
  320. package/dist/chunk-FFQ5EWII.js +0 -294
  321. package/dist/chunk-FUOIGXI4.js +0 -1
  322. package/dist/chunk-GD7FWXJ5.js +0 -2
  323. package/dist/chunk-GFEAKSGV.js +0 -374
  324. package/dist/chunk-IIIVWD4R.js +0 -1
  325. package/dist/chunk-IX5ICOBV.js +0 -7
  326. package/dist/chunk-J3KVONB3.js +0 -6
  327. package/dist/chunk-JHPRFW5B.js +0 -19
  328. package/dist/chunk-K2WUCOQJ.js +0 -32
  329. package/dist/chunk-K5YV6UVF.js +0 -4
  330. package/dist/chunk-KGXQS7LS.js +0 -1
  331. package/dist/chunk-KL5Z3T6L.js +0 -1
  332. package/dist/chunk-KNVM7N3U.js +0 -1
  333. package/dist/chunk-KWJ562F2.js +0 -12
  334. package/dist/chunk-LALIKZPS.js +0 -5
  335. package/dist/chunk-LAZJ47DZ.js +0 -6
  336. package/dist/chunk-LDGAHMS7.js +0 -159
  337. package/dist/chunk-LW7U753G.js +0 -1
  338. package/dist/chunk-LXFJDCNG.js +0 -1
  339. package/dist/chunk-N5YIPQ6J.js +0 -1
  340. package/dist/chunk-N7RBSKYT.js +0 -1
  341. package/dist/chunk-NF2ABOOU.js +0 -1
  342. package/dist/chunk-ODNGDO4H.js +0 -50
  343. package/dist/chunk-OHY4ZL3U.js +0 -2
  344. package/dist/chunk-P5VVOLGV.js +0 -1
  345. package/dist/chunk-P7R7FBY2.js +0 -3
  346. package/dist/chunk-QRRNOVJ3.js +0 -1
  347. package/dist/chunk-RFG5RMPL.js +0 -1
  348. package/dist/chunk-RVNMVBPM.js +0 -1
  349. package/dist/chunk-SBEZBZM7.js +0 -144
  350. package/dist/chunk-SGQ6D3LU.js +0 -15
  351. package/dist/chunk-TFSBQ4RY.js +0 -5
  352. package/dist/chunk-UGXYQ23Y.js +0 -1411
  353. package/dist/chunk-VS3T5YOG.js +0 -264
  354. package/dist/chunk-VWYM4OWK.js +0 -1
  355. package/dist/chunk-VY6SNDKW.js +0 -3
  356. package/dist/chunk-WFXRSKRK.js +0 -1
  357. package/dist/chunk-XBXMPFXM.js +0 -1
  358. package/dist/chunk-YC6G4MHD.js +0 -3
  359. package/dist/chunk-YI232QLS.js +0 -1
  360. package/dist/chunk-ZTMSBSYD.js +0 -1
  361. package/dist/chunk-ZV6NCNI4.js +0 -586
  362. package/dist/chunk-ZVJVDCIM.js +0 -1
  363. package/dist/conf-store-U5ZITKJN.js +0 -1
  364. package/dist/deprecations-TU5UQJVV.js +0 -1
  365. package/dist/dist-2Z5TND4U.js +0 -1
  366. package/dist/dist-GYHFDHKP.js +0 -1
  367. package/dist/environments-Z5PR7DSI.js +0 -1
  368. package/dist/error-IJGNYKZ3.js +0 -1
  369. package/dist/error-handler-WSCGNS2P.js +0 -1
  370. package/dist/fs-5BDEA2KD.js +0 -1
  371. package/dist/html-VSSXOZOQ.js +0 -25
  372. package/dist/is-global-V4ZRHQG2.js +0 -1
  373. package/dist/is-wsl-FVUIXDOK.js +0 -1
  374. package/dist/lib-5L7UKDEK.js +0 -1
  375. package/dist/local-6QPX4GCJ.js +0 -1
  376. package/dist/local-storage-JLXBZVWO.js +0 -1
  377. package/dist/node-package-manager-HAFRYGUM.js +0 -1
  378. package/dist/notifications-system-MP7WDOCS.js +0 -1
  379. package/dist/output-YGMHXEIS.js +0 -1
  380. package/dist/system-KLXD4FXF.js +0 -1
  381. package/dist/ui-GHG3UGB3.js +0 -1
  382. package/dist/upgrade-OPZGPM5J.js +0 -1
  383. package/dist/version-D5PJZIRW.js +0 -1
  384. package/dist/version-KRQBMYCH.js +0 -1
  385. /package/dist/{acorn-LOOAJL3S.js → acorn-QBS5IYTX.js} +0 -0
  386. /package/dist/{babel-URCL33XX.js → babel-JS32NLHY.js} +0 -0
  387. /package/dist/{flow-MLHT7MTJ.js → flow-M3Q2HPQT.js} +0 -0
  388. /package/dist/{glimmer-HAJ4HQCW.js → glimmer-3DEJJGOJ.js} +0 -0
  389. /package/dist/{graphql-F7IHGXDT.js → graphql-A4HHE3MB.js} +0 -0
  390. /package/dist/{meriyah-AYZQ3BGY.js → meriyah-23OZNYWC.js} +0 -0
  391. /package/dist/{typescript-ODJ335NU.js → typescript-YKZ232QT.js} +0 -0
  392. /package/dist/{yaml-BIHS2GQW.js → yaml-SJKIH3VD.js} +0 -0
@@ -0,0 +1 @@
1
+ import{Ab as c,Bb as d,Cb as e,yb as a,zb as b}from"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as currentProcessIsGlobal,e as getProjectDir,d as inferPackageManagerForGlobalCLI,c as installGlobalCLIPrompt,b as installGlobalShopifyCLI};
@@ -0,0 +1 @@
1
+ import{g as r}from"./chunk-VPRTJUIN.js";r();import f from"node:process";import d from"node:os";import s from"node:fs";r();import l from"node:fs";r();import i from"node:fs";var t;function u(){try{return i.statSync("/.dockerenv"),!0}catch{return!1}}function a(){try{return i.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function n(){return t===void 0&&(t=u()||a()),t}var o,m=()=>{try{return l.statSync("/run/.containerenv"),!0}catch{return!1}};function e(){return o===void 0&&(o=m()||n()),o}var c=()=>{if(f.platform!=="linux")return!1;if(d.release().toLowerCase().includes("microsoft"))return!e();try{if(s.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!e()}catch{}return s.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||s.existsSync("/run/WSL")?!e():!1},I=f.env.__IS_WSL_TEST__?c:c();export{I as default};
@@ -1,4 +1,4 @@
1
- import{a as cn}from"./chunk-KLMDWDT2.js";import{a as Oo}from"./chunk-FUOIGXI4.js";import{a as R,c as C,e as ee,g as f}from"./chunk-VPRTJUIN.js";var fn=C((Jt,Kt)=>{"use strict";f();Object.defineProperty(Jt,"__esModule",{value:!0});function Do(t){return t.encrypted}var Gt=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",s=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{n&&r.connect(),Do(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};Jt.default=Gt;Kt.exports=Gt;Kt.exports.default=Gt});var yn=C((il,mn)=>{"use strict";f();var Jo=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Ko=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Yo=new Set([500,502,503,504]),Qo={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Xo={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function te(t){let e=parseInt(t,10);return isFinite(e)?e:0}function Zo(t){return t?Yo.has(t.status):!0}function Xt(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[s,i]=n.split(/=/,2);e[s.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function ea(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}mn.exports=class{constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._ignoreCargoCult=!!o,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Xt(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Xt(e.headers["cache-control"]),this._ignoreCargoCult&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":ea(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&Ko.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||Jo.has(this._status)))}_hasExplicitExpiration(){return!!(this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires)}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){return!this.evaluateRequest(e).revalidation}_evaluateRequestHitResult(e){return{response:{headers:this.responseHeaders()},revalidation:e}}_evaluateRequestRevalidation(e,r){return{synchronous:r,headers:this.revalidationHeaders(e)}}_evaluateRequestMissResult(e){return{response:void 0,revalidation:this._evaluateRequestRevalidation(e,!0)}}evaluateRequest(e){if(this._assertRequestHasHeaders(e),this._rescc["must-revalidate"])return this._evaluateRequestMissResult(e);if(!this._requestMatches(e,!1))return this._evaluateRequestMissResult(e);let r=Xt(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)?this._evaluateRequestMissResult(e):r["max-age"]&&this.age()>te(r["max-age"])?this._evaluateRequestMissResult(e):r["min-fresh"]&&this.maxAge()-this.age()<te(r["min-fresh"])?this._evaluateRequestMissResult(e):this.stale()?"max-stale"in r&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge())?this._evaluateRequestHitResult(void 0):this.useStaleWhileRevalidate()?this._evaluateRequestHitResult(this._evaluateRequestRevalidation(e,!1)):this._evaluateRequestMissResult(e):this._evaluateRequestHitResult(void 0)}_requestMatches(e,r){return!!((!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e))}_allowsStoringAuthenticated(){return!!(this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"])}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Qo[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let s of n)delete r[s]}if(r.warning){let n=r.warning.split(/,/).filter(s=>!/^\s*1[0-9][0-9]/.test(s));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return te(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return te(this._rescc["s-maxage"])}if(this._rescc["max-age"])return te(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+te(this._rescc["stale-if-error"]),n=e+te(this._rescc["stale-while-revalidate"]);return Math.round(Math.max(0,e,r,n)*1e3)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+te(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){let e=te(this._rescc["stale-while-revalidate"]);return e>0&&this.maxAge()+e>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._ignoreCargoCult=!!e.icc,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,icc:this._ignoreCargoCult,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let s=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));s.length?r["if-none-match"]=s.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&Zo(r))return{policy:this,modified:!1,matches:!0};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0);let s={shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,ignoreCargoCult:this._ignoreCargoCult};if(!n)return{policy:new this.constructor(e,r,s),modified:r.status!=304,matches:!1};let i={};for(let a in this._resHeaders)i[a]=a in r.headers&&!Xo[a]?r.headers[a]:this._resHeaders[a];let o=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,o,s),modified:!1,matches:!0}}}});var gn=C(Zt=>{f();Zt.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var s=!0;for(var i in e){var o=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(s||(r+=","),s=!1,n?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Zt.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var En=C((ml,wn)=>{"use strict";f();var ra=R("events"),bn=gn(),na=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(R(e[r]))(t)}return new Map},_n=["sqlite","postgres","mysql","mongo","redis","tiered"],er=class extends ra{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:bn.stringify,deserialize:bn.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=na(i)}if(this.opts.compression){let i=this.opts.compression;this.opts.serialize=i.serialize.bind(i),this.opts.deserialize=i.deserialize.bind(i)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace;let s=i=>async function*(){for await(let[o,a]of typeof i=="function"?i(this.opts.store.namespace):i){let u=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=s(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=s(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return _n.includes(this.opts.store.opts.dialect)||_n.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,s=Array.isArray(e),i=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&n.getMany===void 0){let o=[];for(let a of i)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let l of a)u.push(l.value);return u})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return s?o.map((a,u)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[u]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,n){let s=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(s,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let s=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of s)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(s))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};wn.exports=er});var Rn=C((ql,On)=>{"use strict";f();var fa=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];On.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(fa)),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Pn=C((Ll,Cn)=>{"use strict";f();var{Transform:da,PassThrough:pa}=R("stream"),sr=R("zlib"),ma=Rn();Cn.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof sr.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new da({transform(a,u,l){n=!1,l(null,a)},flush(a){a()}}),i=new pa({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?sr.createBrotliDecompress():sr.createUnzip();return o.once("error",a=>{if(n&&!t.readable){i.end();return}i.destroy(a)}),ma(t,i),t.pipe(s).pipe(o).pipe(i),i}});var yr=C((Mf,zn)=>{"use strict";f();var mr=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,s]of this.oldCache.entries())this.onEviction(n,s);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};zn.exports=mr});var gr=C((Vf,Mn)=>{"use strict";f();Mn.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let n=r.pop();t.__destroy(...r,async s=>{await Promise.resolve(),n(s)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var le=C((Jf,Yn)=>{"use strict";f();var{URL:Wn}=R("url"),Ia=R("events"),Ha=R("tls"),Fa=R("http2"),Da=yr(),$a=gr(),K=Symbol("currentStreamCount"),Vn=Symbol("request"),Y=Symbol("cachedOriginSet"),ce=Symbol("gracefullyClosing"),xt=Symbol("length"),Gn=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],Ba=(t,e,r)=>{let n=0,s=t.length;for(;n<s;){let i=n+s>>>1;r(t[i],e)?n=i+1:s=i}return n},Ua=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,br=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[Y].length>0&&n[Y].length<e[Y].length&&n[Y].every(s=>e[Y].includes(s))&&n[K]+e[K]<=e.remoteSettings.maxConcurrentStreams&&Kn(n)}},Jn=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[Y].length>0&&e[Y].length<n[Y].length&&e[Y].every(s=>n[Y].includes(s))&&e[K]+n[K]<=n.remoteSettings.maxConcurrentStreams)return Kn(e),!0}return!1},Kn=t=>{t[ce]=!0,t[K]===0&&t.close()},Pe=class t extends Ia{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:n=10,maxCachedTlsSessions:s=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=n,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new Da({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<Gn.length;n++){let s=Gn[n];r+=":",e&&e[s]!==void 0&&(r+=e[s])}return r}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let r in this.queue[e]){let n=this.queue[e][r];n.completed||(n.completed=!0,n())}}_isBetterSession(e,r){return e>r}_accept(e,r,n,s){let i=0;for(;i<r.length&&e[K]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(n,s,r),r.length=0)}getSession(e,r,n){return new Promise((s,i)=>{Array.isArray(n)&&n.length>0?(n=[...n],s()):n=[{resolve:s,reject:i}];try{if(typeof e=="string")e=new Wn(e);else if(!(e instanceof Wn))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:d}=r,{hostname:g}=e;if(d&&g!==d)throw new Error(`Origin ${g} differs from servername ${d}`)}}catch(d){for(let g=0;g<n.length;g++)n[g].reject(d);return}let o=this.normalizeOptions(r),a=e.origin;if(o in this.sessions){let d=this.sessions[o],g=-1,m=-1,y;for(let b=0;b<d.length;b++){let p=d[b],v=p.remoteSettings.maxConcurrentStreams;if(v<g)break;if(!p[Y].includes(a))continue;let w=p[K];w>=v||p[ce]||p.destroyed||(y||(g=v),this._isBetterSession(w,m)&&(y=p,m=w))}if(y){this._accept(y,n,a,r);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n);return}}else this.queue[o]={[xt]:0};let u=()=>{o in this.queue&&this.queue[o][a]===l&&(delete this.queue[o][a],--this.queue[o][xt]===0&&delete this.queue[o])},l=async()=>{this._sessionCount++;let d=`${a}:${o}`,g=!1,m;try{let y={...r};y.settings===void 0&&(y.settings=this.settings),y.session===void 0&&(y.session=this.tlsSessionCache.get(d)),m=await(y.createConnection||this.createConnection).call(this,e,y),y.createConnection=()=>m;let p=Fa.connect(e,y);p[K]=0,p[ce]=!1;let v=()=>{let{socket:S}=p,x;return S.servername===!1?(S.servername=S.remoteAddress,x=p.originSet,S.servername=!1):x=p.originSet,x},w=()=>p[K]<p.remoteSettings.maxConcurrentStreams;p.socket.once("session",S=>{this.tlsSessionCache.set(d,S)}),p.once("error",S=>{for(let x=0;x<n.length;x++)n[x].reject(S);this.tlsSessionCache.delete(d)}),p.setTimeout(this.timeout,()=>{p.destroy()}),p.once("close",()=>{if(this._sessionCount--,g){this._emptySessionCount--;let S=this.sessions[o];S.length===1?delete this.sessions[o]:S.splice(S.indexOf(p),1)}else{u();let S=new Error("Session closed without receiving a SETTINGS frame");S.code="HTTP2WRAPPER_NOSETTINGS";for(let x=0;x<n.length;x++)n[x].reject(S)}this._processQueue()});let P=()=>{let S=this.queue[o];if(!S)return;let x=p[Y];for(let T=0;T<x.length;T++){let N=x[T];if(N in S){let{listeners:A,completed:Z}=S[N],O=0;for(;O<A.length&&w();)A[O].resolve(p),O++;if(S[N].listeners.splice(0,O),S[N].listeners.length===0&&!Z&&(delete S[N],--S[xt]===0)){delete this.queue[o];break}if(!w())break}}};p.on("origin",()=>{p[Y]=v()||[],p[ce]=!1,Jn(this.sessions[o],p),!(p[ce]||!w())&&(P(),w()&&br(this.sessions[o],p))}),p.once("remoteSettings",()=>{if(l.destroyed){let S=new Error("Agent has been destroyed");for(let x=0;x<n.length;x++)n[x].reject(S);p.destroy();return}if(p.setLocalWindowSize&&p.setLocalWindowSize(1024*1024*4),p[Y]=v()||[],p.socket.encrypted){let S=p[Y][0];if(S!==a){let x=new Error(`Requested origin ${a} does not match server ${S}`);for(let T=0;T<n.length;T++)n[T].reject(x);p.destroy();return}}u();{let S=this.sessions;if(o in S){let x=S[o];x.splice(Ba(x,p,Ua),0,p)}else S[o]=[p]}g=!0,this._emptySessionCount++,this.emit("session",p),this._accept(p,n,a,r),p[K]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),p.on("remoteSettings",()=>{w()&&(P(),w()&&br(this.sessions[o],p))})}),p[Vn]=p.request,p.request=(S,x)=>{if(p[ce])throw new Error("The session is gracefully closing. No new streams are allowed.");let T=p[Vn](S,x);return p.ref(),p[K]++===0&&this._emptySessionCount--,T.once("close",()=>{if(--p[K]===0&&(this._emptySessionCount++,p.unref(),this._emptySessionCount>this.maxEmptySessions||p[ce])){p.close();return}p.destroyed||p.closed||w()&&!Jn(this.sessions[o],p)&&(br(this.sessions[o],p),P(),p[K]===0&&this._processQueue())}),T}}catch(y){u(),this._sessionCount--;for(let b=0;b<n.length;b++)n[b].reject(y)}};l.listeners=n,l.completed=!1,l.destroyed=!1,this.queue[o][a]=l,this.queue[o][xt]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{let u=a.request(n,s);$a(u),i(u)}catch(u){o(u)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,s=e.hostname;typeof r.servername>"u"&&(r.servername=s);let i=Ha.connect(n,s,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:n}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:n}=this;for(let s in n){let i=n[s];for(let o=0;o<i.length;o++){let a=i[o];if(a[K]===0&&(r++,a.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:n}=this;for(let s in r){let i=r[s];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let s in n){let i=n[s];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Pe.kCurrentStreamCount=K;Pe.kGracefullyClosing=ce;Yn.exports={Agent:Pe,globalAgent:new Pe}});var wr=C((Yf,Qn)=>{"use strict";f();var{Readable:za}=R("stream"),_r=class extends za{constructor(e,r){super({emitClose:!1,autoDestroy:!0,highWaterMark:r}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,r){this.readableEnded||(this.aborted=!0),r(),this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Qn.exports=_r});var Zn=C((Xf,Xn)=>{"use strict";f();Xn.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var Ze=C((td,es)=>{"use strict";f();var fe=(t,e,r)=>{es.exports[e]=class extends t{constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}};fe(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});fe(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);fe(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);fe(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);fe(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);fe(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);fe(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var rs=C((nd,ts)=>{"use strict";f();ts.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Er=C((id,ns)=>{"use strict";f();var{ERR_INVALID_HTTP_TOKEN:Ma}=Ze(),Wa=rs(),Va=/^[\^`\-\w!#$%&*+.|~]+$/;ns.exports=t=>{if(typeof t!="string"||!Va.test(t)&&!Wa(t))throw new Ma("Header name",t)}});var Sr=C((ad,ss)=>{"use strict";f();var{ERR_HTTP_INVALID_HEADER_VALUE:Ga,ERR_INVALID_CHAR:Ja}=Ze(),Ka=/[^\t\u0020-\u007E\u0080-\u00FF]/;ss.exports=(t,e)=>{if(typeof e>"u")throw new Ga(e,t);if(Ka.test(e))throw new Ja("header content",t)}});var as=C((ud,os)=>{"use strict";f();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:is}=Ze(),Ya={has(t,e){let r=t.session===void 0?t:t.session.socket;return e in t||e in r},get(t,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return t[e].bind(t);case"writable":case"destroyed":return t[e];case"readable":return t.destroyed?!1:t.readable;case"setTimeout":{let{session:r}=t;return r!==void 0?r.setTimeout.bind(r):t.setTimeout.bind(t)}case"write":case"read":case"pause":case"resume":throw new is;default:{let r=t.session===void 0?t:t.session.socket,n=r[e];return typeof n=="function"?n.bind(r):n}}},getPrototypeOf(t){return t.session!==void 0?Reflect.getPrototypeOf(t.session.socket):Reflect.getPrototypeOf(t)},set(t,e,r){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return t[e]=r,!0;case"setTimeout":{let{session:n}=t;return n===void 0?t.setTimeout=r:n.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new is;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};os.exports=Ya});var Rr=C((ld,ds)=>{"use strict";f();var{URL:xr,urlToHttpOptions:cs}=R("url"),Qa=R("http2"),{Writable:Xa}=R("stream"),{Agent:Za,globalAgent:ec}=le(),tc=wr(),rc=Zn(),{ERR_INVALID_ARG_TYPE:vt,ERR_INVALID_PROTOCOL:nc,ERR_HTTP_HEADERS_SENT:us}=Ze(),sc=Er(),ic=Sr(),oc=as(),{HTTP2_HEADER_STATUS:hs,HTTP2_HEADER_METHOD:ls,HTTP2_HEADER_PATH:fs,HTTP2_HEADER_AUTHORITY:et,HTTP2_METHOD_CONNECT:ac}=Qa.constants,V=Symbol("headers"),Te=Symbol("origin"),tt=Symbol("session"),vr=Symbol("options"),Ot=Symbol("flushedHeaders"),Ae=Symbol("jobs"),rt=Symbol("pendingAgentPromise"),Or=class extends Xa{constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=cs(new xr(e)):e instanceof xr?e=cs(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[tt]=r.h2session,this[tt].destroyed)throw new Error("The session has been closed already");this.protocol=this[tt].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new Za({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=ec;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new vt("options.agent",["http2wrapper.Agent-like Object","undefined","false"],r.agent);if(this.agent&&(this.protocol=this.agent.protocol),r.protocol&&r.protocol!==this.protocol)throw new nc(r.protocol,this.protocol);r.port||(r.port=r.defaultPort||this.agent&&this.agent.defaultPort||443),r.host=r.hostname||r.host||"localhost",delete r.hostname;let{timeout:s}=r;r.timeout=void 0,this[V]=Object.create(null),this[Ae]=[],this[rt]=void 0,this.socket=null,this.connection=null,this.method=r.method||"GET",this.method==="CONNECT"&&(r.path==="/"||r.path===void 0)||(this.path=r.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:i}=r;if(i)for(let a in i)this.setHeader(a,i[a]);r.auth&&!("authorization"in this[V])&&(this[V].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[vr]=r,this[Te]=new xr(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...a)=>o.destroyed?this.agent.createConnection(...a):o,this.agent.getSession(this[Te],this[vr]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[Ot]=!1}get method(){return this[V][ls]}set method(e){e&&(this[V][ls]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?et:fs;return this[V][e]}set path(e){if(e){let r=this.method==="CONNECT"?et:fs;this[V][r]=e}}get host(){return this[Te].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let s=()=>this._request.write(e,r,n);this._request?s():this[Ae].push(s)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Ae].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,r){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[rt]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[Ot]||this.destroyed)return;this[Ot]=!0;let e=this.method===ac,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||rc(n,this,["timeout","continue"]),n.once("error",i=>{this.destroy(i)}),n.once("aborted",()=>{let{res:i}=this;i?(i.aborted=!0,i.emit("aborted"),i.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let s=(i,o,a)=>{let u=new tc(this.socket,n.readableHighWaterMark);this.res=u,u.url=`${this[Te].origin}${this.path}`,u.req=this,u.statusCode=i[hs],u.headers=i,u.rawHeaders=a,u.once("end",()=>{u.complete=!0,u.socket=null,u.connection=null}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!u._dumped&&!u.push(l)&&n.pause()}),n.once("end",()=>{this.aborted||u.push(null)}),this.emit("response",u)||u._dump())};n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[hs]})),n.once("trailers",(i,o,a)=>{let{res:u}=this;if(u===null){s(i,o,a);return}u.trailers=i,u.rawTrailers=a}),n.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let a=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.once("end",a):a();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(n,oc);for(let i of this[Ae])i();this[Ae].length=0,this.emit("socket",this.socket)};if(!(et in this[V])&&!e&&(this[V][et]=this[Te].host),this[tt])try{r(this[tt].request(this[V]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Te],this[vr],this[V]);this[rt]=n,r(await n),this[rt]=!1}catch(n){this[rt]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[V])}hasHeader(e){if(typeof e!="string")throw new vt("name","string",e);return!!this[V][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new vt("name","string",e);return this[V][e.toLowerCase()]}get headersSent(){return this[Ot]}removeHeader(e){if(typeof e!="string")throw new vt("name","string",e);if(this.headersSent)throw new us("remove");delete this[V][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new us("set");sc(e),ic(e,r);let n=e.toLowerCase();if(n==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}n==="host"&&this.method==="CONNECT"?this[V][et]=r:this[V][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ae].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};ds.exports=Or});var ms=C((dd,ps)=>{"use strict";f();var cc=R("tls");ps.exports=(t={},e=cc.connect)=>new Promise((r,n)=>{let s=!1,i,o=async()=>{await u,i.off("timeout",a),i.off("error",n),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:s}),s&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:s}))},a=async()=>{s=!0,o()},u=(async()=>{try{i=await e(t,o),i.on("error",n),i.once("timeout",a)}catch(l){n(l)}})()})});var gs=C((md,ys)=>{"use strict";f();var{isIP:uc}=R("net"),hc=R("assert"),lc=t=>{if(t[0]==="["){let r=t.indexOf("]");return hc(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};ys.exports=t=>{let e=lc(t);return uc(e)?"":e}});var Os=C((gd,nt)=>{"use strict";f();var{URL:bs,urlToHttpOptions:_s}=R("url"),ws=R("http"),Cr=R("https"),fc=ms(),dc=yr(),{Agent:pc,globalAgent:mc}=le(),yc=Rr(),gc=gs(),Es=gr(),Ss=new dc({maxSize:100}),bc=new Map,_c=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let s=()=>{t.removeSocket(e,r)};e.on("close",s);let i=()=>{let{freeSockets:a}=t;for(let u of Object.values(a))if(u.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},xs=(t,e=new Map,r=void 0)=>async n=>{let s=`${n.host}:${n.port}:${n.ALPNProtocols.sort()}`;if(!t.has(s)){if(e.has(s))return{alpnProtocol:(await e.get(s)).alpnProtocol};let{path:i}=n;n.path=n.socketPath;let o=fc(n,r);e.set(s,o);try{let a=await o;return t.set(s,a.alpnProtocol),e.delete(s),n.path=i,a}catch(a){throw e.delete(s),n.path=i,a}}return{alpnProtocol:t.get(s)}},vs=xs(Ss,bc);nt.exports=async(t,e,r)=>{if(typeof t=="string"?t=_s(new bs(t)):t instanceof bs?t=_s(t):t={...t},typeof e=="function"||e===void 0?(r=e,e=t):e=Object.assign(t,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||gc(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?Cr.globalAgent:ws.globalAgent;let s=e.resolveProtocol||vs,{agent:i}=e;if(i!==void 0&&i!==!1&&i.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(n){e.resolveSocket=!0;let{socket:o,alpnProtocol:a,timeout:u}=await s(e);if(u){o&&o.destroy();let d=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw d.code="ETIMEDOUT",d.ms=e.timeout,d}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let l=a==="h2";if(i&&(i=l?i.http2:i.https,e.agent=i),i===void 0&&(i=l?mc:Cr.globalAgent),o)if(i===!1)o.destroy();else{let d=(l?pc:Cr.Agent).prototype.createConnection;i.createConnection===d?l?e._reuseSocket=o:_c(i,o,e):o.destroy()}if(l)return Es(new yc(e,r))}else i&&(e.agent=i.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),Es(ws.request(e,r))};nt.exports.protocolCache=Ss;nt.exports.resolveProtocol=vs;nt.exports.createResolveProtocol=xs});var Pr=C((_d,Rs)=>{"use strict";f();var wc=R("stream"),Ec=R("tls"),Sc=new Ec.TLSSocket(new wc.PassThrough)._handle._parentWrap.constructor;Rs.exports=Sc});var Ar=C((Ed,Cs)=>{"use strict";f();var Tr=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};Cs.exports=Tr});var Ts=C((xd,Ps)=>{"use strict";f();var xc=(t,e,r)=>{if(!r.some(s=>typeof s==="string"?typeof e===s:e instanceof s)){let s=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${s.join(" or ")}, got ${typeof e}`)}};Ps.exports=xc});var kr=C((Od,ks)=>{"use strict";f();var{URL:As}=R("url"),Rt=Ts();ks.exports=(t,e)=>{Rt("proxyOptions",e,["object"]),Rt("proxyOptions.headers",e.headers,["object","undefined"]),Rt("proxyOptions.raw",e.raw,["boolean","undefined"]),Rt("proxyOptions.url",e.url,[As,"string"]);let r=new As(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var Ct=C((Cd,js)=>{"use strict";f();js.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let n=`${e}:${r}`,s=`Basic ${Buffer.from(n).toString("base64")}`;return{"proxy-authorization":s,authorization:s}}return{}}});var Hs=C((Td,Is)=>{"use strict";f();var vc=R("tls"),Oc=R("http"),qs=R("https"),Rc=Pr(),{globalAgent:Cc}=le(),Pc=Ar(),Ns=kr(),Tc=Ct(),Ls=(t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:o}=n,a=await Cc.request(s,n,{...Tc(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",u=>{let l=u[":status"];if(l!==200){r(new Pc(l,""));return}let d=t instanceof qs.Agent;if(o&&d){e.socket=a;let m=vc.connect(e);m.once("close",()=>{a.destroy()}),r(null,m);return}let g=new Rc(a);g.encrypted=!1,g._handle.getpeername=m=>{m.family=void 0,m.address=void 0,m.port=void 0},r(null,g)})}catch(n){r(n)}})()},jr=class extends Oc.Agent{constructor(e){super(e),Ns(this,e.proxyOptions)}createConnection(e,r){Ls(this,e,r)}},qr=class extends qs.Agent{constructor(e){super(e),Ns(this,e.proxyOptions)}createConnection(e,r){Ls(this,e,r)}};Is.exports={HttpOverHttp2:jr,HttpsOverHttp2:qr}});var Lr=C((kd,Fs)=>{"use strict";f();var{Agent:Ac}=le(),kc=Pr(),jc=Ar(),qc=kr(),Nr=class extends Ac{constructor(e){super(e),qc(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,o]=await this._getProxyStream(n);if(i!==200)throw new jc(i,o);if(this.proxyOptions.raw)r.socket=s;else{let a=new kc(s);return a.encrypted=!1,a._handle.getpeername=u=>{u.family=void 0,u.address=void 0,u.port=void 0},a}return super.createConnection(e,r)}};Fs.exports=Nr});var $s=C((qd,Ds)=>{"use strict";f();var{globalAgent:Nc}=le(),Lc=Lr(),Ic=Ct(),Hc=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),Ir=class extends Lc{async _getProxyStream(e){let{proxyOptions:r}=this,n={...Ic(this),...r.headers,":method":"CONNECT",":authority":e},s=await Nc.request(r.url,r,n),i=await Hc(s);return[s,i,""]}};Ds.exports=Ir});var Us=C((Ld,Bs)=>{"use strict";f();var Fc=R("http"),Dc=R("https"),$c=Lr(),Bc=Ct(),Uc=t=>new Promise((e,r)=>{let n=(s,i,o)=>{i.unshift(o),t.off("error",r),e([i,s.statusCode,s.statusMessage])};t.once("error",r),t.once("connect",n)}),Pt=class extends $c{async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,o=(n.protocol==="https:"?Dc:Fc).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...Bc(this),...s,host:e},method:"CONNECT"}).end();return Uc(o)}};Bs.exports={Http2OverHttp:Pt,Http2OverHttps:Pt}});var Ms=C((Hd,zs)=>{"use strict";f();var zc=R("http2"),{Agent:Mc,globalAgent:Wc}=le(),Hr=Rr(),Vc=wr(),Gc=Os(),{HttpOverHttp2:Jc,HttpsOverHttp2:Kc}=Hs(),Yc=$s(),{Http2OverHttp:Qc,Http2OverHttps:Xc}=Us(),Zc=Er(),eu=Sr(),tu=(t,e,r)=>new Hr(t,e,r),ru=(t,e,r)=>{let n=new Hr(t,e,r);return n.end(),n};zs.exports={...zc,ClientRequest:Hr,IncomingMessage:Vc,Agent:Mc,globalAgent:Wc,request:tu,get:ru,auto:Gc,proxies:{HttpOverHttp2:Jc,HttpsOverHttp2:Kc,Http2OverHttp2:Yc,Http2OverHttp:Qc,Http2OverHttps:Xc},validateHeaderName:Zc,validateHeaderValue:eu}});var zr=C(pe=>{f();pe.parse=pe.decode=qu;pe.stringify=pe.encode=si;pe.safe=je;pe.unsafe=Lt;var Ur=typeof process<"u"&&process.platform==="win32"?`\r
1
+ import{a as cn}from"./chunk-KLMDWDT2.js";import{a as Oo}from"./chunk-H4W4DFKK.js";import{a as R,c as C,e as ee,g as f}from"./chunk-VPRTJUIN.js";var fn=C((Jt,Kt)=>{"use strict";f();Object.defineProperty(Jt,"__esModule",{value:!0});function Do(t){return t.encrypted}var Gt=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",s=typeof r.secureConnect=="function",i=typeof r.close=="function",o=()=>{n&&r.connect(),Do(t)&&s&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),i&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&i&&r.close(t._hadError)};Jt.default=Gt;Kt.exports=Gt;Kt.exports.default=Gt});var yn=C((il,mn)=>{"use strict";f();var Jo=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Ko=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),Yo=new Set([500,502,503,504]),Qo={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},Xo={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function te(t){let e=parseInt(t,10);return isFinite(e)?e:0}function Zo(t){return t?Yo.has(t.status):!0}function Xt(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[s,i]=n.split(/=/,2);e[s.trim()]=i===void 0?!0:i.trim().replace(/^"|"$/g,"")}return e}function ea(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}mn.exports=class{constructor(e,r,{shared:n,cacheHeuristic:s,immutableMinTimeToLive:i,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._ignoreCargoCult=!!o,this._cacheHeuristic=s!==void 0?s:.1,this._immutableMinTtl=i!==void 0?i:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Xt(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Xt(e.headers["cache-control"]),this._ignoreCargoCult&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":ea(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&Ko.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||Jo.has(this._status)))}_hasExplicitExpiration(){return!!(this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires)}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){return!this.evaluateRequest(e).revalidation}_evaluateRequestHitResult(e){return{response:{headers:this.responseHeaders()},revalidation:e}}_evaluateRequestRevalidation(e,r){return{synchronous:r,headers:this.revalidationHeaders(e)}}_evaluateRequestMissResult(e){return{response:void 0,revalidation:this._evaluateRequestRevalidation(e,!0)}}evaluateRequest(e){if(this._assertRequestHasHeaders(e),this._rescc["must-revalidate"])return this._evaluateRequestMissResult(e);if(!this._requestMatches(e,!1))return this._evaluateRequestMissResult(e);let r=Xt(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)?this._evaluateRequestMissResult(e):r["max-age"]&&this.age()>te(r["max-age"])?this._evaluateRequestMissResult(e):r["min-fresh"]&&this.maxAge()-this.age()<te(r["min-fresh"])?this._evaluateRequestMissResult(e):this.stale()?"max-stale"in r&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge())?this._evaluateRequestHitResult(void 0):this.useStaleWhileRevalidate()?this._evaluateRequestHitResult(this._evaluateRequestRevalidation(e,!1)):this._evaluateRequestMissResult(e):this._evaluateRequestHitResult(void 0)}_requestMatches(e,r){return!!((!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e))}_allowsStoringAuthenticated(){return!!(this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"])}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Qo[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let s of n)delete r[s]}if(r.warning){let n=r.warning.split(/,/).filter(s=>!/^\s*1[0-9][0-9]/.test(s));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return te(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return te(this._rescc["s-maxage"])}if(this._rescc["max-age"])return te(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+te(this._rescc["stale-if-error"]),n=e+te(this._rescc["stale-while-revalidate"]);return Math.round(Math.max(0,e,r,n)*1e3)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+te(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){let e=te(this._rescc["stale-while-revalidate"]);return e>0&&this.maxAge()+e>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._ignoreCargoCult=!!e.icc,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,icc:this._ignoreCargoCult,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let s=r["if-none-match"].split(/,/).filter(i=>!/^\s*W\//.test(i));s.length?r["if-none-match"]=s.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&Zo(r))return{policy:this,modified:!1,matches:!0};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0);let s={shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,ignoreCargoCult:this._ignoreCargoCult};if(!n)return{policy:new this.constructor(e,r,s),modified:r.status!=304,matches:!1};let i={};for(let a in this._resHeaders)i[a]=a in r.headers&&!Xo[a]?r.headers[a]:this._resHeaders[a];let o=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,o,s),modified:!1,matches:!0}}}});var gn=C(Zt=>{f();Zt.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var s=!0;for(var i in e){var o=typeof e[i]=="function"||!n&&typeof e[i]>"u";Object.hasOwnProperty.call(e,i)&&!o&&(s||(r+=","),s=!1,n?e[i]==null?r+="null":r+=t(e[i]):e[i]!==void 0&&(r+=t(i)+":"+t(e[i])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Zt.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var En=C((ml,wn)=>{"use strict";f();var ra=R("events"),bn=gn(),na=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(R(e[r]))(t)}return new Map},_n=["sqlite","postgres","mysql","mongo","redis","tiered"],er=class extends ra{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:bn.stringify,deserialize:bn.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let i={...this.opts};this.opts.store=na(i)}if(this.opts.compression){let i=this.opts.compression;this.opts.serialize=i.serialize.bind(i),this.opts.deserialize=i.deserialize.bind(i)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",i=>this.emit("error",i)),this.opts.store.namespace=this.opts.namespace;let s=i=>async function*(){for await(let[o,a]of typeof i=="function"?i(this.opts.store.namespace):i){let u=await this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=s(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=s(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return _n.includes(this.opts.store.opts.dialect)||_n.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,s=Array.isArray(e),i=s?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(s&&n.getMany===void 0){let o=[];for(let a of i)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let l of a)u.push(l.value);return u})}return Promise.resolve().then(()=>s?n.getMany(i):n.get(i)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null)return s?o.map((a,u)=>{if(typeof a=="string"&&(a=this.opts.deserialize(a)),a!=null){if(typeof a.expires=="number"&&Date.now()>a.expires){this.delete(e[u]).then(()=>{});return}return r&&r.raw?a:a.value}}):typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value})}set(e,r,n){let s=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>i.set(s,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let s=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let i=[];for(let o of s)i.push(r.delete(o));return Promise.allSettled(i).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(s))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};wn.exports=er});var Rn=C((ql,On)=>{"use strict";f();var fa=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];On.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(fa)),n={};for(let s of r)s in e||(n[s]={get(){let i=t[s];return typeof i=="function"?i.bind(t):i},set(i){t[s]=i},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var Pn=C((Ll,Cn)=>{"use strict";f();var{Transform:da,PassThrough:pa}=R("stream"),sr=R("zlib"),ma=Rn();Cn.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof sr.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,s=new da({transform(a,u,l){n=!1,l(null,a)},flush(a){a()}}),i=new pa({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?sr.createBrotliDecompress():sr.createUnzip();return o.once("error",a=>{if(n&&!t.readable){i.end();return}i.destroy(a)}),ma(t,i),t.pipe(s).pipe(o).pipe(i),i}});var yr=C((Mf,zn)=>{"use strict";f();var mr=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,s]of this.oldCache.entries())this.onEviction(n,s);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};zn.exports=mr});var gr=C((Vf,Mn)=>{"use strict";f();Mn.exports=t=>{if(t.listenerCount("error")!==0)return t;t.__destroy=t._destroy,t._destroy=(...r)=>{let n=r.pop();t.__destroy(...r,async s=>{await Promise.resolve(),n(s)})};let e=r=>{Promise.resolve().then(()=>{t.emit("error",r)})};return t.once("error",e),Promise.resolve().then(()=>{t.off("error",e)}),t}});var le=C((Jf,Yn)=>{"use strict";f();var{URL:Wn}=R("url"),Ia=R("events"),Ha=R("tls"),Fa=R("http2"),Da=yr(),$a=gr(),K=Symbol("currentStreamCount"),Vn=Symbol("request"),Y=Symbol("cachedOriginSet"),ce=Symbol("gracefullyClosing"),xt=Symbol("length"),Gn=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],Ba=(t,e,r)=>{let n=0,s=t.length;for(;n<s;){let i=n+s>>>1;r(t[i],e)?n=i+1:s=i}return n},Ua=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,br=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];n[Y].length>0&&n[Y].length<e[Y].length&&n[Y].every(s=>e[Y].includes(s))&&n[K]+e[K]<=e.remoteSettings.maxConcurrentStreams&&Kn(n)}},Jn=(t,e)=>{for(let r=0;r<t.length;r++){let n=t[r];if(e[Y].length>0&&e[Y].length<n[Y].length&&e[Y].every(s=>n[Y].includes(s))&&e[K]+n[K]<=n.remoteSettings.maxConcurrentStreams)return Kn(e),!0}return!1},Kn=t=>{t[ce]=!0,t[K]===0&&t.close()},Pe=class t extends Ia{constructor({timeout:e=0,maxSessions:r=Number.POSITIVE_INFINITY,maxEmptySessions:n=10,maxCachedTlsSessions:s=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxEmptySessions=n,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new Da({maxSize:s})}get protocol(){return"https:"}normalizeOptions(e){let r="";for(let n=0;n<Gn.length;n++){let s=Gn[n];r+=":",e&&e[s]!==void 0&&(r+=e[s])}return r}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let r in this.queue[e]){let n=this.queue[e][r];n.completed||(n.completed=!0,n())}}_isBetterSession(e,r){return e>r}_accept(e,r,n,s){let i=0;for(;i<r.length&&e[K]<e.remoteSettings.maxConcurrentStreams;)r[i].resolve(e),i++;r.splice(0,i),r.length>0&&(this.getSession(n,s,r),r.length=0)}getSession(e,r,n){return new Promise((s,i)=>{Array.isArray(n)&&n.length>0?(n=[...n],s()):n=[{resolve:s,reject:i}];try{if(typeof e=="string")e=new Wn(e);else if(!(e instanceof Wn))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(r){let{servername:d}=r,{hostname:g}=e;if(d&&g!==d)throw new Error(`Origin ${g} differs from servername ${d}`)}}catch(d){for(let g=0;g<n.length;g++)n[g].reject(d);return}let o=this.normalizeOptions(r),a=e.origin;if(o in this.sessions){let d=this.sessions[o],g=-1,m=-1,y;for(let b=0;b<d.length;b++){let p=d[b],v=p.remoteSettings.maxConcurrentStreams;if(v<g)break;if(!p[Y].includes(a))continue;let w=p[K];w>=v||p[ce]||p.destroyed||(y||(g=v),this._isBetterSession(w,m)&&(y=p,m=w))}if(y){this._accept(y,n,a,r);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n);return}}else this.queue[o]={[xt]:0};let u=()=>{o in this.queue&&this.queue[o][a]===l&&(delete this.queue[o][a],--this.queue[o][xt]===0&&delete this.queue[o])},l=async()=>{this._sessionCount++;let d=`${a}:${o}`,g=!1,m;try{let y={...r};y.settings===void 0&&(y.settings=this.settings),y.session===void 0&&(y.session=this.tlsSessionCache.get(d)),m=await(y.createConnection||this.createConnection).call(this,e,y),y.createConnection=()=>m;let p=Fa.connect(e,y);p[K]=0,p[ce]=!1;let v=()=>{let{socket:S}=p,x;return S.servername===!1?(S.servername=S.remoteAddress,x=p.originSet,S.servername=!1):x=p.originSet,x},w=()=>p[K]<p.remoteSettings.maxConcurrentStreams;p.socket.once("session",S=>{this.tlsSessionCache.set(d,S)}),p.once("error",S=>{for(let x=0;x<n.length;x++)n[x].reject(S);this.tlsSessionCache.delete(d)}),p.setTimeout(this.timeout,()=>{p.destroy()}),p.once("close",()=>{if(this._sessionCount--,g){this._emptySessionCount--;let S=this.sessions[o];S.length===1?delete this.sessions[o]:S.splice(S.indexOf(p),1)}else{u();let S=new Error("Session closed without receiving a SETTINGS frame");S.code="HTTP2WRAPPER_NOSETTINGS";for(let x=0;x<n.length;x++)n[x].reject(S)}this._processQueue()});let P=()=>{let S=this.queue[o];if(!S)return;let x=p[Y];for(let T=0;T<x.length;T++){let N=x[T];if(N in S){let{listeners:A,completed:Z}=S[N],O=0;for(;O<A.length&&w();)A[O].resolve(p),O++;if(S[N].listeners.splice(0,O),S[N].listeners.length===0&&!Z&&(delete S[N],--S[xt]===0)){delete this.queue[o];break}if(!w())break}}};p.on("origin",()=>{p[Y]=v()||[],p[ce]=!1,Jn(this.sessions[o],p),!(p[ce]||!w())&&(P(),w()&&br(this.sessions[o],p))}),p.once("remoteSettings",()=>{if(l.destroyed){let S=new Error("Agent has been destroyed");for(let x=0;x<n.length;x++)n[x].reject(S);p.destroy();return}if(p.setLocalWindowSize&&p.setLocalWindowSize(1024*1024*4),p[Y]=v()||[],p.socket.encrypted){let S=p[Y][0];if(S!==a){let x=new Error(`Requested origin ${a} does not match server ${S}`);for(let T=0;T<n.length;T++)n[T].reject(x);p.destroy();return}}u();{let S=this.sessions;if(o in S){let x=S[o];x.splice(Ba(x,p,Ua),0,p)}else S[o]=[p]}g=!0,this._emptySessionCount++,this.emit("session",p),this._accept(p,n,a,r),p[K]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),p.on("remoteSettings",()=>{w()&&(P(),w()&&br(this.sessions[o],p))})}),p[Vn]=p.request,p.request=(S,x)=>{if(p[ce])throw new Error("The session is gracefully closing. No new streams are allowed.");let T=p[Vn](S,x);return p.ref(),p[K]++===0&&this._emptySessionCount--,T.once("close",()=>{if(--p[K]===0&&(this._emptySessionCount++,p.unref(),this._emptySessionCount>this.maxEmptySessions||p[ce])){p.close();return}p.destroyed||p.closed||w()&&!Jn(this.sessions[o],p)&&(br(this.sessions[o],p),P(),p[K]===0&&this._processQueue())}),T}}catch(y){u(),this._sessionCount--;for(let b=0;b<n.length;b++)n[b].reject(y)}};l.listeners=n,l.completed=!1,l.destroyed=!1,this.queue[o][a]=l,this.queue[o][xt]++,this._processQueue()})}request(e,r,n,s){return new Promise((i,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{let u=a.request(n,s);$a(u),i(u)}catch(u){o(u)}}}])})}async createConnection(e,r){return t.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,s=e.hostname;typeof r.servername>"u"&&(r.servername=s);let i=Ha.connect(n,s,r);return r.socket&&(i._peername={family:void 0,address:void 0,port:n}),i}closeEmptySessions(e=Number.POSITIVE_INFINITY){let r=0,{sessions:n}=this;for(let s in n){let i=n[s];for(let o=0;o<i.length;o++){let a=i[o];if(a[K]===0&&(r++,a.close(),r>=e))return r}}return r}destroy(e){let{sessions:r,queue:n}=this;for(let s in r){let i=r[s];for(let o=0;o<i.length;o++)i[o].destroy(e)}for(let s in n){let i=n[s];for(let o in i)i[o].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Pe.kCurrentStreamCount=K;Pe.kGracefullyClosing=ce;Yn.exports={Agent:Pe,globalAgent:new Pe}});var wr=C((Yf,Qn)=>{"use strict";f();var{Readable:za}=R("stream"),_r=class extends za{constructor(e,r){super({emitClose:!1,autoDestroy:!0,highWaterMark:r}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,r){this.readableEnded||(this.aborted=!0),r(),this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Qn.exports=_r});var Zn=C((Xf,Xn)=>{"use strict";f();Xn.exports=(t,e,r)=>{for(let n of r)t.on(n,(...s)=>e.emit(n,...s))}});var Ze=C((td,es)=>{"use strict";f();var fe=(t,e,r)=>{es.exports[e]=class extends t{constructor(...s){super(typeof r=="string"?r:r(s)),this.name=`${super.name} [${e}]`,this.code=e}}};fe(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});fe(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);fe(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);fe(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);fe(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);fe(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`);fe(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var rs=C((nd,ts)=>{"use strict";f();ts.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var Er=C((id,ns)=>{"use strict";f();var{ERR_INVALID_HTTP_TOKEN:Ma}=Ze(),Wa=rs(),Va=/^[\^`\-\w!#$%&*+.|~]+$/;ns.exports=t=>{if(typeof t!="string"||!Va.test(t)&&!Wa(t))throw new Ma("Header name",t)}});var Sr=C((ad,ss)=>{"use strict";f();var{ERR_HTTP_INVALID_HEADER_VALUE:Ga,ERR_INVALID_CHAR:Ja}=Ze(),Ka=/[^\t\u0020-\u007E\u0080-\u00FF]/;ss.exports=(t,e)=>{if(typeof e>"u")throw new Ga(e,t);if(Ka.test(e))throw new Ja("header content",t)}});var as=C((ud,os)=>{"use strict";f();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:is}=Ze(),Ya={has(t,e){let r=t.session===void 0?t:t.session.socket;return e in t||e in r},get(t,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return t[e].bind(t);case"writable":case"destroyed":return t[e];case"readable":return t.destroyed?!1:t.readable;case"setTimeout":{let{session:r}=t;return r!==void 0?r.setTimeout.bind(r):t.setTimeout.bind(t)}case"write":case"read":case"pause":case"resume":throw new is;default:{let r=t.session===void 0?t:t.session.socket,n=r[e];return typeof n=="function"?n.bind(r):n}}},getPrototypeOf(t){return t.session!==void 0?Reflect.getPrototypeOf(t.session.socket):Reflect.getPrototypeOf(t)},set(t,e,r){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return t[e]=r,!0;case"setTimeout":{let{session:n}=t;return n===void 0?t.setTimeout=r:n.setTimeout=r,!0}case"write":case"read":case"pause":case"resume":throw new is;default:{let n=t.session===void 0?t:t.session.socket;return n[e]=r,!0}}}};os.exports=Ya});var Rr=C((ld,ds)=>{"use strict";f();var{URL:xr,urlToHttpOptions:cs}=R("url"),Qa=R("http2"),{Writable:Xa}=R("stream"),{Agent:Za,globalAgent:ec}=le(),tc=wr(),rc=Zn(),{ERR_INVALID_ARG_TYPE:vt,ERR_INVALID_PROTOCOL:nc,ERR_HTTP_HEADERS_SENT:us}=Ze(),sc=Er(),ic=Sr(),oc=as(),{HTTP2_HEADER_STATUS:hs,HTTP2_HEADER_METHOD:ls,HTTP2_HEADER_PATH:fs,HTTP2_HEADER_AUTHORITY:et,HTTP2_METHOD_CONNECT:ac}=Qa.constants,V=Symbol("headers"),Te=Symbol("origin"),tt=Symbol("session"),vr=Symbol("options"),Ot=Symbol("flushedHeaders"),Ae=Symbol("jobs"),rt=Symbol("pendingAgentPromise"),Or=class extends Xa{constructor(e,r,n){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=cs(new xr(e)):e instanceof xr?e=cs(e):e={...e},typeof r=="function"||r===void 0?(n=r,r=e):r=Object.assign(e,r),r.h2session){if(this[tt]=r.h2session,this[tt].destroyed)throw new Error("The session has been closed already");this.protocol=this[tt].socket.encrypted?"https:":"http:"}else if(r.agent===!1)this.agent=new Za({maxEmptySessions:0});else if(typeof r.agent>"u"||r.agent===null)this.agent=ec;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new vt("options.agent",["http2wrapper.Agent-like Object","undefined","false"],r.agent);if(this.agent&&(this.protocol=this.agent.protocol),r.protocol&&r.protocol!==this.protocol)throw new nc(r.protocol,this.protocol);r.port||(r.port=r.defaultPort||this.agent&&this.agent.defaultPort||443),r.host=r.hostname||r.host||"localhost",delete r.hostname;let{timeout:s}=r;r.timeout=void 0,this[V]=Object.create(null),this[Ae]=[],this[rt]=void 0,this.socket=null,this.connection=null,this.method=r.method||"GET",this.method==="CONNECT"&&(r.path==="/"||r.path===void 0)||(this.path=r.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:i}=r;if(i)for(let a in i)this.setHeader(a,i[a]);r.auth&&!("authorization"in this[V])&&(this[V].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[vr]=r,this[Te]=new xr(`${this.protocol}//${r.servername||r.host}:${r.port}`);let o=r._reuseSocket;o&&(r.createConnection=(...a)=>o.destroyed?this.agent.createConnection(...a):o,this.agent.getSession(this[Te],this[vr]).catch(()=>{})),s&&this.setTimeout(s),n&&this.once("response",n),this[Ot]=!1}get method(){return this[V][ls]}set method(e){e&&(this[V][ls]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?et:fs;return this[V][e]}set path(e){if(e){let r=this.method==="CONNECT"?et:fs;this[V][r]=e}}get host(){return this[Te].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let s=()=>this._request.write(e,r,n);this._request?s():this[Ae].push(s)}_final(e){this.flushHeaders();let r=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?r():this[Ae].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,r){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[rt]}catch(n){this.aborted&&(e=n)}r(e)}async flushHeaders(){if(this[Ot]||this.destroyed)return;this[Ot]=!0;let e=this.method===ac,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||rc(n,this,["timeout","continue"]),n.once("error",i=>{this.destroy(i)}),n.once("aborted",()=>{let{res:i}=this;i?(i.aborted=!0,i.emit("aborted"),i.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let s=(i,o,a)=>{let u=new tc(this.socket,n.readableHighWaterMark);this.res=u,u.url=`${this[Te].origin}${this.path}`,u.req=this,u.statusCode=i[hs],u.headers=i,u.rawHeaders=a,u.once("end",()=>{u.complete=!0,u.socket=null,u.connection=null}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!u._dumped&&!u.push(l)&&n.pause()}),n.once("end",()=>{this.aborted||u.push(null)}),this.emit("response",u)||u._dump())};n.once("response",s),n.once("headers",i=>this.emit("information",{statusCode:i[hs]})),n.once("trailers",(i,o,a)=>{let{res:u}=this;if(u===null){s(i,o,a);return}u.trailers=i,u.rawTrailers=a}),n.once("close",()=>{let{aborted:i,res:o}=this;if(o){i&&(o.aborted=!0,o.emit("aborted"),o.destroy());let a=()=>{o.emit("close"),this.destroy(),this.emit("close")};o.readable?o.once("end",a):a();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(n,oc);for(let i of this[Ae])i();this[Ae].length=0,this.emit("socket",this.socket)};if(!(et in this[V])&&!e&&(this[V][et]=this[Te].host),this[tt])try{r(this[tt].request(this[V]))}catch(n){this.destroy(n)}else{this.reusedSocket=!0;try{let n=this.agent.request(this[Te],this[vr],this[V]);this[rt]=n,r(await n),this[rt]=!1}catch(n){this[rt]=!1,this.destroy(n)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[V])}hasHeader(e){if(typeof e!="string")throw new vt("name","string",e);return!!this[V][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new vt("name","string",e);return this[V][e.toLowerCase()]}get headersSent(){return this[Ot]}removeHeader(e){if(typeof e!="string")throw new vt("name","string",e);if(this.headersSent)throw new us("remove");delete this[V][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new us("set");sc(e),ic(e,r);let n=e.toLowerCase();if(n==="connection"){if(r.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${r}`)}n==="host"&&this.method==="CONNECT"?this[V][et]=r:this[V][n]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ae].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};ds.exports=Or});var ms=C((dd,ps)=>{"use strict";f();var cc=R("tls");ps.exports=(t={},e=cc.connect)=>new Promise((r,n)=>{let s=!1,i,o=async()=>{await u,i.off("timeout",a),i.off("error",n),t.resolveSocket?(r({alpnProtocol:i.alpnProtocol,socket:i,timeout:s}),s&&(await Promise.resolve(),i.emit("timeout"))):(i.destroy(),r({alpnProtocol:i.alpnProtocol,timeout:s}))},a=async()=>{s=!0,o()},u=(async()=>{try{i=await e(t,o),i.on("error",n),i.once("timeout",a)}catch(l){n(l)}})()})});var gs=C((md,ys)=>{"use strict";f();var{isIP:uc}=R("net"),hc=R("assert"),lc=t=>{if(t[0]==="["){let r=t.indexOf("]");return hc(r!==-1),t.slice(1,r)}let e=t.indexOf(":");return e===-1?t:t.slice(0,e)};ys.exports=t=>{let e=lc(t);return uc(e)?"":e}});var Os=C((gd,nt)=>{"use strict";f();var{URL:bs,urlToHttpOptions:_s}=R("url"),ws=R("http"),Cr=R("https"),fc=ms(),dc=yr(),{Agent:pc,globalAgent:mc}=le(),yc=Rr(),gc=gs(),Es=gr(),Ss=new dc({maxSize:100}),bc=new Map,_c=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let s=()=>{t.removeSocket(e,r)};e.on("close",s);let i=()=>{let{freeSockets:a}=t;for(let u of Object.values(a))if(u.includes(e)){e.destroy();return}};e.on("timeout",i);let o=()=>{t.removeSocket(e,r),e.off("close",s),e.off("free",n),e.off("timeout",i),e.off("agentRemove",o)};e.on("agentRemove",o),t.emit("free",e,r)},xs=(t,e=new Map,r=void 0)=>async n=>{let s=`${n.host}:${n.port}:${n.ALPNProtocols.sort()}`;if(!t.has(s)){if(e.has(s))return{alpnProtocol:(await e.get(s)).alpnProtocol};let{path:i}=n;n.path=n.socketPath;let o=fc(n,r);e.set(s,o);try{let a=await o;return t.set(s,a.alpnProtocol),e.delete(s),n.path=i,a}catch(a){throw e.delete(s),n.path=i,a}}return{alpnProtocol:t.get(s)}},vs=xs(Ss,bc);nt.exports=async(t,e,r)=>{if(typeof t=="string"?t=_s(new bs(t)):t instanceof bs?t=_s(t):t={...t},typeof e=="function"||e===void 0?(r=e,e=t):e=Object.assign(t,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||gc(e.headers&&e.headers.host||e.host),e.port=e.port||(n?443:80),e._defaultAgent=n?Cr.globalAgent:ws.globalAgent;let s=e.resolveProtocol||vs,{agent:i}=e;if(i!==void 0&&i!==!1&&i.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(n){e.resolveSocket=!0;let{socket:o,alpnProtocol:a,timeout:u}=await s(e);if(u){o&&o.destroy();let d=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw d.code="ETIMEDOUT",d.ms=e.timeout,d}o&&e.createConnection&&(o.destroy(),o=void 0),delete e.resolveSocket;let l=a==="h2";if(i&&(i=l?i.http2:i.https,e.agent=i),i===void 0&&(i=l?mc:Cr.globalAgent),o)if(i===!1)o.destroy();else{let d=(l?pc:Cr.Agent).prototype.createConnection;i.createConnection===d?l?e._reuseSocket=o:_c(i,o,e):o.destroy()}if(l)return Es(new yc(e,r))}else i&&(e.agent=i.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),Es(ws.request(e,r))};nt.exports.protocolCache=Ss;nt.exports.resolveProtocol=vs;nt.exports.createResolveProtocol=xs});var Pr=C((_d,Rs)=>{"use strict";f();var wc=R("stream"),Ec=R("tls"),Sc=new Ec.TLSSocket(new wc.PassThrough)._handle._parentWrap.constructor;Rs.exports=Sc});var Ar=C((Ed,Cs)=>{"use strict";f();var Tr=class extends Error{constructor(e,r=""){super(`The proxy server rejected the request with status code ${e} (${r||"empty status message"})`),this.statusCode=e,this.statusMessage=r}};Cs.exports=Tr});var Ts=C((xd,Ps)=>{"use strict";f();var xc=(t,e,r)=>{if(!r.some(s=>typeof s==="string"?typeof e===s:e instanceof s)){let s=r.map(i=>typeof i=="string"?i:i.name);throw new TypeError(`Expected '${t}' to be a type of ${s.join(" or ")}, got ${typeof e}`)}};Ps.exports=xc});var kr=C((Od,ks)=>{"use strict";f();var{URL:As}=R("url"),Rt=Ts();ks.exports=(t,e)=>{Rt("proxyOptions",e,["object"]),Rt("proxyOptions.headers",e.headers,["object","undefined"]),Rt("proxyOptions.raw",e.raw,["boolean","undefined"]),Rt("proxyOptions.url",e.url,[As,"string"]);let r=new As(e.url);t.proxyOptions={raw:!0,...e,headers:{...e.headers},url:r}}});var Ct=C((Cd,js)=>{"use strict";f();js.exports=t=>{let{username:e,password:r}=t.proxyOptions.url;if(e||r){let n=`${e}:${r}`,s=`Basic ${Buffer.from(n).toString("base64")}`;return{"proxy-authorization":s,authorization:s}}return{}}});var Hs=C((Td,Is)=>{"use strict";f();var vc=R("tls"),Oc=R("http"),qs=R("https"),Rc=Pr(),{globalAgent:Cc}=le(),Pc=Ar(),Ns=kr(),Tc=Ct(),Ls=(t,e,r)=>{(async()=>{try{let{proxyOptions:n}=t,{url:s,headers:i,raw:o}=n,a=await Cc.request(s,n,{...Tc(t),...i,":method":"CONNECT",":authority":`${e.host}:${e.port}`});a.once("error",r),a.once("response",u=>{let l=u[":status"];if(l!==200){r(new Pc(l,""));return}let d=t instanceof qs.Agent;if(o&&d){e.socket=a;let m=vc.connect(e);m.once("close",()=>{a.destroy()}),r(null,m);return}let g=new Rc(a);g.encrypted=!1,g._handle.getpeername=m=>{m.family=void 0,m.address=void 0,m.port=void 0},r(null,g)})}catch(n){r(n)}})()},jr=class extends Oc.Agent{constructor(e){super(e),Ns(this,e.proxyOptions)}createConnection(e,r){Ls(this,e,r)}},qr=class extends qs.Agent{constructor(e){super(e),Ns(this,e.proxyOptions)}createConnection(e,r){Ls(this,e,r)}};Is.exports={HttpOverHttp2:jr,HttpsOverHttp2:qr}});var Lr=C((kd,Fs)=>{"use strict";f();var{Agent:Ac}=le(),kc=Pr(),jc=Ar(),qc=kr(),Nr=class extends Ac{constructor(e){super(e),qc(this,e.proxyOptions)}async createConnection(e,r){let n=`${e.hostname}:${e.port||443}`,[s,i,o]=await this._getProxyStream(n);if(i!==200)throw new jc(i,o);if(this.proxyOptions.raw)r.socket=s;else{let a=new kc(s);return a.encrypted=!1,a._handle.getpeername=u=>{u.family=void 0,u.address=void 0,u.port=void 0},a}return super.createConnection(e,r)}};Fs.exports=Nr});var $s=C((qd,Ds)=>{"use strict";f();var{globalAgent:Nc}=le(),Lc=Lr(),Ic=Ct(),Hc=t=>new Promise((e,r)=>{t.once("error",r),t.once("response",n=>{t.off("error",r),e(n[":status"])})}),Ir=class extends Lc{async _getProxyStream(e){let{proxyOptions:r}=this,n={...Ic(this),...r.headers,":method":"CONNECT",":authority":e},s=await Nc.request(r.url,r,n),i=await Hc(s);return[s,i,""]}};Ds.exports=Ir});var Us=C((Ld,Bs)=>{"use strict";f();var Fc=R("http"),Dc=R("https"),$c=Lr(),Bc=Ct(),Uc=t=>new Promise((e,r)=>{let n=(s,i,o)=>{i.unshift(o),t.off("error",r),e([i,s.statusCode,s.statusMessage])};t.once("error",r),t.once("connect",n)}),Pt=class extends $c{async _getProxyStream(e){let{proxyOptions:r}=this,{url:n,headers:s}=this.proxyOptions,o=(n.protocol==="https:"?Dc:Fc).request({...r,hostname:n.hostname,port:n.port,path:e,headers:{...Bc(this),...s,host:e},method:"CONNECT"}).end();return Uc(o)}};Bs.exports={Http2OverHttp:Pt,Http2OverHttps:Pt}});var Ms=C((Hd,zs)=>{"use strict";f();var zc=R("http2"),{Agent:Mc,globalAgent:Wc}=le(),Hr=Rr(),Vc=wr(),Gc=Os(),{HttpOverHttp2:Jc,HttpsOverHttp2:Kc}=Hs(),Yc=$s(),{Http2OverHttp:Qc,Http2OverHttps:Xc}=Us(),Zc=Er(),eu=Sr(),tu=(t,e,r)=>new Hr(t,e,r),ru=(t,e,r)=>{let n=new Hr(t,e,r);return n.end(),n};zs.exports={...zc,ClientRequest:Hr,IncomingMessage:Vc,Agent:Mc,globalAgent:Wc,request:tu,get:ru,auto:Gc,proxies:{HttpOverHttp2:Jc,HttpsOverHttp2:Kc,Http2OverHttp2:Yc,Http2OverHttp:Qc,Http2OverHttps:Xc},validateHeaderName:Zc,validateHeaderValue:eu}});var zr=C(pe=>{f();pe.parse=pe.decode=qu;pe.stringify=pe.encode=si;pe.safe=je;pe.unsafe=Lt;var Ur=typeof process<"u"&&process.platform==="win32"?`\r
2
2
  `:`
3
3
  `;function si(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var s=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(i,o,a){var u=t[i];u&&Array.isArray(u)?u.forEach(function(l){n+=je(i+"[]")+s+je(l)+`
4
4
  `}):u&&typeof u=="object"?r.push(i):n+=je(i)+s+je(u)+Ur}),e.section&&n.length&&(n="["+je(e.section)+"]"+Ur+n),r.forEach(function(i,o,a){var u=ii(i).join("\\."),l=(e.section?e.section+".":"")+u,d=si(t[i],{section:l,whitespace:e.whitespace});n.length&&d.length&&(n+=Ur),n+=d}),n}function ii(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function qu(t){var e={},r=e,n=null,s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,i=t.split(/[\r\n]+/g);return i.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(s);if(l){if(l[1]!==void 0){if(n=Lt(l[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var d=Lt(l[2]);if(d!=="__proto__"){var g=l[3]?Lt(l[4]):!0;switch(g){case"true":case"false":case"null":g=JSON.parse(g)}if(d.length>2&&d.slice(-2)==="[]"){if(d=d.substring(0,d.length-2),d==="__proto__")return;r[d]?Array.isArray(r[d])||(r[d]=[r[d]]):r[d]=[]}Array.isArray(r[d])?r[d].push(g):r[d]=g}}}}),Object.keys(e).filter(function(o,a,u){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var l=ii(o),d=e,g=l.pop(),m=g.replace(/\\\./g,".");return l.forEach(function(y,b,p){y!=="__proto__"&&((!d[y]||typeof d[y]!="object")&&(d[y]={}),d=d[y])}),d===e&&m===g?!1:(d[m]=e[o],!0)}).forEach(function(o,a,u){delete e[o]}),e}function oi(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function je(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&oi(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Lt(t,e){if(t=(t||"").trim(),oi(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",s=0,i=t.length;s<i;s++){var o=t.charAt(s);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var ui=C((am,ci)=>{"use strict";f();var Mr=1,ai=2;function Nu(){return""}function Lu(t,e,r){return t.slice(e,r).replace(/\S/g," ")}ci.exports=function(t,e){e=e||{};for(var r,n,s=!1,i=!1,o=0,a="",u=e.whitespace===!1?Nu:Lu,l=0;l<t.length;l++){if(r=t[l],n=t[l+1],!i&&r==='"'){var d=t[l-1]==="\\"&&t[l-2]!=="\\";d||(s=!s)}if(!s){if(!i&&r+n==="//")a+=t.slice(o,l),o=l,i=Mr,l++;else if(i===Mr&&r+n===`\r
@@ -1 +1 @@
1
- import{a,b}from"./chunk-7UYZQN4V.js";import"./chunk-Z35BTAM6.js";import"./chunk-75VPUOC5.js";import"./chunk-HZA6IAA4.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as commands,b as hooks};
1
+ import{a,b}from"./chunk-PBTXPBI6.js";import"./chunk-Z35BTAM6.js";import"./chunk-75VPUOC5.js";import"./chunk-HZA6IAA4.js";import"./chunk-PD5ZHJWI.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as commands,b as hooks};
@@ -1 +1 @@
1
- import{r as a}from"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export default a();
1
+ import{r as a}from"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export default a();
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-E2YBU6D3.js";import"./chunk-PSQFZAF3.js";import"./chunk-TNQXTZAX.js";import"./chunk-YS6VOQ7I.js";import"./chunk-Z35BTAM6.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-7JESXDF2.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as commands};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-VPRTJUIN.js";export{h as alwaysLogAnalytics,i as alwaysLogMetrics,g as analyticsDisabled,k as canRunDoctorRelease,s as ciPlatform,q as cloudEnvironment,n as codespacePortForwardingDomain,m as codespaceURL,j as firstPartyDev,u as getThemeKitAccessDomain,l as gitpodURL,r as hasGit,b as homeDirectory,o as isCloudEnvironment,c as isDevelopment,e as isShopify,a as isTerminalInteractive,f as isUnitTest,d as isVerbose,t as macAddress,v as opentelemetryDomain,p as themeToken};
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk-A5SQCM63.js";import"./chunk-5CH3B62S.js";import"./chunk-BHWEA4V2.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as LocalStorage};
@@ -12,7 +12,7 @@ ${e}`,t),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n
12
12
  `," ")),u.type==="wikiLink"&&(e.value=su(0,u.value.trim(),/[\t\n]+/gu," ")),(u.type==="definition"||u.type==="linkReference"||u.type==="imageReference")&&(e.label=(0,Ei.default)(u.label)),(u.type==="link"||u.type==="image")&&u.url&&u.url.includes("("))for(let r of"<>")e.url=su(0,u.url,r,encodeURIComponent(r));if((u.type==="definition"||u.type==="link"||u.type==="image")&&u.title&&(e.title=su(0,u.title,/\\(?=["')])/gu,"")),t?.type==="root"&&t.children.length>0&&(t.children[0]===u||Ri(t.children[0])&&t.children[1]===u)&&u.type==="html"&&Nt(u.value))return null}function jt(u){let e=[],t=u.split(/([\t\n ]+)/u);for(let[n,i]of t.entries()){if(n%2===1){e.push({type:"whitespace",value:/\n/u.test(i)?`
13
13
  `:" "});continue}if((n===0||n===t.length-1)&&i==="")continue;let a=i.split(new RegExp(`(${Hi.source})`,"u"));for(let[o,D]of a.entries())if(!((o===0||o===a.length-1)&&D==="")){if(o%2===0){D!==""&&r({type:"word",value:D,kind:te,isCJ:!1,hasLeadingPunctuation:Xu.test(D[0]),hasTrailingPunctuation:Xu.test(Au(0,D,-1))});continue}if(Xu.test(D)){r({type:"word",value:D,kind:Ae,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Wi.test(D)){r({type:"word",value:D,kind:zu,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}r({type:"word",value:D,kind:xu,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return e;function r(n){let i=Au(0,e,-1);i?.type==="word"&&!a(te,Ae)&&![i.value,n.value].some(o=>/\u3000/u.test(o))&&e.push({type:"whitespace",value:""}),e.push(n);function a(o,D){return i.kind===o&&n.kind===D||i.kind===D&&n.kind===o}}}function ue(u,e){let t=e.originalText.slice(u.position.start.offset,u.position.end.offset),{numberText:r,leadingSpaces:n}=t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(r),leadingSpaces:n}}function Gi(u,e){return!u.ordered||u.children.length<2||ue(u.children[1],e).number!==1?!1:ue(u.children[0],e).number!==0?!0:u.children.length>2&&ue(u.children[2],e).number===1}function zt(u,e){let{value:t}=u;return u.position.end.offset===e.length&&t.endsWith(`
14
14
  `)&&e.endsWith(`
15
- `)?t.slice(0,-1):t}function Gu(u,e){return(function t(r,n,i){let a={...e(r,n,i)};return a.children&&(a.children=a.children.map((o,D)=>t(o,D,[a,...i]))),a})(u,null,[])}function $t(u){if(u?.type!=="link"||u.children.length!==1)return!1;let[e]=u.children;return de(u)===de(e)&&Ce(u)===Ce(e)}function $e(u){let e;if(u.type==="html")e=u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let t;u.type==="esComment"?t=u:u.type==="paragraph"&&u.children.length===1&&u.children[0].type==="esComment"&&(t=u.children[0]),t&&(e=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return e?e[1]||"next":!1}function Ut(u,e){return t(u,e,r=>r.ordered===u.ordered);function t(r,n,i){let a=-1;for(let o of n.children)if(o.type===r.type&&i(o)?a++:a=-1,o===r)return a}}function Ji(u,e){let{node:t}=u;switch(t.type){case"code":{let{lang:r}=t;if(!r)return;let n;return r==="angular-ts"?n=Qe(e,{language:"typescript"}):r==="angular-html"?n="angular":n=Qe(e,{language:r}),n?async i=>{let a={parser:n};r==="ts"||r==="typescript"?a.filepath="dummy.ts":r==="tsx"&&(a.filepath="dummy.tsx");let o=await i(zt(t,e.originalText),a),D=e.__inJsTemplate?"~":"`",l=D.repeat(Math.max(3,qt(t.value,D)+1));return qe([l,t.lang,t.meta?" "+t.meta:"",Du,Pu(o),Du,l])}:void 0}case"import":case"export":return r=>r(t.value,{__onHtmlBindingRoot:n=>Yi(n,t.type),parser:"babel"});case"jsx":return r=>r(`<$>${t.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function Yi(u,e){let{program:{body:t}}=u;if(!t.every(r=>r.type==="ImportDeclaration"||r.type==="ExportDefaultDeclaration"||r.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${e}' in MDX.`)}function ee(u){if(Zu!==null&&typeof Zu.property){let e=Zu;return Zu=ee.prototype=null,e}return Zu=ee.prototype=u??Object.create(null),new ee}function Zi(u){return ee(u)}function Xi(u,e="type"){Zi(u);function t(r){let n=r[e],i=u[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return t}function fu(u,e,t,r={}){let{processor:n=t}=r,i=[];return u.each(()=>{let a=n(u);a!==!1&&(i.length>0&&no(u)&&(i.push(Du),(oo(u,e)||Ze(u))&&i.push(Du),Ze(u)&&i.push(Du)),i.push(a))},"children"),i}function no({node:u,parent:e}){let t=It.has(u.type),r=u.type==="html"&&Pt.has(e.type);return!t&&!r}function oo({node:u,previous:e,parent:t},r){if(Xe(e,r)||u.type==="list"&&t.type==="listItem"&&e.type==="code")return!0;let n=e.type===u.type&&io.has(u.type),i=t.type==="listItem"&&(u.type==="list"||!Xe(t,r)),a=$e(e)==="next",o=u.type==="html"&&e.type==="html"&&e.position.end.line+1===u.position.start.line,D=u.type==="html"&&t.type==="listItem"&&e.type==="paragraph"&&e.position.end.line+1===u.position.start.line;return!(n||i||a||o||D)}function Ze({node:u,previous:e}){let t=e.type==="list",r=u.type==="code"&&u.isIndented;return t&&r}function Xe(u,e){return u.type==="listItem"&&(u.spread||e.originalText.charAt(u.position.end.offset-1)===`
15
+ `)?t.slice(0,-1):t}function Gu(u,e){return(function t(r,n,i){let a={...e(r,n,i)};return a.children&&(a.children=a.children.map((o,D)=>t(o,D,[a,...i]))),a})(u,null,[])}function $t(u){if(u?.type!=="link"||u.children.length!==1)return!1;let[e]=u.children;return de(u)===de(e)&&Ce(u)===Ce(e)}function $e(u){let e;if(u.type==="html")e=u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let t;u.type==="esComment"?t=u:u.type==="paragraph"&&u.children.length===1&&u.children[0].type==="esComment"&&(t=u.children[0]),t&&(e=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return e?e[1]||"next":!1}function Ut(u,e){return t(u,e,r=>r.ordered===u.ordered);function t(r,n,i){let a=-1;for(let o of n.children)if(o.type===r.type&&i(o)?a++:a=-1,o===r)return a}}function Ji(u,e){let{node:t}=u;switch(t.type){case"code":{let{lang:r}=t;if(!r)return;let n;return r==="angular-ts"?n=Qe(e,{language:"typescript"}):r==="angular-html"?n="angular":n=Qe(e,{language:r}),n?async i=>{let a={parser:n};r==="ts"||r==="typescript"?a.filepath="dummy.ts":r==="tsx"&&(a.filepath="dummy.tsx");let o=await i(zt(t,e.originalText),a),D=e.__inJsTemplate?"~":"`",l=D.repeat(Math.max(3,qt(t.value,D)+1));return qe([l,t.lang,t.meta?" "+t.meta:"",Du,Pu(o),Du,l])}:void 0}case"import":case"export":return r=>r(t.value,{__onHtmlBindingRoot:n=>Yi(n,t.type),parser:"babel"});case"jsx":return r=>r(`<$>${t.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}function Yi(u,e){let{program:{body:t}}=u;if(!t.every(r=>r.type==="ImportDeclaration"||r.type==="ExportDefaultDeclaration"||r.type==="ExportNamedDeclaration"))throw new Error(`Unexpected '${e}' in MDX.`)}function ee(u){if(Zu!==null&&typeof Zu.property){let e=Zu;return Zu=ee.prototype=null,e}return Zu=ee.prototype=u??Object.create(null),new ee}function Zi(u){return ee(u)}function Xi(u,e="type"){Zi(u);function t(r){let n=r[e],i=u[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return i}return t}function fu(u,e,t,r={}){let{processor:n=t}=r,i=[];return u.each(()=>{let a=n(u);a!==!1&&(i.length>0&&no(u)&&(i.push(Du),(oo(u,e)||Ze(u))&&i.push(Du),Ze(u)&&i.push(Du)),i.push(a))},"children"),i}function no({node:u,parent:e}){let t=It.has(u.type),r=u.type==="html"&&Pt.has(e.type);return!t&&!r}function oo({node:u,previous:e,parent:t},r){if(Xe(e,r)||u.type==="list"&&t.type==="listItem"&&(e.type==="code"||e.type==="paragraph")&&e.position.end.line+1<u.position.start.line)return!0;let n=e.type===u.type&&io.has(u.type),i=t.type==="listItem"&&(u.type==="list"||!Xe(t,r)),a=$e(e)==="next",o=u.type==="html"&&e.type==="html"&&e.position.end.line+1===u.position.start.line,D=u.type==="html"&&t.type==="listItem"&&e.type==="paragraph"&&e.position.end.line+1===u.position.start.line;return!(n||i||a||o||D)}function Ze({node:u,previous:e}){let t=e.type==="list",r=u.type==="code"&&u.isIndented;return t&&r}function Xe(u,e){return u.type==="listItem"&&(u.spread||e.originalText.charAt(u.position.end.offset-1)===`
16
16
  `)}function ao(u,e,t){let{node:r}=u,n=Ut(r,u.parent),i=Gi(r,e);return fu(u,e,t,{processor(){let a=D(),{node:o}=u;if(o.children.length===2&&o.children[1].type==="html"&&o.children[0].position.start.column!==o.children[1].position.start.column)return[a,ut(u,e,t,a)];return[a,Nu(" ".repeat(a.length),ut(u,e,t,a))];function D(){let l=r.ordered?(u.isFirst?r.start:i?1:r.start+u.index)+(n%2===0?". ":") "):n%2===0?"- ":"* ";return(r.isAligned||r.hasIndentedCodeblock)&&r.ordered?Do(l,e):l}}})}function ut(u,e,t,r){let{node:n}=u,i=n.checked===null?"":n.checked?"[x] ":"[ ] ";return[i,fu(u,e,t,{processor({node:a,isFirst:o}){if(o&&a.type!=="list")return Nu(" ".repeat(i.length),t());let D=" ".repeat(so(e.tabWidth-r.length,0,3));return[D,Nu(D,t())]}})]}function Do(u,e){let t=r();return u+" ".repeat(t>=4?0:t);function r(){let n=u.length%e.tabWidth;return n===0?0:e.tabWidth-n}}function so(u,e,t){return Math.max(e,Math.min(u,t))}function lo(u,e,t){let{node:r}=u,n=[],i=u.map(()=>u.map(({index:c})=>{let C=li(t(),e).formatted,d=ze(C);return n[c]=Math.max(n[c]??3,d),{text:C,width:d}},"children"),"children"),a=D(!1);if(e.proseWrap!=="never")return[Fe,a];let o=D(!0);return[Fe,fe(_n(o,a))];function D(c){return xt(je,[s(i[0],c),l(c),...i.slice(1).map(C=>s(C,c))].map(C=>`| ${C.join(" | ")} |`))}function l(c){return n.map((C,d)=>{let E=r.align[d],m=E==="center"||E==="left"?":":"-",g=E==="center"||E==="right"?":":"-",x=c?"-":"-".repeat(C-2);return`${m}${x}${g}`})}function s(c,C){return c.map(({text:d,width:E},m)=>{if(C)return d;let g=n[m]-E,x=r.align[m],f=0;x==="right"?f=g:x==="center"&&(f=Math.floor(g/2));let B=g-f;return`${" ".repeat(f)}${d}${" ".repeat(B)}`})}}function co(u){let{node:e}=u,t=su(0,su(0,e.value,"*","\\*"),new RegExp([`(^|${Xu.source})(_+)`,`(_+)(${Xu.source}|$)`].join("|"),"gu"),(i,a,o,D,l)=>su(0,o?`${a}${o}`:`${D}${l}`,"_","\\_")),r=(i,a,o)=>i.type==="sentence"&&o===0,n=(i,a,o)=>$t(i.children[o-1]);return t!==e.value&&(u.match(void 0,r,n)||u.match(void 0,r,(i,a,o)=>i.type==="emphasis"&&o===0,n))&&(t=t.replace(/^(\\?[*_])+/u,i=>su(0,i,"\\",""))),t}function fo(u,e,t){let r=u.map(t,"children");return po(r)}function po(u){let e=[""];return(function t(r){for(let n of r){let i=Lu(n);if(i===qu){t(n);continue}let a=n,o=[];i===Iu&&([a,...o]=n.parts),e.push([e.pop(),a],...o)}})(u),Pe(e)}function mo(u,e){return u=vo(u,e),u=Bo(u),u=yo(u,e),u=wo(u,e),u=bo(u),u}function vo(u,e){return Gu(u,t=>{if(t.type!=="text")return t;let{value:r}=t;if(r==="*"||r==="_"||!go.test(r)||t.position.end.offset-t.position.start.offset===r.length)return t;let n=e.originalText.slice(t.position.start.offset,t.position.end.offset);return Eo.test(n)?t:{...t,value:n}})}function xo(u,e,t){return Gu(u,r=>{if(!r.children)return r;let n=[],i,a;for(let o of r.children)i&&e(i,o)?(o=t(i,o),n.splice(-1,1,o),a||(a=!0)):n.push(o),i=o;return a?{...r,children:n}:r})}function Bo(u){return xo(u,(e,t)=>e.type==="text"&&t.type==="text",(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}function bo(u){return Gu(u,(e,t,[r])=>{if(e.type!=="text")return e;let{value:n}=e;return r.type==="paragraph"&&(t===0&&(n=et.trimStart(n)),t===r.children.length-1&&(n=et.trimEnd(n))),{type:"sentence",position:e.position,children:jt(n)}})}function yo(u,e){return Gu(u,(t,r,n)=>{if(t.type==="code"){let i=/^\n?(?: {4,}|\t)/u.test(e.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=i,i)for(let a=0;a<n.length;a++){let o=n[a];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return t})}function wo(u,e){return Gu(u,(n,i,a)=>{if(n.type==="list"&&n.children.length>0){for(let o=0;o<a.length;o++){let D=a[o];if(D.type==="list"&&!D.isAligned)return n.isAligned=!1,n}n.isAligned=r(n)}return n});function t(n){return n.children.length===0?-1:n.children[0].position.start.column-1}function r(n){if(!n.ordered)return!0;let[i,a]=n.children;if(ue(i,e).leadingSpaces.length>1)return!0;let o=t(i);if(o===-1)return!1;if(n.children.length===1)return o%e.tabWidth===0;let D=t(a);return o!==D?!1:o%e.tabWidth===0?!0:ue(a,e).leadingSpaces.length>1}}function qo(u,e){let t=[""];return u.each(()=>{let{node:r}=u,n=e();switch(r.type){case"whitespace":if(Lu(n)!==Ru){t.push(n,"");break}default:t.push([t.pop(),n])}},"children"),Pe(t)}function Lo({parent:u}){if(u.usesCJSpaces===void 0){let e={" ":0,"":0},{children:t}=u;for(let r=1;r<t.length-1;++r){let n=t[r];if(n.type==="whitespace"&&(n.value===" "||n.value==="")){let i=t[r-1].kind,a=t[r+1].kind;(i===xu&&a===te||i===te&&a===xu)&&++e[n.value]}}u.usesCJSpaces=e[" "]>e[""]}return u.usesCJSpaces}function To(u,e){if(e)return!0;let{previous:t,next:r}=u;if(!t||!r)return!0;let n=t.kind,i=r.kind;return rt(n)&&rt(i)||n===zu&&i===xu||i===zu&&n===xu?!0:n===Ae||i===Ae||n===xu&&i===xu?!1:tt.has(r.value[0])||tt.has(Au(0,t.value,-1))?!0:t.hasTrailingPunctuation||r.hasLeadingPunctuation?!1:Lo(u)}function rt(u){return u===te||u===zu}function Oo(u,e,t,r){if(t!=="always"||u.hasAncestor(a=>So.has(a.type)))return!1;if(r)return e!=="";let{previous:n,next:i}=u;return!n||!i?!0:e===""?!1:n.kind===zu&&i.kind===xu||i.kind===zu&&n.kind===xu?!0:!(n.isCJ||i.isCJ)}function nt(u,e,t,r){if(t==="preserve"&&e===`
17
17
  `)return Du;let n=e===" "||e===`
18
18
  `&&To(u,r);return Oo(u,e,t,r)?n?Bt:bt:n?" ":""}function it(u){let{previous:e,next:t}=u;return e?.type==="sentence"&&Au(0,e.children,-1)?.type==="word"&&!Au(0,e.children,-1).hasTrailingPunctuation||t?.type==="sentence"&&t.children[0]?.type==="word"&&!t.children[0].hasLeadingPunctuation}function No(u,e,t){let{node:r}=u;if(Io(u)){let n=[""],i=jt(e.originalText.slice(r.position.start.offset,r.position.end.offset));for(let a of i){if(a.type==="word"){n.push([n.pop(),a.value]);continue}let o=nt(u,a.value,e.proseWrap,!0);if(Lu(o)===Ru){n.push([n.pop(),o]);continue}n.push(o,"")}return Pe(n)}switch(r.type){case"root":return r.children.length===0?"":[Ro(u,e,t),Du];case"paragraph":return fo(u,e,t);case"sentence":return qo(u,t);case"word":return co(u);case"whitespace":{let{next:n}=u,i=n&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(n.value)?"never":e.proseWrap;return nt(u,r.value,i)}case"emphasis":{let n;if($t(r.children[0]))n=e.originalText[r.position.start.offset];else{let i=it(u),a=u.callParent(({node:o})=>o.type==="strong"&&it(u));n=i||a||u.hasAncestor(o=>o.type==="emphasis")?"*":"_"}return[n,fu(u,e,t),n]}case"strong":return["**",fu(u,e,t),"**"];case"delete":return["~~",fu(u,e,t),"~~"];case"inlineCode":{let n=e.proseWrap==="preserve"?r.value:su(0,r.value,`
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"./chunk-IASVAERO.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-VPRTJUIN.js";export{d as addPublicMetadata,e as addSensitiveMetadata,a as createRuntimeMetadataContainer,b as getAllPublicMetadata,c as getAllSensitiveMetadata,f as runWithTimer};
1
+ import{a,b,c,d,e,f}from"./chunk-6YAXFS6V.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-VPRTJUIN.js";export{d as addPublicMetadata,e as addSensitiveMetadata,a as createRuntimeMetadataContainer,b as getAllPublicMetadata,c as getAllSensitiveMetadata,f as runWithTimer};