@shopify/cli 4.1.0 → 4.3.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 (459) hide show
  1. package/dist/{acorn-LOOAJL3S.js → acorn-7M27BPGP.js} +1 -1
  2. package/dist/analytics-JH64XI2J.js +1 -0
  3. package/dist/analytics-MEGKKFGF.js +1 -0
  4. package/dist/angular-DW5TQVCM.js +4 -0
  5. package/dist/{babel-URCL33XX.js → babel-I2RLWM7N.js} +1 -1
  6. package/dist/bootstrap.js +1 -1
  7. package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
  8. package/dist/chunk-25HJX3L2.js +5 -0
  9. package/dist/chunk-2EHBJWC6.js +26 -0
  10. package/dist/chunk-2GAFKG64.js +4 -0
  11. package/dist/chunk-2GU7OY3H.js +1 -0
  12. package/dist/{chunk-4IC626OL.js → chunk-2K7FGAT6.js} +1 -1
  13. package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
  14. package/dist/{chunk-NMBBTTIH.js → chunk-2RBIR3NM.js} +1 -1
  15. package/dist/chunk-2TMQG2UT.js +1 -0
  16. package/dist/chunk-2XZBQZ5R.js +7 -0
  17. package/dist/{chunk-Q4T2T2QE.js → chunk-33OHQUHZ.js} +1 -1
  18. package/dist/chunk-3AOQKI4B.js +1 -0
  19. package/dist/{chunk-OBEWZXOQ.js → chunk-3SPDFV5D.js} +1 -1
  20. package/dist/chunk-3YDYZ232.js +103 -0
  21. package/dist/chunk-4FFPTEKD.js +1 -0
  22. package/dist/chunk-4J32OHLY.js +1382 -0
  23. package/dist/chunk-4QTEPWEJ.js +283 -0
  24. package/dist/chunk-57PPQKJT.js +15 -0
  25. package/dist/{chunk-AGNMOFJS.js → chunk-5BKCIDMS.js} +1 -1
  26. package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
  27. package/dist/chunk-5FFHQTRC.js +4 -0
  28. package/dist/{chunk-2GK56X53.js → chunk-5FVB7JHP.js} +1 -1
  29. package/dist/{chunk-UYXEA3Y6.js → chunk-5H3VTG77.js} +1 -1
  30. package/dist/chunk-5O43334U.js +2 -0
  31. package/dist/chunk-5XDQ76DQ.js +1 -0
  32. package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
  33. package/dist/chunk-6JKGUQRD.js +1 -0
  34. package/dist/chunk-6KETAPWL.js +1 -0
  35. package/dist/{chunk-ULFWK45W.js → chunk-6LWOWDF4.js} +2 -2
  36. package/dist/chunk-7572RLUP.js +1 -0
  37. package/dist/chunk-762JWOWJ.js +5 -0
  38. package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
  39. package/dist/{chunk-76R52ODR.js → chunk-7D45IAMQ.js} +1 -1
  40. package/dist/chunk-7FQFEB33.js +370 -0
  41. package/dist/chunk-7LV55VWE.js +1 -0
  42. package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
  43. package/dist/chunk-A27NZMWB.js +1 -0
  44. package/dist/chunk-A4SBXDZB.js +14 -0
  45. package/dist/{chunk-4DCQNGUV.js → chunk-A5HKAMAC.js} +10 -10
  46. package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
  47. package/dist/chunk-AERKD4TO.js +3 -0
  48. package/dist/{chunk-L2MGAEV3.js → chunk-ANBOLDON.js} +2 -2
  49. package/dist/{chunk-UJVH7FZS.js → chunk-AO3RFGNV.js} +1 -1
  50. package/dist/{chunk-KHSYW7I4.js → chunk-ATSMK66C.js} +1 -1
  51. package/dist/chunk-AU5EZQW7.js +5 -0
  52. package/dist/chunk-AVD3INWF.js +1 -0
  53. package/dist/chunk-AWEB5AQM.js +1 -0
  54. package/dist/chunk-AXNAGI32.js +1 -0
  55. package/dist/chunk-BL46CZ2M.js +2 -0
  56. package/dist/chunk-BQWK3C47.js +278 -0
  57. package/dist/chunk-CEHXOWA6.js +3 -0
  58. package/dist/{chunk-EKXY5COY.js → chunk-CFOXXOO2.js} +1 -1
  59. package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
  60. package/dist/chunk-CV5EQGES.js +22 -0
  61. package/dist/chunk-CX5CC6P5.js +1 -0
  62. package/dist/chunk-DCLUZFT7.js +2 -0
  63. package/dist/{chunk-Q33IBIVJ.js → chunk-DNXYKGV2.js} +1 -1
  64. package/dist/chunk-DTIWUT2T.js +18 -0
  65. package/dist/{chunk-VICYNG2W.js → chunk-DYNH5SKT.js} +1 -1
  66. package/dist/chunk-DZQYG32N.js +2 -0
  67. package/dist/{chunk-FQWB2F75.js → chunk-E7DHELFH.js} +1 -1
  68. package/dist/chunk-EH7ZTFS4.js +613 -0
  69. package/dist/{chunk-P6XE4MH5.js → chunk-EJDWYASP.js} +1 -1
  70. package/dist/chunk-EKVTNWHM.js +1 -0
  71. package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
  72. package/dist/chunk-EVZA2TCI.js +3 -0
  73. package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
  74. package/dist/chunk-FIYAECXH.js +28 -0
  75. package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
  76. package/dist/chunk-FOFJBRSL.js +11 -0
  77. package/dist/chunk-FQ5ZZX2G.js +25 -0
  78. package/dist/chunk-G2LVUM7N.js +6 -0
  79. package/dist/chunk-G2OHWAY2.js +7 -0
  80. package/dist/chunk-G3JJLXPH.js +1 -0
  81. package/dist/chunk-G3RWLAOG.js +1 -0
  82. package/dist/chunk-G4OQABDT.js +836 -0
  83. package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
  84. package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
  85. package/dist/chunk-GDHD3TGC.js +6 -0
  86. package/dist/{chunk-JXW374CL.js → chunk-GJXINXSU.js} +11 -11
  87. package/dist/chunk-GWHV62YT.js +1 -0
  88. package/dist/chunk-HCTZN7L4.js +2 -0
  89. package/dist/{chunk-ZSBA6VIC.js → chunk-HDC5V7RY.js} +1 -1
  90. package/dist/{chunk-7NH7CHVI.js → chunk-HIQHYPLU.js} +1 -1
  91. package/dist/{chunk-XOTA6JTZ.js → chunk-HOSFU6UP.js} +3 -3
  92. package/dist/chunk-I22ZTRKK.js +3 -0
  93. package/dist/chunk-I4R7TML2.js +7 -0
  94. package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
  95. package/dist/chunk-IWOTLFOY.js +32 -0
  96. package/dist/{chunk-7UYZQN4V.js → chunk-J3H4LPN6.js} +3 -3
  97. package/dist/{chunk-XULPJ6UG.js → chunk-J3HX6ZGD.js} +1 -1
  98. package/dist/chunk-J3JPJCWP.js +1 -0
  99. package/dist/chunk-J5BRKYGE.js +294 -0
  100. package/dist/chunk-JAWKLBOB.js +3 -0
  101. package/dist/{chunk-MCVRONUY.js → chunk-JAWOP4HJ.js} +1 -1
  102. package/dist/{chunk-ZGK3LGCH.js → chunk-JCIN73BE.js} +1 -1
  103. package/dist/chunk-JEZ3PGVC.js +1 -0
  104. package/dist/{chunk-C7BTJ32Z.js → chunk-JJ6RM54S.js} +1 -1
  105. package/dist/chunk-JK3NIHTX.js +17 -0
  106. package/dist/chunk-JLE4NBMT.js +1 -0
  107. package/dist/chunk-JSOGPMWB.js +5 -0
  108. package/dist/chunk-JUYJZUYU.js +1 -0
  109. package/dist/chunk-KRQGLK2Q.js +3 -0
  110. package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
  111. package/dist/{chunk-BS3BKORT.js → chunk-L2PC4MUV.js} +1 -1
  112. package/dist/chunk-LCZDC6EE.js +5 -0
  113. package/dist/chunk-LXVORHCQ.js +1 -0
  114. package/dist/chunk-M2YINBHF.js +32 -0
  115. package/dist/chunk-M7YFD4EV.js +10 -0
  116. package/dist/chunk-MEIEEENL.js +1 -0
  117. package/dist/chunk-MIDYZPO4.js +1 -0
  118. package/dist/chunk-MINZGZ4N.js +1 -0
  119. package/dist/chunk-MMIHHCMW.js +5 -0
  120. package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
  121. package/dist/chunk-MRS6LAY7.js +1 -0
  122. package/dist/chunk-N3CNWCC2.js +19 -0
  123. package/dist/{chunk-M2D7USAX.js → chunk-N3NE4MVN.js} +1 -1
  124. package/dist/chunk-N3YTDGFY.js +4 -0
  125. package/dist/{chunk-MHWV5RQV.js → chunk-N5LVGFDS.js} +2 -2
  126. package/dist/{chunk-QBSKKQBN.js → chunk-NILXAUUT.js} +1 -1
  127. package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
  128. package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
  129. package/dist/{chunk-6G6TMKXF.js → chunk-NTRAWIEJ.js} +21 -21
  130. package/dist/chunk-NWXDOCL5.js +1 -0
  131. package/dist/{chunk-2AJ5FI2K.js → chunk-OU3M32A2.js} +1 -1
  132. package/dist/chunk-OU4SKQTC.js +5 -0
  133. package/dist/chunk-OXJBYKMX.js +1 -0
  134. package/dist/chunk-OZBY45KT.js +1 -0
  135. package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
  136. package/dist/chunk-PCCK4YTE.js +1 -0
  137. package/dist/{chunk-6RE2SNCU.js → chunk-PFGYC53K.js} +1 -1
  138. package/dist/chunk-PMS4MNHB.js +6 -0
  139. package/dist/chunk-PNP5OKNZ.js +1 -0
  140. package/dist/{chunk-KN3WTTHZ.js → chunk-PXHY753L.js} +1 -1
  141. package/dist/chunk-Q73GEVSJ.js +11 -0
  142. package/dist/{chunk-5WVAHE5E.js → chunk-Q77MM2N2.js} +1 -1
  143. package/dist/chunk-Q7C44DX5.js +4 -0
  144. package/dist/chunk-QDVJJKLB.js +1 -0
  145. package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
  146. package/dist/{chunk-E3EMHAJB.js → chunk-RKDZGK5K.js} +1 -1
  147. package/dist/{chunk-TYZXGSHO.js → chunk-RSRYC5ZF.js} +1 -1
  148. package/dist/chunk-S22NCNAJ.js +1 -0
  149. package/dist/chunk-S5IFJ737.js +3 -0
  150. package/dist/chunk-S6B2ADVR.js +8 -0
  151. package/dist/chunk-S7F5KFQP.js +1 -0
  152. package/dist/chunk-SSCYLDSX.js +3 -0
  153. package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
  154. package/dist/chunk-T3ERXB7F.js +8 -0
  155. package/dist/chunk-T4IV643Z.js +9 -0
  156. package/dist/chunk-T4NS63K4.js +16 -0
  157. package/dist/chunk-T6CC5WUU.js +159 -0
  158. package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
  159. package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
  160. package/dist/{chunk-DRFGABEB.js → chunk-TP7E54WN.js} +1 -1
  161. package/dist/chunk-TPCG6DCA.js +1 -0
  162. package/dist/{chunk-SXTMSGUE.js → chunk-TRYWVIVJ.js} +1 -1
  163. package/dist/chunk-TU47HMTL.js +1 -0
  164. package/dist/chunk-TUNUEOHO.js +3 -0
  165. package/dist/{chunk-MWY3A7O3.js → chunk-TY6BZTG3.js} +1 -1
  166. package/dist/chunk-TYMYIUIQ.js +1 -0
  167. package/dist/chunk-UB26DGTR.js +6 -0
  168. package/dist/chunk-UC7KMA6W.js +8 -0
  169. package/dist/chunk-UOHNRH6E.js +7 -0
  170. package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
  171. package/dist/chunk-USLYL5AC.js +1 -0
  172. package/dist/chunk-UTO4Z6P6.js +567 -0
  173. package/dist/{chunk-M2ZHFKPN.js → chunk-UU5P2IYU.js} +1 -1
  174. package/dist/chunk-UYSF234H.js +1 -0
  175. package/dist/chunk-VE35YELD.js +1 -0
  176. package/dist/{chunk-WSDN25F5.js → chunk-VI34CKV6.js} +1 -1
  177. package/dist/chunk-VJ6KDRZI.js +1 -0
  178. package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
  179. package/dist/chunk-VKWPEFWQ.js +1 -0
  180. package/dist/chunk-VPPWSKOY.js +1 -0
  181. package/dist/chunk-VRJTLVG3.js +1 -0
  182. package/dist/chunk-VUMUCNI7.js +1 -0
  183. package/dist/chunk-W7DDV2EY.js +1 -0
  184. package/dist/chunk-WA3YC5W4.js +15 -0
  185. package/dist/chunk-WHNWE7P2.js +1 -0
  186. package/dist/chunk-WVRGCNBZ.js +1 -0
  187. package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
  188. package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
  189. package/dist/{chunk-OLZHWPZP.js → chunk-XWPPBOGF.js} +1 -1
  190. package/dist/chunk-YIRFEW5M.js +1 -0
  191. package/dist/{chunk-KR6QDE7D.js → chunk-YL3TYQGT.js} +1 -1
  192. package/dist/{chunk-7MUKLZOL.js → chunk-YLQ3LNNY.js} +3 -3
  193. package/dist/chunk-YMAWEIUR.js +1 -0
  194. package/dist/chunk-YPBCSDFQ.js +1 -0
  195. package/dist/{chunk-KZOBF55B.js → chunk-YSIBRY6C.js} +1 -1
  196. package/dist/{chunk-KHTV6PBV.js → chunk-YVQXEPHY.js} +1 -1
  197. package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
  198. package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
  199. package/dist/chunk-ZGJ3DFTQ.js +9 -0
  200. package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
  201. package/dist/chunk-ZM75DSIW.js +1 -0
  202. package/dist/{chunk-URZPVSJZ.js → chunk-ZUKLGZOU.js} +66 -66
  203. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  204. package/dist/cli/commands/app/build.js +1 -1
  205. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  206. package/dist/cli/commands/app/bulk/execute.js +1 -9
  207. package/dist/cli/commands/app/bulk/status.js +1 -5
  208. package/dist/cli/commands/app/config/link.js +1 -4
  209. package/dist/cli/commands/app/config/pull.js +1 -1
  210. package/dist/cli/commands/app/config/use.js +1 -1
  211. package/dist/cli/commands/app/config/validate.js +1 -3
  212. package/dist/cli/commands/app/demo/watcher.js +1 -1
  213. package/dist/cli/commands/app/deploy.js +1 -22
  214. package/dist/cli/commands/app/dev/clean.js +1 -5
  215. package/dist/cli/commands/app/dev.js +1 -320
  216. package/dist/cli/commands/app/env/pull.js +1 -11
  217. package/dist/cli/commands/app/env/show.js +1 -1
  218. package/dist/cli/commands/app/execute.js +1 -1
  219. package/dist/cli/commands/app/function/build.js +1 -1
  220. package/dist/cli/commands/app/function/info.js +1 -16
  221. package/dist/cli/commands/app/function/replay.js +1 -5
  222. package/dist/cli/commands/app/function/run.js +1 -1
  223. package/dist/cli/commands/app/function/schema.js +1 -1
  224. package/dist/cli/commands/app/function/typegen.js +1 -1
  225. package/dist/cli/commands/app/generate/extension.js +1 -5
  226. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  227. package/dist/cli/commands/app/import-extensions.js +1 -1
  228. package/dist/cli/commands/app/info.js +1 -11
  229. package/dist/cli/commands/app/init.js +1 -10
  230. package/dist/cli/commands/app/logs.js +1 -2
  231. package/dist/cli/commands/app/release.js +1 -4
  232. package/dist/cli/commands/app/versions/list.js +1 -1
  233. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  234. package/dist/cli/commands/auth/login.js +1 -1
  235. package/dist/cli/commands/auth/logout.js +1 -1
  236. package/dist/cli/commands/cache/clear.js +1 -1
  237. package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
  238. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  239. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  240. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  241. package/dist/cli/commands/debug/command-flags.js +1 -1
  242. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  243. package/dist/cli/commands/doc/fetch.js +1 -0
  244. package/dist/cli/commands/doc/search.d.ts +13 -0
  245. package/dist/cli/commands/doc/search.js +1 -0
  246. package/dist/cli/commands/docs/generate.js +1 -1
  247. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  248. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  249. package/dist/cli/commands/help.js +1 -1
  250. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  251. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  252. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  253. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  254. package/dist/cli/commands/notifications/generate.js +1 -1
  255. package/dist/cli/commands/notifications/list.js +1 -1
  256. package/dist/cli/commands/organization/list.js +1 -1
  257. package/dist/cli/commands/search.d.ts +4 -0
  258. package/dist/cli/commands/search.js +1 -1
  259. package/dist/cli/commands/theme/check.js +1 -1
  260. package/dist/cli/commands/theme/console.js +1 -15
  261. package/dist/cli/commands/theme/delete.js +1 -7
  262. package/dist/cli/commands/theme/dev.js +1 -26
  263. package/dist/cli/commands/theme/duplicate.js +1 -32
  264. package/dist/cli/commands/theme/info.js +1 -1
  265. package/dist/cli/commands/theme/init.js +1 -8
  266. package/dist/cli/commands/theme/language-server.js +1 -1
  267. package/dist/cli/commands/theme/list.js +1 -1
  268. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  269. package/dist/cli/commands/theme/open.js +1 -8
  270. package/dist/cli/commands/theme/package.js +1 -7
  271. package/dist/cli/commands/theme/preview.js +1 -1
  272. package/dist/cli/commands/theme/profile.js +1 -3
  273. package/dist/cli/commands/theme/publish.js +1 -7
  274. package/dist/cli/commands/theme/pull.js +1 -3
  275. package/dist/cli/commands/theme/push.js +1 -28
  276. package/dist/cli/commands/theme/rename.js +1 -6
  277. package/dist/cli/commands/theme/share.js +1 -3
  278. package/dist/cli/commands/upgrade.js +1 -1
  279. package/dist/cli/commands/version.js +1 -1
  280. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  281. package/dist/cli/services/commands/doc/fetch.js +45 -0
  282. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  283. package/dist/cli/services/commands/doc/search.js +47 -0
  284. package/dist/command-registry.js +1 -1
  285. package/dist/conf-store-UY3MDGGA.js +1 -0
  286. package/dist/configs/all.yml +3 -0
  287. package/dist/configs/recommended.yml +3 -0
  288. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-3AICQCNU.js} +1 -1
  289. package/dist/data/filters.json +60 -0
  290. package/dist/data/latest.json +1 -1
  291. package/dist/data/setting.json +29 -9
  292. package/dist/data/shopify_system_translations.json +71 -19
  293. package/dist/data/tags.json +3 -3
  294. package/dist/deprecations-KNUMDRIU.js +1 -0
  295. package/dist/{devtools-OLOT2NY4.js → devtools-37DE4MUR.js} +1 -1
  296. package/dist/{devtools-UFRKBFGI.js → devtools-WAWU5KQL.js} +1 -1
  297. package/dist/dist-C5IV2YDQ.js +1 -0
  298. package/dist/dist-VL4KZWV2.js +1 -0
  299. package/dist/environments-YPRVO2CF.js +1 -0
  300. package/dist/error-XRBQTNFM.js +1 -0
  301. package/dist/error-handler-NI7D6GSY.js +1 -0
  302. package/dist/{estree-KI7NUW53.js → estree-JV5M77BA.js} +2 -2
  303. package/dist/{flow-MLHT7MTJ.js → flow-N4JYPYMQ.js} +1 -1
  304. package/dist/fs-LJWVNO4H.js +1 -0
  305. package/dist/{glimmer-HAJ4HQCW.js → glimmer-JEV3BXHR.js} +1 -1
  306. package/dist/{graphql-F7IHGXDT.js → graphql-DTF6MHYF.js} +1 -1
  307. package/dist/hooks/app-init.js +1 -1
  308. package/dist/hooks/did-you-mean.js +1 -1
  309. package/dist/hooks/hydrogen-init.js +1 -1
  310. package/dist/hooks/plugin-plugins.js +1 -1
  311. package/dist/hooks/postrun.js +1 -1
  312. package/dist/hooks/prerun.js +1 -1
  313. package/dist/hooks/public-metadata.js +1 -1
  314. package/dist/hooks/sensitive-metadata.js +1 -1
  315. package/dist/hooks/tunnel-provider.js +1 -1
  316. package/dist/hooks/tunnel-start.js +1 -1
  317. package/dist/html-LVOJ3RQS.js +25 -0
  318. package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
  319. package/dist/index.js +23 -1175
  320. package/dist/is-global-W6ALVC5L.js +1 -0
  321. package/dist/is-wsl-UEMXYJPN.js +1 -0
  322. package/dist/{latest-version-EFWBOTWM.js → latest-version-32HXMWJ7.js} +1 -1
  323. package/dist/lib-AIKYSHWL.js +1 -0
  324. package/dist/lib-O5EZ4NVT.js +1 -0
  325. package/dist/lib-Q4PWEMFD.js +1 -0
  326. package/dist/lib-QJDPPAWN.js +1 -0
  327. package/dist/{local-MTKXSZ3I.js → local-GKEWZAIV.js} +1 -1
  328. package/dist/local-storage-ZOZMA22B.js +1 -0
  329. package/dist/{markdown-PLKL4IZK.js → markdown-J6CE6POI.js} +2 -2
  330. package/dist/{meriyah-AYZQ3BGY.js → meriyah-PNQQZQYI.js} +1 -1
  331. package/dist/metadata-UEUN64TK.js +1 -0
  332. package/dist/{morph-EMYAITFM.js → morph-CGOZEPPZ.js} +4 -4
  333. package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
  334. package/dist/node-package-manager-4ASQQIIF.js +1 -0
  335. package/dist/notifications-system-HLXJCAMG.js +1 -0
  336. package/dist/{npa-ICFSA3NL.js → npa-A4YSCQ5Q.js} +1 -1
  337. package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
  338. package/dist/out-CDCY25QC.js +1 -0
  339. package/dist/output-S6E37GJQ.js +1 -0
  340. package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
  341. package/dist/{postcss-3FJQPJI2.js → postcss-Q36SHOML.js} +2 -2
  342. package/dist/{prettier-NVRHEAFO.js → prettier-EGVCP5CY.js} +1 -1
  343. package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
  344. package/dist/system-YQZNGSWB.js +1 -0
  345. package/dist/tsconfig.tsbuildinfo +1 -1
  346. package/dist/typescript-5R4Y7PXE.js +1 -0
  347. package/dist/{typescript-ODJ335NU.js → typescript-WYPDGPSV.js} +1 -1
  348. package/dist/ui-D2FFWRK7.js +1 -0
  349. package/dist/upgrade-TVTCFMXM.js +1 -0
  350. package/dist/version-J6MDN7BZ.js +1 -0
  351. package/dist/version-RIRW5EXQ.js +1 -0
  352. package/dist/workerd-QOTT6UCO.js +18 -0
  353. package/dist/{yaml-BIHS2GQW.js → yaml-6KWCJ64X.js} +1 -1
  354. package/oclif.manifest.json +442 -9
  355. package/package.json +18 -12
  356. package/dist/analytics-5TEIW43T.js +0 -1
  357. package/dist/analytics-GG7CYCGL.js +0 -1
  358. package/dist/angular-VRDO2DBE.js +0 -4
  359. package/dist/chunk-3D4JXJPS.js +0 -2
  360. package/dist/chunk-3NBK56IK.js +0 -1
  361. package/dist/chunk-4ZGSSQC6.js +0 -1
  362. package/dist/chunk-54CAKCYR.js +0 -144
  363. package/dist/chunk-5UHQVR2Z.js +0 -1
  364. package/dist/chunk-67MH4AXG.js +0 -1
  365. package/dist/chunk-6CYMJ76C.js +0 -9
  366. package/dist/chunk-6HBRBQAN.js +0 -6
  367. package/dist/chunk-6ITDI2SD.js +0 -1
  368. package/dist/chunk-6SF3ZETE.js +0 -1
  369. package/dist/chunk-6WL4GA2M.js +0 -15
  370. package/dist/chunk-7ESSIN27.js +0 -567
  371. package/dist/chunk-7QIOUDCX.js +0 -8
  372. package/dist/chunk-7ZT57XT7.js +0 -2
  373. package/dist/chunk-AKML26N3.js +0 -7
  374. package/dist/chunk-C2IK2HY3.js +0 -4
  375. package/dist/chunk-CBXSPL4W.js +0 -1
  376. package/dist/chunk-CEIQFLCN.js +0 -1
  377. package/dist/chunk-CERXUPGC.js +0 -14
  378. package/dist/chunk-DCPBRWVC.js +0 -1
  379. package/dist/chunk-DN2IE3VY.js +0 -1
  380. package/dist/chunk-EQU4MUQJ.js +0 -1
  381. package/dist/chunk-F2QU6WWX.js +0 -1
  382. package/dist/chunk-FFQ5EWII.js +0 -294
  383. package/dist/chunk-FKMC5OFF.js +0 -1
  384. package/dist/chunk-FUOIGXI4.js +0 -1
  385. package/dist/chunk-FYFNUDOC.js +0 -19
  386. package/dist/chunk-G4BPGWJC.js +0 -1
  387. package/dist/chunk-GVQIPEZT.js +0 -1
  388. package/dist/chunk-GZS44BUW.js +0 -102
  389. package/dist/chunk-HIBX234C.js +0 -6
  390. package/dist/chunk-HRUGYZZ4.js +0 -2
  391. package/dist/chunk-HUIJMGVJ.js +0 -586
  392. package/dist/chunk-IX5ICOBV.js +0 -7
  393. package/dist/chunk-IZ3C5J7G.js +0 -5
  394. package/dist/chunk-JAO53IH2.js +0 -1
  395. package/dist/chunk-JCL2RRU6.js +0 -1
  396. package/dist/chunk-JQJBBXMX.js +0 -17
  397. package/dist/chunk-K2WUCOQJ.js +0 -32
  398. package/dist/chunk-K6CTUBFC.js +0 -12
  399. package/dist/chunk-KKTW6ZCA.js +0 -5
  400. package/dist/chunk-LDGAHMS7.js +0 -159
  401. package/dist/chunk-M3RYUB22.js +0 -1
  402. package/dist/chunk-M56NDIMD.js +0 -1
  403. package/dist/chunk-MWGBTOO3.js +0 -1
  404. package/dist/chunk-N5PQPIBF.js +0 -374
  405. package/dist/chunk-NF2ABOOU.js +0 -1
  406. package/dist/chunk-NPEVESCV.js +0 -3
  407. package/dist/chunk-OTY24J2W.js +0 -1
  408. package/dist/chunk-OY3PNHPZ.js +0 -103
  409. package/dist/chunk-PAP22IQO.js +0 -264
  410. package/dist/chunk-PYVAWAUO.js +0 -5
  411. package/dist/chunk-QA23HIH4.js +0 -1
  412. package/dist/chunk-S6EJHWJL.js +0 -1
  413. package/dist/chunk-SIMFNECG.js +0 -1
  414. package/dist/chunk-T542UQBY.js +0 -1
  415. package/dist/chunk-TQ6HYDVC.js +0 -1
  416. package/dist/chunk-UHJYPEY2.js +0 -1
  417. package/dist/chunk-UJXUSRQK.js +0 -1
  418. package/dist/chunk-UWJ73J4B.js +0 -1
  419. package/dist/chunk-UXVZ2P63.js +0 -1411
  420. package/dist/chunk-VPRTJUIN.js +0 -1
  421. package/dist/chunk-WFXRSKRK.js +0 -1
  422. package/dist/chunk-XEFQQPL4.js +0 -1
  423. package/dist/chunk-XITQULK4.js +0 -3
  424. package/dist/chunk-XONFGLJQ.js +0 -847
  425. package/dist/chunk-XR6GMMEU.js +0 -1
  426. package/dist/chunk-XXVEHDVO.js +0 -1
  427. package/dist/chunk-Y7JGYGV7.js +0 -1
  428. package/dist/chunk-YOZNRLFC.js +0 -1
  429. package/dist/chunk-YTNDFQJT.js +0 -3
  430. package/dist/chunk-ZBRRJDGW.js +0 -1
  431. package/dist/chunk-ZTMSBSYD.js +0 -1
  432. package/dist/conf-store-BMZFATRQ.js +0 -1
  433. package/dist/deprecations-7LHRXPXU.js +0 -1
  434. package/dist/dist-LDXPBYSZ.js +0 -1
  435. package/dist/dist-V63ILV6L.js +0 -1
  436. package/dist/environments-5X7S2O5U.js +0 -1
  437. package/dist/error-ZRLNNGIQ.js +0 -1
  438. package/dist/error-handler-PRZFHPRG.js +0 -1
  439. package/dist/fs-H7V6IRSH.js +0 -1
  440. package/dist/html-VSSXOZOQ.js +0 -25
  441. package/dist/is-global-IOWPCT2U.js +0 -1
  442. package/dist/is-wsl-FVUIXDOK.js +0 -1
  443. package/dist/lib-5L7UKDEK.js +0 -1
  444. package/dist/lib-C3VO2BQW.js +0 -1
  445. package/dist/lib-QB6I6CTC.js +0 -1
  446. package/dist/lib-WU3FEA6I.js +0 -1
  447. package/dist/local-storage-CYEL4MXF.js +0 -1
  448. package/dist/metadata-NOVBMKLM.js +0 -1
  449. package/dist/node-package-manager-N5CVNHA3.js +0 -1
  450. package/dist/notifications-system-YX2GPLDW.js +0 -1
  451. package/dist/out-WLY6KV4B.js +0 -1
  452. package/dist/output-Q46DT46U.js +0 -1
  453. package/dist/system-E6Q3OBX3.js +0 -1
  454. package/dist/typescript-K5CWIA4V.js +0 -1
  455. package/dist/ui-WRS2IDPP.js +0 -1
  456. package/dist/upgrade-TKUN2M5P.js +0 -1
  457. package/dist/version-5W5RVAPA.js +0 -1
  458. package/dist/version-BQJ3FPXD.js +0 -1
  459. package/dist/workerd-GOK6GWEX.js +0 -18
