vercel 62.7.0 → 63.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{add-P3FNSVMN.js → add-BODUK747.js} +1 -1
- package/dist/chunks/{add-OXHI3PVM.js → add-QKGWNVQS.js} +1 -1
- package/dist/chunks/{add-WUT6QU2J.js → add-ZLY3DE35.js} +1 -1
- package/dist/chunks/{build-J6VW3KHT.js → build-SD6SLRK7.js} +1 -1
- package/dist/chunks/{chunk-N6CNMMSZ.js → chunk-25565AGS.js} +1 -1
- package/dist/chunks/{chunk-M4IVLSNQ.js → chunk-25S4PQNK.js} +1 -1
- package/dist/chunks/{chunk-T52FMXWC.js → chunk-2EYYB6YN.js} +1 -1
- package/dist/chunks/{chunk-YPTLSODC.js → chunk-2GHZGOWT.js} +1 -1
- package/dist/chunks/{chunk-MIG67KZ2.js → chunk-2H243SJV.js} +1 -1
- package/dist/chunks/{chunk-YW5R6XQI.js → chunk-2JBVMF2Y.js} +1 -1
- package/dist/chunks/{chunk-YUDKK2QJ.js → chunk-2LGNEOKV.js} +1 -1
- package/dist/chunks/{chunk-CR2ZQBDU.js → chunk-2WYDLP7X.js} +1 -1
- package/dist/chunks/{chunk-M3HO5CTQ.js → chunk-3AF3TTCR.js} +1 -1
- package/dist/chunks/{chunk-6EW4BCMR.js → chunk-3DMY3OJR.js} +1 -1
- package/dist/chunks/{chunk-NNP5NITU.js → chunk-3E364MJE.js} +1 -1
- package/dist/chunks/{chunk-M5NWE7EO.js → chunk-3EYOQC4R.js} +1 -1
- package/dist/chunks/{chunk-SXUEGVWB.js → chunk-3G3FQYMW.js} +1 -1
- package/dist/chunks/{chunk-IEKUTNKT.js → chunk-4A5SGLIH.js} +1 -1
- package/dist/chunks/{chunk-BRK4OB4B.js → chunk-4SAVH3H7.js} +1 -1
- package/dist/chunks/chunk-5RR3435W.js +10 -0
- package/dist/chunks/{chunk-CRITS7IX.js → chunk-64U5W6GU.js} +1 -1
- package/dist/chunks/{chunk-WPS6JZF6.js → chunk-67GZ5REA.js} +1 -1
- package/dist/chunks/{chunk-COQGD2EI.js → chunk-6JGC4YDH.js} +1 -1
- package/dist/chunks/{chunk-YZBYL3SH.js → chunk-6LRVRPYO.js} +1 -1
- package/dist/chunks/chunk-6ZMFJA5X.js +7 -0
- package/dist/chunks/chunk-75IAMKGV.js +27 -0
- package/dist/chunks/{chunk-6TAQ6OWD.js → chunk-773GOZIR.js} +1 -1
- package/dist/chunks/{chunk-NYFB3EYC.js → chunk-7D2HVBVP.js} +1 -1
- package/dist/chunks/{chunk-L3JDEHCQ.js → chunk-7EJQLVWX.js} +1 -1
- package/dist/chunks/{chunk-U4C2LU7H.js → chunk-7V2F5IUY.js} +1 -1
- package/dist/chunks/{chunk-XPXOV5UO.js → chunk-A2RZZQEP.js} +1 -1
- package/dist/chunks/{chunk-FEEG5UU2.js → chunk-A5R2HHNK.js} +1 -1
- package/dist/chunks/{chunk-EDDOQXEI.js → chunk-AG5QQNJ3.js} +1 -1
- package/dist/chunks/{chunk-WOTPEBSH.js → chunk-AMDHTZDV.js} +1 -1
- package/dist/chunks/{chunk-5XJNPXQK.js → chunk-AOWWC6WZ.js} +1 -1
- package/dist/chunks/{chunk-35QK5NDD.js → chunk-AU42HSQ3.js} +1 -1
- package/dist/chunks/{chunk-FB3U3RAM.js → chunk-AUZEOUZU.js} +1 -1
- package/dist/chunks/{chunk-46UCIIJN.js → chunk-AZ76R3LW.js} +1 -1
- package/dist/chunks/{chunk-NM67DIPQ.js → chunk-AZULOP7M.js} +1 -1
- package/dist/chunks/{chunk-5JN3FWV2.js → chunk-B3K6GM2W.js} +1 -1
- package/dist/chunks/{chunk-ULHETT7U.js → chunk-B3PZ3I4Z.js} +1 -1
- package/dist/chunks/{chunk-JKTQV2QJ.js → chunk-B4YYOSPY.js} +1 -1
- package/dist/chunks/{chunk-KKS7XWEX.js → chunk-BPUANOGW.js} +1 -1
- package/dist/chunks/{chunk-GU6VIFR5.js → chunk-BRQUZ5NC.js} +1 -1
- package/dist/chunks/{chunk-RMZJP32R.js → chunk-BRUTDRAQ.js} +1 -1
- package/dist/chunks/{chunk-OSCCYU74.js → chunk-BS32OUOC.js} +1 -1
- package/dist/chunks/{chunk-5M45EBVX.js → chunk-BWY67LI6.js} +1 -1
- package/dist/chunks/{chunk-6L236MNA.js → chunk-BZENIQ7N.js} +1 -1
- package/dist/chunks/{chunk-UKMRJIIZ.js → chunk-BZYQ6RFV.js} +1 -1
- package/dist/chunks/{chunk-DZZFEAM6.js → chunk-CNU4T7FO.js} +1 -1
- package/dist/chunks/{chunk-7RR7MIMT.js → chunk-COD3WAUI.js} +1 -1
- package/dist/chunks/{chunk-4H5LPD3T.js → chunk-CRO7VQWK.js} +1 -1
- package/dist/chunks/{chunk-XCJDGQO7.js → chunk-D3AHZ5LI.js} +1 -1
- package/dist/chunks/{chunk-THB7KY2N.js → chunk-DZ6GORJ7.js} +1 -1
- package/dist/chunks/{chunk-2H77IRPI.js → chunk-EAUDC24V.js} +1 -1
- package/dist/chunks/{chunk-5AXNGQJC.js → chunk-EO7GUARB.js} +1 -1
- package/dist/chunks/{chunk-GUTZ45DE.js → chunk-ESMQCFCX.js} +1 -1
- package/dist/chunks/{chunk-ZDX75YNZ.js → chunk-F4KY2TOK.js} +1 -1
- package/dist/chunks/{chunk-2I64AYHG.js → chunk-FBYA6LLM.js} +1 -1
- package/dist/chunks/{chunk-ZN37NQM4.js → chunk-FMAF3AKI.js} +2 -2
- package/dist/chunks/{chunk-JNLWD6DK.js → chunk-GRTIWUV2.js} +1 -1
- package/dist/chunks/{chunk-A73N3QKT.js → chunk-GSOPJJO5.js} +1 -1
- package/dist/chunks/{chunk-J6OPPI3A.js → chunk-GWB27IAS.js} +1 -1
- package/dist/chunks/{chunk-DGH5CD6D.js → chunk-H7LHZZKU.js} +1 -1
- package/dist/chunks/{chunk-LWQVT6YW.js → chunk-HJ3NY4UA.js} +1 -1
- package/dist/chunks/{chunk-AEEEEOYS.js → chunk-HMS3UIQ2.js} +1 -1
- package/dist/chunks/{chunk-W26LLGQV.js → chunk-HRR57QNP.js} +1 -1
- package/dist/chunks/{chunk-MCBO6LL7.js → chunk-HUJPGK7W.js} +3 -3
- package/dist/chunks/{chunk-VWBJWUYQ.js → chunk-IAUAFUO2.js} +1 -1
- package/dist/chunks/{chunk-MBL6TXEJ.js → chunk-ID663OJ7.js} +1 -1
- package/dist/chunks/{chunk-N3ZZ7FHQ.js → chunk-ISWW3DKF.js} +1 -1
- package/dist/chunks/{chunk-OI263FBO.js → chunk-J24BABG4.js} +1 -1
- package/dist/chunks/{chunk-FAW6NBLQ.js → chunk-JALVF3C2.js} +1 -1
- package/dist/chunks/{chunk-FI772UVH.js → chunk-JESNVRVR.js} +1 -1
- package/dist/chunks/{chunk-ZTUQEA2X.js → chunk-JLXG2XWW.js} +1 -1
- package/dist/chunks/{chunk-TAT5WGDZ.js → chunk-JSBEAHKA.js} +1 -1
- package/dist/chunks/{chunk-GMTLVRN7.js → chunk-JTAAWOJS.js} +2 -2
- package/dist/chunks/{chunk-3ZMD36SU.js → chunk-KNBEUC4P.js} +1 -1
- package/dist/chunks/{chunk-FQJCWZ4C.js → chunk-KTNRWBHM.js} +1 -1
- package/dist/chunks/{chunk-M4IWOZEG.js → chunk-L5FUUGYX.js} +1 -1
- package/dist/chunks/{chunk-UED2PPFP.js → chunk-LSQREJXO.js} +1 -1
- package/dist/chunks/{chunk-S54ISKGR.js → chunk-LU5O3NH7.js} +1 -1
- package/dist/chunks/{chunk-XQQ7DTQG.js → chunk-MA4K5IWW.js} +2 -2
- package/dist/chunks/{chunk-4MZK6JT6.js → chunk-MCRKBVZA.js} +1 -1
- package/dist/chunks/{chunk-CF2PIWRO.js → chunk-MEJTHWZB.js} +1 -1
- package/dist/chunks/{chunk-23NBYS6R.js → chunk-MVCAUS4F.js} +1 -1
- package/dist/chunks/{chunk-M2W3HKV3.js → chunk-MVGTMPMI.js} +1 -1
- package/dist/chunks/{chunk-QTKJC2O5.js → chunk-MXTC4ZAQ.js} +1 -1
- package/dist/chunks/{chunk-6C4RPAG7.js → chunk-MYCQIZU6.js} +1 -1
- package/dist/chunks/{chunk-3XLK5ZPD.js → chunk-MYMM34ZH.js} +4 -4
- package/dist/chunks/chunk-MZ6DNAVL.js +7 -0
- package/dist/chunks/{chunk-UKVEXM5O.js → chunk-N7L3XLWC.js} +1 -1
- package/dist/chunks/{chunk-4QSVBLAS.js → chunk-N7Q2IESO.js} +1 -1
- package/dist/chunks/{chunk-U7KCDTCH.js → chunk-NB2WLB3J.js} +1 -1
- package/dist/chunks/{chunk-LG4JQAY7.js → chunk-NZ2TFADV.js} +1 -1
- package/dist/chunks/{chunk-2KSNNB4B.js → chunk-NZBUIMZG.js} +1 -1
- package/dist/chunks/{chunk-TRTEXGVN.js → chunk-O4FDRZ22.js} +1 -1
- package/dist/chunks/{chunk-WNTA7DCC.js → chunk-OA446564.js} +1 -1
- package/dist/chunks/{chunk-O5A7CNRV.js → chunk-OH2RT2GN.js} +1 -1
- package/dist/chunks/{chunk-AVSPFBLM.js → chunk-OO572JUC.js} +1 -1
- package/dist/chunks/{chunk-WRILLB46.js → chunk-PFD7LETF.js} +1 -1
- package/dist/chunks/{chunk-ORJGSUQT.js → chunk-PSBBSY46.js} +1 -1
- package/dist/chunks/{chunk-ULLWCOYC.js → chunk-PVASGBEF.js} +1 -1
- package/dist/chunks/{chunk-JZRMH5UA.js → chunk-Q7D7RGXM.js} +1 -1
- package/dist/chunks/{chunk-OQVE2WXX.js → chunk-QC47UKDR.js} +1 -1
- package/dist/chunks/{chunk-7SNMU7U7.js → chunk-QJKJBD2M.js} +1 -1
- package/dist/chunks/{chunk-KXMVFT2K.js → chunk-QW2UP4W4.js} +1 -1
- package/dist/chunks/{chunk-BHBNTQRT.js → chunk-QZRZ6ECD.js} +1 -1
- package/dist/chunks/{chunk-LYKPLTZ7.js → chunk-R4VVQRLX.js} +1 -1
- package/dist/chunks/{chunk-QGIQK47P.js → chunk-RM3ZDRYE.js} +1 -1
- package/dist/chunks/{chunk-B4ATVYZW.js → chunk-ROPQIBWJ.js} +1 -1
- package/dist/chunks/{chunk-OHDEHZLX.js → chunk-RRDNKB2X.js} +1 -1
- package/dist/chunks/{chunk-7PNYOSDU.js → chunk-RRWEIG6B.js} +1 -1
- package/dist/chunks/{chunk-MOLEXKVC.js → chunk-RZGWCQP7.js} +1 -1
- package/dist/chunks/{chunk-H3QRCTIJ.js → chunk-S7XZC23O.js} +1 -1
- package/dist/chunks/{chunk-PHW54NU5.js → chunk-SACGQMVQ.js} +1 -1
- package/dist/chunks/{chunk-SOJCELXH.js → chunk-SCV7XEEO.js} +1 -1
- package/dist/chunks/{chunk-O3UY73UQ.js → chunk-SF4E3AQ3.js} +1 -1
- package/dist/chunks/{chunk-QZ2G3AMY.js → chunk-SSEVYTJ7.js} +1 -1
- package/dist/chunks/{chunk-ECMWDZTJ.js → chunk-SY4EANZH.js} +3 -3
- package/dist/chunks/{chunk-4KQBTIMZ.js → chunk-T6SFC3IH.js} +1 -1
- package/dist/chunks/{chunk-YGMOJBSP.js → chunk-T76ITV65.js} +2 -2
- package/dist/chunks/{chunk-YKOIVWZI.js → chunk-TBLIJ2PS.js} +1 -1
- package/dist/chunks/{chunk-UOZHC2ZG.js → chunk-TKA7PPGY.js} +1 -1
- package/dist/chunks/{chunk-V426AGVC.js → chunk-U5C6XOLA.js} +2 -2
- package/dist/chunks/{chunk-774D3BGN.js → chunk-UFXKCETS.js} +1 -1
- package/dist/chunks/{chunk-RSLPLRVK.js → chunk-UTW2FDSC.js} +1 -1
- package/dist/chunks/{chunk-6DJ6PMEK.js → chunk-V2BKSCXI.js} +1 -1
- package/dist/chunks/{chunk-LXNMVWYO.js → chunk-V336CYEI.js} +1 -1
- package/dist/chunks/{chunk-YEWZFZ2O.js → chunk-VIBUYIZ3.js} +1 -1
- package/dist/chunks/chunk-VJEQAITW.js +24 -0
- package/dist/chunks/{chunk-F2ZWW2IO.js → chunk-VKPZP4LC.js} +1 -1
- package/dist/chunks/{chunk-RCTYVKM5.js → chunk-VKXEOL4K.js} +1 -1
- package/dist/chunks/chunk-VNSQCAVT.js +11 -0
- package/dist/chunks/{chunk-FAJB3JV5.js → chunk-VOB4W7DO.js} +1 -1
- package/dist/chunks/{chunk-PE7QZUY7.js → chunk-VSE5BAPP.js} +1 -1
- package/dist/chunks/{chunk-ZNQI6M3S.js → chunk-W6LNIG5O.js} +1 -1
- package/dist/chunks/{chunk-5ZQF5WIO.js → chunk-WF5YVWWY.js} +1 -1
- package/dist/chunks/{chunk-Q7AYTXUR.js → chunk-WH3SHWVK.js} +1 -1
- package/dist/chunks/{chunk-G3NHWIPJ.js → chunk-WJ4VNTE3.js} +1 -1
- package/dist/chunks/{chunk-LCH3SUJ7.js → chunk-X3JK3SQ2.js} +1 -1
- package/dist/chunks/{chunk-B2L2QTXT.js → chunk-XEQT373M.js} +1 -1
- package/dist/chunks/{chunk-I5JR7PIO.js → chunk-XJOOPPSQ.js} +1 -1
- package/dist/chunks/{chunk-RYMRVMGD.js → chunk-YAPHSZJ7.js} +6 -7
- package/dist/chunks/{chunk-7HL2RPUO.js → chunk-YHPPP3SF.js} +1 -1
- package/dist/chunks/{chunk-SR5XEF7L.js → chunk-YLTCVZOL.js} +1 -1
- package/dist/chunks/{chunk-7T6TL3GQ.js → chunk-YYPNUQDI.js} +1 -1
- package/dist/chunks/{chunk-GHM7V3GG.js → chunk-ZS2WS4AM.js} +1 -1
- package/dist/chunks/{chunk-K2RQEX7N.js → chunk-ZUCSA4IW.js} +1 -1
- package/dist/chunks/{cjs-GOQHXIHX.js → cjs-2SMN43VH.js} +1 -1
- package/dist/chunks/{clear-VMJVLPVR.js → clear-PYDGQBSS.js} +1 -1
- package/dist/chunks/{compile-vercel-config-YCLXPL5H.js → compile-vercel-config-KWSIFONF.js} +1 -1
- package/dist/chunks/{config-JPX6NJMJ.js → config-6TQFY5DN.js} +1 -1
- package/dist/chunks/{config-YMUUPO3R.js → config-Y3JEZPVK.js} +1 -1
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{connect-git-provider-KLSBCSD2.js → connect-git-provider-HW23GK35.js} +1 -1
- package/dist/chunks/{constants-G4UYVLOF.js → constants-JAB7MRSK.js} +1 -1
- package/dist/chunks/{create-project-SRQGD4JY.js → create-project-IKCB6MB2.js} +1 -1
- package/dist/chunks/{delete-EEY7M6XT.js → delete-HAOLSE35.js} +1 -1
- package/dist/chunks/{delete-E7J4B5E5.js → delete-ZISJ7HIW.js} +1 -1
- package/dist/chunks/detect-projects-3CQ6ANGU.js +7 -0
- package/dist/chunks/detect-services-22KZAGH2.js +7 -0
- package/dist/chunks/{disable-5TKY6JK2.js → disable-ZCEEK2BD.js} +1 -1
- package/dist/chunks/{discard-ALSOF66H.js → discard-VHO5BXYN.js} +1 -1
- package/dist/chunks/{edit-ISUCMYNW.js → edit-JRYFZ5N5.js} +1 -1
- package/dist/chunks/{edit-2M3KEE3H.js → edit-ZPNWEZWU.js} +1 -1
- package/dist/chunks/{enable-2QTTTYQD.js → enable-USQVAN4K.js} +1 -1
- package/dist/chunks/{esm-SZZI53W7.js → esm-33752ISR.js} +1 -1
- package/dist/chunks/esm-4JKEE7PC.js +7 -0
- package/dist/chunks/{esm-CXICLFA3.js → esm-BYG5BWYH.js} +1 -1
- package/dist/chunks/{esm-NQRLKALI.js → esm-DFFBNKNU.js} +1 -1
- package/dist/chunks/{esm-7HVUFWMN.js → esm-IF453UWS.js} +1 -1
- package/dist/chunks/{esm-BZBEM7YA.js → esm-LABWDJ72.js} +1 -1
- package/dist/chunks/{esm-HDEHVK7I.js → esm-TG37FXTU.js} +1 -1
- package/dist/chunks/{exec-XIQJ2A3J.js → exec-QZXH5RXR.js} +1 -1
- package/dist/chunks/{export-PV2NDS7C.js → export-H7YV6NVF.js} +1 -1
- package/dist/chunks/{fetch-proxy-AEAWC6MD.js → fetch-proxy-OC6B22AW.js} +1 -1
- package/dist/chunks/future-PHRPWAVY.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-WLYVWTBG.js +7 -0
- package/dist/chunks/{image-6GL2UOA2.js → image-6KIQRC65.js} +1 -1
- package/dist/chunks/import-builders-YAC6UE33.js +7 -0
- package/dist/chunks/{inspect-FK6GC5JZ.js → inspect-BQELJ5EI.js} +1 -1
- package/dist/chunks/{inspect-UNL54246.js → inspect-DWOQ6566.js} +1 -1
- package/dist/chunks/{inspect-ORVORGUM.js → inspect-HJQWRFHR.js} +1 -1
- package/dist/chunks/{inspect-LZMU7RIU.js → inspect-MRJ6JO7M.js} +1 -1
- package/dist/chunks/{inspect-3HGROSZO.js → inspect-SEGNEPGI.js} +1 -1
- package/dist/chunks/{list-FVUIZPC7.js → list-HS54LLJ5.js} +1 -1
- package/dist/chunks/{list-WOUJM4WR.js → list-OCU47YHP.js} +1 -1
- package/dist/chunks/{list-EWJI2WSQ.js → list-S2XKQMNX.js} +1 -1
- package/dist/chunks/{login-JREQ7SLY.js → login-K6VYVJPS.js} +1 -1
- package/dist/chunks/login-SKAMFH7S.js +7 -0
- package/dist/chunks/logs-KZSKOQUN.js +7 -0
- package/dist/chunks/{ls-4COX4SMJ.js → ls-DTEGGHQA.js} +1 -1
- package/dist/chunks/{ls-W5SJUIHD.js → ls-G5NTVYUB.js} +1 -1
- package/dist/chunks/{ls-LXBUE4LZ.js → ls-LBBI45ZT.js} +1 -1
- package/dist/chunks/{ls-6DOYSBQM.js → ls-LCY7BHOP.js} +1 -1
- package/dist/chunks/{ls-RBWPVJ5G.js → ls-NUM6IQL6.js} +1 -1
- package/dist/chunks/{ls-6CD2OQGA.js → ls-TE7BAMHR.js} +1 -1
- package/dist/chunks/{ls-AHT2FRGM.js → ls-ZYM3DQXI.js} +1 -1
- package/dist/chunks/{mutate-TVUHBRBK.js → mutate-BAFVNNRU.js} +1 -1
- package/dist/chunks/{notifications-OXOSD6UK.js → notifications-3EB3ZEU3.js} +1 -1
- package/dist/chunks/{open-SWPHB54M.js → open-J4X5KJ6A.js} +1 -1
- package/dist/chunks/{openapi-32XHDVJL.js → openapi-C5BHMHWS.js} +1 -1
- package/dist/chunks/{permissions-A4WMGETJ.js → permissions-JMFKPIO4.js} +1 -1
- package/dist/chunks/{pkg-YFU67U7I.js → pkg-EDJQLCNP.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-VS3ZJSCQ.js +7 -0
- package/dist/chunks/{publish-2CS4RYJW.js → publish-WWI5HOAL.js} +1 -1
- package/dist/chunks/pull-MTQAMT4L.js +7 -0
- package/dist/chunks/purchase-domain-if-available-ZIIAF7CC.js +7 -0
- package/dist/chunks/{push-OPRW7M4I.js → push-PBKUSKXQ.js} +1 -1
- package/dist/chunks/{query-22PGP7BC.js → query-5VGUVE2A.js} +2 -2
- package/dist/chunks/{reauthenticate-LMR25CIE.js → reauthenticate-UGBXSWZE.js} +1 -1
- package/dist/chunks/{reorder-Y3NMEA2S.js → reorder-S2ZJML5K.js} +1 -1
- package/dist/chunks/{reply-YEZHST2Q.js → reply-3GFULOMZ.js} +1 -1
- package/dist/chunks/{repo-info-to-url-SK3VX6UL.js → repo-info-to-url-XQSULSEO.js} +1 -1
- package/dist/chunks/{resolve-QC37E2EB.js → resolve-USEBSFUT.js} +1 -1
- package/dist/chunks/{resolve-deployment-framework-preset-QEPJNWVF.js → resolve-deployment-framework-preset-JPT2MRPA.js} +1 -1
- package/dist/chunks/{restore-RMQVGYQB.js → restore-JD7IGDTY.js} +1 -1
- package/dist/chunks/{rm-42U6SPVV.js → rm-3V47KPK6.js} +1 -1
- package/dist/chunks/{rm-4MSUYUEP.js → rm-ARMNSPGQ.js} +1 -1
- package/dist/chunks/{rm-DPHE34CD.js → rm-BYOBKSWY.js} +1 -1
- package/dist/chunks/{rm-43MPIHP3.js → rm-EQYVIFNX.js} +1 -1
- package/dist/chunks/{rm-JHWXYHJY.js → rm-RHRKS7XG.js} +1 -1
- package/dist/chunks/{routes-2GTCE542.js → routes-NID5V7EJ.js} +1 -1
- package/dist/chunks/rule-inspect-5DZ7OXGE.js +8 -0
- package/dist/chunks/{rules-6KWBVUF2.js → rules-CM2ARIWZ.js} +1 -1
- package/dist/chunks/{schema-OUFU5V7Z.js → schema-SZUKDSY2.js} +1 -1
- package/dist/chunks/{schema-S2DE7S5N.js → schema-V75RRXXF.js} +1 -1
- package/dist/chunks/select-org-SH4JT6RI.js +7 -0
- package/dist/chunks/{set-VXSNREF4.js → set-LY4YI5FZ.js} +1 -1
- package/dist/chunks/setup-and-link-MWLALWAS.js +7 -0
- package/dist/chunks/{slugify-O5DBATYT.js → slugify-NMMUASYK.js} +1 -1
- package/dist/chunks/stamp-TKONNIJ5.js +7 -0
- package/dist/chunks/{tags-AGLQDT3Z.js → tags-P5GB7HTF.js} +1 -1
- package/dist/chunks/{types-GQNKYZJH.js → types-OC7OTQNK.js} +1 -1
- package/dist/chunks/{update-TI3YRVQT.js → update-SOD622HT.js} +1 -1
- package/dist/chunks/{update-route-version-XZAFPQJC.js → update-route-version-KWK5S4UW.js} +1 -1
- package/dist/chunks/{utils-5BFO5HC4.js → utils-IQZEE4DT.js} +1 -1
- package/dist/chunks/{vlt-builder-graph-S4YJ5UTQ.js → vlt-builder-graph-XL2XRO4V.js} +1 -1
- package/dist/chunks/{vlt-builder-importer-2ITR3DMQ.js → vlt-builder-importer-RBUPAB6J.js} +1 -1
- package/dist/commands/build/index.js +3 -3
- package/dist/commands/deploy/index.js +6 -6
- package/dist/commands/dev/index.js +7 -7
- package/dist/commands/env/index.js +1 -1
- package/dist/commands/link/index.js +1 -1
- package/dist/commands/list/index.js +1 -1
- package/dist/commands-bulk.js +441 -428
- package/dist/help.js +1 -1
- package/dist/index.js +2 -2
- package/dist/internal-build-worker.js +1 -1
- package/dist/internal-build.js +2 -2
- package/dist/vc.js +60 -2
- package/dist/version.mjs +1 -1
- package/package.json +53 -53
- package/dist/chunks/chunk-APSIFBD4.js +0 -7
- package/dist/chunks/chunk-EQ24OC5G.js +0 -24
- package/dist/chunks/chunk-ONPJXQQ6.js +0 -10
- package/dist/chunks/chunk-Q2YQSMIB.js +0 -26
- package/dist/chunks/chunk-SMC4MGY5.js +0 -7
- package/dist/chunks/chunk-YTIANIL7.js +0 -11
- package/dist/chunks/detect-projects-AWDCPVLE.js +0 -7
- package/dist/chunks/detect-services-E2TWAKQS.js +0 -7
- package/dist/chunks/esm-WGJFGCLK.js +0 -7
- package/dist/chunks/future-SQS5POAL.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-4EJRA7MS.js +0 -7
- package/dist/chunks/import-builders-KAZMYQCR.js +0 -7
- package/dist/chunks/login-IJLY5XTT.js +0 -7
- package/dist/chunks/logs-Z7IMGFO2.js +0 -7
- package/dist/chunks/prompt-missing-credentials-6IXO6VND.js +0 -7
- package/dist/chunks/pull-WWUH4M5V.js +0 -7
- package/dist/chunks/purchase-domain-if-available-TAXCYIV7.js +0 -7
- package/dist/chunks/rule-inspect-7LIPL5YY.js +0 -8
- package/dist/chunks/select-org-EL66MG67.js +0 -7
- package/dist/chunks/setup-and-link-I7SGZNGO.js +0 -7
- package/dist/chunks/stamp-OX4YO3KY.js +0 -7
|
@@ -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{require_inherits}from"./chunk-L3JDEHCQ.js";import{require_frameworks}from"./chunk-23NBYS6R.js";import{require_once,require_wrappy}from"./chunk-SOJCELXH.js";import{require_dist}from"./chunk-QGIQK47P.js";import{__commonJS,__require}from"./chunk-6L236MNA.js";var require_concat_map=__commonJS({"../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports,module){module.exports=function(xs,fn){for(var res=[],i=0;i<xs.length;i++){var x=fn(xs[i],i);isArray(x)?res.push.apply(res,x):res.push(x)}return res};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"}}});var require_balanced_match=__commonJS({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports,module){"use strict";module.exports=balanced;function balanced(a,b,str){a instanceof RegExp&&(a=maybeMatch(a,str)),b instanceof RegExp&&(b=maybeMatch(b,str));var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced.range=range;function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){if(a===b)return[ai,bi];for(begs=[],left=str.length;i>=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):begs.length==1?result=[begs.pop(),bi]:(beg=begs.pop(),beg<left&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=ai<bi&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}}});var require_brace_expansion=__commonJS({"../../node_modules/.pnpm/brace-expansion@1.1.15/node_modules/brace-expansion/index.js"(exports,module){var concatMap=require_concat_map(),balanced=require_balanced_match();module.exports=expandTop;var escSlash="\0SLASH"+Math.random()+"\0",escOpen="\0OPEN"+Math.random()+"\0",escClose="\0CLOSE"+Math.random()+"\0",escComma="\0COMMA"+Math.random()+"\0",escPeriod="\0PERIOD"+Math.random()+"\0";function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[],m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre,body=m.body,post=m.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);return post.length&&(p[p.length-1]+=postParts.shift(),p.push.apply(p,postParts)),parts.push.apply(parts,p),parts}function expandTop(str,options){if(!str)return[];options=options||{};var max=options.max==null?1/0:options.max;return str.substr(0,2)==="{}"&&(str="\\{\\}"+str.substr(2)),expand(escapeBraces(str),max,!0).map(unescapeBraces)}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return i<=y}function gte(i,y){return i>=y}function expand(str,max,isTop){var expansions=[],m=balanced("{","}",str);if(!m||/\$$/.test(m.pre))return[str];var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),isSequence=isNumericSequence||isAlphaSequence,isOptions=m.body.indexOf(",")>=0;if(!isSequence&&!isOptions)return m.post.match(/,(?!,).*\}/)?(str=m.pre+"{"+m.body+escClose+m.post,expand(str,max,!0)):[str];var n;if(isSequence)n=m.body.split(/\.\./);else if(n=parseCommaParts(m.body),n.length===1&&(n=expand(n[0],max,!1).map(embrace),n.length===1)){var post=m.post.length?expand(m.post,max,!1):[""];return post.map(function(p){return m.pre+n[0]+p})}var pre=m.pre,post=m.post.length?expand(m.post,max,!1):[""],N;if(isSequence){var x=numeric(n[0]),y=numeric(n[1]),width=Math.max(n[0].length,n[1].length),incr=n.length==3?Math.max(Math.abs(numeric(n[2])),1):1,test=lte,reverse=y<x;reverse&&(incr*=-1,test=gte);var pad=n.some(isPadded);N=[];for(var i=x;test(i,y)&&N.length<max;i+=incr){var c;if(isAlphaSequence)c=String.fromCharCode(i),c==="\\"&&(c="");else if(c=String(i),pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");i<0?c="-"+z+c.slice(1):c=z+c}}N.push(c)}}else N=concatMap(n,function(el){return expand(el,max,!1)});for(var j=0;j<N.length;j++)for(var k=0;k<post.length&&expansions.length<max;k++){var expansion=pre+N[j]+post[k];(!isTop||isSequence||expansion)&&expansions.push(expansion)}return expansions}}});var require_minimatch=__commonJS({"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports,module){module.exports=minimatch;minimatch.Minimatch=Minimatch;var path=function(){try{return __require("path")}catch{}}()||{sep:"/"};minimatch.sep=path.sep;var GLOBSTAR=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},expand=require_brace_expansion(),plTypes={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},qmark="[^/]",star=qmark+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",reSpecials=charSet("().*{}+?[]^$\\!");function charSet(s){return s.split("").reduce(function(set,c){return set[c]=!0,set},{})}var slashSplit=/\/+/;minimatch.filter=filter;function filter(pattern,options){return options=options||{},function(p,i,list){return minimatch(p,pattern,options)}}function ext(a,b){b=b||{};var t={};return Object.keys(a).forEach(function(k){t[k]=a[k]}),Object.keys(b).forEach(function(k){t[k]=b[k]}),t}minimatch.defaults=function(def){if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;var orig=minimatch,m=function(p,pattern,options){return orig(p,pattern,ext(def,options))};return m.Minimatch=function(pattern,options){return new orig.Minimatch(pattern,ext(def,options))},m.Minimatch.defaults=function(options){return orig.defaults(ext(def,options)).Minimatch},m.filter=function(pattern,options){return orig.filter(pattern,ext(def,options))},m.defaults=function(options){return orig.defaults(ext(def,options))},m.makeRe=function(pattern,options){return orig.makeRe(pattern,ext(def,options))},m.braceExpand=function(pattern,options){return orig.braceExpand(pattern,ext(def,options))},m.match=function(list,pattern,options){return orig.match(list,pattern,ext(def,options))},m};Minimatch.defaults=function(def){return minimatch.defaults(def).Minimatch};function minimatch(p,pattern,options){return assertValidPattern(pattern),options||(options={}),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p)}function Minimatch(pattern,options){if(!(this instanceof Minimatch))return new Minimatch(pattern,options);assertValidPattern(pattern),options||(options={}),pattern=pattern.trim(),!options.allowWindowsEscape&&path.sep!=="/"&&(pattern=pattern.split(path.sep).join("/")),this.options=options,this.set=[],this.pattern=pattern,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!options.partial,this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var pattern=this.pattern,options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=!0;return}if(!pattern){this.empty=!0;return}this.parseNegate();var set=this.globSet=this.braceExpand();options.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,set),set=this.globParts=set.map(function(s){return s.split(slashSplit)}),this.debug(this.pattern,set),set=set.map(function(s,si,set2){return s.map(this.parse,this)},this),this.debug(this.pattern,set),set=set.filter(function(s){return s.indexOf(!1)===-1}),this.debug(this.pattern,set),this.set=set}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var pattern=this.pattern,negate=!1,options=this.options,negateOffset=0;if(!options.nonegate){for(var i=0,l=pattern.length;i<l&&pattern.charAt(i)==="!";i++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.substr(negateOffset)),this.negate=negate}}minimatch.braceExpand=function(pattern,options){return braceExpand(pattern,options)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(pattern,options){return options||(this instanceof Minimatch?options=this.options:options={}),pattern=typeof pattern>"u"?this.pattern:pattern,assertValidPattern(pattern),options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)?[pattern]:expand(pattern)}var MAX_PATTERN_LENGTH=1024*64,assertValidPattern=function(pattern){if(typeof pattern!="string")throw new TypeError("invalid pattern");if(pattern.length>MAX_PATTERN_LENGTH)throw new TypeError("pattern is too long")};Minimatch.prototype.parse=parse;var SUBPARSE={};function parse(pattern,isSub){assertValidPattern(pattern);var options=this.options;if(pattern==="**")if(options.noglobstar)pattern="*";else return GLOBSTAR;if(pattern==="")return"";var re="",hasMagic=!!options.nocase,escaping=!1,patternListStack=[],negativeLists=[],stateChar,inClass=!1,reClassStart=-1,classStart=-1,patternStart=pattern.charAt(0)==="."?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",self=this;function clearStateChar(){if(stateChar){switch(stateChar){case"*":re+=star,hasMagic=!0;break;case"?":re+=qmark,hasMagic=!0;break;default:re+="\\"+stateChar;break}self.debug("clearStateChar %j %j",stateChar,re),stateChar=!1}}for(var i=0,len=pattern.length,c;i<len&&(c=pattern.charAt(i));i++){if(this.debug("%s %s %s %j",pattern,i,re,c),escaping&&reSpecials[c]){re+="\\"+c,escaping=!1;continue}switch(c){case"/":return!1;case"\\":clearStateChar(),escaping=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",pattern,i,re,c),inClass){this.debug(" in class"),c==="!"&&i===classStart+1&&(c="^"),re+=c;continue}self.debug("call clearStateChar %j",stateChar),clearStateChar(),stateChar=c,options.noext&&clearStateChar();continue;case"(":if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}patternListStack.push({type:stateChar,start:i-1,reStart:re.length,open:plTypes[stateChar].open,close:plTypes[stateChar].close}),re+=stateChar==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",stateChar,re),stateChar=!1;continue;case")":if(inClass||!patternListStack.length){re+="\\)";continue}clearStateChar(),hasMagic=!0;var pl=patternListStack.pop();re+=pl.close,pl.type==="!"&&negativeLists.push(pl),pl.reEnd=re.length;continue;case"|":if(inClass||!patternListStack.length||escaping){re+="\\|",escaping=!1;continue}clearStateChar(),re+="|";continue;case"[":if(clearStateChar(),inClass){re+="\\"+c;continue}inClass=!0,classStart=i,reClassStart=re.length,re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c,escaping=!1;continue}var cs=pattern.substring(classStart+1,i);try{RegExp("["+cs+"]")}catch{var sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+"\\["+sp[0]+"\\]",hasMagic=hasMagic||sp[1],inClass=!1;continue}hasMagic=!0,inClass=!1,re+=c;continue;default:clearStateChar(),escaping?escaping=!1:reSpecials[c]&&!(c==="^"&&inClass)&&(re+="\\"),re+=c}}for(inClass&&(cs=pattern.substr(classStart+1),sp=this.parse(cs,SUBPARSE),re=re.substr(0,reClassStart)+"\\["+sp[0],hasMagic=hasMagic||sp[1]),pl=patternListStack.pop();pl;pl=patternListStack.pop()){var tail=re.slice(pl.reStart+pl.open.length);this.debug("setting tail",re,pl),tail=tail.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(_,$1,$2){return $2||($2="\\"),$1+$1+$2+"|"}),this.debug(`tail=%j
|
|
7
|
+
import{require_inherits}from"./chunk-7EJQLVWX.js";import{require_frameworks}from"./chunk-MVCAUS4F.js";import{require_once,require_wrappy}from"./chunk-SCV7XEEO.js";import{require_dist}from"./chunk-RM3ZDRYE.js";import{__commonJS,__require}from"./chunk-BZENIQ7N.js";var require_concat_map=__commonJS({"../../node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js"(exports,module){module.exports=function(xs,fn){for(var res=[],i=0;i<xs.length;i++){var x=fn(xs[i],i);isArray(x)?res.push.apply(res,x):res.push(x)}return res};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"}}});var require_balanced_match=__commonJS({"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports,module){"use strict";module.exports=balanced;function balanced(a,b,str){a instanceof RegExp&&(a=maybeMatch(a,str)),b instanceof RegExp&&(b=maybeMatch(b,str));var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function maybeMatch(reg,str){var m=str.match(reg);return m?m[0]:null}balanced.range=range;function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){if(a===b)return[ai,bi];for(begs=[],left=str.length;i>=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):begs.length==1?result=[begs.pop(),bi]:(beg=begs.pop(),beg<left&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=ai<bi&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}}});var require_brace_expansion=__commonJS({"../../node_modules/.pnpm/brace-expansion@1.1.15/node_modules/brace-expansion/index.js"(exports,module){var concatMap=require_concat_map(),balanced=require_balanced_match();module.exports=expandTop;var escSlash="\0SLASH"+Math.random()+"\0",escOpen="\0OPEN"+Math.random()+"\0",escClose="\0CLOSE"+Math.random()+"\0",escComma="\0COMMA"+Math.random()+"\0",escPeriod="\0PERIOD"+Math.random()+"\0";function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[],m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre,body=m.body,post=m.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);return post.length&&(p[p.length-1]+=postParts.shift(),p.push.apply(p,postParts)),parts.push.apply(parts,p),parts}function expandTop(str,options){if(!str)return[];options=options||{};var max=options.max==null?1/0:options.max;return str.substr(0,2)==="{}"&&(str="\\{\\}"+str.substr(2)),expand(escapeBraces(str),max,!0).map(unescapeBraces)}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return i<=y}function gte(i,y){return i>=y}function expand(str,max,isTop){var expansions=[],m=balanced("{","}",str);if(!m||/\$$/.test(m.pre))return[str];var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),isSequence=isNumericSequence||isAlphaSequence,isOptions=m.body.indexOf(",")>=0;if(!isSequence&&!isOptions)return m.post.match(/,(?!,).*\}/)?(str=m.pre+"{"+m.body+escClose+m.post,expand(str,max,!0)):[str];var n;if(isSequence)n=m.body.split(/\.\./);else if(n=parseCommaParts(m.body),n.length===1&&(n=expand(n[0],max,!1).map(embrace),n.length===1)){var post=m.post.length?expand(m.post,max,!1):[""];return post.map(function(p){return m.pre+n[0]+p})}var pre=m.pre,post=m.post.length?expand(m.post,max,!1):[""],N;if(isSequence){var x=numeric(n[0]),y=numeric(n[1]),width=Math.max(n[0].length,n[1].length),incr=n.length==3?Math.max(Math.abs(numeric(n[2])),1):1,test=lte,reverse=y<x;reverse&&(incr*=-1,test=gte);var pad=n.some(isPadded);N=[];for(var i=x;test(i,y)&&N.length<max;i+=incr){var c;if(isAlphaSequence)c=String.fromCharCode(i),c==="\\"&&(c="");else if(c=String(i),pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");i<0?c="-"+z+c.slice(1):c=z+c}}N.push(c)}}else N=concatMap(n,function(el){return expand(el,max,!1)});for(var j=0;j<N.length;j++)for(var k=0;k<post.length&&expansions.length<max;k++){var expansion=pre+N[j]+post[k];(!isTop||isSequence||expansion)&&expansions.push(expansion)}return expansions}}});var require_minimatch=__commonJS({"../../node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports,module){module.exports=minimatch;minimatch.Minimatch=Minimatch;var path=function(){try{return __require("path")}catch{}}()||{sep:"/"};minimatch.sep=path.sep;var GLOBSTAR=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},expand=require_brace_expansion(),plTypes={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},qmark="[^/]",star=qmark+"*?",twoStarDot="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",twoStarNoDot="(?:(?!(?:\\/|^)\\.).)*?",reSpecials=charSet("().*{}+?[]^$\\!");function charSet(s){return s.split("").reduce(function(set,c){return set[c]=!0,set},{})}var slashSplit=/\/+/;minimatch.filter=filter;function filter(pattern,options){return options=options||{},function(p,i,list){return minimatch(p,pattern,options)}}function ext(a,b){b=b||{};var t={};return Object.keys(a).forEach(function(k){t[k]=a[k]}),Object.keys(b).forEach(function(k){t[k]=b[k]}),t}minimatch.defaults=function(def){if(!def||typeof def!="object"||!Object.keys(def).length)return minimatch;var orig=minimatch,m=function(p,pattern,options){return orig(p,pattern,ext(def,options))};return m.Minimatch=function(pattern,options){return new orig.Minimatch(pattern,ext(def,options))},m.Minimatch.defaults=function(options){return orig.defaults(ext(def,options)).Minimatch},m.filter=function(pattern,options){return orig.filter(pattern,ext(def,options))},m.defaults=function(options){return orig.defaults(ext(def,options))},m.makeRe=function(pattern,options){return orig.makeRe(pattern,ext(def,options))},m.braceExpand=function(pattern,options){return orig.braceExpand(pattern,ext(def,options))},m.match=function(list,pattern,options){return orig.match(list,pattern,ext(def,options))},m};Minimatch.defaults=function(def){return minimatch.defaults(def).Minimatch};function minimatch(p,pattern,options){return assertValidPattern(pattern),options||(options={}),!options.nocomment&&pattern.charAt(0)==="#"?!1:new Minimatch(pattern,options).match(p)}function Minimatch(pattern,options){if(!(this instanceof Minimatch))return new Minimatch(pattern,options);assertValidPattern(pattern),options||(options={}),pattern=pattern.trim(),!options.allowWindowsEscape&&path.sep!=="/"&&(pattern=pattern.split(path.sep).join("/")),this.options=options,this.set=[],this.pattern=pattern,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!options.partial,this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var pattern=this.pattern,options=this.options;if(!options.nocomment&&pattern.charAt(0)==="#"){this.comment=!0;return}if(!pattern){this.empty=!0;return}this.parseNegate();var set=this.globSet=this.braceExpand();options.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,set),set=this.globParts=set.map(function(s){return s.split(slashSplit)}),this.debug(this.pattern,set),set=set.map(function(s,si,set2){return s.map(this.parse,this)},this),this.debug(this.pattern,set),set=set.filter(function(s){return s.indexOf(!1)===-1}),this.debug(this.pattern,set),this.set=set}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var pattern=this.pattern,negate=!1,options=this.options,negateOffset=0;if(!options.nonegate){for(var i=0,l=pattern.length;i<l&&pattern.charAt(i)==="!";i++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.substr(negateOffset)),this.negate=negate}}minimatch.braceExpand=function(pattern,options){return braceExpand(pattern,options)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(pattern,options){return options||(this instanceof Minimatch?options=this.options:options={}),pattern=typeof pattern>"u"?this.pattern:pattern,assertValidPattern(pattern),options.nobrace||!/\{(?:(?!\{).)*\}/.test(pattern)?[pattern]:expand(pattern)}var MAX_PATTERN_LENGTH=1024*64,assertValidPattern=function(pattern){if(typeof pattern!="string")throw new TypeError("invalid pattern");if(pattern.length>MAX_PATTERN_LENGTH)throw new TypeError("pattern is too long")};Minimatch.prototype.parse=parse;var SUBPARSE={};function parse(pattern,isSub){assertValidPattern(pattern);var options=this.options;if(pattern==="**")if(options.noglobstar)pattern="*";else return GLOBSTAR;if(pattern==="")return"";var re="",hasMagic=!!options.nocase,escaping=!1,patternListStack=[],negativeLists=[],stateChar,inClass=!1,reClassStart=-1,classStart=-1,patternStart=pattern.charAt(0)==="."?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",self=this;function clearStateChar(){if(stateChar){switch(stateChar){case"*":re+=star,hasMagic=!0;break;case"?":re+=qmark,hasMagic=!0;break;default:re+="\\"+stateChar;break}self.debug("clearStateChar %j %j",stateChar,re),stateChar=!1}}for(var i=0,len=pattern.length,c;i<len&&(c=pattern.charAt(i));i++){if(this.debug("%s %s %s %j",pattern,i,re,c),escaping&&reSpecials[c]){re+="\\"+c,escaping=!1;continue}switch(c){case"/":return!1;case"\\":clearStateChar(),escaping=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",pattern,i,re,c),inClass){this.debug(" in class"),c==="!"&&i===classStart+1&&(c="^"),re+=c;continue}self.debug("call clearStateChar %j",stateChar),clearStateChar(),stateChar=c,options.noext&&clearStateChar();continue;case"(":if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}patternListStack.push({type:stateChar,start:i-1,reStart:re.length,open:plTypes[stateChar].open,close:plTypes[stateChar].close}),re+=stateChar==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",stateChar,re),stateChar=!1;continue;case")":if(inClass||!patternListStack.length){re+="\\)";continue}clearStateChar(),hasMagic=!0;var pl=patternListStack.pop();re+=pl.close,pl.type==="!"&&negativeLists.push(pl),pl.reEnd=re.length;continue;case"|":if(inClass||!patternListStack.length||escaping){re+="\\|",escaping=!1;continue}clearStateChar(),re+="|";continue;case"[":if(clearStateChar(),inClass){re+="\\"+c;continue}inClass=!0,classStart=i,reClassStart=re.length,re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c,escaping=!1;continue}var cs=pattern.substring(classStart+1,i);try{RegExp("["+cs+"]")}catch{var sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+"\\["+sp[0]+"\\]",hasMagic=hasMagic||sp[1],inClass=!1;continue}hasMagic=!0,inClass=!1,re+=c;continue;default:clearStateChar(),escaping?escaping=!1:reSpecials[c]&&!(c==="^"&&inClass)&&(re+="\\"),re+=c}}for(inClass&&(cs=pattern.substr(classStart+1),sp=this.parse(cs,SUBPARSE),re=re.substr(0,reClassStart)+"\\["+sp[0],hasMagic=hasMagic||sp[1]),pl=patternListStack.pop();pl;pl=patternListStack.pop()){var tail=re.slice(pl.reStart+pl.open.length);this.debug("setting tail",re,pl),tail=tail.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(_,$1,$2){return $2||($2="\\"),$1+$1+$2+"|"}),this.debug(`tail=%j
|
|
8
8
|
%s`,tail,tail,pl,re);var t=pl.type==="*"?star:pl.type==="?"?qmark:"\\"+pl.type;hasMagic=!0,re=re.slice(0,pl.reStart)+t+"\\("+tail}clearStateChar(),escaping&&(re+="\\\\");var addPatternStart=!1;switch(re.charAt(0)){case"[":case".":case"(":addPatternStart=!0}for(var n=negativeLists.length-1;n>-1;n--){var nl=negativeLists[n],nlBefore=re.slice(0,nl.reStart),nlFirst=re.slice(nl.reStart,nl.reEnd-8),nlLast=re.slice(nl.reEnd-8,nl.reEnd),nlAfter=re.slice(nl.reEnd);nlLast+=nlAfter;var openParensBefore=nlBefore.split("(").length-1,cleanAfter=nlAfter;for(i=0;i<openParensBefore;i++)cleanAfter=cleanAfter.replace(/\)[+*?]?/,"");nlAfter=cleanAfter;var dollar="";nlAfter===""&&isSub!==SUBPARSE&&(dollar="$");var newRe=nlBefore+nlFirst+nlAfter+dollar+nlLast;re=newRe}if(re!==""&&hasMagic&&(re="(?=.)"+re),addPatternStart&&(re=patternStart+re),isSub===SUBPARSE)return[re,hasMagic];if(!hasMagic)return globUnescape(pattern);var flags=options.nocase?"i":"";try{var regExp=new RegExp("^"+re+"$",flags)}catch{return new RegExp("$.")}return regExp._glob=pattern,regExp._src=re,regExp}minimatch.makeRe=function(pattern,options){return new Minimatch(pattern,options||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var set=this.set;if(!set.length)return this.regexp=!1,this.regexp;var options=this.options,twoStar=options.noglobstar?star:options.dot?twoStarDot:twoStarNoDot,flags=options.nocase?"i":"",re=set.map(function(pattern){return pattern.map(function(p){return p===GLOBSTAR?twoStar:typeof p=="string"?regExpEscape(p):p._src}).join("\\/")}).join("|");re="^(?:"+re+")$",this.negate&&(re="^(?!"+re+").*$");try{this.regexp=new RegExp(re,flags)}catch{this.regexp=!1}return this.regexp}minimatch.match=function(list,pattern,options){options=options||{};var mm=new Minimatch(pattern,options);return list=list.filter(function(f){return mm.match(f)}),mm.options.nonull&&!list.length&&list.push(pattern),list};Minimatch.prototype.match=function(f,partial){if(typeof partial>"u"&&(partial=this.partial),this.debug("match",f,this.pattern),this.comment)return!1;if(this.empty)return f==="";if(f==="/"&&partial)return!0;var options=this.options;path.sep!=="/"&&(f=f.split(path.sep).join("/")),f=f.split(slashSplit),this.debug(this.pattern,"split",f);var set=this.set;this.debug(this.pattern,"set",set);var filename,i;for(i=f.length-1;i>=0&&(filename=f[i],!filename);i--);for(i=0;i<set.length;i++){var pattern=set[i],file=f;options.matchBase&&pattern.length===1&&(file=[filename]);var hit=this.matchOne(file,pattern,partial);if(hit)return options.flipNegate?!0:!this.negate}return options.flipNegate?!1:this.negate};Minimatch.prototype.matchOne=function(file,pattern,partial){var options=this.options;this.debug("matchOne",{this:this,file,pattern}),this.debug("matchOne",file.length,pattern.length);for(var fi=0,pi=0,fl=file.length,pl=pattern.length;fi<fl&&pi<pl;fi++,pi++){this.debug("matchOne loop");var p=pattern[pi],f=file[fi];if(this.debug(pattern,p,f),p===!1)return!1;if(p===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p,f]);var fr=fi,pr=pi+1;if(pr===pl){for(this.debug("** at the end");fi<fl;fi++)if(file[fi]==="."||file[fi]===".."||!options.dot&&file[fi].charAt(0)===".")return!1;return!0}for(;fr<fl;){var swallowee=file[fr];if(this.debug(`
|
|
9
9
|
globstar while`,file,fr,pattern,pr,swallowee),this.matchOne(file.slice(fr),pattern.slice(pr),partial))return this.debug("globstar found match!",fr,fl,swallowee),!0;if(swallowee==="."||swallowee===".."||!options.dot&&swallowee.charAt(0)==="."){this.debug("dot detected!",file,fr,pattern,pr);break}this.debug("globstar swallow a segment, and continue"),fr++}return!!(partial&&(this.debug(`
|
|
10
10
|
>>> no match, partial?`,file,fr,pattern,pr),fr===fl))}var hit;if(typeof p=="string"?(hit=f===p,this.debug("string match",p,f,hit)):(hit=f.match(p),this.debug("pattern match",p,f,hit)),!hit)return!1}if(fi===fl&&pi===pl)return!0;if(fi===fl)return partial;if(pi===pl)return fi===fl-1&&file[fi]==="";throw new Error("wtf?")};function globUnescape(s){return s.replace(/\\(.)/g,"$1")}function regExpEscape(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}});var require_semver=__commonJS({"../../node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"(exports,module){exports=module.exports=SemVer;var debug;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?debug=function(){var args=Array.prototype.slice.call(arguments,0);args.unshift("SEMVER"),console.log.apply(console,args)}:debug=function(){};exports.SEMVER_SPEC_VERSION="2.0.0";var MAX_LENGTH=256,MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH-6,re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.tokens={},R=0;function tok(n){t[n]=R++}var LETTERDASHNUMBER="[a-zA-Z0-9-]",safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]];function makeSafeRe(value){for(var i2=0;i2<safeRegexReplacements.length;i2++){var token=safeRegexReplacements[i2][0],max=safeRegexReplacements[i2][1];value=value.split(token+"*").join(token+"{0,"+max+"}").split(token+"+").join(token+"{1,"+max+"}")}return value}tok("NUMERICIDENTIFIER");src[t.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");src[t.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");src[t.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+LETTERDASHNUMBER+"*";tok("MAINVERSION");src[t.MAINVERSION]="("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")\\.("+src[t.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");src[t.MAINVERSIONLOOSE]="("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")\\.("+src[t.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");src[t.PRERELEASEIDENTIFIER]="(?:"+src[t.NUMERICIDENTIFIER]+"|"+src[t.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");src[t.PRERELEASEIDENTIFIERLOOSE]="(?:"+src[t.NUMERICIDENTIFIERLOOSE]+"|"+src[t.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");src[t.PRERELEASE]="(?:-("+src[t.PRERELEASEIDENTIFIER]+"(?:\\."+src[t.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");src[t.PRERELEASELOOSE]="(?:-?("+src[t.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+src[t.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");src[t.BUILDIDENTIFIER]=LETTERDASHNUMBER+"+";tok("BUILD");src[t.BUILD]="(?:\\+("+src[t.BUILDIDENTIFIER]+"(?:\\."+src[t.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");src[t.FULLPLAIN]="v?"+src[t.MAINVERSION]+src[t.PRERELEASE]+"?"+src[t.BUILD]+"?";src[t.FULL]="^"+src[t.FULLPLAIN]+"$";tok("LOOSEPLAIN");src[t.LOOSEPLAIN]="[v=\\s]*"+src[t.MAINVERSIONLOOSE]+src[t.PRERELEASELOOSE]+"?"+src[t.BUILD]+"?";tok("LOOSE");src[t.LOOSE]="^"+src[t.LOOSEPLAIN]+"$";tok("GTLT");src[t.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");src[t.XRANGEIDENTIFIERLOOSE]=src[t.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");src[t.XRANGEIDENTIFIER]=src[t.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");src[t.XRANGEPLAIN]="[v=\\s]*("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:\\.("+src[t.XRANGEIDENTIFIER]+")(?:"+src[t.PRERELEASE]+")?"+src[t.BUILD]+"?)?)?";tok("XRANGEPLAINLOOSE");src[t.XRANGEPLAINLOOSE]="[v=\\s]*("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+src[t.XRANGEIDENTIFIERLOOSE]+")(?:"+src[t.PRERELEASELOOSE]+")?"+src[t.BUILD]+"?)?)?";tok("XRANGE");src[t.XRANGE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAIN]+"$";tok("XRANGELOOSE");src[t.XRANGELOOSE]="^"+src[t.GTLT]+"\\s*"+src[t.XRANGEPLAINLOOSE]+"$";tok("COERCE");src[t.COERCE]="(^|[^\\d])(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"})(?:\\.(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"}))?(?:\\.(\\d{1,"+MAX_SAFE_COMPONENT_LENGTH+"}))?(?:$|[^\\d])";tok("COERCERTL");re[t.COERCERTL]=new RegExp(src[t.COERCE],"g");safeRe[t.COERCERTL]=new RegExp(makeSafeRe(src[t.COERCE]),"g");tok("LONETILDE");src[t.LONETILDE]="(?:~>?)";tok("TILDETRIM");src[t.TILDETRIM]="(\\s*)"+src[t.LONETILDE]+"\\s+";re[t.TILDETRIM]=new RegExp(src[t.TILDETRIM],"g");safeRe[t.TILDETRIM]=new RegExp(makeSafeRe(src[t.TILDETRIM]),"g");var tildeTrimReplace="$1~";tok("TILDE");src[t.TILDE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAIN]+"$";tok("TILDELOOSE");src[t.TILDELOOSE]="^"+src[t.LONETILDE]+src[t.XRANGEPLAINLOOSE]+"$";tok("LONECARET");src[t.LONECARET]="(?:\\^)";tok("CARETTRIM");src[t.CARETTRIM]="(\\s*)"+src[t.LONECARET]+"\\s+";re[t.CARETTRIM]=new RegExp(src[t.CARETTRIM],"g");safeRe[t.CARETTRIM]=new RegExp(makeSafeRe(src[t.CARETTRIM]),"g");var caretTrimReplace="$1^";tok("CARET");src[t.CARET]="^"+src[t.LONECARET]+src[t.XRANGEPLAIN]+"$";tok("CARETLOOSE");src[t.CARETLOOSE]="^"+src[t.LONECARET]+src[t.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");src[t.COMPARATORLOOSE]="^"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");src[t.COMPARATOR]="^"+src[t.GTLT]+"\\s*("+src[t.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");src[t.COMPARATORTRIM]="(\\s*)"+src[t.GTLT]+"\\s*("+src[t.LOOSEPLAIN]+"|"+src[t.XRANGEPLAIN]+")";re[t.COMPARATORTRIM]=new RegExp(src[t.COMPARATORTRIM],"g");safeRe[t.COMPARATORTRIM]=new RegExp(makeSafeRe(src[t.COMPARATORTRIM]),"g");var comparatorTrimReplace="$1$2$3";tok("HYPHENRANGE");src[t.HYPHENRANGE]="^\\s*("+src[t.XRANGEPLAIN]+")\\s+-\\s+("+src[t.XRANGEPLAIN]+")\\s*$";tok("HYPHENRANGELOOSE");src[t.HYPHENRANGELOOSE]="^\\s*("+src[t.XRANGEPLAINLOOSE]+")\\s+-\\s+("+src[t.XRANGEPLAINLOOSE]+")\\s*$";tok("STAR");src[t.STAR]="(<|>)?=?\\s*\\*";for(i=0;i<R;i++)debug(i,src[i]),re[i]||(re[i]=new RegExp(src[i]),safeRe[i]=new RegExp(makeSafeRe(src[i])));var i;exports.parse=parse;function parse(version,options){if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),version instanceof SemVer)return version;if(typeof version!="string"||version.length>MAX_LENGTH)return null;var r=options.loose?safeRe[t.LOOSE]:safeRe[t.FULL];if(!r.test(version))return null;try{return new SemVer(version,options)}catch{return null}}exports.valid=valid;function valid(version,options){var v=parse(version,options);return v?v.version:null}exports.clean=clean;function clean(version,options){var s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null}exports.SemVer=SemVer;function SemVer(version,options){if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),version instanceof SemVer){if(version.loose===options.loose)return version;version=version.version}else if(typeof version!="string")throw new TypeError("Invalid Version: "+version);if(version.length>MAX_LENGTH)throw new TypeError("version is longer than "+MAX_LENGTH+" characters");if(!(this instanceof SemVer))return new SemVer(version,options);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose;var m=version.trim().match(options.loose?safeRe[t.LOOSE]:safeRe[t.FULL]);if(!m)throw new TypeError("Invalid Version: "+version);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(function(id){if(/^[0-9]+$/.test(id)){var num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}SemVer.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(other){return debug("SemVer.compare",this.version,this.options,other),other instanceof SemVer||(other=new SemVer(other,this.options)),this.compareMain(other)||this.comparePre(other)};SemVer.prototype.compareMain=function(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)};SemVer.prototype.comparePre=function(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;var i2=0;do{var a=this.prerelease[i2],b=other.prerelease[i2];if(debug("prerelease compare",i2,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i2)};SemVer.prototype.compareBuild=function(other){other instanceof SemVer||(other=new SemVer(other,this.options));var i2=0;do{var a=this.build[i2],b=other.build[i2];if(debug("prerelease compare",i2,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i2)};SemVer.prototype.inc=function(release,identifier){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier),this.inc("pre",identifier);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier),this.inc("pre",identifier);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var i2=this.prerelease.length;--i2>=0;)typeof this.prerelease[i2]=="number"&&(this.prerelease[i2]++,i2=-2);i2===-1&&this.prerelease.push(0)}identifier&&(this.prerelease[0]===identifier?isNaN(this.prerelease[1])&&(this.prerelease=[identifier,0]):this.prerelease=[identifier,0]);break;default:throw new Error("invalid increment argument: "+release)}return this.format(),this.raw=this.version,this};exports.inc=inc;function inc(version,release,loose,identifier){typeof loose=="string"&&(identifier=loose,loose=void 0);try{return new SemVer(version,loose).inc(release,identifier).version}catch{return null}}exports.diff=diff;function diff(version1,version2){if(eq(version1,version2))return null;var v1=parse(version1),v2=parse(version2),prefix="";if(v1.prerelease.length||v2.prerelease.length){prefix="pre";var defaultResult="prerelease"}for(var key in v1)if((key==="major"||key==="minor"||key==="patch")&&v1[key]!==v2[key])return prefix+key;return defaultResult}exports.compareIdentifiers=compareIdentifiers;var numeric=/^[0-9]+$/;function compareIdentifiers(a,b){var anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1}exports.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(a,b){return compareIdentifiers(b,a)}exports.major=major;function major(a,loose){return new SemVer(a,loose).major}exports.minor=minor;function minor(a,loose){return new SemVer(a,loose).minor}exports.patch=patch;function patch(a,loose){return new SemVer(a,loose).patch}exports.compare=compare;function compare(a,b,loose){return new SemVer(a,loose).compare(new SemVer(b,loose))}exports.compareLoose=compareLoose;function compareLoose(a,b){return compare(a,b,!0)}exports.compareBuild=compareBuild;function compareBuild(a,b,loose){var versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)}exports.rcompare=rcompare;function rcompare(a,b,loose){return compare(b,a,loose)}exports.sort=sort;function sort(list,loose){return list.sort(function(a,b){return exports.compareBuild(a,b,loose)})}exports.rsort=rsort;function rsort(list,loose){return list.sort(function(a,b){return exports.compareBuild(b,a,loose)})}exports.gt=gt;function gt(a,b,loose){return compare(a,b,loose)>0}exports.lt=lt;function lt(a,b,loose){return compare(a,b,loose)<0}exports.eq=eq;function eq(a,b,loose){return compare(a,b,loose)===0}exports.neq=neq;function neq(a,b,loose){return compare(a,b,loose)!==0}exports.gte=gte;function gte(a,b,loose){return compare(a,b,loose)>=0}exports.lte=lte;function lte(a,b,loose){return compare(a,b,loose)<=0}exports.cmp=cmp;function cmp(a,op,b,loose){switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError("Invalid operator: "+op)}}exports.Comparator=Comparator;function Comparator(comp,options){if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}if(!(this instanceof Comparator))return new Comparator(comp,options);comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}var ANY={};Comparator.prototype.parse=function(comp){var r=this.options.loose?safeRe[t.COMPARATORLOOSE]:safeRe[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError("Invalid comparator: "+comp);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");(!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1});var rangeTmp;if(this.operator==="")return this.value===""?!0:(rangeTmp=new Range(comp.value,options),satisfies(this.value,rangeTmp,options));if(comp.operator==="")return comp.value===""?!0:(rangeTmp=new Range(this.value,options),satisfies(comp.semver,rangeTmp,options));var sameDirectionIncreasing=(this.operator===">="||this.operator===">")&&(comp.operator===">="||comp.operator===">"),sameDirectionDecreasing=(this.operator==="<="||this.operator==="<")&&(comp.operator==="<="||comp.operator==="<"),sameSemVer=this.semver.version===comp.semver.version,differentDirectionsInclusive=(this.operator===">="||this.operator==="<=")&&(comp.operator===">="||comp.operator==="<="),oppositeDirectionsLessThan=cmp(this.semver,"<",comp.semver,options)&&(this.operator===">="||this.operator===">")&&(comp.operator==="<="||comp.operator==="<"),oppositeDirectionsGreaterThan=cmp(this.semver,">",comp.semver,options)&&(this.operator==="<="||this.operator==="<")&&(comp.operator===">="||comp.operator===">");return sameDirectionIncreasing||sameDirectionDecreasing||sameSemVer&&differentDirectionsInclusive||oppositeDirectionsLessThan||oppositeDirectionsGreaterThan};exports.Range=Range;function Range(range,options){if((!options||typeof options!="object")&&(options={loose:!!options,includePrerelease:!1}),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return new Range(range.value,options);if(!(this instanceof Range))return new Range(range,options);if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(range2){return this.parseRange(range2.trim())},this).filter(function(c){return c.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}Range.prototype.format=function(){return this.range=this.set.map(function(comps){return comps.join(" ").trim()}).join("||").trim(),this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(range){var loose=this.options.loose,hr=loose?safeRe[t.HYPHENRANGELOOSE]:safeRe[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace),debug("hyphen replace",range),range=range.replace(safeRe[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range,safeRe[t.COMPARATORTRIM]),range=range.replace(safeRe[t.TILDETRIM],tildeTrimReplace),range=range.replace(safeRe[t.CARETTRIM],caretTrimReplace),range=range.split(/\s+/).join(" ");var compRe=loose?safeRe[t.COMPARATORLOOSE]:safeRe[t.COMPARATOR],set=range.split(" ").map(function(comp){return parseComparator(comp,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(set=set.filter(function(comp){return!!comp.match(compRe)})),set=set.map(function(comp){return new Comparator(comp,this.options)},this),set};Range.prototype.intersects=function(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(function(thisComparators){return isSatisfiable(thisComparators,options)&&range.set.some(function(rangeComparators){return isSatisfiable(rangeComparators,options)&&thisComparators.every(function(thisComparator){return rangeComparators.every(function(rangeComparator){return thisComparator.intersects(rangeComparator,options)})})})})};function isSatisfiable(comparators,options){for(var result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();result&&remainingComparators.length;)result=remainingComparators.every(function(otherComparator){return testComparator.intersects(otherComparator,options)}),testComparator=remainingComparators.pop();return result}exports.toComparators=toComparators;function toComparators(range,options){return new Range(range,options).set.map(function(comp){return comp.map(function(c){return c.value}).join(" ").trim().split(" ")})}function parseComparator(comp,options){return debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp}function isX(id){return!id||id.toLowerCase()==="x"||id==="*"}function replaceTildes(comp,options){return comp.trim().split(/\s+/).map(function(comp2){return replaceTilde(comp2,options)}).join(" ")}function replaceTilde(comp,options){var r=options.loose?safeRe[t.TILDELOOSE]:safeRe[t.TILDE];return comp.replace(r,function(_,M,m,p,pr){debug("tilde",comp,_,M,m,p,pr);var ret;return isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":pr?(debug("replaceTilde pr",pr),ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0"):ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0",debug("tilde return",ret),ret})}function replaceCarets(comp,options){return comp.trim().split(/\s+/).map(function(comp2){return replaceCaret(comp2,options)}).join(" ")}function replaceCaret(comp,options){debug("caret",comp,options);var r=options.loose?safeRe[t.CARETLOOSE]:safeRe[t.CARET];return comp.replace(r,function(_,M,m,p,pr){debug("caret",comp,_,M,m,p,pr);var ret;return isX(M)?ret="":isX(m)?ret=">="+M+".0.0 <"+(+M+1)+".0.0":isX(p)?M==="0"?ret=">="+M+"."+m+".0 <"+M+"."+(+m+1)+".0":ret=">="+M+"."+m+".0 <"+(+M+1)+".0.0":pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+m+"."+(+p+1):ret=">="+M+"."+m+"."+p+"-"+pr+" <"+M+"."+(+m+1)+".0":ret=">="+M+"."+m+"."+p+"-"+pr+" <"+(+M+1)+".0.0"):(debug("no pr"),M==="0"?m==="0"?ret=">="+M+"."+m+"."+p+" <"+M+"."+m+"."+(+p+1):ret=">="+M+"."+m+"."+p+" <"+M+"."+(+m+1)+".0":ret=">="+M+"."+m+"."+p+" <"+(+M+1)+".0.0"),debug("caret return",ret),ret})}function replaceXRanges(comp,options){return debug("replaceXRanges",comp,options),comp.split(/\s+/).map(function(comp2){return replaceXRange(comp2,options)}).join(" ")}function replaceXRange(comp,options){comp=comp.trim();var r=options.loose?safeRe[t.XRANGELOOSE]:safeRe[t.XRANGE];return comp.replace(r,function(ret,gtlt,M,m,p,pr){debug("xRange",comp,ret,gtlt,M,m,p,pr);var xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),ret=gtlt+M+"."+m+"."+p+pr):xm?ret=">="+M+".0.0"+pr+" <"+(+M+1)+".0.0"+pr:xp&&(ret=">="+M+"."+m+".0"+pr+" <"+M+"."+(+m+1)+".0"+pr),debug("xRange return",ret),ret})}function replaceStars(comp,options){return debug("replaceStars",comp,options),comp.trim().replace(safeRe[t.STAR],"")}function hyphenReplace($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb){return isX(fM)?from="":isX(fm)?from=">="+fM+".0.0":isX(fp)?from=">="+fM+"."+fm+".0":from=">="+from,isX(tM)?to="":isX(tm)?to="<"+(+tM+1)+".0.0":isX(tp)?to="<"+tM+"."+(+tm+1)+".0":tpr?to="<="+tM+"."+tm+"."+tp+"-"+tpr:to="<="+to,(from+" "+to).trim()}Range.prototype.test=function(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(var i2=0;i2<this.set.length;i2++)if(testSet(this.set[i2],version,this.options))return!0;return!1};function testSet(set,version,options){for(var i2=0;i2<set.length;i2++)if(!set[i2].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(i2=0;i2<set.length;i2++)if(debug(set[i2].semver),set[i2].semver!==ANY&&set[i2].semver.prerelease.length>0){var allowed=set[i2].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}exports.satisfies=satisfies;function satisfies(version,range,options){try{range=new Range(range,options)}catch{return!1}return range.test(version)}exports.maxSatisfying=maxSatisfying;function maxSatisfying(versions,range,options){var max=null,maxSV=null;try{var rangeObj=new Range(range,options)}catch{return null}return versions.forEach(function(v){rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max}exports.minSatisfying=minSatisfying;function minSatisfying(versions,range,options){var min=null,minSV=null;try{var rangeObj=new Range(range,options)}catch{return null}return versions.forEach(function(v){rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min}exports.minVersion=minVersion;function minVersion(range,loose){range=new Range(range,loose);var minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(var i2=0;i2<range.set.length;++i2){var comparators=range.set[i2];comparators.forEach(function(comparator){var compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!minver||gt(minver,compver))&&(minver=compver);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+comparator.operator)}})}return minver&&range.test(minver)?minver:null}exports.validRange=validRange;function validRange(range,options){try{return new Range(range,options).range||"*"}catch{return null}}exports.ltr=ltr;function ltr(version,range,options){return outside(version,range,"<",options)}exports.gtr=gtr;function gtr(version,range,options){return outside(version,range,">",options)}exports.outside=outside;function outside(version,range,hilo,options){version=new SemVer(version,options),range=new Range(range,options);var gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(var i2=0;i2<range.set.length;++i2){var comparators=range.set[i2],high=null,low=null;if(comparators.forEach(function(comparator){comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0}exports.prerelease=prerelease;function prerelease(version,options){var parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null}exports.intersects=intersects;function intersects(r1,r2,options){return r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2)}exports.coerce=coerce;function coerce(version,options){if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};var match=null;if(!options.rtl)match=version.match(safeRe[t.COERCE]);else{for(var next;(next=safeRe[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),safeRe[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;safeRe[t.COERCERTL].lastIndex=-1}return match===null?null:parse(match[2]+"."+(match[3]||"0")+"."+(match[4]||"0"),options)}}});var require_detect_builders=__commonJS({"../fs-detectors/dist/detect-builders.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,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__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),require_constants2=__commonJS2({"../../internals/runtimes/dist/constants.js"(exports2,module2){"use strict";var __defProp2=Object.defineProperty,__getOwnPropDesc2=Object.getOwnPropertyDescriptor,__getOwnPropNames2=Object.getOwnPropertyNames,__hasOwnProp2=Object.prototype.hasOwnProperty,__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},__copyProps2=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames2(from))!__hasOwnProp2.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc2(from,key))||desc.enumerable});return to},__toCommonJS2=mod=>__copyProps2(__defProp2({},"__esModule",{value:!0}),mod),constants_exports={};__export2(constants_exports,{BUILDER_RUNTIMES:()=>BUILDER_RUNTIMES,CONTAINER_ENTRYPOINT_CANDIDATES:()=>CONTAINER_ENTRYPOINT_CANDIDATES,ENTRYPOINT_EXTENSIONS:()=>ENTRYPOINT_EXTENSIONS2,ROUTE_OWNING_BUILDERS:()=>ROUTE_OWNING_BUILDERS,RUNTIME_BUILDERS:()=>RUNTIME_BUILDERS,RUNTIME_MANIFESTS:()=>RUNTIME_MANIFESTS,STATIC_BUILDERS:()=>STATIC_BUILDERS}),module2.exports=__toCommonJS2(constants_exports);var RUNTIME_BUILDERS={node:"@vercel/backends",python:"@vercel/python",go:"@vercel/go",rust:"@vercel/rust",ruby:"@vercel/ruby",container:"@vercel/container"},RUNTIME_MANIFESTS={node:["package.json"],python:["pyproject.toml","requirements.txt","Pipfile","pylock.yml","uv.lock","setup.py"],go:["go.mod"],ruby:["Gemfile"],rust:["Cargo.toml"]},ENTRYPOINT_EXTENSIONS2={".ts":"node",".mts":"node",".js":"node",".mjs":"node",".cjs":"node",".py":"python",".go":"go",".rs":"rust",".rb":"ruby",".ru":"ruby"},BUILDER_RUNTIMES=Object.fromEntries(Object.entries(RUNTIME_BUILDERS).map(([runtime,builder])=>[builder,runtime])),STATIC_BUILDERS=new Set(["@vercel/static-build","@vercel/static"]),ROUTE_OWNING_BUILDERS=new Set(["@vercel/next","@vercel/backends"]),CONTAINER_ENTRYPOINT_CANDIDATES=["Dockerfile.vercel","Containerfile.vercel","Dockerfile","Containerfile"]}}),require_entrypoint2=__commonJS2({"../../internals/runtimes/dist/entrypoint.js"(exports2,module2){"use strict";var __defProp2=Object.defineProperty,__getOwnPropDesc2=Object.getOwnPropertyDescriptor,__getOwnPropNames2=Object.getOwnPropertyNames,__hasOwnProp2=Object.prototype.hasOwnProperty,__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},__copyProps2=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames2(from))!__hasOwnProp2.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc2(from,key))||desc.enumerable});return to},__toCommonJS2=mod=>__copyProps2(__defProp2({},"__esModule",{value:!0}),mod),entrypoint_exports={};__export2(entrypoint_exports,{SCHEDULE_ENTRYPOINT_FORMS_HINT:()=>SCHEDULE_ENTRYPOINT_FORMS_HINT,isDockerfileEntrypoint:()=>isDockerfileEntrypoint,parsePyModuleAttrEntrypoint:()=>parsePyModuleAttrEntrypoint2,parseScheduleEntrypoint:()=>parseScheduleEntrypoint,stripTrailingSlash:()=>stripTrailingSlash}),module2.exports=__toCommonJS2(entrypoint_exports);var import_path2=__require("path"),import_constants2=require_constants2(),PYTHON_MODULE_ATTR_RE=/^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/,NODE_FILE_ENTRYPOINT_RE=/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.[cm]?[jt]s$/,PYTHON_FILE_ENTRYPOINT_RE=/^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.py$/,NODE_DECLARATION_ENTRYPOINT_RE=/\.d\.[cm]?ts$/;function parsePyModuleAttrEntrypoint2(entrypoint){let match=PYTHON_MODULE_ATTR_RE.exec(entrypoint);if(!match)return null;let[,modulePart,attrName]=match;return!modulePart||!attrName?null:{attrName,filePath:modulePart.replace(/\./g,"/")+".py",moduleName:modulePart}}var SCHEDULE_ENTRYPOINT_FORMS_HINT='Use a source file path like "jobs/nightly.py" or "jobs/nightly.ts".';function parseScheduleEntrypoint(entrypoint){return PYTHON_FILE_ENTRYPOINT_RE.test(entrypoint)?{runtime:"python",filePath:entrypoint}:NODE_FILE_ENTRYPOINT_RE.test(entrypoint)&&!NODE_DECLARATION_ENTRYPOINT_RE.test(entrypoint)?{runtime:"node",filePath:entrypoint}:null}var CONTAINER_ENTRYPOINT_BASENAMES=new Set(import_constants2.CONTAINER_ENTRYPOINT_CANDIDATES.map(name=>name.toLowerCase()));function isDockerfileEntrypoint(entrypoint){return CONTAINER_ENTRYPOINT_BASENAMES.has(import_path2.posix.basename(entrypoint).toLowerCase())}function stripTrailingSlash(p){let stripped=p.replace(/\/+$/,"");return stripped===""?".":stripped}}}),require_framework2=__commonJS2({"../../internals/runtimes/dist/framework.js"(exports2,module2){"use strict";var __defProp2=Object.defineProperty,__getOwnPropDesc2=Object.getOwnPropertyDescriptor,__getOwnPropNames2=Object.getOwnPropertyNames,__hasOwnProp2=Object.prototype.hasOwnProperty,__export2=(target,all)=>{for(var name in all)__defProp2(target,name,{get:all[name],enumerable:!0})},__copyProps2=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames2(from))!__hasOwnProp2.call(to,key)&&key!==except&&__defProp2(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc2(from,key))||desc.enumerable});return to},__toCommonJS2=mod=>__copyProps2(__defProp2({},"__esModule",{value:!0}),mod),framework_exports={};__export2(framework_exports,{DETECTION_FRAMEWORKS:()=>DETECTION_FRAMEWORKS,filterFrameworksByRuntime:()=>filterFrameworksByRuntime,frameworksBySlug:()=>frameworksBySlug,inferBuilderRuntimeFromFramework:()=>inferBuilderRuntimeFromFramework2,inferRuntimeFromFramework:()=>inferRuntimeFromFramework,inferServerRuntimeFromFramework:()=>inferServerRuntimeFromFramework,isBFFFramework:()=>isBFFFramework,isFrontendFramework:()=>isFrontendFramework}),module2.exports=__toCommonJS2(framework_exports);var import_build_utils3=__require("@vercel/build-utils"),import_frameworks2=require_frameworks(),import_constants2=require_constants2(),frameworksBySlug=new Map(import_frameworks2.frameworkList.flatMap(f=>typeof f.slug=="string"?[[f.slug,f]]:[])),DETECTION_FRAMEWORKS=import_frameworks2.frameworkList.filter(framework=>!framework.experimental||framework.runtimeFramework);function inferRuntimeFromFramework(framework){if(framework){if(framework in import_constants2.RUNTIME_BUILDERS)return framework;if((0,import_build_utils3.isPythonFramework)(framework))return"python";if((0,import_build_utils3.isBackendFramework)(framework))return"node"}}var STATIC_BUILDER_RUNTIMES={hugo:"go",jekyll:"ruby",middleman:"ruby",zola:"rust"};function inferServerRuntimeFromFramework(framework){if(!framework||framework==="services")return;let builder=frameworksBySlug.get(framework)?.useRuntime?.use;if(builder)return import_constants2.BUILDER_RUNTIMES[builder]??"node"}function inferBuilderRuntimeFromFramework2(framework){if(!framework||framework==="container"||framework==="services")return;let f=frameworksBySlug.get(framework),declaredBuilder=f?.useRuntime?.use;if(declaredBuilder)return import_constants2.BUILDER_RUNTIMES[declaredBuilder];let detectorItems=[...f?.detectors?.every??[],...f?.detectors?.some??[]];return STATIC_BUILDER_RUNTIMES[framework]??(detectorItems.some(d=>d.matchPackage!==void 0)?"node":void 0)}function isFrontendFramework(framework){return!!framework&&!inferRuntimeFromFramework(framework)}var BFF_FRAMEWORKS=new Set(["nextjs","nuxtjs","sveltekit","remix","solidstart"]);function isBFFFramework(framework){return!!framework&&BFF_FRAMEWORKS.has(framework)}function filterFrameworksByRuntime(frameworks,runtime){return runtime?frameworks.filter(f=>inferRuntimeFromFramework(f.slug)===runtime):[...frameworks]}}}),detect_builders_exports={};__export(detect_builders_exports,{REGEX_MIDDLEWARE_FILES:()=>REGEX_MIDDLEWARE_FILES,REGEX_NON_VERCEL_PLATFORM_FILES:()=>REGEX_NON_VERCEL_PLATFORM_FILES2,REGEX_VERCEL_PLATFORM_FILES:()=>REGEX_VERCEL_PLATFORM_FILES,builderToFrameworks:()=>builderToFrameworks2,detectApiDirectory:()=>detectApiDirectory2,detectApiExtensions:()=>detectApiExtensions2,detectBuilders:()=>detectBuilders2,detectOutputDirectory:()=>detectOutputDirectory2,getProxyBuilder:()=>getProxyBuilder2,sortFiles:()=>sortFiles,validateProxy:()=>validateProxy2,validateProxyConfig:()=>validateProxyConfig2});module.exports=__toCommonJS(detect_builders_exports);var import_minimatch=__toESM(require_minimatch()),import_entrypoint=__toESM(require_entrypoint2()),import_semver=require_semver(),import_path=__require("path"),import_frameworks=require_frameworks(),import_framework=__toESM(require_framework2()),import_constants=__toESM(require_constants2()),isOfficialRuntime2=(desired,name)=>typeof name!="string"?!1:name===`@vercel/${desired}`||name===`@now/${desired}`||name.startsWith(`@vercel/${desired}@`)||name.startsWith(`@now/${desired}@`),import_build_utils2=__require("@vercel/build-utils"),import_fs=__toESM(__require("fs")),import_build_utils=__require("@vercel/build-utils"),import_python_analysis=__require("@vercel/python-analysis");async function isPythonEntrypoint(fsPath){try{let content=await import_fs.default.promises.readFile(fsPath,"utf-8");return await(0,import_python_analysis.findAppOrHandler)(content)!==null}catch(err){return(0,import_build_utils.debug)(`Failed to check Python entrypoint: ${err}`),!1}}var BUILDPACK_PROJECT_MARKERS=new Map([["ruby",["Gemfile"]],["go",["go.mod"]],["rust",["Cargo.toml"]]]);function isBuildpackRuntimeEnabled(runtime){return process.env[`VERCEL_EXPERIMENTAL_BUILDPACK_${runtime.toUpperCase()}`]==="1"}function toBuildpackRuntime(runtime){if(!(!runtime||!BUILDPACK_PROJECT_MARKERS.has(runtime)||!isBuildpackRuntimeEnabled(runtime)))return runtime}var REGEX_MIDDLEWARE_FILES="middleware.[jt]s",VERCEL_PLATFORM_FILES=["api/**","node_modules/**",REGEX_MIDDLEWARE_FILES,"package.json","package-lock.json","yarn.lock","pnpm-lock.yaml","bun.lock","bun.lockb",".gitignore","README.md"],REGEX_VERCEL_PLATFORM_FILES=VERCEL_PLATFORM_FILES.join(",");function escapeMinimatchPath(path){return path.replace(/([\\,*?[\]{}()!+@])/g,"\\$1")}function getStaticFilesPattern(additionalExclusions=[]){return`!{${[...VERCEL_PLATFORM_FILES,...additionalExclusions.map(escapeMinimatchPath)].join(",")}}`}var REGEX_NON_VERCEL_PLATFORM_FILES2=getStaticFilesPattern(),builderToFrameworks2=(()=>{let map=new Map;for(let f of import_frameworks.frameworkList){if(!f.useRuntime?.use)continue;let builder=f.useRuntime.use,entry=map.get(builder);entry?entry.push(f):map.set(builder,[f])}return map})();function sortFiles(fileA,fileB){return fileA.localeCompare(fileB)}function detectApiExtensions2(builders){return new Set(builders.filter(b=>!!(b.config&&b.config.zeroConfig&&b.src?.startsWith("api/"))).map(b=>(0,import_path.extname)(b.src)).filter(Boolean))}function detectApiDirectory2(builders){return builders.some(b=>b.config&&b.config.zeroConfig&&b.src?.startsWith("api/"))?"api":null}function getPublicBuilder(builders){for(let builder of builders)if(typeof builder.src=="string"&&isOfficialRuntime2("static",builder.use)&&/^.*\/\*\*\/\*$/.test(builder.src)&&builder.config?.zeroConfig===!0)return builder;return null}function detectOutputDirectory2(builders){let publicBuilder=getPublicBuilder(builders);return publicBuilder?publicBuilder.src.replace("/**/*",""):null}async function detectBuilders2(files,pkg,options={}){let{projectSettings={}}=options,{framework}=projectSettings,proxyError=validateProxy2(options,files,framework);if(proxyError)return{builders:null,errors:[proxyError],warnings:[],defaultRoutes:null,redirectRoutes:null,rewriteRoutes:null,errorRoutes:null};let errors=[],warnings=[],apiBuilders=[],frontendBuilder=null,functionError=validateFunctions(options);if(functionError)return{builders:null,errors:[functionError],warnings,defaultRoutes:null,redirectRoutes:null,rewriteRoutes:null,errorRoutes:null};let sortedFiles=files.sort(sortFiles),apiSortedFiles=files.sort(sortFilesBySegmentCount),usedFunctions=new Set,addToUsedFunctions=builder=>{let key=Object.keys(builder.config.functions||{})[0];key&&usedFunctions.add(key)},absolutePathCache=new Map,proxyFile=options.proxy?parseProxyEntrypoint(options.proxy.entrypoint).file:null,reservedFunctionFiles=options.reservedFunctionFiles??[],claimedFiles=new Set([...proxyFile!==null?[proxyFile]:[],...reservedFunctionFiles]),hasReservedFunctions=reservedFunctionFiles.length>0,{buildCommand,outputDirectory}=projectSettings,frameworkConfig=import_framework.frameworksBySlug.get(framework||""),rustStaticOutput=isRustStaticOutput(framework,projectSettings),ignoreRuntimes=new Set(rustStaticOutput?void 0:frameworkConfig?.ignoreRuntimes),withTag=options.tag?`@${options.tag}`:"",apiMatches=getApiMatches().filter(b=>b.config?.middleware&&!frameworkConfig?.disableRootMiddleware||!ignoreRuntimes.has(b.use)).map(b=>(b.use=`${b.use}${withTag}`,b)),makeFrontendStatic=buildCommand===""||outputDirectory==="",usedOutputDirectory=outputDirectory||"public",hasUsedOutputDirectory=!1,hasNoneApiFiles=!1,hasNextApiFiles=!1,fallbackEntrypoint=null,apiRoutes=[],dynamicRoutes=[];for(let fileName of sortedFiles){if(claimedFiles.has(fileName))continue;let apiBuilder=await maybeGetApiBuilder(fileName,apiMatches,options);if(apiBuilder){let{routeError,apiRoute,isDynamic}=getApiRoute(fileName,apiSortedFiles,options,absolutePathCache);if(routeError)return{builders:null,errors:[routeError],warnings,defaultRoutes:null,redirectRoutes:null,rewriteRoutes:null,errorRoutes:null};apiRoute&&(apiRoutes.push(apiRoute),isDynamic&&dynamicRoutes.push(apiRoute)),addToUsedFunctions(apiBuilder),apiBuilders.push(apiBuilder);continue}!hasUsedOutputDirectory&&fileName.startsWith(`${usedOutputDirectory}/`)&&(hasUsedOutputDirectory=!0),!hasNoneApiFiles&&!fileName.startsWith("api/")&&fileName!=="package.json"&&(hasNoneApiFiles=!0),!hasNextApiFiles&&(fileName.startsWith("pages/api")||fileName.startsWith("src/pages/api"))&&(hasNextApiFiles=!0),!fallbackEntrypoint&&buildCommand&&!fileName.includes("/")&&fileName!=="now.json"&&fileName!=="vercel.json"&&fileName!=="vercel.toml"&&(fallbackEntrypoint=fileName)}if(options.proxy){let proxyBuilder=getProxyBuilder2(options.proxy,options.tag,options.functions);addToUsedFunctions(proxyBuilder),apiBuilders.unshift(proxyBuilder)}if(!makeFrontendStatic&&!(rustStaticOutput&&!pkg&&!buildCommand)&&(hasBuildScript(pkg)||buildCommand||framework))frontendBuilder=detectFrontBuilder(pkg,files,usedFunctions,fallbackEntrypoint,options);else{if(pkg&&!makeFrontendStatic&&!apiBuilders.length&&!hasReservedFunctions&&!options.ignoreBuildScript)return errors.push(getMissingBuildScriptError()),{errors,warnings,builders:null,redirectRoutes:null,defaultRoutes:null,rewriteRoutes:null,errorRoutes:null};hasUsedOutputDirectory&&outputDirectory!==""?frontendBuilder={use:"@vercel/static",src:`${usedOutputDirectory}/**/*`,config:{zeroConfig:!0,outputDirectory:usedOutputDirectory}}:(apiBuilders.length||hasReservedFunctions)&&hasNoneApiFiles&&(frontendBuilder={use:"@vercel/static",src:getStaticFilesPattern([...claimedFiles]),config:{zeroConfig:!0}})}if(options.proxy&&frontendBuilder&&isOfficialRuntime2("next",frontendBuilder.use))return{builders:null,errors:[{code:"proxy_framework_conflict",message:"The `proxy` property cannot be used with Next.js because the framework builds its own routing middleware."}],warnings,defaultRoutes:null,redirectRoutes:null,rewriteRoutes:null,errorRoutes:null};let unusedFunctionError=checkUnusedFunctions(frontendBuilder,usedFunctions,claimedFiles,options);if(unusedFunctionError)return{builders:null,errors:[unusedFunctionError],warnings,redirectRoutes:null,defaultRoutes:null,rewriteRoutes:null,errorRoutes:null};framework===null&&frontendBuilder?.use==="@vercel/next"&&apiBuilders.length>0&&(apiBuilders=apiBuilders.filter(builder=>!(builder.use==="@vercel/node"&&builder.config?.middleware)));let builders=[];apiBuilders.length&&builders.push(...apiBuilders),frontendBuilder&&((isOfficialRuntime2("express",frontendBuilder?.use)||isOfficialRuntime2("hono",frontendBuilder?.use)||isOfficialRuntime2("python",frontendBuilder?.use)||isOfficialRuntime2("go",frontendBuilder?.use)||isOfficialRuntime2("container",frontendBuilder?.use)&&(frontendBuilder.config?.buildpack==="go"||frontendBuilder.config?.buildpack==="rust")||isOfficialRuntime2("backends",frontendBuilder?.use))&&builders.push({src:"public/**/*",use:"@vercel/static",config:{zeroConfig:!0,outputDirectory:"public"}}),builders.push(frontendBuilder),hasNextApiFiles&&apiBuilders.some(b=>isOfficialRuntime2("node",b.use))&&warnings.push({code:"conflicting_files",message:"When using Next.js, it is recommended to place JavaScript Functions inside of the `pages/api` (provided by Next.js) directory instead of `api` (provided by Vercel). Other languages (Python, Go, etc) should still go in the `api` directory.",link:"https://nextjs.org/docs/api-routes/introduction",action:"Learn More"}));let routesResult=getRouteResult(apiRoutes,dynamicRoutes,usedOutputDirectory,apiBuilders,frontendBuilder,options);return{warnings,builders:builders.length?builders:null,errors:errors.length?errors:null,redirectRoutes:routesResult.redirectRoutes,defaultRoutes:routesResult.defaultRoutes,rewriteRoutes:routesResult.rewriteRoutes,errorRoutes:routesResult.errorRoutes}}async function maybeGetApiBuilder(fileName,apiMatches,options){let middleware=!options.proxy&&(fileName==="middleware.js"||fileName==="middleware.ts");if(middleware&&options.projectSettings?.framework==="nextjs"||!(fileName.startsWith("api/")||middleware)||fileName.includes("/.")||fileName.includes("/_")||fileName.includes("/node_modules/")||fileName.endsWith(".d.ts"))return null;if(fileName.endsWith(".py")&&options.workPath){let fsPath=(0,import_path.join)(options.workPath,fileName);if(!await isPythonEntrypoint(fsPath))return null}let nodeExtensions=[".js",".mjs",".ts",".tsx"];if(fileName.startsWith("api/")&&process.env.VERCEL_NODE_FILTER_ENTRYPOINTS==="1"&&nodeExtensions.some(ext=>fileName.endsWith(ext))&&options.workPath){let fsPath=(0,import_path.join)(options.workPath,fileName);if(!await(0,import_build_utils2.isNodeEntrypoint)({fsPath}))return null}let match=apiMatches.find(({src="**"})=>src===fileName||(0,import_minimatch.default)(fileName,src)),{fnPattern,func}=getFunction(fileName,options),use=func?.runtime||match?.use;if(!use)return null;let config={zeroConfig:!0};return middleware&&(config.middleware=!0),fnPattern&&func&&(config.functions={[fnPattern]:func},func.includeFiles&&(config.includeFiles=func.includeFiles),func.excludeFiles&&(config.excludeFiles=func.excludeFiles)),options.bunVersion&&(config.bunVersion=options.bunVersion),{use,src:fileName,config}}function getFunction(fileName,{functions={}}){let keys=Object.keys(functions);if(!keys.length)return{fnPattern:null,func:null};let func=keys.find(key=>key===fileName||(0,import_minimatch.default)(fileName,key));return func?{fnPattern:func,func:functions[func]}:{fnPattern:null,func:null}}function parseProxyEntrypoint(entrypoint){if(process.env.VERCEL_PYTHON_PROXY){let parsed=(0,import_entrypoint.parsePyModuleAttrEntrypoint)(entrypoint);if(parsed)return{file:parsed.filePath,variable:parsed.attrName}}return{file:entrypoint}}function getProxyBuilder2(proxy,tag,functions={}){let{file,variable}=parseProxyEntrypoint(proxy.entrypoint),isPython=(0,import_path.extname)(file)===".py",{fnPattern,func}=getFunction(file,{functions}),runtime=func?.runtime,config={zeroConfig:!0,middleware:!0,...!runtime&&!isPython?{middlewareRuntime:"nodejs"}:{},...proxy.matcher?{middlewareMatcher:proxy.matcher}:{},...variable?{handlerFunction:variable}:{}};fnPattern&&func&&(config.functions={[fnPattern]:func},func.includeFiles&&(config.includeFiles=func.includeFiles),func.excludeFiles&&(config.excludeFiles=func.excludeFiles));let defaultRuntime=isPython?`@vercel/python${tag?`@${tag}`:""}`:`@vercel/node${tag?`@${tag}`:""}`;return{src:file,use:runtime||defaultRuntime,config}}function getApiMatches(){let config={zeroConfig:!0};return[{src:REGEX_MIDDLEWARE_FILES,use:"@vercel/node",config:{...config,middleware:!0}},{src:"api/**/*.+(js|mjs|ts|tsx)",use:"@vercel/node",config},{src:"api/**/!(*_test).go",use:"@vercel/go",config},{src:"api/**/*.py",use:"@vercel/python",config},{src:"api/**/*.rb",use:"@vercel/ruby",config},{src:"api/**/*.rs",use:"@vercel/rust",config}]}function validateProxyConfig2(proxy){if(typeof proxy!="object"||typeof proxy.entrypoint!="string"||!proxy.entrypoint)return{code:"invalid_proxy",message:"The `proxy` property must contain an `entrypoint` string."};let{file,variable}=parseProxyEntrypoint(proxy.entrypoint),isPythonForm=(0,import_path.extname)(file)===".py",isJsForm=/\.(?:js|ts)$/.test(file)&&!file.endsWith(".d.ts"),segments=file.split("/");if(file.startsWith("/")||file.includes("\\")||segments.includes(".")||segments.includes("..")||/[?#\u0000-\u001f]/.test(file))return{code:"invalid_proxy_entrypoint",message:"The `proxy.entrypoint` path must be relative to the project root and cannot contain traversal, query, fragment, or control characters."};if(!isPythonForm&&!isJsForm)return{code:"invalid_proxy_entrypoint",message:"The `proxy.entrypoint` must be a `.js` or `.ts` file path, or a Python `module:attr`."};if(isPythonForm&&!variable)return{code:"invalid_proxy_entrypoint",message:"Python proxy entrypoints must use `module:attr` syntax, not a plain `.py` path."};if(proxy.matcher!==void 0){let matchers=Array.isArray(proxy.matcher)?proxy.matcher:[proxy.matcher];if(matchers.length===0||matchers.some(matcher=>typeof matcher!="string"||!matcher.startsWith("/")))return{code:"invalid_proxy_matcher",message:"The `proxy.matcher` value must be a path matcher starting with `/`, or an array of path matchers starting with `/`."}}return null}function validateProxy2(options,files,framework){let{proxy}=options;if(!proxy)return null;let configError=validateProxyConfig2(proxy);if(configError)return configError;let{file}=parseProxyEntrypoint(proxy.entrypoint);if(!files.includes(file))return{code:"proxy_entrypoint_not_found",message:`The proxy entrypoint \`${proxy.entrypoint}\` does not exist.`};if(framework==="nextjs"||framework==="astro")return{code:"proxy_framework_conflict",message:`The \`proxy\` property cannot be used with ${framework==="nextjs"?"Next.js":"Astro"} because the framework builds its own routing middleware.`};let appRuntime=(0,import_framework.inferBuilderRuntimeFromFramework)(framework),{file:proxyFile}=parseProxyEntrypoint(proxy.entrypoint),proxyRuntime=import_constants.ENTRYPOINT_EXTENSIONS[(0,import_path.extname)(proxyFile)];return appRuntime!==void 0&&proxyRuntime!==void 0&&appRuntime!==proxyRuntime?{code:"proxy_runtime_mismatch",message:`The proxy entrypoint \`${proxy.entrypoint}\` uses the ${proxyRuntime} runtime, but the app uses the ${appRuntime} runtime. The proxy and app must use the same runtime.`}:null}function hasBuildScript(pkg){let{scripts={}}=pkg||{};return!!(scripts&&scripts.build)}function isRustStaticOutput(framework,projectSettings){return framework==="rust"&&typeof projectSettings.outputDirectory=="string"&&projectSettings.outputDirectory!==""&&projectSettings.outputDirectory!=="N/A"}function detectFrontBuilder(pkg,files,usedFunctions,fallbackEntrypoint,options){let{tag,projectSettings={}}=options,withTag=tag?`@${tag}`:"",{createdAt=0}=projectSettings,{framework}=projectSettings,config={zeroConfig:!0};framework&&(config.framework=framework),projectSettings.devCommand&&(config.devCommand=projectSettings.devCommand),typeof projectSettings.installCommand=="string"&&(config.installCommand=projectSettings.installCommand),projectSettings.buildCommand&&(config.buildCommand=projectSettings.buildCommand),projectSettings.outputDirectory&&(config.outputDirectory=projectSettings.outputDirectory),options.bunVersion&&(config.bunVersion=options.bunVersion),pkg&&(framework===void 0||framework!=="storybook"&&createdAt<Date.parse("2020-03-01"))&&{...pkg.dependencies,...pkg.devDependencies}.next&&(framework="nextjs"),options.functions&&Object.entries(options.functions).forEach(([key,func])=>{usedFunctions.has(key)||(config.functions||(config.functions={}),config.functions[key]={...func})});let f=import_framework.frameworksBySlug.get(framework||"");if(f&&f.useRuntime&&!isRustStaticOutput(framework,projectSettings)){let buildpackRuntime=toBuildpackRuntime(framework);if(buildpackRuntime&&(BUILDPACK_PROJECT_MARKERS.get(buildpackRuntime)??[]).some(marker=>files.includes(marker)))return config.buildpack=buildpackRuntime,{src:"<detect>",use:`@vercel/container${withTag}`,config};let{src,use}=f.useRuntime,finalUse=(0,import_build_utils2.isExperimentalBackendsEnabled)()&&import_build_utils2.BACKEND_BUILDERS.includes(use)?import_build_utils2.UNIFIED_BACKEND_BUILDER:use;return{src,use:`${finalUse}${withTag}`,config}}let entrypoints=new Set(["package.json","config.yaml","config.toml","config.json","_config.yml","config.yml","config.rb"]);return{src:(pkg?"package.json":files.find(file=>entrypoints.has(file))||fallbackEntrypoint||"package.json")||"package.json",use:`@vercel/static-build${withTag}`,config}}function getMissingBuildScriptError(){return{code:"missing_build_script",message:"Your `package.json` file is missing a `build` property inside the `scripts` property.\nLearn More: https://vercel.link/missing-build-script"}}function validateFunctions({functions={}}){for(let[path,func]of Object.entries(functions)){if(path.length>256)return{code:"invalid_function_glob",message:"Function globs must be less than 256 characters long."};if(!func||typeof func!="object")return{code:"invalid_function",message:"Function must be an object."};if(Object.keys(func).length===0)return{code:"invalid_function",message:"Function must contain at least one property."};let maxDurationLimit=(0,import_build_utils2.getMaxDurationLimit)();if(func.maxDuration!==void 0&&func.maxDuration!=="max"&&(func.maxDuration<1||maxDurationLimit!==void 0&&func.maxDuration>maxDurationLimit||!Number.isInteger(func.maxDuration)))return{code:"invalid_function_duration",message:maxDurationLimit!==void 0?`Functions must have a maxDuration between 1 and ${maxDurationLimit}, or "max".`:'Functions must have a positive integer maxDuration, or "max".'};if(func.memory!==void 0&&(func.memory<128||func.memory>10240))return{code:"invalid_function_memory",message:"Functions must have a memory value between 128 and 10240"};if(path.startsWith("/"))return{code:"invalid_function_source",message:`The function path "${path}" is invalid. The path must be relative to your project root and therefore cannot start with a slash.`};if(func.runtime!==void 0){let tag=`${func.runtime}`.split("@").pop();if(!tag||!(0,import_semver.valid)(tag))return{code:"invalid_function_runtime",message:"Function Runtimes must have a valid version, for example `now-php@1.0.0`."}}if(func.includeFiles!==void 0&&typeof func.includeFiles!="string")return{code:"invalid_function_property",message:"The property `includeFiles` must be a string."};if(func.excludeFiles!==void 0&&typeof func.excludeFiles!="string")return{code:"invalid_function_property",message:"The property `excludeFiles` must be a string."}}return null}function checkUnusedFunctions(frontendBuilder,usedFunctions,claimedFiles,options){let unusedFunctions=new Set(Object.keys(options.functions||{}).filter(key=>!usedFunctions.has(key)));for(let fnKey of unusedFunctions)for(let filePath of claimedFiles)if(filePath===fnKey||(0,import_minimatch.default)(filePath,fnKey)){unusedFunctions.delete(fnKey);break}if(!unusedFunctions.size)return null;if(frontendBuilder&&isOfficialRuntime2("next",frontendBuilder.use))for(let fnKey of unusedFunctions.values())if(fnKey.startsWith("pages/")||fnKey.startsWith("src/pages")||fnKey.startsWith("app/")||fnKey.startsWith("src/app/")||fnKey.startsWith("middleware")||fnKey.startsWith("src/middleware"))unusedFunctions.delete(fnKey);else return{code:"unused_function",message:`The pattern "${fnKey}" defined in \`functions\` doesn't match any Serverless Functions.`,action:"Learn More",link:"https://vercel.link/unmatched-function-pattern"};if(frontendBuilder&&(isOfficialRuntime2("express",frontendBuilder.use)||isOfficialRuntime2("hono",frontendBuilder.use)||isOfficialRuntime2("python",frontendBuilder.use)||isOfficialRuntime2("backends",frontendBuilder.use)))return null;if(unusedFunctions.size){let[fnKey]=Array.from(unusedFunctions);return{code:"unused_function",message:`The pattern "${fnKey}" defined in \`functions\` doesn't match any Serverless Functions inside the \`api\` directory.`,action:"Learn More",link:"https://vercel.link/unmatched-function-pattern"}}return null}function getApiRoute(fileName,sortedFiles,options,absolutePathCache){let conflictingSegment=getConflictingSegment(fileName);if(conflictingSegment)return{apiRoute:null,isDynamic:!1,routeError:{code:"conflicting_path_segment",message:`The segment "${conflictingSegment}" occurs more than one time in your path "${fileName}". Please make sure that every segment in a path is unique.`}};let occurrences=pathOccurrences(fileName,sortedFiles,absolutePathCache);if(occurrences.length>0){let messagePaths=concatArrayOfText(occurrences.map(name=>`"${name}"`));return{apiRoute:null,isDynamic:!1,routeError:{code:"conflicting_file_path",message:`Two or more files have conflicting paths or names. Please make sure path segments and filenames, without their extension, are unique. The path "${fileName}" has conflicts with ${messagePaths}.`}}}let out=createRouteFromPath(fileName,!!options.featHandleMiss,!!options.cleanUrls);return{apiRoute:out.route,isDynamic:out.isDynamic,routeError:null}}function getConflictingSegment(filePath){let segments=new Set;for(let segment of filePath.split("/")){let name=getSegmentName(segment);if(name!==null&&segments.has(name))return name;name&&segments.add(name)}return null}function getSegmentName(segment){let{name}=(0,import_path.parse)(segment);return name.startsWith("[")&&name.endsWith("]")?name.slice(1,-1):null}function getAbsolutePath(unresolvedPath){let{dir,name}=(0,import_path.parse)(unresolvedPath);return joinPath(dir,name).split("/").map(part=>part.replace(/\[.*\]/,"1")).join("/")}function pathOccurrences(fileName,files,absolutePathCache){let currentAbsolutePath=absolutePathCache.get(fileName);currentAbsolutePath||(currentAbsolutePath=getAbsolutePath(fileName),absolutePathCache.set(fileName,currentAbsolutePath));let prev=[];for(let file of files){if(file===fileName)continue;let absolutePath=absolutePathCache.get(file);absolutePath||(absolutePath=getAbsolutePath(file),absolutePathCache.set(file,absolutePath)),(absolutePath===currentAbsolutePath||partiallyMatches(fileName,file))&&prev.push(file)}return prev}function joinPath(...segments){return segments.join("/").replace(/\/{2,}/g,"/")}function escapeName(name){let special="[]^$.|?*+()".split("");for(let char of special)name=name.replace(new RegExp(`\\${char}`,"g"),`\\${char}`);return name}function concatArrayOfText(texts){if(texts.length<=2)return texts.join(" and ");let last=texts.pop();return`${texts.join(", ")}, and ${last}`}function partiallyMatches(pathA,pathB){let partsA=pathA.split("/"),partsB=pathB.split("/"),long=partsA.length>partsB.length?partsA:partsB,short=long===partsA?partsB:partsA,index=0;for(let segmentShort of short){let segmentLong=long[index],nameLong=getSegmentName(segmentLong),nameShort=getSegmentName(segmentShort);if(segmentShort!==segmentLong&&(!nameLong||!nameShort))return!1;if(nameLong!==nameShort)return!0;index+=1}return!1}function createRouteFromPath(filePath,featHandleMiss,cleanUrls){let parts=filePath.split("/"),counter=1,query=[],isDynamic=!1,srcParts=parts.map((segment,i)=>{let name=getSegmentName(segment),isLast=i===parts.length-1;if(name!==null)return query.push(`${name}=$${counter++}`),isDynamic=!0,"([^/]+)";if(isLast){let{name:fileName2,ext:ext2}=(0,import_path.parse)(segment),isIndex2=fileName2==="index",prefix=isIndex2?"/":"";return`(${[isIndex2?prefix:`${fileName2}/`,prefix+escapeName(fileName2),featHandleMiss&&cleanUrls?"":prefix+escapeName(fileName2)+escapeName(ext2)].filter(Boolean).join("|")})${isIndex2?"?":""}`}return segment}),{name:fileName,ext}=(0,import_path.parse)(filePath),isIndex=fileName==="index",queryString=`${query.length?"?":""}${query.join("&")}`,src=isIndex?`^/${srcParts.slice(0,-1).join("/")}${srcParts.slice(-1)[0]}$`:`^/${srcParts.join("/")}$`,route;if(featHandleMiss){let extensionless=ext?filePath.slice(0,-ext.length):filePath;route={src,dest:`/${extensionless}${queryString}`,check:!0}}else route={src,dest:`/${filePath}${queryString}`};return{route,isDynamic}}function getRouteResult(apiRoutes,dynamicRoutes,outputDirectory,apiBuilders,frontendBuilder,options){let defaultRoutes=[],redirectRoutes=[],rewriteRoutes=[],errorRoutes=[],framework=frontendBuilder?.config?.framework||"",isGatsby=framework==="gatsby",isNextjs=framework==="nextjs"||isOfficialRuntime2("next",frontendBuilder?.use),ignoreRuntimes=import_framework.frameworksBySlug.get(framework)?.ignoreRuntimes;if(apiRoutes&&apiRoutes.length>0)if(options.featHandleMiss){let extSet=detectApiExtensions2(apiBuilders);if(extSet.size>0){let extGroup=`(?:\\.(?:${Array.from(extSet).map(ext=>ext.slice(1)).join("|")}))`;options.cleanUrls?(redirectRoutes.push({src:`^/(api(?:.+)?)/index${extGroup}?/?$`,headers:{Location:options.trailingSlash?"/$1/":"/$1"},status:308}),redirectRoutes.push({src:`^/api/(.+)${extGroup}/?$`,headers:{Location:options.trailingSlash?"/api/$1/":"/api/$1"},status:308})):(defaultRoutes.push({handle:"miss"}),defaultRoutes.push({src:`^/api/(.+)${extGroup}$`,dest:"/api/$1",check:!0}))}rewriteRoutes.push(...dynamicRoutes);let hasApiBuild=apiBuilders.find(builder=>builder.src?.startsWith("api/"));typeof ignoreRuntimes>"u"&&hasApiBuild&&!isNextjs&&rewriteRoutes.push({src:"^/api(/.*)?$",status:404})}else defaultRoutes.push(...apiRoutes),apiRoutes.length&&!isNextjs&&defaultRoutes.push({status:404,src:"^/api(/.*)?$"});return outputDirectory&&frontendBuilder&&!options.featHandleMiss&&isOfficialRuntime2("static",frontendBuilder.use)&&defaultRoutes.push({src:"/(.*)",dest:`/${outputDirectory}/$1`}),options.featHandleMiss&&!isNextjs&&!isGatsby&&errorRoutes.push({status:404,src:"^(?!/api).*$",dest:options.cleanUrls?"/404":"/404.html"}),{defaultRoutes,redirectRoutes,rewriteRoutes,errorRoutes}}function sortFilesBySegmentCount(fileA,fileB){let lengthA=fileA.split("/").length,lengthB=fileB.split("/").length;if(lengthA>lengthB)return-1;if(lengthA<lengthB)return 1;let countSegments=(prev,segment)=>getSegmentName(segment)?prev+1:0,segmentLengthA=fileA.split("/").reduce(countSegments,0),segmentLengthB=fileB.split("/").reduce(countSegments,0);return segmentLengthA>segmentLengthB?1:segmentLengthA<segmentLengthB?-1:fileA.localeCompare(fileB)}}});var require_dist2=__commonJS({"../../node_modules/.pnpm/path-to-regexp@6.1.0/node_modules/path-to-regexp/dist/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});function lexer(str){for(var tokens=[],i=0;i<str.length;){var char=str[i];if(char==="*"||char==="+"||char==="?"){tokens.push({type:"MODIFIER",index:i,value:str[i++]});continue}if(char==="\\"){tokens.push({type:"ESCAPED_CHAR",index:i++,value:str[i++]});continue}if(char==="{"){tokens.push({type:"OPEN",index:i,value:str[i++]});continue}if(char==="}"){tokens.push({type:"CLOSE",index:i,value:str[i++]});continue}if(char===":"){for(var name="",j=i+1;j<str.length;){var code=str.charCodeAt(j);if(code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122||code===95){name+=str[j++];continue}break}if(!name)throw new TypeError("Missing parameter name at "+i);tokens.push({type:"NAME",index:i,value:name}),i=j;continue}if(char==="("){var count=1,pattern="",j=i+1;if(str[j]==="?")throw new TypeError('Pattern cannot start with "?" at '+j);for(;j<str.length;){if(str[j]==="\\"){pattern+=str[j++]+str[j++];continue}if(str[j]===")"){if(count--,count===0){j++;break}}else if(str[j]==="("&&(count++,str[j+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+j);pattern+=str[j++]}if(count)throw new TypeError("Unbalanced pattern at "+i);if(!pattern)throw new TypeError("Missing pattern at "+i);tokens.push({type:"PATTERN",index:i,value:pattern}),i=j;continue}tokens.push({type:"CHAR",index:i,value:str[i++]})}return tokens.push({type:"END",index:i,value:""}),tokens}function parse(str,options){options===void 0&&(options={});for(var tokens=lexer(str),_a=options.prefixes,prefixes=_a===void 0?"./":_a,defaultPattern="[^"+escapeString(options.delimiter||"/#?")+"]+?",result=[],key=0,i=0,path="",tryConsume=function(type){if(i<tokens.length&&tokens[i].type===type)return tokens[i++].value},mustConsume=function(type){var value2=tryConsume(type);if(value2!==void 0)return value2;var _a2=tokens[i],nextType=_a2.type,index=_a2.index;throw new TypeError("Unexpected "+nextType+" at "+index+", expected "+type)},consumeText=function(){for(var result2="",value2;value2=tryConsume("CHAR")||tryConsume("ESCAPED_CHAR");)result2+=value2;return result2};i<tokens.length;){var char=tryConsume("CHAR"),name=tryConsume("NAME"),pattern=tryConsume("PATTERN");if(name||pattern){var prefix=char||"";prefixes.indexOf(prefix)===-1&&(path+=prefix,prefix=""),path&&(result.push(path),path=""),result.push({name:name||key++,prefix,suffix:"",pattern:pattern||defaultPattern,modifier:tryConsume("MODIFIER")||""});continue}var value=char||tryConsume("ESCAPED_CHAR");if(value){path+=value;continue}path&&(result.push(path),path="");var open=tryConsume("OPEN");if(open){var prefix=consumeText(),name_1=tryConsume("NAME")||"",pattern_1=tryConsume("PATTERN")||"",suffix=consumeText();mustConsume("CLOSE"),result.push({name:name_1||(pattern_1?key++:""),pattern:name_1&&!pattern_1?defaultPattern:pattern_1,prefix,suffix,modifier:tryConsume("MODIFIER")||""});continue}mustConsume("END")}return result}exports.parse=parse;function compile(str,options){return tokensToFunction(parse(str,options),options)}exports.compile=compile;function tokensToFunction(tokens,options){options===void 0&&(options={});var reFlags=flags(options),_a=options.encode,encode=_a===void 0?function(x){return x}:_a,_b=options.validate,validate=_b===void 0?!0:_b,matches=tokens.map(function(token){if(typeof token=="object")return new RegExp("^(?:"+token.pattern+")$",reFlags)});return function(data){for(var path="",i=0;i<tokens.length;i++){var token=tokens[i];if(typeof token=="string"){path+=token;continue}var value=data?data[token.name]:void 0,optional=token.modifier==="?"||token.modifier==="*",repeat=token.modifier==="*"||token.modifier==="+";if(Array.isArray(value)){if(!repeat)throw new TypeError('Expected "'+token.name+'" to not repeat, but got an array');if(value.length===0){if(optional)continue;throw new TypeError('Expected "'+token.name+'" to not be empty')}for(var j=0;j<value.length;j++){var segment=encode(value[j],token);if(validate&&!matches[i].test(segment))throw new TypeError('Expected all "'+token.name+'" to match "'+token.pattern+'", but got "'+segment+'"');path+=token.prefix+segment+token.suffix}continue}if(typeof value=="string"||typeof value=="number"){var segment=encode(String(value),token);if(validate&&!matches[i].test(segment))throw new TypeError('Expected "'+token.name+'" to match "'+token.pattern+'", but got "'+segment+'"');path+=token.prefix+segment+token.suffix;continue}if(!optional){var typeOfMessage=repeat?"an array":"a string";throw new TypeError('Expected "'+token.name+'" to be '+typeOfMessage)}}return path}}exports.tokensToFunction=tokensToFunction;function match(str,options){var keys=[],re=pathToRegexp2(str,keys,options);return regexpToFunction(re,keys,options)}exports.match=match;function regexpToFunction(re,keys,options){options===void 0&&(options={});var _a=options.decode,decode=_a===void 0?function(x){return x}:_a;return function(pathname){var m=re.exec(pathname);if(!m)return!1;for(var path=m[0],index=m.index,params=Object.create(null),_loop_1=function(i2){if(m[i2]===void 0)return"continue";var key=keys[i2-1];key.modifier==="*"||key.modifier==="+"?params[key.name]=m[i2].split(key.prefix+key.suffix).map(function(value){return decode(value,key)}):params[key.name]=decode(m[i2],key)},i=1;i<m.length;i++)_loop_1(i);return{path,index,params}}}exports.regexpToFunction=regexpToFunction;function escapeString(str){return str.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(options){return options&&options.sensitive?"":"i"}function regexpToRegexp(path,keys){if(!keys)return path;var groups=path.source.match(/\((?!\?)/g);if(groups)for(var i=0;i<groups.length;i++)keys.push({name:i,prefix:"",suffix:"",modifier:"",pattern:""});return path}function arrayToRegexp(paths,keys,options){var parts=paths.map(function(path){return pathToRegexp2(path,keys,options).source});return new RegExp("(?:"+parts.join("|")+")",flags(options))}function stringToRegexp(path,keys,options){return tokensToRegexp(parse(path,options),keys,options)}function tokensToRegexp(tokens,keys,options){options===void 0&&(options={});for(var _a=options.strict,strict=_a===void 0?!1:_a,_b=options.start,start=_b===void 0?!0:_b,_c=options.end,end=_c===void 0?!0:_c,_d=options.encode,encode=_d===void 0?function(x){return x}:_d,endsWith="["+escapeString(options.endsWith||"")+"]|$",delimiter="["+escapeString(options.delimiter||"/#?")+"]",route=start?"^":"",_i=0,tokens_1=tokens;_i<tokens_1.length;_i++){var token=tokens_1[_i];if(typeof token=="string")route+=escapeString(encode(token));else{var prefix=escapeString(encode(token.prefix)),suffix=escapeString(encode(token.suffix));if(token.pattern)if(keys&&keys.push(token),prefix||suffix)if(token.modifier==="+"||token.modifier==="*"){var mod=token.modifier==="*"?"?":"";route+="(?:"+prefix+"((?:"+token.pattern+")(?:"+suffix+prefix+"(?:"+token.pattern+"))*)"+suffix+")"+mod}else route+="(?:"+prefix+"("+token.pattern+")"+suffix+")"+token.modifier;else route+="("+token.pattern+")"+token.modifier;else route+="(?:"+prefix+suffix+")"+token.modifier}}if(end)strict||(route+=delimiter+"?"),route+=options.endsWith?"(?="+endsWith+")":"$";else{var endToken=tokens[tokens.length-1],isEndDelimited=typeof endToken=="string"?delimiter.indexOf(endToken[endToken.length-1])>-1:endToken===void 0;strict||(route+="(?:"+delimiter+"(?="+endsWith+"))?"),isEndDelimited||(route+="(?="+delimiter+"|"+endsWith+")")}return new RegExp(route,flags(options))}exports.tokensToRegexp=tokensToRegexp;function pathToRegexp2(path,keys,options){return path instanceof RegExp?regexpToRegexp(path,keys):Array.isArray(path)?arrayToRegexp(path,keys,options):stringToRegexp(path,keys,options)}exports.pathToRegexp=pathToRegexp2}});var require_dist3=__commonJS({"../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.pathToRegexp=exports.tokensToRegexp=exports.regexpToFunction=exports.match=exports.tokensToFunction=exports.compile=exports.parse=void 0;function lexer(str){for(var tokens=[],i=0;i<str.length;){var char=str[i];if(char==="*"||char==="+"||char==="?"){tokens.push({type:"MODIFIER",index:i,value:str[i++]});continue}if(char==="\\"){tokens.push({type:"ESCAPED_CHAR",index:i++,value:str[i++]});continue}if(char==="{"){tokens.push({type:"OPEN",index:i,value:str[i++]});continue}if(char==="}"){tokens.push({type:"CLOSE",index:i,value:str[i++]});continue}if(char===":"){for(var name="",j=i+1;j<str.length;){var code=str.charCodeAt(j);if(code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122||code===95){name+=str[j++];continue}break}if(!name)throw new TypeError("Missing parameter name at ".concat(i));tokens.push({type:"NAME",index:i,value:name}),i=j;continue}if(char==="("){var count=1,pattern="",j=i+1;if(str[j]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(j));for(;j<str.length;){if(str[j]==="\\"){pattern+=str[j++]+str[j++];continue}if(str[j]===")"){if(count--,count===0){j++;break}}else if(str[j]==="("&&(count++,str[j+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(j));pattern+=str[j++]}if(count)throw new TypeError("Unbalanced pattern at ".concat(i));if(!pattern)throw new TypeError("Missing pattern at ".concat(i));tokens.push({type:"PATTERN",index:i,value:pattern}),i=j;continue}tokens.push({type:"CHAR",index:i,value:str[i++]})}return tokens.push({type:"END",index:i,value:""}),tokens}function parse(str,options){options===void 0&&(options={});for(var tokens=lexer(str),_a=options.prefixes,prefixes=_a===void 0?"./":_a,_b=options.delimiter,delimiter=_b===void 0?"/#?":_b,result=[],key=0,i=0,path="",tryConsume=function(type){if(i<tokens.length&&tokens[i].type===type)return tokens[i++].value},mustConsume=function(type){var value2=tryConsume(type);if(value2!==void 0)return value2;var _a2=tokens[i],nextType=_a2.type,index=_a2.index;throw new TypeError("Unexpected ".concat(nextType," at ").concat(index,", expected ").concat(type))},consumeText=function(){for(var result2="",value2;value2=tryConsume("CHAR")||tryConsume("ESCAPED_CHAR");)result2+=value2;return result2},isSafe=function(value2){for(var _i=0,delimiter_1=delimiter;_i<delimiter_1.length;_i++){var char2=delimiter_1[_i];if(value2.indexOf(char2)>-1)return!0}return!1},safePattern=function(prefix2){var prev=result[result.length-1],prevText=prefix2||(prev&&typeof prev=="string"?prev:"");if(prev&&!prevText)throw new TypeError('Must have text between two parameters, missing text after "'.concat(prev.name,'"'));return!prevText||isSafe(prevText)?"[^".concat(escapeString(delimiter),"]+?"):"(?:(?!".concat(escapeString(prevText),")[^").concat(escapeString(delimiter),"])+?")};i<tokens.length;){var char=tryConsume("CHAR"),name=tryConsume("NAME"),pattern=tryConsume("PATTERN");if(name||pattern){var prefix=char||"";prefixes.indexOf(prefix)===-1&&(path+=prefix,prefix=""),path&&(result.push(path),path=""),result.push({name:name||key++,prefix,suffix:"",pattern:pattern||safePattern(prefix),modifier:tryConsume("MODIFIER")||""});continue}var value=char||tryConsume("ESCAPED_CHAR");if(value){path+=value;continue}path&&(result.push(path),path="");var open=tryConsume("OPEN");if(open){var prefix=consumeText(),name_1=tryConsume("NAME")||"",pattern_1=tryConsume("PATTERN")||"",suffix=consumeText();mustConsume("CLOSE"),result.push({name:name_1||(pattern_1?key++:""),pattern:name_1&&!pattern_1?safePattern(prefix):pattern_1,prefix,suffix,modifier:tryConsume("MODIFIER")||""});continue}mustConsume("END")}return result}exports.parse=parse;function compile(str,options){return tokensToFunction(parse(str,options),options)}exports.compile=compile;function tokensToFunction(tokens,options){options===void 0&&(options={});var reFlags=flags(options),_a=options.encode,encode=_a===void 0?function(x){return x}:_a,_b=options.validate,validate=_b===void 0?!0:_b,matches=tokens.map(function(token){if(typeof token=="object")return new RegExp("^(?:".concat(token.pattern,")$"),reFlags)});return function(data){for(var path="",i=0;i<tokens.length;i++){var token=tokens[i];if(typeof token=="string"){path+=token;continue}var value=data?data[token.name]:void 0,optional=token.modifier==="?"||token.modifier==="*",repeat=token.modifier==="*"||token.modifier==="+";if(Array.isArray(value)){if(!repeat)throw new TypeError('Expected "'.concat(token.name,'" to not repeat, but got an array'));if(value.length===0){if(optional)continue;throw new TypeError('Expected "'.concat(token.name,'" to not be empty'))}for(var j=0;j<value.length;j++){var segment=encode(value[j],token);if(validate&&!matches[i].test(segment))throw new TypeError('Expected all "'.concat(token.name,'" to match "').concat(token.pattern,'", but got "').concat(segment,'"'));path+=token.prefix+segment+token.suffix}continue}if(typeof value=="string"||typeof value=="number"){var segment=encode(String(value),token);if(validate&&!matches[i].test(segment))throw new TypeError('Expected "'.concat(token.name,'" to match "').concat(token.pattern,'", but got "').concat(segment,'"'));path+=token.prefix+segment+token.suffix;continue}if(!optional){var typeOfMessage=repeat?"an array":"a string";throw new TypeError('Expected "'.concat(token.name,'" to be ').concat(typeOfMessage))}}return path}}exports.tokensToFunction=tokensToFunction;function match(str,options){var keys=[],re=pathToRegexp2(str,keys,options);return regexpToFunction(re,keys,options)}exports.match=match;function regexpToFunction(re,keys,options){options===void 0&&(options={});var _a=options.decode,decode=_a===void 0?function(x){return x}:_a;return function(pathname){var m=re.exec(pathname);if(!m)return!1;for(var path=m[0],index=m.index,params=Object.create(null),_loop_1=function(i2){if(m[i2]===void 0)return"continue";var key=keys[i2-1];key.modifier==="*"||key.modifier==="+"?params[key.name]=m[i2].split(key.prefix+key.suffix).map(function(value){return decode(value,key)}):params[key.name]=decode(m[i2],key)},i=1;i<m.length;i++)_loop_1(i);return{path,index,params}}}exports.regexpToFunction=regexpToFunction;function escapeString(str){return str.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(options){return options&&options.sensitive?"":"i"}function regexpToRegexp(path,keys){if(!keys)return path;for(var groupsRegex=/\((?:\?<(.*?)>)?(?!\?)/g,index=0,execResult=groupsRegex.exec(path.source);execResult;)keys.push({name:execResult[1]||index++,prefix:"",suffix:"",modifier:"",pattern:""}),execResult=groupsRegex.exec(path.source);return path}function arrayToRegexp(paths,keys,options){var parts=paths.map(function(path){return pathToRegexp2(path,keys,options).source});return new RegExp("(?:".concat(parts.join("|"),")"),flags(options))}function stringToRegexp(path,keys,options){return tokensToRegexp(parse(path,options),keys,options)}function tokensToRegexp(tokens,keys,options){options===void 0&&(options={});for(var _a=options.strict,strict=_a===void 0?!1:_a,_b=options.start,start=_b===void 0?!0:_b,_c=options.end,end=_c===void 0?!0:_c,_d=options.encode,encode=_d===void 0?function(x){return x}:_d,_e=options.delimiter,delimiter=_e===void 0?"/#?":_e,_f=options.endsWith,endsWith=_f===void 0?"":_f,endsWithRe="[".concat(escapeString(endsWith),"]|$"),delimiterRe="[".concat(escapeString(delimiter),"]"),route=start?"^":"",_i=0,tokens_1=tokens;_i<tokens_1.length;_i++){var token=tokens_1[_i];if(typeof token=="string")route+=escapeString(encode(token));else{var prefix=escapeString(encode(token.prefix)),suffix=escapeString(encode(token.suffix));if(token.pattern)if(keys&&keys.push(token),prefix||suffix)if(token.modifier==="+"||token.modifier==="*"){var mod=token.modifier==="*"?"?":"";route+="(?:".concat(prefix,"((?:").concat(token.pattern,")(?:").concat(suffix).concat(prefix,"(?:").concat(token.pattern,"))*)").concat(suffix,")").concat(mod)}else route+="(?:".concat(prefix,"(").concat(token.pattern,")").concat(suffix,")").concat(token.modifier);else{if(token.modifier==="+"||token.modifier==="*")throw new TypeError('Can not repeat "'.concat(token.name,'" without a prefix and suffix'));route+="(".concat(token.pattern,")").concat(token.modifier)}else route+="(?:".concat(prefix).concat(suffix,")").concat(token.modifier)}}if(end)strict||(route+="".concat(delimiterRe,"?")),route+=options.endsWith?"(?=".concat(endsWithRe,")"):"$";else{var endToken=tokens[tokens.length-1],isEndDelimited=typeof endToken=="string"?delimiterRe.indexOf(endToken[endToken.length-1])>-1:endToken===void 0;strict||(route+="(?:".concat(delimiterRe,"(?=").concat(endsWithRe,"))?")),isEndDelimited||(route+="(?=".concat(delimiterRe,"|").concat(endsWithRe,")"))}return new RegExp(route,flags(options))}exports.tokensToRegexp=tokensToRegexp;function pathToRegexp2(path,keys,options){return path instanceof RegExp?regexpToRegexp(path,keys):Array.isArray(path)?arrayToRegexp(path,keys,options):stringToRegexp(path,keys,options)}exports.pathToRegexp=pathToRegexp2}});var require_superstatic=__commonJS({"../routing-utils/dist/superstatic.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),superstatic_exports={};__export(superstatic_exports,{collectHasSegments:()=>collectHasSegments,compilePathToRegexpTemplate:()=>compilePathToRegexpTemplate2,convertCleanUrls:()=>convertCleanUrls,convertHeaders:()=>convertHeaders,convertRedirects:()=>convertRedirects,convertRewrites:()=>convertRewrites2,convertTrailingSlash:()=>convertTrailingSlash,getCleanUrls:()=>getCleanUrls2,pathToRegexp:()=>pathToRegexp2,sourceToRegex:()=>sourceToRegex2});module.exports=__toCommonJS(superstatic_exports);var import_url=__require("url"),import_path_to_regexp=require_dist2(),import_path_to_regexp_updated=require_dist3();function cloneKeys(keys){if(!(typeof keys>"u"))return keys.slice(0)}function compareKeys(left,right){let leftSerialized=typeof left>"u"?"undefined":left.toString(),rightSerialized=typeof right>"u"?"undefined":right.toString();return leftSerialized===rightSerialized}function pathToRegexp2(callerId,path,keys,options){let newKeys=cloneKeys(keys),currentRegExp=(0,import_path_to_regexp.pathToRegexp)(path,keys,options);try{let currentKeys=keys,newRegExp=(0,import_path_to_regexp_updated.pathToRegexp)(path,newKeys,options),isDiffRegExp=currentRegExp.toString()!==newRegExp.toString();if(process.env.FORCE_PATH_TO_REGEXP_LOG||isDiffRegExp){let message=JSON.stringify({path,currentRegExp:currentRegExp.toString(),newRegExp:newRegExp.toString()});console.error(`[vc] PATH TO REGEXP PATH DIFF @ #${callerId}: ${message}`)}let isDiffKeys=!compareKeys(keys,newKeys);if(process.env.FORCE_PATH_TO_REGEXP_LOG||isDiffKeys){let message=JSON.stringify({isDiffKeys,currentKeys,newKeys});console.error(`[vc] PATH TO REGEXP KEYS DIFF @ #${callerId}: ${message}`)}}catch(err){let message=JSON.stringify({path,error:err.message});console.error(`[vc] PATH TO REGEXP ERROR @ #${callerId}: ${message}`)}return currentRegExp}var UN_NAMED_SEGMENT="__UN_NAMED_SEGMENT__";function getCleanUrls2(filePaths){return filePaths.map(toRoute).filter(f=>f.endsWith(".html")).map(f=>({html:f,clean:f.slice(0,-5)}))}function convertCleanUrls(cleanUrls,trailingSlash,status=308){let routes=[];if(cleanUrls){let loc=trailingSlash?"/$1/":"/$1";routes.push({src:"^/(?:(.+)/)?index(?:\\.html)?/?$",headers:{Location:loc},status}),routes.push({src:"^/(.*)\\.html/?$",headers:{Location:loc},status})}return routes}function convertRedirects(redirects,defaultStatus=308){return redirects.map(r=>{let{src,segments}=sourceToRegex2(r.source),hasSegments=collectHasSegments(r.has);normalizeHasKeys(r.has),normalizeHasKeys(r.missing);try{let loc=replaceSegments(segments,hasSegments,r.destination,!0),status;typeof r.permanent=="boolean"?status=r.permanent?308:307:r.statusCode?status=r.statusCode:status=defaultStatus;let route={src,headers:{Location:loc},status};return typeof r.env<"u"&&(route.env=r.env),r.has&&(route.has=r.has),r.missing&&(route.missing=r.missing),route}catch{throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`)}})}function convertRewrites2(rewrites,internalParamNames){return rewrites.map(r=>{let{src,segments}=sourceToRegex2(r.source),hasSegments=collectHasSegments(r.has);normalizeHasKeys(r.has),normalizeHasKeys(r.missing);try{let interpolate=value=>replaceSegments(segments,hasSegments,value,!1,internalParamNames),route;if(typeof r.destination=="string")route={src,dest:interpolate(r.destination),check:!0};else{let destination={...r.destination,type:"service"};typeof destination.path=="string"&&(destination.path=interpolate(destination.path)),route={src,destination}}return r.transforms&&(route.transforms=r.transforms.map(transform=>transform.type!=="request.path"?{...transform}:{...transform,args:compilePathToRegexpTemplateFromSegments(transform.args,segments,hasSegments,transform.env)})),typeof r.env<"u"&&(route.env=r.env),r.has&&(route.has=r.has),r.missing&&(route.missing=r.missing),r.statusCode&&(route.status=r.statusCode),route}catch{throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`)}})}function convertHeaders(headers){return headers.map(h=>{let obj={},{src,segments}=sourceToRegex2(h.source),hasSegments=collectHasSegments(h.has);normalizeHasKeys(h.has),normalizeHasKeys(h.missing);let namedSegments=segments.filter(name=>name!==UN_NAMED_SEGMENT),indexes={};segments.forEach((name,index)=>{indexes[name]=toSegmentDest(index)}),hasSegments.forEach(name=>{indexes[name]="$"+name}),h.headers.forEach(({key,value})=>{(namedSegments.length>0||hasSegments.length>0)&&(key.includes(":")&&(key=safelyCompile(key,indexes)),value.includes(":")&&(value=safelyCompile(value,indexes))),obj[key]=value});let route={src,headers:obj,continue:!0};return h.has&&(route.has=h.has),h.missing&&(route.missing=h.missing),route})}function convertTrailingSlash(enable,status=308){let routes=[];return enable?(routes.push({src:"^/\\.well-known(?:/.*)?$"}),routes.push({src:"^/((?:[^/]+/)*[^/\\.]+)$",headers:{Location:"/$1/"},status}),routes.push({src:"^/((?:[^/]+/)*[^/]+\\.\\w+)/$",headers:{Location:"/$1"},status})):routes.push({src:"^/(.*)\\/$",headers:{Location:"/$1"},status}),routes}function sourceToRegex2(source){let keys=[],r=pathToRegexp2("632",source,keys,{strict:!0,sensitive:!0,delimiter:"/"}),segments=keys.map(k=>k.name).map(name=>typeof name!="string"?UN_NAMED_SEGMENT:name);return{src:r.source,segments}}var namedGroupsRegex=/\(\?<([a-zA-Z][a-zA-Z0-9_]*)>/g,normalizeHasKeys=(hasItems=[])=>{for(let hasItem of hasItems)"key"in hasItem&&hasItem.type==="header"&&(hasItem.key=hasItem.key.toLowerCase());return hasItems};function getStringValueForRegex(value){return typeof value=="string"?value:value&&typeof value=="object"&&value!==null&&"re"in value&&typeof value.re=="string"?value.re:null}function collectHasSegments(has){let hasSegments=new Set;for(let hasItem of has||[]){!hasItem.value&&"key"in hasItem&&hasSegments.add(hasItem.key);let stringValue=getStringValueForRegex(hasItem.value);if(stringValue){for(let match of stringValue.matchAll(namedGroupsRegex))match[1]&&hasSegments.add(match[1]);hasItem.type==="host"&&hasSegments.add("host")}}return[...hasSegments]}var escapeSegment=(str,segmentName)=>str.replace(new RegExp(`:${segmentName}`,"g"),`__ESC_COLON_${segmentName}`),unescapeSegments=str=>str.replace(/__ESC_COLON_/gi,":"),pathTemplateSegmentNameRegex=/^([a-zA-Z_][a-zA-Z0-9_]*)/;function isEscaped(value,index){let backslashCount=0;for(let i=index-1;i>=0&&value[i]==="\\";i--)backslashCount++;return backslashCount%2===1}function collectPathTemplateSegments(template){let segments=[];for(let i=0;i<template.length;i++){if(template[i]!==":"||isEscaped(template,i))continue;let match=template.slice(i+1).match(pathTemplateSegmentNameRegex);match&&(segments.push(match[1]),i+=match[1].length)}return segments}function collectNamedDollarReferences(template){let references=[];for(let i=0;i<template.length;i++){if(template[i]!=="$"||isEscaped(template,i))continue;let remainder=template.slice(i+1),bracedMatch=remainder.match(/^\{([a-zA-Z_][a-zA-Z0-9_]*)\}/),unbracedMatch=remainder.match(pathTemplateSegmentNameRegex),name=bracedMatch?.[1]||unbracedMatch?.[1];name&&references.push(name)}return references}function compilePathToRegexpTemplateFromSegments(template,segments,hasItemSegments,env=[]){let indexes={};segments.forEach((name,index)=>{indexes[name]=toSegmentDest(index)}),hasItemSegments.forEach(name=>{indexes[name]=`$${name}`});for(let name of collectPathTemplateSegments(template))if(!(name in indexes))throw new Error(`Path template references parameter ":${name}" that is not present in the source or has conditions.`);let routeParameters=new Set([...segments.filter(name=>name!==UN_NAMED_SEGMENT),...hasItemSegments]);for(let name of collectNamedDollarReferences(template))if(routeParameters.has(name)&&!env.includes(name))throw new Error(`Path template references route parameter "${name}" as \`$${name}\`. Use \`:${name}\` path-to-regexp syntax in high-level rewrites, or list "${name}" in the transform env allowlist if it is an environment variable.`);return safelyCompile(template,indexes,!0)}function compilePathToRegexpTemplate2(source,template,has,env){let{segments}=sourceToRegex2(source);return compilePathToRegexpTemplateFromSegments(template,segments,collectHasSegments(has),env)}function replaceSegments(segments,hasItemSegments,destination,isRedirect,internalParamNames){let namedSegments=segments.filter(name=>name!==UN_NAMED_SEGMENT);if(!(destination.includes(":")&&namedSegments.length>0||hasItemSegments.length>0||!isRedirect))return destination;let escapedDestination=destination,indexes={};segments.forEach((name,index)=>{indexes[name]=toSegmentDest(index),escapedDestination=escapeSegment(escapedDestination,name)}),hasItemSegments.forEach(name=>{indexes[name]="$"+name,escapedDestination=escapeSegment(escapedDestination,name)});let parsedDestination=(0,import_url.parse)(escapedDestination,!0);delete parsedDestination.href,delete parsedDestination.path,delete parsedDestination.search,delete parsedDestination.host;let{pathname,hash,query,hostname,...rest}=parsedDestination;pathname=unescapeSegments(pathname||""),hash=unescapeSegments(hash||""),hostname=unescapeSegments(hostname||"");let destParams=new Set,pathnameKeys=[],hashKeys=[],hostnameKeys=[];try{pathToRegexp2("528",pathname,pathnameKeys),pathToRegexp2("834",hash||"",hashKeys),pathToRegexp2("712",hostname||"",hostnameKeys)}catch{}destParams=new Set([...pathnameKeys,...hashKeys,...hostnameKeys].map(key=>key.name).filter(val=>typeof val=="string")),pathname=safelyCompile(pathname,indexes,!0),hash=hash?safelyCompile(hash,indexes,!0):null,hostname=hostname?safelyCompile(hostname,indexes,!0):null;for(let[key,strOrArray]of Object.entries(query))Array.isArray(strOrArray)?query[key]=strOrArray.map(str=>safelyCompile(unescapeSegments(str),indexes,!0)):query[key]=safelyCompile(unescapeSegments(strOrArray),indexes,!0);let paramKeys=Object.keys(indexes);if(!isRedirect&&!paramKeys.some(param=>!(internalParamNames&&internalParamNames.includes(param))&&destParams.has(param)))for(let param of paramKeys)!(param in query)&¶m!==UN_NAMED_SEGMENT&&(query[param]=indexes[param]);return destination=(0,import_url.format)({...rest,hostname,pathname,query,hash}),destination.replace(/%24/g,"$")}function safelyCompile(value,indexes,attemptDirectCompile){if(!value)return value;if(attemptDirectCompile)try{return(0,import_path_to_regexp.compile)(value,{validate:!1})(indexes)}catch{}for(let key of Object.keys(indexes))value.includes(`:${key}`)&&(value=value.replace(new RegExp(`:${key}\\*`,"g"),`:${key}--ESCAPED_PARAM_ASTERISK`).replace(new RegExp(`:${key}\\?`,"g"),`:${key}--ESCAPED_PARAM_QUESTION`).replace(new RegExp(`:${key}\\+`,"g"),`:${key}--ESCAPED_PARAM_PLUS`).replace(new RegExp(`:${key}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${key}`));return value=value.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISK/g,"*"),(0,import_path_to_regexp.compile)(`/${value}`,{validate:!1})(indexes).slice(1)}function toSegmentDest(index){return"$"+(index+1).toString()}function toRoute(filePath){return filePath.startsWith("/")?filePath:"/"+filePath}}});var require_append=__commonJS({"../routing-utils/dist/append.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),append_exports={};__export(append_exports,{appendRoutesToPhase:()=>appendRoutesToPhase2});module.exports=__toCommonJS(append_exports);var import_index=require_dist4();function appendRoutesToPhase2({routes:prevRoutes,newRoutes,phase}){let routes=prevRoutes?[...prevRoutes]:[];if(newRoutes===null||newRoutes.length===0)return routes;let isInPhase=!1,insertIndex=-1;if(routes.forEach((r,i)=>{(0,import_index.isHandler)(r)&&(r.handle===phase?isInPhase=!0:isInPhase&&(insertIndex=i,isInPhase=!1))}),isInPhase)routes.push(...newRoutes);else if(phase===null){let lastPhase=routes.findIndex(r=>(0,import_index.isHandler)(r)&&r.handle);lastPhase===-1?routes.push(...newRoutes):routes.splice(lastPhase,0,...newRoutes)}else insertIndex>-1?routes.splice(insertIndex,0,...newRoutes):(routes.push({handle:phase}),routes.push(...newRoutes));return routes}}});var require_merge=__commonJS({"../routing-utils/dist/merge.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),merge_exports={};__export(merge_exports,{mergeRoutes:()=>mergeRoutes2});module.exports=__toCommonJS(merge_exports);var import_index=require_dist4();function getBuilderRoutesMapping(builds){let builderRoutes={};for(let{entrypoint,routes,use}of builds)routes&&(builderRoutes[entrypoint]||(builderRoutes[entrypoint]={}),builderRoutes[entrypoint][use]=routes);return builderRoutes}function addToHandleMap(path,routesMapping,handleMap){let br=routesMapping[path];Object.keys(br).sort().forEach(use=>{let prevHandle=null;br[use].forEach(route=>{if((0,import_index.isHandler)(route))prevHandle=route.handle;else{let routes=handleMap.get(prevHandle);routes?routes.push(route):handleMap.set(prevHandle,[route])}})})}function getCheckAndContinue(routes){let checks=[],continues=[],others=[];for(let route of routes){if((0,import_index.isHandler)(route))throw new Error(`Unexpected route found in getCheckAndContinue(): ${JSON.stringify(route)}`);route.check&&!route.override?checks.push(route):route.continue&&!route.override?continues.push(route):others.push(route)}return{checks,continues,others}}function mergeRoutes2({userRoutes,builds}){let userHandleMap=new Map,userPrevHandle=null;(userRoutes||[]).forEach(route=>{if((0,import_index.isHandler)(route))userPrevHandle=route.handle;else{let routes=userHandleMap.get(userPrevHandle);routes?routes.push(route):userHandleMap.set(userPrevHandle,[route])}});let projectHandleMap=new Map,projectMiddlewareRoutes=getBuilderRoutesMapping(builds.filter(b=>b.projectMiddleware));Object.keys(projectMiddlewareRoutes).sort().forEach(path=>addToHandleMap(path,projectMiddlewareRoutes,projectHandleMap));let builderHandleMap=new Map,builderRoutes=getBuilderRoutesMapping(builds.filter(b=>!b.projectMiddleware));Object.keys(builderRoutes).sort().forEach(path=>addToHandleMap(path,builderRoutes,builderHandleMap));let outputRoutes=[],uniqueHandleValues=new Set([null,...userHandleMap.keys(),...projectHandleMap.keys(),...builderHandleMap.keys()]);for(let handle of uniqueHandleValues){let userRoutes2=userHandleMap.get(handle)||[],projectRoutes=projectHandleMap.get(handle)||[],builderRoutes2=builderHandleMap.get(handle)||[],builderSorted=getCheckAndContinue(builderRoutes2);handle!==null&&(userRoutes2.length>0||projectRoutes.length>0||builderRoutes2.length>0)&&outputRoutes.push({handle}),outputRoutes.push(...builderSorted.continues),outputRoutes.push(...userRoutes2),outputRoutes.push(...projectRoutes),outputRoutes.push(...builderSorted.checks),outputRoutes.push(...builderSorted.others)}return outputRoutes}}});var require_service_route_ownership=__commonJS({"../routing-utils/dist/service-route-ownership.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),service_route_ownership_exports={};__export(service_route_ownership_exports,{getOwnershipGuard:()=>getOwnershipGuard2,normalizeRoutePrefix:()=>normalizeRoutePrefix2,scopeRouteSourceToOwnership:()=>scopeRouteSourceToOwnership2});module.exports=__toCommonJS(service_route_ownership_exports);function normalizeRoutePrefix2(routePrefix){let normalized=routePrefix.startsWith("/")?routePrefix:`/${routePrefix}`;return normalized!=="/"&&normalized.endsWith("/")&&(normalized=normalized.slice(0,-1)),normalized||"/"}function escapeForRegex(value){return value.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function toPrefixMatcher(routePrefix){return`${escapeForRegex(routePrefix)}(?:/|$)`}function isDescendantPrefix(candidate,prefix){return candidate!==prefix&&candidate.startsWith(`${prefix}/`)}function getOwnershipGuard2(ownerPrefix,allRoutePrefixes){let owner=normalizeRoutePrefix2(ownerPrefix),nonRootPrefixes=Array.from(new Set(allRoutePrefixes.map(normalizeRoutePrefix2))).filter(prefix=>prefix!=="/").sort((a,b)=>b.length-a.length);if(owner==="/")return nonRootPrefixes.map(prefix=>`(?!${toPrefixMatcher(prefix)})`).join("");let descendants=nonRootPrefixes.filter(prefix=>isDescendantPrefix(prefix,owner)),positive=`(?=${toPrefixMatcher(owner)})`,negative=descendants.map(prefix=>`(?!${toPrefixMatcher(prefix)})`).join("");return`${positive}${negative}`}function scopeRouteSourceToOwnership2(source,ownershipGuard){if(!ownershipGuard)return source;let inner=source.startsWith("^")?source.slice(1):source;return`^${ownershipGuard}(?:${inner})`}}});var require_schemas=__commonJS({"../routing-utils/dist/schemas.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),schemas_exports={};__export(schemas_exports,{cleanUrlsSchema:()=>cleanUrlsSchema,hasSchema:()=>hasSchema,headersSchema:()=>headersSchema,redirectsSchema:()=>redirectsSchema,rewritesSchema:()=>rewritesSchema,routesSchema:()=>routesSchema,trailingSlashSchema:()=>trailingSlashSchema,transformsSchema:()=>transformsSchema});module.exports=__toCommonJS(schemas_exports);var mitigateSchema={description:"Mitigation action to take on a route",type:"object",additionalProperties:!1,required:["action"],properties:{action:{description:"The mitigation action to take",type:"string",enum:["challenge","deny"]}}},serviceNameSchema={description:"A service name identifier.",type:"string",minLength:1,maxLength:64,pattern:"^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$"},serviceDestinationSchema={description:"A service-targeted destination that delegates routing into a named service from `services`. Identified by the presence of `service`.",type:"object",additionalProperties:!1,required:["service"],properties:{type:{description:"Optional explicit format marker. The destination shape is identified by the `service` property, so `type` is no longer required. When present it must be `service`.",type:"string",enum:["service"]},service:serviceNameSchema,path:{description:"Routing-only path used to select a route inside the target service. It does not mutate the URL observed by user code.",type:"string",maxLength:4096}}},matchableValueSchema={description:"A value to match against. Can be a string (regex) or a condition operation object",anyOf:[{description:"A regular expression used to match thev value. Named groups can be used in the destination.",type:"string",maxLength:4096},{description:"A condition operation object",type:"object",additionalProperties:!1,minProperties:1,properties:{eq:{description:"Equal to",anyOf:[{type:"string",maxLength:4096},{type:"number"}]},neq:{description:"Not equal",type:"string",maxLength:4096},inc:{description:"In array",type:"array",items:{type:"string",maxLength:4096}},ninc:{description:"Not in array",type:"array",items:{type:"string",maxLength:4096}},pre:{description:"Starts with",type:"string",maxLength:4096},suf:{description:"Ends with",type:"string",maxLength:4096},re:{description:"Regex",type:"string",maxLength:4096},gt:{description:"Greater than",type:"number"},gte:{description:"Greater than or equal to",type:"number"},lt:{description:"Less than",type:"number"},lte:{description:"Less than or equal to",type:"number"}}}]},hasSchema={description:"An array of requirements that are needed to match",type:"array",maxItems:16,items:{anyOf:[{type:"object",additionalProperties:!1,required:["type","value"],properties:{type:{description:"The type of request element to check",type:"string",enum:["host"]},value:matchableValueSchema}},{type:"object",additionalProperties:!1,required:["type","key"],properties:{type:{description:"The type of request element to check",type:"string",enum:["header","cookie","query"]},key:{description:"The name of the element contained in the particular type",type:"string",maxLength:4096},value:matchableValueSchema}}]}},transformsSchema={description:"A list of transform rules to adjust a request path, request query parameters, or request/response headers",type:"array",minItems:1,items:{type:"object",additionalProperties:!1,required:["type","op"],properties:{type:{description:"The scope of the transform to apply",type:"string",enum:["request.headers","request.query","response.headers","request.path"]},op:{description:"The operation to perform on the target",type:"string",enum:["append","set","delete"]},target:{description:"The target of the transform",type:"object",required:["key"],properties:{key:{description:"A value to match against. Can be a string or a condition operation object (without regex support)",anyOf:[{description:"A valid header name (letters, numbers, hyphens, underscores)",type:"string",maxLength:4096},{description:"A condition operation object",type:"object",additionalProperties:!1,minProperties:1,properties:{eq:{description:"Equal to",anyOf:[{type:"string",maxLength:4096},{type:"number"}]},neq:{description:"Not equal",type:"string",maxLength:4096},inc:{description:"In array",type:"array",items:{type:"string",maxLength:4096}},ninc:{description:"Not in array",type:"array",items:{type:"string",maxLength:4096}},pre:{description:"Starts with",type:"string",maxLength:4096},suf:{description:"Ends with",type:"string",maxLength:4096},gt:{description:"Greater than",type:"number"},gte:{description:"Greater than or equal to",type:"number"},lt:{description:"Less than",type:"number"},lte:{description:"Less than or equal to",type:"number"}}}]}}},args:{description:"The arguments to the operation",anyOf:[{type:"string",maxLength:4096},{type:"array",minItems:1,items:{type:"string",maxLength:4096}}]},env:{description:"An array of environment variable names that should be replaced at runtime in the args value",type:"array",minItems:1,maxItems:64,items:{type:"string",maxLength:256}}},allOf:[{if:{properties:{op:{enum:["append","set"]}}},then:{required:["args"]}},{if:{allOf:[{properties:{type:{enum:["request.headers","response.headers"]}}},{properties:{op:{enum:["set","append"]}}}]},then:{properties:{target:{properties:{key:{if:{type:"string"},then:{pattern:"^[a-zA-Z0-9_-]+$"}}}},args:{anyOf:[{type:"string",pattern:"^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"},{type:"array",items:{type:"string",pattern:"^[a-zA-Z0-9_ :;.,\"'?!(){}\\[\\]@<>=+*#$&`|~\\^%/-]+$"}}]}}}},{if:{required:["type"],properties:{type:{enum:["request.headers","request.query","response.headers"]}}},then:{required:["target"]}},{if:{required:["type"],properties:{type:{enum:["request.path"]}}},then:{required:["args"],not:{required:["target"]},properties:{op:{enum:["set"]},args:{description:"The runtime-visible request path. Must be an origin-form path without query or fragment.",type:"string",maxLength:2048,pattern:"^/(?!/)(?!.*[?#\\s\\x00-\\x1F\\x7F]).*$"}}}}]}},rewriteTransformsSchema={description:"A list of request path transforms using path-to-regexp parameters.",type:"array",minItems:1,items:{type:"object",additionalProperties:!1,required:["type","op","args"],properties:{type:{description:"The request path to expose to the target runtime",type:"string",enum:["request.path"]},op:{description:"Replace the runtime-visible request path",type:"string",enum:["set"]},args:{description:"An origin-form request path. Route parameters use path-to-regexp syntax such as `/:path*`.",type:"string",maxLength:2048,pattern:"^/(?!/)(?!.*[?#\\s\\x00-\\x1F\\x7F]).*$"},env:{description:"An array of environment variable names that should be replaced at runtime in the args value",type:"array",minItems:1,maxItems:64,items:{type:"string",maxLength:256}}}}},routesSchema={type:"array",description:"A list of routes objects used to rewrite paths to point towards other internal or external paths",example:[{dest:"https://docs.example.com",src:"/docs"}],items:{anyOf:[{type:"object",anyOf:[{required:["src"]},{required:["source"]}],additionalProperties:!1,properties:{src:{type:"string",maxLength:4096},source:{type:"string",maxLength:4096},dest:{type:"string",maxLength:4096},destination:{anyOf:[{type:"string",maxLength:4096},serviceDestinationSchema]},headers:{type:"object",additionalProperties:!1,minProperties:1,maxProperties:100,patternProperties:{"^.{1,256}$":{type:"string",maxLength:32768}}},methods:{type:"array",maxItems:10,items:{type:"string",maxLength:32}},caseSensitive:{type:"boolean"},important:{deprecated:!0,type:"boolean"},user:{type:"boolean"},continue:{type:"boolean"},override:{deprecated:!0,type:"boolean"},check:{type:"boolean"},isInternal:{type:"boolean"},status:{type:"integer",minimum:100,maximum:999},statusCode:{type:"integer",minimum:100,maximum:999},locale:{type:"object",additionalProperties:!1,minProperties:1,properties:{redirect:{type:"object",additionalProperties:!1,minProperties:1,maxProperties:100,patternProperties:{"^.{1,256}$":{type:"string",maxLength:4096}}},value:{type:"string",maxLength:4096},path:{type:"string",maxLength:4096},cookie:{type:"string",maxLength:4096},default:{type:"string",maxLength:4096}}},middleware:{type:"number"},middlewarePath:{type:"string"},middlewareRawSrc:{type:"array",items:{type:"string"}},has:hasSchema,missing:hasSchema,mitigate:mitigateSchema,transforms:transformsSchema,env:{description:"An array of environment variable names that should be replaced at runtime in the destination or headers",type:"array",minItems:1,maxItems:64,items:{type:"string",maxLength:256}},respectOriginCacheControl:{description:"When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",type:"boolean"}}},{type:"object",deprecated:!0,required:["handle"],additionalProperties:!1,properties:{handle:{type:"string",maxLength:32,enum:["error","filesystem","hit","miss","resource","rewrite"]}}}]}},rewritesSchema={type:"array",maxItems:2048,description:"A list of rewrite definitions.",items:{type:"object",additionalProperties:!1,required:["source","destination"],properties:{source:{description:"A pattern that matches each incoming pathname (excluding querystring).",type:"string",maxLength:4096},destination:{description:"An absolute pathname to an existing resource, an external URL, or a service-targeted destination object.",anyOf:[{type:"string",maxLength:4096},serviceDestinationSchema]},transforms:rewriteTransformsSchema,has:hasSchema,missing:hasSchema,statusCode:{description:"An optional integer to override the status code of the response.",type:"integer",minimum:100,maximum:999},env:{description:"An array of environment variable names that should be replaced at runtime in the destination",type:"array",minItems:1,maxItems:64,items:{type:"string",maxLength:256}},respectOriginCacheControl:{description:"When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",type:"boolean"}}}},redirectsSchema={title:"Redirects",type:"array",maxItems:2048,description:"A list of redirect definitions.",items:{type:"object",additionalProperties:!1,required:["source","destination"],properties:{source:{description:"A pattern that matches each incoming pathname (excluding querystring) or a full URL including domain.",type:"string",maxLength:4096},destination:{description:"A location destination defined as an absolute pathname or external URL.",type:"string",maxLength:4096},permanent:{description:"A boolean to toggle between permanent and temporary redirect. When `true`, the status code is `308`. When `false` the status code is `307`.",type:"boolean"},statusCode:{description:"An optional integer to define the status code of the redirect.",private:!0,type:"integer",minimum:100,maximum:999},has:hasSchema,missing:hasSchema,env:{description:"An array of environment variable names that should be replaced at runtime in the destination",type:"array",minItems:1,maxItems:64,items:{type:"string",maxLength:256}}}}},headersSchema={type:"array",maxItems:2048,description:"A list of header definitions.",items:{type:"object",additionalProperties:!1,required:["source","headers"],properties:{source:{description:"A pattern that matches each incoming pathname (excluding querystring)",type:"string",maxLength:4096},headers:{description:"An array of key/value pairs representing each response header.",type:"array",maxItems:1024,items:{type:"object",additionalProperties:!1,required:["key","value"],properties:{key:{type:"string",maxLength:4096},value:{type:"string",maxLength:32768}}}},has:hasSchema,missing:hasSchema}}},cleanUrlsSchema={description:"When set to `true`, all HTML files and Serverless Functions will have their extension removed. When visiting a path that ends with the extension, a 308 response will redirect the client to the extensionless path.",type:"boolean"},trailingSlashSchema={description:"When `false`, visiting a path that ends with a forward slash will respond with a `308` status code and redirect to the path without the trailing slash.",type:"boolean"}}});var require_types=__commonJS({"../routing-utils/dist/types.js"(exports,module){"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__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),types_exports={};module.exports=__toCommonJS(types_exports)}});var require_dist4=__commonJS({"../routing-utils/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},__reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default")),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),src_exports={};__export(src_exports,{appendRoutesToPhase:()=>import_append.appendRoutesToPhase,compilePathToRegexpTemplate:()=>import_superstatic2.compilePathToRegexpTemplate,convertRewrites:()=>import_superstatic2.convertRewrites,getCleanUrls:()=>import_superstatic2.getCleanUrls,getOwnershipGuard:()=>import_service_route_ownership.getOwnershipGuard,getTransformedRoutes:()=>getTransformedRoutes,isHandler:()=>isHandler,isValidHandleValue:()=>isValidHandleValue,mergeRoutes:()=>import_merge.mergeRoutes,normalizeRoutePrefix:()=>import_service_route_ownership.normalizeRoutePrefix,normalizeRoutes:()=>normalizeRoutes,pathToRegexp:()=>import_superstatic2.pathToRegexp,scopeRouteSourceToOwnership:()=>import_service_route_ownership.scopeRouteSourceToOwnership,sourceToRegex:()=>import_superstatic2.sourceToRegex});module.exports=__toCommonJS(src_exports);var import_url=__require("url"),import_superstatic=require_superstatic(),import_append=require_append(),import_merge=require_merge(),import_service_route_ownership=require_service_route_ownership();__reExport(src_exports,require_schemas(),module.exports);var import_superstatic2=require_superstatic();__reExport(src_exports,require_types(),module.exports);var VALID_HANDLE_VALUES=["filesystem","hit","miss","rewrite","error","resource"],validHandleValues=new Set(VALID_HANDLE_VALUES);function isHandler(route){return typeof route.handle<"u"}function isValidHandleValue(handle){return validHandleValues.has(handle)}function convertRouteAliases(route,index){if(route.source!==void 0){if(route.src!==void 0)throw new Error(`Route at index ${index} cannot define both \`src\` and \`source\`. Please use only one.`);route.src=route.source,delete route.source}if(route.destination!==void 0){if(route.dest!==void 0)throw new Error(`Route at index ${index} cannot define both \`dest\` and \`destination\`. Please use only one.`);typeof route.destination=="string"?(route.dest=route.destination,delete route.destination):typeof route.destination.service=="string"&&(route.destination={...route.destination,type:"service"})}if(route.statusCode!==void 0){if(route.status!==void 0)throw new Error(`Route at index ${index} cannot define both \`status\` and \`statusCode\`. Please use only one.`);route.status=route.statusCode,delete route.statusCode}}function normalizeRoutes(inputRoutes){if(!inputRoutes||inputRoutes.length===0)return{routes:inputRoutes,error:null};let routes=[],handling=[],errors=[];inputRoutes.forEach((r,i)=>{let route={...r};if(routes.push(route),!isHandler(route))try{convertRouteAliases(route,i)}catch(err){errors.push(err.message)}let keys=Object.keys(route);if(isHandler(route)){let{handle}=route;if(keys.length!==1){let unknownProp=keys.find(prop=>prop!=="handle");errors.push(`Route at index ${i} has unknown property \`${unknownProp}\`.`)}else isValidHandleValue(handle)?handling.includes(handle)?errors.push(`Route at index ${i} is a duplicate. Please use one \`handle: ${handle}\` at most.`):handling.push(handle):errors.push(`Route at index ${i} has unknown handle value \`handle: ${handle}\`.`)}else if(route.src){route.src.startsWith("^")||(route.src=`^${route.src}`),route.src.endsWith("$")||(route.src=`${route.src}$`),route.src=route.src.replace(/\\\//g,"/");let regError=checkRegexSyntax("Route",i,route.src);regError&&errors.push(regError),route.destination&&typeof route.destination=="object"&&route.continue&&errors.push(`Route at index ${i} cannot define \`continue: true\` with a service \`destination\`. The service handoff is terminal.`);let handleValue=handling[handling.length-1];handleValue==="hit"?(route.dest&&errors.push(`Route at index ${i} cannot define \`dest\`/\`destination\` after \`handle: hit\`.`),route.status&&errors.push(`Route at index ${i} cannot define \`status\`/\`statusCode\` after \`handle: hit\`.`),route.continue||errors.push(`Route at index ${i} must define \`continue: true\` after \`handle: hit\`.`)):handleValue==="miss"&&(route.dest&&!route.check?errors.push(`Route at index ${i} must define \`check: true\` after \`handle: miss\`.`):!route.dest&&!route.continue&&errors.push(`Route at index ${i} must define \`continue: true\` after \`handle: miss\`.`))}else errors.push(`Route at index ${i} must define either \`src\` or \`source\` property.`)});let error=errors.length>0?createError("invalid_route",errors,"https://vercel.link/routes-json","Learn More"):null;return{routes,error}}function checkRegexSyntax(type,index,src){try{new RegExp(src)}catch{return`${type} at index ${index} has invalid \`${type==="Route"?"src`/`source":"source"}\` regular expression "${src}".`}return null}function checkPatternSyntax(type,index,{source,destination,has,transforms}){let sourceSegments=new Set,destinationSegments=new Set;try{sourceSegments=new Set((0,import_superstatic.sourceToRegex)(source).segments)}catch{return{message:`${type} at index ${index} has invalid \`source\` pattern "${source}".`,link:"https://vercel.link/invalid-route-source-pattern"}}let destinationString=typeof destination=="string"?destination:typeof destination?.path=="string"?destination.path:void 0;if(destinationString!==void 0){try{let{hostname,pathname,query}=(0,import_url.parse)(destinationString,!0);(0,import_superstatic.sourceToRegex)(hostname||"").segments.forEach(name=>destinationSegments.add(name)),(0,import_superstatic.sourceToRegex)(pathname||"").segments.forEach(name=>destinationSegments.add(name));for(let strOrArray of Object.values(query)){let value=Array.isArray(strOrArray)?strOrArray[0]:strOrArray;(0,import_superstatic.sourceToRegex)(value||"").segments.forEach(name=>destinationSegments.add(name))}}catch{}let hasSegments=(0,import_superstatic.collectHasSegments)(has);for(let segment of destinationSegments)if(!sourceSegments.has(segment)&&!hasSegments.includes(segment))return{message:`${type} at index ${index} has segment ":${segment}" in \`destination\` property but not in \`source\` or \`has\` property.`,link:"https://vercel.link/invalid-route-destination-segment"}}for(let transform of transforms||[])if(transform.type==="request.path")try{(0,import_superstatic.compilePathToRegexpTemplate)(source,transform.args,has,transform.env)}catch(error){return{message:`${type} at index ${index} has an invalid \`request.path\` transform: ${error instanceof Error?error.message:String(error)}`,link:"https://vercel.link/invalid-route-destination-segment"}}return null}function checkRedirect(r,index){return typeof r.permanent<"u"&&typeof r.statusCode<"u"?`Redirect at index ${index} cannot define both \`permanent\` and \`statusCode\` properties.`:null}function createError(code,allErrors,link,action){let errors=Array.isArray(allErrors)?allErrors:[allErrors],message=errors[0];return{name:"RouteApiError",code,message,link,action,errors}}function notEmpty(value){return value!=null}function getTransformedRoutes(vercelConfig){let{cleanUrls,rewrites,redirects,headers,trailingSlash}=vercelConfig,{routes:userRoutes=null}=vercelConfig,routes=null;if(typeof cleanUrls<"u"){let normalized=normalizeRoutes((0,import_superstatic.convertCleanUrls)(cleanUrls,trailingSlash));if(normalized.error)return normalized.error.code="invalid_clean_urls",{routes,error:normalized.error};routes=routes||[],routes.push(...normalized.routes||[])}if(typeof trailingSlash<"u"){let normalized=normalizeRoutes((0,import_superstatic.convertTrailingSlash)(trailingSlash));if(normalized.error)return normalized.error.code="invalid_trailing_slash",{routes,error:normalized.error};routes=routes||[],routes.push(...normalized.routes||[])}if(userRoutes){let normalized=normalizeRoutes(userRoutes);if(normalized.error)return{routes,error:normalized.error};routes=routes||[],routes.push(...normalized.routes||[])}if(typeof redirects<"u"){let code="invalid_redirect",regexErrorMessage=redirects.map((r,i)=>checkRegexSyntax("Redirect",i,r.source)).find(notEmpty);if(regexErrorMessage)return{routes,error:createError("invalid_redirect",regexErrorMessage,"https://vercel.link/invalid-route-source-pattern","Learn More")};let patternError=redirects.map((r,i)=>checkPatternSyntax("Redirect",i,r)).find(notEmpty);if(patternError)return{routes,error:createError(code,patternError.message,patternError.link,"Learn More")};let redirectErrorMessage=redirects.map(checkRedirect).find(notEmpty);if(redirectErrorMessage)return{routes,error:createError(code,redirectErrorMessage,"https://vercel.link/redirects-json","Learn More")};let normalized=normalizeRoutes((0,import_superstatic.convertRedirects)(redirects));if(normalized.error)return normalized.error.code=code,{routes,error:normalized.error};routes=routes||[],routes.push(...normalized.routes||[])}if(typeof headers<"u"){let code="invalid_header",regexErrorMessage=headers.map((r,i)=>checkRegexSyntax("Header",i,r.source)).find(notEmpty);if(regexErrorMessage)return{routes,error:createError(code,regexErrorMessage,"https://vercel.link/invalid-route-source-pattern","Learn More")};let patternError=headers.map((r,i)=>checkPatternSyntax("Header",i,r)).find(notEmpty);if(patternError)return{routes,error:createError(code,patternError.message,patternError.link,"Learn More")};let normalized=normalizeRoutes((0,import_superstatic.convertHeaders)(headers));if(normalized.error)return normalized.error.code=code,{routes,error:normalized.error};routes=routes||[],routes.push(...normalized.routes||[])}if(typeof rewrites<"u"){let code="invalid_rewrite",regexErrorMessage=rewrites.map((r,i)=>checkRegexSyntax("Rewrite",i,r.source)).find(notEmpty);if(regexErrorMessage)return{routes,error:createError(code,regexErrorMessage,"https://vercel.link/invalid-route-source-pattern","Learn More")};let patternError=rewrites.map((r,i)=>checkPatternSyntax("Rewrite",i,r)).find(notEmpty);if(patternError)return{routes,error:createError(code,patternError.message,patternError.link,"Learn More")};let normalized=normalizeRoutes((0,import_superstatic.convertRewrites)(rewrites));if(normalized.error)return normalized.error.code=code,{routes,error:normalized.error};routes=routes||[],routes.push({handle:"filesystem"}),routes.push(...normalized.routes||[])}return{routes,error:null}}}});var require_buildpack_runtimes=__commonJS({"../fs-detectors/dist/buildpack-runtimes.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),buildpack_runtimes_exports={};__export(buildpack_runtimes_exports,{BUILDPACK_PROJECT_MARKERS:()=>BUILDPACK_PROJECT_MARKERS,getGoPackageName:()=>getGoPackageName,hasBuildpackProjectMarker:()=>hasBuildpackProjectMarker,isBuildpackRuntimeEnabled:()=>isBuildpackRuntimeEnabled,toBuildpackRuntime:()=>toBuildpackRuntime});module.exports=__toCommonJS(buildpack_runtimes_exports);var BUILDPACK_PROJECT_MARKERS=new Map([["ruby",["Gemfile"]],["go",["go.mod"]],["rust",["Cargo.toml"]]]);function isBuildpackRuntimeEnabled(runtime){return process.env[`VERCEL_EXPERIMENTAL_BUILDPACK_${runtime.toUpperCase()}`]==="1"}function toBuildpackRuntime(runtime){if(!(!runtime||!BUILDPACK_PROJECT_MARKERS.has(runtime)||!isBuildpackRuntimeEnabled(runtime)))return runtime}async function hasBuildpackProjectMarker(runtime,hasFile){for(let marker of BUILDPACK_PROJECT_MARKERS.get(runtime)??[])if(await hasFile(marker))return!0;return!1}function getGoPackageName(source){let rest=source.replace(/^\uFEFF/,"");for(;;)if(rest=rest.trimStart(),rest.startsWith("//")){let newline=rest.indexOf(`
|
|
@@ -4,5 +4,5 @@ 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{login}from"./chunk-
|
|
7
|
+
import{login}from"./chunk-KTNRWBHM.js";import{loginCommand}from"./chunk-B4YYOSPY.js";import{help}from"./chunk-7D2HVBVP.js";import{printError}from"./chunk-V336CYEI.js";import{TelemetryClient}from"./chunk-HUJPGK7W.js";import{parseArguments}from"./chunk-R4VVQRLX.js";import{getFlagsSpecification}from"./chunk-5IPBCD7K.js";import{output_manager_default}from"./chunk-75IAMKGV.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);var LoginTelemetryClient=class extends TelemetryClient{trackState(...args){this.trackLoginState(...args)}};async function login2(client,options){let parsedArgs=null,flagsSpecification=getFlagsSpecification(loginCommand.options),telemetry=new LoginTelemetryClient({opts:{store:client.telemetryEventStore}});try{options.shouldParseArgs&&(parsedArgs=parseArguments(client.argv.slice(2),flagsSpecification))}catch(error){return printError(error),2}if(parsedArgs?.flags["--help"])return telemetry.trackCliFlagHelp("login"),output_manager_default.print(help(loginCommand,{columns:client.stderr.columns})),0;if(parsedArgs?.flags["--token"])return output_manager_default.error('`--token` may not be used with the "login" command'),2;if(options.shouldParseArgs&&parsedArgs){let obsoleteFlags=Object.keys(parsedArgs.flags).filter(flag=>{let flagKey=flag.replace("--",""),option=loginCommand.options.find(o=>o.name===flagKey);if(!(!option||typeof option=="number"))return"deprecated"in option&&option.deprecated});if(obsoleteFlags.length){let flags=obsoleteFlags.map(f=>import_chalk.default.bold(f)).join(", ");output_manager_default.warn(`The following flags are deprecated: ${flags}`)}let obsoleteArguments=parsedArgs.args.slice(1);if(obsoleteArguments.length){let args=obsoleteArguments.map(a=>import_chalk.default.bold(a)).join(", ");output_manager_default.warn(`The following arguments are deprecated: ${args}`)}(obsoleteArguments.length||obsoleteFlags.length)&&output_manager_default.print(`Read more in our ${output_manager_default.link("changelog","https://vercel.com/changelog/new-vercel-cli-login-flow")}.
|
|
8
8
|
`)}return telemetry.trackState("started"),await login(client,telemetry,options.shouldParseArgs)}export{login2 as login};
|
|
@@ -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{output_manager_default}from"./chunk-
|
|
7
|
+
import{output_manager_default}from"./chunk-75IAMKGV.js";function parseTarget({flagName,flags}){let targetFlagName=`--${flagName}`,targetFlagValue=flags[targetFlagName],prodFlagValue=flags["--prod"];if(prodFlagValue&&targetFlagValue&&output_manager_default.warn(`Both \`--prod\` and \`${targetFlagName}\` detected. Ignoring \`--prod\`.`),typeof targetFlagValue=="string")return output_manager_default.debug(`Setting target to ${targetFlagValue}`),targetFlagValue;if(prodFlagValue)return output_manager_default.debug("Setting target to production"),"production"}export{parseTarget};
|
|
@@ -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{createDetectEntrypoint,getServicesConfigWriteBlocker,writeServicesConfig}from"./chunk-
|
|
7
|
+
import{createDetectEntrypoint,getServicesConfigWriteBlocker,writeServicesConfig}from"./chunk-TKA7PPGY.js";import{detectProjects}from"./chunk-7V2F5IUY.js";import{require_slugify}from"./chunk-COD3WAUI.js";import{selectOrg}from"./chunk-NZBUIMZG.js";import{createProject}from"./chunk-QHJLRTVY.js";import{readJSONFile}from"./chunk-BRUTDRAQ.js";import{singleFileProjectSettings,validateRootDirectory}from"./chunk-YLTCVZOL.js";import{require_dist as require_dist2}from"./chunk-MZ6DNAVL.js";import{checkExistsAndConnect,parseRepoUrl,selectAndParseRemoteUrl}from"./chunk-BZYQ6RFV.js";import{require_dist2 as require_dist}from"./chunk-WJ4VNTE3.js";import{compileVercelConfig,findSourceVercelConfigFile}from"./chunk-VOB4W7DO.js";import{Separator}from"./chunk-MVGTMPMI.js";import{isPromptBackError,isPromptCanceledError}from"./chunk-P2O5DOYE.js";import{pull}from"./chunk-BWY67LI6.js";import{require_frameworks}from"./chunk-MVCAUS4F.js";import{table}from"./chunk-773GOZIR.js";import{printError}from"./chunk-V336CYEI.js";import{getLocalPathConfig}from"./chunk-DZ6GORJ7.js";import{VERCEL_DIR_PROJECT,VERCEL_DIR_README,fetchProjectsForRepoUrl,findProjectsFromPath,findRepoRoot,getGitConfigPath,getLinkedProject,getProjectByNameOrId,getRemoteUrls,getVercelDirectory,isDirectory,linkFolderToProject,linkRepoProject,parseGitConfig,pluckRemoteUrls,require_lib,resolveGitRemote}from"./chunk-MYMM34ZH.js";import{humanizePath}from"./chunk-PPCFQQSU.js";import{printAlignedLabel}from"./chunk-N7Q2IESO.js";import{CantParseJSONFile,ProjectNotFound,isAPIError}from"./chunk-AZULOP7M.js";import{output_manager_default,require_build_utils}from"./chunk-75IAMKGV.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_fs_extra=__toESM(require_lib(),1),import_slugify3=__toESM(require_slugify(),1),import_build_utils4=__toESM(require_build_utils(),1),import_fs_detectors2=__toESM(require_dist(),1);import{join as join3,basename,extname}from"path";var import_chalk=__toESM(require_source(),1);var import_slugify=__toESM(require_slugify(),1);var SEARCH_ALL_PROJECTS="search-all-projects",CREATE_NEW_PROJECT="create-new-project",BACK_TO_PROJECT_SELECTION=Symbol("back-to-project-selection"),BACK_TO_TEAM_SELECTION=Symbol("back-to-team-selection"),SWITCH_GIT_REMOTE=Symbol("switch-git-remote"),NO_EXISTING_PROJECTS=Symbol("no-existing-projects");async function inputProjectDecision(client,defaultDecision){let createChoice={name:"Create new project",value:"create"},existingChoice={name:"Link existing project",value:"existing"};return await client.input.select({message:"Project?",choices:defaultDecision==="existing"?[existingChoice,createChoice]:[createChoice,existingChoice]})}function randomNameSuffix(){return Math.random().toString(36).slice(2,6).padEnd(4,"0")}async function suggestNewProjectName(client,org,slugifiedName,knownTaken){let taken=knownTaken;if(!taken)try{taken=!(await getProjectByNameOrId(client,slugifiedName,org.id)instanceof ProjectNotFound)}catch{taken=!1}return taken?`${slugifiedName}-${randomNameSuffix()}`:slugifiedName}function promptForProjectName(client,org,defaultName,message="Name?"){return client.input.text({message,default:defaultName,validate:async val=>val?await getProjectByNameOrId(client,val,org.id)instanceof ProjectNotFound?!0:"Project already exists":"Project name cannot be empty"})}async function promptForProjectNameWithBack(client,org,defaultName){try{return await client.withPromptBackNavigation(()=>promptForProjectName(client,org,defaultName,`Name? ${import_chalk.default.dim("Press \u2191 to return to project options")}`))}catch(error){if(isPromptBackError(error))return BACK_TO_PROJECT_SELECTION;throw error}}async function searchExistingProjects(client,org,allowBack){let firstPage=await client.fetch("/v9/projects?limit=100",{accountId:org.id}),projects=firstPage.projects,hasMoreProjects=firstPage.pagination.next!=null;if(projects.length===0)return output_manager_default.log(`No existing projects found under ${import_chalk.default.bold(org.slug)}. Creating new project.`),NO_EXISTING_PROJECTS;let pageSize=15,countHint=projects.length>pageSize?` ${import_chalk.default.dim(`(${hasMoreProjects?"100+":projects.length} projects)`)}`:"";return await client.input.search({message:`Which project?${countHint}`,pageSize,source:async(term,{signal})=>{let searchTerm=term?.trim(),matchingProjects=projects;if(searchTerm)if(hasMoreProjects)matchingProjects=(await client.fetch(`/v9/projects?search=${encodeURIComponent(searchTerm)}&limit=20`,{accountId:org.id,signal})).projects;else{let normalizedSearchTerm=searchTerm.toLowerCase();matchingProjects=projects.filter(project=>project.name.toLowerCase().includes(normalizedSearchTerm)||project.id===searchTerm)}let choices=matchingProjects.slice().sort((a,b)=>b.updatedAt-a.updatedAt).map(project=>({name:project.name,value:project}));if(!allowBack)return choices;let backChoice={name:"Back to project options",value:BACK_TO_PROJECT_SELECTION};return choices.length===0?[backChoice]:searchTerm?choices:[...choices,new Separator,backChoice]}})}async function inputProject(client,org,detectedProjectName,autoConfirm=!1,skipAutoDetect=!1,showProjectSuggestions=!1,allowTeamSelectionBack=!1,repoMatches=[],gitRemoteOptions){let slugifiedName=(0,import_slugify.default)(detectedProjectName),canSwitchGitRemote=(gitRemoteOptions?.remoteNames.length??0)>1,detectedProject=null;if(!skipAutoDetect&&repoMatches.length===0){output_manager_default.spinner("Searching for existing projects\u2026",1e3);let[project,slugifiedProject]=await Promise.all([getProjectByNameOrId(client,detectedProjectName,org.id),slugifiedName!==detectedProjectName?getProjectByNameOrId(client,slugifiedName,org.id):null]);if(detectedProject=project instanceof ProjectNotFound?slugifiedProject instanceof ProjectNotFound?null:slugifiedProject:project,detectedProject&&!detectedProject.id)throw new Error('Detected linked project does not have "id".');output_manager_default.stopSpinner()}if(autoConfirm)return repoMatches.length===1?repoMatches[0]:detectedProject||detectedProjectName;if(client.nonInteractive){if(detectedProject)return detectedProject;let err=new Error("Confirmation required");throw err.code="HEADLESS",err}let slugifiedNameKnownFree=!skipAutoDetect&&repoMatches.length===0&&!detectedProject,memoizedDefaultName;async function defaultNewProjectName(){return memoizedDefaultName===void 0&&(memoizedDefaultName=slugifiedNameKnownFree?slugifiedName:await suggestNewProjectName(client,org,slugifiedName,detectedProject?.name===slugifiedName)),memoizedDefaultName}let shouldLinkProject;if(showProjectSuggestions&&!skipAutoDetect)for(;;){let choices=[];if(repoMatches.length>0?choices.push(...repoMatches.map(match=>({name:`${match.project.name} ${import_chalk.default.gray("(linked by git)")}`,value:match})),new Separator):detectedProject&&choices.push({name:`${detectedProject.name} ${import_chalk.default.gray("(folder name)")}`,value:detectedProject},new Separator),choices.push({name:"Search all projects",value:SEARCH_ALL_PROJECTS,description:"Browse or search every project in this team"},{name:"Create a new project",value:CREATE_NEW_PROJECT,description:`Create it under ${org.slug}`}),canSwitchGitRemote){let current=gitRemoteOptions?.currentRemoteName;choices.push({name:"Switch Git remote",value:SWITCH_GIT_REMOTE,description:current?`Suggestions are from ${current}`:"Search projects linked to a different remote"})}allowTeamSelectionBack&&choices.push({name:"Choose a different team",value:BACK_TO_TEAM_SELECTION,description:"Return to team selection"});let selected=await client.input.select({message:"Which project?",choices});if(selected===BACK_TO_TEAM_SELECTION)return BACK_TO_TEAM_SELECTION;if(selected===SWITCH_GIT_REMOTE)return SWITCH_GIT_REMOTE;if(selected===CREATE_NEW_PROJECT){let projectName=await promptForProjectNameWithBack(client,org,await defaultNewProjectName());if(projectName===BACK_TO_PROJECT_SELECTION)continue;return projectName}if(selected!==SEARCH_ALL_PROJECTS)return selected;let existingProject=await searchExistingProjects(client,org,!0);if(existingProject!==BACK_TO_PROJECT_SELECTION){if(existingProject===NO_EXISTING_PROJECTS){let projectName=await promptForProjectNameWithBack(client,org,slugifiedName);if(projectName===BACK_TO_PROJECT_SELECTION)continue;return projectName}return existingProject}}else if(!detectedProject)shouldLinkProject=await inputProjectDecision(client,skipAutoDetect?"existing":"create")==="existing";else{if(output_manager_default.print(` ${import_chalk.default.bold("Found existing project")}
|
|
8
8
|
`),printAlignedLabel("Project",`${org.slug}/${detectedProject.name}`),await client.input.confirm("Link directory to project?",!0))return detectedProject;shouldLinkProject=await inputProjectDecision(client,"existing")==="existing"}if(shouldLinkProject){let existingProject=await searchExistingProjects(client,org,!1);if(existingProject!==NO_EXISTING_PROJECTS&&existingProject!==BACK_TO_PROJECT_SELECTION)return existingProject}return await promptForProjectName(client,org,await defaultNewProjectName())}var import_build_utils=__toESM(require_build_utils(),1),import_chalk2=__toESM(require_source(),1);import path from"path";async function inputRootDirectory(client,cwd,autoConfirm=!1){if(autoConfirm)return null;for(;;){let rootDirectory=await client.input.text({message:"Code directory?",transformer:input=>`${import_chalk2.default.dim("./")}${input}`});if(!rootDirectory)return null;let normal=path.normalize(rootDirectory);if(normal==="."||normal==="./")return null;let fullPath=path.join(cwd,normal);if(await validateRootDirectory(cwd,fullPath,"Please choose a different one.")!==!1)return(0,import_build_utils.normalizePath)(normal)}}var import_chalk3=__toESM(require_source(),1),import_frameworks=__toESM(require_frameworks(),1);function isSettingValue(setting){return setting&&typeof setting.value=="string"}var settingMap={buildCommand:"Build Command",devCommand:"Development Command",commandForIgnoringBuildStep:"Ignore Command",installCommand:"Install Command",outputDirectory:"Output Directory",framework:"Framework"},settingKeys=Object.keys(settingMap).sort();async function editProjectSettings(client,projectSettings,framework,autoConfirm,localConfigurationOverrides,configFileName="vercel.json"){let settings=Object.assign({buildCommand:null,devCommand:null,framework:null,commandForIgnoringBuildStep:null,installCommand:null,outputDirectory:null},projectSettings);if(localConfigurationOverrides&&Object.values(localConfigurationOverrides??{}).some(Boolean)){for(let setting of settingKeys){let localConfigValue=localConfigurationOverrides[setting];localConfigValue&&(settings[setting]=localConfigValue)}output_manager_default.print(` Local settings detected in ${configFileName}:
|
|
9
9
|
`);for(let setting of settingKeys){let override=localConfigurationOverrides[setting];override&&output_manager_default.print(` ${import_chalk3.default.dim(`${import_chalk3.default.bold(`${settingMap[setting]}:`)} ${override}`)}
|
|
10
10
|
`)}if(localConfigurationOverrides.framework){let overrideFramework=import_frameworks.frameworkList.find(f=>f.slug===localConfigurationOverrides.framework);overrideFramework&&(framework=overrideFramework,output_manager_default.print(` Merging default Project Settings for ${framework.name}. Previously listed overrides are prioritized.
|