@vercel/cli-support 68.0.0 → 68.1.0-snapshot-3c48721091f5

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 (494) hide show
  1. package/dist/chunks/add-57EE2LQO.js +8 -0
  2. package/dist/chunks/{add-4ZXS4RRN.js → add-DNRNPUU7.js} +1 -1
  3. package/dist/chunks/{add-G2LGF4HL.js → add-FLVE2M3L.js} +1 -1
  4. package/dist/chunks/{alerts-3352VWDL.js → alerts-26PDHRBL.js} +1 -1
  5. package/dist/chunks/{api-endpoints-2IYXPLEG.js → api-endpoints-EY2DO75S.js} +1 -1
  6. package/dist/chunks/auth-4A5CXZOA.js +7 -0
  7. package/dist/chunks/auth-ZJV6OHMS.js +7 -0
  8. package/dist/chunks/{build-3UFKTTS5.js → build-6WTRWW2M.js} +1 -1
  9. package/dist/chunks/{chunk-D6REP5QQ.js → chunk-2GXP676X.js} +1 -1
  10. package/dist/chunks/{chunk-MXTC4ZAQ.js → chunk-2ILZM77F.js} +1 -1
  11. package/dist/chunks/{chunk-OFDTADPQ.js → chunk-2K7U64CN.js} +1 -1
  12. package/dist/chunks/{chunk-Y4YBQUQM.js → chunk-2STLJAXZ.js} +1 -1
  13. package/dist/chunks/{chunk-PAHYNO73.js → chunk-2TUJJIYU.js} +1 -1
  14. package/dist/chunks/chunk-2XQO6C7Q.js +7 -0
  15. package/dist/chunks/{chunk-DH4A4QMD.js → chunk-33ETNP4M.js} +1 -1
  16. package/dist/chunks/{chunk-L46V6VL3.js → chunk-37SWAKIV.js} +1 -1
  17. package/dist/chunks/{chunk-23FY4PR3.js → chunk-3F3WNT5K.js} +1 -1
  18. package/dist/chunks/{chunk-ZXSZH7N5.js → chunk-3GKXXGSO.js} +1 -1
  19. package/dist/chunks/{chunk-QSL6AG2B.js → chunk-3HP6FOOL.js} +1 -1
  20. package/dist/chunks/{chunk-M32HBBPK.js → chunk-3WXQHKSS.js} +1 -1
  21. package/dist/chunks/{chunk-JELLVPCM.js → chunk-3XMKTJ5T.js} +1 -1
  22. package/dist/chunks/{chunk-YLXXGQQQ.js → chunk-42D3CPWB.js} +1 -1
  23. package/dist/chunks/{chunk-5A3DDLQR.js → chunk-42RUDD27.js} +1 -1
  24. package/dist/chunks/{chunk-HRR57QNP.js → chunk-46R47IE5.js} +1 -1
  25. package/dist/chunks/{chunk-OOPF73RV.js → chunk-4FPYV37P.js} +1 -1
  26. package/dist/chunks/{chunk-CAJ2OUSR.js → chunk-4L7AKIX7.js} +1 -1
  27. package/dist/chunks/{chunk-SGNDE4YS.js → chunk-4MAA4BQD.js} +1 -1
  28. package/dist/chunks/{chunk-FTNLCQC6.js → chunk-4OOHXEKI.js} +1 -1
  29. package/dist/chunks/{chunk-NMIB4JYP.js → chunk-4R7ICESH.js} +1 -1
  30. package/dist/chunks/{chunk-MCYG7CCE.js → chunk-4SIQE2W4.js} +1 -1
  31. package/dist/chunks/chunk-4WEKKDOL.js +8 -0
  32. package/dist/chunks/{chunk-TU54LHNW.js → chunk-54W7S4EV.js} +1 -1
  33. package/dist/chunks/{chunk-NWGBDBZI.js → chunk-5F4RJ32E.js} +1 -1
  34. package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-5QC4IKRZ.js} +1 -1
  35. package/dist/chunks/{chunk-2AMO2VMV.js → chunk-64GNDWWX.js} +1 -1
  36. package/dist/chunks/{chunk-J24BABG4.js → chunk-6G2AZBW5.js} +1 -1
  37. package/dist/chunks/{chunk-DY643UZ7.js → chunk-6JBKQ5LR.js} +2 -3
  38. package/dist/chunks/{chunk-AVCLYJNC.js → chunk-6KI5LJIB.js} +1 -1
  39. package/dist/chunks/{chunk-X755TPX6.js → chunk-6O2LDFGJ.js} +1 -1
  40. package/dist/chunks/chunk-6OOJFAF5.js +20 -0
  41. package/dist/chunks/{chunk-E7IN2DGU.js → chunk-6XXXPJBV.js} +1 -1
  42. package/dist/chunks/chunk-732HWE3P.js +181 -0
  43. package/dist/chunks/chunk-75TGTOZQ.js +8 -0
  44. package/dist/chunks/{chunk-4FBOQLPZ.js → chunk-76AOTUM2.js} +1 -1
  45. package/dist/chunks/{chunk-KXMFGDO4.js → chunk-76XUBFXI.js} +1 -1
  46. package/dist/chunks/{chunk-VBANKZWM.js → chunk-7CLATJZX.js} +1 -1
  47. package/dist/chunks/{chunk-UPDIZCP3.js → chunk-7EI554V5.js} +1 -1
  48. package/dist/chunks/{chunk-IVZNPSHU.js → chunk-7IHVCKUV.js} +1 -1
  49. package/dist/chunks/{chunk-PSOVLGHP.js → chunk-7O3D3XED.js} +1 -1
  50. package/dist/chunks/{chunk-YTSUDTAK.js → chunk-7OOCSVWT.js} +1 -1
  51. package/dist/chunks/{chunk-FXLZM6Q7.js → chunk-7PK2JFEH.js} +1 -1
  52. package/dist/chunks/chunk-7Q5I3L37.js +68 -0
  53. package/dist/chunks/{chunk-24SIHFEW.js → chunk-7QHUMMBA.js} +1 -1
  54. package/dist/chunks/{chunk-5727HGA6.js → chunk-7TREJIPV.js} +1 -1
  55. package/dist/chunks/{chunk-4HR3I3ML.js → chunk-7TRHPXCG.js} +1 -1
  56. package/dist/chunks/{chunk-BLUPZPAS.js → chunk-7Y572CPZ.js} +1 -1
  57. package/dist/chunks/chunk-7ZCM4LWL.js +15 -0
  58. package/dist/chunks/{chunk-H3ZSF2P3.js → chunk-A7XRIU6Z.js} +1 -1
  59. package/dist/chunks/chunk-AASXSNBW.js +17 -0
  60. package/dist/chunks/{chunk-6DBLXAJI.js → chunk-AGFG7WHE.js} +1 -1
  61. package/dist/chunks/{chunk-Z73UJVGD.js → chunk-AU54JBLF.js} +1 -1
  62. package/dist/chunks/{chunk-SQ62IODX.js → chunk-AUCQKYL2.js} +1 -1
  63. package/dist/chunks/{chunk-SCV7XEEO.js → chunk-AX6UCTOC.js} +1 -1
  64. package/dist/chunks/{chunk-QHGPFYWQ.js → chunk-B7LM2BNN.js} +1 -1
  65. package/dist/chunks/{chunk-E3AML3VR.js → chunk-BB27VKHS.js} +1 -1
  66. package/dist/chunks/{chunk-YBAGKQXC.js → chunk-BCD4TRQF.js} +1 -1
  67. package/dist/chunks/{chunk-OQXHBPPS.js → chunk-BCRZI5IM.js} +1 -1
  68. package/dist/chunks/{chunk-KA2KG3SY.js → chunk-BDLZ6WL2.js} +1 -1
  69. package/dist/chunks/chunk-BFS4K2RF.js +7 -0
  70. package/dist/chunks/chunk-BKJ4H6KK.js +8 -0
  71. package/dist/chunks/{chunk-COD3WAUI.js → chunk-BNWEJZAC.js} +1 -1
  72. package/dist/chunks/{chunk-5MDNVAE6.js → chunk-BVFFSUG3.js} +1 -1
  73. package/dist/chunks/{chunk-LDDXXDN5.js → chunk-C2R5IEN6.js} +1 -1
  74. package/dist/chunks/{chunk-F7L5SXJM.js → chunk-CDO5IECP.js} +1 -1
  75. package/dist/chunks/{chunk-YN3HZJXW.js → chunk-CHTFRAXA.js} +1 -1
  76. package/dist/chunks/{chunk-XOETL6DB.js → chunk-CHY2NJU4.js} +1 -1
  77. package/dist/chunks/{chunk-MYVALJ4D.js → chunk-CNGI6Z2G.js} +1 -1
  78. package/dist/chunks/{chunk-4SWS7RKX.js → chunk-CRPZYLIL.js} +1 -1
  79. package/dist/chunks/{chunk-PVASGBEF.js → chunk-CSU46B7Q.js} +1 -1
  80. package/dist/chunks/{chunk-DORCX7UB.js → chunk-CUO3CYU3.js} +1 -1
  81. package/dist/chunks/{chunk-4SAVH3H7.js → chunk-DCFCPAFQ.js} +1 -1
  82. package/dist/chunks/{chunk-2DH6LTUI.js → chunk-DRDY2UZX.js} +1 -1
  83. package/dist/chunks/{chunk-D2JNI6UB.js → chunk-DWA7B7TB.js} +1 -1
  84. package/dist/chunks/chunk-DXFFWNK4.js +8 -0
  85. package/dist/chunks/chunk-E6VQXHBD.js +11 -0
  86. package/dist/chunks/chunk-E7ICSU45.js +7 -0
  87. package/dist/chunks/{chunk-F4KY2TOK.js → chunk-EAQLOKZX.js} +1 -1
  88. package/dist/chunks/{chunk-ZGM4K3B5.js → chunk-ECQW2R5M.js} +1 -1
  89. package/dist/chunks/{chunk-VJNTVPUV.js → chunk-EDXNAXEZ.js} +1 -1
  90. package/dist/chunks/{chunk-B4KA3ZH2.js → chunk-EFGZK6OY.js} +1 -1
  91. package/dist/chunks/{chunk-MWFHS4HV.js → chunk-EGXRQ73P.js} +1 -1
  92. package/dist/chunks/chunk-EK7U42I4.js +9 -0
  93. package/dist/chunks/{chunk-ID663OJ7.js → chunk-EL65DTVZ.js} +1 -1
  94. package/dist/chunks/{chunk-KNNIA3PS.js → chunk-EPCRR72R.js} +1 -1
  95. package/dist/chunks/{chunk-3G3FQYMW.js → chunk-ERMHTPO4.js} +1 -1
  96. package/dist/chunks/chunk-EV2VKG2V.js +8 -0
  97. package/dist/chunks/{chunk-E5A7E7X6.js → chunk-EZ3HXFLB.js} +1 -1
  98. package/dist/chunks/{chunk-NMY2YZ6M.js → chunk-F5FBLRH3.js} +1 -1
  99. package/dist/chunks/{chunk-VWKA6RKB.js → chunk-FHNHVEOX.js} +1 -1
  100. package/dist/chunks/{chunk-D3M2JG5C.js → chunk-FIICEEXO.js} +1 -1
  101. package/dist/chunks/{chunk-ZBOTJT5S.js → chunk-FMLRVSWK.js} +1 -1
  102. package/dist/chunks/chunk-FO7OSSLI.js +13 -0
  103. package/dist/chunks/{chunk-XC25DYA7.js → chunk-FSM7YM4W.js} +2 -2
  104. package/dist/chunks/chunk-FSMZPHAA.js +33 -0
  105. package/dist/chunks/chunk-FUH5PBGR.js +7 -0
  106. package/dist/chunks/{chunk-QPNTR3PA.js → chunk-FVMRKUWL.js} +1 -1
  107. package/dist/chunks/chunk-GB77JTTX.js +8 -0
  108. package/dist/chunks/{chunk-BIABM3FB.js → chunk-GILTW5RJ.js} +1 -1
  109. package/dist/chunks/{chunk-AW5KOUD7.js → chunk-GNQ7KLCN.js} +1 -1
  110. package/dist/chunks/{chunk-KLBSCTLL.js → chunk-GO64LSUW.js} +1 -1
  111. package/dist/chunks/{chunk-4NTBYNFR.js → chunk-GOXGA37R.js} +1 -1
  112. package/dist/chunks/{chunk-DGLE44KA.js → chunk-GPVXJI6X.js} +1 -1
  113. package/dist/chunks/{chunk-YTSGFU5T.js → chunk-GUFRGEM5.js} +1 -1
  114. package/dist/chunks/{chunk-WHEA5VLX.js → chunk-H43XHICL.js} +1 -1
  115. package/dist/chunks/{chunk-U43WXZBP.js → chunk-HAAKXJ4V.js} +1 -1
  116. package/dist/chunks/chunk-HAM7ZPEC.js +7 -0
  117. package/dist/chunks/{chunk-ZHGKJCQ2.js → chunk-HDKEES7E.js} +5 -5
  118. package/dist/chunks/{chunk-BTI5TG6Q.js → chunk-HGXM4UBQ.js} +1 -1
  119. package/dist/chunks/chunk-HIEFNLLO.js +7 -0
  120. package/dist/chunks/{chunk-2KXLL3DX.js → chunk-HSQPQ5RV.js} +1 -1
  121. package/dist/chunks/{chunk-DDZEKNQR.js → chunk-HT3CQEAF.js} +1 -1
  122. package/dist/chunks/{chunk-7JU5RJ3H.js → chunk-HT5EXCYX.js} +1 -1
  123. package/dist/chunks/{chunk-Z3YQZSU4.js → chunk-HXIOR7P6.js} +1 -1
  124. package/dist/chunks/{chunk-6NC2JFUQ.js → chunk-I254SHTL.js} +1 -1
  125. package/dist/chunks/{chunk-OPORM35X.js → chunk-IFMPBA4K.js} +1 -1
  126. package/dist/chunks/{chunk-EHAS6SQB.js → chunk-IKOVY76G.js} +1 -1
  127. package/dist/chunks/{chunk-BUBVZ6SQ.js → chunk-ILNTOWHG.js} +1 -1
  128. package/dist/chunks/chunk-ILUU3SGP.js +13 -0
  129. package/dist/chunks/{chunk-MCRKBVZA.js → chunk-IMLHRJ4K.js} +1 -1
  130. package/dist/chunks/{chunk-DTCQWGHE.js → chunk-IMZD7QEB.js} +2 -2
  131. package/dist/chunks/chunk-IVJEYHF5.js +8 -0
  132. package/dist/chunks/{chunk-Q6YPC3GK.js → chunk-IZOKMWU5.js} +1 -1
  133. package/dist/chunks/{chunk-BPUANOGW.js → chunk-IZV6K7RR.js} +1 -1
  134. package/dist/chunks/chunk-J5MGMWRV.js +9 -0
  135. package/dist/chunks/{chunk-BOJDM3O7.js → chunk-JCDPMWKO.js} +1 -1
  136. package/dist/chunks/{chunk-Y3V4JYK6.js → chunk-JGEJY7AC.js} +1 -1
  137. package/dist/chunks/chunk-JJTAADC5.js +7 -0
  138. package/dist/chunks/{chunk-OZKP3WKT.js → chunk-JK3NTR7T.js} +1 -1
  139. package/dist/chunks/{chunk-76NL3ZRJ.js → chunk-JM7KUCBM.js} +1 -1
  140. package/dist/chunks/chunk-JPJ6HGAN.js +7 -0
  141. package/dist/chunks/{chunk-O3YZLVC6.js → chunk-JRUL67UC.js} +3 -3
  142. package/dist/chunks/{chunk-J5SINMVO.js → chunk-K4J43D5J.js} +1 -1
  143. package/dist/chunks/{chunk-LUX4PBJL.js → chunk-K5GE24PG.js} +1 -1
  144. package/dist/chunks/{chunk-25565AGS.js → chunk-K7YK4PZP.js} +1 -1
  145. package/dist/chunks/{chunk-CTBSRTJW.js → chunk-KDCLHZYL.js} +1 -1
  146. package/dist/chunks/{chunk-GXWBL6YV.js → chunk-KDIICSD5.js} +1 -1
  147. package/dist/chunks/{chunk-FBYA6LLM.js → chunk-KHJWQ4WP.js} +1 -1
  148. package/dist/chunks/{chunk-2FUGD6J7.js → chunk-KNKGJD5J.js} +1 -1
  149. package/dist/chunks/{chunk-BRQUZ5NC.js → chunk-L4CSJDG7.js} +1 -1
  150. package/dist/chunks/{chunk-ISWW3DKF.js → chunk-L6MWUMWZ.js} +1 -1
  151. package/dist/chunks/{chunk-A6CMQOL7.js → chunk-LBJ7EOZM.js} +1 -1
  152. package/dist/chunks/{chunk-22ZRVWYP.js → chunk-LHK6B4ER.js} +2 -2
  153. package/dist/chunks/{chunk-ZBZQEDZY.js → chunk-LKFQMY5V.js} +1 -1
  154. package/dist/chunks/{chunk-KKYNEEM7.js → chunk-LKXPJLOP.js} +1 -1
  155. package/dist/chunks/{chunk-Q7D7RGXM.js → chunk-LLHXL3SV.js} +1 -1
  156. package/dist/chunks/{chunk-BS32OUOC.js → chunk-LPYHYTYI.js} +1 -1
  157. package/dist/chunks/{chunk-6WBEU34Y.js → chunk-LVPY2RTU.js} +1 -1
  158. package/dist/chunks/{chunk-A2RZZQEP.js → chunk-LY3EY2VG.js} +1 -1
  159. package/dist/chunks/chunk-M2XLLWK7.js +7 -0
  160. package/dist/chunks/chunk-M3LYYAQ6.js +7 -0
  161. package/dist/chunks/{chunk-7WDSOKOY.js → chunk-MAAJGMXM.js} +1 -1
  162. package/dist/chunks/{chunk-DWZBL4NK.js → chunk-MAIZY5BV.js} +1 -1
  163. package/dist/chunks/{chunk-5U2YLD56.js → chunk-MEF5BUJ5.js} +1 -1
  164. package/dist/chunks/{chunk-YHPPP3SF.js → chunk-MF43WTDT.js} +1 -1
  165. package/dist/chunks/{chunk-YFOBGEOW.js → chunk-MJKDKZ2J.js} +1 -1
  166. package/dist/chunks/{chunk-6Z5REGCM.js → chunk-MMMX3KE2.js} +1 -1
  167. package/dist/chunks/{chunk-ISSNEDG5.js → chunk-MN2F4NPH.js} +1 -1
  168. package/dist/chunks/{chunk-QFE3RPMA.js → chunk-MTPHHAPR.js} +1 -1
  169. package/dist/chunks/{slugify-NMMUASYK.js → chunk-N3COHC7T.js} +1 -1
  170. package/dist/chunks/{chunk-5WYJSLCF.js → chunk-N4FZIVIS.js} +1 -1
  171. package/dist/chunks/{chunk-27FVSW45.js → chunk-N7IBUNFY.js} +1 -1
  172. package/dist/chunks/{chunk-BZENIQ7N.js → chunk-NBPLUP7C.js} +1 -1
  173. package/dist/chunks/chunk-NE5RTEMC.js +7 -0
  174. package/dist/chunks/{chunk-DXFP22OK.js → chunk-NFBFXM6X.js} +1 -1
  175. package/dist/chunks/chunk-NXUDP37D.js +7 -0
  176. package/dist/chunks/{chunk-FB37TFVF.js → chunk-O256QMQM.js} +1 -1
  177. package/dist/chunks/{chunk-D6O5O3CW.js → chunk-OICSITNU.js} +1 -1
  178. package/dist/chunks/{chunk-PFD7LETF.js → chunk-OM6NML7C.js} +1 -1
  179. package/dist/chunks/chunk-OTIERMC7.js +7 -0
  180. package/dist/chunks/chunk-OVVHONX7.js +8 -0
  181. package/dist/chunks/{chunk-T44RB754.js → chunk-OXQKWOLS.js} +1 -1
  182. package/dist/chunks/chunk-P7GA2C6N.js +7 -0
  183. package/dist/chunks/{chunk-XE4SLG5H.js → chunk-PG5BHJVH.js} +1 -1
  184. package/dist/chunks/{chunk-AW33SRYY.js → chunk-PH2MLBQO.js} +1 -1
  185. package/dist/chunks/{chunk-DNONVY2L.js → chunk-PIGJVJNM.js} +2 -2
  186. package/dist/chunks/chunk-PP7BNCIG.js +7 -0
  187. package/dist/chunks/{chunk-BKFRN6C2.js → chunk-PR4NNS3O.js} +1 -1
  188. package/dist/chunks/chunk-PSMKLDLV.js +18 -0
  189. package/dist/chunks/chunk-PW67ZNDU.js +8 -0
  190. package/dist/chunks/{chunk-O3GQG2ML.js → chunk-Q3R4HAAA.js} +2 -2
  191. package/dist/chunks/chunk-Q4W3R6U2.js +12 -0
  192. package/dist/chunks/{chunk-A4LOQ3UK.js → chunk-QAVUE3TR.js} +1 -1
  193. package/dist/chunks/{chunk-U5SZQUYO.js → chunk-QCYCLWNG.js} +1 -1
  194. package/dist/chunks/{chunk-MGKNSTU4.js → chunk-QMI7GTT2.js} +1 -1
  195. package/dist/chunks/{chunk-S3L2OHPO.js → chunk-QNMWYJQW.js} +1 -1
  196. package/dist/chunks/{chunk-MMMJO2M3.js → chunk-QOIG2FJP.js} +1 -1
  197. package/dist/chunks/{chunk-BYBELFCP.js → chunk-QPNYOR6O.js} +1 -1
  198. package/dist/chunks/{chunk-6KNWKZR4.js → chunk-QPPFQREO.js} +1 -1
  199. package/dist/chunks/{chunk-EYRBV6RM.js → chunk-QROPMCL2.js} +2 -2
  200. package/dist/chunks/{chunk-MTZYPCZ7.js → chunk-QRPBDCDH.js} +1 -1
  201. package/dist/chunks/{chunk-R43H4T4L.js → chunk-QYAXCGZA.js} +1 -1
  202. package/dist/chunks/{chunk-7OZ7OKPS.js → chunk-R3ZPLQDI.js} +1 -1
  203. package/dist/chunks/{chunk-6TEYSBCT.js → chunk-R5KBPWWS.js} +1 -1
  204. package/dist/chunks/{chunk-X6JQI64G.js → chunk-RACUGILV.js} +1 -1
  205. package/dist/chunks/{chunk-GD7AV7BO.js → chunk-RFD7CEL6.js} +1 -1
  206. package/dist/chunks/{chunk-RYSO5U3E.js → chunk-RIXTYUYN.js} +1 -1
  207. package/dist/chunks/{chunk-XHBZITV4.js → chunk-RJB5Y7M4.js} +1 -1
  208. package/dist/chunks/{chunk-7HQZRU25.js → chunk-RRX2AMWY.js} +1 -1
  209. package/dist/chunks/chunk-S4ARHJGW.js +9 -0
  210. package/dist/chunks/chunk-S7FMMAST.js +7 -0
  211. package/dist/chunks/chunk-SIWT2MBT.js +8 -0
  212. package/dist/chunks/{chunk-AZVSMIPP.js → chunk-STDRVWDW.js} +1 -1
  213. package/dist/chunks/{chunk-M2Q2DUHO.js → chunk-SUD5V67L.js} +1 -1
  214. package/dist/chunks/{chunk-7EJQLVWX.js → chunk-SUT2PTL3.js} +1 -1
  215. package/dist/chunks/{chunk-Q4R34AVE.js → chunk-SWABNAKZ.js} +1 -1
  216. package/dist/chunks/chunk-SX2JJDHM.js +17 -0
  217. package/dist/chunks/{chunk-JDDPCL3K.js → chunk-T2IZUTGY.js} +1 -1
  218. package/dist/chunks/{chunk-3RFQ2NXZ.js → chunk-T4257EDB.js} +1 -1
  219. package/dist/chunks/chunk-TASNZYJU.js +14 -0
  220. package/dist/chunks/chunk-TIU3WJH7.js +8 -0
  221. package/dist/chunks/{chunk-KIDGOY4F.js → chunk-TL4AEZXF.js} +1 -1
  222. package/dist/chunks/chunk-TTM4VQ4T.js +7 -0
  223. package/dist/chunks/chunk-TUPVVZ4I.js +7 -0
  224. package/dist/chunks/{chunk-MDXG7T7M.js → chunk-U3IPJYB6.js} +1 -1
  225. package/dist/chunks/{chunk-AMZ7AUYX.js → chunk-UFE4RBZV.js} +1 -1
  226. package/dist/chunks/chunk-UGJRAFRA.js +8 -0
  227. package/dist/chunks/{chunk-3AFEVHHY.js → chunk-UGVOMXYR.js} +1 -1
  228. package/dist/chunks/{chunk-NB2WLB3J.js → chunk-UJ7YUIEJ.js} +1 -1
  229. package/dist/chunks/chunk-UK3VTHT5.js +7 -0
  230. package/dist/chunks/{chunk-S6TAO4MD.js → chunk-V2J5U5KQ.js} +1 -1
  231. package/dist/chunks/{chunk-J3U2QD2L.js → chunk-V7VHLSYL.js} +1 -1
  232. package/dist/chunks/chunk-VB6SQWSB.js +9 -0
  233. package/dist/chunks/{chunk-DOOBZO4W.js → chunk-VJM3WCEC.js} +1 -1
  234. package/dist/chunks/{chunk-BYYNR34Q.js → chunk-VNS4Z72T.js} +1 -1
  235. package/dist/chunks/{chunk-CTMTO2W4.js → chunk-VQAIH2X5.js} +1 -1
  236. package/dist/chunks/{chunk-ATSAMHUZ.js → chunk-VTAH7VMY.js} +1 -1
  237. package/dist/chunks/chunk-W2YAOE3Z.js +7 -0
  238. package/dist/chunks/{chunk-3SF3ILIT.js → chunk-WA4CPW3H.js} +1 -1
  239. package/dist/chunks/chunk-WKEDN5SX.js +9 -0
  240. package/dist/chunks/{chunk-JALVF3C2.js → chunk-WMIZ6Y4E.js} +1 -1
  241. package/dist/chunks/{chunk-Z436ZYLV.js → chunk-WQBNOQUT.js} +1 -1
  242. package/dist/chunks/{chunk-YOKTRWQX.js → chunk-WRTBYD4I.js} +1 -1
  243. package/dist/chunks/{chunk-7RABG6HV.js → chunk-WS6UOPMS.js} +1 -1
  244. package/dist/chunks/{chunk-TLKBGAOL.js → chunk-WWEUGL6W.js} +1 -1
  245. package/dist/chunks/chunk-X2UJGCIC.js +9 -0
  246. package/dist/chunks/{chunk-JUAHDOL6.js → chunk-X5YKQ2RJ.js} +1 -1
  247. package/dist/chunks/{chunk-D5JQZXL7.js → chunk-XHWA436J.js} +1 -1
  248. package/dist/chunks/chunk-XHXWUAJE.js +32 -0
  249. package/dist/chunks/{chunk-U4Z2MMOF.js → chunk-XKVKG7CW.js} +1 -1
  250. package/dist/chunks/{chunk-HYAIA5YC.js → chunk-XL6PE4AA.js} +2 -2
  251. package/dist/chunks/{chunk-E3WP42P2.js → chunk-XPEWDJV6.js} +1 -1
  252. package/dist/chunks/{chunk-TGIIE2L3.js → chunk-XPWLEGWA.js} +1 -1
  253. package/dist/chunks/{chunk-7SLMNM55.js → chunk-XY2GGCHC.js} +1 -1
  254. package/dist/chunks/{chunk-G24EKATW.js → chunk-XZYVBYUY.js} +1 -1
  255. package/dist/chunks/chunk-Y2KAVMM4.js +10 -0
  256. package/dist/chunks/{chunk-46ISU3XI.js → chunk-Y3ETQZSK.js} +2 -2
  257. package/dist/chunks/{chunk-GRRVPFSB.js → chunk-Y45NZT7C.js} +1 -1
  258. package/dist/chunks/{chunk-5RMIM4S2.js → chunk-Y7SZI3JV.js} +1 -1
  259. package/dist/chunks/{chunk-ZRFDZO7Y.js → chunk-YATYCZQJ.js} +1 -1
  260. package/dist/chunks/chunk-YBWLW6SW.js +7 -0
  261. package/dist/chunks/{chunk-B7IUFV5P.js → chunk-YDCILYRC.js} +1 -1
  262. package/dist/chunks/{chunk-67GZ5REA.js → chunk-YHZXIBS7.js} +1 -1
  263. package/dist/chunks/{chunk-H24KFNPB.js → chunk-YIKXLWSR.js} +1 -1
  264. package/dist/chunks/{chunk-5CVEW3HD.js → chunk-YLQCB6XY.js} +1 -1
  265. package/dist/chunks/{chunk-WAOS5OCB.js → chunk-YU33PPKX.js} +1 -1
  266. package/dist/chunks/{chunk-V3YNYCRV.js → chunk-YVWIDLY4.js} +6 -6
  267. package/dist/chunks/{chunk-CEA5NDJC.js → chunk-Z2NPMUPM.js} +1 -1
  268. package/dist/chunks/{chunk-N3ZNAMGR.js → chunk-Z62G57GC.js} +1 -1
  269. package/dist/chunks/{chunk-D6NVKMRP.js → chunk-ZG7A4P5U.js} +1 -1
  270. package/dist/chunks/{chunk-NZ2TFADV.js → chunk-ZOJI7HYA.js} +1 -1
  271. package/dist/chunks/{chunk-TSIKSHYG.js → chunk-ZSJU5MJP.js} +1 -1
  272. package/dist/chunks/{chunk-47E5IB3C.js → chunk-ZWPASRC2.js} +1 -1
  273. package/dist/chunks/{clear-GL4SZ2XR.js → clear-4MDTHLLE.js} +1 -1
  274. package/dist/chunks/{cli-embedded-NR5F35LW.js → cli-embedded-OYBJM5SA.js} +2 -2
  275. package/dist/chunks/cli-truncate-CylqKOGj-WE5OLB6Q.js +7 -0
  276. package/dist/chunks/commands-Bx-lrmie-W7FCFL4P.js +10 -0
  277. package/dist/chunks/compile-vercel-config-A2DMFB2R.js +7 -0
  278. package/dist/chunks/{config-KSQQQMQQ.js → config-4R62ATWJ.js} +1 -1
  279. package/dist/chunks/{config-U4GLPYDY.js → config-A7DCP25J.js} +1 -1
  280. package/dist/chunks/config-HiWLfXRQ-D7JA4E3D.js +43 -0
  281. package/dist/chunks/connect-U3yG4EtI-XYHDJQT7.js +7 -0
  282. package/dist/chunks/connect-git-provider-MPYSAOTH.js +7 -0
  283. package/dist/chunks/cp-aFe-HVrK-UAGAR2BC.js +12 -0
  284. package/dist/chunks/create-ilHWvzSk-7KWZXBE2.js +7 -0
  285. package/dist/chunks/create-project-OA7KBPVU.js +7 -0
  286. package/dist/chunks/{delete-O2VWRQC3.js → delete-DN53BRH7.js} +1 -1
  287. package/dist/chunks/{delete-D2WLQHVB.js → delete-G4MAUBXZ.js} +1 -1
  288. package/dist/chunks/{describe-N36SISDN.js → describe-Q5D5GYVG.js} +1 -1
  289. package/dist/chunks/detect-projects-DHS2E3N4.js +7 -0
  290. package/dist/chunks/detect-services-VBKVN4A2.js +7 -0
  291. package/dist/chunks/{disable-EHRVY24G.js → disable-CG3R2VAL.js} +1 -1
  292. package/dist/chunks/{discard-QW5TMTXX.js → discard-REGFZXFU.js} +1 -1
  293. package/dist/chunks/dist-4F3LAB5Z.js +7 -0
  294. package/dist/chunks/{dist-RXYNZPEA.js → dist-S7GEJ656.js} +1 -1
  295. package/dist/chunks/{dist-33WTJLVQ.js → dist-T2AURD3P.js} +1 -1
  296. package/dist/chunks/domain-DGvr_U55-PNXSOVDO.js +8 -0
  297. package/dist/chunks/drives-Bi-Mnt2z-Z4T2YY4P.js +14 -0
  298. package/dist/chunks/{edit-IZR537PS.js → edit-7AUE6GXE.js} +1 -1
  299. package/dist/chunks/{edit-WM6KJPSI.js → edit-HHLQDVOP.js} +1 -1
  300. package/dist/chunks/{enable-5Z72O3NI.js → enable-BV3N6GEL.js} +1 -1
  301. package/dist/chunks/{engine-C8wCzkw--PYVABGU4.js → engine-C8wCzkw--72P7UD6T.js} +1 -1
  302. package/dist/chunks/{esm-IYH32MTQ.js → esm-B3P7PUFJ.js} +1 -1
  303. package/dist/chunks/{esm-5GQXHN7C.js → esm-CMSQLK7G.js} +1 -1
  304. package/dist/chunks/{esm-LEQXRLFV.js → esm-KWMRMP74.js} +1 -1
  305. package/dist/chunks/{esm-NHCCFW7Z.js → esm-LRBNA4QO.js} +1 -1
  306. package/dist/chunks/{esm-FJCIOBBV.js → esm-NVIK2MSG.js} +1 -1
  307. package/dist/chunks/{esm-T655CG6O.js → esm-RAS56M3I.js} +1 -1
  308. package/dist/chunks/{esm-QQ3MUOW4.js → esm-WU2ZS2IW.js} +1 -1
  309. package/dist/chunks/exec-Bwv4MDyN-7YUAVBB2.js +7 -0
  310. package/dist/chunks/{exec-PCSP64LR.js → exec-NYLXYXB5.js} +3 -3
  311. package/dist/chunks/{export-IWVMWM2H.js → export-WUPMMHSX.js} +1 -1
  312. package/dist/chunks/extend-D9tq9Cot-QT72AXGH.js +8 -0
  313. package/dist/chunks/{fetch-proxy-MOKBS56A.js → fetch-proxy-ZIHXTNFP.js} +1 -1
  314. package/dist/chunks/fork-DQ6qfKqB-XXTHHUMZ.js +9 -0
  315. package/dist/chunks/future-DJOUGRV4.js +7 -0
  316. package/dist/chunks/generate-cert-for-deploy-PZHDFX3W.js +7 -0
  317. package/dist/chunks/groups-B8JVEeKk-K57VTXSS.js +10 -0
  318. package/dist/chunks/image-DX2IAUKJ.js +7 -0
  319. package/dist/chunks/import-builders-IUEC2WN2.js +7 -0
  320. package/dist/chunks/{inspect-QT3QEFBW.js → inspect-BS5UPI6W.js} +1 -1
  321. package/dist/chunks/{inspect-6J5DGZZ4.js → inspect-GJXLYJC7.js} +1 -1
  322. package/dist/chunks/{inspect-6Y672OQ3.js → inspect-IHVP2M4H.js} +1 -1
  323. package/dist/chunks/{inspect-47FM3OWG.js → inspect-PBSKPN4W.js} +1 -1
  324. package/dist/chunks/{inspect-SW2I7D6E.js → inspect-Y7VXJEI2.js} +1 -1
  325. package/dist/chunks/{inspect-ALC2J4BF.js → inspect-YGVXE4HR.js} +1 -1
  326. package/dist/chunks/{list-TGDHJKDT.js → list-27R4USBV.js} +1 -1
  327. package/dist/chunks/{list-BIFH4KO5.js → list-2ZCNO6DY.js} +1 -1
  328. package/dist/chunks/{list-CXXDI5UV.js → list-TUST62E6.js} +1 -1
  329. package/dist/chunks/{list-2CMCXXP4.js → list-ZSQVIQXC.js} +1 -1
  330. package/dist/chunks/list-iqQFvOHx-PNAUIUQL.js +7 -0
  331. package/dist/chunks/log-update-DsqoChS1-DG7F5XJ4.js +11 -0
  332. package/dist/chunks/{login-IUQDG334.js → login-CUEQHDT5.js} +1 -1
  333. package/dist/chunks/login-DGxA9ez--ZRIJ24TS.js +13 -0
  334. package/dist/chunks/login-YCOZROC2.js +7 -0
  335. package/dist/chunks/logout-OEbPJLu2-7NPM6ALK.js +8 -0
  336. package/dist/chunks/logs-W4GZLDHE.js +7 -0
  337. package/dist/chunks/ls-27K5BB7Z.js +11 -0
  338. package/dist/chunks/{ls-C75Z5FBX.js → ls-EEJQIKNI.js} +1 -1
  339. package/dist/chunks/ls-PAL6FQB6.js +8 -0
  340. package/dist/chunks/{ls-GC5MX2HZ.js → ls-TDYTE4HM.js} +1 -1
  341. package/dist/chunks/{ls-7D73WVOF.js → ls-UMSUUQCG.js} +1 -1
  342. package/dist/chunks/{ls-ERDQLUT2.js → ls-W7C5I555.js} +1 -1
  343. package/dist/chunks/{ls-4DNFF35I.js → ls-XYEJ5MR6.js} +1 -1
  344. package/dist/chunks/migrate-experimental-services-556MHJWK.js +7 -0
  345. package/dist/chunks/mutate-IELSY6ED.js +9 -0
  346. package/dist/chunks/{native-self-update-Q3EN6NZK.js → native-self-update-T75AUBHJ.js} +1 -1
  347. package/dist/chunks/{notifications-2HU4L7WA.js → notifications-GZH7CFZY.js} +1 -1
  348. package/dist/chunks/{open-MA7QGJKO.js → open-EVYPUPNZ.js} +1 -1
  349. package/dist/chunks/{openapi-POBVCXS3.js → openapi-S6F32ZQD.js} +1 -1
  350. package/dist/chunks/{permissions-AU5M5A6G.js → permissions-EHF5MNZP.js} +1 -1
  351. package/dist/chunks/{plugin-offer-E53UQXXX.js → plugin-offer-RZADKNYF.js} +1 -1
  352. package/dist/chunks/prompt-missing-credentials-OSAV5B7N.js +7 -0
  353. package/dist/chunks/{publish-G7NQESCE.js → publish-ZB2Q2YSB.js} +1 -1
  354. package/dist/chunks/pull-WUFIVXEG.js +7 -0
  355. package/dist/chunks/purchase-domain-if-available-YVVGT7MZ.js +7 -0
  356. package/dist/chunks/{push-BG7UEIKY.js → push-YWKZ6SOO.js} +1 -1
  357. package/dist/chunks/query-G62G25HV.js +7 -0
  358. package/dist/chunks/{raw-query-QHFSKN55.js → raw-query-WTKAOYCP.js} +1 -1
  359. package/dist/chunks/read-BTA5slYO-IJLWMNSS.js +8 -0
  360. package/dist/chunks/{reauthenticate-U2LOFDFP.js → reauthenticate-WQZ5HISG.js} +1 -1
  361. package/dist/chunks/remove-7PSNAEDY.js +9 -0
  362. package/dist/chunks/remove-CCa99nz9-LCSNBDLT.js +7 -0
  363. package/dist/chunks/{reorder-E5UYNMML.js → reorder-OLCKSATY.js} +1 -1
  364. package/dist/chunks/{reply-DSDFBUAX.js → reply-OVHQNEBO.js} +1 -1
  365. package/dist/chunks/{repo-info-to-url-XQSULSEO.js → repo-info-to-url-S2YOQIRM.js} +1 -1
  366. package/dist/chunks/{repo-root-DZ6WFHMP.js → repo-root-STNOAHCH.js} +1 -1
  367. package/dist/chunks/{resolve-VK5QTUII.js → resolve-TUHO4FHT.js} +1 -1
  368. package/dist/chunks/{resolve-agent-team-D7RFR6WL.js → resolve-agent-team-NQCRA6ER.js} +1 -1
  369. package/dist/chunks/{resolve-deployment-framework-preset-BLMQLCIN.js → resolve-deployment-framework-preset-SCQCWANF.js} +1 -1
  370. package/dist/chunks/{restore-IVNZOVU3.js → restore-5RLBSVYQ.js} +1 -1
  371. package/dist/chunks/{rm-PAI3WZXJ.js → rm-5RGN33Y5.js} +1 -1
  372. package/dist/chunks/rm-D7CWGBTV.js +8 -0
  373. package/dist/chunks/{rm-L2KCHMLS.js → rm-FYU3GBLC.js} +1 -1
  374. package/dist/chunks/rm-HA752TW6.js +8 -0
  375. package/dist/chunks/{rm-LWEITUDD.js → rm-P6AGSBXP.js} +1 -1
  376. package/dist/chunks/routes-7VLRHXT4.js +7 -0
  377. package/dist/chunks/rule-inspect-Y2MX7LQN.js +8 -0
  378. package/dist/chunks/run-D8obqfKw-D2EGHTU2.js +7 -0
  379. package/dist/chunks/{schema-ZOPJJLJC.js → schema-AJAHECZG.js} +1 -1
  380. package/dist/chunks/{schema-ZIK2W4AX.js → schema-UVTYLX6L.js} +2 -2
  381. package/dist/chunks/select-org-JBKKKZSN.js +7 -0
  382. package/dist/chunks/{serving-C1mhZQqH-73TMEGEB.js → serving-C1mhZQqH-XEQUVQZK.js} +1 -1
  383. package/dist/chunks/sessions-cvWvPgzc-FBOQQPU5.js +7 -0
  384. package/dist/chunks/{set-MC2CLSA2.js → set-774P7GEL.js} +1 -1
  385. package/dist/chunks/{set-B5MPNYXG.js → set-OWNTI5SM.js} +1 -1
  386. package/dist/chunks/setup-and-link-3LD4LQGE.js +7 -0
  387. package/dist/chunks/sh-7olsIyJh-NFO2QYTK.js +7 -0
  388. package/dist/chunks/{skills-X5MN3OH2.js → skills-W45E2EWS.js} +1 -1
  389. package/dist/chunks/slugify-OEOEYGDL.js +7 -0
  390. package/dist/chunks/snapshot-D9MAspub-UAVA2YSK.js +9 -0
  391. package/dist/chunks/snapshots-DQjvm6St-DBG4H2HS.js +9 -0
  392. package/dist/chunks/stamp-THWCZ5IQ.js +7 -0
  393. package/dist/chunks/{statuspage-K5SC7KAQ.js → statuspage-NCYXH7DR.js} +1 -1
  394. package/dist/chunks/stop-SQX-uC-Q-CRDQOA5M.js +10 -0
  395. package/dist/chunks/table-3DCL552W.js +7 -0
  396. package/dist/chunks/{tags-WRVKKRN7.js → tags-DEIOW5MM.js} +1 -1
  397. package/dist/chunks/telemetry-KLbte3YE-OAFHJTWE.js +13 -0
  398. package/dist/chunks/token-DGNBXqnR-37H4S563.js +7 -0
  399. package/dist/chunks/token-EYEJQ7AP.js +7 -0
  400. package/dist/chunks/token-LNLX4V5J.js +7 -0
  401. package/dist/chunks/token-MZBD3R2S.js +7 -0
  402. package/dist/chunks/token-util-4P4GUSTT.js +7 -0
  403. package/dist/chunks/token-util-DAhLJ1X4-NJBLJROT.js +7 -0
  404. package/dist/chunks/token-util-XC5K3DNT.js +7 -0
  405. package/dist/chunks/token-util-XO4H5VLL.js +7 -0
  406. package/dist/chunks/{types-PC3JIYPX.js → types-SYUZH46V.js} +1 -1
  407. package/dist/chunks/update-VG2LHBRV.js +8 -0
  408. package/dist/chunks/{update-route-version-KWK5S4UW.js → update-route-version-MKFTZPKQ.js} +1 -1
  409. package/dist/chunks/usage-NF6S3DAZ.js +17 -0
  410. package/dist/chunks/users-CGEsQ4G8-POYTVZJV.js +9 -0
  411. package/dist/chunks/{utils-IQZEE4DT.js → utils-XXR7KIRB.js} +1 -1
  412. package/dist/chunks/validate-config-MJQI5EMD.js +7 -0
  413. package/dist/chunks/{vercel-cli-3UQLDU2S.js → vercel-cli-RW4WHHOS.js} +1 -1
  414. package/dist/chunks/{vlt-builder-graph-XL2XRO4V.js → vlt-builder-graph-EU5EX7KY.js} +1 -1
  415. package/dist/chunks/{vlt-builder-importer-RBUPAB6J.js → vlt-builder-importer-2YSRGPFC.js} +1 -1
  416. package/dist/chunks/wrap-ansi-CaN_P_HT-MAPHF26X.js +7 -0
  417. package/dist/chunks/write-DixEhGqz-YYDLLSJE.js +10 -0
  418. package/dist/chunks/{zod-Y3ZBY67C.js → zod-H7KW2D5Z.js} +1 -1
  419. package/dist/commands/build/index.js +1 -1
  420. package/dist/commands/deploy/index.js +11 -11
  421. package/dist/commands/dev/index.js +5 -9
  422. package/dist/commands/env/index.js +1 -1
  423. package/dist/commands/link/index.js +1 -1
  424. package/dist/commands/list/index.js +1 -1
  425. package/dist/commands/project/index.js +102 -80
  426. package/dist/commands/tunnel/index.js +1 -1
  427. package/dist/commands-account.js +101 -67
  428. package/dist/commands-ai.js +15 -15
  429. package/dist/commands-blob.js +3 -3
  430. package/dist/commands-core.js +9 -9
  431. package/dist/commands-deployments.js +1 -1
  432. package/dist/commands-flags.js +7 -7
  433. package/dist/commands-integrations.js +11 -11
  434. package/dist/commands-observability.js +2 -2
  435. package/dist/commands-routing.js +9 -9
  436. package/dist/help.js +1 -1
  437. package/dist/index.js +10 -8
  438. package/dist/internal-build-worker.js +1 -1
  439. package/dist/internal-build.js +2 -2
  440. package/dist/package.json +9 -9
  441. package/dist/root-help-commands.mjs +1 -1
  442. package/dist/version.mjs +1 -1
  443. package/package.json +16 -16
  444. package/dist/chunks/add-RH3RQPGP.js +0 -8
  445. package/dist/chunks/chunk-37P7O3AQ.js +0 -9
  446. package/dist/chunks/chunk-3ARTWVQV.js +0 -11
  447. package/dist/chunks/chunk-4F73GVJZ.js +0 -7
  448. package/dist/chunks/chunk-6FEMU5YF.js +0 -7
  449. package/dist/chunks/chunk-6UJIJLQC.js +0 -13
  450. package/dist/chunks/chunk-CDJ25IKC.js +0 -7
  451. package/dist/chunks/chunk-EMTZZXMH.js +0 -13
  452. package/dist/chunks/chunk-HR4ID3MU.js +0 -7
  453. package/dist/chunks/chunk-INIZJZ3O.js +0 -7
  454. package/dist/chunks/chunk-JCHZRW4N.js +0 -7
  455. package/dist/chunks/chunk-MDRI27KN.js +0 -9
  456. package/dist/chunks/chunk-OAM5NJCU.js +0 -9
  457. package/dist/chunks/chunk-PX3V7X3Q.js +0 -12
  458. package/dist/chunks/chunk-RHFNVIFD.js +0 -7
  459. package/dist/chunks/chunk-T4DOV5S4.js +0 -7
  460. package/dist/chunks/chunk-XKPB27SC.js +0 -8
  461. package/dist/chunks/chunk-Z3XKNZDP.js +0 -9
  462. package/dist/chunks/compile-vercel-config-HMKEDWC4.js +0 -7
  463. package/dist/chunks/connect-git-provider-WGKVFXW2.js +0 -7
  464. package/dist/chunks/create-project-BTOHPKZB.js +0 -7
  465. package/dist/chunks/detect-projects-I7NEHWSM.js +0 -7
  466. package/dist/chunks/detect-services-4ONC2DH3.js +0 -7
  467. package/dist/chunks/future-3AUPMPY7.js +0 -7
  468. package/dist/chunks/generate-cert-for-deploy-OZWVIWOO.js +0 -7
  469. package/dist/chunks/image-EFBQXTAP.js +0 -7
  470. package/dist/chunks/import-builders-2G4KVI4T.js +0 -7
  471. package/dist/chunks/login-WYDX5KZN.js +0 -7
  472. package/dist/chunks/logs-E3RZLAT2.js +0 -7
  473. package/dist/chunks/ls-IQUZ6GWG.js +0 -11
  474. package/dist/chunks/ls-YTKJRKD3.js +0 -8
  475. package/dist/chunks/migrate-experimental-services-GPGYPN66.js +0 -7
  476. package/dist/chunks/mutate-YJNE2733.js +0 -9
  477. package/dist/chunks/prompt-missing-credentials-7F7MUAWK.js +0 -7
  478. package/dist/chunks/pull-4LISUHDN.js +0 -7
  479. package/dist/chunks/purchase-domain-if-available-QH2OHRLZ.js +0 -7
  480. package/dist/chunks/query-QCIU5IB4.js +0 -7
  481. package/dist/chunks/remove-IB7C6LII.js +0 -9
  482. package/dist/chunks/rm-GYS4DS2Z.js +0 -8
  483. package/dist/chunks/rm-PDJE63VV.js +0 -8
  484. package/dist/chunks/routes-SBMN6SDF.js +0 -7
  485. package/dist/chunks/rule-inspect-LQISNCBT.js +0 -8
  486. package/dist/chunks/select-org-EKDOS2CQ.js +0 -7
  487. package/dist/chunks/setup-and-link-FHHZAU65.js +0 -7
  488. package/dist/chunks/stamp-TKONNIJ5.js +0 -7
  489. package/dist/chunks/table-SCLK33K7.js +0 -7
  490. package/dist/chunks/token-MYYNOUIT.js +0 -7
  491. package/dist/chunks/token-util-OJHS52JP.js +0 -7
  492. package/dist/chunks/update-QDIZFM4T.js +0 -8
  493. package/dist/chunks/usage-JUP36KHN.js +0 -15
  494. package/dist/chunks/validate-config-K42CVRCZ.js +0 -7