@@ -0,0 +1 @@
1
+ import{Ab as c,Bb as d,Cb as e,yb as a,zb as b}from"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.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-VKWPEFWQ.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-GB3YC4TI.js";import{a as Oo}from"./chunk-CX5CC6P5.js";import{a as R,c as C,e as ee,g as f}from"./chunk-VKWPEFWQ.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
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-J5BRKYGE.js";import"./chunk-XWPPBOGF.js";import"./chunk-IWOTLFOY.js";import"./chunk-EJDWYASP.js";import"./chunk-AAK376RT.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-A4SBXDZB.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{a as commands};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-7UNQOKZW.js";import"./chunk-VKWPEFWQ.js";export default a();
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-J3H4LPN6.js";import"./chunk-AAK376RT.js";import"./chunk-P2OI2P2M.js";import"./chunk-XVUHUA36.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{a as commands,b as hooks};
@@ -0,0 +1 @@
1
+ import{r as a}from"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export default a();
@@ -1 +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-YTNDFQJT.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};
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-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-VKWPEFWQ.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-N5LVGFDS.js";import"./chunk-RJ5VF3QY.js";import"./chunk-TPCG6DCA.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{a as LocalStorage};
@@ -1,4 +1,4 @@
1
- import{b as Yt,g as We}from"./chunk-VPRTJUIN.js";function wn(u){return this[u<0?this.length+u:u]}function Ee(u){if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function On(u){if(typeof u=="string")return Ru;if(Array.isArray(u))return qu;if(!u)return;let{type:e}=u;if(mt.has(e))return e}function Rn(u){let e=u===null?"null":typeof u;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
1
+ import{b as Yt,g as We}from"./chunk-VKWPEFWQ.js";function wn(u){return this[u<0?this.length+u:u]}function Ee(u){if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function On(u){if(typeof u=="string")return Ru;if(Array.isArray(u))return qu;if(!u)return;let{type:e}=u;if(mt.has(e))return e}function Rn(u){let e=u===null?"null":typeof u;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
2
2
  Expected it to be 'string' or 'object'.`;if(Lu(u))throw new Error("doc is valid.");let t=Object.prototype.toString.call(u);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let r=Nn([...mt].map(n=>`'${n}'`));return`Unexpected doc.type '${u.type}'.
3
3
  Expected it to be ${r}.`}function Pn(u,e,t,r){let n=[u];for(;n.length>0;){let i=n.pop();if(i===Ge){t(n.pop());continue}t&&n.push(i,Ge);let a=Lu(i);if(!a)throw new he(i);if(e?.(i)!==!1)switch(a){case qu:case Iu:{let o=a===qu?i:i.parts;for(let D=o.length,l=D-1;l>=0;--l)n.push(o[l]);break}case ku:n.push(i.flatContents,i.breakContents);break;case Su:if(r&&i.expandedStates)for(let o=i.expandedStates.length,D=o-1;D>=0;--D)n.push(i.expandedStates[D]);else n.push(i.contents);break;case Hu:case Vu:case ie:case De:case oe:n.push(i.contents);break;case Ru:case ve:case ne:case ae:case bu:case Wu:break;default:throw new he(i)}}}function zn(u,e){if(typeof u=="string")return e(u);let t=new Map;return r(u);function r(i){if(t.has(i))return t.get(i);let a=n(i);return t.set(i,a),a}function n(i){switch(Lu(i)){case qu:return e(i.map(r));case Iu:return e({...i,parts:i.parts.map(r)});case ku:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Su:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(r),o=a[0]):o=r(o),e({...i,contents:o,expandedStates:a})}case Hu:case Vu:case ie:case De:case oe:return e({...i,contents:r(i.contents)});case Ru:case ve:case ne:case ae:case bu:case Wu:return e(i);default:throw new he(i)}}}function Je(u){if(u.length>0){let e=Au(0,u,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function $n(u){let e=new Set,t=[];function r(i){if(i.type===Wu&&Je(t),i.type===Su){if(t.push(i),e.has(i))return!1;e.add(i)}}function n(i){i.type===Su&&t.pop().break&&Je(t)}jn(u,r,n,!0)}function Pu(u,e=Se){return zn(u,t=>typeof t=="string"?xt(e,t.split(`
4
4
  `)):t)}function ke(u){return ju(u),{type:Vu,contents:u}}function Nu(u,e){return Mn(u),ju(e),{type:Hu,contents:e,n:u}}function qe(u){return Nu({type:"root"},u)}function Pe(u){return Un(u),{type:Iu,parts:u}}function fe(u,e={}){return ju(u),vt(e.expandedStates,!0),{type:Su,id:e.id,contents:u,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function _n(u,e="",t={}){return ju(u),e!==""&&ju(e),{type:ku,breakContents:u,flatContents:e,groupId:t.groupId}}function xt(u,e){ju(u),vt(e);let t=[];for(let r=0;r<e.length;r++)r!==0&&t.push(u),t.push(e[r]);return t}function Qn(u){return u===Hn?Gn:u===Wn?Jn:Kn}function Xn(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function ui(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function ni(u){if(!u)return 0;if(!ti.test(u))return u.length;u=u.replace(Zn(),t=>ri.has(t)?" ":" ");let e=0;for(let t of u){let r=t.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(e+=Xn(r)||ui(r)?2:1)}return e}function wt(u,e,t){let r=e.type===1?u.queue.slice(0,-1):[...u.queue,e],n="",i=0,a=0,o=0;for(let E of r)switch(E.type){case 0:s(),t.useTabs?D(1):l(t.tabWidth);break;case 3:{let{string:m}=E;s(),n+=m,i+=m.length;break}case 2:{let{width:m}=E;a+=1,o+=m;break}default:throw new Error(`Unexpected indent comment '${E.type}'.`)}return C(),{...u,value:n,length:i,queue:r};function D(E){n+=" ".repeat(E),i+=t.tabWidth*E}function l(E){n+=" ".repeat(E),i+=E}function s(){t.useTabs?c():C()}function c(){a>0&&D(a),d()}function C(){o>0&&l(o),d()}function d(){a=0,o=0}}function ai(u,e,t){if(!e)return u;if(e.type==="root")return{...u,root:u};if(e===Number.NEGATIVE_INFINITY)return u.root;let r;return typeof e=="number"?e<0?r=oi:r={type:2,width:e}:r={type:3,string:e},wt(u,r,t)}function Di(u,e){return wt(u,ii,e)}function si(u){let e=0;for(let t=u.length-1;t>=0;t--){let r=u[t];if(r===" "||r===" ")e++;else break}return e}function kt(u){let e=si(u);return{text:e===0?u:u.slice(0,u.length-e),count:e}}function ce(u,e,t,r,n,i){if(t===Number.POSITIVE_INFINITY)return!0;let a=e.length,o=!1,D=[u],l="";for(;t>=0;){if(D.length===0){if(a===0)return!0;D.push(e[--a]);continue}let{mode:s,doc:c}=D.pop(),C=Lu(c);switch(C){case Ru:c&&(o&&(l+=" ",t-=1,o=!1),l+=c,t-=ze(c));break;case qu:case Iu:{let d=C===qu?c:c.parts,E=c[Le]??0;for(let m=d.length-1;m>=E;m--)D.push({mode:s,doc:d[m]});break}case Vu:case Hu:case ie:case De:D.push({mode:s,doc:c.contents});break;case ne:{let{text:d,count:E}=kt(l);l=d,t+=E;break}case Su:{if(i&&c.break)return!1;let d=c.break?pu:s,E=c.expandedStates&&d===pu?Au(0,c.expandedStates,-1):c.contents;D.push({mode:d,doc:E});break}case ku:{let d=(c.groupId?n[c.groupId]||mu:s)===pu?c.breakContents:c.flatContents;d&&D.push({mode:s,doc:d});break}case bu:if(s===pu||c.hard)return!0;c.soft||(o=!0);break;case oe:r=!0;break;case ae:if(r)return!1;break}}return!1}function li(u,e){let t=Object.create(null),r=e.printWidth,n=Qn(e.endOfLine),i=0,a=[{indent:yt,mode:pu,doc:u}],o="",D=!1,l=[],s=[],c=[],C=[],d=0;for($n(u);a.length>0;){let{indent:f,mode:B,doc:p}=a.pop();switch(Lu(p)){case Ru:{let h=n!==`
@@ -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,`