@vercel/cli-support 65.4.0 → 65.5.0-snapshot-8a613d8ad85d
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/README.md +22 -0
- package/dist/chunks/add-6UOKR26K.js +8 -0
- package/dist/chunks/add-GULZ6EGJ.js +8 -0
- package/dist/chunks/add-RPAOJH5O.js +8 -0
- package/dist/chunks/build-MLAKPRSC.js +7 -0
- package/dist/chunks/{chunk-ADLBLGT3.js → chunk-26QK3I2S.js} +1 -1
- package/dist/chunks/chunk-2BKALEOP.js +7 -0
- package/dist/chunks/chunk-2FHZYQPY.js +7 -0
- package/dist/chunks/{chunk-TIPQQ4TG.js → chunk-2QIJEHNE.js} +1 -1
- package/dist/chunks/{chunk-JP33AIDQ.js → chunk-36NK2Z3C.js} +1 -1
- package/dist/chunks/{chunk-D6REP5QQ.js → chunk-3E364MJE.js} +1 -1
- package/dist/chunks/{chunk-EEUJLJEJ.js → chunk-3H36RI7C.js} +1 -1
- package/dist/chunks/{chunk-JUSR7V2L.js → chunk-3NG2EYQ5.js} +1 -1
- package/dist/chunks/{chunk-AYUUSAB7.js → chunk-4G7ZQONX.js} +1 -1
- package/dist/chunks/{chunk-SYFG2RM6.js → chunk-4HJGSSSZ.js} +1 -1
- package/dist/chunks/{chunk-CWM2F235.js → chunk-55H6G46X.js} +1 -1
- package/dist/chunks/{chunk-6TXEVQA4.js → chunk-5CZNUB7Y.js} +1 -1
- package/dist/chunks/{chunk-ZN6CQWVP.js → chunk-5EMSOR2P.js} +1 -1
- package/dist/chunks/{chunk-NAX6IARA.js → chunk-5K426HWC.js} +1 -1
- package/dist/chunks/{chunk-773GOZIR.js → chunk-5SIC5273.js} +1 -1
- package/dist/chunks/chunk-5WYPJ2T5.js +25 -0
- package/dist/chunks/{chunk-MBEKRUTQ.js → chunk-6IATT2ID.js} +2 -2
- package/dist/chunks/{chunk-KPQLUGFI.js → chunk-6WMO5G45.js} +3 -3
- package/dist/chunks/{chunk-6OVX3PWM.js → chunk-75JI2SZX.js} +1 -1
- package/dist/chunks/{chunk-ECEDD646.js → chunk-7G4PQR6J.js} +1 -1
- package/dist/chunks/chunk-7SAEZ4NC.js +7 -0
- package/dist/chunks/{chunk-363SJ4TN.js → chunk-7VTPAXDC.js} +1 -1
- package/dist/chunks/chunk-A2UZ2O7H.js +7 -0
- package/dist/chunks/{chunk-3LIKVGFT.js → chunk-A3RU52F4.js} +1 -1
- package/dist/chunks/{chunk-CC6FLKIP.js → chunk-AIRQFG5A.js} +1 -1
- package/dist/chunks/{chunk-IOZ3I765.js → chunk-AOC6XXOO.js} +1 -1
- package/dist/chunks/{chunk-EISD3RG7.js → chunk-ARQMFBV4.js} +1 -1
- package/dist/chunks/{chunk-UHBMX3OK.js → chunk-AUY363W7.js} +1 -1
- package/dist/chunks/chunk-BGWS5R5R.js +9 -0
- package/dist/chunks/chunk-C6IITJ5S.js +7 -0
- package/dist/chunks/{chunk-OHEOYFBU.js → chunk-CLVEFWEX.js} +1 -1
- package/dist/chunks/{chunk-KGBIRIFF.js → chunk-CU2FTX57.js} +1 -1
- package/dist/chunks/{chunk-YHULP2KK.js → chunk-CWO4HMKU.js} +1 -1
- package/dist/chunks/{chunk-EU2GBIPC.js → chunk-CZINAGH6.js} +1 -1
- package/dist/chunks/{chunk-QIVX6SCR.js → chunk-DAUAVRFC.js} +1 -1
- package/dist/chunks/{chunk-GA277JFB.js → chunk-DPM33VFZ.js} +1 -1
- package/dist/chunks/{chunk-Q5ODLDCU.js → chunk-DSY2S2YT.js} +1 -1
- package/dist/chunks/{chunk-XP3FT56R.js → chunk-DWOJP4ST.js} +3 -3
- package/dist/chunks/chunk-ED3VA7D4.js +7 -0
- package/dist/chunks/{chunk-GG5RME4X.js → chunk-EE2FTI3R.js} +1 -1
- package/dist/chunks/{chunk-QVZAAMGQ.js → chunk-EFEQQXRU.js} +1 -1
- package/dist/chunks/{chunk-DKJL2KV7.js → chunk-EPO7P734.js} +1 -1
- package/dist/chunks/{chunk-7QAGSRCU.js → chunk-EQT2VHL2.js} +1 -1
- package/dist/chunks/chunk-ETEVOJQJ.js +8 -0
- package/dist/chunks/chunk-EWP5WICJ.js +10 -0
- package/dist/chunks/chunk-F22QLVTX.js +7 -0
- package/dist/chunks/{chunk-XC46OAAT.js → chunk-FAEC4BER.js} +1 -1
- package/dist/chunks/{chunk-LSQREJXO.js → chunk-FAELJM4F.js} +1 -1
- package/dist/chunks/{chunk-7R6TRRG5.js → chunk-FNA4MIOH.js} +1 -1
- package/dist/chunks/{chunk-L3JYCXVB.js → chunk-GFD6UAAO.js} +2 -2
- package/dist/chunks/{chunk-U2OBPULW.js → chunk-GP55VEOQ.js} +1 -1
- package/dist/chunks/{chunk-FSPPKNKN.js → chunk-GVPVWHFK.js} +1 -1
- package/dist/chunks/{chunk-527GBU3K.js → chunk-HMWDOAWO.js} +1 -1
- package/dist/chunks/{chunk-7L2K4OKM.js → chunk-HVDGNAPM.js} +1 -1
- package/dist/chunks/{chunk-QVHXFHBV.js → chunk-I2WEQWCA.js} +1 -1
- package/dist/chunks/{chunk-JRPNHWA3.js → chunk-IC3THLYP.js} +1 -1
- package/dist/chunks/{chunk-IQKGQ2Y2.js → chunk-J6L5MDTX.js} +1 -1
- package/dist/chunks/{chunk-YMZ6WBKB.js → chunk-JCGEXU7T.js} +3 -3
- package/dist/chunks/{chunk-7L5QUDUR.js → chunk-JGMJP4T3.js} +1 -1
- package/dist/chunks/{chunk-ZQBSAMFL.js → chunk-JHNLBVO2.js} +1 -1
- package/dist/chunks/{chunk-HTXDC7E2.js → chunk-JMLKK7RL.js} +2 -2
- package/dist/chunks/{chunk-T6243EDS.js → chunk-JSAY52FE.js} +1 -1
- package/dist/chunks/{chunk-C7FQMC6D.js → chunk-JWUXHL35.js} +1 -1
- package/dist/chunks/{chunk-KQCROPL3.js → chunk-JXAEI2GJ.js} +1 -1
- package/dist/chunks/{chunk-VNIKIQVE.js → chunk-KHADRPBJ.js} +1 -1
- package/dist/chunks/{chunk-GCZVIDNG.js → chunk-KWKEBKUR.js} +1 -1
- package/dist/chunks/chunk-KY7LDQRX.js +7 -0
- package/dist/chunks/{chunk-YEZJNXQX.js → chunk-L4XLDN6T.js} +1 -1
- package/dist/chunks/{chunk-EGNR2DEI.js → chunk-LOO42IMZ.js} +1 -1
- package/dist/chunks/{chunk-CBVKB3DT.js → chunk-LT5UZRMK.js} +1 -1
- package/dist/chunks/{chunk-FUX6LKNP.js → chunk-LUX4PBJL.js} +1 -1
- package/dist/chunks/chunk-M7LUSXMG.js +7 -0
- package/dist/chunks/{chunk-ANMDN3EG.js → chunk-MFW6IJIK.js} +1 -1
- package/dist/chunks/{chunk-UGNIIDHR.js → chunk-MLGQ233X.js} +1 -1
- package/dist/chunks/chunk-MY4MONOH.js +7 -0
- package/dist/chunks/{chunk-N6JBQMOF.js → chunk-MZQEDXOH.js} +1 -1
- package/dist/chunks/chunk-N5CXIFE2.js +7 -0
- package/dist/chunks/{chunk-LQVSU5HR.js → chunk-NM44RWS6.js} +1 -1
- package/dist/chunks/{chunk-FHU2O7ZJ.js → chunk-NVNE3W7S.js} +1 -1
- package/dist/chunks/chunk-NZPGWZLV.js +9 -0
- package/dist/chunks/{chunk-462YCCJZ.js → chunk-O7COT3YB.js} +1 -1
- package/dist/chunks/{chunk-KY335KWI.js → chunk-ODAV7Z2H.js} +1 -1
- package/dist/chunks/{chunk-HCRD3JFL.js → chunk-OKNDHNH6.js} +1 -1
- package/dist/chunks/{chunk-Q4KTAQB3.js → chunk-OQX4YVGU.js} +1 -1
- package/dist/chunks/chunk-ORJBK5FT.js +9 -0
- package/dist/chunks/{chunk-5KUUMQ3M.js → chunk-OTYF3ZZW.js} +1 -1
- package/dist/chunks/{chunk-FGFLTLEA.js → chunk-P6ZTEDX2.js} +1 -1
- package/dist/chunks/{chunk-O72YDZKD.js → chunk-PHHZ6J7Q.js} +1 -1
- package/dist/chunks/{chunk-RMZTB2IU.js → chunk-PRFIFS3Q.js} +1 -1
- package/dist/chunks/{chunk-R2XHJDAP.js → chunk-QDPYU6KS.js} +1 -1
- package/dist/chunks/{chunk-JLEJB6KM.js → chunk-QHM6OK76.js} +1 -1
- package/dist/chunks/{chunk-CR3NBTHV.js → chunk-QNL22LAW.js} +1 -1
- package/dist/chunks/{chunk-5V53NA6C.js → chunk-QUSEBFDO.js} +1 -1
- package/dist/chunks/{chunk-DQ2SVW4R.js → chunk-R3BEQTZZ.js} +1 -1
- package/dist/chunks/{chunk-BUJITHGZ.js → chunk-RCUDI7OF.js} +1 -1
- package/dist/chunks/{chunk-Y5ZMKL7E.js → chunk-RMW2FDXS.js} +1 -1
- package/dist/chunks/{chunk-KRPY5FHJ.js → chunk-RQVIMYKN.js} +1 -1
- package/dist/chunks/chunk-RWPQOJTT.js +22 -0
- package/dist/chunks/{chunk-2TUVL6WE.js → chunk-SDOPVIKJ.js} +1 -1
- package/dist/chunks/{chunk-3XW7N4W3.js → chunk-SKSOCUDZ.js} +1 -1
- package/dist/chunks/chunk-SLDWAIO3.js +18 -0
- package/dist/chunks/{chunk-JWCEHQQF.js → chunk-SW3JRXUW.js} +1 -1
- package/dist/chunks/{chunk-M2NXKZKX.js → chunk-TGOGYSBO.js} +1 -1
- package/dist/chunks/chunk-TZT3VYZ3.js +7 -0
- package/dist/chunks/{chunk-F6EBOT64.js → chunk-UJQ6PBRF.js} +1 -1
- package/dist/chunks/{chunk-BVGGTBYE.js → chunk-UWMPVTXG.js} +1 -1
- package/dist/chunks/{chunk-R6BEOVTU.js → chunk-VAWZZK3Y.js} +1 -1
- package/dist/chunks/{chunk-4N6LMERQ.js → chunk-VLYVVC3P.js} +11 -11
- package/dist/chunks/{chunk-HSFKISDH.js → chunk-VQ755MPP.js} +1 -1
- package/dist/chunks/{chunk-QB7F3UAP.js → chunk-VUQWLLNI.js} +1 -1
- package/dist/chunks/chunk-VWHIWUGJ.js +7 -0
- package/dist/chunks/chunk-WDUHDLUA.js +14 -0
- package/dist/chunks/{chunk-K5U47EVH.js → chunk-WICRM2JL.js} +1 -1
- package/dist/chunks/{chunk-KJA2GKPT.js → chunk-WSVYZKI6.js} +1 -1
- package/dist/chunks/{chunk-N2FLYCCO.js → chunk-XAU3KTPX.js} +1 -1
- package/dist/chunks/chunk-XCKUJZUG.js +10 -0
- package/dist/chunks/{chunk-WDXW6A4H.js → chunk-XE24Y6NM.js} +2 -2
- package/dist/chunks/{chunk-RW3X523R.js → chunk-XSQVCDSD.js} +1 -1
- package/dist/chunks/{chunk-KW6GSQXV.js → chunk-XTKGBVSF.js} +1 -1
- package/dist/chunks/{chunk-2K3ISCQ6.js → chunk-YALEYPMP.js} +1 -1
- package/dist/chunks/chunk-YCJHUYBJ.js +19 -0
- package/dist/chunks/{chunk-TEYREL44.js → chunk-YIRSRF6D.js} +1 -1
- package/dist/chunks/chunk-YQDOADMG.js +10 -0
- package/dist/chunks/{chunk-PFPJLIFF.js → chunk-YT3QAZQF.js} +1 -1
- package/dist/chunks/{chunk-R2BUF6Z7.js → chunk-ZQUVDDPB.js} +1 -1
- package/dist/chunks/{chunk-XVDRGWXM.js → chunk-ZUNQHI5Y.js} +1 -1
- package/dist/chunks/{chunk-KQCFC2JL.js → chunk-ZUYPTLVO.js} +1 -1
- package/dist/chunks/clear-UZWOOGOH.js +8 -0
- package/dist/chunks/compile-vercel-config-2RQDL3RD.js +7 -0
- package/dist/chunks/config-C76IGJ6B.js +8 -0
- package/dist/chunks/config-RMJWRS7O.js +7 -0
- package/dist/chunks/{connect-git-provider-FS5Q2HO4.js → connect-git-provider-IQ7N2NPY.js} +1 -1
- package/dist/chunks/delete-2WBR5JQW.js +9 -0
- package/dist/chunks/delete-OKOBDL7Z.js +10 -0
- package/dist/chunks/{detect-projects-OD4JEAW2.js → detect-projects-XPB3R7VS.js} +1 -1
- package/dist/chunks/detect-services-DRHV22O5.js +7 -0
- package/dist/chunks/disable-DFEABU2Z.js +7 -0
- package/dist/chunks/discard-KGBEMNFT.js +14 -0
- package/dist/chunks/edit-5XIRLUKG.js +9 -0
- package/dist/chunks/edit-PJIDMKUS.js +8 -0
- package/dist/chunks/enable-UDWDPFOI.js +7 -0
- package/dist/chunks/{exec-OZSY46V6.js → exec-PX4GTZNE.js} +1 -1
- package/dist/chunks/{export-EPLYZF2Q.js → export-W75EA6EQ.js} +1 -1
- package/dist/chunks/future-PHSAEQIE.js +7 -0
- package/dist/chunks/generate-cert-for-deploy-C67VL5Z6.js +7 -0
- package/dist/chunks/image-U5CV2PRP.js +7 -0
- package/dist/chunks/import-builders-PHIIX7HW.js +7 -0
- package/dist/chunks/inspect-AU3MX7E2.js +13 -0
- package/dist/chunks/{inspect-CZ7WXYE5.js → inspect-DQQI3PM7.js} +1 -1
- package/dist/chunks/inspect-LJK7I6RZ.js +9 -0
- package/dist/chunks/{inspect-T2AIREYK.js → inspect-RNWLPR7I.js} +1 -1
- package/dist/chunks/{inspect-HFDGZNWC.js → inspect-WHPWW4BI.js} +1 -1
- package/dist/chunks/list-JV26NNYL.js +16 -0
- package/dist/chunks/{list-ON4YTQRN.js → list-QNRFVMMQ.js} +1 -1
- package/dist/chunks/list-YF4FXWUZ.js +12 -0
- package/dist/chunks/login-A4KNOUNA.js +9 -0
- package/dist/chunks/login-COGE7JQU.js +7 -0
- package/dist/chunks/logs-KMQATUYR.js +7 -0
- package/dist/chunks/{ls-FK5XEJEU.js → ls-DTFLHFOW.js} +1 -1
- package/dist/chunks/{ls-A7K4XDQB.js → ls-FOKMPVIB.js} +1 -1
- package/dist/chunks/ls-HMYU2ZGA.js +11 -0
- package/dist/chunks/{ls-2HUJHVLA.js → ls-IHF33MQP.js} +1 -1
- package/dist/chunks/{ls-QGUKJJY5.js → ls-QD54I4S7.js} +1 -1
- package/dist/chunks/{ls-3DVM5HLK.js → ls-RNRMYD3V.js} +1 -1
- package/dist/chunks/ls-ZQLCDIQJ.js +8 -0
- package/dist/chunks/mutate-RMIFQOF6.js +9 -0
- package/dist/chunks/notifications-BFBNV2HY.js +7 -0
- package/dist/chunks/open-L6HEXHAI.js +7 -0
- package/dist/chunks/openapi-6JKCOR7K.js +7 -0
- package/dist/chunks/permissions-UYGTYRKA.js +7 -0
- package/dist/chunks/{plugin-offer-TEGYA3TA.js → plugin-offer-NBHRXMNR.js} +1 -1
- package/dist/chunks/prompt-missing-credentials-2IYIF2JI.js +7 -0
- package/dist/chunks/publish-T2VSTPG4.js +15 -0
- package/dist/chunks/pull-4GL47Z2S.js +7 -0
- package/dist/chunks/purchase-domain-if-available-BHFBD3LW.js +7 -0
- package/dist/chunks/push-CQPIDVTL.js +7 -0
- package/dist/chunks/{query-FXXLX6UB.js → query-HN45ORIB.js} +1 -1
- package/dist/chunks/reauthenticate-FTHGAWK3.js +7 -0
- package/dist/chunks/reorder-7BD5JZKQ.js +10 -0
- package/dist/chunks/reply-2INQJ5KM.js +9 -0
- package/dist/chunks/resolve-DHAJC3I7.js +12 -0
- package/dist/chunks/resolve-agent-team-KGYPHN5F.js +7 -0
- package/dist/chunks/restore-OQKNWEFQ.js +16 -0
- package/dist/chunks/rm-CTP4UZH7.js +8 -0
- package/dist/chunks/rm-GFHEXQQW.js +8 -0
- package/dist/chunks/rm-OG3OXA6H.js +8 -0
- package/dist/chunks/rm-PFZYHXEN.js +8 -0
- package/dist/chunks/rm-XAW3WJ3I.js +8 -0
- package/dist/chunks/{routes-PKTWMDWQ.js → routes-XKEWEA3P.js} +1 -1
- package/dist/chunks/rule-inspect-MKQE5IVJ.js +8 -0
- package/dist/chunks/{schema-ZWE5MNMG.js → schema-TFN5PSYE.js} +2 -2
- package/dist/chunks/schema-XFER2RCF.js +14 -0
- package/dist/chunks/select-org-PFTR6HQZ.js +7 -0
- package/dist/chunks/set-KWOZNGRL.js +7 -0
- package/dist/chunks/setup-and-link-BRYK42L7.js +7 -0
- package/dist/chunks/{skills-RKIGVVNM.js → skills-2MOFBKIE.js} +1 -1
- package/dist/chunks/tags-BHZUQTOQ.js +7 -0
- package/dist/chunks/{types-YM7TMHXW.js → types-IWO5QLAV.js} +1 -1
- package/dist/chunks/{update-BGDQ5TXO.js → update-LP7ZZUFZ.js} +1 -1
- package/dist/commands/build/index.js +2 -2
- package/dist/commands/deploy/index.js +8 -8
- package/dist/commands/dev/index.js +6 -6
- package/dist/commands/env/index.js +3 -3
- package/dist/commands/link/index.js +2 -2
- package/dist/commands/list/index.js +1 -1
- package/dist/commands/project/index.js +4 -4
- package/dist/commands-account.js +18 -18
- package/dist/commands-ai.js +12 -12
- package/dist/commands-blob.js +7 -7
- package/dist/commands-core.js +23 -23
- package/dist/commands-deployments.js +3 -3
- package/dist/commands-flags.js +29 -29
- package/dist/commands-integrations.js +98 -83
- package/dist/commands-observability.js +4 -4
- package/dist/commands-routing.js +23 -23
- package/dist/help.js +1 -1
- package/dist/index.js +7 -7
- package/dist/internal-build.js +2 -2
- package/dist/native-download.js +7 -0
- package/dist/package.json +27 -26
- package/dist/root-help-commands.mjs +1 -1
- package/dist/vc.js +172 -17
- package/dist/version.mjs +1 -1
- package/package.json +20 -19
- package/dist/chunks/add-7NS6HIWC.js +0 -8
- package/dist/chunks/add-NMYFDVXW.js +0 -8
- package/dist/chunks/add-PMJ5BECU.js +0 -8
- package/dist/chunks/build-BCY6HQJG.js +0 -7
- package/dist/chunks/chunk-5IWFRZQT.js +0 -10
- package/dist/chunks/chunk-6I6QJHCY.js +0 -7
- package/dist/chunks/chunk-6VH56CX2.js +0 -19
- package/dist/chunks/chunk-6YXIWZ3X.js +0 -25
- package/dist/chunks/chunk-7E3WREH5.js +0 -7
- package/dist/chunks/chunk-EAXMWCOL.js +0 -63
- package/dist/chunks/chunk-EKZTFGDX.js +0 -7
- package/dist/chunks/chunk-FLHO75XC.js +0 -8
- package/dist/chunks/chunk-GYVJIIYL.js +0 -7
- package/dist/chunks/chunk-JLE7K4SY.js +0 -9
- package/dist/chunks/chunk-KCKYPLIH.js +0 -7
- package/dist/chunks/chunk-LOBA3E72.js +0 -7
- package/dist/chunks/chunk-LW4N3CW6.js +0 -9
- package/dist/chunks/chunk-NGKO2OOU.js +0 -8
- package/dist/chunks/chunk-NW7WWUCQ.js +0 -9
- package/dist/chunks/chunk-O4WNSKQR.js +0 -15
- package/dist/chunks/chunk-OZCQTXI4.js +0 -7
- package/dist/chunks/chunk-QVXS234E.js +0 -7
- package/dist/chunks/chunk-SLGUYM42.js +0 -10
- package/dist/chunks/chunk-TAISZMA2.js +0 -7
- package/dist/chunks/chunk-WEH6XC4Y.js +0 -22
- package/dist/chunks/chunk-WVHCBDTB.js +0 -7
- package/dist/chunks/clear-FKVWDCVA.js +0 -8
- package/dist/chunks/compile-vercel-config-GWAJE44R.js +0 -7
- package/dist/chunks/config-5WVLG5SE.js +0 -8
- package/dist/chunks/config-RMOHN5YT.js +0 -7
- package/dist/chunks/delete-5WMB4WFR.js +0 -9
- package/dist/chunks/delete-EM4JZPFA.js +0 -10
- package/dist/chunks/detect-services-BSJGB4RM.js +0 -7
- package/dist/chunks/disable-QOM7UHQC.js +0 -7
- package/dist/chunks/discard-L5ZH7P5B.js +0 -14
- package/dist/chunks/edit-F3VJGCG2.js +0 -9
- package/dist/chunks/edit-TM7YCWBU.js +0 -8
- package/dist/chunks/enable-72C3QX34.js +0 -7
- package/dist/chunks/future-V77DRMQG.js +0 -7
- package/dist/chunks/generate-cert-for-deploy-Y3YHBMPU.js +0 -7
- package/dist/chunks/image-CVXEXU5R.js +0 -7
- package/dist/chunks/import-builders-PGRKJOOE.js +0 -7
- package/dist/chunks/inspect-BTRNXRJT.js +0 -9
- package/dist/chunks/inspect-FGDVWAQP.js +0 -13
- package/dist/chunks/list-CKRRHAOE.js +0 -12
- package/dist/chunks/list-FLREMGJR.js +0 -16
- package/dist/chunks/login-55LJ5ZA6.js +0 -9
- package/dist/chunks/login-DQRZSD4Z.js +0 -7
- package/dist/chunks/logs-2HQXWOHM.js +0 -7
- package/dist/chunks/ls-4B3QYHCI.js +0 -8
- package/dist/chunks/ls-VTKHPDWS.js +0 -11
- package/dist/chunks/mutate-7ADZBCZM.js +0 -9
- package/dist/chunks/notifications-XZJXE2K4.js +0 -7
- package/dist/chunks/open-EE5IZQD7.js +0 -7
- package/dist/chunks/openapi-QBX62ZXC.js +0 -7
- package/dist/chunks/permissions-VYJ4LL5R.js +0 -7
- package/dist/chunks/prompt-missing-credentials-VP6OVCFM.js +0 -7
- package/dist/chunks/publish-2HEK5UMJ.js +0 -15
- package/dist/chunks/pull-WRTTSY7J.js +0 -7
- package/dist/chunks/purchase-domain-if-available-6S3NLTUI.js +0 -7
- package/dist/chunks/push-L3QRGGLC.js +0 -7
- package/dist/chunks/reauthenticate-IXQDC4UZ.js +0 -7
- package/dist/chunks/reorder-B4OXSYCI.js +0 -10
- package/dist/chunks/reply-F637K6XH.js +0 -9
- package/dist/chunks/resolve-E3F6NYQZ.js +0 -12
- package/dist/chunks/resolve-agent-team-EIPCH766.js +0 -7
- package/dist/chunks/restore-Q25KRZPH.js +0 -16
- package/dist/chunks/rm-FWD2NUGX.js +0 -8
- package/dist/chunks/rm-JMQ4QKCC.js +0 -8
- package/dist/chunks/rm-PPG7P3GN.js +0 -8
- package/dist/chunks/rm-SH3DYKNS.js +0 -8
- package/dist/chunks/rm-UEBLKFVC.js +0 -8
- package/dist/chunks/rule-inspect-LKQA5I4V.js +0 -8
- package/dist/chunks/schema-FBV42W7N.js +0 -14
- package/dist/chunks/select-org-WMB752Z6.js +0 -7
- package/dist/chunks/set-UTYIPOLC.js +0 -7
- package/dist/chunks/setup-and-link-ZLY5XQW5.js +0 -7
- package/dist/chunks/tags-UCLZ5UMX.js +0 -7
|
@@ -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{allOption,confirmOption,formatOption,jsonOption,limitOption,nextCursorOption,yesOption}from"./chunk-
|
|
7
|
+
import{packageName}from"./chunk-JESNVRVR.js";import{allOption,confirmOption,formatOption,jsonOption,limitOption,nextCursorOption,yesOption}from"./chunk-A2UZ2O7H.js";var listCommand={name:"list",aliases:["ls"],description:"List deployments.",arguments:[{name:"app",required:!1}],options:[allOption,{name:"meta",description:"Filter deployments by metadata (e.g. `--meta KEY=value`). Can appear many times.",argument:"KEY=VALUE",shorthand:null,deprecatedShorthand:"m",type:[String],deprecated:!1},{name:"policy",description:"See deployments with provided Deployment Retention policies (e.g. `--policy KEY=value`). Can appear many times.",argument:"KEY=VALUE",shorthand:null,deprecatedShorthand:"p",type:[String],deprecated:!1},{name:"environment",description:"Filter deployments by environment",argument:"ENVIRONMENT",shorthand:"e",type:String,deprecated:!1},{name:"status",description:"Filter deployments by their status. Can be comma-separated for multiple statuses (e.g.: `--status BUILDING,READY`)",argument:"STATUS",shorthand:null,deprecatedShorthand:"s",type:String,deprecated:!1},nextCursorOption,limitOption,{name:"prod",shorthand:null,type:Boolean,deprecated:!0},yesOption,confirmOption,formatOption,jsonOption],examples:[{name:"List all deployments for the currently linked project",value:`${packageName} list`},{name:"List all deployments across all projects",value:`${packageName} list --all`},{name:"List all deployments for the project `my-app`",value:`${packageName} list my-app`},{name:"Filter deployments by metadata",value:`${packageName} list --meta key1=value1 --meta key2=value2`},{name:"Show the next page, using the cursor from the previous output",placeholders:["<CURSOR>"],value:`${packageName} list my-app --next <CURSOR>`},{name:"Filter deployments by status",value:`${packageName} list --status READY`},{name:"Filter deployments by multiple statuses",value:`${packageName} list --status BUILDING,ERROR`}]};export{listCommand};
|
|
@@ -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{permissionsAggregateCommand}from"./chunk-
|
|
7
|
+
import{permissionsAggregateCommand}from"./chunk-QNL22LAW.js";import{tagsAggregateCommand}from"./chunk-UWMPVTXG.js";import{imageAggregateCommand}from"./chunk-5CZNUB7Y.js";import{packageName}from"./chunk-JESNVRVR.js";import{formatOption,jsonOption,limitOption,projectOption,yesOption}from"./chunk-A2UZ2O7H.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Project name or ID (default: linked project)."},nextOption={name:"next",shorthand:null,type:String,deprecated:!1,description:"Show the next page using the cursor from the previous output",argument:"CURSOR"},cursorOption={name:"cursor",shorthand:"c",type:String,deprecated:!0,description:"Cursor from a previous page to continue listing from",argument:"STRING"},platformOption={name:"platform",shorthand:null,type:String,deprecated:!1,description:"Target platform for the build (default: linux/amd64).",argument:"PLATFORM"},pushOption={name:"push",shorthand:null,type:Boolean,deprecated:!1,description:"Push the image after building. With Docker this builds and pushes in one step (Buildx enables zstd compression); Podman and Buildah build, then push with zstd compression."},publicOption={name:"public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository public.",legacyValues:{on:"true",off:"false"}},noPublicOption={name:"no-public",shorthand:null,type:Boolean,deprecated:!1,description:"Make the repository private."},listSubcommand={name:"ls",aliases:["list"],description:"List container registry repositories for a project",arguments:[],options:[projectScopeOption,limitOption,nextOption,cursorOption,formatOption,jsonOption],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"List repositories for a specific project as JSON",value:`${packageName} vcr ls --project my-app --json`}]},inspectSubcommand={name:"inspect",aliases:["get"],description:"Show details for a single repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Inspect a repository by name",value:`${packageName} vcr inspect my-repository`}]},addSubcommand={name:"create",aliases:["add"],description:"Create a container registry repository",arguments:[{name:"name",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Create a repository",value:`${packageName} vcr create my-repository`}]},configSubcommand={name:"update",aliases:["config"],description:"Update a container registry repository, such as the repository's visibility",arguments:[{name:"repository",required:!0}],options:[publicOption,noPublicOption,projectScopeOption,formatOption,jsonOption],examples:[{name:"Make a repository public",value:`${packageName} vcr update my-repository --public`},{name:"Make a repository private",value:`${packageName} vcr update my-repository --no-public`}]},removeSubcommand={name:"delete",aliases:["rm","del","remove"],description:"Delete a container registry repository",arguments:[{name:"repository",required:!0}],options:[projectScopeOption,yesOption,formatOption,jsonOption],examples:[{name:"Delete a repository",value:`${packageName} vcr delete my-repository`},{name:"Delete a repository without the confirmation prompt",value:`${packageName} vcr delete my-repository --yes`}]},loginSubcommand={name:"login",aliases:[],description:"Authenticate a container tool (docker, podman, or buildah) with the Vercel Container Registry",arguments:[{name:"engine",required:!0}],options:[projectScopeOption,formatOption,jsonOption],examples:[{name:"Log in with Docker",value:`${packageName} vcr login docker`},{name:"Log in with Podman",value:`${packageName} vcr login podman`},{name:"Log in with Buildah",value:`${packageName} vcr login buildah`},{name:"Log in for a specific project",value:`${packageName} vcr login docker --project my-app`}]},buildSubcommand={name:"build",aliases:[],description:"Build a container image tagged for the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"path",required:!1},{name:"name",required:!1}],options:[projectScopeOption,platformOption,pushOption],examples:[{name:"Build the current directory into the linked project (repository defaults to the project name, tag to latest)",value:`${packageName} vcr build docker`},{name:"Build and push in one step (Docker Buildx enables zstd compression)",value:`${packageName} vcr build docker --push`},{name:"Build a specific context path with a repository and tag",value:`${packageName} vcr build docker ./app my-api:1.2.3`},{name:"Pass extra options through to the container tool",value:`${packageName} vcr build docker . -- --no-cache --build-arg KEY=value`}]},pushSubcommand={name:"push",aliases:[],description:"Push a container image to the Vercel Container Registry by shelling out to your container tool (docker, podman, or buildah)",arguments:[{name:"engine",required:!0},{name:"name",required:!1}],options:[projectScopeOption],examples:[{name:"Push the linked project image (repository defaults to the project name, tag to latest)",value:`${packageName} vcr push docker`},{name:"Push a specific repository and tag",value:`${packageName} vcr push docker my-api:1.2.3`}]},vcrCommand={name:"vcr",aliases:[],description:"Manage Vercel Container Registry repositories and images (see `vcr image`).",arguments:[],subcommands:[listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,tagsAggregateCommand,imageAggregateCommand,permissionsAggregateCommand],options:[],examples:[{name:"List repositories in the linked project",value:`${packageName} vcr ls`},{name:"Create a repository",value:`${packageName} vcr create my-app`},{name:"List images in a repository",value:`${packageName} vcr image ls my-app`}]};export{listSubcommand,inspectSubcommand,addSubcommand,configSubcommand,removeSubcommand,loginSubcommand,buildSubcommand,pushSubcommand,vcrCommand};
|
|
@@ -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_balanced_match,require_minimatch}from"./chunk-OCR5CRTH.js";import{require_dist as require_dist2,require_frameworks}from"./chunk-6Y2ZL5XJ.js";import{require_inherits}from"./chunk-7EJQLVWX.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_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_minimatch2=__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_balanced_match,require_minimatch}from"./chunk-OCR5CRTH.js";import{require_dist as require_dist2,require_frameworks}from"./chunk-6Y2ZL5XJ.js";import{require_inherits}from"./chunk-7EJQLVWX.js";import{require_dist}from"./chunk-RM3ZDRYE.js";import{require_once,require_wrappy}from"./chunk-SCV7XEEO.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_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_minimatch2=__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])),"@vercel/node":"node","@vercel/next":"node","@vercel/remix-builder":"node","@vercel/redwood":"node","@vercel/hydrogen":"node","@vercel/express":"node","@vercel/hono":"node","@vercel/h3":"node","@vercel/koa":"node","@vercel/nestjs":"node","@vercel/fastify":"node","@vercel/elysia":"node"},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,getRuntimeFramework:()=>getRuntimeFramework,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);if(!f)return;let declaredBuilder=f.useRuntime?.use;return declaredBuilder?import_constants2.BUILDER_RUNTIMES[declaredBuilder]:STATIC_BUILDER_RUNTIMES[framework]??"node"}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]}function getRuntimeFramework(runtime){if(runtime)return frameworksBySlug.get(runtime)?.runtimeFramework?runtime:void 0}}}),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_minimatch2()),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");async function isPythonEntrypoint(fsPath){let{findAppOrHandler}=__require("@vercel/python-analysis");try{let content=await import_fs.default.promises.readFile(fsPath,"utf-8");return await 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,proxy=resolveProxy(files,options),reservedFunctionFiles=options.reservedFunctionFiles??[],claimedFiles=new Set([...proxy?.source==="vercel-config"?[proxy.file]:[],...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=>!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 functionBuilder=proxy?.source==="file-convention"&&fileName===proxy.file?proxy.builder:await maybeGetApiBuilder(fileName,apiMatches,options);if(functionBuilder){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(functionBuilder),apiBuilders.push(functionBuilder);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(proxy?.source==="vercel-config"&&(addToUsedFunctions(proxy.builder),apiBuilders.unshift(proxy.builder)),!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 ignoredInstallCommandPatterns=new Set;for(let builder of apiBuilders)if(!isOfficialRuntime2("node",builder.use))for(let[pattern,func]of Object.entries(builder.config?.functions??{}))func.installCommand!==void 0&&ignoredInstallCommandPatterns.add(pattern);for(let pattern of ignoredInstallCommandPatterns)warnings.push({code:"unsupported_function_install_command",message:`The \`installCommand\` property in \`functions["${pattern}"]\` is only supported for Node.js functions and will be ignored for other runtimes.`});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){if(!fileName.startsWith("api/")||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;return use?{use,src:fileName,config:getFunctionConfig(fnPattern,func,options)}:null}function getFunctionConfig(fnPattern,func,options){let config={zeroConfig:!0};return fnPattern&&func&&(config.functions={[fnPattern]:func},func.includeFiles&&(config.includeFiles=func.includeFiles),func.excludeFiles&&(config.excludeFiles=func.excludeFiles)),options.bunVersion&&(config.bunVersion=options.bunVersion),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}}var ROOT_PROXY_FILES=["middleware.js","middleware.ts"];function resolveProxy(files,options){let{proxy}=options;if(proxy)return{source:"vercel-config",entrypoint:proxy.entrypoint,file:parseProxyEntrypoint(proxy.entrypoint).file,builder:getProxyBuilder2(proxy,options.tag,options.functions)};let framework=options.projectSettings?.framework;if(framework==="nextjs"||import_framework.frameworksBySlug.get(framework||"")?.disableRootMiddleware)return null;let reserved=new Set(options.reservedFunctionFiles??[]),file=ROOT_PROXY_FILES.find(f=>files.includes(f)&&!reserved.has(f));if(!file)return null;let{fnPattern,func}=getFunction(file,options),withTag=options.tag?`@${options.tag}`:"";return{source:"file-convention",entrypoint:null,file,builder:{use:func?.runtime||`@vercel/node${withTag}`,src:file,config:{...getFunctionConfig(fnPattern,func,options),middleware:!0}}}}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:"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.`};let appRuntime=(0,import_framework.inferBuilderRuntimeFromFramework)(framework),proxyRuntime=import_constants.ENTRYPOINT_EXTENSIONS[(0,import_path.extname)(file)];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.`}:framework==="nextjs"||framework==="astro"?{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.`}: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."};if(func.installCommand!==void 0&&typeof func.installCommand!="string")return{code:"invalid_function_property",message:"The property `installCommand` 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_dist3=__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_dist4=__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_dist3(),import_path_to_regexp_updated=require_dist4();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_dist5();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_dist5();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_dist5=__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,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{VERCEL_CONFIG_EXTENSIONS,VERCEL_DIR}from"./chunk-
|
|
7
|
+
import{VERCEL_CONFIG_EXTENSIONS,VERCEL_DIR}from"./chunk-VLYVVC3P.js";import{ConflictingConfigFiles,DeprecatedNowJson}from"./chunk-YCJHUYBJ.js";import{output_manager_default,require_build_utils}from"./chunk-DWOJP4ST.js";import{__commonJS,__require,__toESM}from"./chunk-BZENIQ7N.js";var require_main=__commonJS({"../../node_modules/.pnpm/dotenv@4.0.0/node_modules/dotenv/lib/main.js"(exports,module){"use strict";var fs=__require("fs");function parse(src){var obj={};return src.toString().split(`
|
|
8
8
|
`).forEach(function(line){var keyValueArr=line.match(/^\s*([\w\.\-]+)\s*=\s*(.*)?\s*$/);if(keyValueArr!=null){var key=keyValueArr[1],value=keyValueArr[2]?keyValueArr[2]:"",len=value?value.length:0;len>0&&value.charAt(0)==='"'&&value.charAt(len-1)==='"'&&(value=value.replace(/\\n/gm,`
|
|
9
9
|
`)),value=value.replace(/(^['"]|['"]$)/g,"").trim(),obj[key]=value}}),obj}function config(options){var path=".env",encoding="utf8";options&&(options.path&&(path=options.path),options.encoding&&(encoding=options.encoding));try{var parsedObj=parse(fs.readFileSync(path,{encoding}));return Object.keys(parsedObj).forEach(function(key){process.env[key]=process.env[key]||parsedObj[key]}),{parsed:parsedObj}}catch(e){return{error:e}}}module.exports.config=config;module.exports.load=config;module.exports.parse=parse}});var import_dotenv=__toESM(require_main(),1);import{mkdir,readFile,writeFile,unlink,access}from"fs/promises";import{join,basename}from"path";import{fork}from"child_process";async function loadEsbuild(){let nativeLoader=Reflect.get(globalThis,Symbol.for("vercel.cli.loadEsbuild"));return typeof nativeLoader=="function"?nativeLoader():import("esbuild")}var import_build_utils=__toESM(require_build_utils(),1);function toRouteFormat(item){if("src"in item)return item;let{source,destination,headers,statusCode,permanent,...rest}=item,route={src:source,...rest};return destination&&(route.dest=destination),headers&&(route.headers=Object.fromEntries(headers.map(h=>[h.key,h.value]))),statusCode!==void 0?route.status=statusCode:permanent!==void 0&&(route.status=permanent?308:307),route}function normalizeConfig(config){let normalized={...config},{rewrites,redirects,headers}=normalized,allRoutes=normalized.routes||[],hasRoutes=allRoutes.length>0,hasRewrites=(rewrites?.length??0)>0,hasRedirects=(redirects?.length??0)>0,hasHeaders=(headers?.length??0)>0;function hasRouteFormat(items){return items?.some(item=>"src"in item)??!1}if(hasRoutes&&(hasRewrites||hasRedirects||hasHeaders))return normalized;let shouldConvertRewrites=hasRewrites&&hasRouteFormat(rewrites),shouldConvertRedirects=hasRedirects&&hasRouteFormat(redirects),shouldConvertHeaders=hasHeaders&&hasRouteFormat(headers);if((shouldConvertRewrites||shouldConvertRedirects||shouldConvertHeaders)&&(hasRewrites&&!shouldConvertRewrites||hasRedirects&&!shouldConvertRedirects||hasHeaders&&!shouldConvertHeaders))throw new import_build_utils.NowBuildError({code:"INVALID_VERCEL_CONFIG",message:"Transforms (e.g., requestHeaders) require the `routes` format, which cannot be used alongside `rewrites`, `redirects`, or `headers`. Move everything into the `routes` array instead.",link:"https://vercel.com/docs/projects/project-configuration#routes"});return rewrites&&shouldConvertRewrites&&(allRoutes=[...allRoutes,...rewrites.map(toRouteFormat)],delete normalized.rewrites),redirects&&shouldConvertRedirects&&(allRoutes=[...allRoutes,...redirects.map(toRouteFormat)],delete normalized.redirects),headers&&shouldConvertHeaders&&(allRoutes=[...allRoutes,...headers.map(toRouteFormat)],delete normalized.headers),allRoutes.length>0&&(normalized.routes=allRoutes.map(toRouteFormat)),normalized}async function fileExists(filePath){try{return await access(filePath),!0}catch{return!1}}async function findAllVercelConfigFiles(workPath){let foundFiles=[];for(let ext of VERCEL_CONFIG_EXTENSIONS){let configPath=join(workPath,`vercel.${ext}`);await fileExists(configPath)&&foundFiles.push(configPath)}return foundFiles}async function findSourceVercelConfigFile(workPath){for(let ext of VERCEL_CONFIG_EXTENSIONS){let configPath=join(workPath,`vercel.${ext}`);if(await fileExists(configPath))return basename(configPath)}let tomlPath=join(workPath,"vercel.toml");return await fileExists(tomlPath)?"vercel.toml":null}async function findVercelConfigFile(workPath){let foundFiles=await findAllVercelConfigFiles(workPath);if(foundFiles.length>1)throw new ConflictingConfigFiles(foundFiles,"Multiple vercel config files found. Please use only one configuration file.","https://vercel.com/docs/projects/project-configuration");return foundFiles[0]||null}function parseConfigLoaderError(stderr){if(!stderr.trim())return"";let moduleNotFoundMatch=stderr.match(/Error \[ERR_MODULE_NOT_FOUND\]: Cannot find package '([^']+)'/);if(moduleNotFoundMatch)return`Cannot find package '${moduleNotFoundMatch[1]}'. Make sure it's installed in your project dependencies.`;let syntaxErrorMatch=stderr.match(/SyntaxError: (.+?)(?:\n|$)/);if(syntaxErrorMatch)return`Syntax error: ${syntaxErrorMatch[1]}`;let errorMatch=stderr.match(/^(?:Error|TypeError|ReferenceError): (.+?)(?:\n|$)/m);return errorMatch?errorMatch[1]:stderr.trim()}async function compileVercelConfig(workPath){let vercelJsonPath=join(workPath,"vercel.json"),nowJsonPath=join(workPath,"now.json"),vercelTomlPath=join(workPath,"vercel.toml"),hasVercelJson=await fileExists(vercelJsonPath),hasNowJson=await fileExists(nowJsonPath),hasVercelToml=await fileExists(vercelTomlPath),vercelConfigPath=await findVercelConfigFile(workPath),vercelDir=join(workPath,VERCEL_DIR),compiledConfigPath=join(vercelDir,"vercel.json");if(hasNowJson)throw new DeprecatedNowJson(nowJsonPath);let foundConfigs=[];if(hasVercelJson&&foundConfigs.push(vercelJsonPath),hasVercelToml&&foundConfigs.push(vercelTomlPath),vercelConfigPath&&foundConfigs.push(vercelConfigPath),foundConfigs.length>1)throw new ConflictingConfigFiles(foundConfigs,`Multiple config files found: ${foundConfigs.map(f=>basename(f)).join(", ")}. Please use only one configuration method.`,"https://vercel.com/docs/projects/project-configuration");if(!vercelConfigPath&&!hasVercelToml)return hasVercelJson?{configPath:vercelJsonPath,wasCompiled:!1}:await fileExists(compiledConfigPath)?{configPath:compiledConfigPath,wasCompiled:!0,sourceFile:await findSourceVercelConfigFile(workPath)??void 0}:{configPath:null,wasCompiled:!1};if(hasVercelToml)try{let{parse:tomlParse}=await import("./dist-RXYNZPEA.js"),tomlContent=await readFile(vercelTomlPath,"utf8"),config=tomlParse(tomlContent),normalizedConfig=normalizeConfig(config);return await mkdir(vercelDir,{recursive:!0}),await writeFile(compiledConfigPath,JSON.stringify(normalizedConfig,null,2),"utf-8"),output_manager_default.debug(`Compiled ${vercelTomlPath} -> ${compiledConfigPath}`),{configPath:compiledConfigPath,wasCompiled:!0,sourceFile:"vercel.toml"}}catch(error){throw new import_build_utils.NowBuildError({code:error.code??"vercel_toml_parse_failed",message:`Failed to parse vercel.toml: ${error.message}`,link:error.link??"https://vercel.com/docs/projects/project-configuration"})}let sourceConfigPath=vercelConfigPath;(0,import_dotenv.config)({path:join(workPath,".env")}),(0,import_dotenv.config)({path:join(workPath,".env.local")});let tempOutPath=join(vercelDir,"vercel-temp.mjs"),loaderPath=join(vercelDir,"vercel-loader.mjs");try{let{build}=await loadEsbuild();await mkdir(vercelDir,{recursive:!0}),await build({entryPoints:[sourceConfigPath],bundle:!0,platform:"node",format:"esm",outfile:tempOutPath,packages:"external",target:"node20",sourcemap:"inline"}),await writeFile(loaderPath,`
|
|
10
10
|
import { pathToFileURL } from 'url';
|
|
@@ -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{resolveProjectContext}from"./chunk-
|
|
7
|
+
import{resolveProjectContext}from"./chunk-36NK2Z3C.js";function getProjectNameFromFlags(flags){return flags["--project"]}function getLinkedFlagsProject(client,projectName,options){return resolveProjectContext({client,projectNameOrId:projectName,projectNotFoundHandling:options?.projectNotFoundHandling})}export{getProjectNameFromFlags,getLinkedFlagsProject};
|
|
@@ -4,7 +4,7 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
-
import{Separator}from"./chunk-MVGTMPMI.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{isAPIError}from"./chunk-
|
|
7
|
+
import{Separator}from"./chunk-MVGTMPMI.js";import{require_strip_ansi}from"./chunk-BS32OUOC.js";import{isAPIError}from"./chunk-YCJHUYBJ.js";import{eraseLines,link_default,output_manager_default}from"./chunk-DWOJP4ST.js";import{require_source}from"./chunk-NB2WLB3J.js";import{__toESM}from"./chunk-BZENIQ7N.js";var import_chalk=__toESM(require_source(),1);import{URL}from"url";var import_strip_ansi=__toESM(require_strip_ansi(),1);function getLength(input){let biggestLength=0;for(let line of input.split(`
|
|
8
8
|
`)){let str=(0,import_strip_ansi.default)(line);str.length>biggestLength&&(biggestLength=str.length)}return biggestLength}async function list(client,{message="the question",choices:_choices=[{name:`something
|
|
9
9
|
description
|
|
10
10
|
details
|