shopify 4.9.5 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-Q6QDIDYT.js +1 -0
- package/dist/analytics-VKKJNJ62.js +1 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +7 -0
- package/dist/assets/hydrogen/starter/package.json +2 -2
- package/dist/assets/hydrogen/vite/package.json +3 -4
- package/dist/assets/hydrogen/vite/vite.config.js +3 -3
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-MZL6VM3W.js → chunk-24NUJTIH.js} +1 -1
- package/dist/chunk-2CMEKSI7.js +1 -0
- package/dist/chunk-2DID73ML.js +1 -0
- package/dist/chunk-2ORRV7GH.js +1 -0
- package/dist/chunk-2VSNFOKD.js +1 -0
- package/dist/chunk-335BUVBP.js +1 -0
- package/dist/{chunk-PT3OZEBI.js → chunk-3A3DZVEJ.js} +1 -1
- package/dist/chunk-3C6VLJ5D.js +319 -0
- package/dist/{chunk-LCMDVUVO.js → chunk-3G4HJO72.js} +30 -30
- package/dist/chunk-3LVCG4JB.js +1 -0
- package/dist/chunk-43KLFFP7.js +1 -0
- package/dist/{chunk-QLHPTMIH.js → chunk-43R5VGKT.js} +1 -1
- package/dist/chunk-46MSIQ6Z.js +1 -0
- package/dist/chunk-4ARCB6DT.js +1 -0
- package/dist/chunk-4C2DAX5T.js +1 -0
- package/dist/chunk-4CRBTSVP.js +2 -0
- package/dist/chunk-4GCI2YCZ.js +8 -0
- package/dist/chunk-4GOJQKY5.js +1 -0
- package/dist/chunk-4RDFMBRG.js +9 -0
- package/dist/chunk-4SS6DXC7.js +5 -0
- package/dist/{chunk-Z4DESIR5.js → chunk-4TI7U2PN.js} +1 -1
- package/dist/{chunk-7BWSN3SG.js → chunk-52FDK2LC.js} +1 -1
- package/dist/chunk-53BG3NLH.js +3 -0
- package/dist/{chunk-LD6ZCTZ3.js → chunk-5B76DT7X.js} +1 -1
- package/dist/{chunk-YN4FSUFF.js → chunk-5NEGOQT6.js} +1 -1
- package/dist/{chunk-PFXDXD5O.js → chunk-5OMJFPQW.js} +1 -1
- package/dist/chunk-5TB52UUV.js +2 -0
- package/dist/chunk-5UWMXOHM.js +7 -0
- package/dist/chunk-6BNKBCCU.js +1 -0
- package/dist/chunk-6DXP7PQ7.js +1 -0
- package/dist/chunk-6PUU6ZNQ.js +1 -0
- package/dist/chunk-7GHSE7SG.js +1 -0
- package/dist/{chunk-5O7JTVO2.js → chunk-7IFE4UQY.js} +1 -1
- package/dist/chunk-7LAKWAKX.js +25 -0
- package/dist/chunk-7MVWDCI3.js +1 -0
- package/dist/chunk-7NSK77WG.js +3 -0
- package/dist/chunk-7QUZWCJZ.js +3 -0
- package/dist/chunk-7RPFJZLP.js +1 -0
- package/dist/{chunk-35NTERVR.js → chunk-7UOA4DI7.js} +2 -2
- package/dist/chunk-7WPUV7GY.js +6 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/{chunk-SEXH4EP5.js → chunk-ACA2BGAD.js} +1 -1
- package/dist/chunk-AJMDF3QC.js +1 -0
- package/dist/{chunk-CEQ5S3HH.js → chunk-AXC2MHHO.js} +1 -1
- package/dist/{chunk-5GFVMGAZ.js → chunk-AYL6KBPE.js} +1 -1
- package/dist/chunk-BAHIL37I.js +1 -0
- package/dist/{chunk-S6A7TMR4.js → chunk-BCYTZ7LM.js} +1 -1
- package/dist/{chunk-4VS7YD53.js → chunk-BJPDJIS4.js} +1 -1
- package/dist/{chunk-AJMJQA4J.js → chunk-BN7ZXAZJ.js} +1 -1
- package/dist/chunk-BVSKBX7T.js +16 -0
- package/dist/chunk-BWRNXCVN.js +4 -0
- package/dist/{chunk-ANG44FIF.js → chunk-C3KEDG33.js} +1 -1
- package/dist/{chunk-4BXQTW5G.js → chunk-C7V755IT.js} +1 -1
- package/dist/chunk-CCMDZX35.js +7 -0
- package/dist/chunk-CCQNP5YR.js +1 -0
- package/dist/chunk-CEIJKJOF.js +11 -0
- package/dist/chunk-CIK5BF7V.js +1 -0
- package/dist/{chunk-YIZAQABE.js → chunk-CVVQQLCF.js} +1 -1
- package/dist/chunk-CW2T7EOQ.js +1 -0
- package/dist/chunk-CZ22VZDA.js +376 -0
- package/dist/{chunk-VSFZEGIK.js → chunk-D7NB7YR6.js} +1 -1
- package/dist/{chunk-2VGPNRHH.js → chunk-DFQ4WTET.js} +2 -2
- package/dist/chunk-DJAZBPYA.js +3 -0
- package/dist/chunk-DNMXVMJM.js +47 -0
- package/dist/{chunk-G362JEAV.js → chunk-EGCWR5AS.js} +1 -1
- package/dist/{chunk-7LB6DPB6.js → chunk-EITIW5OX.js} +1 -1
- package/dist/chunk-EMSF57ZB.js +1 -0
- package/dist/{chunk-2II4W4ZF.js → chunk-EXFBZPZS.js} +1 -1
- package/dist/chunk-FDXHQZTO.js +26 -0
- package/dist/{chunk-YLCYRG2T.js → chunk-FFHH5LOR.js} +1 -1
- package/dist/{chunk-KOS53Z7E.js → chunk-FNLECT7B.js} +1 -1
- package/dist/{chunk-MTBABHUB.js → chunk-FWB3GLMW.js} +1 -1
- package/dist/chunk-FZCGRIOM.js +1 -0
- package/dist/{chunk-ND6O6KT6.js → chunk-G6ZMSWEU.js} +1 -1
- package/dist/chunk-GAMC2BNY.js +7 -0
- package/dist/chunk-GB6E3ATN.js +4 -0
- package/dist/chunk-GCNA3HXH.js +8 -0
- package/dist/{chunk-PIGERIRY.js → chunk-GFVKTWFT.js} +1 -1
- package/dist/chunk-GQNOVEKP.js +2 -0
- package/dist/{chunk-WGO2GC6I.js → chunk-GRGFA26K.js} +1 -1
- package/dist/chunk-GXORLBVN.js +2 -0
- package/dist/{chunk-HB4YI2PF.js → chunk-H4V55Y3Z.js} +118 -118
- package/dist/chunk-HCZG7YJ6.js +16 -0
- package/dist/chunk-HF4NDEX3.js +1 -0
- package/dist/chunk-HIRTL45Q.js +1 -0
- package/dist/chunk-I4OVLRQR.js +1 -0
- package/dist/{chunk-RUDHGUIM.js → chunk-I6FRVYGE.js} +1 -1
- package/dist/chunk-IEQ4UOH3.js +4 -0
- package/dist/{chunk-PIZDYS7T.js → chunk-IILLQOUC.js} +60 -60
- package/dist/{chunk-LG6DGIFX.js → chunk-IQVRP7CT.js} +1 -1
- package/dist/{chunk-5VRB3FBD.js → chunk-IUP7POIE.js} +1 -1
- package/dist/chunk-IUTZIN2T.js +10 -0
- package/dist/chunk-IWEKM5Y3.js +1 -0
- package/dist/chunk-IWTNUJGY.js +2 -0
- package/dist/chunk-J6TW43TG.js +1 -0
- package/dist/chunk-JDR6UVZA.js +8 -0
- package/dist/{chunk-NHE46R6C.js → chunk-JEA3C7ON.js} +1 -1
- package/dist/chunk-JOJV5E2K.js +1 -0
- package/dist/chunk-JYMDWR25.js +1 -0
- package/dist/{chunk-EAVD3OH2.js → chunk-KDPQXURV.js} +1 -1
- package/dist/{chunk-DO5YFMTJ.js → chunk-KGRIYAMA.js} +1 -1
- package/dist/chunk-KJQDS5HI.js +1 -0
- package/dist/chunk-KKPOOIE4.js +2 -0
- package/dist/{chunk-4IAGBAQD.js → chunk-KSDU4YOB.js} +1 -1
- package/dist/chunk-L7MSPGDS.js +5 -0
- package/dist/{chunk-JPFHPVIO.js → chunk-LDU5T3DN.js} +1 -1
- package/dist/chunk-LHKVXJPX.js +1 -0
- package/dist/{chunk-VG5ZDVDQ.js → chunk-LMQGNECW.js} +86 -200
- package/dist/{chunk-TQ7URMGS.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LVLAOBJM.js +103 -0
- package/dist/chunk-LWCTKI4Z.js +18 -0
- package/dist/chunk-M3ACZWMR.js +1 -0
- package/dist/chunk-M4BVLMPH.js +31 -0
- package/dist/{chunk-WKVFVT3H.js → chunk-M5TGCSUK.js} +1 -1
- package/dist/chunk-M7LPHCP2.js +274 -0
- package/dist/{chunk-QBIYAMSH.js → chunk-MDRVCBDO.js} +1 -1
- package/dist/chunk-MR2AUT7Q.js +1 -0
- package/dist/chunk-MXJAH2GW.js +5 -0
- package/dist/{chunk-EO422KZZ.js → chunk-MYAIWSOO.js} +1 -1
- package/dist/{chunk-Y5VFOLNQ.js → chunk-N2RFDHRY.js} +1 -1
- package/dist/{chunk-7DSH4CRU.js → chunk-NB4BRW3H.js} +1 -1
- package/dist/chunk-NDKSG4CC.js +97 -0
- package/dist/chunk-NK2MGR6A.js +1 -0
- package/dist/chunk-NOH63WC6.js +12 -0
- package/dist/{chunk-3XAD2E55.js → chunk-OGWPS55W.js} +1 -1
- package/dist/chunk-OQ5CLM2H.js +4 -0
- package/dist/{chunk-MQ4WV4B6.js → chunk-OQU3HLAE.js} +1 -1
- package/dist/chunk-OVWUGAEU.js +11 -0
- package/dist/chunk-OX7UVDSU.js +6 -0
- package/dist/chunk-P33TONYG.js +1 -0
- package/dist/chunk-PEVIRAMR.js +6 -0
- package/dist/{chunk-LLNUIGHP.js → chunk-PGLWZMJU.js} +4 -4
- package/dist/chunk-PIAD3F6M.js +16 -0
- package/dist/chunk-PMHP57MH.js +20 -0
- package/dist/{chunk-XTOOTN4P.js → chunk-POKY4RWR.js} +1 -1
- package/dist/chunk-PSSYLJG4.js +2 -0
- package/dist/chunk-PYIICTLX.js +1 -0
- package/dist/chunk-PZUGDE7N.js +2 -0
- package/dist/{chunk-SUTVPAJF.js → chunk-Q2SZCZE7.js} +1 -1
- package/dist/{chunk-EZG5EB7D.js → chunk-Q2XRITUG.js} +1 -1
- package/dist/chunk-Q5MEFIMV.js +4 -0
- package/dist/chunk-Q66CI37F.js +7 -0
- package/dist/chunk-QFWWCZOI.js +1 -0
- package/dist/{chunk-TR4OWSEX.js → chunk-QFYLJVJW.js} +1 -1
- package/dist/chunk-QKVVJXWS.js +3 -0
- package/dist/chunk-QN3774QI.js +1 -0
- package/dist/chunk-R2BDABJD.js +213 -0
- package/dist/{chunk-RW3P3UMU.js → chunk-R7EMV77H.js} +2 -2
- package/dist/chunk-RFGEM5JC.js +3 -0
- package/dist/{chunk-HY6EXJBZ.js → chunk-RVQV6G5M.js} +1 -1
- package/dist/chunk-S67I4E7M.js +5 -0
- package/dist/chunk-SFPXYHHL.js +1 -0
- package/dist/{chunk-XPDHT3Z4.js → chunk-SFQEHDJY.js} +1 -1
- package/dist/chunk-SL3VBI62.js +3 -0
- package/dist/{chunk-5XTJ4OL4.js → chunk-SNNZ4U2W.js} +1 -1
- package/dist/chunk-T2IUXXCT.js +1 -0
- package/dist/chunk-TPSA4JN5.js +1 -0
- package/dist/chunk-TTEF7GTX.js +1 -0
- package/dist/{chunk-BAHM64B4.js → chunk-U25W35TX.js} +1 -1
- package/dist/chunk-UIQL5ZF3.js +1 -0
- package/dist/chunk-UK6576EO.js +1 -0
- package/dist/chunk-ULD7CIOY.js +4 -0
- package/dist/{chunk-65GNYRYR.js → chunk-UOS2XLGG.js} +2 -2
- package/dist/{chunk-VNG2I7NM.js → chunk-UVRKTMF7.js} +1 -1
- package/dist/{chunk-BD2L6YE5.js → chunk-UWMZ5CSB.js} +1 -1
- package/dist/chunk-UZROQRLX.js +2 -0
- package/dist/{chunk-5BGUKF7L.js → chunk-V75WUEFU.js} +1 -1
- package/dist/chunk-VB7YQMAM.js +5 -0
- package/dist/chunk-VHUD3CBC.js +3 -0
- package/dist/chunk-VMMUJN4T.js +17 -0
- package/dist/{chunk-T3UCIWRH.js → chunk-VW6QS7DO.js} +1 -1
- package/dist/chunk-VWH3VPYI.js +1 -0
- package/dist/{chunk-4TF7ER72.js → chunk-WBJ6ZHYH.js} +1 -1
- package/dist/chunk-WDFCOZAY.js +16 -0
- package/dist/chunk-WFWISGLS.js +1 -0
- package/dist/chunk-WGUOLSMG.js +1 -0
- package/dist/{chunk-VTOPYXHO.js → chunk-WJSUIUBW.js} +2 -2
- package/dist/{chunk-762IKULK.js → chunk-WMAFG2JD.js} +1 -1
- package/dist/chunk-X2H6I2WW.js +5 -0
- package/dist/{chunk-MWWULCLD.js → chunk-X7HVAVSZ.js} +1 -1
- package/dist/{chunk-MF7IHOM5.js → chunk-XBQDMGUN.js} +1 -1
- package/dist/chunk-XITZIDCL.js +18 -0
- package/dist/chunk-XKRJKUA7.js +1 -0
- package/dist/{chunk-K6FH5JSY.js → chunk-XM7YUXTF.js} +2 -2
- package/dist/chunk-XMODGI45.js +1 -0
- package/dist/{chunk-5NCWBBRW.js → chunk-XNNKLUTN.js} +1 -1
- package/dist/chunk-XTREQ4A2.js +1 -0
- package/dist/chunk-YGYEM6QO.js +1 -0
- package/dist/{chunk-XVFQ6CNO.js → chunk-YKS7MH3F.js} +9 -6
- package/dist/chunk-YTUDXZLN.js +1 -0
- package/dist/{chunk-I3J63RFV.js → chunk-YTUUU33R.js} +1 -1
- package/dist/chunk-YVVU4J5O.js +3 -0
- package/dist/{chunk-QUO4RD3W.js → chunk-YVY32DNA.js} +1 -1
- package/dist/chunk-Z5SILNH2.js +7 -0
- package/dist/chunk-ZAA2DXK5.js +5 -0
- package/dist/chunk-ZDQO6CNY.js +1 -0
- package/dist/chunk-ZGV3HNEV.js +1 -0
- package/dist/chunk-ZQDDRIBA.js +22 -0
- package/dist/{chunk-AODTY2BL.js → chunk-ZT5WFUKJ.js} +4 -4
- package/dist/chunk-ZYQ2XWC5.js +5 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +34 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +53 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +6 -6
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +64 -0
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/services/commands/doc/fetch-result.d.ts +2 -0
- package/dist/cli/services/commands/doc/fetch-result.js +22 -0
- package/dist/cli/services/commands/doc/fetch.d.ts +2 -1
- package/dist/cli/services/commands/doc/fetch.js +2 -15
- package/dist/cli/services/commands/doc/search-result.d.ts +2 -0
- package/dist/cli/services/commands/doc/search-result.js +14 -0
- package/dist/cli/services/commands/doc/search.d.ts +9 -1
- package/dist/cli/services/commands/doc/search.js +27 -2
- package/dist/cli/services/commands/doc/types.d.ts +107 -0
- package/dist/cli/services/commands/doc/types.js +47 -0
- package/dist/cli/services/commands/help/types.d.ts +6 -6
- package/dist/command-event-context-LFUZ7UCA.js +1 -0
- package/dist/command-json-schema-2UMKY7MY.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-RI3TL6I4.js +1 -0
- package/dist/custom-oclif-loader-IZCKN67O.js +1 -0
- package/dist/deprecations-IFVUXXDB.js +1 -0
- package/dist/dist-4H2B7BMN.js +1 -0
- package/dist/dist-QNWOGQN3.js +1 -0
- package/dist/{environment-RSUK27TA.js → environment-O7ECODHU.js} +1 -1
- package/dist/environments-CYMEN7NV.js +1 -0
- package/dist/error-IL6WQMSW.js +1 -0
- package/dist/error-handler-74HKA23T.js +1 -0
- package/dist/fs-AINFLJ2E.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +13 -13
- package/dist/is-global-2VLKV46Q.js +1 -0
- package/dist/json-error-HZB5YIHV.js +1 -0
- package/dist/{lib-TYM5B75S.js → lib-PJHT4MKY.js} +1 -1
- package/dist/{lib-55QUD4AJ.js → lib-VKSQ65BQ.js} +1 -1
- package/dist/{lib-PH52G55H.js → lib-YEZOHXF3.js} +1 -1
- package/dist/{local-ZZGRGYUP.js → local-KOZETREJ.js} +1 -1
- package/dist/{metadata-YQNVKC2R.js → metadata-IBPHZB7N.js} +1 -1
- package/dist/{morph-BABFBRSW.js → morph-CRY35DIK.js} +1 -1
- package/dist/node-package-manager-DXSRNEDC.js +1 -0
- package/dist/notifications-system-XA3EBOGJ.js +1 -0
- package/dist/os-X73O7BAB.js +1 -0
- package/dist/out-B2GISN65.js +1 -0
- package/dist/output-3OYXK3Z5.js +1 -0
- package/dist/{path-CPAYTWQW.js → path-3L2QRACZ.js} +1 -1
- package/dist/system-JWYYT4PM.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-PCG5D6RZ.js +1 -0
- package/dist/upgrade-7U2TUNC4.js +1 -0
- package/dist/version-7DGU2KYH.js +1 -0
- package/dist/version-SXQTRBXB.js +1 -0
- package/dist/workerd-MQZ3NKJI.js +18 -0
- package/oclif.manifest.json +1664 -427
- package/package.json +8 -8
- package/dist/analytics-PBZEKUGU.js +0 -1
- package/dist/analytics-WVGBNFGK.js +0 -1
- package/dist/chunk-2EC5SUGK.js +0 -19
- package/dist/chunk-2QENUJVG.js +0 -1
- package/dist/chunk-2RONPKOD.js +0 -1
- package/dist/chunk-2WDJXERZ.js +0 -25
- package/dist/chunk-32NWVYUC.js +0 -1
- package/dist/chunk-32RRWGNS.js +0 -1
- package/dist/chunk-32VQQ6EU.js +0 -1
- package/dist/chunk-34RFTE5T.js +0 -4
- package/dist/chunk-35VQQKVX.js +0 -1
- package/dist/chunk-3N6NKC2U.js +0 -1
- package/dist/chunk-3Q5BAPQK.js +0 -7
- package/dist/chunk-42DMJGOW.js +0 -2
- package/dist/chunk-4CTTWXUX.js +0 -32
- package/dist/chunk-4HBKQUKY.js +0 -1
- package/dist/chunk-4MQXMIWQ.js +0 -7
- package/dist/chunk-5APLAJCB.js +0 -3
- package/dist/chunk-5AQNISGC.js +0 -1
- package/dist/chunk-5OM72O4N.js +0 -1
- package/dist/chunk-5SLKHURV.js +0 -1
- package/dist/chunk-62GA7XR3.js +0 -18
- package/dist/chunk-62LMVFR7.js +0 -1
- package/dist/chunk-6IDEDOXW.js +0 -2
- package/dist/chunk-72CBJYAG.js +0 -16
- package/dist/chunk-7E4MJCVE.js +0 -10
- package/dist/chunk-7HZU7CYS.js +0 -1
- package/dist/chunk-7Q4EKY3E.js +0 -3
- package/dist/chunk-7YXHILW4.js +0 -383
- package/dist/chunk-7Z6IX7MU.js +0 -1
- package/dist/chunk-A4XREDFZ.js +0 -1
- package/dist/chunk-AHNLGCHF.js +0 -5
- package/dist/chunk-ARRRFY6S.js +0 -4
- package/dist/chunk-BAP2CHI2.js +0 -1
- package/dist/chunk-BQWK222Q.js +0 -1
- package/dist/chunk-C3PXIZY3.js +0 -8
- package/dist/chunk-C6HGU77I.js +0 -1
- package/dist/chunk-CBFAU5AF.js +0 -5
- package/dist/chunk-COP2Q2YT.js +0 -1
- package/dist/chunk-CSWDRG3E.js +0 -1
- package/dist/chunk-CVBWEUWX.js +0 -1
- package/dist/chunk-D3NVUE65.js +0 -1
- package/dist/chunk-DCKRQZLE.js +0 -20
- package/dist/chunk-DYH3ZXJS.js +0 -15
- package/dist/chunk-EBX6DYDX.js +0 -2
- package/dist/chunk-EDRCFY3K.js +0 -16
- package/dist/chunk-EEAY7HFW.js +0 -317
- package/dist/chunk-EJMLNBZA.js +0 -275
- package/dist/chunk-EO3S2TFI.js +0 -2
- package/dist/chunk-EOIGDOUD.js +0 -7
- package/dist/chunk-EYKXHMEJ.js +0 -6
- package/dist/chunk-FHV2H3Z2.js +0 -12
- package/dist/chunk-FOAV642V.js +0 -1
- package/dist/chunk-FVTP7EO4.js +0 -46
- package/dist/chunk-FYIC4JHB.js +0 -26
- package/dist/chunk-GF36WNMH.js +0 -5
- package/dist/chunk-GJ3QUZO6.js +0 -1
- package/dist/chunk-GJZVUEMP.js +0 -11
- package/dist/chunk-GP6O7YRO.js +0 -20
- package/dist/chunk-GW424AJO.js +0 -7
- package/dist/chunk-GXSF6NCR.js +0 -1
- package/dist/chunk-GYVQIRBD.js +0 -1
- package/dist/chunk-H3ZPYOQV.js +0 -1
- package/dist/chunk-H7YSZKZ2.js +0 -1
- package/dist/chunk-HILYTMVA.js +0 -1
- package/dist/chunk-HMWQOQAQ.js +0 -2
- package/dist/chunk-HNSRF4SQ.js +0 -1
- package/dist/chunk-HTODXNY6.js +0 -3
- package/dist/chunk-IUYVJJKE.js +0 -9
- package/dist/chunk-JM2CQP64.js +0 -97
- package/dist/chunk-K4AF7A25.js +0 -1
- package/dist/chunk-KDV4WR5A.js +0 -4
- package/dist/chunk-KF7NL5YM.js +0 -8
- package/dist/chunk-KMJTO7CU.js +0 -103
- package/dist/chunk-KN3MUEWA.js +0 -4
- package/dist/chunk-KYB4JX76.js +0 -5
- package/dist/chunk-LJAU6YHF.js +0 -10
- package/dist/chunk-LMQOFVRC.js +0 -17
- package/dist/chunk-LQSD25YS.js +0 -3
- package/dist/chunk-M2HQFHNO.js +0 -1
- package/dist/chunk-M5WBYWSQ.js +0 -7
- package/dist/chunk-N47RQHEI.js +0 -2
- package/dist/chunk-NRG2WPSM.js +0 -1
- package/dist/chunk-O2CP7DQE.js +0 -1
- package/dist/chunk-O6FXUKI2.js +0 -2
- package/dist/chunk-OHJUEUSA.js +0 -1
- package/dist/chunk-OOKTWSGP.js +0 -4
- package/dist/chunk-OONMCK7X.js +0 -1
- package/dist/chunk-OWK2RI4O.js +0 -6
- package/dist/chunk-P2UEQJJ4.js +0 -5
- package/dist/chunk-QBJ74XPX.js +0 -18
- package/dist/chunk-QGFJOTOH.js +0 -4
- package/dist/chunk-RIO5HKD5.js +0 -1
- package/dist/chunk-S7EKUSO6.js +0 -3
- package/dist/chunk-SJ2ROSXG.js +0 -1
- package/dist/chunk-SNTRSP5K.js +0 -359
- package/dist/chunk-SYCN2GT2.js +0 -3
- package/dist/chunk-TBNEN73P.js +0 -1
- package/dist/chunk-TVI7TQ4C.js +0 -16
- package/dist/chunk-TYMYIUIQ.js +0 -1
- package/dist/chunk-UEQT7TA4.js +0 -1
- package/dist/chunk-UUM367NR.js +0 -5
- package/dist/chunk-V5FZRNXI.js +0 -1
- package/dist/chunk-VE35YELD.js +0 -1
- package/dist/chunk-WEICJ4GW.js +0 -1
- package/dist/chunk-WJJXJNNP.js +0 -3
- package/dist/chunk-XAQUXFN5.js +0 -1
- package/dist/chunk-XE6EUHSS.js +0 -2
- package/dist/chunk-XFEJS652.js +0 -16
- package/dist/chunk-XI4QEULN.js +0 -1
- package/dist/chunk-XP63T4KZ.js +0 -5
- package/dist/chunk-XRCAUZAZ.js +0 -8
- package/dist/chunk-XSRZWJIJ.js +0 -1
- package/dist/chunk-YFJELEVH.js +0 -1
- package/dist/chunk-YNJIDLI3.js +0 -7
- package/dist/chunk-YRX4E67D.js +0 -6
- package/dist/chunk-Z2NL6XQK.js +0 -6
- package/dist/chunk-Z6Z5DPKS.js +0 -1
- package/dist/chunk-ZOE6WXW6.js +0 -1
- package/dist/cli/commands/app/app-logs/sources.js +0 -1
- package/dist/command-json-schema-3RP5P43D.js +0 -1
- package/dist/conf-store-XORTWCKZ.js +0 -1
- package/dist/custom-oclif-loader-ZRYPPYIP.js +0 -1
- package/dist/deprecations-AZDMCRNN.js +0 -1
- package/dist/dist-DTBXLVHF.js +0 -1
- package/dist/dist-SOYIDACZ.js +0 -1
- package/dist/environments-L42SEHB4.js +0 -1
- package/dist/error-H6B5BHYC.js +0 -1
- package/dist/error-handler-JB752NKM.js +0 -1
- package/dist/fs-XHZY6MNM.js +0 -1
- package/dist/is-global-2NBDZWLC.js +0 -1
- package/dist/json-error-OHV2KQFY.js +0 -1
- package/dist/node-package-manager-LN2Y7FQ2.js +0 -1
- package/dist/notifications-system-HWJ3F44U.js +0 -1
- package/dist/os-MHOCCDIB.js +0 -1
- package/dist/out-53ABAVL7.js +0 -1
- package/dist/output-GILH4S6M.js +0 -1
- package/dist/system-6WYK24ET.js +0 -1
- package/dist/ui-RP6SVJUK.js +0 -1
- package/dist/upgrade-5G7FBJJV.js +0 -1
- package/dist/version-TOBC7X2C.js +0 -1
- package/dist/version-UIRCT6RC.js +0 -1
- package/dist/workerd-ARH2OCYL.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as M,l as h,r as y}from"./chunk-NDKSG4CC.js";import{J as w,z as O}from"./chunk-CZ22VZDA.js";import{h as d}from"./chunk-2VSNFOKD.js";import{sb as f,wb as S}from"./chunk-LWCTKI4Z.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function E(t){return t.map(L).join(" \xB7 ")}function x(t,r){if(r){S(M.encode({operations:t.map(h)}));return}O({headline:"Subscription migration operations.",body:t.map(L)})}function L(t){return`${t.id}: ${t.status} (${t.results.edges.length}/${t.total} settled)`}n();n();var C=1e3,F=new Set(["COMPLETED","FAILED","CANCELED"]);async function T({clientId:t,operationIds:r,getOperation:s=y,pollIntervalMs:p=C,sleep:m=$,onUpdate:c}){let u=new Map,g=new Map,l=!0,a=[...r];for(;a.length>0;){let e=await Promise.all(a.map(async o=>{let i=await s({clientId:t,operationId:o});if(!i)throw new d(`Migration operation not found: ${o}`);return{operationId:o,operation:i}})),A=e.some(({operationId:o,operation:i})=>g.get(o)!==JSON.stringify(i));for(let{operationId:o,operation:i}of e)u.set(o,i),g.set(o,JSON.stringify(i));if(c&&(l||A)){let o=r.map(i=>u.get(i));await c(o)}l=!1,a=e.filter(({operation:o})=>!F.has(o.status)).map(({operationId:o})=>o),a.length>0&&await m(p)}return r.map(e=>u.get(e))}async function $(t){await new Promise(r=>setTimeout(r,t))}async function v({clientId:t,operationIds:r,waitForOperations:s=T}){return w({title:f`Polling subscription migration operations`,task:p=>s({clientId:t,operationIds:r,onUpdate:m=>p(f`${E(m)}`)}),renderOptions:{stdout:process.stderr}})}export{x as a,v as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as u}from"./chunk-ZQDDRIBA.js";import{R as a}from"./chunk-H4V55Y3Z.js";import{b as i,c as n}from"./chunk-Q2SZCZE7.js";import{a as e}from"./chunk-BN7ZXAZJ.js";import{wb as c,zb as r}from"./chunk-LWCTKI4Z.js";import{b as t}from"./chunk-FZCGRIOM.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var m=e({name:"AuthLogoutResult",schema:t.object({status:t.literal("success")}).strict()}),o=class p extends u{static descriptionWithMarkdown="Logs you out of the Shopify account or Partner account and store.";static description=this.descriptionForHelp();static flags={...i,...n};static get jsonOutputSchema(){return m}async run(){let{flags:l}=await this.parse(p);await a(),l.json?c(m.encode({status:"success"})):r("Logged out from all the accounts")}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-YTUUU33R.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{e as i,g as n}from"./chunk-VKWPEFWQ.js";n();var t=i(s(),1),a={"no-input":t.Flags.boolean({description:"Disable interactive prompts and browser authentication.",env:"SHOPIFY_FLAG_NO_INPUT"})};function u(r=process.argv,e=process.env){return r.includes("--no-input")||o(e.SHOPIFY_FLAG_NO_INPUT)}export{a,u as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,b as e,e as p}from"./chunk-BWRNXCVN.js";import{b as a}from"./chunk-ZQDDRIBA.js";import{b as o,c as r}from"./chunk-Q2SZCZE7.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class n extends a{static summary="Upgrades Shopify CLI.";static descriptionWithMarkdown="Upgrades Shopify CLI using your package manager.";static get jsonOutputSchema(){return i}static description=this.descriptionForHelp();static flags={...o,...r};async run(){let{flags:m}=await this.parse(n),c=await p();e(c,m.json?"json":"text")}};export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,c as w,d as O}from"./chunk-2CMEKSI7.js";import{f as y,g as P,h as b}from"./chunk-4GOJQKY5.js";import{a as F}from"./chunk-7RPFJZLP.js";import{a as h}from"./chunk-FWB3GLMW.js";import{Na as x}from"./chunk-3C6VLJ5D.js";import{b as m,c as d}from"./chunk-Q2SZCZE7.js";import{G as g,W as l}from"./chunk-CZ22VZDA.js";import{Bb as n}from"./chunk-LWCTKI4Z.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as I,g as f}from"./chunk-VKWPEFWQ.js";f();var r=I(N(),1);var a="_start",s=class S extends F{static get jsonOutputSchema(){return v}static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...m,...h,...y,...d,input:r.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:r.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:r.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(S),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let i=e.configuration.targeting;if(i.length>1&&!t["no-input"]&&l()){let E=i.map(u=>({label:u.target,value:u.export||a}));o=await g({message:"Which target would you like to execute?",choices:E})}else o=i?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,A=c&&`${e?.directory}/${c}`,U=await b(e,t.path,t["client-id"],t.reset,t.config),_={functionExtension:e,inputPath:t.input,export:o,stdin:"inherit",schemaPath:U,queryPath:A,profile:t.profile,json:t.json},T=await w(_);return O(T),{app:p}}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as I}from"./chunk-VKWPEFWQ.js";I();var o="5.0.0";export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as c}from"./chunk-BN7ZXAZJ.js";import{k as m}from"./chunk-2VSNFOKD.js";import{wb as u}from"./chunk-LWCTKI4Z.js";import{b as e}from"./chunk-FZCGRIOM.js";import{b as H}from"./chunk-YTUUU33R.js";import{e as b,g as n}from"./chunk-VKWPEFWQ.js";n();var p=e.object({id:e.string(),summary:e.string().optional(),hidden:e.boolean().default(!1)}),l=e.object({name:e.string(),description:e.string().optional(),hidden:e.boolean().default(!1)}),g=e.object({name:e.string(),description:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional()}),h=e.object({name:e.string(),type:e.enum(["boolean","option"]),char:e.string().optional(),summary:e.string().optional(),description:e.string().optional(),env:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional(),multiple:e.boolean().optional(),allowNo:e.boolean().optional(),aliases:e.array(e.string()).optional(),dependsOn:e.array(e.string()).optional(),exclusive:e.array(e.string()).optional(),exactlyOne:e.array(e.string()).optional()}),f=p.extend({description:e.string().optional(),aliases:e.array(e.string()),usage:e.union([e.string(),e.array(e.string())]).optional(),examples:e.array(e.union([e.string(),e.object({description:e.string(),command:e.string()})])).optional(),strict:e.boolean().default(!0),args:e.record(g),flags:e.record(h)}),a={commands:e.array(p),topics:e.array(l)},s=c({name:"HelpResult",schema:e.discriminatedUnion("kind",[e.object({kind:e.literal("root"),...a}),e.object({kind:e.literal("topic"),topic:l,...a}),e.object({kind:e.literal("command"),command:f,...a})]),definitions:{HelpCommandSummary:p,HelpTopic:l,HelpArgument:g,HelpFlag:h,HelpCommand:f}});n();var y=b(H(),1);async function k(r,o,i=!1){let t=new d(r,{all:i});if(await t.showHelp(o),!t.result)throw new m("Oclif did not resolve a help subject.");return t.result}var d=class extends y.Help{result;async showCommandHelp(o){let i=t=>this.opts.all===!0||!t.hidden;this.result=s.validate({kind:"command",command:{...o,args:Object.fromEntries(Object.entries(o.args).filter(([,t])=>i(t))),flags:Object.fromEntries(Object.entries(o.flags).filter(([,t])=>i(t)))},...this.listings(o.id)})}async showRootHelp(){this.result=s.validate({kind:"root",...this.listings()})}async showTopicHelp(o){this.result=s.validate({kind:"topic",topic:o,...this.listings(o.name)})}listings(o){let i=t=>o===void 0?this.opts.all===!0||!t.includes(":"):t.startsWith(`${o}:`)&&t.split(":").length===o.split(":").length+1;return{commands:this.sortedCommands.filter(t=>t.id&&i(t.id)).map(t=>({id:t.id,summary:t.summary??t.description?.split(`
|
|
2
|
+
`)[0],hidden:t.hidden??!1})),topics:this.sortedTopics.filter(t=>i(t.name))}}};n();function T(r){u(s.encode(r))}export{s as a,k as b,T as c};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as E}from"./chunk-PSSYLJG4.js";import{a as j}from"./chunk-EITIW5OX.js";import{a as U,b as F}from"./chunk-YY6TFARF.js";import{a as R}from"./chunk-P33TONYG.js";import{b,c as p,e as _,g as y,h as S}from"./chunk-QFWWCZOI.js";import{p as O,v as T}from"./chunk-DJAZBPYA.js";import{b as w,c as g}from"./chunk-Q2SZCZE7.js";import{O as d,z as c}from"./chunk-CZ22VZDA.js";import{h as u}from"./chunk-2VSNFOKD.js";import{wb as f}from"./chunk-LWCTKI4Z.js";import{b as t}from"./chunk-FZCGRIOM.js";import{o as v}from"./chunk-3A3DZVEJ.js";import{b as A}from"./chunk-YTUUU33R.js";import{e as P,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function I(r,e){let m=new j(r),l=(await(e.development?m.find():m.fetch()))?.id,o=await R(r,{header:"Select a theme to open",filter:{live:e.live,theme:e.development?`${l}`:e.theme}}),s=U(o,r),L=F(o,r);return{theme:o,preview_url:s,editor_url:L}}n();n();var k=t.object({id:t.number(),name:t.string(),createdAtRuntime:t.boolean(),processing:t.boolean(),role:t.string(),src:t.string().optional()}),x=t.object({theme:k,preview_url:t.string(),editor_url:t.string()}),h=_({name:"ThemeOpenResult",schema:t.object({theme:p.extend({storeDomain:b,previewUrl:t.string().url(),editorUrl:t.string().url(),processing:t.boolean(),sourceUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:p},project(r){let e=x.parse(r);return{theme:{...S(e.theme),storeDomain:y(new URL(e.preview_url).hostname),previewUrl:e.preview_url,editorUrl:e.editor_url,processing:e.theme.processing,sourceUrl:e.theme.src??null}}}});function D(r,e){if(e==="json"){f(h.encode(r));return}c({body:["Preview information for theme",...E(r.theme),`
|
|
2
|
+
|
|
3
|
+
`,{list:{items:[{link:{label:"Preview your theme",url:r.preview_url}},{link:{label:"Customize your theme at the theme editor",url:r.editor_url}}]}}]})}var i=P(A(),1);var a=class extends T{static get jsonOutputSchema(){return h}static summary="Opens the preview of your remote theme.";static descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
|
|
4
|
+
|
|
5
|
+
- A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
|
|
6
|
+
- A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
|
|
7
|
+
|
|
8
|
+
If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.`;static description=this.descriptionForHelp();static flags={...w,...g,...O,development:i.Flags.boolean({char:"d",description:"Open your development theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),editor:i.Flags.boolean({char:"E",description:"Open the theme editor for the specified theme in the browser.",env:"SHOPIFY_FLAG_EDITOR"}),live:i.Flags.boolean({char:"l",description:"Open your live (published) theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),theme:i.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID"})};static multiEnvironmentsFlags=["store","password",["theme","live","development"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live"]}]}async command(e,m,l=!1){let o=await I(m,e),s=e.editor?o.editor_url:o.preview_url;if(!v()&&!await d(s))throw new u("Could not open the browser.",`Open this URL manually: ${s}`);return(!l||!e.json)&&D(o,e.json?"json":"text"),o}};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ma as j,o as P}from"./chunk-3C6VLJ5D.js";import{G as A}from"./chunk-CZ22VZDA.js";import{a as y}from"./chunk-BN7ZXAZJ.js";import{h}from"./chunk-2VSNFOKD.js";import{Sa as u,sb as f,ta as b,wb as p,yb as x}from"./chunk-LWCTKI4Z.js";import{b as r}from"./chunk-FZCGRIOM.js";import{a as I}from"./chunk-3A3DZVEJ.js";import{b as q}from"./chunk-YTUUU33R.js";import{c as l,e as v,p as F}from"./chunk-IWTNUJGY.js";import{e as O,g as c}from"./chunk-VKWPEFWQ.js";c();async function C(t){let{extension:e,developerPlatformClient:n,app:a,orgId:i}=t,o=a.configuration.client_id,{api_version:s,type:m,targeting:d}=e.configuration,G=await(!!d?.length?z({localIdentifier:e.localIdentifier,developerPlatformClient:n,apiKey:o,target:d[0].target,version:s,orgId:i}):R({localIdentifier:e.localIdentifier,developerPlatformClient:n,apiKey:o,type:m,version:s,orgId:i}));return{definition:P(G,s),path:l(e.directory,"schema.graphql"),localIdentifier:e.localIdentifier}}async function z({localIdentifier:t,developerPlatformClient:e,apiKey:n,target:a,version:i,orgId:o}){let s={handle:a,version:i},m=await e.targetSchemaDefinition(s,n,o);if(!m)throw new h(f`A schema could not be generated for ${t}`,f`Check that the Function targets and version are valid.`);return m}async function R({localIdentifier:t,developerPlatformClient:e,apiKey:n,version:a,type:i,orgId:o}){let s={version:a,type:i},m=await e.apiSchemaDefinition(s,n,o);if(!m)throw new h(f`A schema could not be generated for ${t}`,f`Check that the Function API type and version are valid.`);return m}c();c();var g=r.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/).describe("An absolute native filesystem path."),V=r.object({handle:r.string().nullable().describe("Null when the extension does not configure a handle."),name:r.string(),directory:g}).strict();var T=r.object({path:g,format:r.literal("graphql").describe("The file contains native GraphQL SDL with the API-version header.")}).strict(),D=r.object({schema:r.string().describe("Native GraphQL SDL with the API-version header, returned with --stdout --json.")}).strict(),S=y({name:"FunctionSchemaResult",schema:r.union([T,D]),definitions:{FunctionSchemaFile:T,FunctionSchemaContent:D}});c();import{resolve as _}from"node:path";async function L(t,e){let n=e.stdout?{schema:t.definition}:{path:_(t.path),format:"graphql"};if(e.stdout){p(e.json?S.encode(n):t.definition);return}await b(t.path,t.definition),e.json?p(S.encode(n)):x(`GraphQL Schema for ${t.localIdentifier} written to ${t.path}`)}c();var E=O(q(),1);var pt={path:E.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async t=>v(t),default:async()=>F(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function gt(t,e){let n=t.allExtensions.filter(i=>i.isFunctionExtension),a=n.find(i=>i.directory===e);if(a)return a;if(n.length===1&&n[0])return n[0];if(I())return await A({message:"Which function?",choices:n.map(o=>({label:o.handle,value:o}))});throw new h("Run this command from a function directory or use `--path` to specify a function directory.")}async function St(t,e,n,a,i){let o=l(t.directory,"schema.graphql");if(await u(o))return o;let{app:s,developerPlatformClient:m,organization:d}=await j({directory:e,clientId:n,forceRelink:a,userProvidedConfigName:i}),w=await C({app:s,developerPlatformClient:m,extension:t,orgId:d.id});return await L(w,{stdout:!1,json:!1}),await u(o)?o:void 0}export{C as a,g as b,V as c,S as d,L as e,pt as f,gt as g,St as h};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{b as h}from"./chunk-ZQDDRIBA.js";import{b as u,c as m}from"./chunk-Q2SZCZE7.js";import{O as i}from"./chunk-CZ22VZDA.js";import{a as n}from"./chunk-BN7ZXAZJ.js";import{wb as p}from"./chunk-LWCTKI4Z.js";import{b as s}from"./chunk-FZCGRIOM.js";import{b as g}from"./chunk-YTUUU33R.js";import{e as S,g as e}from"./chunk-VKWPEFWQ.js";e();e();async function f(t){let r=new URLSearchParams;return r.append("search",t??""),{url:`https://shopify.dev/docs?${r.toString()}`}}e();e();var o=n({name:"SearchResult",schema:s.object({url:s.string().url()})});async function l(t,r){r==="json"?p(o.encode(t)):await i(t.url)}var d=S(g(),1),a=class t extends h{static descriptionWithMarkdown="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static description=this.descriptionForHelp();static usage="search [query]";static examples=[`# open the search modal on Shopify.dev
|
|
2
|
+
shopify search
|
|
3
|
+
|
|
4
|
+
# search for a term on Shopify.dev
|
|
5
|
+
shopify search <query>
|
|
6
|
+
|
|
7
|
+
# search for a phrase on Shopify.dev
|
|
8
|
+
shopify search "<a search query separated by spaces>"
|
|
9
|
+
`];static args={query:d.Args.string()};static flags={...u,...m};static get jsonOutputSchema(){return o}async run(){let{args:r,flags:c}=await this.parse(t),y=await f(r.query);await l(y,c.json?"json":"text")}};export{a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as re,b as oe,c as ie,d as ae}from"./chunk-2CMEKSI7.js";import{f as te,g as ne}from"./chunk-4GOJQKY5.js";import{q as v}from"./chunk-MXJAH2GW.js";import{c as Z,d as ee}from"./chunk-PEVIRAMR.js";import{a as X}from"./chunk-ZGV3HNEV.js";import{a as V}from"./chunk-FWB3GLMW.js";import{Ma as Q}from"./chunk-3C6VLJ5D.js";import{b as K,c as z,f as Y}from"./chunk-Q2SZCZE7.js";import{G,a as b,f as O,g as u,h as s,i as j,j as B,k as J,n as H,o as q,p as x,u as C}from"./chunk-CZ22VZDA.js";import{h as R}from"./chunk-2VSNFOKD.js";import{a as $}from"./chunk-GQNOVEKP.js";import{la as N}from"./chunk-LWCTKI4Z.js";import{g as U}from"./chunk-3A3DZVEJ.js";import{b as Fe}from"./chunk-YTUUU33R.js";import{c as I}from"./chunk-IWTNUJGY.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(O(),1);import{Writable as se}from"stream";function ce({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[m,p]=(0,h.useState)([]),[d,l]=(0,h.useState)([a,a]),[y,f]=(0,h.useState)(void 0),{input:w,export:W}=e.payload,[he,A]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let k=new b;t.signal.addEventListener("abort",()=>{k.abort()});let _=async()=>{let E=await xe(r,JSON.stringify(w),W);l(g=>[E,g[0]]),A(`Watching for changes to ${e.source}...`),p(g=>[...g,E])},ye=async()=>{A("Replaying log with local function..."),await _()},we=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==Z.Updated)){if(F.buildResult?.status==="error"){f(`Error while reloading and building extension: ${F.buildResult?.error}`);return}f(void 0),A("Re-running with latest changes..."),await _()}});let E=new se({write(g,F,L){p(Ee=>[...Ee,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:E,stderr:E,signal:k.signal},!1)};return ye().then(()=>{we()}),()=>{k.abort()}},[w,W,o,r]),C(t.signal,async()=>{setTimeout(()=>{U()||$(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:m,statusMessage:he,recentFunctionRuns:d,error:y}}async function xe(e,t,o){let r="",i=new se({write(m,p,d){r+=m,d()}});return await oe({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(O(),1);var ue=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=B(),m=new ee(o),{logs:p,statusMessage:d,recentFunctionRuns:l,error:y}=ce({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:m});return J((f,w)=>{q(f,w,()=>t.abort()),f==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:p},(f,w)=>n.default.createElement(u,{key:`replayOutputScrollerLog${w}`,flexDirection:"column"},n.default.createElement(Ae,{log:f}))),i?null:n.default.createElement(u,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(u,{flexDirection:"column"},n.default.createElement(u,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",d)),n.default.createElement(De,{recentFunctionRuns:l}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
|
|
2
|
+
|
|
3
|
+
`,r,e,r,`
|
|
4
|
+
`)}function Re({input:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,v(e)))}function Se({logs:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function be({output:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,v(e)))}function Ce({functionRun:e}){return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(D,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function De({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(s,null,x.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Ae({log:e}){switch(e.type){case"functionRun":return n.default.createElement(u,{flexDirection:"column"},n.default.createElement(Re,{input:e.input}),n.default.createElement(Se,{logs:e.logs}),n.default.createElement(be,{output:e.output}),n.default.createElement(Ce,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var le=S(O(),1);async function me({selectedRun:e,abortController:t,app:o,extension:r}){return H(le.default.createElement(ue,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function pe(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await G({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as ke,readdirSync as Le}from"fs";var M=100;async function fe(e){let{watch:t,extension:o,app:r}=e,i=new b;try{let a=await Ie(e),{input:m,export:p}=a.payload;if(t)await me({selectedRun:a,abortController:i,app:r,extension:o});else return await ie({functionExtension:o,json:e.json,input:JSON.stringify(m),export:p})}catch(a){throw i.abort(),a}}async function Ie(e){let t=e.app.getLogsDir();return e.log?Ne(t,e.extension.handle,e.log):ve(t,e.extension.handle)}async function Ne(e,t,o){let r=await Oe(e,t,o);if(r===void 0)throw new R(`No log found for '${o}'.
|
|
5
|
+
Searched ${e} for function ${t}.`);let i=await N(r);return JSON.parse(i)}function de(e){let t=e.split(/[_.]/);if(!(t.length<6))return{namespace:t[3],functionHandle:t[4],identifier:t[5]}}async function Oe(e,t,o){let r=ge(e).find(i=>{let a=de(i);return a?.namespace==="extensions"&&a?.functionHandle===t&&a?.identifier===o});return r?I(e,r):void 0}async function ve(e,t){let o=await Me(e,t),r=await pe(o);if(r===void 0)throw new R(`No logs found in ${e}`);return r}async function Me(e,t){let o=ge(e).filter(i=>{let a=de(i);return a?.namespace==="extensions"&&a?.functionHandle===t}).reverse(),r=[];for(let i=0;i<o.length&&r.length<M;i+=M){let m=o.slice(i,i+M).map(l=>I(e,l)),d=(await Promise.all(m.map(async l=>{let y=await N(l);return{...JSON.parse(y),identifier:Te(l)}}))).filter(l=>l.payload.input!=null);r=r.concat(d)}return r}function Te(e){return e.split("_").pop().substring(0,6)}function ge(e){return ke(e)?Le(e):[]}var T=S(Fe(),1);var P=class e extends X{static get requiresSyncAnalytics(){return!0}static get jsonOutputSchema(){return re}static summary="Replays a function run from an app log.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...K,...V,...te,...z,log:Y(T.Flags.string({char:"l",description:"Specifies a log identifier to replay instead of selecting from a list. The identifier is provided in the output of `shopify app dev` and is the suffix of the log file name.",env:"SHOPIFY_FLAG_LOG"})),watch:T.Flags.boolean({char:"w",hidden:!1,allowNo:!0,default:!0,description:"Re-run the function when the source code changes.",env:"SHOPIFY_FLAG_WATCH"})};async run(){let{flags:t}=await this.parse(e);if(t.json&&t.watch)throw new R("JSON output requires a finite replay. Use --no-watch with --json.");let{app:o}=await Q({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),r=await ne(o,t.path),i=await fe({app:o,extension:r,path:t.path,log:t.log,json:t.json,watch:t.watch});return i&&ae(i),{app:o}}};export{P as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as i,c as r,d as p}from"./chunk-
|
|
1
|
+
import{b as i,c as r,d as p}from"./chunk-2ORRV7GH.js";import{b as o}from"./chunk-ZQDDRIBA.js";import{b as s,c as e}from"./chunk-Q2SZCZE7.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class u extends o{static summary="Disable automatic upgrades for Shopify CLI.";static descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
|
|
2
2
|
|
|
3
3
|
When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-XNNKLUTN.js";import{a}from"./chunk-KJQDS5HI.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var r=class extends a{static hidden=!0;static flags={...a.flags};static baseFlags={...a.baseFlags};async run(){return e({from:"app import-extensions",to:"app import dashboard-extensions"}),super.run()}};export{r as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as R,b as T,c as m,d as F,g as v}from"./chunk-YVVU4J5O.js";import{p as S,v as w}from"./chunk-DJAZBPYA.js";import{ua as h}from"./chunk-H4V55Y3Z.js";import{b as l,c as f}from"./chunk-Q2SZCZE7.js";import{a as c}from"./chunk-BN7ZXAZJ.js";import{S as d,wb as n}from"./chunk-LWCTKI4Z.js";import{b as P}from"./chunk-YTUUU33R.js";import{e as O,g as r}from"./chunk-VKWPEFWQ.js";r();r();var j=c({name:"ThemeShareResult",schema:m.schema,definitions:m.definitions}),o={...j,encode:m.encode};r();function g(s,e){e==="json"?n(o.encode(T(s))):F(s,"text")}function x(s){let e=s.map(t=>"error"in t?t:(R.safeParse(t.result).data?.hasErrors&&(process.exitCode=1),{...t,result:t.result??{status:"skipped",reason:"unsafe-directory"}}));n(o.encode({environments:e}))}var u=O(P(),1);var p=class extends w{static get jsonOutputSchema(){return o}static summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";static descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
|
|
2
|
+
|
|
3
|
+
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;static description=this.descriptionForHelp();static flags={...l,...f,...S,force:u.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:u.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};static multiEnvironmentsFlags=["store","password","path"];async command(e,t,a,C,y){let b={environment:e.environment,force:e.force,noColor:e["no-color"],password:e.password,path:e.path,store:e.store,theme:d("creative"),unpublished:!0,listing:e.listing};h("theme-command:share");let i=await v(b,t,a,y);return i?.hasErrors&&(process.exitCode=1),e.json&&a||(i?g(i,e.json?"json":"text"):e.json&&n(o.encode({status:"cancelled"}))),h("theme-command:share"),i??(e.json&&a?{status:"skipped",reason:"unsafe-directory"}:void 0)}renderEnvironmentResults(e){x(e)}};export{p as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-JJZNUFPD.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{dr as a,_o as b};
|
|
1
|
+
import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-JJZNUFPD.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{_o as a};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
queue-microtask/index.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as _}from"./chunk-
|
|
1
|
+
import{a as _}from"./chunk-BCYTZ7LM.js";import{c as O,j as A,o as k}from"./chunk-DNMXVMJM.js";import{a as P}from"./chunk-N2RFDHRY.js";import{b as S,m as I}from"./chunk-5TB52UUV.js";import{j as T,k as q,l as L,p as R,v as b}from"./chunk-DJAZBPYA.js";import{xa as E}from"./chunk-H4V55Y3Z.js";import{a as v}from"./chunk-4C2DAX5T.js";import{b as g}from"./chunk-Q2SZCZE7.js";import{h as i}from"./chunk-2VSNFOKD.js";import{Bb as c,qb as l,sb as m,yb as o}from"./chunk-LWCTKI4Z.js";import{b as x}from"./chunk-43R5VGKT.js";import{b as G}from"./chunk-YTUUU33R.js";import{e as W,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var d=class extends P{context="REPL";constructor(t){super(t),this.themeId=T()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){q(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await I(t.id,n,this.adminSession)}};r();r();async function $(e){return await H(e)??await j(e)??await Y(e)??await z(e)??void 0}async function H(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await f({...e,snippet:t}),s=await n.text();return F(n.status,s)?Q(s):void 0}async function j(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await f({...e,snippet:t}),s=await n.text();F(n.status,s)&&e.replSession.push(JSON.parse(t))}async function Y(e){if(c(`Evaluating assignment context - ${e.snippet}`),oe(e.snippet))return e.snippet=`assign ${e.snippet}`,o(m`${l.gray(`> ${e.snippet}`)}`),j(e)}async function z(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(X(e.snippet)||(t=await(await f({...e,snippet:`{{ ${e.snippet} }}`})).text()),h(t)||(t=await(await f({...e,snippet:`{% ${e.snippet} %}`})).text()),h(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");B(e.snippet,n)}}function B(e,t){if(t.includes("Unknown tag")){o(m`${l.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=C(t);n&&o(m`${l.errorText(n)}`)}async function f(e){let t=K(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await A(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
|
|
2
2
|
${t}
|
|
3
3
|
`}});return Z(n)&&ne(),ee(n)&&se(),te(n)&&re(),n}function K(e){return`[${[...e.replSession.map(n=>JSON.stringify(n)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Q(e){let t=C(e);if(t)return JSON.parse(t)?.find(s=>s.type==="display")?.value}function C(e){let t=e.split(`
|
|
4
4
|
`).slice(1,-1);if(t.length!==0)return t.join("")}function h(e){return e.includes("Liquid syntax error")}function X(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Z(e){return e.status===401||e.status===403}function ee(e){return e.status===430||e.status===429}function te(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function ne(){throw new i("Session expired. Please initiate a new one.")}function se(){throw new i("Evaluations limit reached. Try again later.")}function re(){throw new i("Page not found. Please provide a valid --url value!")}function oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function F(e,t){return e===200&&!h(t)}r();function N(e){if(D(e)){o("Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.");return}if(e==null){M("null");return}let t=JSON.stringify(e,null,2);M(t)}function D(e){if(Array.isArray(e))return e.length>0?D(e[0]):!1;if(e&&typeof e=="object"){let n=e.error;return typeof n=="string"&&n.includes("json not allowed for this object")}return!1}function M(e){return o(m`${l.cyan(e)}`)}import{createInterface as ie}from"readline";var ae=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{a as r,b as c,c as l}from"./chunk-4CRBTSVP.js";import{b as i}from"./chunk-ZQDDRIBA.js";import{c as n}from"./chunk-Q2SZCZE7.js";import{b as h}from"./chunk-YTUUU33R.js";import{e as f,g as o}from"./chunk-VKWPEFWQ.js";o();var t=f(h(),1);var e=class p extends i{static args={command:t.Args.string({description:"Command to show help for.",required:!1})};static descriptionWithMarkdown="Display help for Shopify CLI";static description=this.descriptionForHelp();static usage="help [command] [flags]";static flags={...n,"nested-commands":t.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})};static strict=!1;static get jsonOutputSchema(){return r}async run(){let{argv:a,flags:s}=await this.parse(p);if(s.json){let d=await c(this.config,a,s["nested-commands"]);l(d);return}let m=await(0,t.loadHelpClass)(this.config);await new m(this.config,{all:s["nested-commands"]}).showHelp(a)}};export{e as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as T}from"./chunk-AJMDF3QC.js";import{ga as D,p as C,ua as E,va as k,xa as o}from"./chunk-H4V55Y3Z.js";import{A as U,K as B,M as L,N as q,O as R,X as P,z as O}from"./chunk-CZ22VZDA.js";import{h as c}from"./chunk-2VSNFOKD.js";import{Bb as _,S as I}from"./chunk-LWCTKI4Z.js";import{j as A}from"./chunk-FZCGRIOM.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var de=/gid:\/\/shopify\/\w*\/(\d+)/,w="development",Fe="live",ge="unpublished";function be(e){return e.role===w}async function Te(e){let n=await I("creative");return B({message:e,defaultValue:n})}function S(e){return`gid://shopify/OnlineStoreTheme/${e}`}function N(e){let n=de.exec(e);if(n&&n[1]!==void 0)return parseInt(n[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var F;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(F||(F={}));l();function y(e){if(!e)return;e.processing??=!1,e.createdAtRuntime??=!1;let{id:n,name:i,role:a,processing:t,createdAtRuntime:d}=e;return{id:n,name:i,processing:t,createdAtRuntime:d,role:a==="main"?"live":a}}function Ve(e){if(!e)return;let{key:n,checksum:i,attachment:a,value:t}=e,d={size:(t||a||"").length,mtime:Date.now()};return{key:n,checksum:i,attachment:a,value:t,stats:d}}l();var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var le="CHALLENGE_REQUIRED",me=["\r",`
|
|
2
|
+
`," "],b=class extends c{},g,V=0;async function ie(e){g&&await g;let n=V,i=await ne(e);if(!i.challenged)return i.result;let a=V>n;(g||!a)&&await se(i.challengeUrl);let t=await ne(e);if(!t.challenged)return t.result;throw o("theme-api:trust-challenge:retry-challenged"),new b("Shopify still needs to verify your identity before it can continue.",void 0,[["Complete the verification at",{link:{url:t.challengeUrl}},"then run the command again."]])}async function ne(e){try{return{challenged:!1,result:await e()}}catch(n){let i=await oe(n);if(!i)throw n;return{challenged:!0,challengeUrl:i}}}async function oe(e){let i=D(e).find(a=>a.extensions?.code===le)?.extensions?.redirect_to;if(typeof i=="string"){if(!await re(i)){_(`Ignoring trust challenge with an unexpected URL host: ${i}`);return}return i}}async function re(e){try{let n=new URL(e);return n.protocol==="https:"&&n.hostname===await C()}catch{return!1}}async function se(e){return g??=ue(e).then(()=>{V+=1}).finally(()=>{g=void 0}),g}async function ue(e){if(o("theme-api:trust-challenge:required"),P()||!q()||A()==="json")throw o("theme-api:trust-challenge:non-interactive"),new b("Shopify needs to verify your identity before it can continue.",void 0,[["Open",{link:{url:e}},"in a browser where you're logged in to Shopify with the same account you use in Shopify CLI, complete the verification, then run the command again."]]);let n=await R(e);o(n?"theme-api:trust-challenge:browser-opened":"theme-api:trust-challenge:browser-not-opened"),O({headline:"Verify your identity to continue.",body:n?"A verification page opened in your browser.":"Shopify needs to verify your identity before it can continue.",link:n?void 0:{label:"Open the verification page",url:e},nextSteps:[["Complete the verification in your browser, logged in with the same account you use in Shopify CLI."],["Press",{userInput:"Enter"},"here once you have completed it."]],orderedNextSteps:!0}),await L(process.stdin,void 0,{keys:me}),o("theme-api:trust-challenge:acknowledged"),U({headline:"Continuing."})}var ke="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",p={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0},ae="the required theme access scope";async function Pn(e,n){let i=S(e);o("theme-api:fetch-theme");try{let{theme:a}=await T({query:Z,session:n,variables:{id:i},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(a)return y({id:N(a.id),processing:a.processing,role:a.role.toLowerCase(),name:a.name})}catch(a){te(a),k(a),_(`Error fetching theme with ID: ${e}`)}}async function Gn(e){let n=[],i=null;for(o("theme-api:fetch-themes");;){let a=await h({query:W,session:e,variables:{after:i},responseOptions:{handleErrors:!1},preferredBehaviour:p});a.themes||s("Failed to fetch themes");let{nodes:t,pageInfo:d}=a.themes;if(t.forEach(m=>{let r=y({id:N(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});r&&n.push(r)}),!d.hasNextPage)return n;i=d.endCursor}}async function Mn(e,n){o("theme-api:find-development-theme-by-name");let{themes:i}=await h({query:J,session:n,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(i||s("Failed to fetch themes"),i.nodes.length>1)throw k(new c(`More than one development theme is named "${e}"`));if(i.nodes.length===1){let{id:a,processing:t,role:d,name:m}=i.nodes[0];return y({id:N(a),processing:t,role:d.toLowerCase(),name:m})}}async function $n(e,n){let i=e.src??ke;o("theme-api:create-theme");let{themeCreate:a}=await h({query:z,session:n,variables:{name:e.name??"",source:i,role:(e.role??w).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:p});a||s("Failed to create theme");let{theme:t,userErrors:d}=a;if(d.length){let m=a.userErrors.map(r=>r.message).join(", ");throw k(new c(m))}return t||s("Failed to create theme"),y({id:N(t.id),name:t.name,role:t.role.toLowerCase()})}async function Hn(e,n,i){let a=[],t=null;for(o("theme-api:fetch-assets");;){let d=await h({query:j,session:i,variables:{id:x(e),filenames:n,after:t},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!d.theme?.files?.nodes||!d.theme?.files?.pageInfo){let u=d.theme?.files?.userErrors.map(f=>f.filename).join(", ");s(`Error fetching assets: ${u}`)}let{nodes:m,pageInfo:r}=d.theme.files;if(a.push(...await Promise.all(m.map(async u=>{let{attachment:f,value:v}=await Ne(u.body);return{attachment:f,key:u.filename,checksum:u.checksumMd5,value:v}}))),!r.hasNextPage)return a;t=r.endCursor}}async function zn(e,n,i){let t=[];o("theme-api:delete-assets");for(let d=0;d<n.length;d+=50){let m=n.slice(d,d+50),{themeFilesDelete:r}=await h({query:X,session:i,variables:{themeId:S(e),files:m},preferredBehaviour:p});r||s("Failed to delete theme assets");let{deletedThemeFiles:u,userErrors:f}=r;u&&u.forEach(v=>{t.push({key:v.filename,success:!0,operation:F.Delete})}),f.length>0&&f.forEach(v=>{v.filename?(k(`Asset deletion failed for ${v.filename}: ${v.message}`),t.push({key:v.filename,success:!1,operation:F.Delete,errors:{asset:[v.message]}})):s(`Failed to delete theme assets: ${v.message}`)})}return t}async function jn(e,n,i){let a=[];o("theme-api:bulk-upload-assets");for(let t=0;t<n.length;t+=50){let d=n.slice(t,t+50),m=ce(d);E("theme-api:upload-files");let r=await pe(e,m,i);E("theme-api:upload-files"),a.push(...he(r))}return a}function ce(e){return e.map(n=>n.attachment?{filename:n.key,body:{type:"BASE64",value:n.attachment}}:{filename:n.key,body:{type:"TEXT",value:n.value??""}})}async function pe(e,n,i){return h({query:K,session:i,variables:{themeId:x(e),files:n},preferredBehaviour:p})}function he(e){let{themeFilesUpsert:n}=e;n||s("Failed to upload theme files");let{upsertedThemeFiles:i,userErrors:a}=n,t=[];return i?.forEach(d=>{t.push({key:d.filename,success:!0,operation:F.Upload})}),a.forEach(d=>{d.filename||s(`Error uploading theme files: ${d.message}`),k(`Asset upload failed for ${d.filename}: ${d.message}`),t.push({key:d.filename,success:!1,operation:F.Upload,errors:{asset:[d.message]}})}),t}async function Qn(e,n){let i=[],a=null;for(o("theme-api:fetch-checksums");;){let t=await h({query:Q,session:n,variables:{id:x(e),after:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!t?.theme?.files?.nodes||!t?.theme?.files?.pageInfo){let r=t.theme?.files?.userErrors.map(u=>u.filename).join(", ");throw k(new c(`Failed to fetch checksums for: ${r}`))}let{nodes:d,pageInfo:m}=t.theme.files;if(i.push(...d.map(r=>({key:r.filename,checksum:r.checksumMd5}))),!m.hasNextPage)return i;a=m.endCursor}}async function Kn(e,n,i){let a=n.name,t={};a&&(t.name=a),o("theme-api:update-theme");let{themeUpdate:d}=await h({query:G,session:i,variables:{id:S(e),input:t},preferredBehaviour:p});d||s("Failed to update theme");let{theme:m,userErrors:r}=d;if(r.length){let u=d.userErrors.map(f=>f.message).join(", ");throw k(new c(u))}return m||s("Failed to update theme"),y({id:N(m.id),name:m.name,role:m.role.toLowerCase()})}async function Xn(e,n){o("theme-api:publish-theme");let{themePublish:i}=await h({query:H,session:n,variables:{id:S(e)},preferredBehaviour:p});i||s("Failed to update theme");let{theme:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw k(new c(d))}return a||s("Failed to update theme"),y({id:N(a.id),name:a.name,role:a.role.toLowerCase()})}async function Yn(e,n){o("theme-api:delete-theme");let{themeDelete:i}=await h({query:M,session:n,variables:{id:S(e)},preferredBehaviour:p});i||s("Failed to update theme");let{deletedThemeId:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw k(new c(d))}return a||s("Failed to update theme"),!0}async function Wn(e,n,i){let a;o("theme-api:duplicate-theme");let{themeDuplicate:t}=await h({query:$,session:i,variables:{id:S(e),name:n},preferredBehaviour:p,responseOptions:{onResponse:u=>{a=u.headers.get("x-request-id")??void 0}}});if(!t)return k("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a};let{newTheme:d,userErrors:m}=t;return m.length>0?{theme:void 0,userErrors:m,requestId:a}:d?{theme:y({id:N(d.id),name:d.name,role:d.role.toLowerCase()}),userErrors:[],requestId:a}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a}}async function Zn(e,n){o("theme-api:fetch-metafield-definitions");let i=[],a=null;for(;;){let{metafieldDefinitions:t}=await T({query:Y,session:n,variables:{ownerType:e,after:a}});if(i.push(...t.nodes),!t.pageInfo.hasNextPage)break;let d=t.pageInfo.endCursor;(!d||d===a)&&s("Failed to paginate metafield definitions"),a=d}return i.map(t=>({key:t.key,namespace:t.namespace,name:t.name,description:t.description,type:{name:t.type.name,category:t.type.category}}))}async function Jn(e){o("theme-api:check-password-protection");let{onlineStore:n}=await T({query:ee,session:e});n||s("Unable to get details about the storefront's password protection");let{passwordProtection:i}=n;return i.enabled}function s(e){throw k(new c(e))}function ei(e){return e instanceof b}async function h(e){try{return await ie(()=>T(e))}catch(n){throw te(n),n}}function te(e){let n=ve(e);if(!n)return;let i=[["If you authenticated with an Admin API access token, update the app or integration that issued the token to include the required theme access scopes, then reauthorize it or generate a new token."],["For",{command:"theme pull"},{char:","},{command:"theme list"},{char:","},"and",{command:"theme info"},{char:","},"add the",{command:"read_themes"},"scope",{char:"."}],["For",{command:"theme push"},{char:","},{command:"theme dev"},{char:","},{command:"theme publish"},{char:","},{command:"theme delete"},{char:","},{command:"theme rename"},{char:","},"and",{command:"theme duplicate"},{char:","},"add both the",{command:"read_themes"},"and",{command:"write_themes"},"scopes",{char:"."}],["If you authenticated with your Shopify account, make sure your staff or collaborator account can access Online Store themes, then run",{command:"shopify auth logout"},"and try again",{char:"."}],["See",{link:{label:"Shopify access scopes",url:"https://shopify.dev/api/usage/access-scopes"}},{char:"."}]];throw k(new c(`The authenticated account or access token is missing ${n}.`,void 0,i))}function ve(e){let n=D(e).find(a=>a.extensions?.code==="ACCESS_DENIED");if(!n)return;let i=n.extensions?.requiredAccess;return typeof i!="string"?ae:fe(i)}function fe(e){return e.trim().replace(/\.$/,"").replace(/^The user needs\s+/i,"")||ae}function x(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function Ne(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let i=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(i).toString("base64")}}catch{throw k(new c(`Error downloading content from URL: ${e.url}`))}}}export{Ve as a,w as b,Fe as c,ge as d,be as e,Te as f,Pn as g,Gn as h,Mn as i,$n as j,Hn as k,zn as l,jn as m,Qn as n,Kn as o,Xn as p,Yn as q,Wn as r,Zn as s,Jn as t,ei as u};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{a as L,b as w,c as P}from"./chunk-HF4NDEX3.js";import{a as g,b as x}from"./chunk-PSSYLJG4.js";import{a as A}from"./chunk-EITIW5OX.js";import{a as q,c as J}from"./chunk-P33TONYG.js";import{e as R}from"./chunk-QFWWCZOI.js";import{e as Y,q as H}from"./chunk-5TB52UUV.js";import{i as _,p as $,v as C}from"./chunk-DJAZBPYA.js";import{b as O,c as E,f as M}from"./chunk-Q2SZCZE7.js";import{A as b,B as D,F}from"./chunk-CZ22VZDA.js";import{g as I,h as S}from"./chunk-2VSNFOKD.js";import{Cb as j,U as T,wb as u}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as U}from"./chunk-YTUUU33R.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();var N=o.object({status:o.enum(["success","partial"]),themes:o.array(L),errors:o.array(o.object({themeId:o.number(),message:o.string()})).optional()}),p=R({name:"ThemeDeleteResult",schema:o.object({status:o.enum(["success","partial"]),changed:o.boolean(),themes:o.array(w),errors:o.array(o.object({themeId:o.string().regex(/^\d+$/),error:o.object({type:o.literal("abort"),message:o.string()}).strict()}).strict()).optional()}).strict(),definitions:{Theme:w},project(t){let e=N.parse(t);return{status:e.status,changed:e.themes.length>0,themes:e.themes.map(P),...e.errors?{errors:e.errors.map(n=>({themeId:String(n.themeId),error:{type:"abort",message:n.message}}))}:{}}}});c();function k(t,e,n){if(e==="json"){u(p.encode(t));return}let s=n.environment?[{subdued:`Environment: ${n.environment}
|
|
2
|
+
|
|
3
|
+
`}]:[];(t.status==="partial"?D:b)({body:T(t.themes,m=>[...s,`The following themes were deleted from ${n.store}:`,x(m)],m=>[...s,"The theme",...g(m),`was deleted from ${n.store}.`]),...t.errors?{nextSteps:t.errors.map(m=>[`Theme #${m.themeId}: ${m.message}`])}:{}})}c();async function G(t,e,n){let s=e.themes;e.development&&(s=[(await new A(t).find()).id.toString()]);let i=t.storeFqdn,m=await B(t,{...e,themes:s,development:!1});if(!e.force&&!n&&!await V(m,i))return;let f=await Promise.allSettled(m.map(async r=>(await H(r.id,t),{...r,shop:i}))),d=f.flatMap(r=>r.status==="fulfilled"?[r.value]:[]);for(let r of d)if(Y(r))try{_()}catch(l){let a=l instanceof Error?l.message:String(l);j(`Theme #${r.id} was deleted, but its local development theme reference could not be removed: ${a}`)}let h=f.flatMap((r,l)=>{if(r.status==="fulfilled")return[];let a=r.reason;return[{themeId:m[l].id,message:a instanceof Error?a.message:String(a)}]});if(h.length>0&&d.length===0){let r=f.find(a=>a.status==="rejected")?.reason;if(r instanceof I)throw r;let l=new S(h[0].message);throw l.details={errors:h.map(({themeId:a,message:W})=>({themeId:String(a),message:W}))},l}return{status:h.length>0?"partial":"success",themes:d,...h.length>0?{errors:h}:{}}}async function B(t,e){if(e.selectTheme||e.themes.length>0)return J(t,e);let n=t.storeFqdn;return[await q(t,{header:`Select a theme to delete from ${n}`,filter:{development:e.development}})]}async function V(t,e){let s={message:T(t,i=>[`Delete the following themes from ${e}?`],i=>["Delete",...g(i),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(s.infoTable={"":t.map(g)}),F(s)}var v=z(U(),1);var y=class extends C{static get jsonOutputSchema(){return p}static summary="Delete remote themes from the connected store. This command can't be undone.";static descriptionWithMarkdown=`Deletes a theme from your store.
|
|
4
|
+
|
|
5
|
+
You can specify multiple themes by ID. If no theme is specified, then you're prompted to select the theme that you want to delete from the list of themes in your store.
|
|
6
|
+
|
|
7
|
+
You're asked to confirm that you want to delete the specified themes before they are deleted. You can skip this confirmation using the \`--force\` flag.`;static description=this.descriptionForHelp();static flags={...O,...E,...$,development:v.Flags.boolean({char:"d",description:"Delete your development theme. Use --show-all, --development, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),"show-all":v.Flags.boolean({char:"a",description:"Include other development themes in the theme list. Use --show-all, --development, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_SHOW_ALL"}),force:M(v.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE"})),theme:v.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --show-all, --development, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID",multiple:!0})};static multiEnvironmentsFlags=["store","password",["development","theme","show-all"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","show-all"]}]}async command(e,n,s){let{environment:i,development:m,force:f,theme:d}=e,h=d??[],r=await G(n,{selectTheme:e["show-all"],development:m,themes:h,force:f},s);if(!r){e.json&&!s&&u(p.encode({status:"cancelled"}));return}if(r.status==="partial"&&(process.exitCode=1),e.json&&s)return r;k(r,e.json?"json":"text",{store:n.storeFqdn,environment:i})}renderEnvironmentResults(e){u(p.encode({environments:e}))}};export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as l}from"./chunk-2VSNFOKD.js";import{Hb as o,fb as y}from"./chunk-LWCTKI4Z.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();function p(t){if(!(typeof t.command!="string"||!Array.isArray(t.args))&&t.args.every(e=>typeof e=="string"))return{command:t.command,args:t.args}}function b(t,e){return t.type===l.Abort?e?"external":"abort":"bug"}function s(t){if(t!=null)try{let e=y(t);return typeof e=="string"?o(e):void 0}catch(e){if(e instanceof TypeError)return;throw e}}function A(t){if(!Array.isArray(t))return;let e=t.map(s).filter(n=>n!==void 0);return e.length>0?e:void 0}function j(t){if(Array.isArray(t))return t.filter(e=>Array.isArray(e)).map(e=>e.map(n=>s(n)??""))}function S(t){if(typeof t!="object"||t===null||!("body"in t))return;let e="title"in t&&typeof t.title=="string"?o(t.title):void 0,n=t.body,r=typeof n=="object"&&n!==null&&"tabularData"in n?j(n.tabularData):s(n);if(r!==void 0)return{...e?{title:e}:{},body:r}}function T(t){if(!Array.isArray(t))return;let e=t.map(S).filter(n=>n!==void 0);return e.length>0?e:void 0}function E(t){let e=typeof t=="object"&&t!==null?t:{message:t},n=p(e),r=b(e,n),g=s(e.formattedMessage)??(typeof e.message=="string"?o(e.message):"Unknown error"),f=s(e.tryMessage),u=A(e.nextSteps),d=T(e.customSections),c=e.details,a={message:g,...typeof e.code=="string"&&e.code.length>0?{code:e.code}:{},...f===void 0?{}:{tryMessage:f},...u===void 0?{}:{nextSteps:u},...d===void 0?{}:{customSections:d},...c===void 0?{}:{details:c}},i;return r==="bug"?i={type:r,...a,...typeof e.stack=="string"?{stack:o(e.stack)}:{}}:r==="external"&&n?i={type:r,...a,...n}:i={type:"abort",...a},i}export{E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as L}from"./chunk-ZQDDRIBA.js";import{I as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-H4V55Y3Z.js";import{j as r}from"./chunk-ZT5WFUKJ.js";import{b as O,c as b,f as F}from"./chunk-Q2SZCZE7.js";import{E as w,K as y}from"./chunk-CZ22VZDA.js";import{a as m}from"./chunk-BN7ZXAZJ.js";import{Ab as I,wb as A}from"./chunk-LWCTKI4Z.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"./chunk-FZCGRIOM.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=t.object({status:t.literal("success")});export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-BN7ZXAZJ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e.object({name:e.string().min(1).describe("The environment variable name with its original spelling."),value:e.string().optional().describe("The value, included only when known."),isSecret:e.boolean().optional().describe("Whether the value is secret, included only when known."),id:e.string().min(1).optional().describe("The upstream variable identifier, included only when known."),readOnly:e.boolean().optional().describe("Whether the variable is read-only, included only when known.")}).strict(),r=i({name:"AppEnvShowResult",schema:e.object({variables:e.array(o)}).strict(),definitions:{AppEnvironmentVariable:o}});export{o as a,r as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u}from"./chunk-
|
|
1
|
+
import{d as u}from"./chunk-UOS2XLGG.js";import{B as c}from"./chunk-CZ22VZDA.js";import{e as s}from"./chunk-X7HVAVSZ.js";import{_a as d}from"./chunk-LWCTKI4Z.js";import{p as m}from"./chunk-IWTNUJGY.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();function o(e,n){n||c(e)}async function P(e,n,t){let r=await l(n,t);if(!r){o({body:"Environment file not found."},t?.silent);return}let a=(await u.read(r)).content.environments;if(!a){o({body:["No environments found in",{command:r},{char:"."}]},t?.silent);return}let i=a[e];if(!i){o({body:["Environment",{command:e},"not found."]},t?.silent);return}return await s(()=>({environmentFlags:JSON.stringify(i)})),i}async function l(e,n){let t=n?.from&&n.from!=="."?n.from:m();return d(e,{cwd:t,type:"file"})}export{P as a,l as b};
|