@@ -4,8 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-GD7AV7BO.js";import{require_signal_exit}from"./chunk-BLUPZPAS.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_errors=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errors_exports={};__export(errors_exports,{VercelCliError:()=>VercelCliError2,assertValidCwd:()=>assertValidCwd,getCliNotFoundMessage:()=>getCliNotFoundMessage,toVercelCliError:()=>toVercelCliError});module.exports=__toCommonJS(errors_exports);var import_promises=__require("node:fs/promises"),VercelCliError2=class extends Error{constructor(options){super(options.message),this.name="VercelCliError",this.code=options.code,this.invocation=options.invocation,this.stdout=options.stdout,this.stderr=options.stderr,this.exitCode=options.exitCode,options.cause!==void 0&&(this.cause=options.cause)}};function getCliNotFoundMessage(diagnostics){let details=[],{localBinSearch}=diagnostics;localBinSearch.stopReason==="project-root-marker"?details.push(`Local bin lookup stopped at ${JSON.stringify(localBinSearch.stoppedAt)} (${JSON.stringify(localBinSearch.markerPath)}).`):localBinSearch.stopReason==="filesystem-root"&&details.push(`No project root marker was found from ${JSON.stringify(localBinSearch.searchRoot)}; local bin lookup reached the filesystem root.`);for(let skippedNodeModules of localBinSearch.skippedNodeModules)details.push(`Skipped ${JSON.stringify(skippedNodeModules.directory)}: ${skippedNodeModules.reason}.`);for(let skippedLocalBin of diagnostics.skippedLocalBins)details.push(`Skipped ${JSON.stringify(skippedLocalBin.candidate)}: ${skippedLocalBin.reason}.`);return details.length===0?"Unable to find a usable Vercel CLI installation.":["Unable to find a usable Vercel CLI installation.",...details].join(`
7
+ import{require_cross_spawn,require_is_stream,require_merge_stream,require_npm_run_path,require_onetime,require_strip_final_newline}from"./chunk-RFD7CEL6.js";import{require_signal_exit}from"./chunk-7Y572CPZ.js";import{__commonJS,__require}from"./chunk-NBPLUP7C.js";var require_errors=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errors_exports={};__export(errors_exports,{VercelCliError:()=>VercelCliError2,assertValidCwd:()=>assertValidCwd,getCliNotFoundMessage:()=>getCliNotFoundMessage,toVercelCliError:()=>toVercelCliError});module.exports=__toCommonJS(errors_exports);var import_promises=__require("node:fs/promises"),VercelCliError2=class extends Error{constructor(options){super(options.message),this.name="VercelCliError",this.code=options.code,this.invocation=options.invocation,this.stdout=options.stdout,this.stderr=options.stderr,this.exitCode=options.exitCode,options.cause!==void 0&&(this.cause=options.cause)}};function getCliNotFoundMessage(diagnostics){let details=[],{localBinSearch}=diagnostics;localBinSearch.stopReason==="project-root-marker"?details.push(`Local bin lookup stopped at ${JSON.stringify(localBinSearch.stoppedAt)} (${JSON.stringify(localBinSearch.markerPath)}).`):localBinSearch.stopReason==="filesystem-root"&&details.push(`No project root marker was found from ${JSON.stringify(localBinSearch.searchRoot)}; local bin lookup reached the filesystem root.`);for(let skippedNodeModules of localBinSearch.skippedNodeModules)details.push(`Skipped ${JSON.stringify(skippedNodeModules.directory)}: ${skippedNodeModules.reason}.`);for(let skippedLocalBin of diagnostics.skippedLocalBins)details.push(`Skipped ${JSON.stringify(skippedLocalBin.candidate)}: ${skippedLocalBin.reason}.`);return details.length===0?"Unable to find a usable Vercel CLI installation.":["Unable to find a usable Vercel CLI installation.",...details].join(`
8
8
  `)}async function assertValidCwd(cwd){try{if(!(await(0,import_promises.stat)(cwd)).isDirectory())throw new Error("not a directory")}catch{throw new VercelCliError2({code:"VERCEL_CLI_INVALID_CWD",message:`Working directory ${JSON.stringify(cwd)} does not exist or is not a directory.`})}}function toVercelCliError(invocation,error){if(typeof error=="object"&&error!==null){let execaError=error;if(execaError.code==="ENOENT")return new VercelCliError2({code:"VERCEL_CLI_NOT_FOUND",message:`Unable to find Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.code==="EACCES"||execaError.code==="EPERM")return new VercelCliError2({code:"VERCEL_CLI_PERMISSION_DENIED",message:`Permission denied while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error});if(execaError.timedOut)return new VercelCliError2({code:"VERCEL_CLI_TIMED_OUT",message:`Timed out while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.isCanceled)return new VercelCliError2({code:"VERCEL_CLI_CANCELED",message:`Canceled while executing Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(execaError.signal)return new VercelCliError2({code:"VERCEL_CLI_SIGNALED",message:`Vercel CLI command ${JSON.stringify(invocation.command)} exited due to signal ${execaError.signal}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,cause:error});if(typeof execaError.exitCode=="number")return new VercelCliError2({code:"VERCEL_CLI_ERRORED",message:execaError.shortMessage??execaError.message??`Vercel CLI command ${JSON.stringify(invocation.command)} exited with code ${execaError.exitCode}.`,invocation,stdout:execaError.stdout,stderr:execaError.stderr,exitCode:execaError.exitCode,cause:error})}return new VercelCliError2({code:"VERCEL_CLI_EXEC_FAILED",message:`Could not execute Vercel CLI command ${JSON.stringify(invocation.command)}.`,invocation,cause:error})}}});var require_core=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGNALS=void 0;var SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];exports.SIGNALS=SIGNALS}});var require_realtime=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;var getRealtimeSignals=function(){let length=SIGRTMAX-SIGRTMIN+1;return Array.from({length},getRealtimeSignal)};exports.getRealtimeSignals=getRealtimeSignals;var getRealtimeSignal=function(value,index){return{name:`SIGRT${index+1}`,number:SIGRTMIN+index,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},SIGRTMIN=34,SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX}});var require_signals=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.getSignals=void 0;var _os=__require("os"),_core=require_core(),_realtime=require_realtime(),getSignals=function(){let realtimeSignals=(0,_realtime.getRealtimeSignals)();return[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal)};exports.getSignals=getSignals;var normalizeSignal=function({name,number:defaultNumber,description,action,forced=!1,standard}){let{signals:{[name]:constantSignal}}=_os.constants,supported=constantSignal!==void 0;return{name,number:supported?constantSignal:defaultNumber,description,supported,action,forced,standard}}}});var require_main=__commonJS({"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.signalsByNumber=exports.signalsByName=void 0;var _os=__require("os"),_signals=require_signals(),_realtime=require_realtime(),getSignalsByName=function(){return(0,_signals.getSignals)().reduce(getSignalByName,{})},getSignalByName=function(signalByNameMemo,{name,number,description,supported,action,forced,standard}){return{...signalByNameMemo,[name]:{name,number,description,supported,action,forced,standard}}},signalsByName=getSignalsByName();exports.signalsByName=signalsByName;var getSignalsByNumber=function(){let signals=(0,_signals.getSignals)(),length=_realtime.SIGRTMAX+1,signalsA=Array.from({length},(value,number)=>getSignalByNumber(number,signals));return Object.assign({},...signalsA)},getSignalByNumber=function(number,signals){let signal=findSignalByNumber(number,signals);if(signal===void 0)return{};let{name,description,supported,action,forced,standard}=signal;return{[number]:{name,number,description,supported,action,forced,standard}}},findSignalByNumber=function(number,signals){let signal=signals.find(({name})=>_os.constants.signals[name]===number);return signal!==void 0?signal:signals.find(signalA=>signalA.number===number)},signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber}});var require_error=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports,module){"use strict";var{signalsByName}=require_main(),getErrorPrefix=({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})=>timedOut?`timed out after ${timeout} milliseconds`:isCanceled?"was canceled":errorCode!==void 0?`failed with ${errorCode}`:signal!==void 0?`was killed with ${signal} (${signalDescription})`:exitCode!==void 0?`failed with exit code ${exitCode}`:"failed",makeError=({stdout,stderr,all,error,signal,exitCode,command,escapedCommand,timedOut,isCanceled,killed,parsed:{options:{timeout}}})=>{exitCode=exitCode===null?void 0:exitCode,signal=signal===null?void 0:signal;let signalDescription=signal===void 0?void 0:signalsByName[signal].description,errorCode=error&&error.code,execaMessage=`Command ${getErrorPrefix({timedOut,timeout,errorCode,signal,signalDescription,exitCode,isCanceled})}: ${command}`,isError=Object.prototype.toString.call(error)==="[object Error]",shortMessage=isError?`${execaMessage}
9
9
  ${error.message}`:execaMessage,message=[shortMessage,stderr,stdout].filter(Boolean).join(`
10
- `);return isError?(error.originalMessage=error.message,error.message=message):error=new Error(message),error.shortMessage=shortMessage,error.command=command,error.escapedCommand=escapedCommand,error.exitCode=exitCode,error.signal=signal,error.signalDescription=signalDescription,error.stdout=stdout,error.stderr=stderr,all!==void 0&&(error.all=all),"bufferedData"in error&&delete error.bufferedData,error.failed=!0,error.timedOut=!!timedOut,error.isCanceled=isCanceled,error.killed=killed&&!timedOut,error};module.exports=makeError}});var require_stdio=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports,module){"use strict";var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value,index)=>stdio[index])};module.exports=normalizeStdio;module.exports.node=options=>{let stdio=normalizeStdio(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]}}});var require_kill=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports,module){"use strict";var os=__require("os"),onExit=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t=setTimeout(()=>{kill("SIGKILL")},timeout);t.unref&&t.unref()},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===os.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0)},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}))},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject)},timeout)}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId)});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill()});return timedPromise.finally(()=>{removeExitHandler()})};module.exports={spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}}});var require_buffer_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports,module){"use strict";var{PassThrough:PassThroughStream}=__require("stream");module.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0,chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}}});var require_get_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports,module){"use strict";var{constants:BufferConstants}=__require("buffer"),stream=__require("stream"),{promisify}=__require("util"),bufferStream=require_buffer_stream(),streamPipelinePromisified=promisify(stream.pipeline),MaxBufferError=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream2=bufferStream(options);return await new Promise((resolve,reject)=>{let rejectPromise=error=>{error&&stream2.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream2.getBufferedValue()),reject(error)};(async()=>{try{await streamPipelinePromisified(inputStream,stream2),resolve()}catch(error){rejectPromise(error)}})(),stream2.on("data",()=>{stream2.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream2.getBufferedValue()}module.exports=getStream;module.exports.buffer=(stream2,options)=>getStream(stream2,{...options,encoding:"buffer"});module.exports.array=(stream2,options)=>getStream(stream2,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError}});var require_stream=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports,module){"use strict";var isStream=require_is_stream(),getStream=require_get_stream(),mergeStream=require_merge_stream(),handleInput=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input))},makeAllStream=(spawned,{all})=>{if(!all||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream,streamPromise)=>{if(stream){stream.destroy();try{return await streamPromise}catch(error){return error.bufferedData}}},getStreamPromise=(stream,{encoding,buffer,maxBuffer})=>{if(!(!stream||!buffer))return encoding?getStream(stream,{encoding,maxBuffer}):getStream.buffer(stream,{maxBuffer})},getSpawnedResult=async({stdout,stderr,all},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error){return Promise.all([{error,signal:error.signal,timedOut:error.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all,allPromise)])}},validateInputSync=({input})=>{if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module.exports={handleInput,makeAllStream,getSpawnedResult,validateInputSync}}});var require_promise=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports,module){"use strict";var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value})}return spawned},getSpawnedPromise=spawned=>new Promise((resolve,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve({exitCode,signal})}),spawned.on("error",error=>{reject(error)}),spawned.stdin&&spawned.stdin.on("error",error=>{reject(error)})});module.exports={mergePromise,getSpawnedPromise}}});var require_command=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports,module){"use strict";var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token)}return tokens};module.exports={joinCommand,getEscapedCommand,parseCommand}}});var require_execa=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports,module){"use strict";var path=__require("path"),childProcess=__require("child_process"),crossSpawn=require_cross_spawn(),stripFinalNewline=require_strip_final_newline(),npmRunPath=require_npm_run_path(),onetime=require_onetime(),makeError=require_error(),normalizeStdio=require_stdio(),{spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}=require_kill(),{handleInput,getSpawnedResult,makeAllStream,validateInputSync}=require_stream(),{mergePromise,getSpawnedPromise}=require_promise(),{joinCommand,parseCommand,getEscapedCommand}=require_command(),DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath.env({env,cwd:localDir,execPath}):env},handleArguments=(file,args,options={})=>{let parsed=crossSpawn._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),process.platform==="win32"&&path.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value,error)=>typeof value!="string"&&!Buffer.isBuffer(value)?error===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value):value,execa=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateTimeout(parsed.options);let spawned;try{spawned=childProcess.spawn(parsed.file,parsed.args,parsed.options)}catch(error){let dummySpawned=new childProcess.ChildProcess,errorPromise=Promise.reject(makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime(async()=>{let[{error,exitCode,signal,timedOut},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all=handleOutput(parsed.options,allResult);if(error||exitCode!==0||signal!==null){let returnedError=makeError({error,exitCode,signal,stdout,stderr,all,command,escapedCommand,parsed,timedOut,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return{command,escapedCommand,exitCode:0,stdout,stderr,all,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options.input),spawned.all=makeAllStream(spawned,parsed.options),mergePromise(spawned,handlePromiseOnce)};module.exports=execa;module.exports.sync=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateInputSync(parsed.options);let result;try{result=childProcess.spawnSync(parsed.file,parsed.args,parsed.options)}catch(error){throw makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error;throw error}return{command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand(command);return execa(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand(command);return execa.sync(file,args,options)};module.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})}}});var require_envpath=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),envpath_exports={};__export(envpath_exports,{getEnvPath:()=>getEnvPath,prependPathEntries:()=>prependPathEntries,setEnvPath:()=>setEnvPath,splitPath:()=>splitPath});module.exports=__toCommonJS(envpath_exports);var import_node_path=__toESM(__require("node:path"));function prependPathEntries(pathValue,directories){let pathParts=pathValue.split(import_node_path.default.delimiter).filter(Boolean),prepended=[];for(let directory of directories)!pathParts.includes(directory)&&!prepended.includes(directory)&&prepended.push(directory);return prepended.length===0?pathValue:pathValue===""||pathValue===import_node_path.default.delimiter?`${prepended.join(import_node_path.default.delimiter)}${pathValue}`:[...prepended,pathValue].join(import_node_path.default.delimiter)}function splitPath(pathValue){return pathValue.split(import_node_path.default.delimiter).filter(Boolean)}function getEnvPath(env=process.env){if(process.platform!=="win32")return env.PATH??"";let pathKeys=Object.keys(env).filter(key=>key.toLowerCase()==="path");for(let index=pathKeys.length-1;index>=0;index--){let value=env[pathKeys[index]];if(value!==void 0)return value}return""}function setEnvPath(env=process.env,pathValue){if(process.platform!=="win32")return{...env,PATH:pathValue};let normalizedEnv={...env};for(let key of Object.keys(normalizedEnv))key!=="PATH"&&key.toLowerCase()==="path"&&delete normalizedEnv[key];return normalizedEnv.PATH=pathValue,normalizedEnv}}});var require_errutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errutils_exports={};__export(errutils_exports,{getErrorMessage:()=>getErrorMessage,isMissingPathError:()=>isMissingPathError});module.exports=__toCommonJS(errutils_exports);function getErrorMessage(error){return error instanceof Error?error.message:String(error)}function isMissingPathError(error){return typeof error=="object"&&error!==null&&"code"in error&&(error.code==="ENOENT"||error.code==="ENOTDIR")}}});var require_fsutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),fsutils_exports={};__export(fsutils_exports,{getCanonicalPath:()=>getCanonicalPath,getCommandBase:()=>getCommandBase,getDirectoriesBetween:()=>getDirectoriesBetween,isNodeScript:()=>isNodeScript,isSubpath:()=>isSubpath,statIfExists:()=>statIfExists});module.exports=__toCommonJS(fsutils_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils();async function getCanonicalPath(filePath){try{return await(0,import_promises.realpath)(filePath)}catch{return filePath}}function getDirectoriesBetween(parent,child){let directories=[],current=import_node_path.default.resolve(child),resolvedParent=import_node_path.default.resolve(parent);for(;;){if(directories.push(current),current===resolvedParent)return directories.reverse();let next=import_node_path.default.dirname(current);if(next===current)return[];current=next}}async function statIfExists(filePath){try{return{stats:await(0,import_promises.stat)(filePath)}}catch(error){return(0,import_errutils.isMissingPathError)(error)?{missing:!0}:{reason:`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}}}function isNodeScript(filePath){return[".js",".cjs",".mjs"].includes(import_node_path.default.extname(filePath))}function isSubpath(parent,child){let relativePath=import_node_path.default.relative(parent,child);return relativePath===""||relativePath!==""&&!relativePath.startsWith("..")&&!import_node_path.default.isAbsolute(relativePath)}function getCommandBase(command){let extension=import_node_path.default.extname(command).toLowerCase();return process.platform==="win32"&&[".cmd",".exe"].includes(extension)?import_node_path.default.basename(command,extension):import_node_path.default.basename(command)}}});var require_safety=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),safety_exports={};__export(safety_exports,{getSkippedNodeModulesReason:()=>getSkippedNodeModulesReason,getUnsafeDirectoryReason:()=>getUnsafeDirectoryReason,getUnsafePackageBinReason:()=>getUnsafePackageBinReason,getUnsafePackageDirectoryReason:()=>getUnsafePackageDirectoryReason,getUnsafePackageFileReason:()=>getUnsafePackageFileReason,getUnsafeStatsReason:()=>getUnsafeStatsReason});module.exports=__toCommonJS(safety_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils(),import_fsutils=require_fsutils();async function getSkippedNodeModulesReason(nodeModulesDirectory,parentDirectories){let parentDirectory=import_node_path.default.dirname(nodeModulesDirectory);parentDirectories??=[parentDirectory];for(let directory of parentDirectories){let unsafeParentReason;try{unsafeParentReason=await getUnsafeDirectoryReason(directory)}catch(error){unsafeParentReason=`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}if(unsafeParentReason)return`${directory} is ${unsafeParentReason}`}let result=await(0,import_fsutils.statIfExists)(nodeModulesDirectory);if("missing"in result)return null;if("reason"in result)return result.reason;if(!result.stats.isDirectory())return"not a directory";let unsafeNodeModulesReason=getUnsafeStatsReason(result.stats);return unsafeNodeModulesReason||await getSkippedLocalBinDirectoryReason(import_node_path.default.join(nodeModulesDirectory,".bin"))}async function getSkippedLocalBinDirectoryReason(localBinDirectory){let result=await(0,import_fsutils.statIfExists)(localBinDirectory);if("missing"in result)return null;if("reason"in result)return`${localBinDirectory} ${result.reason}`;if(!result.stats.isDirectory())return`${localBinDirectory} is not a directory`;let unsafeLocalBinReason=getUnsafeStatsReason(result.stats);return unsafeLocalBinReason?`${localBinDirectory} is ${unsafeLocalBinReason}`:null}async function getUnsafePackageBinReason(nodeModulesDirectory,packageDirectory,binPath){let unsafePackageDirectoryReason=await getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory);return unsafePackageDirectoryReason||await getUnsafePackageFileReason(packageDirectory,binPath)}async function getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(nodeModulesDirectory,packageDirectory);if(directoriesToCheck.length===0)return`${packageDirectory} resolves outside local node_modules`;for(let directory of directoriesToCheck){let reason=await getUnsafeDirectoryReason(directory);if(reason)return`${directory} is ${reason}`}return null}async function getUnsafePackageFileReason(packageDirectory,filePath){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(packageDirectory,import_node_path.default.dirname(filePath));if(directoriesToCheck.length===0)return`${filePath} resolves outside package`;for(let directory of directoriesToCheck){let reason2=await getUnsafeDirectoryReason(directory);if(reason2)return`${directory} is ${reason2}`}let reason=await getUnsafeFileReason(filePath);return reason?`${filePath} is ${reason}`:null}async function getUnsafeDirectoryReason(directory){let stats=await(0,import_promises.stat)(directory);return stats.isDirectory()?getUnsafeStatsReason(stats):"not a directory"}async function getUnsafeFileReason(filePath){let stats=await(0,import_promises.stat)(filePath);return stats.isFile()?getUnsafeStatsReason(stats):"not a file"}function getUnsafeStatsReason(stats){let getuid=process.geteuid??process.getuid;if(typeof getuid!="function")return null;let uid=getuid();return stats.mode&18?stats.mode&2?"world-writable":"group-writable":stats.uid!==uid?`owned by uid ${stats.uid}, current uid is ${uid}`:null}}});var require_lookup=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),lookup_exports={};__export(lookup_exports,{clearCachedCliInvocation:()=>clearCachedCliInvocation,clearVercelCliLookupCache:()=>clearVercelCliLookupCache2,findVercelCli:()=>findVercelCli2,getLocalBinSearch:()=>getLocalBinSearch,resolveCachedCliInvocation:()=>resolveCachedCliInvocation,toVercelCliInvocation:()=>toVercelCliInvocation});module.exports=__toCommonJS(lookup_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_envpath=require_envpath(),import_errutils=require_errutils(),import_fsutils=require_fsutils(),import_safety=require_safety(),cliInvocationCache=new Map;async function findVercelCli2(options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd()),pathValue=options.path??(0,import_envpath.getEnvPath)(process.env),resolution=await resolveCachedCliInvocation(cwd,pathValue);return resolution.found?toVercelCliInvocation(resolution):null}function resolveCachedCliInvocation(cwd,pathValue){let cacheKey=getCliInvocationCacheKey(cwd,pathValue);if(cliInvocationCache.has(cacheKey))return cliInvocationCache.get(cacheKey);let resolution=resolveCliInvocation(cwd,pathValue).catch(error=>{throw cliInvocationCache.delete(cacheKey),error});return cliInvocationCache.set(cacheKey,resolution),resolution}function toVercelCliInvocation(resolution){return{command:resolution.command,commandArgs:resolution.commandArgs,source:resolution.source}}function clearVercelCliLookupCache2(){cliInvocationCache.clear()}function clearCachedCliInvocation(cwd,pathValue){cliInvocationCache.delete(getCliInvocationCacheKey(cwd,pathValue))}async function resolveCliInvocation(cwd,pathValue){let localBinSearch=await getLocalBinSearch(cwd),diagnostics={localBinSearch:localBinSearch.diagnostics,skippedLocalBins:[]},resolvedPath=(0,import_envpath.prependPathEntries)(pathValue,localBinSearch.directories);for(let command of getVercelCommandNames()){let resolvedCommand=await findCommandInPath(command,resolvedPath,cwd,localBinSearch,diagnostics);if(resolvedCommand)return(0,import_fsutils.isNodeScript)(resolvedCommand.realPath)?{found:!0,command:process.execPath,commandArgs:[resolvedCommand.realPath],source:resolvedCommand.source,diagnostics}:{found:!0,command:resolvedCommand.realPath,commandArgs:[],source:resolvedCommand.source,diagnostics}}return{found:!1,diagnostics}}async function findCommandInPath(command,pathValue,cwd,localBinSearch,diagnostics){for(let directory of(0,import_envpath.splitPath)(pathValue)){let candidate=getPathCommandCandidate(directory,command,cwd);try{if(await canAccessCommandCandidate(candidate,localBinSearch,diagnostics)){let resolvedCommand=await resolveCommandCandidate(command,candidate,localBinSearch,diagnostics);if(resolvedCommand)return resolvedCommand}}catch{}}return null}function getPathCommandCandidate(directory,command,cwd){let candidateDirectory=import_node_path.default.isAbsolute(directory)?directory:import_node_path.default.resolve(cwd,directory);return import_node_path.default.join(candidateDirectory,command)}async function canAccessCommandCandidate(candidate,localBinSearch,diagnostics){try{return await(0,import_promises.access)(candidate,process.platform==="win32"?import_promises.constants.F_OK:import_promises.constants.F_OK|import_promises.constants.X_OK),!0}catch(error){return(0,import_errutils.isMissingPathError)(error)||await recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics),!1}}async function recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics){let localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);localBinCandidate&&recordSkippedLocalBin(diagnostics,candidate,"reason"in localBinCandidate?localBinCandidate.reason:`local bin is not accessible: ${(0,import_errutils.getErrorMessage)(error)}`)}async function resolveCommandCandidate(command,candidate,localBinSearch,diagnostics){if(!(await(0,import_promises.stat)(candidate)).isFile())return null;let realPath=await(0,import_promises.realpath)(candidate),localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);if(!localBinCandidate)return{realPath,source:"path"};if("reason"in localBinCandidate)return recordSkippedLocalBin(diagnostics,candidate,localBinCandidate.reason),null;let localPackageBinResult=await getLocalVercelPackageBin(command,localBinCandidate.directory);return"reason"in localPackageBinResult?(recordSkippedLocalBin(diagnostics,candidate,localPackageBinResult.reason),null):{realPath:localPackageBinResult.binPath,source:"local-bin"}}function recordSkippedLocalBin(diagnostics,candidate,reason){diagnostics.skippedLocalBins.push({candidate,reason})}function getVercelCommandNames(){let commandBases=["vercel"];if(process.platform!=="win32")return commandBases;let extensions=[".cmd",".exe",""];return commandBases.flatMap(command=>extensions.map(extension=>`${command}${extension}`))}async function getLocalBinSearch(cwd){let searchRoot=await(0,import_fsutils.getCanonicalPath)(import_node_path.default.resolve(cwd)),ancestorSearch=await getAncestorDirectorySearch(searchRoot),skippedNodeModules=[],directories=[];for(let directory of ancestorSearch.directories){let nodeModulesDirectory=import_node_path.default.join(directory,"node_modules"),parentDirectories=ancestorSearch.stopReason==="project-root-marker"?(0,import_fsutils.getDirectoriesBetween)(ancestorSearch.stoppedAt,directory):(0,import_fsutils.getDirectoriesBetween)(directory,searchRoot),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory,parentDirectories);if(skippedReason){skippedNodeModules.push({directory:nodeModulesDirectory,reason:skippedReason});continue}directories.push(import_node_path.default.join(nodeModulesDirectory,".bin"))}return{directories,diagnostics:{searchRoot,stoppedAt:ancestorSearch.stoppedAt,stopReason:ancestorSearch.stopReason,markerPath:ancestorSearch.markerPath,skippedNodeModules}}}async function getAncestorDirectorySearch(cwd){let directories=[],current=import_node_path.default.resolve(cwd);for(;;){directories.push(current);let marker=await getProjectRootMarker(current);if(marker)return{directories,stoppedAt:current,stopReason:"project-root-marker",markerPath:marker.path};let parent=import_node_path.default.dirname(current);if(parent===current)return{directories,stoppedAt:current,stopReason:"filesystem-root"};current=parent}}async function getProjectRootMarker(directory){let gitPath=import_node_path.default.join(directory,".git");try{return await(0,import_promises.stat)(gitPath),{path:gitPath}}catch{}return null}async function getLocalBinDirectory(filePath,localBinDirectories){let resolvedFilePath=import_node_path.default.resolve(filePath),canonicalFilePath=resolvedFilePath;try{canonicalFilePath=import_node_path.default.join(await(0,import_promises.realpath)(import_node_path.default.dirname(resolvedFilePath)),import_node_path.default.basename(resolvedFilePath))}catch{}for(let localBinDirectory of localBinDirectories){try{localBinDirectory=await(0,import_promises.realpath)(localBinDirectory)}catch{}if(canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`))return localBinDirectory}return null}async function getNodeModulesBinDirectory(filePath){let candidateDirectory=import_node_path.default.resolve(import_node_path.default.dirname(filePath)),directories=[candidateDirectory];try{let canonicalDirectory=await(0,import_promises.realpath)(candidateDirectory);directories.includes(canonicalDirectory)||directories.push(canonicalDirectory)}catch{}for(let directory of directories)if(import_node_path.default.basename(directory)===".bin"&&import_node_path.default.basename(import_node_path.default.dirname(directory))==="node_modules")return directory;return null}async function classifyPathLocalBinCandidate(filePath,localBinDirectories){let localBinDirectory=await getLocalBinDirectory(filePath,localBinDirectories);if(localBinDirectory)return{directory:localBinDirectory};let nodeModulesBinDirectory=await getNodeModulesBinDirectory(filePath);if(!nodeModulesBinDirectory)return null;let nodeModulesDirectory=import_node_path.default.dirname(nodeModulesBinDirectory),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory);return skippedReason?{reason:`local node_modules is ${skippedReason}`}:{reason:"local bin is outside project lookup boundary"}}async function getLocalVercelPackageBin(command,localBinDirectory){let commandBase=(0,import_fsutils.getCommandBase)(command),nodeModulesDirectory=import_node_path.default.dirname(localBinDirectory);if(commandBase!=="vercel"||import_node_path.default.basename(nodeModulesDirectory)!=="node_modules")return{reason:"not a local vercel bin"};try{let localPackage=await getLocalVercelPackage(nodeModulesDirectory);if("reason"in localPackage)return localPackage;let packageJsonResult=await readLocalVercelPackageJson(localPackage.realPackageDirectory);return"reason"in packageJsonResult?packageJsonResult:(localPackage.packageJson=packageJsonResult.packageJson,await getDeclaredLocalVercelPackageBin(localPackage,commandBase))}catch(error){return{reason:`could not validate local vercel package: ${(0,import_errutils.getErrorMessage)(error)}`}}}async function getLocalVercelPackage(nodeModulesDirectory){let packageDirectory=import_node_path.default.join(nodeModulesDirectory,"vercel"),realNodeModulesDirectory=await(0,import_promises.realpath)(nodeModulesDirectory),realPackageDirectory=await(0,import_promises.realpath)(packageDirectory);if(!(0,import_fsutils.isSubpath)(realNodeModulesDirectory,realPackageDirectory))return{reason:"local vercel package resolves outside local node_modules"};let unsafePackageDirectoryReason=await(0,import_safety.getUnsafePackageDirectoryReason)(realNodeModulesDirectory,realPackageDirectory);return unsafePackageDirectoryReason?{reason:`local vercel package is unsafe: ${unsafePackageDirectoryReason}`}:{realNodeModulesDirectory,realPackageDirectory,packageJson:{}}}async function readLocalVercelPackageJson(realPackageDirectory){let packageJsonPath=import_node_path.default.join(realPackageDirectory,"package.json"),realPackageJsonPath=await(0,import_promises.realpath)(packageJsonPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realPackageJsonPath))return{reason:"local vercel package.json resolves outside package"};let unsafePackageJsonReason=await(0,import_safety.getUnsafePackageFileReason)(realPackageDirectory,realPackageJsonPath);if(unsafePackageJsonReason)return{reason:`local vercel package.json is unsafe: ${unsafePackageJsonReason}`};let packageJson=JSON.parse(await(0,import_promises.readFile)(realPackageJsonPath,"utf8"));return packageJson.name!=="vercel"?{reason:'local vercel package.json does not have name "vercel"'}:{packageJson}}async function getDeclaredLocalVercelPackageBin(localPackage,commandBase){let{packageJson,realNodeModulesDirectory,realPackageDirectory}=localPackage,binTarget=getPackageBinTarget(packageJson,commandBase);if(!binTarget)return{reason:"local vercel package does not declare bin.vercel"};let declaredBinPath=import_node_path.default.resolve(realPackageDirectory,binTarget),realDeclaredBinPath=await(0,import_promises.realpath)(declaredBinPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realDeclaredBinPath))return{reason:"local vercel package bin resolves outside package"};let unsafePackageBinReason=await(0,import_safety.getUnsafePackageBinReason)(realNodeModulesDirectory,realPackageDirectory,realDeclaredBinPath);if(unsafePackageBinReason)return{reason:`local vercel package bin is unsafe: ${unsafePackageBinReason}`};if(process.platform!=="win32"&&!(0,import_fsutils.isNodeScript)(realDeclaredBinPath))try{await(0,import_promises.access)(realDeclaredBinPath,import_promises.constants.F_OK|import_promises.constants.X_OK)}catch(error){return{reason:`local vercel package bin is not executable: ${(0,import_errutils.getErrorMessage)(error)}`}}return{binPath:realDeclaredBinPath}}function getPackageBinTarget(packageJson,command){let bin=packageJson.bin;if(typeof bin=="string")return command==="vercel"?bin:null;if(bin&&typeof bin=="object"){let target=bin[command];if(typeof target=="string")return target}return null}function getCliInvocationCacheKey(cwd,pathValue){return`${cwd}\0${pathValue}`}}});var require_exec=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),exec_exports={};__export(exec_exports,{execVercelCli:()=>execVercelCli2});module.exports=__toCommonJS(exec_exports);var import_node_path=__toESM(__require("node:path")),import_execa=__toESM(require_execa()),import_envpath=require_envpath(),import_errors=require_errors(),import_lookup=require_lookup();async function execVercelCli2(args,options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd());await(0,import_errors.assertValidCwd)(cwd);let env=mergeExecEnv(options.env),pathValue=(0,import_envpath.getEnvPath)(env);try{return await execResolvedVercelCli(args,options,cwd,env,pathValue)}catch(error){if(error instanceof import_errors.VercelCliError&&error.code==="VERCEL_CLI_NOT_FOUND")return(0,import_lookup.clearCachedCliInvocation)(cwd,pathValue),await execResolvedVercelCli(args,options,cwd,env,pathValue);throw error}}async function execResolvedVercelCli(args,options,cwd,env,pathValue){let invocation=await resolveInvocationOrThrow(cwd,pathValue);try{let execaOptions={input:options.input,stdio:options.stdio,stdin:options.stdin,stdout:options.stdout,stderr:options.stderr,timeout:options.timeout,cwd,env:await prependLocalBinsToEnvPath(cwd,env),windowsHide:!0};options.signal&&(execaOptions.signal=options.signal);let{stdout,stderr}=await(0,import_execa.default)(invocation.command,[...invocation.commandArgs,...args],execaOptions);return{stdout,stderr,invocation}}catch(error){throw(0,import_errors.toVercelCliError)(invocation,error)}}async function resolveInvocationOrThrow(cwd,pathValue){let resolution=await(0,import_lookup.resolveCachedCliInvocation)(cwd,pathValue);if(!resolution.found)throw new import_errors.VercelCliError({code:"VERCEL_CLI_NOT_FOUND",message:(0,import_errors.getCliNotFoundMessage)(resolution.diagnostics)});return(0,import_lookup.toVercelCliInvocation)(resolution)}function mergeExecEnv(env){return env?{...process.env,...env}:process.env}async function prependLocalBinsToEnvPath(cwd,env=process.env){let localPath=await prependLocalBinsToPath(cwd,(0,import_envpath.getEnvPath)(env));return(0,import_envpath.setEnvPath)(env,(0,import_envpath.prependPathEntries)(localPath,[import_node_path.default.dirname(process.execPath)]))}async function prependLocalBinsToPath(cwd,pathValue=""){return(0,import_envpath.prependPathEntries)(pathValue,(await(0,import_lookup.getLocalBinSearch)(cwd)).directories)}}});var require_dist=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{VercelCliError:()=>import_errors.VercelCliError,clearVercelCliLookupCache:()=>import_lookup.clearVercelCliLookupCache,execVercelCli:()=>import_exec.execVercelCli,findVercelCli:()=>import_lookup.findVercelCli});module.exports=__toCommonJS(src_exports);var import_errors=require_errors(),import_exec=require_exec(),import_lookup=require_lookup()}});var require_token_error=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-error.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_error_exports={};__export(token_error_exports,{VercelOidcTokenError:()=>VercelOidcTokenError});module.exports=__toCommonJS(token_error_exports);var VercelOidcTokenError=class extends Error{constructor(message,cause){super(message),this.name="VercelOidcTokenError",this.cause=cause}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}}});var require_token_io=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-io.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_io_exports={};__export(token_io_exports,{findRootDir:()=>findRootDir,getUserDataDir:()=>getUserDataDir});module.exports=__toCommonJS(token_io_exports);var import_path=__toESM(__require("path")),import_fs=__toESM(__require("fs")),import_os=__toESM(__require("os")),import_token_error=require_token_error();function findRootDir(){try{let dir=process.cwd();for(;dir!==import_path.default.dirname(dir);){let pkgPath=import_path.default.join(dir,".vercel");if(import_fs.default.existsSync(pkgPath))return dir;dir=import_path.default.dirname(dir)}}catch{throw new import_token_error.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function getUserDataDir(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(import_os.default.platform()){case"darwin":return import_path.default.join(import_os.default.homedir(),"Library/Application Support");case"linux":return import_path.default.join(import_os.default.homedir(),".local/share");case"win32":return process.env.LOCALAPPDATA?process.env.LOCALAPPDATA:null;default:return null}}}});var require_oauth=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/oauth.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),oauth_exports={};__export(oauth_exports,{processTokenResponse:()=>processTokenResponse,refreshTokenRequest:()=>refreshTokenRequest});module.exports=__toCommonJS(oauth_exports);var import_os=__require("os"),VERCEL_ISSUER="https://vercel.com",VERCEL_CLI_CLIENT_ID="cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",userAgent=`@vercel/oidc node-${process.version} ${(0,import_os.platform)()} (${(0,import_os.arch)()}) ${(0,import_os.hostname)()}`,_tokenEndpoint=null;async function getTokenEndpoint(){if(_tokenEndpoint)return _tokenEndpoint;let discoveryUrl=`${VERCEL_ISSUER}/.well-known/openid-configuration`,response=await fetch(discoveryUrl,{headers:{"user-agent":userAgent}});if(!response.ok)throw new Error("Failed to discover OAuth endpoints");let metadata=await response.json();if(!metadata||typeof metadata.token_endpoint!="string")throw new Error("Invalid OAuth discovery response");let endpoint=metadata.token_endpoint;return _tokenEndpoint=endpoint,endpoint}async function refreshTokenRequest(options){let tokenEndpoint=await getTokenEndpoint();return await fetch(tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":userAgent},body:new URLSearchParams({client_id:VERCEL_CLI_CLIENT_ID,grant_type:"refresh_token",...options})})}async function processTokenResponse(response){let json=await response.json();if(!response.ok){let errorMsg=typeof json=="object"&&json&&"error"in json?String(json.error):"Token refresh failed";return[new Error(errorMsg)]}return typeof json!="object"||json===null?[new Error("Invalid token response")]:typeof json.access_token!="string"?[new Error("Missing access_token in response")]:json.token_type!=="Bearer"?[new Error("Invalid token_type in response")]:typeof json.expires_in!="number"?[new Error("Missing expires_in in response")]:[null,json]}}});var require_auth_errors=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/auth-errors.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),auth_errors_exports={};__export(auth_errors_exports,{AccessTokenMissingError:()=>AccessTokenMissingError,RefreshAccessTokenFailedError:()=>RefreshAccessTokenFailedError});module.exports=__toCommonJS(auth_errors_exports);var AccessTokenMissingError=class extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}},RefreshAccessTokenFailedError=class extends Error{constructor(cause){super("Failed to refresh authentication token."),this.name="RefreshAccessTokenFailedError",cause!==void 0&&(this.cause=cause)}}}});var require_token_util=__commonJS({"../../node_modules/.pnpm/@vercel+oidc@3.8.10/node_modules/@vercel/oidc/dist/token-util.js"(exports,module){var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),token_util_exports={};__export(token_util_exports,{assertVercelOidcTokenResponse:()=>assertVercelOidcTokenResponse,findProjectInfo:()=>findProjectInfo,getTokenPayload:()=>getTokenPayload,getVercelOidcToken:()=>getVercelOidcToken,getVercelOidcTokenFromCli:()=>getVercelOidcTokenFromCli,getVercelToken:()=>getVercelToken,isExpired:()=>isExpired,loadToken:()=>loadToken,saveToken:()=>saveToken});module.exports=__toCommonJS(token_util_exports);var path=__toESM(__require("path")),fs=__toESM(__require("fs")),import_cli_exec=require_dist(),import_cli_config=__require("@vercel/cli-config"),import_token_error=require_token_error(),import_token_io=require_token_io(),import_oauth=require_oauth(),import_auth_errors=require_auth_errors();async function getVercelToken(options){let configDir=(0,import_cli_config.getGlobalPathConfig)(),authConfig=(0,import_cli_config.tryReadAuthConfig)(configDir);if(!authConfig||!authConfig.token&&!authConfig.refreshToken)throw new import_auth_errors.AccessTokenMissingError;if(isValidAccessToken(authConfig,options?.expirationBufferMs))return authConfig.token;if(!authConfig.refreshToken)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError("No refresh token available");try{let tokenResponse=await(0,import_oauth.refreshTokenRequest)({refresh_token:authConfig.refreshToken}),[tokensError,tokens]=await(0,import_oauth.processTokenResponse)(tokenResponse);if(tokensError||!tokens)throw(0,import_cli_config.writeAuthConfig)(configDir,{}),new import_auth_errors.RefreshAccessTokenFailedError(tokensError);let updatedConfig={token:tokens.access_token,expiresAt:Math.floor(Date.now()/1e3)+tokens.expires_in,refreshToken:tokens.refresh_token};return(0,import_cli_config.writeAuthConfig)(configDir,updatedConfig),updatedConfig.token}catch(error){throw(0,import_cli_config.writeAuthConfig)(configDir,{}),error instanceof import_auth_errors.AccessTokenMissingError||error instanceof import_auth_errors.RefreshAccessTokenFailedError?error:new import_auth_errors.RefreshAccessTokenFailedError(error)}}function isValidAccessToken(authConfig,expirationBufferMs=0){if(!authConfig.token)return!1;if(typeof authConfig.expiresAt!="number")return!0;let nowInSeconds=Math.floor(Date.now()/1e3),bufferInSeconds=expirationBufferMs/1e3;return authConfig.expiresAt>=nowInSeconds+bufferInSeconds}async function getVercelOidcTokenFromCli(projectId,teamId){let args=["project","token",projectId,"--format=json"];teamId&&args.push("--scope",teamId);try{let{stdout}=await(0,import_cli_exec.execVercelCli)(args),parsedOutput;if(typeof stdout!="string")throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` did not return stdout");try{parsedOutput=JSON.parse(stdout)}catch{throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token: `vercel project token` returned invalid JSON: "+stdout)}return assertVercelOidcTokenResponse(parsedOutput),parsedOutput}catch(error){if(error instanceof import_token_error.VercelOidcTokenError)throw error;let message=error instanceof Error?error.message:"",stderr=error instanceof import_cli_exec.VercelCliError?error.stderr?.trim():void 0;throw stderr&&!message.includes(stderr)&&(message=`${message}
11
- ${stderr}`.trim()),new import_token_error.VercelOidcTokenError(message?`Failed to refresh OIDC token with the Vercel CLI: ${message}`:"Failed to refresh OIDC token with the Vercel CLI")}}async function getVercelOidcToken(authToken,projectId,teamId){let url=`https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId?`&teamId=${teamId}`:""}`,res=await fetch(url,{method:"POST",headers:{Authorization:`Bearer ${authToken}`}});if(!res.ok)throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token: ${res.statusText}`);let tokenRes=await res.json();return assertVercelOidcTokenResponse(tokenRes),tokenRes}function assertVercelOidcTokenResponse(res){if(!res||typeof res!="object")throw new TypeError("Vercel OIDC token is malformed. Expected an object.");if(!("token"in res)||typeof res.token!="string")throw new TypeError("Vercel OIDC token is malformed. Expected a string-valued token property.")}function findProjectInfo(){let dir=(0,import_token_io.findRootDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let prjPath=path.join(dir,".vercel","project.json");if(!fs.existsSync(prjPath))throw new import_token_error.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let prj=JSON.parse(fs.readFileSync(prjPath,"utf8"));if(typeof prj.projectId!="string"&&typeof prj.orgId!="string")throw new TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:prj.projectId,teamId:prj.orgId}}function saveToken(token,projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`),tokenJson=JSON.stringify(token);fs.mkdirSync(path.dirname(tokenPath),{mode:504,recursive:!0}),fs.writeFileSync(tokenPath,tokenJson),fs.chmodSync(tokenPath,432)}function loadToken(projectId){let dir=(0,import_token_io.getUserDataDir)();if(!dir)throw new import_token_error.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let tokenPath=path.join(dir,"com.vercel.token",`${projectId}.json`);if(!fs.existsSync(tokenPath))return null;let token=JSON.parse(fs.readFileSync(tokenPath,"utf8"));return assertVercelOidcTokenResponse(token),token}function getTokenPayload(token){let tokenParts=token.split(".");if(tokenParts.length!==3)throw new import_token_error.VercelOidcTokenError("Invalid token.");let base64=tokenParts[1].replace(/-/g,"+").replace(/_/g,"/"),padded=base64.padEnd(base64.length+(4-base64.length%4)%4,"=");return JSON.parse(Buffer.from(padded,"base64").toString("utf8"))}function isExpired(token,bufferMs=0){return token.exp*1e3<Date.now()+bufferMs}}});export{require_token_error,require_auth_errors,require_token_util};
10
+ `);return isError?(error.originalMessage=error.message,error.message=message):error=new Error(message),error.shortMessage=shortMessage,error.command=command,error.escapedCommand=escapedCommand,error.exitCode=exitCode,error.signal=signal,error.signalDescription=signalDescription,error.stdout=stdout,error.stderr=stderr,all!==void 0&&(error.all=all),"bufferedData"in error&&delete error.bufferedData,error.failed=!0,error.timedOut=!!timedOut,error.isCanceled=isCanceled,error.killed=killed&&!timedOut,error};module.exports=makeError}});var require_stdio=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports,module){"use strict";var aliases=["stdin","stdout","stderr"],hasAlias=options=>aliases.some(alias=>options[alias]!==void 0),normalizeStdio=options=>{if(!options)return;let{stdio}=options;if(stdio===void 0)return aliases.map(alias=>options[alias]);if(hasAlias(options))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map(alias=>`\`${alias}\``).join(", ")}`);if(typeof stdio=="string")return stdio;if(!Array.isArray(stdio))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);let length=Math.max(stdio.length,aliases.length);return Array.from({length},(value,index)=>stdio[index])};module.exports=normalizeStdio;module.exports.node=options=>{let stdio=normalizeStdio(options);return stdio==="ipc"?"ipc":stdio===void 0||typeof stdio=="string"?[stdio,stdio,stdio,"ipc"]:stdio.includes("ipc")?stdio:[...stdio,"ipc"]}}});var require_kill=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports,module){"use strict";var os=__require("os"),onExit=require_signal_exit(),DEFAULT_FORCE_KILL_TIMEOUT=1e3*5,spawnedKill=(kill,signal="SIGTERM",options={})=>{let killResult=kill(signal);return setKillTimeout(kill,signal,options,killResult),killResult},setKillTimeout=(kill,signal,options,killResult)=>{if(!shouldForceKill(signal,options,killResult))return;let timeout=getForceKillAfterTimeout(options),t=setTimeout(()=>{kill("SIGKILL")},timeout);t.unref&&t.unref()},shouldForceKill=(signal,{forceKillAfterTimeout},killResult)=>isSigterm(signal)&&forceKillAfterTimeout!==!1&&killResult,isSigterm=signal=>signal===os.constants.signals.SIGTERM||typeof signal=="string"&&signal.toUpperCase()==="SIGTERM",getForceKillAfterTimeout=({forceKillAfterTimeout=!0})=>{if(forceKillAfterTimeout===!0)return DEFAULT_FORCE_KILL_TIMEOUT;if(!Number.isFinite(forceKillAfterTimeout)||forceKillAfterTimeout<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);return forceKillAfterTimeout},spawnedCancel=(spawned,context)=>{spawned.kill()&&(context.isCanceled=!0)},timeoutKill=(spawned,signal,reject)=>{spawned.kill(signal),reject(Object.assign(new Error("Timed out"),{timedOut:!0,signal}))},setupTimeout=(spawned,{timeout,killSignal="SIGTERM"},spawnedPromise)=>{if(timeout===0||timeout===void 0)return spawnedPromise;let timeoutId,timeoutPromise=new Promise((resolve,reject)=>{timeoutId=setTimeout(()=>{timeoutKill(spawned,killSignal,reject)},timeout)}),safeSpawnedPromise=spawnedPromise.finally(()=>{clearTimeout(timeoutId)});return Promise.race([timeoutPromise,safeSpawnedPromise])},validateTimeout=({timeout})=>{if(timeout!==void 0&&(!Number.isFinite(timeout)||timeout<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`)},setExitHandler=async(spawned,{cleanup,detached},timedPromise)=>{if(!cleanup||detached)return timedPromise;let removeExitHandler=onExit(()=>{spawned.kill()});return timedPromise.finally(()=>{removeExitHandler()})};module.exports={spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}}});var require_buffer_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports,module){"use strict";var{PassThrough:PassThroughStream}=__require("stream");module.exports=options=>{options={...options};let{array}=options,{encoding}=options,isBuffer=encoding==="buffer",objectMode=!1;array?objectMode=!(encoding||isBuffer):encoding=encoding||"utf8",isBuffer&&(encoding=null);let stream=new PassThroughStream({objectMode});encoding&&stream.setEncoding(encoding);let length=0,chunks=[];return stream.on("data",chunk=>{chunks.push(chunk),objectMode?length=chunks.length:length+=chunk.length}),stream.getBufferedValue=()=>array?chunks:isBuffer?Buffer.concat(chunks,length):chunks.join(""),stream.getBufferedLength=()=>length,stream}}});var require_get_stream=__commonJS({"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports,module){"use strict";var{constants:BufferConstants}=__require("buffer"),stream=__require("stream"),{promisify}=__require("util"),bufferStream=require_buffer_stream(),streamPipelinePromisified=promisify(stream.pipeline),MaxBufferError=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function getStream(inputStream,options){if(!inputStream)throw new Error("Expected a stream");options={maxBuffer:1/0,...options};let{maxBuffer}=options,stream2=bufferStream(options);return await new Promise((resolve,reject)=>{let rejectPromise=error=>{error&&stream2.getBufferedLength()<=BufferConstants.MAX_LENGTH&&(error.bufferedData=stream2.getBufferedValue()),reject(error)};(async()=>{try{await streamPipelinePromisified(inputStream,stream2),resolve()}catch(error){rejectPromise(error)}})(),stream2.on("data",()=>{stream2.getBufferedLength()>maxBuffer&&rejectPromise(new MaxBufferError)})}),stream2.getBufferedValue()}module.exports=getStream;module.exports.buffer=(stream2,options)=>getStream(stream2,{...options,encoding:"buffer"});module.exports.array=(stream2,options)=>getStream(stream2,{...options,array:!0});module.exports.MaxBufferError=MaxBufferError}});var require_stream=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports,module){"use strict";var isStream=require_is_stream(),getStream=require_get_stream(),mergeStream=require_merge_stream(),handleInput=(spawned,input)=>{input===void 0||spawned.stdin===void 0||(isStream(input)?input.pipe(spawned.stdin):spawned.stdin.end(input))},makeAllStream=(spawned,{all})=>{if(!all||!spawned.stdout&&!spawned.stderr)return;let mixed=mergeStream();return spawned.stdout&&mixed.add(spawned.stdout),spawned.stderr&&mixed.add(spawned.stderr),mixed},getBufferedData=async(stream,streamPromise)=>{if(stream){stream.destroy();try{return await streamPromise}catch(error){return error.bufferedData}}},getStreamPromise=(stream,{encoding,buffer,maxBuffer})=>{if(!(!stream||!buffer))return encoding?getStream(stream,{encoding,maxBuffer}):getStream.buffer(stream,{maxBuffer})},getSpawnedResult=async({stdout,stderr,all},{encoding,buffer,maxBuffer},processDone)=>{let stdoutPromise=getStreamPromise(stdout,{encoding,buffer,maxBuffer}),stderrPromise=getStreamPromise(stderr,{encoding,buffer,maxBuffer}),allPromise=getStreamPromise(all,{encoding,buffer,maxBuffer:maxBuffer*2});try{return await Promise.all([processDone,stdoutPromise,stderrPromise,allPromise])}catch(error){return Promise.all([{error,signal:error.signal,timedOut:error.timedOut},getBufferedData(stdout,stdoutPromise),getBufferedData(stderr,stderrPromise),getBufferedData(all,allPromise)])}},validateInputSync=({input})=>{if(isStream(input))throw new TypeError("The `input` option cannot be a stream in sync mode")};module.exports={handleInput,makeAllStream,getSpawnedResult,validateInputSync}}});var require_promise=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports,module){"use strict";var nativePromisePrototype=(async()=>{})().constructor.prototype,descriptors=["then","catch","finally"].map(property=>[property,Reflect.getOwnPropertyDescriptor(nativePromisePrototype,property)]),mergePromise=(spawned,promise)=>{for(let[property,descriptor]of descriptors){let value=typeof promise=="function"?(...args)=>Reflect.apply(descriptor.value,promise(),args):descriptor.value.bind(promise);Reflect.defineProperty(spawned,property,{...descriptor,value})}return spawned},getSpawnedPromise=spawned=>new Promise((resolve,reject)=>{spawned.on("exit",(exitCode,signal)=>{resolve({exitCode,signal})}),spawned.on("error",error=>{reject(error)}),spawned.stdin&&spawned.stdin.on("error",error=>{reject(error)})});module.exports={mergePromise,getSpawnedPromise}}});var require_command=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports,module){"use strict";var normalizeArgs=(file,args=[])=>Array.isArray(args)?[file,...args]:[file],NO_ESCAPE_REGEXP=/^[\w.-]+$/,DOUBLE_QUOTES_REGEXP=/"/g,escapeArg=arg=>typeof arg!="string"||NO_ESCAPE_REGEXP.test(arg)?arg:`"${arg.replace(DOUBLE_QUOTES_REGEXP,'\\"')}"`,joinCommand=(file,args)=>normalizeArgs(file,args).join(" "),getEscapedCommand=(file,args)=>normalizeArgs(file,args).map(arg=>escapeArg(arg)).join(" "),SPACES_REGEXP=/ +/g,parseCommand=command=>{let tokens=[];for(let token of command.trim().split(SPACES_REGEXP)){let previousToken=tokens[tokens.length-1];previousToken&&previousToken.endsWith("\\")?tokens[tokens.length-1]=`${previousToken.slice(0,-1)} ${token}`:tokens.push(token)}return tokens};module.exports={joinCommand,getEscapedCommand,parseCommand}}});var require_execa=__commonJS({"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports,module){"use strict";var path=__require("path"),childProcess=__require("child_process"),crossSpawn=require_cross_spawn(),stripFinalNewline=require_strip_final_newline(),npmRunPath=require_npm_run_path(),onetime=require_onetime(),makeError=require_error(),normalizeStdio=require_stdio(),{spawnedKill,spawnedCancel,setupTimeout,validateTimeout,setExitHandler}=require_kill(),{handleInput,getSpawnedResult,makeAllStream,validateInputSync}=require_stream(),{mergePromise,getSpawnedPromise}=require_promise(),{joinCommand,parseCommand,getEscapedCommand}=require_command(),DEFAULT_MAX_BUFFER=1e3*1e3*100,getEnv=({env:envOption,extendEnv,preferLocal,localDir,execPath})=>{let env=extendEnv?{...process.env,...envOption}:envOption;return preferLocal?npmRunPath.env({env,cwd:localDir,execPath}):env},handleArguments=(file,args,options={})=>{let parsed=crossSpawn._parse(file,args,options);return file=parsed.command,args=parsed.args,options=parsed.options,options={maxBuffer:DEFAULT_MAX_BUFFER,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:options.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...options},options.env=getEnv(options),options.stdio=normalizeStdio(options),process.platform==="win32"&&path.basename(file,".exe")==="cmd"&&args.unshift("/q"),{file,args,options,parsed}},handleOutput=(options,value,error)=>typeof value!="string"&&!Buffer.isBuffer(value)?error===void 0?void 0:"":options.stripFinalNewline?stripFinalNewline(value):value,execa=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateTimeout(parsed.options);let spawned;try{spawned=childProcess.spawn(parsed.file,parsed.args,parsed.options)}catch(error){let dummySpawned=new childProcess.ChildProcess,errorPromise=Promise.reject(makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1}));return mergePromise(dummySpawned,errorPromise)}let spawnedPromise=getSpawnedPromise(spawned),timedPromise=setupTimeout(spawned,parsed.options,spawnedPromise),processDone=setExitHandler(spawned,parsed.options,timedPromise),context={isCanceled:!1};spawned.kill=spawnedKill.bind(null,spawned.kill.bind(spawned)),spawned.cancel=spawnedCancel.bind(null,spawned,context);let handlePromiseOnce=onetime(async()=>{let[{error,exitCode,signal,timedOut},stdoutResult,stderrResult,allResult]=await getSpawnedResult(spawned,parsed.options,processDone),stdout=handleOutput(parsed.options,stdoutResult),stderr=handleOutput(parsed.options,stderrResult),all=handleOutput(parsed.options,allResult);if(error||exitCode!==0||signal!==null){let returnedError=makeError({error,exitCode,signal,stdout,stderr,all,command,escapedCommand,parsed,timedOut,isCanceled:context.isCanceled,killed:spawned.killed});if(!parsed.options.reject)return returnedError;throw returnedError}return{command,escapedCommand,exitCode:0,stdout,stderr,all,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return handleInput(spawned,parsed.options.input),spawned.all=makeAllStream(spawned,parsed.options),mergePromise(spawned,handlePromiseOnce)};module.exports=execa;module.exports.sync=(file,args,options)=>{let parsed=handleArguments(file,args,options),command=joinCommand(file,args),escapedCommand=getEscapedCommand(file,args);validateInputSync(parsed.options);let result;try{result=childProcess.spawnSync(parsed.file,parsed.args,parsed.options)}catch(error){throw makeError({error,stdout:"",stderr:"",all:"",command,escapedCommand,parsed,timedOut:!1,isCanceled:!1,killed:!1})}let stdout=handleOutput(parsed.options,result.stdout,result.error),stderr=handleOutput(parsed.options,result.stderr,result.error);if(result.error||result.status!==0||result.signal!==null){let error=makeError({stdout,stderr,error:result.error,signal:result.signal,exitCode:result.status,command,escapedCommand,parsed,timedOut:result.error&&result.error.code==="ETIMEDOUT",isCanceled:!1,killed:result.signal!==null});if(!parsed.options.reject)return error;throw error}return{command,escapedCommand,exitCode:0,stdout,stderr,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};module.exports.command=(command,options)=>{let[file,...args]=parseCommand(command);return execa(file,args,options)};module.exports.commandSync=(command,options)=>{let[file,...args]=parseCommand(command);return execa.sync(file,args,options)};module.exports.node=(scriptPath,args,options={})=>{args&&!Array.isArray(args)&&typeof args=="object"&&(options=args,args=[]);let stdio=normalizeStdio.node(options),defaultExecArgv=process.execArgv.filter(arg=>!arg.startsWith("--inspect")),{nodePath=process.execPath,nodeOptions=defaultExecArgv}=options;return execa(nodePath,[...nodeOptions,scriptPath,...Array.isArray(args)?args:[]],{...options,stdin:void 0,stdout:void 0,stderr:void 0,stdio,shell:!1})}}});var require_envpath=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/envpath.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),envpath_exports={};__export(envpath_exports,{getEnvPath:()=>getEnvPath,prependPathEntries:()=>prependPathEntries,setEnvPath:()=>setEnvPath,splitPath:()=>splitPath});module.exports=__toCommonJS(envpath_exports);var import_node_path=__toESM(__require("node:path"));function prependPathEntries(pathValue,directories){let pathParts=pathValue.split(import_node_path.default.delimiter).filter(Boolean),prepended=[];for(let directory of directories)!pathParts.includes(directory)&&!prepended.includes(directory)&&prepended.push(directory);return prepended.length===0?pathValue:pathValue===""||pathValue===import_node_path.default.delimiter?`${prepended.join(import_node_path.default.delimiter)}${pathValue}`:[...prepended,pathValue].join(import_node_path.default.delimiter)}function splitPath(pathValue){return pathValue.split(import_node_path.default.delimiter).filter(Boolean)}function getEnvPath(env=process.env){if(process.platform!=="win32")return env.PATH??"";let pathKeys=Object.keys(env).filter(key=>key.toLowerCase()==="path");for(let index=pathKeys.length-1;index>=0;index--){let value=env[pathKeys[index]];if(value!==void 0)return value}return""}function setEnvPath(env=process.env,pathValue){if(process.platform!=="win32")return{...env,PATH:pathValue};let normalizedEnv={...env};for(let key of Object.keys(normalizedEnv))key!=="PATH"&&key.toLowerCase()==="path"&&delete normalizedEnv[key];return normalizedEnv.PATH=pathValue,normalizedEnv}}});var require_errutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/errutils.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),errutils_exports={};__export(errutils_exports,{getErrorMessage:()=>getErrorMessage,isMissingPathError:()=>isMissingPathError});module.exports=__toCommonJS(errutils_exports);function getErrorMessage(error){return error instanceof Error?error.message:String(error)}function isMissingPathError(error){return typeof error=="object"&&error!==null&&"code"in error&&(error.code==="ENOENT"||error.code==="ENOTDIR")}}});var require_fsutils=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/fsutils.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),fsutils_exports={};__export(fsutils_exports,{getCanonicalPath:()=>getCanonicalPath,getCommandBase:()=>getCommandBase,getDirectoriesBetween:()=>getDirectoriesBetween,isNodeScript:()=>isNodeScript,isSubpath:()=>isSubpath,statIfExists:()=>statIfExists});module.exports=__toCommonJS(fsutils_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils();async function getCanonicalPath(filePath){try{return await(0,import_promises.realpath)(filePath)}catch{return filePath}}function getDirectoriesBetween(parent,child){let directories=[],current=import_node_path.default.resolve(child),resolvedParent=import_node_path.default.resolve(parent);for(;;){if(directories.push(current),current===resolvedParent)return directories.reverse();let next=import_node_path.default.dirname(current);if(next===current)return[];current=next}}async function statIfExists(filePath){try{return{stats:await(0,import_promises.stat)(filePath)}}catch(error){return(0,import_errutils.isMissingPathError)(error)?{missing:!0}:{reason:`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}}}function isNodeScript(filePath){return[".js",".cjs",".mjs"].includes(import_node_path.default.extname(filePath))}function isSubpath(parent,child){let relativePath=import_node_path.default.relative(parent,child);return relativePath===""||relativePath!==""&&!relativePath.startsWith("..")&&!import_node_path.default.isAbsolute(relativePath)}function getCommandBase(command){let extension=import_node_path.default.extname(command).toLowerCase();return process.platform==="win32"&&[".cmd",".exe"].includes(extension)?import_node_path.default.basename(command,extension):import_node_path.default.basename(command)}}});var require_safety=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/safety.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),safety_exports={};__export(safety_exports,{getSkippedNodeModulesReason:()=>getSkippedNodeModulesReason,getUnsafeDirectoryReason:()=>getUnsafeDirectoryReason,getUnsafePackageBinReason:()=>getUnsafePackageBinReason,getUnsafePackageDirectoryReason:()=>getUnsafePackageDirectoryReason,getUnsafePackageFileReason:()=>getUnsafePackageFileReason,getUnsafeStatsReason:()=>getUnsafeStatsReason});module.exports=__toCommonJS(safety_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_errutils=require_errutils(),import_fsutils=require_fsutils();async function getSkippedNodeModulesReason(nodeModulesDirectory,parentDirectories){let parentDirectory=import_node_path.default.dirname(nodeModulesDirectory);parentDirectories??=[parentDirectory];for(let directory of parentDirectories){let unsafeParentReason;try{unsafeParentReason=await getUnsafeDirectoryReason(directory)}catch(error){unsafeParentReason=`could not inspect: ${(0,import_errutils.getErrorMessage)(error)}`}if(unsafeParentReason)return`${directory} is ${unsafeParentReason}`}let result=await(0,import_fsutils.statIfExists)(nodeModulesDirectory);if("missing"in result)return null;if("reason"in result)return result.reason;if(!result.stats.isDirectory())return"not a directory";let unsafeNodeModulesReason=getUnsafeStatsReason(result.stats);return unsafeNodeModulesReason||await getSkippedLocalBinDirectoryReason(import_node_path.default.join(nodeModulesDirectory,".bin"))}async function getSkippedLocalBinDirectoryReason(localBinDirectory){let result=await(0,import_fsutils.statIfExists)(localBinDirectory);if("missing"in result)return null;if("reason"in result)return`${localBinDirectory} ${result.reason}`;if(!result.stats.isDirectory())return`${localBinDirectory} is not a directory`;let unsafeLocalBinReason=getUnsafeStatsReason(result.stats);return unsafeLocalBinReason?`${localBinDirectory} is ${unsafeLocalBinReason}`:null}async function getUnsafePackageBinReason(nodeModulesDirectory,packageDirectory,binPath){let unsafePackageDirectoryReason=await getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory);return unsafePackageDirectoryReason||await getUnsafePackageFileReason(packageDirectory,binPath)}async function getUnsafePackageDirectoryReason(nodeModulesDirectory,packageDirectory){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(nodeModulesDirectory,packageDirectory);if(directoriesToCheck.length===0)return`${packageDirectory} resolves outside local node_modules`;for(let directory of directoriesToCheck){let reason=await getUnsafeDirectoryReason(directory);if(reason)return`${directory} is ${reason}`}return null}async function getUnsafePackageFileReason(packageDirectory,filePath){let directoriesToCheck=(0,import_fsutils.getDirectoriesBetween)(packageDirectory,import_node_path.default.dirname(filePath));if(directoriesToCheck.length===0)return`${filePath} resolves outside package`;for(let directory of directoriesToCheck){let reason2=await getUnsafeDirectoryReason(directory);if(reason2)return`${directory} is ${reason2}`}let reason=await getUnsafeFileReason(filePath);return reason?`${filePath} is ${reason}`:null}async function getUnsafeDirectoryReason(directory){let stats=await(0,import_promises.stat)(directory);return stats.isDirectory()?getUnsafeStatsReason(stats):"not a directory"}async function getUnsafeFileReason(filePath){let stats=await(0,import_promises.stat)(filePath);return stats.isFile()?getUnsafeStatsReason(stats):"not a file"}function getUnsafeStatsReason(stats){let getuid=process.geteuid??process.getuid;if(typeof getuid!="function")return null;let uid=getuid();return stats.mode&18?stats.mode&2?"world-writable":"group-writable":stats.uid!==uid?`owned by uid ${stats.uid}, current uid is ${uid}`:null}}});var require_lookup=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/lookup.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),lookup_exports={};__export(lookup_exports,{clearCachedCliInvocation:()=>clearCachedCliInvocation,clearVercelCliLookupCache:()=>clearVercelCliLookupCache2,findVercelCli:()=>findVercelCli2,getLocalBinSearch:()=>getLocalBinSearch,resolveCachedCliInvocation:()=>resolveCachedCliInvocation,toVercelCliInvocation:()=>toVercelCliInvocation});module.exports=__toCommonJS(lookup_exports);var import_promises=__require("node:fs/promises"),import_node_path=__toESM(__require("node:path")),import_envpath=require_envpath(),import_errutils=require_errutils(),import_fsutils=require_fsutils(),import_safety=require_safety(),cliInvocationCache=new Map;async function findVercelCli2(options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd()),pathValue=options.path??(0,import_envpath.getEnvPath)(process.env),resolution=await resolveCachedCliInvocation(cwd,pathValue);return resolution.found?toVercelCliInvocation(resolution):null}function resolveCachedCliInvocation(cwd,pathValue){let cacheKey=getCliInvocationCacheKey(cwd,pathValue);if(cliInvocationCache.has(cacheKey))return cliInvocationCache.get(cacheKey);let resolution=resolveCliInvocation(cwd,pathValue).catch(error=>{throw cliInvocationCache.delete(cacheKey),error});return cliInvocationCache.set(cacheKey,resolution),resolution}function toVercelCliInvocation(resolution){return{command:resolution.command,commandArgs:resolution.commandArgs,source:resolution.source}}function clearVercelCliLookupCache2(){cliInvocationCache.clear()}function clearCachedCliInvocation(cwd,pathValue){cliInvocationCache.delete(getCliInvocationCacheKey(cwd,pathValue))}async function resolveCliInvocation(cwd,pathValue){let localBinSearch=await getLocalBinSearch(cwd),diagnostics={localBinSearch:localBinSearch.diagnostics,skippedLocalBins:[]},resolvedPath=(0,import_envpath.prependPathEntries)(pathValue,localBinSearch.directories);for(let command of getVercelCommandNames()){let resolvedCommand=await findCommandInPath(command,resolvedPath,cwd,localBinSearch,diagnostics);if(resolvedCommand)return(0,import_fsutils.isNodeScript)(resolvedCommand.realPath)?{found:!0,command:process.execPath,commandArgs:[resolvedCommand.realPath],source:resolvedCommand.source,diagnostics}:{found:!0,command:resolvedCommand.realPath,commandArgs:[],source:resolvedCommand.source,diagnostics}}return{found:!1,diagnostics}}async function findCommandInPath(command,pathValue,cwd,localBinSearch,diagnostics){for(let directory of(0,import_envpath.splitPath)(pathValue)){let candidate=getPathCommandCandidate(directory,command,cwd);try{if(await canAccessCommandCandidate(candidate,localBinSearch,diagnostics)){let resolvedCommand=await resolveCommandCandidate(command,candidate,localBinSearch,diagnostics);if(resolvedCommand)return resolvedCommand}}catch{}}return null}function getPathCommandCandidate(directory,command,cwd){let candidateDirectory=import_node_path.default.isAbsolute(directory)?directory:import_node_path.default.resolve(cwd,directory);return import_node_path.default.join(candidateDirectory,command)}async function canAccessCommandCandidate(candidate,localBinSearch,diagnostics){try{return await(0,import_promises.access)(candidate,process.platform==="win32"?import_promises.constants.F_OK:import_promises.constants.F_OK|import_promises.constants.X_OK),!0}catch(error){return(0,import_errutils.isMissingPathError)(error)||await recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics),!1}}async function recordInaccessibleLocalBinCandidate(candidate,error,localBinSearch,diagnostics){let localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);localBinCandidate&&recordSkippedLocalBin(diagnostics,candidate,"reason"in localBinCandidate?localBinCandidate.reason:`local bin is not accessible: ${(0,import_errutils.getErrorMessage)(error)}`)}async function resolveCommandCandidate(command,candidate,localBinSearch,diagnostics){if(!(await(0,import_promises.stat)(candidate)).isFile())return null;let realPath=await(0,import_promises.realpath)(candidate),localBinCandidate=await classifyPathLocalBinCandidate(candidate,localBinSearch.directories);if(!localBinCandidate)return{realPath,source:"path"};if("reason"in localBinCandidate)return recordSkippedLocalBin(diagnostics,candidate,localBinCandidate.reason),null;let localPackageBinResult=await getLocalVercelPackageBin(command,localBinCandidate.directory);return"reason"in localPackageBinResult?(recordSkippedLocalBin(diagnostics,candidate,localPackageBinResult.reason),null):{realPath:localPackageBinResult.binPath,source:"local-bin"}}function recordSkippedLocalBin(diagnostics,candidate,reason){diagnostics.skippedLocalBins.push({candidate,reason})}function getVercelCommandNames(){let commandBases=["vercel"];if(process.platform!=="win32")return commandBases;let extensions=[".cmd",".exe",""];return commandBases.flatMap(command=>extensions.map(extension=>`${command}${extension}`))}async function getLocalBinSearch(cwd){let searchRoot=await(0,import_fsutils.getCanonicalPath)(import_node_path.default.resolve(cwd)),ancestorSearch=await getAncestorDirectorySearch(searchRoot),skippedNodeModules=[],directories=[];for(let directory of ancestorSearch.directories){let nodeModulesDirectory=import_node_path.default.join(directory,"node_modules"),parentDirectories=ancestorSearch.stopReason==="project-root-marker"?(0,import_fsutils.getDirectoriesBetween)(ancestorSearch.stoppedAt,directory):(0,import_fsutils.getDirectoriesBetween)(directory,searchRoot),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory,parentDirectories);if(skippedReason){skippedNodeModules.push({directory:nodeModulesDirectory,reason:skippedReason});continue}directories.push(import_node_path.default.join(nodeModulesDirectory,".bin"))}return{directories,diagnostics:{searchRoot,stoppedAt:ancestorSearch.stoppedAt,stopReason:ancestorSearch.stopReason,markerPath:ancestorSearch.markerPath,skippedNodeModules}}}async function getAncestorDirectorySearch(cwd){let directories=[],current=import_node_path.default.resolve(cwd);for(;;){directories.push(current);let marker=await getProjectRootMarker(current);if(marker)return{directories,stoppedAt:current,stopReason:"project-root-marker",markerPath:marker.path};let parent=import_node_path.default.dirname(current);if(parent===current)return{directories,stoppedAt:current,stopReason:"filesystem-root"};current=parent}}async function getProjectRootMarker(directory){let gitPath=import_node_path.default.join(directory,".git");try{return await(0,import_promises.stat)(gitPath),{path:gitPath}}catch{}return null}async function getLocalBinDirectory(filePath,localBinDirectories){let resolvedFilePath=import_node_path.default.resolve(filePath),canonicalFilePath=resolvedFilePath;try{canonicalFilePath=import_node_path.default.join(await(0,import_promises.realpath)(import_node_path.default.dirname(resolvedFilePath)),import_node_path.default.basename(resolvedFilePath))}catch{}for(let localBinDirectory of localBinDirectories){try{localBinDirectory=await(0,import_promises.realpath)(localBinDirectory)}catch{}if(canonicalFilePath.startsWith(`${localBinDirectory}${import_node_path.default.sep}`))return localBinDirectory}return null}async function getNodeModulesBinDirectory(filePath){let candidateDirectory=import_node_path.default.resolve(import_node_path.default.dirname(filePath)),directories=[candidateDirectory];try{let canonicalDirectory=await(0,import_promises.realpath)(candidateDirectory);directories.includes(canonicalDirectory)||directories.push(canonicalDirectory)}catch{}for(let directory of directories)if(import_node_path.default.basename(directory)===".bin"&&import_node_path.default.basename(import_node_path.default.dirname(directory))==="node_modules")return directory;return null}async function classifyPathLocalBinCandidate(filePath,localBinDirectories){let localBinDirectory=await getLocalBinDirectory(filePath,localBinDirectories);if(localBinDirectory)return{directory:localBinDirectory};let nodeModulesBinDirectory=await getNodeModulesBinDirectory(filePath);if(!nodeModulesBinDirectory)return null;let nodeModulesDirectory=import_node_path.default.dirname(nodeModulesBinDirectory),skippedReason=await(0,import_safety.getSkippedNodeModulesReason)(nodeModulesDirectory);return skippedReason?{reason:`local node_modules is ${skippedReason}`}:{reason:"local bin is outside project lookup boundary"}}async function getLocalVercelPackageBin(command,localBinDirectory){let commandBase=(0,import_fsutils.getCommandBase)(command),nodeModulesDirectory=import_node_path.default.dirname(localBinDirectory);if(commandBase!=="vercel"||import_node_path.default.basename(nodeModulesDirectory)!=="node_modules")return{reason:"not a local vercel bin"};try{let localPackage=await getLocalVercelPackage(nodeModulesDirectory);if("reason"in localPackage)return localPackage;let packageJsonResult=await readLocalVercelPackageJson(localPackage.realPackageDirectory);return"reason"in packageJsonResult?packageJsonResult:(localPackage.packageJson=packageJsonResult.packageJson,await getDeclaredLocalVercelPackageBin(localPackage,commandBase))}catch(error){return{reason:`could not validate local vercel package: ${(0,import_errutils.getErrorMessage)(error)}`}}}async function getLocalVercelPackage(nodeModulesDirectory){let packageDirectory=import_node_path.default.join(nodeModulesDirectory,"vercel"),realNodeModulesDirectory=await(0,import_promises.realpath)(nodeModulesDirectory),realPackageDirectory=await(0,import_promises.realpath)(packageDirectory);if(!(0,import_fsutils.isSubpath)(realNodeModulesDirectory,realPackageDirectory))return{reason:"local vercel package resolves outside local node_modules"};let unsafePackageDirectoryReason=await(0,import_safety.getUnsafePackageDirectoryReason)(realNodeModulesDirectory,realPackageDirectory);return unsafePackageDirectoryReason?{reason:`local vercel package is unsafe: ${unsafePackageDirectoryReason}`}:{realNodeModulesDirectory,realPackageDirectory,packageJson:{}}}async function readLocalVercelPackageJson(realPackageDirectory){let packageJsonPath=import_node_path.default.join(realPackageDirectory,"package.json"),realPackageJsonPath=await(0,import_promises.realpath)(packageJsonPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realPackageJsonPath))return{reason:"local vercel package.json resolves outside package"};let unsafePackageJsonReason=await(0,import_safety.getUnsafePackageFileReason)(realPackageDirectory,realPackageJsonPath);if(unsafePackageJsonReason)return{reason:`local vercel package.json is unsafe: ${unsafePackageJsonReason}`};let packageJson=JSON.parse(await(0,import_promises.readFile)(realPackageJsonPath,"utf8"));return packageJson.name!=="vercel"?{reason:'local vercel package.json does not have name "vercel"'}:{packageJson}}async function getDeclaredLocalVercelPackageBin(localPackage,commandBase){let{packageJson,realNodeModulesDirectory,realPackageDirectory}=localPackage,binTarget=getPackageBinTarget(packageJson,commandBase);if(!binTarget)return{reason:"local vercel package does not declare bin.vercel"};let declaredBinPath=import_node_path.default.resolve(realPackageDirectory,binTarget),realDeclaredBinPath=await(0,import_promises.realpath)(declaredBinPath);if(!(0,import_fsutils.isSubpath)(realPackageDirectory,realDeclaredBinPath))return{reason:"local vercel package bin resolves outside package"};let unsafePackageBinReason=await(0,import_safety.getUnsafePackageBinReason)(realNodeModulesDirectory,realPackageDirectory,realDeclaredBinPath);if(unsafePackageBinReason)return{reason:`local vercel package bin is unsafe: ${unsafePackageBinReason}`};if(process.platform!=="win32"&&!(0,import_fsutils.isNodeScript)(realDeclaredBinPath))try{await(0,import_promises.access)(realDeclaredBinPath,import_promises.constants.F_OK|import_promises.constants.X_OK)}catch(error){return{reason:`local vercel package bin is not executable: ${(0,import_errutils.getErrorMessage)(error)}`}}return{binPath:realDeclaredBinPath}}function getPackageBinTarget(packageJson,command){let bin=packageJson.bin;if(typeof bin=="string")return command==="vercel"?bin:null;if(bin&&typeof bin=="object"){let target=bin[command];if(typeof target=="string")return target}return null}function getCliInvocationCacheKey(cwd,pathValue){return`${cwd}\0${pathValue}`}}});var require_exec=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/exec.js"(exports,module){"use strict";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),exec_exports={};__export(exec_exports,{execVercelCli:()=>execVercelCli2});module.exports=__toCommonJS(exec_exports);var import_node_path=__toESM(__require("node:path")),import_execa=__toESM(require_execa()),import_envpath=require_envpath(),import_errors=require_errors(),import_lookup=require_lookup();async function execVercelCli2(args,options={}){let cwd=import_node_path.default.resolve(options.cwd??process.cwd());await(0,import_errors.assertValidCwd)(cwd);let env=mergeExecEnv(options.env),pathValue=(0,import_envpath.getEnvPath)(env);try{return await execResolvedVercelCli(args,options,cwd,env,pathValue)}catch(error){if(error instanceof import_errors.VercelCliError&&error.code==="VERCEL_CLI_NOT_FOUND")return(0,import_lookup.clearCachedCliInvocation)(cwd,pathValue),await execResolvedVercelCli(args,options,cwd,env,pathValue);throw error}}async function execResolvedVercelCli(args,options,cwd,env,pathValue){let invocation=await resolveInvocationOrThrow(cwd,pathValue);try{let execaOptions={input:options.input,stdio:options.stdio,stdin:options.stdin,stdout:options.stdout,stderr:options.stderr,timeout:options.timeout,cwd,env:await prependLocalBinsToEnvPath(cwd,env),windowsHide:!0};options.signal&&(execaOptions.signal=options.signal);let{stdout,stderr}=await(0,import_execa.default)(invocation.command,[...invocation.commandArgs,...args],execaOptions);return{stdout,stderr,invocation}}catch(error){throw(0,import_errors.toVercelCliError)(invocation,error)}}async function resolveInvocationOrThrow(cwd,pathValue){let resolution=await(0,import_lookup.resolveCachedCliInvocation)(cwd,pathValue);if(!resolution.found)throw new import_errors.VercelCliError({code:"VERCEL_CLI_NOT_FOUND",message:(0,import_errors.getCliNotFoundMessage)(resolution.diagnostics)});return(0,import_lookup.toVercelCliInvocation)(resolution)}function mergeExecEnv(env){return env?{...process.env,...env}:process.env}async function prependLocalBinsToEnvPath(cwd,env=process.env){let localPath=await prependLocalBinsToPath(cwd,(0,import_envpath.getEnvPath)(env));return(0,import_envpath.setEnvPath)(env,(0,import_envpath.prependPathEntries)(localPath,[import_node_path.default.dirname(process.execPath)]))}async function prependLocalBinsToPath(cwd,pathValue=""){return(0,import_envpath.prependPathEntries)(pathValue,(await(0,import_lookup.getLocalBinSearch)(cwd)).directories)}}});var require_dist=__commonJS({"../../node_modules/.pnpm/@vercel+cli-exec@1.0.1/node_modules/@vercel/cli-exec/dist/index.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{VercelCliError:()=>import_errors.VercelCliError,clearVercelCliLookupCache:()=>import_lookup.clearVercelCliLookupCache,execVercelCli:()=>import_exec.execVercelCli,findVercelCli:()=>import_lookup.findVercelCli});module.exports=__toCommonJS(src_exports);var import_errors=require_errors(),import_exec=require_exec(),import_lookup=require_lookup()}});export{require_dist};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{isNativeBinaryInstall}from"./chunk-NWGBDBZI.js";import{require_lib}from"./chunk-ZHGKJCQ2.js";import{packageName}from"./chunk-B4KA3ZH2.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_fs_extra=__toESM(require_lib(),1);import{access as access2}from"fs/promises";import{basename,dirname as dirname2,join as join2,sep}from"path";import{execFile,spawnSync}from"child_process";import{win32}from"path";var SAFE_ARGUMENT=/^[\w@./:=+-]+$/,UNSAFE_EXECUTABLE_PATH=/["%!^&|<>\x00-\x1f]/;function envValue(env,name){let key=Object.keys(env).find(key2=>key2.toLowerCase()===name.toLowerCase());return key?env[key]:void 0}function packageManagerInvocation(command,args,env=process.env,platform=process.platform){if(platform!=="win32")return{file:command,args};let absolute=win32.isAbsolute(command);for(let arg of[command,...args])if(!(absolute&&arg===command?!UNSAFE_EXECUTABLE_PATH.test(arg):SAFE_ARGUMENT.test(arg)))throw new Error(`Refusing to pass ${JSON.stringify(arg)} to cmd.exe for ${command}`);let systemRoot=envValue(env,"SystemRoot");return{file:envValue(env,"ComSpec")||(systemRoot?`${systemRoot}\\System32\\cmd.exe`:"cmd.exe"),args:["/d","/s","/c",`"${[absolute?`"${command}"`:command,...args].join(" ")}"`],windowsVerbatimArguments:!0}}function execPackageManager(command,args,{cwd,env,timeout,signal},platform=process.platform){return new Promise((resolve,reject)=>{let invocation=packageManagerInvocation(command,args,env,platform),windows=platform==="win32",timer,stop=()=>stopProcessTree(child,env),child=execFile(invocation.file,invocation.args,{encoding:"utf8",windowsHide:!0,windowsVerbatimArguments:invocation.windowsVerbatimArguments,cwd,env:{...env},...windows?{}:{timeout,signal}},(error,stdout)=>{clearTimeout(timer),signal?.removeEventListener("abort",stop),error?reject(error):resolve(String(stdout))});windows&&(timer=setTimeout(stop,timeout),signal?.aborted?stop():signal?.addEventListener("abort",stop,{once:!0}))})}function stopProcessTree(child,env){if(!child?.pid)return;let systemRoot=envValue(env,"SystemRoot");spawnSync(systemRoot?`${systemRoot}\\System32\\taskkill.exe`:"taskkill.exe",["/pid",String(child.pid),"/T","/F"],{stdio:"ignore",windowsHide:!0})}import{constants}from"node:fs";import{access,stat}from"node:fs/promises";import path from"node:path";var DEFAULT_WINDOWS_EXTENSIONS=".COM;.EXE;.BAT;.CMD",WINDOWS_ABSOLUTE=/^(?:[a-zA-Z]:[\\/]|[\\/]{2}[^\\/])/;async function isExecutableFile(file){try{return(await stat(file)).isFile()?(process.platform!=="win32"&&await access(file,constants.X_OK),!0):!1}catch{return!1}}function envValue2(env,name,platform){if(platform!=="win32")return env[name];let key=Object.keys(env).find(key2=>key2.toLowerCase()===name.toLowerCase());return key?env[key]:void 0}async function findTrustedExecutable(name,env,platform=process.platform,isExecutable=isExecutableFile){let windows=platform==="win32",{delimiter,join:join3}=windows?path.win32:path.posix,isAbsolute=windows?directory=>WINDOWS_ABSOLUTE.test(directory):path.posix.isAbsolute,extensions=windows?(envValue2(env,"PATHEXT",platform)||DEFAULT_WINDOWS_EXTENSIONS).split(";").filter(Boolean):[""];for(let directory of(envValue2(env,"PATH",platform)??"").split(delimiter))if(isAbsolute(directory))for(let extension of extensions){let file=join3(directory,`${name}${extension}`);if(await isExecutable(file))return file}return null}import{lstatSync,realpathSync}from"node:fs";import{homedir,tmpdir,userInfo}from"node:os";import path2 from"node:path";var temporaryDirectories=resolveTemporaryDirectories(),fallbackPath=["/usr/local/bin","/usr/bin","/bin"].join(path2.delimiter),trustedUpgradeEnvironment=Object.freeze(withTrustedPath({...process.env}));function trustedUpgradePath(searchPath){let entries=(searchPath??"").split(path2.delimiter).filter(entry=>path2.isAbsolute(entry)&&!entry.split(path2.sep).includes("node_modules")&&!temporaryDirectories.some(base=>isWithin(base,entry)));return entries.length>0?entries.join(path2.delimiter):fallbackPath}function resolveTemporaryDirectories(){let directory=path2.resolve(tmpdir());try{return[directory,realpathSync.native(tmpdir())]}catch{return[directory]}}function isWithin(base,entry){let inside=path2.relative(base,path2.resolve(entry));return inside===""||!inside.startsWith("..")&&!path2.isAbsolute(inside)}function withTrustedPath(env){for(let key of Object.keys(env))key.toLowerCase()==="path"&&(env[key]=trustedUpgradePath(env[key]));return env}function read(directory){try{return directory()}catch{return}}var startupDirectories={temporary:read(tmpdir),runtime:process.env.XDG_RUNTIME_DIR,home:read(homedir),accountHome:()=>read(()=>userInfo().homedir)},fileSystem={realpath:realpathSync.native,stat:lstatSync},SHARED_WRITE=18;function isPrivateDirectory(directory,uid,stat2){let own=stat2(directory);if(!own.isDirectory()||own.uid!==uid)return!1;for(let current=directory;;){let{uid:owner,mode}=stat2(current);if(owner!==uid&&owner!==0||mode&SHARED_WRITE)return!1;let parent=path2.dirname(current);if(parent===current)return!0;current=parent}}function findPrivateDirectory(candidates,uid,{realpath:realpath2,stat:stat2}=fileSystem){for(let candidate of candidates)if(!(!candidate||!path2.isAbsolute(candidate)))try{let directory=realpath2(candidate);if(isPrivateDirectory(directory,uid,stat2))return directory}catch{}}function findWindowsDirectory({temporary,home},{realpath:realpath2}){let{isAbsolute,relative}=path2.win32;if(!(!home||!isAbsolute(home))){try{if(temporary&&isAbsolute(temporary)){let inside=relative(realpath2(home),realpath2(temporary));if(inside&&!inside.startsWith("..")&&!isAbsolute(inside))return temporary}}catch{}return home}}function resolveTrustedUpgradeDirectory(candidates,uid,reader=fileSystem){if(uid===void 0)return findWindowsDirectory(candidates,reader);let{temporary,runtime,home,accountHome}=candidates;return findPrivateDirectory([temporary,runtime,home],uid,reader)??findPrivateDirectory([accountHome?.()],uid,reader)}var trustedUpgradeDirectory;function getTrustedUpgradeDirectory(){return trustedUpgradeDirectory??={path:resolveTrustedUpgradeDirectory(startupDirectories,process.getuid?.())},trustedUpgradeDirectory.path}function withEnvironmentOverrides(env,overrides){let names=new Set(Object.keys(overrides).map(name=>name.toLowerCase())),result={};for(let[name,value]of Object.entries(env))names.has(name.toLowerCase())||(result[name]=value);return Object.assign(result,overrides)}import{dirname,join}from"path";var sharedEnv={COREPACK_ENABLE_PROJECT_SPEC:"0",NODE_DISABLE_COMPILE_CACHE:"1",DISABLE_V8_COMPILE_CACHE:"1"},packageManagers={npm:{metadataArgs:specifier=>["view",specifier,"version","--json","--global"],installArgs:specifier=>["i","-g",specifier],releaseAgeBypassArgs:["--min-release-age=0"],env:sharedEnv,globalDetection:{args:["root","-g"],packageDir:(root,pkg)=>join(root,pkg),installMarkers:nodeModules=>[join(nodeModules,".package-lock.json")]}},pnpm:{metadataArgs:specifier=>["view",specifier,"version","--json"],installArgs:specifier=>["i","-g",specifier],releaseAgeBypassArgs:["--config.minimumReleaseAge=0"],env:{...sharedEnv,npm_config_manage_package_manager_versions:"false",pnpm_config_pm_on_fail:"ignore"},globalDetection:{args:pkg=>["list","-g",pkg,"--depth=0","--json"],packageDir:(output,pkg)=>{try{let projects=JSON.parse(output),path3=(Array.isArray(projects)?projects[0]:projects)?.dependencies?.[pkg]?.path;return typeof path3=="string"?path3:void 0}catch{return}},installMarkers:nodeModules=>[join(nodeModules,".modules.yaml")]}},yarn:{metadataArgs:specifier=>["info",specifier.endsWith("@latest")?specifier.slice(0,-7):specifier,"version","--json"],installArgs:specifier=>["global","add",specifier],releaseAgeBypassArgs:[],env:{...sharedEnv,YARN_IGNORE_PATH:"1",SKIP_YARN_COREPACK_CHECK:"1"},globalDetection:{args:["--silent","global","dir"],packageDir:(root,pkg)=>join(root,"node_modules",pkg),installMarkers:nodeModules=>[join(nodeModules,".yarn-integrity")]}},bun:{metadataArgs:specifier=>["info",specifier,"version","--json","--global"],installArgs:specifier=>["add","-g",specifier],releaseAgeBypassArgs:[],env:sharedEnv,globalDetection:{args:["pm","bin","-g"],binaryNames:["vercel","vc"],installMarkers:nodeModules=>[join(dirname(nodeModules),"bun.lock"),join(dirname(nodeModules),"bun.lockb")]}}};function getUpgradePackageManager(name){return packageManagers[name]}var UnsupportedUpgradeInstallError=class extends Error{constructor(){super(...arguments);this.code="unsupported_install"}},HOMEBREW_UPGRADE_COMMAND="brew upgrade vercel",HomebrewInstallError=class extends UnsupportedUpgradeInstallError{constructor(){super(`This Vercel CLI was installed with Homebrew. Update it with \`${HOMEBREW_UPGRADE_COMMAND}\`.`);this.code="homebrew_install"}};async function isHomebrewInstall(){return isNativeBinaryInstall()?(await(0,import_fs_extra.realpath)(process.execPath).catch(()=>process.execPath)).includes(`${sep}Caskroom${sep}vercel${sep}`):!1}var globalCliTypes=["npm","pnpm","yarn","bun"];function requireTrustedUpgradeDirectory(){let directory=getTrustedUpgradeDirectory();if(!directory)throw new UnsupportedUpgradeInstallError("Can't run a package manager to check or update Vercel CLI. Other users can write to the temporary directory and to your home directory. Update Vercel CLI with the package manager that installed it.");return directory}async function exists(file){try{return await access2(file),!0}catch{return!1}}async function findInstallMarkers(installPaths,cliTypes=globalCliTypes){let found=[];for(let installPath of new Set(installPaths))for(let dir=dirname2(installPath);;){if(basename(dir)==="node_modules")for(let cliType of cliTypes){let{installMarkers}=getUpgradePackageManager(cliType).globalDetection;if(!found.includes(cliType)){for(let marker of installMarkers(dir))if(await exists(marker)){found.push(cliType);break}}}let parent=dirname2(dir);if(parent===dir)break;dir=parent}return found}function throwIfAborted(signal){if(signal?.aborted)throw signal.reason instanceof Error?signal.reason:new Error("Package manager detection was aborted")}async function getPackageManagerGlobalRoot(cliType,pkg,env=trustedUpgradeEnvironment,signal){try{let manager=getUpgradePackageManager(cliType),detection=manager.globalDetection,cwd=getTrustedUpgradeDirectory(),executable=await findTrustedExecutable(cliType,env);return!cwd||!executable?null:(await execPackageManager(executable,typeof detection.args=="function"?detection.args(pkg):detection.args,{cwd,env:withEnvironmentOverrides(env,manager.env),timeout:15e3,signal})).trim()||null}catch{return throwIfAborted(signal),null}}async function detectGlobalPackageManager(installPath,pkg,cliTypes=globalCliTypes,env=trustedUpgradeEnvironment,signal){for(let cliType of cliTypes){throwIfAborted(signal);let root=await getPackageManagerGlobalRoot(cliType,pkg,env,signal);if(!root)continue;let detection=getUpgradePackageManager(cliType).globalDetection;if(detection.packageDir)try{let packageDir=detection.packageDir(root,pkg);if(!packageDir)continue;let resolvedPackageDir=await(0,import_fs_extra.realpath)(packageDir);if(installPath===resolvedPackageDir||installPath.startsWith(resolvedPackageDir+sep))return cliType}catch{}for(let binary of detection.binaryNames||[])try{let target=await(0,import_fs_extra.realpath)(join2(root,binary));if(target===installPath||target.startsWith(installPath+sep)||installPath.startsWith(target+sep))return cliType;let entrypoint=await(0,import_fs_extra.realpath)(process.argv[1]);if(!isNativeBinaryInstall()&&target===entrypoint)return cliType}catch{}}return null}async function resolveInstall(env=trustedUpgradeEnvironment,signal){if(throwIfAborted(signal),await isHomebrewInstall())throw new HomebrewInstallError;let nativeExecutable=isNativeBinaryInstall()&&env.VERCEL_CLI_PACKAGE_EXECUTABLE,resolvedNativeExecutable=nativeExecutable&&await(0,import_fs_extra.realpath)(nativeExecutable).catch(()=>null),entrypoint=resolvedNativeExecutable&&resolvedNativeExecutable===await(0,import_fs_extra.realpath)(process.execPath).catch(()=>null)?env.VERCEL_CLI_PACKAGE_ENTRYPOINT:process.argv[1],installPath=entrypoint&&await(0,import_fs_extra.realpath)(entrypoint).catch(()=>null);if(!installPath)throw new UnsupportedUpgradeInstallError("Could not resolve this Vercel CLI installation. Update it with the package manager that installed it.");requireTrustedUpgradeDirectory();let marked=await findInstallMarkers([entrypoint,installPath]),packageManager=await detectGlobalPackageManager(installPath,packageName,marked.length>0?marked:globalCliTypes,env,signal);if(!packageManager)throw new UnsupportedUpgradeInstallError("Could not detect a supported global npm, pnpm, Yarn, or Bun installation of Vercel CLI. Update it with the package manager that installed it.");return{packageManager,global:!0,assumed:!1}}async function isGlobal(){if(await isHomebrewInstall())return!0;try{return await resolveInstall(),!0}catch{return!1}}async function getUpdateCommandInfo(env=trustedUpgradeEnvironment,signal){let{packageManager}=await resolveInstall(env,signal),args=getUpgradePackageManager(packageManager).installArgs(`${packageName}@latest`),allowBuild=pnpmAllowBuildFlag(packageManager,"esbuild");return{command:`${packageManager} ${args.join(" ")}${allowBuild}`,global:!0,packageManager,assumed:!1}}function pnpmAllowBuildFlag(cliType,pkg){return cliType==="pnpm"?` --allow-build=${pkg}`:""}async function getUpdateCommand(){return await isHomebrewInstall()?HOMEBREW_UPGRADE_COMMAND:(await getUpdateCommandInfo()).command}export{packageManagerInvocation,execPackageManager,findTrustedExecutable,trustedUpgradeEnvironment,withEnvironmentOverrides,getUpgradePackageManager,HOMEBREW_UPGRADE_COMMAND,isHomebrewInstall,requireTrustedUpgradeDirectory,isGlobal,getUpdateCommandInfo,getUpdateCommand};
7
+ import{isNativeBinaryInstall}from"./chunk-5F4RJ32E.js";import{require_lib}from"./chunk-HDKEES7E.js";import{packageName}from"./chunk-EFGZK6OY.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_fs_extra=__toESM(require_lib(),1);import{access as access2}from"fs/promises";import{basename,dirname as dirname2,join as join2,sep}from"path";import{execFile,spawnSync}from"child_process";import{win32}from"path";var SAFE_ARGUMENT=/^[\w@./:=+-]+$/,UNSAFE_EXECUTABLE_PATH=/["%!^&|<>\x00-\x1f]/;function envValue(env,name){let key=Object.keys(env).find(key2=>key2.toLowerCase()===name.toLowerCase());return key?env[key]:void 0}function packageManagerInvocation(command,args,env=process.env,platform=process.platform){if(platform!=="win32")return{file:command,args};let absolute=win32.isAbsolute(command);for(let arg of[command,...args])if(!(absolute&&arg===command?!UNSAFE_EXECUTABLE_PATH.test(arg):SAFE_ARGUMENT.test(arg)))throw new Error(`Refusing to pass ${JSON.stringify(arg)} to cmd.exe for ${command}`);let systemRoot=envValue(env,"SystemRoot");return{file:envValue(env,"ComSpec")||(systemRoot?`${systemRoot}\\System32\\cmd.exe`:"cmd.exe"),args:["/d","/s","/c",`"${[absolute?`"${command}"`:command,...args].join(" ")}"`],windowsVerbatimArguments:!0}}function execPackageManager(command,args,{cwd,env,timeout,signal},platform=process.platform){return new Promise((resolve,reject)=>{let invocation=packageManagerInvocation(command,args,env,platform),windows=platform==="win32",timer,stop=()=>stopProcessTree(child,env),child=execFile(invocation.file,invocation.args,{encoding:"utf8",windowsHide:!0,windowsVerbatimArguments:invocation.windowsVerbatimArguments,cwd,env:{...env},...windows?{}:{timeout,signal}},(error,stdout)=>{clearTimeout(timer),signal?.removeEventListener("abort",stop),error?reject(error):resolve(String(stdout))});windows&&(timer=setTimeout(stop,timeout),signal?.aborted?stop():signal?.addEventListener("abort",stop,{once:!0}))})}function stopProcessTree(child,env){if(!child?.pid)return;let systemRoot=envValue(env,"SystemRoot");spawnSync(systemRoot?`${systemRoot}\\System32\\taskkill.exe`:"taskkill.exe",["/pid",String(child.pid),"/T","/F"],{stdio:"ignore",windowsHide:!0})}import{constants}from"node:fs";import{access,stat}from"node:fs/promises";import path from"node:path";var DEFAULT_WINDOWS_EXTENSIONS=".COM;.EXE;.BAT;.CMD",WINDOWS_ABSOLUTE=/^(?:[a-zA-Z]:[\\/]|[\\/]{2}[^\\/])/;async function isExecutableFile(file){try{return(await stat(file)).isFile()?(process.platform!=="win32"&&await access(file,constants.X_OK),!0):!1}catch{return!1}}function envValue2(env,name,platform){if(platform!=="win32")return env[name];let key=Object.keys(env).find(key2=>key2.toLowerCase()===name.toLowerCase());return key?env[key]:void 0}async function findTrustedExecutable(name,env,platform=process.platform,isExecutable=isExecutableFile){let windows=platform==="win32",{delimiter,join:join3}=windows?path.win32:path.posix,isAbsolute=windows?directory=>WINDOWS_ABSOLUTE.test(directory):path.posix.isAbsolute,extensions=windows?(envValue2(env,"PATHEXT",platform)||DEFAULT_WINDOWS_EXTENSIONS).split(";").filter(Boolean):[""];for(let directory of(envValue2(env,"PATH",platform)??"").split(delimiter))if(isAbsolute(directory))for(let extension of extensions){let file=join3(directory,`${name}${extension}`);if(await isExecutable(file))return file}return null}import{lstatSync,realpathSync}from"node:fs";import{homedir,tmpdir,userInfo}from"node:os";import path2 from"node:path";var temporaryDirectories=resolveTemporaryDirectories(),fallbackPath=["/usr/local/bin","/usr/bin","/bin"].join(path2.delimiter),trustedUpgradeEnvironment=Object.freeze(withTrustedPath({...process.env}));function trustedUpgradePath(searchPath){let entries=(searchPath??"").split(path2.delimiter).filter(entry=>path2.isAbsolute(entry)&&!entry.split(path2.sep).includes("node_modules")&&!temporaryDirectories.some(base=>isWithin(base,entry)));return entries.length>0?entries.join(path2.delimiter):fallbackPath}function resolveTemporaryDirectories(){let directory=path2.resolve(tmpdir());try{return[directory,realpathSync.native(tmpdir())]}catch{return[directory]}}function isWithin(base,entry){let inside=path2.relative(base,path2.resolve(entry));return inside===""||!inside.startsWith("..")&&!path2.isAbsolute(inside)}function withTrustedPath(env){for(let key of Object.keys(env))key.toLowerCase()==="path"&&(env[key]=trustedUpgradePath(env[key]));return env}function read(directory){try{return directory()}catch{return}}var startupDirectories={temporary:read(tmpdir),runtime:process.env.XDG_RUNTIME_DIR,home:read(homedir),accountHome:()=>read(()=>userInfo().homedir)},fileSystem={realpath:realpathSync.native,stat:lstatSync},SHARED_WRITE=18;function isPrivateDirectory(directory,uid,stat2){let own=stat2(directory);if(!own.isDirectory()||own.uid!==uid)return!1;for(let current=directory;;){let{uid:owner,mode}=stat2(current);if(owner!==uid&&owner!==0||mode&SHARED_WRITE)return!1;let parent=path2.dirname(current);if(parent===current)return!0;current=parent}}function findPrivateDirectory(candidates,uid,{realpath:realpath2,stat:stat2}=fileSystem){for(let candidate of candidates)if(!(!candidate||!path2.isAbsolute(candidate)))try{let directory=realpath2(candidate);if(isPrivateDirectory(directory,uid,stat2))return directory}catch{}}function findWindowsDirectory({temporary,home},{realpath:realpath2}){let{isAbsolute,relative}=path2.win32;if(!(!home||!isAbsolute(home))){try{if(temporary&&isAbsolute(temporary)){let inside=relative(realpath2(home),realpath2(temporary));if(inside&&!inside.startsWith("..")&&!isAbsolute(inside))return temporary}}catch{}return home}}function resolveTrustedUpgradeDirectory(candidates,uid,reader=fileSystem){if(uid===void 0)return findWindowsDirectory(candidates,reader);let{temporary,runtime,home,accountHome}=candidates;return findPrivateDirectory([temporary,runtime,home],uid,reader)??findPrivateDirectory([accountHome?.()],uid,reader)}var trustedUpgradeDirectory;function getTrustedUpgradeDirectory(){return trustedUpgradeDirectory??={path:resolveTrustedUpgradeDirectory(startupDirectories,process.getuid?.())},trustedUpgradeDirectory.path}function withEnvironmentOverrides(env,overrides){let names=new Set(Object.keys(overrides).map(name=>name.toLowerCase())),result={};for(let[name,value]of Object.entries(env))names.has(name.toLowerCase())||(result[name]=value);return Object.assign(result,overrides)}import{dirname,join}from"path";var sharedEnv={COREPACK_ENABLE_PROJECT_SPEC:"0",NODE_DISABLE_COMPILE_CACHE:"1",DISABLE_V8_COMPILE_CACHE:"1"},packageManagers={npm:{metadataArgs:specifier=>["view",specifier,"version","--json","--global"],installArgs:specifier=>["i","-g",specifier],releaseAgeBypassArgs:["--min-release-age=0"],env:sharedEnv,globalDetection:{args:["root","-g"],packageDir:(root,pkg)=>join(root,pkg),installMarkers:nodeModules=>[join(nodeModules,".package-lock.json")]}},pnpm:{metadataArgs:specifier=>["view",specifier,"version","--json"],installArgs:specifier=>["i","-g",specifier],releaseAgeBypassArgs:["--config.minimumReleaseAge=0"],env:{...sharedEnv,npm_config_manage_package_manager_versions:"false",pnpm_config_pm_on_fail:"ignore"},globalDetection:{args:pkg=>["list","-g",pkg,"--depth=0","--json"],packageDir:(output,pkg)=>{try{let projects=JSON.parse(output),path3=(Array.isArray(projects)?projects[0]:projects)?.dependencies?.[pkg]?.path;return typeof path3=="string"?path3:void 0}catch{return}},installMarkers:nodeModules=>[join(nodeModules,".modules.yaml")]}},yarn:{metadataArgs:specifier=>["info",specifier.endsWith("@latest")?specifier.slice(0,-7):specifier,"version","--json"],installArgs:specifier=>["global","add",specifier],releaseAgeBypassArgs:[],env:{...sharedEnv,YARN_IGNORE_PATH:"1",SKIP_YARN_COREPACK_CHECK:"1"},globalDetection:{args:["--silent","global","dir"],packageDir:(root,pkg)=>join(root,"node_modules",pkg),installMarkers:nodeModules=>[join(nodeModules,".yarn-integrity")]}},bun:{metadataArgs:specifier=>["info",specifier,"version","--json","--global"],installArgs:specifier=>["add","-g",specifier],releaseAgeBypassArgs:[],env:sharedEnv,globalDetection:{args:["pm","bin","-g"],binaryNames:["vercel","vc"],installMarkers:nodeModules=>[join(dirname(nodeModules),"bun.lock"),join(dirname(nodeModules),"bun.lockb")]}}};function getUpgradePackageManager(name){return packageManagers[name]}var UnsupportedUpgradeInstallError=class extends Error{constructor(){super(...arguments);this.code="unsupported_install"}},HOMEBREW_UPGRADE_COMMAND="brew upgrade vercel",HomebrewInstallError=class extends UnsupportedUpgradeInstallError{constructor(){super(`This Vercel CLI was installed with Homebrew. Update it with \`${HOMEBREW_UPGRADE_COMMAND}\`.`);this.code="homebrew_install"}};async function isHomebrewInstall(){return isNativeBinaryInstall()?(await(0,import_fs_extra.realpath)(process.execPath).catch(()=>process.execPath)).includes(`${sep}Caskroom${sep}vercel${sep}`):!1}var globalCliTypes=["npm","pnpm","yarn","bun"];function requireTrustedUpgradeDirectory(){let directory=getTrustedUpgradeDirectory();if(!directory)throw new UnsupportedUpgradeInstallError("Can't run a package manager to check or update Vercel CLI. Other users can write to the temporary directory and to your home directory. Update Vercel CLI with the package manager that installed it.");return directory}async function exists(file){try{return await access2(file),!0}catch{return!1}}async function findInstallMarkers(installPaths,cliTypes=globalCliTypes){let found=[];for(let installPath of new Set(installPaths))for(let dir=dirname2(installPath);;){if(basename(dir)==="node_modules")for(let cliType of cliTypes){let{installMarkers}=getUpgradePackageManager(cliType).globalDetection;if(!found.includes(cliType)){for(let marker of installMarkers(dir))if(await exists(marker)){found.push(cliType);break}}}let parent=dirname2(dir);if(parent===dir)break;dir=parent}return found}function throwIfAborted(signal){if(signal?.aborted)throw signal.reason instanceof Error?signal.reason:new Error("Package manager detection was aborted")}async function getPackageManagerGlobalRoot(cliType,pkg,env=trustedUpgradeEnvironment,signal){try{let manager=getUpgradePackageManager(cliType),detection=manager.globalDetection,cwd=getTrustedUpgradeDirectory(),executable=await findTrustedExecutable(cliType,env);return!cwd||!executable?null:(await execPackageManager(executable,typeof detection.args=="function"?detection.args(pkg):detection.args,{cwd,env:withEnvironmentOverrides(env,manager.env),timeout:15e3,signal})).trim()||null}catch{return throwIfAborted(signal),null}}async function detectGlobalPackageManager(installPath,pkg,cliTypes=globalCliTypes,env=trustedUpgradeEnvironment,signal){for(let cliType of cliTypes){throwIfAborted(signal);let root=await getPackageManagerGlobalRoot(cliType,pkg,env,signal);if(!root)continue;let detection=getUpgradePackageManager(cliType).globalDetection;if(detection.packageDir)try{let packageDir=detection.packageDir(root,pkg);if(!packageDir)continue;let resolvedPackageDir=await(0,import_fs_extra.realpath)(packageDir);if(installPath===resolvedPackageDir||installPath.startsWith(resolvedPackageDir+sep))return cliType}catch{}for(let binary of detection.binaryNames||[])try{let target=await(0,import_fs_extra.realpath)(join2(root,binary));if(target===installPath||target.startsWith(installPath+sep)||installPath.startsWith(target+sep))return cliType;let entrypoint=await(0,import_fs_extra.realpath)(process.argv[1]);if(!isNativeBinaryInstall()&&target===entrypoint)return cliType}catch{}}return null}async function resolveInstall(env=trustedUpgradeEnvironment,signal){if(throwIfAborted(signal),await isHomebrewInstall())throw new HomebrewInstallError;let nativeExecutable=isNativeBinaryInstall()&&env.VERCEL_CLI_PACKAGE_EXECUTABLE,resolvedNativeExecutable=nativeExecutable&&await(0,import_fs_extra.realpath)(nativeExecutable).catch(()=>null),entrypoint=resolvedNativeExecutable&&resolvedNativeExecutable===await(0,import_fs_extra.realpath)(process.execPath).catch(()=>null)?env.VERCEL_CLI_PACKAGE_ENTRYPOINT:process.argv[1],installPath=entrypoint&&await(0,import_fs_extra.realpath)(entrypoint).catch(()=>null);if(!installPath)throw new UnsupportedUpgradeInstallError("Could not resolve this Vercel CLI installation. Update it with the package manager that installed it.");requireTrustedUpgradeDirectory();let marked=await findInstallMarkers([entrypoint,installPath]),packageManager=await detectGlobalPackageManager(installPath,packageName,marked.length>0?marked:globalCliTypes,env,signal);if(!packageManager)throw new UnsupportedUpgradeInstallError("Could not detect a supported global npm, pnpm, Yarn, or Bun installation of Vercel CLI. Update it with the package manager that installed it.");return{packageManager,global:!0,assumed:!1}}async function isGlobal(){if(await isHomebrewInstall())return!0;try{return await resolveInstall(),!0}catch{return!1}}async function getUpdateCommandInfo(env=trustedUpgradeEnvironment,signal){let{packageManager}=await resolveInstall(env,signal),args=getUpgradePackageManager(packageManager).installArgs(`${packageName}@latest`),allowBuild=pnpmAllowBuildFlag(packageManager,"esbuild");return{command:`${packageManager} ${args.join(" ")}${allowBuild}`,global:!0,packageManager,assumed:!1}}function pnpmAllowBuildFlag(cliType,pkg){return cliType==="pnpm"?` --allow-build=${pkg}`:""}async function getUpdateCommand(){return await isHomebrewInstall()?HOMEBREW_UPGRADE_COMMAND:(await getUpdateCommandInfo()).command}export{packageManagerInvocation,execPackageManager,findTrustedExecutable,trustedUpgradeEnvironment,withEnvironmentOverrides,getUpgradePackageManager,HOMEBREW_UPGRADE_COMMAND,isHomebrewInstall,requireTrustedUpgradeDirectory,isGlobal,getUpdateCommandInfo,getUpdateCommand};
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{Separator}from"./chunk-27FVSW45.js";import{isAPIError}from"./chunk-QFE3RPMA.js";import{eraseLines,link_default,output_manager_default}from"./chunk-RYSO5U3E.js";import{require_source}from"./chunk-NB2WLB3J.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);import{URL}from"url";var import_strip_ansi=__toESM(require_strip_ansi(),1);function getLength(input){let biggestLength=0;for(let line of input.split(`
7
+ import{Separator}from"./chunk-N7IBUNFY.js";import{isAPIError}from"./chunk-MTPHHAPR.js";import{eraseLines,link_default,output_manager_default}from"./chunk-RIXTYUYN.js";import{require_source}from"./chunk-UJ7YUIEJ.js";import{require_strip_ansi}from"./chunk-LPYHYTYI.js";import{__toESM}from"./chunk-NBPLUP7C.js";var import_chalk=__toESM(require_source(),1);import{URL}from"url";var import_strip_ansi=__toESM(require_strip_ansi(),1);function getLength(input){let biggestLength=0;for(let line of input.split(`
8
8
  `)){let str=(0,import_strip_ansi.default)(line);str.length>biggestLength&&(biggestLength=str.length)}return biggestLength}async function list(client,{message="the question",choices:_choices=[{name:`something
9
9
  description
10
10
  details
@@ -0,0 +1,20 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import{i,s as s2}from"./chunk-NXUDP37D.js";import{c,f,l,m,s}from"./chunk-YBWLW6SW.js";import n from"node:process";import r from"node:os";import i2 from"node:tty";function a(){let e=new Map;for(let[t,n2]of Object.entries(u)){for(let[t2,r2]of Object.entries(n2))u[t2]={open:`\x1B[${r2[0]}m`,close:`\x1B[${r2[1]}m`},n2[t2]=u[t2],e.set(r2[0],r2[1]);Object.defineProperty(u,t,{value:n2,enumerable:!1})}return Object.defineProperty(u,"codes",{value:e,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",u.color.ansi=s3(),u.color.ansi256=c2(),u.color.ansi16m=l2(),u.bgColor.ansi=s3(o),u.bgColor.ansi256=c2(o),u.bgColor.ansi16m=l2(o),Object.defineProperties(u,{rgbToAnsi256:{value(e2,t,n2){return e2===t&&t===n2?e2<8?16:e2>248?231:Math.round((e2-8)/247*24)+232:16+36*Math.round(e2/255*5)+6*Math.round(t/255*5)+Math.round(n2/255*5)},enumerable:!1},hexToRgb:{value(e2){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e2.toString(16));if(!t)return[0,0,0];let[n2]=t;n2.length===3&&(n2=[...n2].map(e3=>e3+e3).join(""));let r2=Number.parseInt(n2,16);return[r2>>16&255,r2>>8&255,r2&255]},enumerable:!1},hexToAnsi256:{value:e2=>u.rgbToAnsi256(...u.hexToRgb(e2)),enumerable:!1},ansi256ToAnsi:{value(e2){if(e2<8)return 30+e2;if(e2<16)return 90+(e2-8);let t,n2,r2;if(e2>=232)t=((e2-232)*10+8)/255,n2=t,r2=t;else{e2-=16;let i4=e2%36;t=Math.floor(e2/36)/5,n2=Math.floor(i4/6)/5,r2=i4%6/5}let i3=Math.max(t,n2,r2)*2;if(i3===0)return 30;let a2=30+(Math.round(r2)<<2|Math.round(n2)<<1|Math.round(t));return i3===2&&(a2+=60),a2},enumerable:!1},rgbToAnsi:{value:(e2,t,n2)=>u.ansi256ToAnsi(u.rgbToAnsi256(e2,t,n2)),enumerable:!1},hexToAnsi:{value:e2=>u.ansi256ToAnsi(u.hexToAnsi256(e2)),enumerable:!1}}),u}var o,s3,c2,l2,u,d,f2,p,m2,h,g,_=s(()=>{o=10,s3=(e=0)=>t=>`\x1B[${t+e}m`,c2=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,l2=(e=0)=>(t,n2,r2)=>`\x1B[${38+e};2;${t};${n2};${r2}m`,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},d=Object.keys(u.modifier),f2=Object.keys(u.color),p=Object.keys(u.bgColor),m2=[...f2,...p],h=a(),g=h});function v(e,t=globalThis.Deno?globalThis.Deno.args:n.argv){let r2=e.startsWith("-")?"":e.length===1?"-":"--",i3=t.indexOf(r2+e),a2=t.indexOf("--");return i3!==-1&&(a2===-1||i3<a2)}function y(){if("FORCE_COLOR"in C)return C.FORCE_COLOR==="true"?1:C.FORCE_COLOR==="false"?0:C.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)}function b(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function x(e,{streamIsTTY:t,sniffFlags:i3=!0}={}){let a2=y();a2!==void 0&&(w=a2);let o2=i3?w:a2;if(o2===0)return 0;if(i3){if(v("color=16m")||v("color=full")||v("color=truecolor"))return 3;if(v("color=256"))return 2}if("TF_BUILD"in C&&"AGENT_NAME"in C)return 1;if(e&&!t&&o2===void 0)return 0;let s5=o2||0;if(C.TERM==="dumb")return s5;if(n.platform==="win32"){let e2=r.release().split(".");return Number(e2[0])>=10&&Number(e2[2])>=10586?Number(e2[2])>=14931?3:2:1}if("CI"in C)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e2=>e2 in C)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e2=>e2 in C)||C.CI_NAME==="codeship"?1:s5;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor"||C.TERM==="xterm-kitty"||C.TERM==="xterm-ghostty"||C.TERM==="wezterm")return 3;if("TERM_PROGRAM"in C){let e2=Number.parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return e2>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:s5}function S(e,t={}){return b(x(e,{streamIsTTY:e&&e.isTTY,...t}))}var C,w,T,E,D=s(()=>{({env:C}=n),v("no-color")||v("no-colors")||v("color=false")||v("color=never")?w=0:(v("color")||v("colors")||v("color=true")||v("color=always"))&&(w=1),T={stdout:S({isTTY:i2.isatty(1)}),stderr:S({isTTY:i2.isatty(2)})},E=T});function O(e,t,n2){let r2=e.indexOf(t);if(r2===-1)return e;let i3=t.length,a2=0,o2="";do o2+=e.slice(a2,r2)+t+n2,a2=r2+i3,r2=e.indexOf(t,a2);while(r2!==-1);return o2+=e.slice(a2),o2}function k(e,t,n2,r2){let i3=0,a2="";do{let o2=e[r2-1]==="\r";a2+=e.slice(i3,o2?r2-1:r2)+t+(o2?`\r
8
+ `:`
9
+ `)+n2,i3=r2+1,r2=e.indexOf(`
10
+ `,i3)}while(r2!==-1);return a2+=e.slice(i3),a2}var A=s(()=>{}),j=l({Chalk:()=>V,backgroundColorNames:()=>p,backgroundColors:()=>p,chalkStderr:()=>Y,colorNames:()=>m2,colors:()=>m2,default:()=>X,foregroundColorNames:()=>f2,foregroundColors:()=>f2,modifierNames:()=>d,modifiers:()=>d,supportsColor:()=>N,supportsColorStderr:()=>P});function M(e){return H(e)}var N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,Y,X,Z=s(()=>{_(),D(),A(),{stdout:N,stderr:P}=E,F=Symbol("GENERATOR"),I=Symbol("STYLER"),L=Symbol("IS_EMPTY"),R=["ansi","ansi","ansi256","ansi16m"],z=Object.create(null),B=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n2=N?N.level:0;e.level=t.level===void 0?n2:t.level},V=class{constructor(e){return H(e)}},H=e=>{let t=(...e2)=>e2.join(" ");return B(t,e),Object.setPrototypeOf(t,M.prototype),t},Object.setPrototypeOf(M.prototype,Function.prototype);for(let[e,t]of Object.entries(g))z[e]={get(){let n2=K(this,G(t.open,t.close,this[I]),this[L]);return Object.defineProperty(this,e,{value:n2}),n2}};z.visible={get(){let e=K(this,this[I],!0);return Object.defineProperty(this,"visible",{value:e}),e}},U=(e,t,n2,...r2)=>e==="rgb"?t==="ansi16m"?g[n2].ansi16m(...r2):t==="ansi256"?g[n2].ansi256(g.rgbToAnsi256(...r2)):g[n2].ansi(g.rgbToAnsi(...r2)):e==="hex"?U("rgb",t,n2,...g.hexToRgb(...r2)):g[n2][e](...r2);for(let e of["rgb","hex","ansi256"]){z[e]={get(){let{level:t2}=this;return function(...n2){let r2=G(U(e,R[t2],"color",...n2),g.color.close,this[I]);return K(this,r2,this[L])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);z[t]={get(){let{level:t2}=this;return function(...n2){let r2=G(U(e,R[t2],"bgColor",...n2),g.bgColor.close,this[I]);return K(this,r2,this[L])}}}}W=Object.defineProperties(()=>{},{...z,level:{enumerable:!0,get(){return this[F].level},set(e){this[F].level=e}}}),G=(e,t,n2)=>{let r2,i3;return n2===void 0?(r2=e,i3=t):(r2=n2.openAll+e,i3=t+n2.closeAll),{open:e,close:t,openAll:r2,closeAll:i3,parent:n2}},K=(e,t,n2)=>{let r2=(...e2)=>q(r2,e2.length===1?""+e2[0]:e2.join(" "));return Object.setPrototypeOf(r2,W),r2[F]=e,r2[I]=t,r2[L]=n2,r2},q=(e,t)=>{if(e.level<=0||!t)return e[L]?"":t;let n2=e[I];if(n2===void 0)return t;let{openAll:r2,closeAll:i3}=n2;if(t.includes("\x1B"))for(;n2!==void 0;)t=O(t,n2.close,n2.open),n2=n2.parent;let a2=t.indexOf(`
11
+ `);return a2!==-1&&(t=k(t,i3,r2,a2)),r2+t+i3},Object.defineProperties(M.prototype,z),J=M(),Y=M({level:P?P.level:0}),X=J});var s4=c((e,t)=>{(function(){function e2(t2,n3,i3){if(!t2)return null;e2.caseSensitive||(t2=t2.toLowerCase());var a2=e2.threshold===null?null:e2.threshold*t2.length,o2=e2.thresholdAbsolute,s5=a2!==null&&o2!==null?Math.min(a2,o2):a2===null?o2===null?null:o2:a2,c4,l4,u3,d3,f4,p3=n3.length;for(f4=0;f4<p3;f4++)if(l4=n3[f4],i3&&(l4=l4[i3]),l4&&(u3=e2.caseSensitive?l4:l4.toLowerCase(),d3=r2(t2,u3,s5),(s5===null||d3<s5)&&(s5=d3,c4=i3&&e2.returnWinningObject?n3[f4]:l4,e2.returnFirstMatch)))return c4;return c4||e2.nullResultValue}e2.threshold=.4,e2.thresholdAbsolute=20,e2.caseSensitive=!1,e2.nullResultValue=null,e2.returnWinningObject=null,e2.returnFirstMatch=!1,t!==void 0&&t.exports?t.exports=e2:window.didYouMean=e2;var n2=2**32-1;function r2(e3,t2,r3){r3=r3||r3===0?r3:n2;var i3=e3.length,a2=t2.length;if(i3===0)return Math.min(r3+1,a2);if(a2===0)return Math.min(r3+1,i3);if(Math.abs(i3-a2)>r3)return r3+1;var o2=[],s5,c4,l4,u3,d3;for(s5=0;s5<=a2;s5++)o2[s5]=[s5];for(c4=0;c4<=i3;c4++)o2[0][c4]=c4;for(s5=1;s5<=a2;s5++){for(l4=n2,u3=1,s5>r3&&(u3=s5-r3),d3=a2+1,d3>r3+s5&&(d3=r3+s5),c4=1;c4<=i3;c4++)c4<u3||c4>d3?o2[s5][c4]=r3+1:t2.charAt(s5-1)===e3.charAt(c4-1)?o2[s5][c4]=o2[s5-1][c4-1]:o2[s5][c4]=Math.min(o2[s5-1][c4-1]+1,Math.min(o2[s5][c4-1]+1,o2[s5-1][c4]+1)),o2[s5][c4]<l4&&(l4=o2[s5][c4]);if(l4>r3)return r3+1}return o2[a2][i3]}})()}),c3=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ok=t,e.err=n2,e.isOk=r2,e.isErr=i3,e.safeAsync=a2;function t(e2){return{_tag:"ok",value:e2}}function n2(e2){return{_tag:"error",error:e2}}function r2(e2){return e2._tag==="ok"}function i3(e2){return e2._tag==="error"}async function a2(e2){try{return t(await e2)}catch(e3){return n2(e3)}}}),l3=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Exit=void 0;let a2=n2((Z(),f(j)));t.Exit=class{constructor(e){this.config=e}run(){this.output()(this.config.message),process.exit(this.config.exitCode)}dryRun(){let{into:e,message:t2,exitCode:n3}=this.config;return`${t2}
12
+
13
+ ${a2.default.dim(`process exited with status ${n3} (${e})`)}`}output(){return this.config.into==="stderr"?console.error:console.log}}}),u2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.findOption=t;function t(e2,t2){let n2=[];for(let r2 of e2){if(r2.type==="longOption"&&t2.longNames.includes(r2.key)){n2.push(r2);continue}if(r2.type==="shortOptions"&&t2.shortNames.length)for(let e3 of r2.options)t2.shortNames.includes(e3.key)&&n2.push(e3)}return n2}}),d2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.identity=t;function t(){return{async from(e2){return e2}}}}),f3=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0,e.typeDef=n2,e.fromFn=r2,e.extendType=i3;var t=d2();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return t.identity}});function n2(e2){return typeof e2=="function"?{}:e2}function r2(e2){return typeof e2=="function"?e2:e2.from}function i3(e2,t2){let{defaultValue:i4,onMissing:a2,from:o2,...s5}=e2,c4=n2(t2),l4=r2(t2);return{...s5,...c4,async from(t3){return await l4(await e2.from(t3))}}}}),p2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=e.string=e.number=void 0,e.optional=n2,e.array=r2;let t=f3();e.number={async from(e2){let t2=Number.parseFloat(e2);if(Number.isNaN(t2))throw Error("Not a number");return t2},displayName:"number",description:"a number"},e.string={...(0,t.identity)(),description:"a string",displayName:"str"},e.boolean={...(0,t.identity)(),description:"a boolean",displayName:"true/false",defaultValue(){return!1}};function n2(e2){return{...e2,defaultValue(){}}}function r2(e2){return{...e2,async from(t2){return Promise.all(t2.map(t3=>e2.from(t3)))}}}}),m3=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=void 0,t.fullFlag=_3,t.flag=v3;let l4=s5((Z(),f(j))),d3=o2(c3()),m4=u2(),h3=f3(),g3=p2();t.boolean={async from(e){if(e==="true")return!0;if(e==="false")return!1;throw Error(`expected value to be either "true" or "false". got: "${e}"`)},displayName:"true/false",defaultValue:()=>!1};function _3(e){let n3=(0,h3.extendType)(t.boolean,e.type);return{description:e.description??e.type.description,helpTopics(){let t2=`--${e.long}`;e.short&&(t2+=`, -${e.short}`);let n4=[];if(e.env){let t3=process.env[e.env]===void 0?"":`=${l4.default.italic(process.env[e.env])}`;n4.push(`env: ${e.env}${t3}`)}if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?n4.push(`default: ${l4.default.italic(t3)}`):n4.push("optional")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?n4.push(`default: ${l4.default.italic(t3)}`):n4.push("optional")}catch{}else(e.onMissing||e.type.onMissing)&&n4.push("optional");return[{category:"flags",usage:t2,defaults:n4,description:e.description??e.type.description??"self explanatory"}]},register(t2){t2.forceFlagLongNames.add(e.long),e.short&&t2.forceFlagShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:r2}){let i3=(0,m4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!r2.has(e2));if(i3.forEach(e2=>r2.add(e2)),i3.length>1)return d3.err({errors:[{nodes:i3,message:`Expected 1 occurence, got ${i3.length}`}]});let a3=e.env?process.env[e.env]:void 0,o3=e.onMissing||e.type.onMissing,s6,c4="";if(i3.length===0&&a3!==void 0)s6=a3,c4=`env[${l4.default.italic(e.env)}]: `;else if(i3.length===0&&e.defaultValue)try{let t3=e.defaultValue();return d3.ok(t3)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===0&&o3)try{let e2=await o3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===0&&e.type.defaultValue)try{let t3=e.type.defaultValue();return d3.ok(t3)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{message:n4,nodes:[]}]})}else if(i3.length===1)s6=i3[0].value?.node.raw??"true";else return d3.err({errors:[{nodes:[],message:`No value provided for --${e.long}`}]});let u3=await d3.safeAsync(n3.from(s6));return d3.isErr(u3)?d3.err({errors:[{nodes:i3,message:c4+u3.error.message}]}):u3}}}function v3(e){return _3({type:g3.boolean,...e})}}),h2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.versionFlag=e.helpFlag=void 0,e.handleCircuitBreaker=u3,e.createCircuitBreaker=d3;let i3=r2(c3()),a2=l3(),o2=m3(),s5=p2();e.helpFlag=(0,o2.flag)({long:"help",short:"h",type:s5.boolean,description:"show help"}),e.versionFlag=(0,o2.flag)({long:"version",short:"v",type:s5.boolean,description:"print the version"});function u3(e2,t2,n3){if(!i3.isErr(n3)){if(n3.value==="help"){let n4=t2.printHelp(e2);throw new a2.Exit({exitCode:0,message:n4,into:"stdout"})}if(n3.value==="version"){let e3=t2.version||"0.0.0";throw new a2.Exit({exitCode:0,message:e3,into:"stdout"})}}}function d3(t2){return{register(n3){e.helpFlag.register(n3),t2&&e.versionFlag.register(n3)},helpTopics(){let n3=e.helpFlag.helpTopics();return t2&&n3.push(...e.versionFlag.helpTopics()),n3},async parse(n3){let r3=await e.helpFlag.parse(n3),a3=t2?await e.versionFlag.parse(n3):void 0;if(i3.isErr(r3)||a3&&i3.isErr(a3)){let e2=i3.isErr(r3)?r3.error.errors:[],t3=a3&&i3.isErr(a3)?a3.error.errors:[];return i3.err({errors:[...e2,...t3]})}return r3.value?i3.ok("help"):a3?.value?i3.ok("version"):i3.err({errors:[{nodes:[],message:"Neither help nor version"}]})}}}}),g2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.padNoAnsi=i3,t.groupBy=s5,t.entries=c4,t.enumerate=l4,t.flatMap=u3,t.flatten=d3;let r2=n2((s2(),f(i)));function i3(e,t2,n3){let i4=(0,r2.default)(e);if(t2<i4.length)return e;let a2=Array(t2-i4.length+1).join(" ");return n3==="end"?e+a2:a2+e}function s5(e,t2){let n3={};for(let r3 of e){let e2=t2(r3);n3[e2]=n3[e2]??[],n3[e2].push(r3)}return n3}function c4(e){return Object.entries(e)}function*l4(e){for(let t2=0;t2<e.length;t2++)yield[t2,e[t2]]}function u3(e,t2){let n3=[];for(let r3 of e)n3.push(...t2(r3));return n3}function d3(e){let t2=[];for(let n3 of e)t2.push(...n3);return t2}}),_2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHelpFormatter=void 0,t.setDefaultHelpFormatter=c4,t.resetHelpFormatter=l4,t.getHelpFormatter=u3;let a2=n2((Z(),f(j))),o2=g2(),s5=null;function c4(e){s5=e}function l4(){s5=null}function u3(){return s5??t.defaultHelpFormatter}t.defaultHelpFormatter={formatCommand(e,t2){let n3=[],r2=e.path.length>0?e.path.join(" "):e.name;r2=a2.default.bold(r2),e.version&&(r2+=` ${a2.default.dim(e.version)}`),n3.push(r2),e.description&&n3.push(a2.default.dim("> ")+e.description);let i3=(0,o2.groupBy)(e.helpTopics,e2=>e2.category);for(let[e2,t3]of(0,o2.entries)(i3)){n3.push(""),n3.push(`${e2.toUpperCase()}:`);let r3=t3.reduce((e3,t4)=>Math.max(e3,t4.usage.length),0);for(let e3 of t3){let t4="";t4+=` ${(0,o2.padNoAnsi)(e3.usage,r3,"end")}`,t4+=" - ",t4+=e3.description;for(let n4 of e3.defaults)t4+=a2.default.dim(` [${n4}]`);n3.push(t4)}}if(e.examples&&e.examples.length>0){n3.push(""),n3.push("EXAMPLES:");for(let t3 of e.examples)n3.push(""),n3.push(` ${t3.description}`),n3.push(a2.default.dim(` $ ${t3.command}`))}return n3.join(`
14
+ `)},formatSubcommands(e,t2){let n3=[],r2=e.path.length>0?e.path.join(" "):e.name;n3.push(a2.default.bold(r2+a2.default.italic(" <subcommand>"))),e.description&&n3.push(a2.default.dim("> ")+e.description),n3.push(""),n3.push(`where ${a2.default.italic("<subcommand>")} can be one of:`),n3.push("");for(let t3 of e.commands){let e2=t3.description??"";if(e2=e2&&` - ${e2} `,t3.aliases?.length){let n4=t3.aliases.length===1?"alias":"aliases",r4=t3.aliases.join(", ");e2+=a2.default.dim(`[${n4}: ${r4}]`)}let r3=a2.default.dim("- ")+t3.name+e2;n3.push(r3.trim())}let i3=a2.default.yellow(`${r2} <subcommand> --help`);if(n3.push(""),n3.push(a2.default.dim(`For more help, try running \`${i3}\``)),e.examples&&e.examples.length>0){n3.push(""),n3.push("EXAMPLES:");for(let t3 of e.examples)n3.push(""),n3.push(` ${t3.description}`),n3.push(a2.default.dim(` $ ${t3.command}`))}return n3.join(`
15
+ `)}}}),v2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.positional=m4;let l4=s5((Z(),f(j))),u3=o2(c3()),d3=p2();function f4(e){let t2=e.displayName??e.type.displayName??"arg";return{description:e.description??e.type.description,helpTopics(){let n3=[],r2=e.defaultValue??e.type.defaultValue;if(r2)try{let t3=r2();e.defaultValueIsSerializable??e.type.defaultValueIsSerializable?n3.push(`default: ${l4.default.italic(t3)}`):n3.push("optional")}catch{}return[{category:"arguments",usage:n3.length>0?`[${t2}]`:`<${t2}>`,description:e.description??e.type.description??"self explanatory",defaults:n3}]},register(e2){},async parse({nodes:n3,visitedNodes:r2}){let i3=n3.filter(e2=>e2.type==="positionalArgument"&&!r2.has(e2)),a3=e.defaultValue??e.type.defaultValue,o3=i3[0];if(!o3)return a3?u3.ok(a3()):u3.err({errors:[{nodes:[],message:`No value provided for ${t2}`}]});r2.add(o3);let s6=await u3.safeAsync(e.type.from(o3.raw));return u3.isErr(s6)?u3.err({errors:[{nodes:[o3],message:s6.error.message}]}):u3.ok(s6.value)}}}function m4(e){return f4({type:d3.string,...e})}}),y2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),l4=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subcommands=y3;let u3=l4((Z(),f(j))),d3=l4(s4()),f4=o2(c3()),p3=h2(),m4=_2(),g3=v2();function y3(e){let t2=(0,p3.createCircuitBreaker)(!!e.version),n3=(0,g3.positional)({displayName:"subcommand",description:`one of ${Object.keys(e.cmds).join(", ")}`,type:{async from(t3){let n4=Object.entries(e.cmds).map(([e2,t4])=>({cmdName:e2,names:[e2,...t4.aliases??[]]})),r3=n4.find(e2=>e2.names.includes(t3));if(r3)return r3.cmdName;let i3="Not a valid subcommand name",a3=(0,d3.default)(t3,b3(n4,e2=>e2.names));if(a3){let e2=Array.isArray(a3)?a3[0]:a3;i3+=`
16
+ Did you mean ${u3.default.italic(e2)}?`}throw Error(i3)}}});function r2(t3){t3.hotPath?.length===0&&t3.hotPath.push(e.name),t3.nodes.some(e2=>!t3.visitedNodes.has(e2))||t3.nodes.push({type:"longOption",index:0,key:"help",raw:"--help"})}return{version:e.version,description:e.description,name:e.name,handler:t3=>e.cmds[t3.command].handler(t3.args),register(n4){for(let t3 of Object.values(e.cmds))t3.register(n4);t2.register(n4)},printHelp(t3){let n4={name:e.name,path:t3.hotPath??[e.name],version:e.version,description:e.description,commands:Object.entries(e.cmds).map(([e2,t4])=>({name:e2,description:t4.description,aliases:t4.aliases,helpTopics:t4.helpTopics?.call(t4)??[]})),examples:e.examples};return(0,m4.getHelpFormatter)().formatSubcommands(n4,t3)},async parse(t3){var i3;r2(t3);let a3=await n3.parse(t3);if(f4.isErr(a3))return f4.err({errors:a3.error.errors,partialValue:{}});(i3=t3.hotPath)==null||i3.push(a3.value);let o3=await e.cmds[a3.value].parse(t3);return f4.isErr(o3)?f4.err({errors:o3.error.errors,partialValue:{command:a3.value,args:o3.error.partialValue}}):f4.ok({args:o3.value,command:a3.value})},async run(i3){var a3;r2(i3);let o3=await n3.parse(i3);if(f4.isErr(o3)){let e2=await t2.parse(i3);return(0,p3.handleCircuitBreaker)(i3,this,e2),f4.err({...o3.error,partialValue:{}})}(a3=i3.hotPath)==null||a3.push(o3.value);let s5=await e.cmds[o3.value].run(i3);return f4.isOk(s5)?f4.ok({command:o3.value,value:s5.value}):f4.err({...s5.error,partialValue:{command:o3.value,value:s5.error.partialValue}})}}}function b3(e,t2){let n3=[];for(let r2 of e)n3.push(...t2(r2));return n3}}),b2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.binary=t;function t(e2){return{...e2,run(t2){var n2;let r2=e2.name||t2.nodes[1].raw;return(n2=t2.hotPath)==null||n2.push(r2),t2.nodes.splice(0,1),t2.nodes[0].raw=r2,t2.visitedNodes.add(t2.nodes[0]),e2.run(t2)}}}}),x2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.command=l4;let i3=r2(c3()),a2=h2(),o2=_2(),s5=g2();function l4(e2){let t2=(0,s5.entries)(e2.args),n3=(0,a2.createCircuitBreaker)(!!e2.version);return{name:e2.name,aliases:e2.aliases,handler:e2.handler,description:e2.description,version:e2.version,helpTopics(){return(0,s5.flatMap)(Object.values(e2.args).concat([n3]),e3=>e3.helpTopics?.call(e3)??[])},printHelp(t3){let n4={name:e2.name,path:t3.hotPath??[e2.name],version:e2.version,description:e2.description,aliases:e2.aliases,helpTopics:this.helpTopics(),examples:e2.examples};return(0,o2.getHelpFormatter)().formatCommand(n4,t3)},register(e3){var n4;for(let[,r3]of t2)(n4=r3.register)==null||n4.call(r3,e3)},async parse(n4){n4.hotPath?.length===0&&n4.hotPath.push(e2.name);let r3={},a3=[];for(let[e3,o4]of t2){let t3=await o4.parse(n4);i3.isErr(t3)?a3.push(...t3.error.errors):r3[e3]=t3.value}let o3=[];for(let e3 of n4.nodes)if(!n4.visitedNodes.has(e3)&&e3.type!=="forcePositional")if(e3.type==="shortOptions")for(let t3 of e3.options)n4.visitedNodes.has(t3)||o3.push(t3);else o3.push(e3);return o3.length>0&&a3.push({message:"Unknown arguments",nodes:o3}),a3.length>0?i3.err({errors:a3,partialValue:r3}):i3.ok(r3)},async run(e3){let t3=await n3.parse(e3);(0,a2.handleCircuitBreaker)(e3,this,t3);let r3=await this.parse(e3);return i3.isErr(r3)?i3.err(r3.error):i3.ok(await this.handler(r3.value))}}}}),S2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.option=g3;let l4=s5((Z(),f(j))),d3=o2(c3()),f4=u2(),m4=p2();function h3(e){return{description:e.description??e.type.description,helpTopics(){let t2=e.type.displayName??"value",n3=`--${e.long}`;e.short&&(n3+=`, -${e.short}`),n3+=` <${t2}>`;let r2=[];if(e.env){let t3=process.env[e.env]===void 0?"":`=${l4.default.italic(process.env[e.env])}`;r2.push(`env: ${e.env}${t3}`)}if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("optional")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("optional")}catch{}else(e.onMissing||e.type.onMissing)&&r2.push("optional");return[{category:"options",usage:n3,defaults:r2,description:e.description??e.type.description??"self explanatory"}]},register(t2){t2.forceOptionLongNames.add(e.long),e.short&&t2.forceOptionShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:n3}){let r2=(0,f4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!n3.has(e2));if(r2.forEach(e2=>n3.add(e2)),r2.length>1){let e2={message:`Too many times provided. Expected 1, got: ${r2.length}`,nodes:r2};return d3.err({errors:[e2]})}let i3=e.env?process.env[e.env]:void 0,a3=e.defaultValue||e.type.defaultValue,o3=e.onMissing||e.type.onMissing,s6=r2[0],c4,u3="";if(s6?.value)c4=s6.value.node.raw;else if(i3!==void 0)c4=i3,u3=`env[${l4.default.italic(e.env)}]: `;else if(a3)try{let e2=a3();return d3.ok(e2)}catch(t3){let n4=`Default value not found for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else if(o3)try{let e2=await o3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else{let t3=s6?.type==="shortOption"?`-${s6?.key}`:`--${e.long}`;return d3.err({errors:[{nodes:r2,message:`No value provided for ${t3}`}]})}let p3=await d3.safeAsync(e.type.from(c4));return d3.isErr(p3)?d3.err({errors:[{nodes:r2,message:u3+p3.error.message}]}):d3.ok(p3.value)}}}function g3(e){return h3({type:m4.string,...e})}}),C2=c(t=>{var n2=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.errorBox=d3;let s5=n2((Z(),f(j))),c4=n2((s2(),f(i))),l4=g2();function u3(e,t2){let n3=[],r2;function i3(){r2===void 0&&(r2=(0,c4.default)(n3.join(" ")).length)}if(t2.nodes.length!==0)return e.forEach(e2=>{if(t2.nodes.includes(e2))return i3(),n3.push(s5.default.red(e2.raw));if(e2.type==="shortOptions"){let r3=!1,a2="";for(let n4 of e2.options)t2.nodes.includes(n4)?(a2+=s5.default.red(n4.raw),r3=!0):a2+=s5.default.dim(n4.raw);let o2=r3?s5.default.red("-"):s5.default.dim("-");return r3&&i3(),n3.push(o2+a2)}return n3.push(s5.default.dim(e2.raw))}),{colorized:n3.join(" "),errorIndex:r2??0}}function d3(e,t2,n3){let r2=[],i3=[];for(let n4 of t2){let t3=u3(e,n4);r2.push({message:n4.message,highlighted:t3})}let a2=1,o2=String(r2.length).length;i3.push(`${s5.default.red.bold("error: ")}found ${s5.default.yellow(r2.length)} error${r2.length>1?"s":""}`),i3.push(""),r2.filter(e2=>e2.highlighted).forEach(e2=>{if(!e2.highlighted)throw Error("WELP");let t3="".padStart(e2.highlighted.errorIndex);i3.push(` ${e2.highlighted.colorized}`);for(let[n4,r3]of(0,l4.enumerate)(e2.message.split(`
17
+ `))){let e3=n4===0?s5.default.bold("^"):" ",a3=s5.default.red(` ${t3} ${e3} ${r3}`);i3.push(a3)}i3.push(""),a2++});let c5=r2.filter(e2=>!e2.highlighted);a2>1&&(c5.length===1?i3.push("Along with the following error:"):c5.length>1&&i3.push("Along with the following errors:")),c5.forEach(({message:e2})=>{let t3=s5.default.red.bold(`${(0,l4.padNoAnsi)(a2.toString(),o2,"start")}.`),n4=e2.split(`
18
+ `);i3.push(` ${t3} ${s5.default.red(n4[0]??"")}`);for(let e3 of n4.slice(1))i3.push(` ${"".padStart(o2+1)} ${s5.default.red(e3)}`);a2++});let d4=s5.default.yellow(`${n3.join(" ")} --help`);return i3.push(""),i3.push(`${s5.default.red.bold("hint: ")}for more information, try '${d4}'`),i3.join(`
19
+ `)}}),w2=c(e=>{var n2=e&&e.__importDefault||function(e2){return e2&&e2.__esModule?e2:{default:e2}};Object.defineProperty(e,"__esModule",{value:!0}),e.parse=i3;let r2=(0,n2(m("debug")).default)("cmd-ts:parser");function i3(e2,t){if(r2.enabled){let e3={shortFlags:[...t.forceFlagShortNames],longFlags:[...t.forceFlagLongNames],shortOptions:[...t.forceOptionShortNames],longOptions:[...t.forceOptionLongNames]};r2("Registered:",JSON.stringify(e3))}let n3=[],i4=0,o2=!1;function s5(){return e2[i4++]}function c4(){return e2[i4]}for(;i4<e2.length;){let e3=s5();if(!e3)break;if(e3.type!=="argumentDivider"){if(o2){let t2=e3.raw,r3=s5();for(;r3&&r3?.type!=="argumentDivider";)t2+=r3.raw,r3=s5();n3.push({type:"positionalArgument",index:e3.index,raw:t2});continue}if(e3.type==="char"){let t2=e3.raw,r3=s5();for(;r3&&r3?.type!=="argumentDivider";)t2+=r3.raw,r3=s5();n3.push({type:"positionalArgument",index:e3.index,raw:t2});continue}if(e3.type==="longPrefix"){let r3=s5();if(r3?.type==="argumentDivider"||!r3){n3.push({type:"forcePositional",index:e3.index,raw:"--"}),o2=!0;continue}let i5="";for(;r3&&r3?.raw!=="="&&r3?.type!=="argumentDivider";)i5+=r3.raw,r3=s5();let l4=a2({key:i5,delimiterToken:r3,forceFlag:t.forceFlagLongNames,getToken:s5,peekToken:c4,forceOption:t.forceOptionLongNames}),u3=`--${i5}`;l4&&(u3+=l4.raw),n3.push({type:"longOption",key:i5,index:e3.index,raw:u3,value:l4});continue}if(e3.type==="shortPrefix"){let r3=[],i5=s5();if(i5?.type==="argumentDivider"||!i5){n3.push({type:"positionalArgument",index:e3.index,raw:"-"});continue}for(;i5&&i5?.type!=="argumentDivider"&&i5?.raw!=="=";)r3.push(i5),i5=s5();let o3=r3.pop(),l4=a2({key:o3.raw,delimiterToken:i5,forceFlag:t.forceFlagShortNames,forceOption:t.forceOptionShortNames,getToken:s5,peekToken:c4}),u3=[];for(let e4 of r3)u3.push({type:"shortOption",index:e4.index,raw:e4.raw,key:e4.raw});let d3=o3.raw;l4&&(d3+=l4.raw),u3.push({type:"shortOption",index:o3.index,raw:d3,value:l4,key:o3.raw});let f4=`-${r3.map(e4=>e4.raw).join("")}${o3.raw}`;l4&&(f4+=l4.raw);let p3={type:"shortOptions",index:e3.index,raw:f4,options:u3};n3.push(p3);continue}i4++}}if(r2.enabled){let e3=n3.map(e4=>({[e4.type]:e4.raw}));r2("Parsed items:",JSON.stringify(e3))}return n3}function a2(e2){let{getToken:t,delimiterToken:n3,forceFlag:r3,key:i4,forceOption:a3}=e2,o2=!a3.has(i4)&&(r3.has(i4)||e2.peekToken()?.type!=="char");if(!n3||n3.raw!=="="&&o2)return;let s5=n3.raw==="="?"=":" ",c4=n3.index,l4=t();if(!l4)return;let u3="",d3=l4.index;for(;l4&&l4?.type!=="argumentDivider";)u3+=l4.raw,l4=t();return{type:"optionValue",index:n3.index,delimiter:{type:"delimiter",raw:s5,index:c4},node:{type:"value",raw:u3,index:d3},raw:`${s5}${u3}`}}}),T2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.tokenize=n2;let t=g2();function n2(e2){let n3=[],r2=0,i3=e3=>{n3.push(e3),r2+=e3.raw.length};for(let[n4,a2]of(0,t.enumerate)(e2)){let t2=[...a2];for(let e3=0;e3<t2.length;e3++)t2[e3]==="-"&&t2[e3+1]==="-"?(i3({type:"longPrefix",raw:"--",index:r2}),e3++):t2[e3]==="-"?i3({type:"shortPrefix",raw:"-",index:r2}):i3({type:"char",raw:t2[e3],index:r2});n4+1!==e2.length&&i3({type:"argumentDivider",raw:" ",index:r2})}return n3}}),E2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.run=o2,e.runSafely=s5,e.dryRun=u3,e.parse=d3;let t=c3(),n2=l3(),r2=C2(),i3=w2(),a2=T2();async function o2(e2,n3){let r3=await s5(e2,n3);return(0,t.isErr)(r3)?r3.error.run():r3.value}async function s5(e2,i4){let a3=[],o3=f4(e2,i4);try{let i5=await e2.run({nodes:o3,visitedNodes:new Set,hotPath:a3});if((0,t.isErr)(i5))throw new n2.Exit({message:(0,r2.errorBox)(o3,i5.error.errors,a3),exitCode:1,into:"stderr"});return(0,t.ok)(i5.value)}catch(e3){if(e3 instanceof n2.Exit)return(0,t.err)(e3);throw e3}}async function u3(e2,n3){let r3=await s5(e2,n3);return(0,t.isErr)(r3)?(0,t.err)(r3.error.dryRun()):r3}function d3(e2,t2){let n3=[],r3=f4(e2,t2);return e2.parse({nodes:r3,visitedNodes:new Set,hotPath:n3})}function f4(e2,t2){let n3=new Set,r3=new Set,o3=new Set,s6={forceFlagShortNames:r3,forceFlagLongNames:n3,forceOptionShortNames:new Set,forceOptionLongNames:o3};e2.register(s6);let c4=(0,a2.tokenize)(t2);return(0,i3.parse)(c4,s6)}}),D2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.restPositionals=s5;let i3=r2(c3()),a2=p2();function o2(e2){return{helpTopics(){return[{usage:`[...${e2.displayName??e2.type.displayName??"arg"}]`,category:"arguments",defaults:[],description:e2.description??e2.type.description??""}]},register(e3){},async parse({nodes:t2,visitedNodes:n3}){let r3=t2.filter(e3=>e3.type==="positionalArgument"&&!n3.has(e3)),a3=[],o3=[];for(let t3 of r3){n3.add(t3);let r4=await i3.safeAsync(e2.type.from(t3.raw));i3.isOk(r4)?a3.push(r4.value):o3.push({nodes:[t3],message:r4.error.message})}return o3.length>0?i3.err({errors:o3}):i3.ok(a3)}}}function s5(e2){return o2({type:a2.string,...e2})}}),O2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.multiflag=s5;let i3=r2(c3()),a2=m3(),o2=u2();function s5(e2){return{helpTopics(){let t2=`--${e2.long}`;return e2.short&&(t2+=`, -${e2.short}`),[{category:"flags",usage:t2,defaults:[],description:e2.description??"self explanatory"}]},register(t2){t2.forceFlagLongNames.add(e2.long),e2.short&&t2.forceFlagShortNames.add(e2.short)},async parse({nodes:t2,visitedNodes:n3}){let r3=(0,o2.findOption)(t2,{longNames:[e2.long],shortNames:e2.short?[e2.short]:[]}).filter(e3=>!n3.has(e3));for(let e3 of r3)n3.add(e3);let s6=[],c4=[];for(let e3 of r3){let t3=await i3.safeAsync(a2.boolean.from(e3.value?.node.raw??"true"));i3.isErr(t3)?c4.push({nodes:[e3],message:t3.error.message}):s6.push(t3.value)}if(c4.length>0)return i3.err({errors:c4});let l4=await i3.safeAsync(e2.type.from(s6));return i3.isErr(l4)?i3.err({errors:[{nodes:r3,message:l4.error.message}]}):l4}}}}),k2=c(t=>{var n2=t&&t.__createBinding||(Object.create?function(e,t2,n3,r2){r2===void 0&&(r2=n3);var i3=Object.getOwnPropertyDescriptor(t2,n3);(!i3||("get"in i3?!t2.__esModule:i3.writable||i3.configurable))&&(i3={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e,r2,i3)}:function(e,t2,n3,r2){r2===void 0&&(r2=n3),e[r2]=t2[n3]}),a2=t&&t.__setModuleDefault||(Object.create?function(e,t2){Object.defineProperty(e,"default",{enumerable:!0,value:t2})}:function(e,t2){e.default=t2}),o2=t&&t.__importStar||function(){var e=function(t2){return e=Object.getOwnPropertyNames||function(e2){var t3=[];for(var n3 in e2)Object.prototype.hasOwnProperty.call(e2,n3)&&(t3[t3.length]=n3);return t3},e(t2)};return function(t2){if(t2&&t2.__esModule)return t2;var r2={};if(t2!=null)for(var i3=e(t2),o3=0;o3<i3.length;o3++)i3[o3]!=="default"&&n2(r2,t2,i3[o3]);return a2(r2,t2),r2}}(),s5=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.multioption=p3;let l4=s5((Z(),f(j))),d3=o2(c3()),f4=u2();function p3(e){return{helpTopics(){let t2=e.type.displayName??"value",n3=`--${e.long} <${t2}>`;e.short&&(n3+=`, -${e.short}=<${t2}>`);let r2=[];if(e.defaultValue)try{let t3=e.defaultValue();e.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("[...optional]")}catch{}else if(e.type.defaultValue)try{let t3=e.type.defaultValue();e.type.defaultValueIsSerializable?r2.push(`default: ${l4.default.italic(t3)}`):r2.push("[...optional]")}catch{}else(e.onMissing||e.type.onMissing)&&r2.push("[...optional]");return[{category:"options",usage:n3,defaults:r2,description:e.description??"self explanatory"}]},register(t2){t2.forceOptionLongNames.add(e.long),e.short&&t2.forceOptionShortNames.add(e.short)},async parse({nodes:t2,visitedNodes:n3}){let r2=(0,f4.findOption)(t2,{longNames:[e.long],shortNames:e.short?[e.short]:[]}).filter(e2=>!n3.has(e2)),i3=e.defaultValue||e.type.defaultValue,a3=e.onMissing||e.type.onMissing;if(r2.length===0&&i3)try{let e2=i3();return d3.ok(e2)}catch(t3){let n4=`Failed to resolve default value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}else if(r2.length===0&&a3)try{let e2=await a3();return d3.ok(e2)}catch(t3){let n4=`Failed to get missing value for '--${e.long}': ${t3.message}`;return d3.err({errors:[{nodes:[],message:n4}]})}for(let e2 of r2)n3.add(e2);let o3=[],s6=[],c4=[];for(let e2 of r2){let t3=e2.value?.node.raw;if(t3===void 0){c4.push(e2);continue}o3.push(t3)}if(c4.length>0&&s6.push({nodes:c4,message:"Expected to get a value, found a flag"}),s6.length>0)return d3.err({errors:s6});let l5=await d3.safeAsync(e.type.from(o3));return d3.isErr(l5)?d3.err({errors:[{nodes:r2,message:l5.error.message}]}):l5}}}}),A2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.union=o2;let i3=r2(c3()),a2=f3();function o2(e2,{combineErrors:t2=e3=>e3.join(`
20
+ `)}={}){return{...Object.assign({},...e2.map(e3=>(0,a2.typeDef)(e3))),async from(n3){let r3=[];for(let t3 of e2){let e3=await i3.safeAsync((0,a2.fromFn)(t3)(n3));if(i3.isOk(e3))return e3.value;r3.push(e3.error.message)}throw Error(t2(r3))}}}}),j2=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.oneOf=r2;let n2=m("node:util");function r2(e2){let t=e2.map(e3=>(0,n2.inspect)(e3)).join(", ");return{async from(n3){let r3=e2.find(e3=>e3===n3);if(!r3)throw Error(`Invalid value '${n3}'. Expected one of: ${t}`);return r3},description:`One of ${t}`}}}),M2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__setModuleDefault||(Object.create?function(e2,t2){Object.defineProperty(e2,"default",{enumerable:!0,value:t2})}:function(e2,t2){e2.default=t2}),r2=e&&e.__importStar||function(){var e2=function(t2){return e2=Object.getOwnPropertyNames||function(e3){var t3=[];for(var n3 in e3)Object.prototype.hasOwnProperty.call(e3,n3)&&(t3[t3.length]=n3);return t3},e2(t2)};return function(r3){if(r3&&r3.__esModule)return r3;var i4={};if(r3!=null)for(var a3=e2(r3),o3=0;o3<a3.length;o3++)a3[o3]!=="default"&&t(i4,r3,a3[o3]);return n2(i4,r3),i4}}();Object.defineProperty(e,"__esModule",{value:!0}),e.rest=a2;let i3=r2(c3());function a2(e2){return{helpTopics(){return[{usage:`[...${e2?.displayName??"arg"}]`,category:"arguments",defaults:[],description:e2?.description??"catches the rest of the values"}]},register(){},async parse(e3){let t2=[...e3.visitedNodes].map(t3=>e3.nodes.indexOf(t3)).filter(e4=>e4>-1),n3=[],r3=Math.max(-1,...t2),a3=e3.nodes.slice(r3+1);for(let t3 of a3)switch(t3.type){case"positionalArgument":n3.push(t3.raw),e3.visitedNodes.add(t3);break;case"longOption":n3.push(...o2(t3)),e3.visitedNodes.add(t3);break;case"shortOption":n3.push(...o2(t3)),e3.visitedNodes.add(t3);break;case"forcePositional":n3.push(t3.raw),e3.visitedNodes.add(t3);break;case"shortOptions":{let r4=t3.options.at(-1);e3.visitedNodes.add(t3),n3.push(...o2({...t3,value:r4?.value}));break}}return i3.ok(n3)}}}function o2(e2){return e2.value&&e2.value.delimiter.raw===" "?[e2.raw.slice(0,e2.value.index-e2.index),e2.value.node.raw]:[e2.raw]}}),N2=c(e=>{var t=e&&e.__createBinding||(Object.create?function(e2,t2,n3,r3){r3===void 0&&(r3=n3);var i4=Object.getOwnPropertyDescriptor(t2,n3);(!i4||("get"in i4?!t2.__esModule:i4.writable||i4.configurable))&&(i4={enumerable:!0,get:function(){return t2[n3]}}),Object.defineProperty(e2,r3,i4)}:function(e2,t2,n3,r3){r3===void 0&&(r3=n3),e2[r3]=t2[n3]}),n2=e&&e.__exportStar||function(e2,n3){for(var r3 in e2)r3!=="default"&&!Object.prototype.hasOwnProperty.call(n3,r3)&&t(n3,e2,r3)};Object.defineProperty(e,"__esModule",{value:!0}),e.rest=e.oneOf=e.union=e.multioption=e.multiflag=e.restPositionals=e.parse=e.run=e.runSafely=e.dryRun=e.positional=e.option=e.defaultHelpFormatter=e.resetHelpFormatter=e.setDefaultHelpFormatter=e.flag=e.command=e.binary=e.extendType=e.subcommands=void 0;var r2=y2();Object.defineProperty(e,"subcommands",{enumerable:!0,get:function(){return r2.subcommands}});var i3=f3();Object.defineProperty(e,"extendType",{enumerable:!0,get:function(){return i3.extendType}}),n2(p2(),e);var a2=b2();Object.defineProperty(e,"binary",{enumerable:!0,get:function(){return a2.binary}});var o2=x2();Object.defineProperty(e,"command",{enumerable:!0,get:function(){return o2.command}});var s5=m3();Object.defineProperty(e,"flag",{enumerable:!0,get:function(){return s5.flag}});var c4=_2();Object.defineProperty(e,"setDefaultHelpFormatter",{enumerable:!0,get:function(){return c4.setDefaultHelpFormatter}}),Object.defineProperty(e,"resetHelpFormatter",{enumerable:!0,get:function(){return c4.resetHelpFormatter}}),Object.defineProperty(e,"defaultHelpFormatter",{enumerable:!0,get:function(){return c4.defaultHelpFormatter}});var l4=S2();Object.defineProperty(e,"option",{enumerable:!0,get:function(){return l4.option}});var u3=v2();Object.defineProperty(e,"positional",{enumerable:!0,get:function(){return u3.positional}});var d3=E2();Object.defineProperty(e,"dryRun",{enumerable:!0,get:function(){return d3.dryRun}}),Object.defineProperty(e,"runSafely",{enumerable:!0,get:function(){return d3.runSafely}}),Object.defineProperty(e,"run",{enumerable:!0,get:function(){return d3.run}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return d3.parse}});var h3=D2();Object.defineProperty(e,"restPositionals",{enumerable:!0,get:function(){return h3.restPositionals}});var g3=O2();Object.defineProperty(e,"multiflag",{enumerable:!0,get:function(){return g3.multiflag}});var C3=k2();Object.defineProperty(e,"multioption",{enumerable:!0,get:function(){return C3.multioption}});var w3=A2();Object.defineProperty(e,"union",{enumerable:!0,get:function(){return w3.union}});var T3=j2();Object.defineProperty(e,"oneOf",{enumerable:!0,get:function(){return T3.oneOf}});var N3=M2();Object.defineProperty(e,"rest",{enumerable:!0,get:function(){return N3.rest}})});export{X,Z,N2 as N};
@@ -4,4 +4,4 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
- import{packageName}from"./chunk-B4KA3ZH2.js";import{environmentOption,formatOption,jsonOption,projectOption,sinceOption,untilOption}from"./chunk-DORCX7UB.js";var schemaSubcommand={name:"schema",aliases:[],description:"List available metrics or inspect a specific metric.",arguments:[{name:"metric-or-prefix",required:!1}],options:[formatOption,jsonOption],examples:[{name:"List all metrics",value:`${packageName} metrics schema`},{name:"Show metric details",value:`${packageName} metrics schema vercel.function_invocation`},{name:"Schema as JSON for agents",value:`${packageName} metrics schema vercel.request.count --json`}]},DATA_QUERY_EXAMPLE=["{",' "metrics": {',' "errors": {',' "metric": "vercel.function_invocation.count",',' "aggregation": "count",',' "filter": "httpStatus >= 500"'," },",' "total": {',' "metric": "vercel.function_invocation.count",',' "aggregation": "count"'," }"," },",' "formulas": { "errorRate": "errors / total * 100" },',' "outputs": ["errorRate"],',' "groupBy": ["route"],',' "bucketSeconds": 3600,',' "seriesSelection": {',' "limit": 5,',' "mode": "exact",',' "rankBy": [{ "metric": "total", "direction": "desc" }]'," }","}"],VIEWS_PER_VISITOR_QUERY={metrics:{views:{metric:"vercel.analytics.page_view.count",aggregation:"count"},visitors:{metric:"vercel.analytics.page_view.count",aggregation:"unique",dimensions:["visitorId"]}},formulas:{viewsPerVisitor:"views / visitors"}},metricsCommand={name:"metrics",aliases:[],description:"Query observability metrics for your Vercel project or team.",arguments:[{name:"metric-id",required:!1}],subcommands:[{name:"query",aliases:[],description:"",default:!0,hidden:!0,arguments:[],options:[],examples:[]},schemaSubcommand],options:[{name:"aggregation",shorthand:null,deprecatedShorthand:"a",type:String,deprecated:!1,description:"Aggregation function (default: sum for counts/bytes/currency, avg for durations/memory/ratios)",argument:"FN"},{name:"group-by",shorthand:null,type:[String],deprecated:!1,description:"Dimensions to group by (repeatable)",argument:"DIM"},{name:"limit",shorthand:"n",deprecatedShorthand:"l",type:Number,deprecated:!1,description:"Max groups per time bucket (default: 10)",argument:"N"},{name:"order-by",shorthand:null,type:String,deprecated:!1,description:"Order grouped results by value or count (default: count, or value when count is unsupported)",argument:"value|count"},{name:"order",shorthand:null,type:String,deprecated:!1,description:"Order direction for grouped results: asc or desc (default: desc)",argument:"asc|desc"},{name:"query",shorthand:"q",type:[String],deprecated:!1,description:"KQL filter expression (repeatable, ANDed together)",argument:"TEXT"},{name:"filter",shorthand:"f",type:[String],deprecated:!0,description:"Deprecated alias for `--query`",argument:"EXPR"},{name:"data",shorthand:null,type:String,deprecated:!1,description:'Query with several metrics and formulas as JSON, or - to read it from stdin. Replaces the metric argument and query-shape options; --project, --all, --since, and --until still apply. See "Query (--data)" below',argument:"JSON"},{...environmentOption,description:"Limit the query to one environment, such as production or preview"},{name:"prod",shorthand:null,type:Boolean,deprecated:!0,description:"Deprecated alias for `--environment production`"},{...sinceOption,description:`${sinceOption.description} (default: 1h ago)`},untilOption,{name:"granularity",shorthand:null,deprecatedShorthand:"g",type:String,deprecated:!1,description:"Time bucket size: 1m, 5m, 15m, 1h, 4h, 1d (default: auto; raised when too fine for the time range)",argument:"SIZE"},{name:"bucket-timezone",shorthand:null,type:String,deprecated:!1,description:"IANA timezone for calendar bucket alignment only; does not shift --since/--until or output timestamps (e.g., Europe/Paris)",argument:"ZONE"},{...projectOption,shorthand:"p"},{name:"all",shorthand:null,type:Boolean,deprecated:!1,description:"Query across all projects for the team"},formatOption,jsonOption],helpSections:[{title:"Query (--data)",placement:"afterOptions",rows:[{syntax:"metrics.<alias>",description:"Required. { metric, aggregation, filter? } with a KQL filter; also accepts per and normalize, or dimensions for unique"},{syntax:"formulas.<alias>",description:"Arithmetic over metric aliases, such as errors / total"},{syntax:"outputs",description:"Metric or formula aliases to return"},{syntax:"groupBy",description:"Dimensions to split results by"},{syntax:"filter",description:"KQL filter applied to every metric"},{syntax:"bucketSeconds",description:"Bucket width for a time series; omit for totals only"},{syntax:"orderBy, rowLimit",description:"Order and limit a totals-only query"},{syntax:"seriesSelection",description:"Top-N series; needs bucketSeconds and groupBy"},{syntax:"timeRange",description:"{ start, end } in RFC 3339 (default: --since and --until)"},{syntax:"scope",description:"{ ownerId, projectIds? } with IDs, not names (default: the linked project, --project <NAME_OR_ID>, or --all, in the --scope team)"}],body:["",'A unique aggregation counts distinct values of a dimension. Set "aggregation": "unique" with "dimensions", such as ["visitorId"]. The unique/<DIM> form works only with --aggregation.',"",`Run \`${packageName} metrics schema <metric>\` for metric IDs, aggregations, and dimensions. The API reports limits and invalid combinations as errors that name the field.`]},{title:"Query example (--data)",placement:"afterOptions",preformatted:!0,body:[...DATA_QUERY_EXAMPLE,"",{command:`cat query.json | ${packageName} metrics --since 24h --data -`}]}],examples:[{name:"5xx errors by error code in the last hour",value:`${packageName} metrics vercel.function_invocation.count --query "httpStatus >= 500" --group-by errorCode --since 1h`},{name:"Function invocations by HTTP status code",value:`${packageName} metrics vercel.function_invocation.count --group-by httpStatus --since 6h`},{name:"Function duration by route",value:`${packageName} metrics vercel.function_invocation.function_duration_ms --aggregation avg --group-by route --since 1h`},{name:"AI Gateway costs by provider",value:`${packageName} metrics vercel.ai_gateway.request.cost --aggregation sum --group-by aiProvider --since 7d`},{name:"Core Web Vitals (LCP) by route",value:`${packageName} metrics vercel.speed_insights.lcp_ms --aggregation p75 --environment production --group-by route --since 7d`},{name:"Routes with the lowest p75 LCP",value:`${packageName} metrics vercel.speed_insights.lcp_ms --aggregation p75 --environment production --group-by route --since 7d --order-by value --order asc`},{name:"Daily pageviews",value:`${packageName} metrics vercel.analytics.page_view.count --since 7d --granularity 1d`},{name:"Visitors time series from the top 5 countries",value:`${packageName} metrics vercel.analytics.page_view.count --aggregation unique/visitorId --group-by country --since 1d --granularity 1h --limit 5`},{name:"Daily bounced visitors (visitors with exactly one page view)",value:`${packageName} metrics vercel.analytics.page_view.count --aggregation singleton/visitorId --since 7d --granularity 1d`},{name:"Page views per unique visitor with a --data query",value:`${packageName} metrics --project acme-web --since 7d --data '${JSON.stringify(VIEWS_PER_VISITOR_QUERY)}'`},{name:"List available metrics",value:`${packageName} metrics schema`},{name:"Function executions matching an API route",value:`${packageName} metrics vercel.function_invocation.count --query 'route:"/api"' --group-by route --since 1h`},{name:"Function executions matching multiple filters",value:`${packageName} metrics vercel.function_invocation.count --query "httpStatus >= 500" --query 'route:"/api"' --since 1h`},{name:"Show schema for a metric prefix",value:`${packageName} metrics schema vercel.request`},{name:"Team-wide function executions by project",value:`${packageName} metrics --all vercel.function_invocation.count --group-by projectId --since 24h`}]};export{schemaSubcommand,metricsCommand};
7
+ import{packageName}from"./chunk-EFGZK6OY.js";import{environmentOption,formatOption,jsonOption,projectOption,sinceOption,untilOption}from"./chunk-CUO3CYU3.js";var schemaSubcommand={name:"schema",aliases:[],description:"List available metrics or inspect a specific metric.",arguments:[{name:"metric-or-prefix",required:!1}],options:[formatOption,jsonOption],examples:[{name:"List all metrics",value:`${packageName} metrics schema`},{name:"Show metric details",value:`${packageName} metrics schema vercel.function_invocation`},{name:"Schema as JSON for agents",value:`${packageName} metrics schema vercel.request.count --json`}]},DATA_QUERY_EXAMPLE=["{",' "metrics": {',' "errors": {',' "metric": "vercel.function_invocation.count",',' "aggregation": "count",',' "filter": "httpStatus >= 500"'," },",' "total": {',' "metric": "vercel.function_invocation.count",',' "aggregation": "count"'," }"," },",' "formulas": { "errorRate": "errors / total * 100" },',' "outputs": ["errorRate"],',' "groupBy": ["route"],',' "bucketSeconds": 3600,',' "seriesSelection": {',' "limit": 5,',' "mode": "exact",',' "rankBy": [{ "metric": "total", "direction": "desc" }]'," }","}"],VIEWS_PER_VISITOR_QUERY={metrics:{views:{metric:"vercel.analytics.page_view.count",aggregation:"count"},visitors:{metric:"vercel.analytics.page_view.count",aggregation:"unique",dimensions:["visitorId"]}},formulas:{viewsPerVisitor:"views / visitors"}},metricsCommand={name:"metrics",aliases:[],description:"Query observability metrics for your Vercel project or team.",arguments:[{name:"metric-id",required:!1}],subcommands:[{name:"query",aliases:[],description:"",default:!0,hidden:!0,arguments:[],options:[],examples:[]},schemaSubcommand],options:[{name:"aggregation",shorthand:null,deprecatedShorthand:"a",type:String,deprecated:!1,description:"Aggregation function (default: sum for counts/bytes/currency, avg for durations/memory/ratios)",argument:"FN"},{name:"group-by",shorthand:null,type:[String],deprecated:!1,description:"Dimensions to group by (repeatable)",argument:"DIM"},{name:"limit",shorthand:"n",deprecatedShorthand:"l",type:Number,deprecated:!1,description:"Max groups per time bucket (default: 10)",argument:"N"},{name:"order-by",shorthand:null,type:String,deprecated:!1,description:"Order grouped results by value or count (default: count, or value when count is unsupported)",argument:"value|count"},{name:"order",shorthand:null,type:String,deprecated:!1,description:"Order direction for grouped results: asc or desc (default: desc)",argument:"asc|desc"},{name:"query",shorthand:"q",type:[String],deprecated:!1,description:"KQL filter expression (repeatable, ANDed together)",argument:"TEXT"},{name:"filter",shorthand:"f",type:[String],deprecated:!0,description:"Deprecated alias for `--query`",argument:"EXPR"},{name:"data",shorthand:null,type:String,deprecated:!1,description:'Query with several metrics and formulas as JSON, or - to read it from stdin. Replaces the metric argument and query-shape options; --project, --all, --since, and --until still apply. See "Query (--data)" below',argument:"JSON"},{...environmentOption,description:"Limit the query to one environment, such as production or preview"},{name:"prod",shorthand:null,type:Boolean,deprecated:!0,description:"Deprecated alias for `--environment production`"},{...sinceOption,description:`${sinceOption.description} (default: 1h ago)`},untilOption,{name:"granularity",shorthand:null,deprecatedShorthand:"g",type:String,deprecated:!1,description:"Time bucket size: 1m, 5m, 15m, 1h, 4h, 1d (default: auto; raised when too fine for the time range)",argument:"SIZE"},{name:"bucket-timezone",shorthand:null,type:String,deprecated:!1,description:"IANA timezone for calendar bucket alignment only; does not shift --since/--until or output timestamps (e.g., Europe/Paris)",argument:"ZONE"},{...projectOption,shorthand:"p"},{name:"all",shorthand:null,type:Boolean,deprecated:!1,description:"Query across all projects for the team"},formatOption,jsonOption],helpSections:[{title:"Query (--data)",placement:"afterOptions",rows:[{syntax:"metrics.<alias>",description:"Required. { metric, aggregation, filter? } with a KQL filter; also accepts per and normalize, or dimensions for unique"},{syntax:"formulas.<alias>",description:"Arithmetic over metric aliases, such as errors / total"},{syntax:"outputs",description:"Metric or formula aliases to return"},{syntax:"groupBy",description:"Dimensions to split results by"},{syntax:"filter",description:"KQL filter applied to every metric"},{syntax:"bucketSeconds",description:"Bucket width for a time series; omit for totals only"},{syntax:"orderBy, rowLimit",description:"Order and limit a totals-only query"},{syntax:"seriesSelection",description:"Top-N series; needs bucketSeconds and groupBy"},{syntax:"timeRange",description:"{ start, end } in RFC 3339 (default: --since and --until)"},{syntax:"scope",description:"{ ownerId, projectIds? } with IDs, not names (default: the linked project, --project <NAME_OR_ID>, or --all, in the --scope team)"}],body:["",'A unique aggregation counts distinct values of a dimension. Set "aggregation": "unique" with "dimensions", such as ["visitorId"]. The unique/<DIM> form works only with --aggregation.',"",`Run \`${packageName} metrics schema <metric>\` for metric IDs, aggregations, and dimensions. The API reports limits and invalid combinations as errors that name the field.`]},{title:"Query example (--data)",placement:"afterOptions",preformatted:!0,body:[...DATA_QUERY_EXAMPLE,"",{command:`cat query.json | ${packageName} metrics --since 24h --data -`}]}],examples:[{name:"5xx errors by error code in the last hour",value:`${packageName} metrics vercel.function_invocation.count --query "httpStatus >= 500" --group-by errorCode --since 1h`},{name:"Function invocations by HTTP status code",value:`${packageName} metrics vercel.function_invocation.count --group-by httpStatus --since 6h`},{name:"Function duration by route",value:`${packageName} metrics vercel.function_invocation.function_duration_ms --aggregation avg --group-by route --since 1h`},{name:"AI Gateway costs by provider",value:`${packageName} metrics vercel.ai_gateway.request.cost --aggregation sum --group-by aiProvider --since 7d`},{name:"Core Web Vitals (LCP) by route",value:`${packageName} metrics vercel.speed_insights.lcp_ms --aggregation p75 --environment production --group-by route --since 7d`},{name:"Routes with the lowest p75 LCP",value:`${packageName} metrics vercel.speed_insights.lcp_ms --aggregation p75 --environment production --group-by route --since 7d --order-by value --order asc`},{name:"Daily pageviews",value:`${packageName} metrics vercel.analytics.page_view.count --since 7d --granularity 1d`},{name:"Visitors time series from the top 5 countries",value:`${packageName} metrics vercel.analytics.page_view.count --aggregation unique/visitorId --group-by country --since 1d --granularity 1h --limit 5`},{name:"Daily bounced visitors (visitors with exactly one page view)",value:`${packageName} metrics vercel.analytics.page_view.count --aggregation singleton/visitorId --since 7d --granularity 1d`},{name:"Page views per unique visitor with a --data query",value:`${packageName} metrics --project acme-web --since 7d --data '${JSON.stringify(VIEWS_PER_VISITOR_QUERY)}'`},{name:"List available metrics",value:`${packageName} metrics schema`},{name:"Function executions matching an API route",value:`${packageName} metrics vercel.function_invocation.count --query 'route:"/api"' --group-by route --since 1h`},{name:"Function executions matching multiple filters",value:`${packageName} metrics vercel.function_invocation.count --query "httpStatus >= 500" --query 'route:"/api"' --since 1h`},{name:"Show schema for a metric prefix",value:`${packageName} metrics schema vercel.request`},{name:"Team-wide function executions by project",value:`${packageName} metrics --all vercel.function_invocation.count --group-by projectId --since 24h`}]};export{schemaSubcommand,metricsCommand};