@shopify/cli 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acorn-QBS5IYTX.js → acorn-7M27BPGP.js} +1 -1
- package/dist/analytics-JH64XI2J.js +1 -0
- package/dist/analytics-MEGKKFGF.js +1 -0
- package/dist/{angular-UTTM4Y4S.js → angular-DW5TQVCM.js} +1 -1
- package/dist/{babel-JS32NLHY.js → babel-I2RLWM7N.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
- package/dist/{chunk-NBYS6YQ2.js → chunk-25HJX3L2.js} +1 -1
- package/dist/{chunk-ZZYFG22L.js → chunk-2EHBJWC6.js} +1 -1
- package/dist/{chunk-INFBVFMU.js → chunk-2GAFKG64.js} +1 -1
- package/dist/{chunk-F6T3UBBL.js → chunk-2GU7OY3H.js} +1 -1
- package/dist/{chunk-MIO2CV3Q.js → chunk-2K7FGAT6.js} +1 -1
- package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
- package/dist/{chunk-MKE434RB.js → chunk-2RBIR3NM.js} +1 -1
- package/dist/{chunk-4Z2WYNTE.js → chunk-2TMQG2UT.js} +1 -1
- package/dist/{chunk-FTN7Y6HD.js → chunk-2XZBQZ5R.js} +1 -1
- package/dist/{chunk-J6VTZEE2.js → chunk-33OHQUHZ.js} +1 -1
- package/dist/chunk-3AOQKI4B.js +1 -0
- package/dist/{chunk-4EXYYBQ6.js → chunk-3SPDFV5D.js} +1 -1
- package/dist/{chunk-X2TC7S57.js → chunk-3YDYZ232.js} +2 -2
- package/dist/{chunk-FFYYJKF7.js → chunk-4FFPTEKD.js} +1 -1
- package/dist/{chunk-IWCPQD7X.js → chunk-4J32OHLY.js} +1 -1
- package/dist/chunk-4QTEPWEJ.js +283 -0
- package/dist/{chunk-QLQGHMVU.js → chunk-57PPQKJT.js} +1 -1
- package/dist/{chunk-DCK2FX6J.js → chunk-5BKCIDMS.js} +1 -1
- package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
- package/dist/{chunk-A6X2IVGT.js → chunk-5FFHQTRC.js} +1 -1
- package/dist/{chunk-UCLSPAVX.js → chunk-5FVB7JHP.js} +1 -1
- package/dist/{chunk-HD5TYIDZ.js → chunk-5H3VTG77.js} +1 -1
- package/dist/{chunk-6TEXPRI2.js → chunk-5O43334U.js} +1 -1
- package/dist/{chunk-MZJRNFAU.js → chunk-5XDQ76DQ.js} +1 -1
- package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
- package/dist/chunk-6JKGUQRD.js +1 -0
- package/dist/chunk-6KETAPWL.js +1 -0
- package/dist/{chunk-UOQQNAHX.js → chunk-6LWOWDF4.js} +1 -1
- package/dist/{chunk-CE6FKJFS.js → chunk-7572RLUP.js} +1 -1
- package/dist/{chunk-XFKCDWXB.js → chunk-762JWOWJ.js} +1 -1
- package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
- package/dist/{chunk-23AMFHXC.js → chunk-7D45IAMQ.js} +1 -1
- package/dist/{chunk-VPL2NDH6.js → chunk-7FQFEB33.js} +5 -5
- package/dist/{chunk-BPVZ7E63.js → chunk-7LV55VWE.js} +1 -1
- package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
- package/dist/{chunk-IWE4RUI7.js → chunk-A27NZMWB.js} +1 -1
- package/dist/{chunk-7JESXDF2.js → chunk-A4SBXDZB.js} +1 -1
- package/dist/{chunk-AP3RFOPL.js → chunk-A5HKAMAC.js} +1 -1
- package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
- package/dist/{chunk-DNLOSMHL.js → chunk-AERKD4TO.js} +1 -1
- package/dist/{chunk-WUK5NQSX.js → chunk-ANBOLDON.js} +2 -2
- package/dist/{chunk-TLSAQ6FG.js → chunk-AO3RFGNV.js} +1 -1
- package/dist/{chunk-KU5OPV7U.js → chunk-ATSMK66C.js} +1 -1
- package/dist/{chunk-LTWXTDDR.js → chunk-AU5EZQW7.js} +1 -1
- package/dist/{chunk-2YXKZWYW.js → chunk-AVD3INWF.js} +1 -1
- package/dist/chunk-AWEB5AQM.js +1 -0
- package/dist/{chunk-X4CV6TRE.js → chunk-AXNAGI32.js} +1 -1
- package/dist/{chunk-FQDRVPCY.js → chunk-BL46CZ2M.js} +1 -1
- package/dist/{chunk-OKOYLEA7.js → chunk-BQWK3C47.js} +3 -3
- package/dist/{chunk-C3LZPAAH.js → chunk-CEHXOWA6.js} +1 -1
- package/dist/{chunk-N5ROZKPZ.js → chunk-CFOXXOO2.js} +1 -1
- package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
- package/dist/{chunk-NO5KVFTV.js → chunk-CV5EQGES.js} +3 -3
- package/dist/{chunk-H4W4DFKK.js → chunk-CX5CC6P5.js} +1 -1
- package/dist/{chunk-OKNBZSGN.js → chunk-DCLUZFT7.js} +1 -1
- package/dist/{chunk-2EJCY4CE.js → chunk-DNXYKGV2.js} +1 -1
- package/dist/{chunk-IOQQUHST.js → chunk-DTIWUT2T.js} +1 -1
- package/dist/{chunk-6TORWTD7.js → chunk-DYNH5SKT.js} +1 -1
- package/dist/{chunk-D3DDLLNF.js → chunk-DZQYG32N.js} +1 -1
- package/dist/{chunk-QTGMS62F.js → chunk-E7DHELFH.js} +1 -1
- package/dist/{chunk-PUTZFF2Z.js → chunk-EH7ZTFS4.js} +3 -3
- package/dist/{chunk-YS6VOQ7I.js → chunk-EJDWYASP.js} +1 -1
- package/dist/chunk-EKVTNWHM.js +1 -0
- package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
- package/dist/{chunk-6ZIOYXEF.js → chunk-EVZA2TCI.js} +1 -1
- package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
- package/dist/{chunk-CW7WJZKR.js → chunk-FIYAECXH.js} +1 -1
- package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
- package/dist/{chunk-7DVOSOEP.js → chunk-FOFJBRSL.js} +1 -1
- package/dist/{chunk-D656BV5Z.js → chunk-FQ5ZZX2G.js} +1 -1
- package/dist/{chunk-6YHJ554P.js → chunk-G2LVUM7N.js} +1 -1
- package/dist/{chunk-NPM3MFB3.js → chunk-G2OHWAY2.js} +1 -1
- package/dist/chunk-G3JJLXPH.js +1 -0
- package/dist/{chunk-57N2DFIF.js → chunk-G3RWLAOG.js} +1 -1
- package/dist/{chunk-4V4DQ6W7.js → chunk-G4OQABDT.js} +30 -30
- package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
- package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
- package/dist/{chunk-2N4O33VM.js → chunk-GDHD3TGC.js} +1 -1
- package/dist/{chunk-N3YWHJMB.js → chunk-GJXINXSU.js} +2 -2
- package/dist/{chunk-RAH5NW3R.js → chunk-GWHV62YT.js} +1 -1
- package/dist/{chunk-VA5IUGZV.js → chunk-HCTZN7L4.js} +1 -1
- package/dist/{chunk-LITB5QQX.js → chunk-HDC5V7RY.js} +1 -1
- package/dist/{chunk-K7K6GNF6.js → chunk-HIQHYPLU.js} +1 -1
- package/dist/{chunk-VEDZUOVI.js → chunk-HOSFU6UP.js} +3 -3
- package/dist/{chunk-HSYRYSX4.js → chunk-I22ZTRKK.js} +1 -1
- package/dist/{chunk-KLA7AWG6.js → chunk-I4R7TML2.js} +1 -1
- package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
- package/dist/{chunk-TNQXTZAX.js → chunk-IWOTLFOY.js} +1 -1
- package/dist/{chunk-PBTXPBI6.js → chunk-J3H4LPN6.js} +3 -3
- package/dist/{chunk-6HZTMQD6.js → chunk-J3HX6ZGD.js} +1 -1
- package/dist/{chunk-OYP7DKPU.js → chunk-J3JPJCWP.js} +1 -1
- package/dist/{chunk-E2YBU6D3.js → chunk-J5BRKYGE.js} +2 -2
- package/dist/{chunk-5TIJLYZU.js → chunk-JAWKLBOB.js} +1 -1
- package/dist/{chunk-6AJZKIZ3.js → chunk-JAWOP4HJ.js} +1 -1
- package/dist/{chunk-TQGTEVSR.js → chunk-JCIN73BE.js} +1 -1
- package/dist/{chunk-C6ABJCRG.js → chunk-JEZ3PGVC.js} +1 -1
- package/dist/{chunk-TGACBJIY.js → chunk-JJ6RM54S.js} +1 -1
- package/dist/{chunk-TXUTT6UA.js → chunk-JK3NIHTX.js} +1 -1
- package/dist/{chunk-OLOBQ42K.js → chunk-JLE4NBMT.js} +1 -1
- package/dist/{chunk-7KJ5TBWG.js → chunk-JSOGPMWB.js} +1 -1
- package/dist/{chunk-L2VSSINY.js → chunk-JUYJZUYU.js} +1 -1
- package/dist/chunk-KRQGLK2Q.js +3 -0
- package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
- package/dist/{chunk-FBVBO5YQ.js → chunk-L2PC4MUV.js} +1 -1
- package/dist/{chunk-SSM346XI.js → chunk-LCZDC6EE.js} +1 -1
- package/dist/{chunk-NEZEHBT2.js → chunk-LXVORHCQ.js} +1 -1
- package/dist/{chunk-DERA4K6A.js → chunk-M2YINBHF.js} +1 -1
- package/dist/{chunk-VT77EFRL.js → chunk-M7YFD4EV.js} +6 -6
- package/dist/{chunk-DCBYHVKW.js → chunk-MEIEEENL.js} +1 -1
- package/dist/{chunk-7BFDUVOG.js → chunk-MIDYZPO4.js} +1 -1
- package/dist/{chunk-I3LX25MB.js → chunk-MINZGZ4N.js} +1 -1
- package/dist/{chunk-U3ZG675O.js → chunk-MMIHHCMW.js} +1 -1
- package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
- package/dist/{chunk-C2FFA4O4.js → chunk-MRS6LAY7.js} +1 -1
- package/dist/{chunk-IVGWFPMA.js → chunk-N3CNWCC2.js} +1 -1
- package/dist/{chunk-NXL6LDJU.js → chunk-N3NE4MVN.js} +1 -1
- package/dist/{chunk-WNGV4JQS.js → chunk-N3YTDGFY.js} +1 -1
- package/dist/{chunk-A5SQCM63.js → chunk-N5LVGFDS.js} +1 -1
- package/dist/{chunk-GVITHCQJ.js → chunk-NILXAUUT.js} +1 -1
- package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
- package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
- package/dist/{chunk-MGL4YM3S.js → chunk-NTRAWIEJ.js} +4 -4
- package/dist/{chunk-2WNODIWJ.js → chunk-NWXDOCL5.js} +1 -1
- package/dist/{chunk-K77WAKOB.js → chunk-OU3M32A2.js} +1 -1
- package/dist/chunk-OU4SKQTC.js +5 -0
- package/dist/{chunk-4KRT35A2.js → chunk-OXJBYKMX.js} +1 -1
- package/dist/{chunk-LCCMXY6N.js → chunk-OZBY45KT.js} +1 -1
- package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
- package/dist/{chunk-XP6IRAZN.js → chunk-PCCK4YTE.js} +1 -1
- package/dist/{chunk-2VLMN5QZ.js → chunk-PFGYC53K.js} +1 -1
- package/dist/{chunk-YGMVL6NZ.js → chunk-PMS4MNHB.js} +2 -2
- package/dist/{chunk-OA4P6AKS.js → chunk-PNP5OKNZ.js} +1 -1
- package/dist/{chunk-XX343DDG.js → chunk-PXHY753L.js} +1 -1
- package/dist/{chunk-UURFVUAH.js → chunk-Q73GEVSJ.js} +1 -1
- package/dist/{chunk-M2TJICTB.js → chunk-Q77MM2N2.js} +1 -1
- package/dist/{chunk-XDAOLCPN.js → chunk-Q7C44DX5.js} +1 -1
- package/dist/chunk-QDVJJKLB.js +1 -0
- package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
- package/dist/{chunk-LQMSF3F7.js → chunk-RKDZGK5K.js} +1 -1
- package/dist/{chunk-VYXVYOIJ.js → chunk-RSRYC5ZF.js} +1 -1
- package/dist/{chunk-HLMFVORT.js → chunk-S22NCNAJ.js} +1 -1
- package/dist/{chunk-UARVYVLN.js → chunk-S5IFJ737.js} +2 -2
- package/dist/{chunk-42RMKTCJ.js → chunk-S6B2ADVR.js} +1 -1
- package/dist/chunk-S7F5KFQP.js +1 -0
- package/dist/{chunk-UBKVCI7A.js → chunk-SSCYLDSX.js} +1 -1
- package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
- package/dist/{chunk-LKS47US7.js → chunk-T3ERXB7F.js} +1 -1
- package/dist/{chunk-PLQFX5ZP.js → chunk-T4IV643Z.js} +1 -1
- package/dist/{chunk-BECEP46I.js → chunk-T4NS63K4.js} +1 -1
- package/dist/{chunk-3YWUSKWF.js → chunk-T6CC5WUU.js} +1 -1
- package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
- package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
- package/dist/{chunk-XXE7667M.js → chunk-TP7E54WN.js} +1 -1
- package/dist/chunk-TPCG6DCA.js +1 -0
- package/dist/{chunk-2KH2S7PI.js → chunk-TRYWVIVJ.js} +1 -1
- package/dist/chunk-TU47HMTL.js +1 -0
- package/dist/{chunk-HHXHOQQP.js → chunk-TUNUEOHO.js} +1 -1
- package/dist/{chunk-PS25FEBF.js → chunk-TY6BZTG3.js} +1 -1
- package/dist/chunk-TYMYIUIQ.js +1 -0
- package/dist/chunk-UB26DGTR.js +6 -0
- package/dist/{chunk-HJSYHK4S.js → chunk-UC7KMA6W.js} +1 -1
- package/dist/{chunk-FD5S2O6M.js → chunk-UOHNRH6E.js} +1 -1
- package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
- package/dist/{chunk-M4LOKANA.js → chunk-USLYL5AC.js} +1 -1
- package/dist/{chunk-VICNWPLQ.js → chunk-UTO4Z6P6.js} +12 -12
- package/dist/{chunk-F47MFBKM.js → chunk-UU5P2IYU.js} +1 -1
- package/dist/chunk-UYSF234H.js +1 -0
- package/dist/chunk-VE35YELD.js +1 -0
- package/dist/{chunk-6YAXFS6V.js → chunk-VI34CKV6.js} +1 -1
- package/dist/{chunk-M4V2OQAX.js → chunk-VJ6KDRZI.js} +1 -1
- package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
- package/dist/chunk-VKWPEFWQ.js +1 -0
- package/dist/chunk-VPPWSKOY.js +1 -0
- package/dist/chunk-VRJTLVG3.js +1 -0
- package/dist/chunk-VUMUCNI7.js +1 -0
- package/dist/chunk-W7DDV2EY.js +1 -0
- package/dist/{chunk-RL5BWZ7D.js → chunk-WA3YC5W4.js} +1 -1
- package/dist/{chunk-MFLBTJO7.js → chunk-WHNWE7P2.js} +1 -1
- package/dist/{chunk-R6JNXEB3.js → chunk-WVRGCNBZ.js} +1 -1
- package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
- package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
- package/dist/{chunk-PSQFZAF3.js → chunk-XWPPBOGF.js} +1 -1
- package/dist/chunk-YIRFEW5M.js +1 -0
- package/dist/{chunk-RGNAWKD7.js → chunk-YL3TYQGT.js} +1 -1
- package/dist/{chunk-A3VYI4LO.js → chunk-YLQ3LNNY.js} +3 -3
- package/dist/{chunk-MA52QGHP.js → chunk-YMAWEIUR.js} +1 -1
- package/dist/{chunk-6LK6ZP3Q.js → chunk-YPBCSDFQ.js} +1 -1
- package/dist/{chunk-3BRUCKZ2.js → chunk-YSIBRY6C.js} +1 -1
- package/dist/{chunk-FGVC22EY.js → chunk-YVQXEPHY.js} +1 -1
- package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
- package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
- package/dist/chunk-ZGJ3DFTQ.js +9 -0
- package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
- package/dist/{chunk-IXUVSFW2.js → chunk-ZM75DSIW.js} +1 -1
- package/dist/{chunk-3V63X7WZ.js → chunk-ZUKLGZOU.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- 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/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/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/constants.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 +12 -0
- package/dist/cli/commands/doc/fetch.js +1 -0
- package/dist/cli/commands/doc/search.d.ts +13 -0
- package/dist/cli/commands/doc/search.js +1 -0
- 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.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.d.ts +4 -0
- package/dist/cli/commands/search.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.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
- package/dist/cli/services/commands/doc/fetch.js +45 -0
- package/dist/cli/services/commands/doc/search.d.ts +1 -0
- package/dist/cli/services/commands/doc/search.js +47 -0
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-6QNH5BID.js → conf-store-UY3MDGGA.js} +1 -1
- package/dist/{custom-oclif-loader-TSPWW5YF.js → custom-oclif-loader-3AICQCNU.js} +1 -1
- package/dist/deprecations-KNUMDRIU.js +1 -0
- package/dist/{devtools-HCKYP7DQ.js → devtools-37DE4MUR.js} +1 -1
- package/dist/{devtools-VEZNCV6W.js → devtools-WAWU5KQL.js} +1 -1
- package/dist/dist-C5IV2YDQ.js +1 -0
- package/dist/dist-VL4KZWV2.js +1 -0
- package/dist/environments-YPRVO2CF.js +1 -0
- package/dist/error-XRBQTNFM.js +1 -0
- package/dist/error-handler-NI7D6GSY.js +1 -0
- package/dist/{estree-BYYJYS3A.js → estree-JV5M77BA.js} +1 -1
- package/dist/{flow-M3Q2HPQT.js → flow-N4JYPYMQ.js} +1 -1
- package/dist/{fs-YMUQ6JLE.js → fs-LJWVNO4H.js} +1 -1
- package/dist/{glimmer-3DEJJGOJ.js → glimmer-JEV3BXHR.js} +1 -1
- package/dist/{graphql-A4HHE3MB.js → graphql-DTF6MHYF.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- 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/{html-HETICZ2F.js → html-LVOJ3RQS.js} +1 -1
- package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
- package/dist/index.js +28 -7
- package/dist/is-global-W6ALVC5L.js +1 -0
- package/dist/{is-wsl-TN2CXYI7.js → is-wsl-UEMXYJPN.js} +1 -1
- package/dist/{latest-version-6OAYLOBL.js → latest-version-32HXMWJ7.js} +1 -1
- package/dist/lib-AIKYSHWL.js +1 -0
- package/dist/lib-O5EZ4NVT.js +1 -0
- package/dist/lib-Q4PWEMFD.js +1 -0
- package/dist/lib-QJDPPAWN.js +1 -0
- package/dist/{local-GPDAXHE6.js → local-GKEWZAIV.js} +1 -1
- package/dist/local-storage-ZOZMA22B.js +1 -0
- package/dist/{markdown-5TVCXM53.js → markdown-J6CE6POI.js} +1 -1
- package/dist/{meriyah-23OZNYWC.js → meriyah-PNQQZQYI.js} +1 -1
- package/dist/metadata-UEUN64TK.js +1 -0
- package/dist/{morph-I35VYPBH.js → morph-CGOZEPPZ.js} +1 -1
- package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
- package/dist/{node-package-manager-GO4ZRTKQ.js → node-package-manager-4ASQQIIF.js} +1 -1
- package/dist/notifications-system-HLXJCAMG.js +1 -0
- package/dist/{npa-VNALV7XY.js → npa-A4YSCQ5Q.js} +1 -1
- package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
- package/dist/out-CDCY25QC.js +1 -0
- package/dist/{output-7IYOMPSA.js → output-S6E37GJQ.js} +1 -1
- package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
- package/dist/{postcss-IIK6CGAW.js → postcss-Q36SHOML.js} +1 -1
- package/dist/{prettier-ZSBNNQTK.js → prettier-EGVCP5CY.js} +1 -1
- package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
- package/dist/system-YQZNGSWB.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-5R4Y7PXE.js +1 -0
- package/dist/{typescript-YKZ232QT.js → typescript-WYPDGPSV.js} +1 -1
- package/dist/ui-D2FFWRK7.js +1 -0
- package/dist/upgrade-TVTCFMXM.js +1 -0
- package/dist/version-J6MDN7BZ.js +1 -0
- package/dist/version-RIRW5EXQ.js +1 -0
- package/dist/{workerd-ST6XJKUN.js → workerd-QOTT6UCO.js} +1 -1
- package/dist/{yaml-SJKIH3VD.js → yaml-6KWCJ64X.js} +1 -1
- package/oclif.manifest.json +304 -6
- package/package.json +11 -8
- package/dist/analytics-CX22YIUZ.js +0 -1
- package/dist/analytics-UBWQIQYF.js +0 -1
- package/dist/chunk-4ZGSSQC6.js +0 -1
- package/dist/chunk-6SXOUZ7V.js +0 -1
- package/dist/chunk-ATPFTRCC.js +0 -1
- package/dist/chunk-AWQ5AR2K.js +0 -5
- package/dist/chunk-BHWEA4V2.js +0 -1
- package/dist/chunk-CCEA5CUX.js +0 -1
- package/dist/chunk-FP2NOZSD.js +0 -1
- package/dist/chunk-FSTCEWXX.js +0 -1
- package/dist/chunk-K3PGC6DC.js +0 -1
- package/dist/chunk-KFCGMT67.js +0 -1
- package/dist/chunk-KQU6HOJ3.js +0 -1
- package/dist/chunk-NP4UFPAX.js +0 -9
- package/dist/chunk-RVMB5LC2.js +0 -1
- package/dist/chunk-T5MK7ZSF.js +0 -1
- package/dist/chunk-UOQ75BL3.js +0 -1
- package/dist/chunk-UWJ73J4B.js +0 -1
- package/dist/chunk-VPRTJUIN.js +0 -1
- package/dist/chunk-WCWNI3ZV.js +0 -283
- package/dist/chunk-XEFQQPL4.js +0 -1
- package/dist/chunk-YJB7P2HC.js +0 -1
- package/dist/chunk-YOZNRLFC.js +0 -1
- package/dist/deprecations-F6JWVV2W.js +0 -1
- package/dist/dist-4BD6KOLR.js +0 -1
- package/dist/dist-AUABCVPI.js +0 -1
- package/dist/environments-RGLI75HN.js +0 -1
- package/dist/error-OZALZZ3U.js +0 -1
- package/dist/error-handler-V7LSEXHM.js +0 -1
- package/dist/is-global-BLIZ57HQ.js +0 -1
- package/dist/lib-AK5EOIKR.js +0 -1
- package/dist/lib-LVUMLZ4H.js +0 -1
- package/dist/lib-ME6554NA.js +0 -1
- package/dist/lib-WU3FEA6I.js +0 -1
- package/dist/local-storage-P66KJG6I.js +0 -1
- package/dist/metadata-TRH25EHU.js +0 -1
- package/dist/notifications-system-HM6JZ6WJ.js +0 -1
- package/dist/out-WLY6KV4B.js +0 -1
- package/dist/system-X5C4EQQH.js +0 -1
- package/dist/typescript-K5CWIA4V.js +0 -1
- package/dist/ui-H62CMRLG.js +0 -1
- package/dist/upgrade-EEOPH464.js +0 -1
- package/dist/version-76NBQR4K.js +0 -1
- package/dist/version-IGSEISUA.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Ia}from"./chunk-PSQFZAF3.js";import{$ as ga,A as ia,Aa as Ca,B as C,Ba as Oa,C as X,Ca as Ta,D as aa,E as Ne,F as Wr,G as vt,H as Nt,I as Ve,Ia as $o,J as sa,Ja as Da,K as lt,Ka as sn,L as qe,La as _t,M as ca,Ma as Bt,N as Yr,Na as lr,O as De,Oa as cn,P as Do,Pa as Vt,Q as la,Qa as ln,R as Lt,Ra as $a,S as Mt,Sa as Ra,T as ua,Ta as ja,U as zr,Ua as un,V as fa,Va as Fa,W as da,Wa as Aa,X as ma,Xa as Na,Y as pa,Z as ha,_ as wt,a as Te,aa as oe,b as ir,ba as Ht,c as Qi,ca as ya,d as Je,da as va,e as Be,ea as Kr,f as yt,fa as Jr,g as Xi,ga as wa,h as Zi,ha as Ie,i as ea,ia as ba,j as xo,ja as _a,k as At,ka as Io,l as ar,la as Sa,m as ct,ma as Ea,n as ta,na as ka,o as Vr,oa as Qr,p as Po,pa as Xr,q as sr,qa as Zr,r as Co,ra as xa,s as ra,sa as en,t as na,ta as tn,u as Oo,ua as Pa,v as oa,va as rn,w as To,wa as nn,x as qr,xa as bt,y as Gr,ya as Ut,z as cr,za as on}from"./chunk-N3YWHJMB.js";import{a as Vi}from"./chunk-3VZEETAV.js";import{a as La}from"./chunk-LQMSF3F7.js";import{b as qi,c as Gi,d as Br,g as Wi,i as Yi,j as zi,k as Ki}from"./chunk-VYXVYOIJ.js";import{a as Ru,b as Ji,d as ju}from"./chunk-FGVC22EY.js";import{a as fn}from"./chunk-WDC3KIZT.js";import{a as an,b as Ro,c as jo}from"./chunk-42RMKTCJ.js";import{c as Bi}from"./chunk-QSTEVZFQ.js";import{Aa as Tu,Ba as Du,Da as Iu,Ea as Ni,Fa as Li,Ga as $u,fa as Oe,m as Di,n as _e,za as Ou}from"./chunk-4V4DQ6W7.js";import{B as Ai,l as $i,m as He,p as Ft,s as Ri,u as ji,x as Fi}from"./chunk-WUK5NQSX.js";import{b as L}from"./chunk-VEDZUOVI.js";import{b as Ti}from"./chunk-JUVAGMIH.js";import{A as Ke,D as he,O as Mi,a as Mr,u as ee,v as z,w as ne,y as ot,z as it}from"./chunk-MGL4YM3S.js";import{d as T,g as Hr}from"./chunk-BHWEA4V2.js";import{a as Fu}from"./chunk-HZA6IAA4.js";import{b as Cu}from"./chunk-QYR5VPQA.js";import{$ as xi,Bb as Ii,Ca as So,Ea as Nr,Fb as Ue,Ga as Ci,Ha as Oi,Hb as ae,Jb as at,Ka as Eo,Mb as V,Nb as Hi,Oa as ko,Ob as st,Pb as Ui,Qb as Z,Rb as Se,Ta as re,V as Fr,Wa as or,ma as ke,na as Pi,pa as Ar,qa as _o,qb as Lr,ua as le,wa as nr,ya as Me}from"./chunk-VPL2NDH6.js";import{u as J}from"./chunk-7JESXDF2.js";import{s as Ur}from"./chunk-UARVYVLN.js";import{d as R,f as A,g as be,i as bo,j as jt,k as Ei,q as ki}from"./chunk-IU2ZQ6TE.js";import{a as te,c as we,e as fe,g as p}from"./chunk-VPRTJUIN.js";var is=we((os,Ho)=>{p();(function(e){if(typeof os=="object"&&typeof Ho<"u")Ho.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.bugsnag=e()}})(function(){var e,t,r,n=(function(){function o(l,s,f,y){y===void 0&&(y=new Date),this.type=f,this.message=l,this.metadata=s,this.timestamp=y}var c=o.prototype;return c.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},o})(),i=n,a=["navigation","request","process","log","user","state","error","manual"],u=function(o,c,l){for(var s=l,f=0,y=o.length;f<y;f++)s=c(s,o[f],f,o);return s},d=function(o,c){return u(o,function(l,s,f,y){return c(s,f,y)?l.concat(s):l},[])},m=function(o,c){return u(o,function(l,s,f,y){return l===!0||s===c},!1)},h=function(o){return Object.prototype.toString.call(o)==="[object Array]"},g=!{toString:null}.propertyIsEnumerable("toString"),w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(o){var c=[],l;for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&c.push(l);if(!g)return c;for(var s=0,f=w.length;s<f;s++)Object.prototype.hasOwnProperty.call(o,w[s])&&c.push(w[s]);return c},S=function(o,c){return o===void 0&&(o=1),c===void 0&&(c=1/0),function(l){return typeof l=="number"&&parseInt(""+l,10)===l&&l>=o&&l<=c}},E=function(o){return typeof o=="function"||h(o)&&d(o,function(c){return typeof c=="function"}).length===o.length},x=function(o){return typeof o=="string"&&!!o.length},O={},k=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};O.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:x},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||x(o)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||x(o)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(o){return o===!0||o===!1}},enabledErrorTypes:{defaultValue:function(){return k()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(o){if(typeof o!="object"||!o)return!1;var c=v(o),l=v(k());return!(d(c,function(s){return m(l,s)}).length<c.length||d(v(o),function(s){return typeof o[s]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},endpoints:{defaultValue:function(o){return typeof o>"u"?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(o){return o&&typeof o=="object"&&x(o.notify)&&x(o.sessions)&&d(v(o),function(c){return!m(["notify","sessions"],c)}).length===0}},autoTrackSessions:{defaultValue:function(o){return!0},message:"should be true|false",validate:function(o){return o===!0||o===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(o){return o===null||h(o)&&d(o,function(c){return typeof c=="string"}).length===o.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(o){return typeof o=="string"&&o.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(o){return S(0,100)(o)}},enabledBreadcrumbTypes:{defaultValue:function(){return a},message:"should be null or a list of available breadcrumb types ("+a.join(",")+")",validate:function(o){return o===null||h(o)&&u(o,function(c,l){return c===!1?c:m(a,l)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||typeof o=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(o){return o===null||o&&u(v(o),function(c,l){return c&&m(["id","email","name"],l)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(o){return typeof o=="object"&&o!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(o){return!o||o&&u(["debug","info","warn","error"],function(c,l){return c&&typeof o[l]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(o){return h(o)&&o.length===d(o,function(c){return typeof c=="string"||c&&typeof c.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(o){return h(o)&&o.length===d(o,function(c){return c&&typeof c=="object"&&typeof c.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(o){return h(o)&&o.length===d(o,function(c){return c&&typeof c=="object"&&typeof c.name=="string"}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(o){return o===!0||o===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(o){return o===!0||o===!1}}};var P=Ou(),b=function(o){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o[s]=l[s])}return o},D=function(o,c){return u(o,function(l,s,f,y){return l.concat(c(s,f,y))},[])},j=function(o,c,l,s){var f=s&&s.redactedKeys?s.redactedKeys:[],y=s&&s.redactedPaths?s.redactedPaths:[];return JSON.stringify(Pt(o,f,y),c,l)},B=20,N=25e3,W=8,H="...";function F(o){return o instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(o))}function G(o){return"[Throws: "+(o?o.message:"?")+"]"}function K(o,c){for(var l=0,s=o.length;l<s;l++)if(o[l]===c)return!0;return!1}function q(o,c){for(var l=0,s=o.length;l<s;l++)if(c.indexOf(o[l])===0)return!0;return!1}function se(o,c){for(var l=0,s=o.length;l<s;l++)if(typeof o[l]=="string"&&o[l].toLowerCase()===c.toLowerCase()||o[l]&&typeof o[l].test=="function"&&o[l].test(c))return!0;return!1}function Re(o){return Object.prototype.toString.call(o)==="[object Array]"}function We(o,c){try{return o[c]}catch(l){return G(l)}}function Pt(o,c,l){var s=[],f=0;function y(_,I){function $(){return I.length>W&&f>N}if(f++,I.length>B||$())return H;if(_===null||typeof _!="object")return _;if(K(s,_))return"[Circular]";if(s.push(_),typeof _.toJSON=="function")try{f--;var U=y(_.toJSON(),I);return s.pop(),U}catch(Rt){return G(Rt)}var Y=F(_);if(Y){f--;var ue=y({name:_.name,message:_.message},I);return s.pop(),ue}if(Re(_)){for(var pe=[],nt=0,Ae=_.length;nt<Ae;nt++){if($()){pe.push(H);break}pe.push(y(_[nt],I.concat("[]")))}return s.pop(),pe}var $t={};try{for(var ze in _)if(Object.prototype.hasOwnProperty.call(_,ze)){if(q(l,I.join("."))&&se(c,ze)){$t[ze]="[REDACTED]";continue}if($()){$t[ze]=H;break}$t[ze]=y(We(_,ze),I.concat(ze))}}catch{}return s.pop(),$t}return y(o,[])}function Ze(o,c,l,s){if(typeof l=="string"){s===void 0?s=null:s!==null&&typeof s!="string"&&(s=j(s));var f=c[l];if(typeof f=="number"){o[f]={name:l,variant:s};return}o.push({name:l,variant:s}),c[l]=o.length-1}}function ht(o,c,l){if(h(c)){for(var s=0;s<c.length;++s){var f=c[s];f===null||typeof f!="object"||Ze(o,l,f.name,f.variant)}return o}}function ie(o){return D(d(o,Boolean),function(c){var l=c.name,s=c.variant,f={featureFlag:l};return typeof s=="string"&&(f.variant=s),f})}function ge(o,c,l){var s=c[l];typeof s=="number"&&(o[s]=null,delete c[l])}var je={add:Ze,clear:ge,merge:ht,toEventApi:ie},et=function(o){return!!o&&(!!o.stack||!!o.stacktrace||!!o["opera#sourceloc"])&&typeof(o.stack||o.stacktrace||o["opera#sourceloc"])=="string"&&o.stack!==o.name+": "+o.message},Ye=Tu(),no=function(o,c,l,s){var f;if(c){var y;if(l===null)return kr(o,c);typeof l=="object"&&(y=l),typeof l=="string"&&(y=(f={},f[l]=s,f)),y&&(c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]||(o[c]={}),o[c]=b({},o[c],y)))}},Er=function(o,c,l){if(typeof c=="string"){if(!l)return o[c];if(o[c])return o[c][l]}},kr=function(o,c,l){if(typeof c=="string"){if(!l){delete o[c];return}c==="__proto__"||c==="constructor"||c==="prototype"||o[c]&&delete o[c][l]}},Pe={add:no,get:Er,clear:kr};function Ct(){return Ct=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var s in l)({}).hasOwnProperty.call(l,s)&&(o[s]=l[s])}return o},Ct.apply(null,arguments)}var Xt=Du(),Le=(function(){function o(l,s,f,y,_){f===void 0&&(f=[]),y===void 0&&(y=M()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=_,this._handledState=y,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.response={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[Ce(l,s,o.__type,f)]}var c=o.prototype;return c.addMetadata=function(s,f,y){return Pe.add(this._metadata,s,f,y)},c.setTraceCorrelation=function(s,f){typeof s=="string"&&(this._correlation=Ct({traceId:s},typeof f=="string"?{spanId:f}:{}))},c.getGroupingDiscriminator=function(){return this._groupingDiscriminator},c.setGroupingDiscriminator=function(s){var f=this._groupingDiscriminator;return(typeof s=="string"||s===null||s===void 0)&&(this._groupingDiscriminator=s),f},c.getMetadata=function(s,f){return Pe.get(this._metadata,s,f)},c.clearMetadata=function(s,f){return Pe.clear(this._metadata,s,f)},c.addFeatureFlag=function(s,f){f===void 0&&(f=null),je.add(this._features,this._featuresIndex,s,f)},c.addFeatureFlags=function(s){je.merge(this._features,s,this._featuresIndex)},c.getFeatureFlags=function(){return je.toEventApi(this._features)},c.clearFeatureFlag=function(s){je.clear(this._features,this._featuresIndex,s)},c.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c.toJSON=function(){return{payloadVersion:"4",exceptions:D(this.errors,function(s){return b({},s,{message:s.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,response:this.response,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},o})(),xr=function(o){var c={file:o.fileName,method:oo(o.functionName),lineNumber:o.lineNumber,columnNumber:o.columnNumber,code:void 0,inProject:void 0};return c.lineNumber>-1&&!c.file&&!c.method&&(c.file="global code"),c},oo=function(o){return/^global code$/i.test(o)?"global code":o},M=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},ce=function(o){return typeof o=="string"?o:""};function Ce(o,c,l,s){return{errorClass:ce(o),errorMessage:ce(c),type:l,stacktrace:u(s,function(f,y){var _=xr(y);try{return JSON.stringify(_)==="{}"?f:f.concat(_)}catch{return f}},[])}}function tt(o){return o.cause?[o].concat(tt(o.cause)):[o]}Le.getStacktrace=function(o,c,l){if(et(o))return P.parse(o).slice(c);try{return d(Xt.backtrace(),function(s){return(s.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+l)}catch{return[]}},Le.create=function(o,c,l,s,f,y){f===void 0&&(f=0);var _=Tt(o,c,s,y),I=_[0],$=_[1],U;try{var Y=Le.getStacktrace(I,$>0?1+$+f:0,1+f);U=new Le(I.name,I.message,Y,l,o)}catch{U=new Le(I.name,I.message,[],l,o)}if(I.name==="InvalidError"&&U.addMetadata(""+s,"non-error parameter",Ot(o)),I.cause){var ue,pe=tt(I).slice(1),nt=D(pe,function(Ae){var $t=Ye(Ae)&&et(Ae)?P.parse(Ae):[],ze=Tt(Ae,!0,"error cause"),Rt=ze[0];return Rt.name==="InvalidError"&&U.addMetadata("error cause",Ot(Ae)),Ce(Rt.name,Rt.message,Le.__type,$t)});(ue=U.errors).push.apply(ue,nt)}return U};var Ot=function(o){return o===null?"null":o===void 0?"undefined":o},Tt=function(o,c,l,s){var f,y=0,_=function(I){var $=l==="error cause"?"was":"received";s&&s.warn(l+" "+$+' a non-error: "'+I+'"');var U=new Error(l+" "+$+' a non-error. See "'+l+'" tab for more detail.');return U.name="InvalidError",U};if(!c)Ye(o)?f=o:(f=_(typeof o),y+=2);else switch(typeof o){case"string":case"number":case"boolean":f=new Error(String(o)),y+=1;break;case"function":f=_("function"),y+=2;break;case"object":o!==null&&Ye(o)?f=o:o!==null&&io(o)?(f=new Error(o.message||o.errorMessage),f.name=o.name||o.errorClass,y+=1):(f=_(o===null?"null":"unsupported object"),y+=2);break;default:f=_("nothing"),y+=2}if(!et(f))try{throw f}catch(I){et(I)&&(f=I,y=1)}return[f,y]};Le.__type="browserjs";var io=function(o){return(typeof o.name=="string"||typeof o.errorClass=="string")&&(typeof o.message=="string"||typeof o.errorMessage=="string")},Dt=Le,ai=function(o,c,l){var s=0,f=function(){if(s>=o.length)return l(null,!0);c(o[s],function(y,_){if(y)return l(y);if(_===!1)return l(null,!1);s++,f()})};f()},Pr=function(o,c,l,s){var f=function(y,_){if(typeof y!="function")return _(null);try{if(y.length!==2){var I=y(c);return I&&typeof I.then=="function"?I.then(function($){return setTimeout(function(){return _(null,$)})},function($){setTimeout(function(){return l($),_(null,!0)})}):_(null,I)}y(c,function($,U){if($)return l($),_(null);_(null,U)})}catch($){l($),_(null)}};ai(o,f,s)},Zt=function(o,c,l,s){for(var f=!1,y=o.slice();!f&&y.length;)try{f=y.pop()(c)===!1}catch(_){s.error("Error occurred in "+l+" callback, continuing anyway\u2026"),s.error(_)}return f},Cr=function(c,l){var s="000000000"+c;return s.substr(s.length-l)},fl=te("os");function dl(){try{return fl.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||"hostname"}}var si=2,ml=Cr(process.pid.toString(36),si),ci=dl(),pl=ci.length,hl=Cr(ci.split("").reduce(function(o,c){return+o+c.charCodeAt(0)},+pl+36).toString(36),si),li=function(){return ml+hl},gl=function(c){return typeof c=="string"&&/^c[a-z0-9]{20,32}$/.test(c)},er=0,ao=4,Or=36,ui=Math.pow(Or,ao);function fi(){return Cr((Math.random()*ui<<0).toString(Or),ao)}function yl(){return er=er<ui?er:0,er++,er-1}function so(){var o="c",c=new Date().getTime().toString(Or),l=Cr(yl().toString(Or),ao),s=li(),f=fi()+fi();return o+c+l+s+f}so.fingerprint=li,so.isCuid=gl;var vl=so,wl=(function(){function o(){this.id=vl(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var c=o.prototype;return c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},c._track=function(s){this[s._handledState.unhandled?"_unhandled":"_handled"]+=1},o})(),co=wl,bl=je.add,_l=je.clear,lo=je.merge,Sl="00000",El="https://notify.bugsnag.smartbear.com",kl="https://sessions.bugsnag.smartbear.com",rt=function(){},xl=(function(){function o(l,s,f,y){var _=this;s===void 0&&(s=O.schema),f===void 0&&(f=[]),this._notifier=y,this._config={},this._schema=s,this._delivery={sendSession:rt,sendEvent:rt},this._logger={debug:rt,info:rt,warn:rt,error:rt},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=o,this.Event=Dt,this.Breadcrumb=i,this.Session=co,this._config=this._configure(l,f),D(f.concat(this._config.plugins),function(U){U&&_._loadPlugin(U)}),this._depth=1;var I=this,$=this.notify;this.notify=function(){return $.apply(I,arguments)}}var c=o.prototype;return c.addMetadata=function(s,f,y){return Pe.add(this._metadata,s,f,y)},c.getMetadata=function(s,f){return Pe.get(this._metadata,s,f)},c.clearMetadata=function(s,f){return Pe.clear(this._metadata,s,f)},c.addFeatureFlag=function(s,f){f===void 0&&(f=null),bl(this._features,this._featuresIndex,s,f)},c.addFeatureFlags=function(s){lo(this._features,s,this._featuresIndex)},c.clearFeatureFlag=function(s){_l(this._features,this._featuresIndex,s)},c.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},c.getContext=function(){return this._context},c.setContext=function(s){this._context=s},c.getGroupingDiscriminator=function(){return this._groupingDiscriminator},c.setGroupingDiscriminator=function(s){var f=this._groupingDiscriminator;return(typeof s=="string"||s===null||s===void 0)&&(this._groupingDiscriminator=s),f},c._configure=function(s,f){var y=u(f,function(U,Y){return Y&&Y.configSchema?b({},U,Y.configSchema):U},this._schema);s.endpoints||(s.sendPayloadChecksums="sendPayloadChecksums"in s?s.sendPayloadChecksums:!0);var _=u(v(y),function(U,Y){var ue=y[Y].defaultValue(s[Y]);if(s[Y]!==void 0){var pe=y[Y].validate(s[Y]);pe?y[Y].allowPartialObject?U.config[Y]=b(ue,s[Y]):U.config[Y]=s[Y]:(U.errors[Y]=y[Y].message,U.config[Y]=ue)}else U.config[Y]=ue;return U},{errors:{},config:{}}),I=_.errors,$=_.config;if(y.apiKey){if(!$.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test($.apiKey)||(I.apiKey="should be a string of 32 hexadecimal characters"),s.endpoints===void 0&&$.apiKey.indexOf(Sl)===0&&($.endpoints={notify:El,sessions:kl})}return this._metadata=b({},$.metadata),lo(this._features,$.featureFlags,this._featuresIndex),this._user=b({},$.user),this._context=$.context,$.logger&&(this._logger=$.logger),$.onError&&(this._cbs.e=this._cbs.e.concat($.onError)),$.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat($.onBreadcrumb)),$.onSession&&(this._cbs.s=this._cbs.s.concat($.onSession)),v(I).length&&this._logger.warn(Pl(I,s)),$},c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c._loadPlugin=function(s){var f=s.load(this);s.name&&(this._plugins["~"+s.name+"~"]=f)},c.getPlugin=function(s){return this._plugins["~"+s+"~"]},c._setDelivery=function(s){this._delivery=s(this)},c.startSession=function(){var s=new co;s.app.releaseStage=this._config.releaseStage,s.app.version=this._config.appVersion,s.app.type=this._config.appType,s._user=b({},this._user);var f=Zt(this._cbs.s,s,"onSession",this._logger);return f?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,s)},c.addOnError=function(s,f){f===void 0&&(f=!1),this._cbs.e[f?"unshift":"push"](s)},c.removeOnError=function(s){this._cbs.e=d(this._cbs.e,function(f){return f!==s})},c._addOnSessionPayload=function(s){this._cbs.sp.push(s)},c.addOnSession=function(s){this._cbs.s.push(s)},c.removeOnSession=function(s){this._cbs.s=d(this._cbs.s,function(f){return f!==s})},c.addOnBreadcrumb=function(s,f){f===void 0&&(f=!1),this._cbs.b[f?"unshift":"push"](s)},c.removeOnBreadcrumb=function(s){this._cbs.b=d(this._cbs.b,function(f){return f!==s})},c.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},c.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},c.leaveBreadcrumb=function(s,f,y){if(s=typeof s=="string"?s:"",y=typeof y=="string"&&m(a,y)?y:"manual",f=typeof f=="object"&&f!==null?f:{},!!s){var _=new i(s,f,y),I=Zt(this._cbs.b,_,"onBreadcrumb",this._logger);if(I){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(_),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},c._isBreadcrumbTypeEnabled=function(s){var f=this._config.enabledBreadcrumbTypes;return f===null||m(f,s)},c.notify=function(s,f,y){y===void 0&&(y=rt);var _=Dt.create(s,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(_,f,y)},c._notify=function(s,f,y){var _=this;if(y===void 0&&(y=rt),s.app=b({},s.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),s.context=s.context||this._context,s._metadata=b({},s._metadata,this._metadata),s._user=b({},s._user,this._user),s.breadcrumbs=this._breadcrumbs.slice(),s.setGroupingDiscriminator(this._groupingDiscriminator),lo(s._features,this._features,s._featuresIndex),this._config.enabledReleaseStages!==null&&!m(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),y(null,s);var I=s.severity,$=function(Y){_._logger.error("Error occurred in onError callback, continuing anyway\u2026"),_._logger.error(Y)},U=[].concat(this._cbs.e).concat(f);Pr(U,s,$,function(Y,ue){if(Y&&$(Y),!ue)return _._logger.debug("Event not sent due to onError callback"),y(null,s);_._isBreadcrumbTypeEnabled("error")&&o.prototype.leaveBreadcrumb.call(_,s.errors[0].errorClass,{errorClass:s.errors[0].errorClass,errorMessage:s.errors[0].errorMessage,severity:s.severity},"error"),I!==s.severity&&(s._handledState.severityReason={type:"userCallbackSetSeverity"}),s.unhandled!==s._handledState.unhandled&&(s._handledState.severityReason.unhandledOverridden=!0,s._handledState.unhandled=s.unhandled),_._session&&(_._session._track(s),s._session=_._session),_._delivery.sendEvent({apiKey:s.apiKey||_._config.apiKey,notifier:_._notifier,events:[s]},function(pe){return y(pe,s)})})},o})(),Pl=function(o,c){var l=new Error(`Invalid configuration
|
|
1
|
+
import{b as Ia}from"./chunk-XWPPBOGF.js";import{$ as ga,A as ia,Aa as Ca,B as C,Ba as Oa,C as X,Ca as Ta,D as aa,E as Ne,F as Wr,G as vt,H as Nt,I as Ve,Ia as $o,J as sa,Ja as Da,K as lt,Ka as sn,L as qe,La as _t,M as ca,Ma as Bt,N as Yr,Na as lr,O as De,Oa as cn,P as Do,Pa as Vt,Q as la,Qa as ln,R as Lt,Ra as $a,S as Mt,Sa as Ra,T as ua,Ta as ja,U as zr,Ua as un,V as fa,Va as Fa,W as da,Wa as Aa,X as ma,Xa as Na,Y as pa,Z as ha,_ as wt,a as Te,aa as oe,b as ir,ba as Ht,c as Qi,ca as ya,d as Je,da as va,e as Be,ea as Kr,f as yt,fa as Jr,g as Xi,ga as wa,h as Zi,ha as Ie,i as ea,ia as ba,j as xo,ja as _a,k as At,ka as Io,l as ar,la as Sa,m as ct,ma as Ea,n as ta,na as ka,o as Vr,oa as Qr,p as Po,pa as Xr,q as sr,qa as Zr,r as Co,ra as xa,s as ra,sa as en,t as na,ta as tn,u as Oo,ua as Pa,v as oa,va as rn,w as To,wa as nn,x as qr,xa as bt,y as Gr,ya as Ut,z as cr,za as on}from"./chunk-GJXINXSU.js";import{a as Vi}from"./chunk-KRZABRYT.js";import{a as La}from"./chunk-RKDZGK5K.js";import{b as qi,c as Gi,d as Br,g as Wi,i as Yi,j as zi,k as Ki}from"./chunk-RSRYC5ZF.js";import{a as Ru,b as Ji,d as ju}from"./chunk-YVQXEPHY.js";import{a as fn}from"./chunk-FKIVKNOV.js";import{a as an,b as Ro,c as jo}from"./chunk-S6B2ADVR.js";import{c as Bi}from"./chunk-F3TMLDLC.js";import{Aa as Tu,Ba as Du,Da as Iu,Ea as Ni,Fa as Li,Ga as $u,fa as Oe,m as Di,n as _e,za as Ou}from"./chunk-G4OQABDT.js";import{B as Ai,l as $i,m as He,p as Ft,s as Ri,u as ji,x as Fi}from"./chunk-ANBOLDON.js";import{b as L}from"./chunk-HOSFU6UP.js";import{b as Ti}from"./chunk-5C7HDTHJ.js";import{A as Ke,D as he,O as Mi,a as Mr,u as ee,v as z,w as ne,y as ot,z as it}from"./chunk-NTRAWIEJ.js";import{d as T,g as Hr}from"./chunk-TPCG6DCA.js";import{a as Fu}from"./chunk-XVUHUA36.js";import{b as Cu}from"./chunk-TOLPNBZK.js";import{$ as xi,Bb as Ii,Ca as So,Ea as Nr,Fb as Ue,Ga as Ci,Ha as Oi,Hb as ae,Jb as at,Ka as Eo,Mb as V,Nb as Hi,Oa as ko,Ob as st,Pb as Ui,Qb as Z,Rb as Se,Ta as re,V as Fr,Wa as or,ma as ke,na as Pi,pa as Ar,qa as _o,qb as Lr,ua as le,wa as nr,ya as Me}from"./chunk-7FQFEB33.js";import{u as J}from"./chunk-A4SBXDZB.js";import{s as Ur}from"./chunk-S5IFJ737.js";import{d as R,f as A,g as be,i as bo,j as jt,k as Ei,q as ki}from"./chunk-773TIA5M.js";import{a as te,c as we,e as fe,g as p}from"./chunk-VKWPEFWQ.js";var is=we((os,Ho)=>{p();(function(e){if(typeof os=="object"&&typeof Ho<"u")Ho.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.bugsnag=e()}})(function(){var e,t,r,n=(function(){function o(l,s,f,y){y===void 0&&(y=new Date),this.type=f,this.message=l,this.metadata=s,this.timestamp=y}var c=o.prototype;return c.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},o})(),i=n,a=["navigation","request","process","log","user","state","error","manual"],u=function(o,c,l){for(var s=l,f=0,y=o.length;f<y;f++)s=c(s,o[f],f,o);return s},d=function(o,c){return u(o,function(l,s,f,y){return c(s,f,y)?l.concat(s):l},[])},m=function(o,c){return u(o,function(l,s,f,y){return l===!0||s===c},!1)},h=function(o){return Object.prototype.toString.call(o)==="[object Array]"},g=!{toString:null}.propertyIsEnumerable("toString"),w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(o){var c=[],l;for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&c.push(l);if(!g)return c;for(var s=0,f=w.length;s<f;s++)Object.prototype.hasOwnProperty.call(o,w[s])&&c.push(w[s]);return c},S=function(o,c){return o===void 0&&(o=1),c===void 0&&(c=1/0),function(l){return typeof l=="number"&&parseInt(""+l,10)===l&&l>=o&&l<=c}},E=function(o){return typeof o=="function"||h(o)&&d(o,function(c){return typeof c=="function"}).length===o.length},x=function(o){return typeof o=="string"&&!!o.length},O={},k=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};O.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:x},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||x(o)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||x(o)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(o){return o===!0||o===!1}},enabledErrorTypes:{defaultValue:function(){return k()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(o){if(typeof o!="object"||!o)return!1;var c=v(o),l=v(k());return!(d(c,function(s){return m(l,s)}).length<c.length||d(v(o),function(s){return typeof o[s]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:E},endpoints:{defaultValue:function(o){return typeof o>"u"?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(o){return o&&typeof o=="object"&&x(o.notify)&&x(o.sessions)&&d(v(o),function(c){return!m(["notify","sessions"],c)}).length===0}},autoTrackSessions:{defaultValue:function(o){return!0},message:"should be true|false",validate:function(o){return o===!0||o===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(o){return o===null||h(o)&&d(o,function(c){return typeof c=="string"}).length===o.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(o){return typeof o=="string"&&o.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(o){return S(0,100)(o)}},enabledBreadcrumbTypes:{defaultValue:function(){return a},message:"should be null or a list of available breadcrumb types ("+a.join(",")+")",validate:function(o){return o===null||h(o)&&u(o,function(c,l){return c===!1?c:m(a,l)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(o){return o===void 0||typeof o=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(o){return o===null||o&&u(v(o),function(c,l){return c&&m(["id","email","name"],l)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(o){return typeof o=="object"&&o!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(o){return!o||o&&u(["debug","info","warn","error"],function(c,l){return c&&typeof o[l]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(o){return h(o)&&o.length===d(o,function(c){return typeof c=="string"||c&&typeof c.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(o){return h(o)&&o.length===d(o,function(c){return c&&typeof c=="object"&&typeof c.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(o){return h(o)&&o.length===d(o,function(c){return c&&typeof c=="object"&&typeof c.name=="string"}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(o){return o===!0||o===!1}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(o){return o===!0||o===!1}}};var P=Ou(),b=function(o){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o[s]=l[s])}return o},D=function(o,c){return u(o,function(l,s,f,y){return l.concat(c(s,f,y))},[])},j=function(o,c,l,s){var f=s&&s.redactedKeys?s.redactedKeys:[],y=s&&s.redactedPaths?s.redactedPaths:[];return JSON.stringify(Pt(o,f,y),c,l)},B=20,N=25e3,W=8,H="...";function F(o){return o instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(o))}function G(o){return"[Throws: "+(o?o.message:"?")+"]"}function K(o,c){for(var l=0,s=o.length;l<s;l++)if(o[l]===c)return!0;return!1}function q(o,c){for(var l=0,s=o.length;l<s;l++)if(c.indexOf(o[l])===0)return!0;return!1}function se(o,c){for(var l=0,s=o.length;l<s;l++)if(typeof o[l]=="string"&&o[l].toLowerCase()===c.toLowerCase()||o[l]&&typeof o[l].test=="function"&&o[l].test(c))return!0;return!1}function Re(o){return Object.prototype.toString.call(o)==="[object Array]"}function We(o,c){try{return o[c]}catch(l){return G(l)}}function Pt(o,c,l){var s=[],f=0;function y(_,I){function $(){return I.length>W&&f>N}if(f++,I.length>B||$())return H;if(_===null||typeof _!="object")return _;if(K(s,_))return"[Circular]";if(s.push(_),typeof _.toJSON=="function")try{f--;var U=y(_.toJSON(),I);return s.pop(),U}catch(Rt){return G(Rt)}var Y=F(_);if(Y){f--;var ue=y({name:_.name,message:_.message},I);return s.pop(),ue}if(Re(_)){for(var pe=[],nt=0,Ae=_.length;nt<Ae;nt++){if($()){pe.push(H);break}pe.push(y(_[nt],I.concat("[]")))}return s.pop(),pe}var $t={};try{for(var ze in _)if(Object.prototype.hasOwnProperty.call(_,ze)){if(q(l,I.join("."))&&se(c,ze)){$t[ze]="[REDACTED]";continue}if($()){$t[ze]=H;break}$t[ze]=y(We(_,ze),I.concat(ze))}}catch{}return s.pop(),$t}return y(o,[])}function Ze(o,c,l,s){if(typeof l=="string"){s===void 0?s=null:s!==null&&typeof s!="string"&&(s=j(s));var f=c[l];if(typeof f=="number"){o[f]={name:l,variant:s};return}o.push({name:l,variant:s}),c[l]=o.length-1}}function ht(o,c,l){if(h(c)){for(var s=0;s<c.length;++s){var f=c[s];f===null||typeof f!="object"||Ze(o,l,f.name,f.variant)}return o}}function ie(o){return D(d(o,Boolean),function(c){var l=c.name,s=c.variant,f={featureFlag:l};return typeof s=="string"&&(f.variant=s),f})}function ge(o,c,l){var s=c[l];typeof s=="number"&&(o[s]=null,delete c[l])}var je={add:Ze,clear:ge,merge:ht,toEventApi:ie},et=function(o){return!!o&&(!!o.stack||!!o.stacktrace||!!o["opera#sourceloc"])&&typeof(o.stack||o.stacktrace||o["opera#sourceloc"])=="string"&&o.stack!==o.name+": "+o.message},Ye=Tu(),no=function(o,c,l,s){var f;if(c){var y;if(l===null)return kr(o,c);typeof l=="object"&&(y=l),typeof l=="string"&&(y=(f={},f[l]=s,f)),y&&(c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]||(o[c]={}),o[c]=b({},o[c],y)))}},Er=function(o,c,l){if(typeof c=="string"){if(!l)return o[c];if(o[c])return o[c][l]}},kr=function(o,c,l){if(typeof c=="string"){if(!l){delete o[c];return}c==="__proto__"||c==="constructor"||c==="prototype"||o[c]&&delete o[c][l]}},Pe={add:no,get:Er,clear:kr};function Ct(){return Ct=Object.assign?Object.assign.bind():function(o){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var s in l)({}).hasOwnProperty.call(l,s)&&(o[s]=l[s])}return o},Ct.apply(null,arguments)}var Xt=Du(),Le=(function(){function o(l,s,f,y,_){f===void 0&&(f=[]),y===void 0&&(y=M()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=_,this._handledState=y,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.response={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this._groupingDiscriminator=void 0,this.errors=[Ce(l,s,o.__type,f)]}var c=o.prototype;return c.addMetadata=function(s,f,y){return Pe.add(this._metadata,s,f,y)},c.setTraceCorrelation=function(s,f){typeof s=="string"&&(this._correlation=Ct({traceId:s},typeof f=="string"?{spanId:f}:{}))},c.getGroupingDiscriminator=function(){return this._groupingDiscriminator},c.setGroupingDiscriminator=function(s){var f=this._groupingDiscriminator;return(typeof s=="string"||s===null||s===void 0)&&(this._groupingDiscriminator=s),f},c.getMetadata=function(s,f){return Pe.get(this._metadata,s,f)},c.clearMetadata=function(s,f){return Pe.clear(this._metadata,s,f)},c.addFeatureFlag=function(s,f){f===void 0&&(f=null),je.add(this._features,this._featuresIndex,s,f)},c.addFeatureFlags=function(s){je.merge(this._features,s,this._featuresIndex)},c.getFeatureFlags=function(){return je.toEventApi(this._features)},c.clearFeatureFlag=function(s){je.clear(this._features,this._featuresIndex,s)},c.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c.toJSON=function(){return{payloadVersion:"4",exceptions:D(this.errors,function(s){return b({},s,{message:s.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,response:this.response,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,groupingDiscriminator:this._groupingDiscriminator,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},o})(),xr=function(o){var c={file:o.fileName,method:oo(o.functionName),lineNumber:o.lineNumber,columnNumber:o.columnNumber,code:void 0,inProject:void 0};return c.lineNumber>-1&&!c.file&&!c.method&&(c.file="global code"),c},oo=function(o){return/^global code$/i.test(o)?"global code":o},M=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},ce=function(o){return typeof o=="string"?o:""};function Ce(o,c,l,s){return{errorClass:ce(o),errorMessage:ce(c),type:l,stacktrace:u(s,function(f,y){var _=xr(y);try{return JSON.stringify(_)==="{}"?f:f.concat(_)}catch{return f}},[])}}function tt(o){return o.cause?[o].concat(tt(o.cause)):[o]}Le.getStacktrace=function(o,c,l){if(et(o))return P.parse(o).slice(c);try{return d(Xt.backtrace(),function(s){return(s.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+l)}catch{return[]}},Le.create=function(o,c,l,s,f,y){f===void 0&&(f=0);var _=Tt(o,c,s,y),I=_[0],$=_[1],U;try{var Y=Le.getStacktrace(I,$>0?1+$+f:0,1+f);U=new Le(I.name,I.message,Y,l,o)}catch{U=new Le(I.name,I.message,[],l,o)}if(I.name==="InvalidError"&&U.addMetadata(""+s,"non-error parameter",Ot(o)),I.cause){var ue,pe=tt(I).slice(1),nt=D(pe,function(Ae){var $t=Ye(Ae)&&et(Ae)?P.parse(Ae):[],ze=Tt(Ae,!0,"error cause"),Rt=ze[0];return Rt.name==="InvalidError"&&U.addMetadata("error cause",Ot(Ae)),Ce(Rt.name,Rt.message,Le.__type,$t)});(ue=U.errors).push.apply(ue,nt)}return U};var Ot=function(o){return o===null?"null":o===void 0?"undefined":o},Tt=function(o,c,l,s){var f,y=0,_=function(I){var $=l==="error cause"?"was":"received";s&&s.warn(l+" "+$+' a non-error: "'+I+'"');var U=new Error(l+" "+$+' a non-error. See "'+l+'" tab for more detail.');return U.name="InvalidError",U};if(!c)Ye(o)?f=o:(f=_(typeof o),y+=2);else switch(typeof o){case"string":case"number":case"boolean":f=new Error(String(o)),y+=1;break;case"function":f=_("function"),y+=2;break;case"object":o!==null&&Ye(o)?f=o:o!==null&&io(o)?(f=new Error(o.message||o.errorMessage),f.name=o.name||o.errorClass,y+=1):(f=_(o===null?"null":"unsupported object"),y+=2);break;default:f=_("nothing"),y+=2}if(!et(f))try{throw f}catch(I){et(I)&&(f=I,y=1)}return[f,y]};Le.__type="browserjs";var io=function(o){return(typeof o.name=="string"||typeof o.errorClass=="string")&&(typeof o.message=="string"||typeof o.errorMessage=="string")},Dt=Le,ai=function(o,c,l){var s=0,f=function(){if(s>=o.length)return l(null,!0);c(o[s],function(y,_){if(y)return l(y);if(_===!1)return l(null,!1);s++,f()})};f()},Pr=function(o,c,l,s){var f=function(y,_){if(typeof y!="function")return _(null);try{if(y.length!==2){var I=y(c);return I&&typeof I.then=="function"?I.then(function($){return setTimeout(function(){return _(null,$)})},function($){setTimeout(function(){return l($),_(null,!0)})}):_(null,I)}y(c,function($,U){if($)return l($),_(null);_(null,U)})}catch($){l($),_(null)}};ai(o,f,s)},Zt=function(o,c,l,s){for(var f=!1,y=o.slice();!f&&y.length;)try{f=y.pop()(c)===!1}catch(_){s.error("Error occurred in "+l+" callback, continuing anyway\u2026"),s.error(_)}return f},Cr=function(c,l){var s="000000000"+c;return s.substr(s.length-l)},fl=te("os");function dl(){try{return fl.hostname()}catch{return process.env._CLUSTER_NETWORK_NAME_||process.env.COMPUTERNAME||"hostname"}}var si=2,ml=Cr(process.pid.toString(36),si),ci=dl(),pl=ci.length,hl=Cr(ci.split("").reduce(function(o,c){return+o+c.charCodeAt(0)},+pl+36).toString(36),si),li=function(){return ml+hl},gl=function(c){return typeof c=="string"&&/^c[a-z0-9]{20,32}$/.test(c)},er=0,ao=4,Or=36,ui=Math.pow(Or,ao);function fi(){return Cr((Math.random()*ui<<0).toString(Or),ao)}function yl(){return er=er<ui?er:0,er++,er-1}function so(){var o="c",c=new Date().getTime().toString(Or),l=Cr(yl().toString(Or),ao),s=li(),f=fi()+fi();return o+c+l+s+f}so.fingerprint=li,so.isCuid=gl;var vl=so,wl=(function(){function o(){this.id=vl(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var c=o.prototype;return c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},c._track=function(s){this[s._handledState.unhandled?"_unhandled":"_handled"]+=1},o})(),co=wl,bl=je.add,_l=je.clear,lo=je.merge,Sl="00000",El="https://notify.bugsnag.smartbear.com",kl="https://sessions.bugsnag.smartbear.com",rt=function(){},xl=(function(){function o(l,s,f,y){var _=this;s===void 0&&(s=O.schema),f===void 0&&(f=[]),this._notifier=y,this._config={},this._schema=s,this._delivery={sendSession:rt,sendEvent:rt},this._logger={debug:rt,info:rt,warn:rt,error:rt},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._groupingDiscriminator=void 0,this._cbs={e:[],s:[],sp:[],b:[]},this.Client=o,this.Event=Dt,this.Breadcrumb=i,this.Session=co,this._config=this._configure(l,f),D(f.concat(this._config.plugins),function(U){U&&_._loadPlugin(U)}),this._depth=1;var I=this,$=this.notify;this.notify=function(){return $.apply(I,arguments)}}var c=o.prototype;return c.addMetadata=function(s,f,y){return Pe.add(this._metadata,s,f,y)},c.getMetadata=function(s,f){return Pe.get(this._metadata,s,f)},c.clearMetadata=function(s,f){return Pe.clear(this._metadata,s,f)},c.addFeatureFlag=function(s,f){f===void 0&&(f=null),bl(this._features,this._featuresIndex,s,f)},c.addFeatureFlags=function(s){lo(this._features,s,this._featuresIndex)},c.clearFeatureFlag=function(s){_l(this._features,this._featuresIndex,s)},c.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},c.getContext=function(){return this._context},c.setContext=function(s){this._context=s},c.getGroupingDiscriminator=function(){return this._groupingDiscriminator},c.setGroupingDiscriminator=function(s){var f=this._groupingDiscriminator;return(typeof s=="string"||s===null||s===void 0)&&(this._groupingDiscriminator=s),f},c._configure=function(s,f){var y=u(f,function(U,Y){return Y&&Y.configSchema?b({},U,Y.configSchema):U},this._schema);s.endpoints||(s.sendPayloadChecksums="sendPayloadChecksums"in s?s.sendPayloadChecksums:!0);var _=u(v(y),function(U,Y){var ue=y[Y].defaultValue(s[Y]);if(s[Y]!==void 0){var pe=y[Y].validate(s[Y]);pe?y[Y].allowPartialObject?U.config[Y]=b(ue,s[Y]):U.config[Y]=s[Y]:(U.errors[Y]=y[Y].message,U.config[Y]=ue)}else U.config[Y]=ue;return U},{errors:{},config:{}}),I=_.errors,$=_.config;if(y.apiKey){if(!$.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test($.apiKey)||(I.apiKey="should be a string of 32 hexadecimal characters"),s.endpoints===void 0&&$.apiKey.indexOf(Sl)===0&&($.endpoints={notify:El,sessions:kl})}return this._metadata=b({},$.metadata),lo(this._features,$.featureFlags,this._featuresIndex),this._user=b({},$.user),this._context=$.context,$.logger&&(this._logger=$.logger),$.onError&&(this._cbs.e=this._cbs.e.concat($.onError)),$.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat($.onBreadcrumb)),$.onSession&&(this._cbs.s=this._cbs.s.concat($.onSession)),v(I).length&&this._logger.warn(Pl(I,s)),$},c.getUser=function(){return this._user},c.setUser=function(s,f,y){this._user={id:s,email:f,name:y}},c._loadPlugin=function(s){var f=s.load(this);s.name&&(this._plugins["~"+s.name+"~"]=f)},c.getPlugin=function(s){return this._plugins["~"+s+"~"]},c._setDelivery=function(s){this._delivery=s(this)},c.startSession=function(){var s=new co;s.app.releaseStage=this._config.releaseStage,s.app.version=this._config.appVersion,s.app.type=this._config.appType,s._user=b({},this._user);var f=Zt(this._cbs.s,s,"onSession",this._logger);return f?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,s)},c.addOnError=function(s,f){f===void 0&&(f=!1),this._cbs.e[f?"unshift":"push"](s)},c.removeOnError=function(s){this._cbs.e=d(this._cbs.e,function(f){return f!==s})},c._addOnSessionPayload=function(s){this._cbs.sp.push(s)},c.addOnSession=function(s){this._cbs.s.push(s)},c.removeOnSession=function(s){this._cbs.s=d(this._cbs.s,function(f){return f!==s})},c.addOnBreadcrumb=function(s,f){f===void 0&&(f=!1),this._cbs.b[f?"unshift":"push"](s)},c.removeOnBreadcrumb=function(s){this._cbs.b=d(this._cbs.b,function(f){return f!==s})},c.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},c.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},c.leaveBreadcrumb=function(s,f,y){if(s=typeof s=="string"?s:"",y=typeof y=="string"&&m(a,y)?y:"manual",f=typeof f=="object"&&f!==null?f:{},!!s){var _=new i(s,f,y),I=Zt(this._cbs.b,_,"onBreadcrumb",this._logger);if(I){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(_),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},c._isBreadcrumbTypeEnabled=function(s){var f=this._config.enabledBreadcrumbTypes;return f===null||m(f,s)},c.notify=function(s,f,y){y===void 0&&(y=rt);var _=Dt.create(s,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(_,f,y)},c._notify=function(s,f,y){var _=this;if(y===void 0&&(y=rt),s.app=b({},s.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),s.context=s.context||this._context,s._metadata=b({},s._metadata,this._metadata),s._user=b({},s._user,this._user),s.breadcrumbs=this._breadcrumbs.slice(),s.setGroupingDiscriminator(this._groupingDiscriminator),lo(s._features,this._features,s._featuresIndex),this._config.enabledReleaseStages!==null&&!m(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),y(null,s);var I=s.severity,$=function(Y){_._logger.error("Error occurred in onError callback, continuing anyway\u2026"),_._logger.error(Y)},U=[].concat(this._cbs.e).concat(f);Pr(U,s,$,function(Y,ue){if(Y&&$(Y),!ue)return _._logger.debug("Event not sent due to onError callback"),y(null,s);_._isBreadcrumbTypeEnabled("error")&&o.prototype.leaveBreadcrumb.call(_,s.errors[0].errorClass,{errorClass:s.errors[0].errorClass,errorMessage:s.errors[0].errorMessage,severity:s.severity},"error"),I!==s.severity&&(s._handledState.severityReason={type:"userCallbackSetSeverity"}),s.unhandled!==s._handledState.unhandled&&(s._handledState.severityReason.unhandledOverridden=!0,s._handledState.unhandled=s.unhandled),_._session&&(_._session._track(s),s._session=_._session),_._delivery.sendEvent({apiKey:s.apiKey||_._config.apiKey,notifier:_._notifier,events:[s]},function(pe){return y(pe,s)})})},o})(),Pl=function(o,c){var l=new Error(`Invalid configuration
|
|
2
2
|
`+D(v(o),function(s){return" - "+s+" "+o[s]+", got "+Cl(c[s])}).join(`
|
|
3
3
|
|
|
4
4
|
`));return l},Cl=function(o){switch(typeof o){case"string":case"number":case"object":return JSON.stringify(o);default:return String(o)}},Tr=xl,Dr={},di=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request","events.[].response"];Dr.event=function(o,c){var l=j(o,null,null,{redactedPaths:di,redactedKeys:c});return l.length>1e6&&(o.events[0]._metadata={notifier:`WARNING!
|
|
@@ -41,7 +41,7 @@ Some functionality and backlinks might not work as expected until these are crea
|
|
|
41
41
|
This build is missing ${q.length} route${q.length>1?"s":""}. For more details, run \`${Re} shopify hydrogen check routes\`.
|
|
42
42
|
`)}}return!g&&!u&&hn(mn(O)),{async close(){K?.removeAllListeners("close"),K?.kill("SIGINT");let q=[];"close"in W&&q.push(W.close()),"close"in F&&q.push(F.close()),await Promise.allSettled(q),(N?.state==="pending"||H?.state==="pending")&&(N?.promise.catch(()=>{}),N?.reject(),H?.promise.catch(()=>{}),H?.reject(),await new Promise(se=>setTimeout(se,500)))}}}p();var Ka=fe(Te(),1),wn=class e extends L{static descriptionWithMarkdown="Checks whether your Hydrogen app includes a set of standard Shopify routes.";static description="Returns diagnostic information about a Hydrogen storefront.";static flags={...C.path};static args={resource:Ka.Args.string({name:"resource",description:"The resource to check. Currently only 'routes' is supported.",required:!0,options:["routes"]})};async run(){let{flags:t,args:r}=await this.parse(e),n=t.path?A(t.path):process.cwd();if(r.resource==="routes")await Qu({directory:n});else throw new Error("Invalid command argument.")}};async function Qu({directory:e}){let t=await lt(e);Ha(pn(t)),hn(mn(t))}p();var bn=fe(Te(),1);var _n=class e extends L{static descriptionWithMarkdown="Automatically generates GraphQL types for your project\u2019s Storefront API queries.";static description="Generate types for the Storefront API queries found in your project.";static flags={...C.path,"codegen-config-path":bn.Flags.string({description:"Specify a path to a codegen configuration file. Defaults to `<root>/codegen.ts` if it exists.",required:!1}),"force-sfapi-version":bn.Flags.string({description:"Force generating Storefront API types for a specific version instead of using the one provided in Hydrogen. A token can also be provided with this format: `<version>:<token>`.",hidden:!0}),watch:bn.Flags.boolean({description:"Watch the project for changes to update types on file save.",required:!1,default:!1})};async run(){let{flags:t}=await this.parse(e),r=t.path?A(t.path):process.cwd();await Xu({...X(t),directory:r})}};async function Xu({directory:e,codegenConfigPath:t,forceSfapiVersion:r,watch:n}){let{root:i}=Ve(e),a=await lt(i);console.log("");let u=await ur({...a,configFilePath:t,forceSfapiVersion:r,watch:n});n||z({headline:"Generated types for GraphQL:",body:{list:{items:Object.entries(u).map(([d,m])=>d+`
|
|
43
43
|
`+m.map(h=>J.dim(`- ${h}`)).join(`
|
|
44
|
-
`))}}})}p();var Xa=fe(Te(),1);p();import{Session as Zu}from"node:inspector";async function Ja(e){let{createMiniOxygen:t}=await vt("@shopify/mini-oxygen/node",e).catch($o),r=t({script:"export default {}",modules:!0,log:()=>{}});return{async run(n,i){let[a]=await Promise.all([ke(n),r.ready()]),u=await ef();await r.reload({script:a});let d=await u();return tf(d,n+".map",i)},async close(){await r.dispose()}}}function ef(){let e=new Zu;return e.connect(),new Promise(t=>{e.post("Profiler.enable",()=>{e.post("Profiler.start",()=>{t(()=>new Promise((r,n)=>{e.post("Profiler.stop",(i,{profile:a})=>{if(e.disconnect(),i)return n(i);r(a)})}))})})})}async function tf(e,t,r){let{SourceMapConsumer:n}=await import("./source-map-
|
|
44
|
+
`))}}})}p();var Xa=fe(Te(),1);p();import{Session as Zu}from"node:inspector";async function Ja(e){let{createMiniOxygen:t}=await vt("@shopify/mini-oxygen/node",e).catch($o),r=t({script:"export default {}",modules:!0,log:()=>{}});return{async run(n,i){let[a]=await Promise.all([ke(n),r.ready()]),u=await ef();await r.reload({script:a});let d=await u();return tf(d,n+".map",i)},async close(){await r.dispose()}}}function ef(){let e=new Zu;return e.connect(),new Promise(t=>{e.post("Profiler.enable",()=>{e.post("Profiler.start",()=>{t(()=>new Promise((r,n)=>{e.post("Profiler.stop",(i,{profile:a})=>{if(e.disconnect(),i)return n(i);r(a)})}))})})})}async function tf(e,t,r){let{SourceMapConsumer:n}=await import("./source-map-E7FCCJL7.js"),i=JSON.parse(await ke(t)),a=await new n(i,"file://"+t),u=new Set,d=0,m=e.endTime-e.startTime,h=e.samples?.length?m/e.samples.length:0;for(let g of e.nodes)(g.callFrame.url==="<script>"||u.has(g.id))&&(u.add(g.id),g.children?.forEach(w=>u.add(w))),u.has(g.id)?(rf(g,a),g.callFrame.url==="<script>"&&!g.callFrame.functionName&&!g.callFrame.lineNumber&&!g.callFrame.columnNumber&&(g.callFrame.url=r??"",g.callFrame.functionName="(top-level app code)"),d+=Math.round((g.hitCount??0)*h*1e3)/1e3):nf(g);return a.destroy(),{profile:e,totalTimeMs:m/1e3,totalScriptTimeMs:d/1e3}}function rf(e,t){let r=t.originalPositionFor({line:e.callFrame.lineNumber+1,column:e.callFrame.columnNumber+1});e.callFrame.url=r.source||e.callFrame.url,e.callFrame.functionName=r.name||e.callFrame.functionName,e.callFrame.lineNumber=r.line?r.line-1:e.callFrame.lineNumber,e.callFrame.columnNumber=r.column??e.callFrame.columnNumber}function nf(e){Object.assign(e,{children:[],callFrame:{functionName:"(profiler)",scriptId:"0",url:"",lineNumber:-1,columnNumber:-1}})}var Qa="startup.cpuprofile",Sn=class e extends L{static descriptionWithMarkdown="Builds the app and runs the resulting code to profile the server startup time, watching for changes. This command can be used to [debug slow app startup times](https://shopify.dev/docs/custom-storefronts/hydrogen/debugging/cpu-startup) that cause failed deployments in Oxygen.\n\n The profiling results are written to a `.cpuprofile` file that can be viewed with certain tools such as [Flame Chart Visualizer for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-js-profile-flame).";static description="Builds and profiles the server startup time the app.";static flags={...C.path,...C.entry,output:Xa.Flags.string({description:`Specify a path to generate the profile file. Defaults to "${Qa}".`,default:Qa,required:!1})};async run(){let{flags:t}=await this.parse(e),r=t.path?A(t.path):process.cwd(),{close:n}=await of({...X(t),directory:r,output:A(r,t.output)});dt(async()=>{await n()})}};async function of({directory:e,entry:t,output:r}){process.env.NODE_ENV||(process.env.NODE_ENV="production"),Ht({workerReload:!1});let{buildPath:n,buildPathWorkerFile:i}=Ve(e);V(`\u23F3\uFE0F Starting profiler for CPU startup... Profile will be written to:
|
|
45
45
|
`+J.dim(r));let a=0,u,d=await Ja(e),m={onServerBuildStart(){a>0&&process.stdout.write(Lr.eraseLines(4)),V(`
|
|
46
46
|
#${++a} Building and profiling...`)},async onServerBuildFinish(){let{profile:v,totalScriptTimeMs:S}=await d.run(i,u);process.stdout.write(Lr.eraseLines(2)),V(`#${a} Total time: ${S.toLocaleString()} ms
|
|
47
47
|
${J.dim(r)}`),await le(r,JSON.stringify(v,null,2)),V(`
|
|
@@ -249,7 +249,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
`;async function al(e){let{hydrogenStorefronts:t}=await Lt(lm,e);return t.map(r=>({...r,parsedId:Mt(r.id)}))}var Wn=class e extends L{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...C.path};async run(){let{flags:t}=await this.parse(e);await um(t)}};async function um({path:e=process.cwd()}){let{session:t}=await Ie(e),r=await al(t);r.length>0?(Se(),V(mm({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:n,id:i,productionUrl:a,title:u})=>{Se(),V(ae`${J.whiteBright(u)} ${J.dim(`(id: ${Mt(i)})`)}`.value),a&&V(ae` ${J.whiteBright(a)}`.value),n&&V(ae` ${J.dim(dm(n))}`.value)})):ee({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await oe(e)} link\` or visit ${js(t)}`]})}var fm=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function dm(e){let t="";if(!e)return t;if(t+=fm.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var mm=({storefronts:e,shop:t})=>Fr(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);p();var Yn=class e extends L{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...C.path,...C.shop};async run(){let{flags:t}=await this.parse(e);await pm(t)}};async function pm({path:e=process.cwd(),shop:t}){Se(),ya(!0);let{config:r}=await Ie(e,t??!0);ba(r)}p();var zn=class e extends L{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...C.path};async run(){let{flags:t}=await this.parse(e);await hm(t)}};async function hm({path:e=process.cwd()}){Se(),await wa(e),z({body:"You are logged out from Shopify."})}p();var ii=fe(Te(),1);p();async function sl(e){let{startWorkerdServer:t}=await import("./workerd-
|
|
252
|
+
`;async function al(e){let{hydrogenStorefronts:t}=await Lt(lm,e);return t.map(r=>({...r,parsedId:Mt(r.id)}))}var Wn=class e extends L{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...C.path};async run(){let{flags:t}=await this.parse(e);await um(t)}};async function um({path:e=process.cwd()}){let{session:t}=await Ie(e),r=await al(t);r.length>0?(Se(),V(mm({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:n,id:i,productionUrl:a,title:u})=>{Se(),V(ae`${J.whiteBright(u)} ${J.dim(`(id: ${Mt(i)})`)}`.value),a&&V(ae` ${J.whiteBright(a)}`.value),n&&V(ae` ${J.dim(dm(n))}`.value)})):ee({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await oe(e)} link\` or visit ${js(t)}`]})}var fm=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function dm(e){let t="";if(!e)return t;if(t+=fm.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var mm=({storefronts:e,shop:t})=>Fr(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);p();var Yn=class e extends L{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...C.path,...C.shop};async run(){let{flags:t}=await this.parse(e);await pm(t)}};async function pm({path:e=process.cwd(),shop:t}){Se(),ya(!0);let{config:r}=await Ie(e,t??!0);ba(r)}p();var zn=class e extends L{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...C.path};async run(){let{flags:t}=await this.parse(e);await hm(t)}};async function hm({path:e=process.cwd()}){Se(),await wa(e),z({body:"You are logged out from Shopify."})}p();var ii=fe(Te(),1);p();async function sl(e){let{startWorkerdServer:t}=await import("./workerd-QOTT6UCO.js");return t(e)}var Kn=class e extends L{static descriptionWithMarkdown="Runs a server in your local development environment that serves your Hydrogen app's production build. Requires running the [build](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-build) command first.";static description="Runs a Hydrogen storefront in an Oxygen worker for production.";static flags={...C.path,...C.port,...C.env,...C.envBranch,...C.envFile,...C.inspectorPort,...C.debug,...C.verbose,build:ii.Flags.boolean({description:"Builds the app before starting the preview server."}),watch:ii.Flags.boolean({description:"Watches for changes and rebuilds the project.",dependsOn:["build"]}),...Ne(C.entry,{entry:{dependsOn:["build"]}}),...Ne(C.codegen,{codegen:{dependsOn:["build"]}})};async run(){let{flags:t}=await this.parse(e),r=t.path?A(t.path):process.cwd(),{close:n}=await gm({...X(t),directory:r});dt(async()=>{await n()})}};async function gm({port:e,directory:t,env:r,envBranch:n,inspectorPort:i,debug:a,verbose:u,build:d=!1,watch:m=!1,codegen:h=!1,codegenConfigPath:g,entry:w,envFile:v}){process.env.NODE_ENV||(process.env.NODE_ENV=m?"development":"production"),u&&Kr(),Jr()||Ht();let{root:S,buildPath:E,buildPathWorkerFile:x,buildPathClient:O}=Ve(t),k=await Nt(S);if(k)throw new T(qe);let P,b=dr(),j=d?await St({...{directory:S,entry:w,disableRouteWarning:!1,lockfileCheck:!1,sourcemap:!0,bundleStats:!1,useCodegen:h,codegenConfigPath:g},watch:m,async onServerBuildFinish(){b.state==="pending"?b.resolve():V("\u{1F3D7}\uFE0F Project rebuilt. Reloading server..."),await P?.reload()}}):b.resolve();k||(x=(await De(S).catch(()=>null))?.serverOutFile??R(E,"server","index.js"));let{shop:B,storefront:N}=await zr(S),W=!!B&&!!N?.id,{allVariables:H,logInjectedVariables:F}=await ln({root:S,fetchRemote:W,envBranch:n,envHandle:r,envFile:v});e||(e=await yr(cr));let G=await yr(e+100);return await b.promise,F(),P=await sl({root:S,appPort:e,assetsPort:G,env:H,buildPathClient:O,buildPathWorkerFile:x,inspectorPort:i,debug:a,watch:m}),P.showBanner({mode:"preview",headlinePrefix:m?"Watching for changes. ":""}),{async close(){await Promise.allSettled([P.close(),j?.close()])}}}p();var Jn=class e extends L{static description="Scaffold routes and core functionality.";static flags={...C.path,...C.force,...C.markets,...C.shortcut,...Ne(C.installDeps,{"install-deps":{default:!0}})};async run(){let{flags:t}=await this.parse(e),r=t.path?A(t.path):process.cwd();await ym({...X(t),directory:r})}};async function ym(e){let t=new Mr,{rootDirectory:r,appDirectory:n}=await lt(e.directory),i=jt(r),a=oe(),u=Promise.resolve(),d=[{title:"Setting up project",task:async()=>{await u}}],m=e.markets?e.markets:await Gr({abortSignal:t.signal,extraChoices:{none:"Set up later"}}),h=m==="none"?void 0:m,{setupRoutes:g}=Qr(t),w,v=await Xi(".."),[S,E]=await Promise.all([re(R(r,"tsconfig.json")),or("*.d.ts",{cwd:v})]);u=u.then(()=>Promise.all([...E.map(P=>Ar(R(v,P),A(r,P))),Xr({rootDirectory:r,appDirectory:n,typescript:S})])).then(async()=>{w=await g(r,S?"ts":"js",{i18nStrategy:h,overwriteFileDeps:!0})}),h&&(u=u.then(()=>qr(h,{rootDirectory:r})));let x=await Promise.resolve(a),{createShortcut:O,showShortcutBanner:k}=await Zr(t,x,e.shortcut);!h&&!O||(O&&(u=u.then(async()=>{await O()&&(x=wt)}),k()),await he(d),await Ut({location:i,name:i,directory:r},{cliCommand:x,depsInstalled:!0,packageManager:"npm",i18n:h,routes:w}))}p();var cl=fe(Te(),1);var Qn=class e extends L{static descriptionWithMarkdown="Adds support for certain CSS strategies to your project.";static description="Setup CSS strategies for your project.";static flags={...C.path,...C.force,...Ne(C.installDeps,{"install-deps":{default:!0}})};static args={strategy:cl.Args.string({name:"strategy",description:`The CSS strategy to setup. One of ${xo.join()}`,options:xo})};async run(){let{flags:t,args:r}=await this.parse(e),n=t.path?A(t.path):process.cwd();await vm({...X(t),strategy:r.strategy,directory:n})}};async function vm({strategy:e,directory:t,force:r=!1,installDeps:n=!0}){let i=await De(t).catch(()=>null);if(!i)throw new T("No Vite config found. This command is only supported in Vite projects.");let{remixConfig:a}=i,u=e||await na();if(u==="css-modules"||u==="postcss"){z({headline:`Vite works out of the box with ${sr[u]}.`,body:`See the Vite documentation for more information:
|
|
253
253
|
${Co[u]}`});return}let d=await ra(u,a,r);if(!d)return;let{workPromise:m,generatedAssets:h,needsInstallDeps:g}=d,w=[{title:"Updating files",task:async()=>{await m}}],v=!1;if(n&&g){let S=He(a.rootDirectory);w.push({title:"Installing new dependencies",task:async()=>{let E=await S;v=E==="npm"||E==="unknown",await Ft({directory:a.rootDirectory,packageManager:E,args:[]})}})}await he(w),z({headline:`${sr[u]} setup complete.`,body:(h.length>0?`You can now modify CSS configuration in the following files:
|
|
254
254
|
`+h.map(S=>` - ${S}`).join(`
|
|
255
255
|
`)+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as M}from"./chunk-
|
|
1
|
+
import{a as M}from"./chunk-EKVTNWHM.js";import{a as S}from"./chunk-5BKCIDMS.js";import{A as b,B as A,D as C,E as x,Fa as V}from"./chunk-4QTEPWEJ.js";import{a as c}from"./chunk-QDVJJKLB.js";import{b as j,c as E}from"./chunk-OXJBYKMX.js";import{v as y,x as u}from"./chunk-NTRAWIEJ.js";import{d as g,f as o}from"./chunk-TPCG6DCA.js";import{Lb as s,Sb as w,Vb as h}from"./chunk-7FQFEB33.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();m();async function N(f,t){let i=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:f,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:i}))}async function J(f,t={json:!1}){let i=f.errors;if(!i||i.isEmpty()){if(await N(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}y({headline:"App configuration is valid."});return}let n=i.getErrors();if(await N(!1,n),t.json){let d=n.map(({file:p,message:a,path:r,code:e})=>({file:p,message:a,path:r,code:e}));throw s(JSON.stringify({valid:!1,issues:d},null,2)),new o}throw u({headline:"Validation errors found.",body:n.map(d=>`\u2022 ${x(d)}`).join(`
|
|
2
2
|
`)}),new o}var v;async function _(f,t){await c.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:f,cmd_app_validate_file_count:t}))}var l=class extends M{async run(){let{flags:t}=await this.parse(v);await c.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let i;try{i=await b.load(t.path)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let n;try{n=await C(i,t.config)}catch(a){if(a instanceof g&&t.json){await _(1,1);let r=h(w(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o}throw a}let d=A(i,n.file);if(d.length>0){let a=d.map(e=>({file:e.path,message:e.message})),r=new Set(d.map(e=>e.path)).size;throw await _(a.length,r),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new o):(u({headline:"Validation errors found.",body:a.map(e=>`\u2022 ${e.message}`).join(`
|
|
3
3
|
`)}),new o)}let p;try{p=(await V({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0})).app}catch(a){let r=a instanceof g?h(w(a.message)).trim():"";throw r.startsWith("Validation errors in ")&&t.json?(await _(1,1),s(JSON.stringify({valid:!1,issues:[{message:r}]},null,2)),new o):a}return await J(p,{json:t.json}),{app:p}}};v=l;l.summary="Validate your app configuration and extensions.";l.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found.";l.description=v.descriptionWithoutMarkdown();l.flags={...j,...S,...E};var X=l;export{X as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as f,fa as v,ga as A,h as d,k as w,s as m}from"./chunk-
|
|
1
|
+
import{F as f,fa as v,ga as A,h as d,k as w,s as m}from"./chunk-G4OQABDT.js";import{b as l}from"./chunk-HDC5V7RY.js";import{d as p,g as F}from"./chunk-TPCG6DCA.js";import{Fb as g,Hb as h}from"./chunk-7FQFEB33.js";import{j as q}from"./chunk-NNOSZ447.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"supported"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var S=new Map;async function W(t,r,e){let o="Admin",a=await b(r),n=r.storeFqdn,s=$(r);l()==="local"&&(s["x-forwarded-host"]=n,n=new m().host("app"));let i=x(n,a,r);return v({query:t,api:o,addedHeaders:s,url:i,token:r.token,variables:e})}async function E(t){let{query:r,session:e,variables:o,version:a,responseOptions:n,preferredBehaviour:s}=t,i=a??S.get(e.storeFqdn);i??(i=await b(e,s));let u=e.storeFqdn,k=$(e);l()==="local"&&(k["x-forwarded-host"]=u,u=new m().host("app"));let D={url:x(u,i,e),api:"Admin",token:e.token,addedHeaders:k},y;return"refresh"in e&&(y={type:"token_refresh",handler:e.refresh}),A({...D,query:r,variables:o,responseOptions:n,unauthorizedHandler:y,preferredBehaviour:s})}function $(t){return f(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function b(t,r){let o=(await N(t,r)).reverse()[0];return S.set(t.storeFqdn,o),o}async function N(t,r){return(await R(t,r)).filter(o=>o.supported).map(o=>o.handle).sort()}async function R(t,r){try{return(await E({query:V,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof d&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new p(h`Looks like you don't have access to this dev store: (${g.link(o,`https://${t.storeFqdn}`)})`,h`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof d&&(e.response.status===401||e.response.status===404)?new p(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):w(e)?new p(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new F(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function x(t,r,e){let o=r??"unstable";return e&&f(e)?`https://${q}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{W as a,E as b,N as c,R as d,x as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,g as o}from"./chunk-
|
|
1
|
+
import{c,g as o}from"./chunk-VKWPEFWQ.js";var p=c((x,e)=>{"use strict";o();e.exports=(t,s=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=s.indexOf(r+t),n=s.indexOf("--");return i!==-1&&(n===-1||i<n)}});export{p as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{c as oe,e as ie,f as R,g as se}from"./chunk-
|
|
1
|
+
import{c as oe,e as ie,f as R,g as se}from"./chunk-5O43334U.js";import{a as X,c as ee,d as ne,e as te}from"./chunk-LXVORHCQ.js";import{a as Q}from"./chunk-EKVTNWHM.js";import{a as K}from"./chunk-5BKCIDMS.js";import{$ as P,Fa as Z,H as T,K as q,T as I,da as J,g as W}from"./chunk-4QTEPWEJ.js";import{a as H}from"./chunk-QDVJJKLB.js";import{b as G}from"./chunk-OXJBYKMX.js";import{A as M,D as j,I as S,t as U,u as Y,v as A}from"./chunk-NTRAWIEJ.js";import{d as V}from"./chunk-VI34CKV6.js";import{d as h,f as z}from"./chunk-TPCG6DCA.js";import{r as fe}from"./chunk-T6CC5WUU.js";import{Ca as B,Gb as C,L as $,Mb as k,Rb as D,wa as _}from"./chunk-7FQFEB33.js";import{d as E,i as N}from"./chunk-773TIA5M.js";import{e as me,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function ae(e){let n,t;e.bundlePath&&(n=await te(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ne(n,e.bundlePath));let o={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(o.bundleUrl=n),e.appModules.length>0&&(o.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(o);if(!i.appDeploy.appVersion){let a=ge(i.appDeploy.userErrors??[],e.extensionIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],a)}return i.appDeploy.userErrors?.length>0&&(t=i.appDeploy.userErrors.map(a=>a.message).join(", ")),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(a=>a.validationErrors.length>0).map(a=>({uuid:a.registrationUuid,errors:a.validationErrors})),versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:t}}var x=`
|
|
2
2
|
Validation errors`,F=`
|
|
3
3
|
`;function ge(e,n,t,o={}){let i=p=>p.details?.some(b=>b.extension_id)??!1,s=(p,b)=>{let v=p.details?.find(O=>typeof O.extension_id<"u")?.extension_id??"";return Object.values(b).includes(v.toString())},a=p=>{let b=p.on?p.on[0]:void 0;return t.some(v=>v.uid===b?.user_identifier)},[r,d]=I(e,p=>a(p)),[m,c]=I(d,p=>i(p)),[f,l]=I(m,p=>s(p,n));return[...he(c,{version:o.version}),...ye(f,n),...be(l),...we(r,t)]}function he(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function ye(e,n){return e.reduce((t,o)=>{let i=(o.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=i==="base"?o.message:`${i}: ${o.message}`,a=o.details.find(l=>typeof l.extension_title<"u")?.extension_title,r=o.details.find(l=>typeof l.specification_identifier<"u")?.specification_identifier,d=o.details.find(l=>typeof l.extension_id<"u")?.extension_id?.toString(),c=Object.keys(n).find(l=>n[l]===d)??a;r==="webhook_subscription"&&(c="Webhook Subscription");let f=t.find(l=>l.title===c);if(f){let l=f.body,u=o.category==="invalid"?l.find(p=>p.list.title===x):l.find(p=>p.list.title===F);u?u.list.items.includes(s)||u.list.items.push(s):l.push({list:{title:o.category==="invalid"?x:F,items:[s]}})}else t.push({title:c,body:[{list:{title:o.category==="invalid"?x:F,items:[s]}}]});return t.forEach(l=>{l.body.sort((u,p)=>u.list.title===x?1:p.list.title===x?-1:0)}),t},[])}function we(e,n){return e.reduce((t,o)=>{let s=(o.on?o.on[0]:void 0)?.user_identifier,a=n.find(l=>l.uid===s),r=s?`Extension with uid: ${s}`:"Unknown Extension",d=a?.handle??r,c=`${(o.field??["unknown"]).join(".")}: ${o.message}`,f=t.find(l=>l.title===d);if(f){let u=f.body.find(p=>p.list.title===x);u&&(u.list.items.includes(c)||u.list.items.push(c))}else t.push({title:d,body:[{list:{title:x,items:[c]}}]});return t},[])}function be(e){return e.reduce((n,t)=>{let o=t.details.find(s=>typeof s.extension_title<"u")?.extension_title,i=n.find(s=>s.title===o);return i?i.errorCount+=1:n.push({title:o,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
|
|
4
|
-
${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function re(e){let n=E(e.app.directory,".shopify","deploy-bundle");await B(n,{force:!0}),await _(n),await X(e.appManifest,n),e.skipBuild||await W(e.app);let t=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,a,r)=>{let d=e.isDevDashboardApp?void 0:e.identifiers?.extensions[i.localIdentifier];
|
|
4
|
+
${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function re(e){let n=E(e.app.directory,".shopify","deploy-bundle");await B(n,{force:!0}),await _(n),await X(e.appManifest,n),e.skipBuild||await W(e.app);let t=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,a,r)=>{let d=e.isDevDashboardApp?void 0:e.identifiers?.extensions[i.localIdentifier];await i.buildForBundle({stderr:a,stdout:s,signal:r,app:e.app,environment:"production",skipBuild:e.skipBuild},n,d)}}));if(await U({processes:t,showTimestamps:!1}),e.app.allExtensions.some(i=>i.hasDeploySteps))return await ee(n,e.bundlePath),e.bundlePath}async function ve(e){let{app:n,remoteApp:t,developerPlatformClient:o,force:i,extensions:s}=e;if(i||!S())return n;let a=[`App includes legacy extensions that will be deprecated soon:
|
|
5
5
|
`,s.map(d=>` - ${d.title}`).join(`
|
|
6
6
|
`),`
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ Run `,{command:"shopify app import-extensions"},"to add legacy extensions now?"]
|
|
|
11
11
|
|
|
12
12
|
Run `,{command:"shopify app import-extensions"},"to add legacy extensions."];if(i||!S())throw new h(a,r);let d=[`
|
|
13
13
|
|
|
14
|
-
Run `,{command:"shopify app import-extensions"}," to add legacy extensions now?"];if(await M({message:[...a,...d],confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, don't add legacy extensions"}))return await R({app:n,remoteApp:t,developerPlatformClient:o,extensions:s}),T(n);throw new z}async function Ee(e){let{app:n,remoteApp:t,developerPlatformClient:o}=e,i=await se({developerPlatformClient:o,apiKey:t.apiKey,organizationId:t.organizationId,extensionTypes:oe,onlyDashboardManaged:!0}),s=ie(e.app,i);return s.length===0?n:o.supportsDashboardManagedExtensions?ve({...e,extensions:s}):xe({...e,extensions:s})}async function le(e){let{remoteApp:n,developerPlatformClient:t,noRelease:o,force:i,allowUpdates:s,allowDeletes:a}=e,r=await Ee({app:e.app,remoteApp:n,developerPlatformClient:t,force:i}),{identifiers:d,didMigrateExtensionsToDevDash:m}=await J({...e,app:r,developerPlatformClient:t,allowUpdates:s,allowDeletes:a}),c=!o,f=n.apiKey;
|
|
14
|
+
Run `,{command:"shopify app import-extensions"}," to add legacy extensions now?"];if(await M({message:[...a,...d],confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, don't add legacy extensions"}))return await R({app:n,remoteApp:t,developerPlatformClient:o,extensions:s}),T(n);throw new z}async function Ee(e){let{app:n,remoteApp:t,developerPlatformClient:o}=e,i=await se({developerPlatformClient:o,apiKey:t.apiKey,organizationId:t.organizationId,extensionTypes:oe,onlyDashboardManaged:!0}),s=ie(e.app,i);return s.length===0?n:o.supportsDashboardManagedExtensions?ve({...e,extensions:s}):xe({...e,extensions:s})}async function le(e){let{remoteApp:n,developerPlatformClient:t,noRelease:o,force:i,allowUpdates:s,allowDeletes:a}=e,r=await Ee({app:e.app,remoteApp:n,developerPlatformClient:t,force:i}),{identifiers:d,didMigrateExtensionsToDevDash:m}=await J({...e,app:r,developerPlatformClient:t,allowUpdates:s,allowDeletes:a}),c=!o,f=n.apiKey;D(),c?k(`Releasing a new app version as part of ${n.title}`):k(`Creating a new app version as part of ${n.title}`),D();let l;try{let u=E(e.app.directory,".shopify",`deploy-bundle.${t.bundleFormat}`);await _(N(u));let p=await r.manifest(d),b=await re({app:r,appManifest:p,bundlePath:u,identifiers:d,skipBuild:e.skipBuild,isDevDashboardApp:t.supportsAtomicDeployments}),v;c?v="Releasing an app version":v="Creating an app version",await j([{title:"Running validation",task:async()=>{await r.preDeployValidation()}},{title:v,task:async()=>{let ce=await Promise.all(r.allExtensions.flatMap(ue=>ue.bundleConfig({identifiers:d,developerPlatformClient:t,apiKey:f,appConfiguration:r.configuration})));l=await ae({appManifest:p,appId:n.id,apiKey:f,name:r.name,organizationId:n.organizationId,bundlePath:b,appModules:$(ce),release:c,developerPlatformClient:t,extensionIds:d.extensionIds,message:e.message,version:e.version,commitReference:e.commitReference}),await P({app:r,identifiers:d,command:"deploy",developerPlatformClient:t})}}]),await _e({app:r,project:e.project,release:c,uploadExtensionsBundleResult:l,didMigrateExtensionsToDevDash:m})}catch(u){throw await P({app:r,identifiers:d,command:"deploy",developerPlatformClient:t}),u}return{app:r}}async function _e({app:e,project:n,release:t,uploadExtensionsBundleResult:o,didMigrateExtensionsToDevDash:i}){let s=[{link:{label:o.versionTag??"version",url:o.location}},o.message?`
|
|
15
15
|
${o.message}`:""],a=[];if(i){let r=await q(e.directory),d=Object.values(r).filter(c=>c!==r[e.configuration.client_id]),m=[];d.length>0&&m.push("\u2022 Map extension IDs to other copies of your app by running",{command:C(n.packageManager,"shopify app deploy")},"for: ",{list:{items:d}}),m.push("\u2022 Commit to source control to ensure your extension IDs aren't regenerated on the next deploy."),a=[{title:"Next steps",body:m},{title:"Reference",body:["\u2022 ",{link:{label:"Migrating from the Partner Dashboard",url:"https://shopify.dev/docs/apps/build/dev-dashboard/migrate-from-partners"}}]}]}return t?o.deployError?Y({headline:"New version created, but not released.",body:[...s,`
|
|
16
16
|
|
|
17
17
|
${o.deployError}`],customSections:a}):A({headline:"New version released to users.",body:s,customSections:a}):A({headline:"New version created.",body:s,customSections:a,nextSteps:[["Run",{command:C(n.packageManager,"shopify app release",`--version=${o.versionTag}`)},"to release this version to users."]]})}g();function de(e){if(typeof e>"u")return;let n=["Invalid version name:",{userInput:e}],t=100;if(e.length>t)throw new h(n,`Version name must be ${t} characters or less.`);let o=[".",".."];if(o.find(s=>e===s))throw new h(n,`Version name may not be any of: ${o.map(s=>`'${s}'`).join(" , ")}`);let i=/^[a-zA-Z0-9.\-_]+$/;if(!e.match(i))throw new h(n,["Version name can only contain alphanumeric characters, periods, hyphens, and underscores"])}g();function pe(e){if(typeof e>"u")return;let n=["Invalid message:",{userInput:e}],t=200;if(e.length>t)throw new h(n,`Message name must be ${t} characters or less.`)}var y=me(fe(),1);var L,w=class extends Q{async run(){let{flags:n}=await this.parse(L);await H.addPublicMetadata(()=>({cmd_deploy_flag_message_used:!!n.message,cmd_deploy_flag_version_used:!!n.version,cmd_deploy_flag_source_url_used:!!n["source-control-url"]})),de(n.version),pe(n.message);let t=n["client-id"];await V(()=>({cmd_app_reset_used:n.reset}));let o=n["no-release"],i=[];o||n["allow-updates"]||n["allow-deletes"]||i.push("allow-updates"),this.failMissingNonTTYFlags(n,i);let{app:a,project:r,remoteApp:d,developerPlatformClient:m,organization:c}=await Z({directory:n.path,clientId:t,forceRelink:n.reset,userProvidedConfigName:n.config}),f=o||n["allow-updates"],l=o||n["allow-deletes"];return{app:(await le({app:a,project:r,remoteApp:d,organization:c,developerPlatformClient:m,reset:n.reset,force:o,allowUpdates:f,allowDeletes:l,noRelease:n["no-release"],message:n.message,version:n.version,commitReference:n["source-control-url"],skipBuild:n["no-build"]})).app}}};L=w;w.summary="Deploy your Shopify app.";w.descriptionWithMarkdown=`[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build), then deploys your app configuration and extensions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,g as o}from"./chunk-VPRTJUIN.js";var g=p((hi,he)=>{"use strict";o();var nt="2.0.0",it=Number.MAX_SAFE_INTEGER||9007199254740991,ot=16,ct=250,lt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];he.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ot,MAX_SAFE_BUILD_LENGTH:ct,MAX_SAFE_INTEGER:it,RELEASE_TYPES:lt,SEMVER_SPEC_VERSION:nt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=p((Ri,pe)=>{"use strict";o();var at=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pe.exports=at});var P=p((q,Re)=>{"use strict";o();var{MAX_SAFE_COMPONENT_LENGTH:M,MAX_SAFE_BUILD_LENGTH:ut,MAX_LENGTH:ft}=g(),Et=v();q=Re.exports={};var ht=q.re=[],pt=q.safeRe=[],l=q.src=[],Rt=q.safeSrc=[],a=q.t={},$t=0,W="[a-zA-Z0-9-]",mt=[["\\s",1],["\\d",ft],[W,ut]],It=t=>{for(let[e,r]of mt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},R=(t,e,r)=>{let s=It(e),n=$t++;Et(t,n,e),a[t]=n,l[n]=e,Rt[n]=s,ht[n]=new RegExp(e,r?"g":void 0),pt[n]=new RegExp(s,r?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*");R("NUMERICIDENTIFIERLOOSE","\\d+");R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${W}*`);R("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);R("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASEIDENTIFIER",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIER]})`);R("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);R("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);R("BUILDIDENTIFIER",`${W}+`);R("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);R("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);R("FULL",`^${l[a.FULLPLAIN]}$`);R("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);R("LOOSE",`^${l[a.LOOSEPLAIN]}$`);R("GTLT","((?:<|>)?=?)");R("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);R("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);R("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);R("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);R("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);R("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${M}})(?:\\.(\\d{1,${M}}))?(?:\\.(\\d{1,${M}}))?`);R("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);R("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);R("COERCERTL",l[a.COERCE],!0);R("COERCERTLFULL",l[a.COERCEFULL],!0);R("LONETILDE","(?:~>?)");R("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);q.tildeTrimReplace="$1~";R("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);R("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);R("LONECARET","(?:\\^)");R("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);q.caretTrimReplace="$1^";R("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);R("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);R("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);R("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);R("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);q.comparatorTrimReplace="$1$2$3";R("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);R("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);R("STAR","(<|>)?=?\\s*\\*");R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var y=p((Ii,$e)=>{"use strict";o();var Lt=Object.freeze({loose:!0}),Nt=Object.freeze({}),Ot=t=>t?typeof t!="object"?Lt:t:Nt;$e.exports=Ot});var z=p((Ni,Le)=>{"use strict";o();var me=/^[0-9]+$/,Ie=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=me.test(t),s=me.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},dt=(t,e)=>Ie(e,t);Le.exports={compareIdentifiers:Ie,rcompareIdentifiers:dt}});var O=p((di,Oe)=>{"use strict";o();var F=v(),{MAX_LENGTH:Ne,MAX_SAFE_INTEGER:j}=g(),{safeRe:U,t:X}=P(),St=y(),{compareIdentifiers:K}=z(),Tt=(t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let s=0;s<r.length;s++)if(K(t[s],r[s])!==0)return!1;return!0},Z=class t{constructor(e,r){if(r=St(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ne)throw new TypeError(`version is longer than ${Ne} characters`);F("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?U[X.LOOSE]:U[X.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<j)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(F("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(F("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(F("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?U[X.PRERELEASELOOSE]:U[X.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];if(s===!1&&(i=[r]),Tt(this.prerelease,r)){let c=this.prerelease[r.split(".").length];isNaN(c)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oe.exports=Z});var w=p((Ti,Se)=>{"use strict";o();var de=O(),At=(t,e,r=!1)=>{if(t instanceof de)return t;try{return new de(t,e)}catch(s){if(!r)return null;throw s}};Se.exports=At});var Ae=p((qi,Te)=>{"use strict";o();var qt=w(),wt=(t,e)=>{let r=qt(t,e);return r?r.version:null};Te.exports=wt});var we=p((gi,qe)=>{"use strict";o();var gt=w(),Pt=(t,e)=>{let r=gt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};qe.exports=Pt});var ve=p((vi,Pe)=>{"use strict";o();var ge=O(),vt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new ge(t instanceof ge?t.version:t,r).inc(e,s,n).version}catch{return null}};Pe.exports=vt});var De=p((Ci,Ce)=>{"use strict";o();var xe=w(),xt=(t,e)=>{let r=xe(t,null,!0),s=xe(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,c=i?r:s,u=i?s:r,f=!!c.prerelease.length;if(!!u.prerelease.length&&!f){if(!u.patch&&!u.minor)return"major";if(u.compareMain(c)===0)return u.minor&&!u.patch?"minor":"patch"}let m=f?"pre":"";return r.major!==s.major?m+"major":r.minor!==s.minor?m+"minor":r.patch!==s.patch?m+"patch":"prerelease"};Ce.exports=xt});var ye=p((Gi,Ge)=>{"use strict";o();var Ct=O(),Dt=(t,e)=>new Ct(t,e).major;Ge.exports=Dt});var je=p((Fi,Fe)=>{"use strict";o();var Gt=O(),yt=(t,e)=>new Gt(t,e).minor;Fe.exports=yt});var Xe=p((Ui,Ue)=>{"use strict";o();var Ft=O(),jt=(t,e)=>new Ft(t,e).patch;Ue.exports=jt});var _e=p((Vi,Ve)=>{"use strict";o();var Ut=w(),Xt=(t,e)=>{let r=Ut(t,e);return r&&r.prerelease.length?r.prerelease:null};Ve.exports=Xt});var T=p((bi,He)=>{"use strict";o();var be=O(),Vt=(t,e,r)=>new be(t,r).compare(new be(e,r));He.exports=Vt});var Be=p((ki,ke)=>{"use strict";o();var _t=T(),bt=(t,e,r)=>_t(e,t,r);ke.exports=bt});var Me=p((Yi,Ye)=>{"use strict";o();var Ht=T(),kt=(t,e)=>Ht(t,e,!0);Ye.exports=kt});var V=p((Wi,ze)=>{"use strict";o();var We=O(),Bt=(t,e,r)=>{let s=new We(t,r),n=new We(e,r);return s.compare(n)||s.compareBuild(n)};ze.exports=Bt});var Ze=p((Ki,Ke)=>{"use strict";o();var Yt=V(),Mt=(t,e)=>t.sort((r,s)=>Yt(r,s,e));Ke.exports=Mt});var Qe=p((Ji,Je)=>{"use strict";o();var Wt=V(),zt=(t,e)=>t.sort((r,s)=>Wt(s,r,e));Je.exports=zt});var x=p((eo,er)=>{"use strict";o();var Kt=T(),Zt=(t,e,r)=>Kt(t,e,r)>0;er.exports=Zt});var _=p((to,rr)=>{"use strict";o();var Jt=T(),Qt=(t,e,r)=>Jt(t,e,r)<0;rr.exports=Qt});var J=p((no,tr)=>{"use strict";o();var es=T(),rs=(t,e,r)=>es(t,e,r)===0;tr.exports=rs});var Q=p((oo,sr)=>{"use strict";o();var ts=T(),ss=(t,e,r)=>ts(t,e,r)!==0;sr.exports=ss});var b=p((lo,nr)=>{"use strict";o();var ns=T(),is=(t,e,r)=>ns(t,e,r)>=0;nr.exports=is});var H=p((uo,ir)=>{"use strict";o();var os=T(),cs=(t,e,r)=>os(t,e,r)<=0;ir.exports=cs});var ee=p((Eo,or)=>{"use strict";o();var ls=J(),as=Q(),us=x(),fs=b(),Es=_(),hs=H(),ps=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ls(t,r,s);case"!=":return as(t,r,s);case">":return us(t,r,s);case">=":return fs(t,r,s);case"<":return Es(t,r,s);case"<=":return hs(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};or.exports=ps});var lr=p((po,cr)=>{"use strict";o();var Rs=O(),$s=w(),{safeRe:k,t:B}=P(),ms=(t,e)=>{if(t instanceof Rs)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?k[B.COERCEFULL]:k[B.COERCE]);else{let f=e.includePrerelease?k[B.COERCERTLFULL]:k[B.COERCERTL],$;for(;($=f.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||$.index+$[0].length!==r.index+r[0].length)&&(r=$),f.lastIndex=$.index+$[1].length+$[2].length;f.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",c=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $s(`${s}.${n}.${i}${c}${u}`,e)};cr.exports=ms});var ur=p(($o,ar)=>{"use strict";o();var Is=w(),Ls=g(),Ns=O(),Os=(t,e,r)=>{if(!Ls.RELEASE_TYPES.includes(e))return null;let s=ds(t,r);return s&&Ss(s,e)},ds=(t,e)=>{let r=t instanceof Ns?t.version:t;return Is(r,e)},Ss=(t,e)=>{if(Ts(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},Ts=t=>t.startsWith("pre");ar.exports=Os});var Er=p((Io,fr)=>{"use strict";o();var re=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};fr.exports=re});var A=p((No,$r)=>{"use strict";o();var As=/\s+/g,te=class t{constructor(e,r){if(r=ws(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof se)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(As," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!pr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Fs(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(ys,"");let s=((this.options.includePrerelease&&Ds)|(this.options.loose&&Gs))+":"+e,n=hr.get(s);if(n)return n;let i=this.options.loose,c=i?S[d.HYPHENRANGELOOSE]:S[d.HYPHENRANGE];e=e.replace(c,Ms(this.options.includePrerelease)),I("hyphen replace",e),e=e.replace(S[d.COMPARATORTRIM],vs),I("comparator trim",e),e=e.replace(S[d.TILDETRIM],xs),I("tilde trim",e),e=e.replace(S[d.CARETTRIM],Cs),I("caret trim",e);let u=e.split(" ").map(E=>js(E,this.options)).join(" ").split(/\s+/).map(E=>Ys(E,this.options));i&&(u=u.filter(E=>(I("loose invalid filter",E,this.options),!!E.match(S[d.COMPARATORLOOSE])))),I("range list",u);let f=new Map,$=u.map(E=>new se(E,this.options));for(let E of $){if(pr(E))return[E];f.set(E.value,E)}f.size>1&&f.has("")&&f.delete("");let m=[...f.values()];return hr.set(s,m),m}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>Rr(s,r)&&e.set.some(n=>Rr(n,r)&&s.every(i=>n.every(c=>i.intersects(c,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gs(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ws(this.set[r],e,this.options))return!0;return!1}};$r.exports=te;var qs=Er(),hr=new qs,ws=y(),se=C(),I=v(),gs=O(),{safeRe:S,src:Ps,t:d,comparatorTrimReplace:vs,tildeTrimReplace:xs,caretTrimReplace:Cs}=P(),{FLAG_INCLUDE_PRERELEASE:Ds,FLAG_LOOSE:Gs}=g(),ys=new RegExp(Ps[d.BUILD],"g"),pr=t=>t.value==="<0.0.0-0",Fs=t=>t.value==="",Rr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},js=(t,e)=>(t=t.replace(S[d.BUILD],""),I("comp",t,e),t=_s(t,e),I("caret",t),t=Xs(t,e),I("tildes",t),t=Hs(t,e),I("xrange",t),t=Bs(t,e),I("stars",t),t),N=t=>!t||t.toLowerCase()==="x"||t==="*",Us=(t,e,r)=>N(t)&&!N(e)||N(e)&&r&&!N(r),Xs=(t,e)=>t.trim().split(/\s+/).map(r=>Vs(r,e)).join(" "),Vs=(t,e)=>{let r=e.loose?S[d.TILDELOOSE]:S[d.TILDE];return t.replace(r,(s,n,i,c,u)=>{I("tilde",t,s,n,i,c,u);let f;return N(n)?f="":N(i)?f=`>=${n}.0.0 <${+n+1}.0.0-0`:N(c)?f=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:u?(I("replaceTilde pr",u),f=`>=${n}.${i}.${c}-${u} <${n}.${+i+1}.0-0`):f=`>=${n}.${i}.${c} <${n}.${+i+1}.0-0`,I("tilde return",f),f})},_s=(t,e)=>t.trim().split(/\s+/).map(r=>bs(r,e)).join(" "),bs=(t,e)=>{I("caret",t,e);let r=e.loose?S[d.CARETLOOSE]:S[d.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,c,u,f)=>{I("caret",t,n,i,c,u,f);let $;return N(i)?$="":N(c)?$=`>=${i}.0.0${s} <${+i+1}.0.0-0`:N(u)?i==="0"?$=`>=${i}.${c}.0${s} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.0${s} <${+i+1}.0.0-0`:f?(I("replaceCaret pr",f),i==="0"?c==="0"?$=`>=${i}.${c}.${u}-${f} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u}-${f} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u}-${f} <${+i+1}.0.0-0`):(I("no pr"),i==="0"?c==="0"?$=`>=${i}.${c}.${u} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u} <${+i+1}.0.0-0`),I("caret return",$),$})},Hs=(t,e)=>(I("replaceXRanges",t,e),t.split(/\s+/).map(r=>ks(r,e)).join(" ")),ks=(t,e)=>{t=t.trim();let r=e.loose?S[d.XRANGELOOSE]:S[d.XRANGE];return t.replace(r,(s,n,i,c,u,f)=>{if(I("xRange",t,s,n,i,c,u,f),Us(i,c,u))return t;let $=N(i),m=$||N(c),E=m||N(u),L=E;return n==="="&&L&&(n=""),f=e.includePrerelease?"-0":"",$?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&L?(m&&(c=0),u=0,n===">"?(n=">=",m?(i=+i+1,c=0,u=0):(c=+c+1,u=0)):n==="<="&&(n="<",m?i=+i+1:c=+c+1),n==="<"&&(f="-0"),s=`${n+i}.${c}.${u}${f}`):m?s=`>=${i}.0.0${f} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${c}.0${f} <${i}.${+c+1}.0-0`),I("xRange return",s),s})},Bs=(t,e)=>(I("replaceStars",t,e),t.trim().replace(S[d.STAR],"")),Ys=(t,e)=>(I("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?d.GTE0PRE:d.GTE0],"")),Ms=t=>(e,r,s,n,i,c,u,f,$,m,E,L)=>(N(s)?r="":N(n)?r=`>=${s}.0.0${t?"-0":""}`:N(i)?r=`>=${s}.${n}.0${t?"-0":""}`:c?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,N($)?f="":N(m)?f=`<${+$+1}.0.0-0`:N(E)?f=`<${$}.${+m+1}.0-0`:L?f=`<=${$}.${m}.${E}-${L}`:t?f=`<${$}.${m}.${+E+1}-0`:f=`<=${f}`,`${r} ${f}`.trim()),Ws=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(I(t[s].semver),t[s].semver!==se.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=p((So,dr)=>{"use strict";o();var D=Symbol("SemVer ANY"),oe=class t{static get ANY(){return D}constructor(e,r){if(r=mr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ie("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ie("comp",this)}parse(e){let r=this.options.loose?Ir[Lr.COMPARATORLOOSE]:Ir[Lr.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Nr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ie("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new Nr(e,this.options)}catch{return!1}return ne(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Or(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Or(this.value,r).test(e.semver):(r=mr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ne(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ne(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};dr.exports=oe;var mr=y(),{safeRe:Ir,t:Lr}=P(),ne=ee(),ie=v(),Nr=O(),Or=A()});var G=p((Ao,Sr)=>{"use strict";o();var zs=A(),Ks=(t,e,r)=>{try{e=new zs(e,r)}catch{return!1}return e.test(t)};Sr.exports=Ks});var Ar=p((wo,Tr)=>{"use strict";o();var Zs=A(),Js=(t,e)=>new Zs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Tr.exports=Js});var wr=p((Po,qr)=>{"use strict";o();var Qs=O(),en=A(),rn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new en(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===-1)&&(s=c,n=new Qs(s,r))}),s};qr.exports=rn});var Pr=p((xo,gr)=>{"use strict";o();var tn=O(),sn=A(),nn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new sn(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===1)&&(s=c,n=new tn(s,r))}),s};gr.exports=nn});var Cr=p((Do,xr)=>{"use strict";o();var ce=O(),on=A(),vr=x(),cn=(t,e)=>{t=new on(t,e);let r=new ce("0.0.0");if(t.test(r)||(r=new ce("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(c=>{let u=new ce(c.semver.version);switch(c.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||vr(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),i&&(!r||vr(r,i))&&(r=i)}return r&&t.test(r)?r:null};xr.exports=cn});var Gr=p((yo,Dr)=>{"use strict";o();var ln=A(),an=(t,e)=>{try{return new ln(t,e).range||"*"}catch{return null}};Dr.exports=an});var Y=p((jo,Ur)=>{"use strict";o();var un=O(),jr=C(),{ANY:fn}=jr,En=A(),hn=G(),yr=x(),Fr=_(),pn=H(),Rn=b(),$n=(t,e,r,s)=>{t=new un(t,s),e=new En(e,s);let n,i,c,u,f;switch(r){case">":n=yr,i=pn,c=Fr,u=">",f=">=";break;case"<":n=Fr,i=Rn,c=yr,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hn(t,e,s))return!1;for(let $=0;$<e.set.length;++$){let m=e.set[$],E=null,L=null;if(m.forEach(h=>{h.semver===fn&&(h=new jr(">=0.0.0")),E=E||h,L=L||h,n(h.semver,E.semver,s)?E=h:c(h.semver,L.semver,s)&&(L=h)}),E.operator===u||E.operator===f||(!L.operator||L.operator===u)&&i(t,L.semver))return!1;if(L.operator===f&&c(t,L.semver))return!1}return!0};Ur.exports=$n});var Vr=p((Xo,Xr)=>{"use strict";o();var mn=Y(),In=(t,e,r)=>mn(t,e,">",r);Xr.exports=In});var br=p((_o,_r)=>{"use strict";o();var Ln=Y(),Nn=(t,e,r)=>Ln(t,e,"<",r);_r.exports=Nn});var Br=p((Ho,kr)=>{"use strict";o();var Hr=A(),On=(t,e,r)=>(t=new Hr(t,r),e=new Hr(e,r),t.intersects(e,r));kr.exports=On});var Mr=p((Bo,Yr)=>{"use strict";o();var dn=G(),Sn=T();Yr.exports=(t,e,r)=>{let s=[],n=null,i=null,c=t.sort((m,E)=>Sn(m,E,r));for(let m of c)dn(m,e,r)?(i=m,n||(n=m)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let u=[];for(let[m,E]of s)m===E?u.push(m):!E&&m===c[0]?u.push("*"):E?m===c[0]?u.push(`<=${E}`):u.push(`${m} - ${E}`):u.push(`>=${m}`);let f=u.join(" || "),$=typeof e.raw=="string"?e.raw:String(e);return f.length<$.length?f:e}});var Qr=p((Mo,Jr)=>{"use strict";o();var Wr=A(),ue=C(),{ANY:le}=ue,ae=G(),fe=T(),Tn=(t,e,r={})=>{if(t===e)return!0;t=new Wr(t,r),e=new Wr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let c=qn(n,i,r);if(s=s||c!==null,c)continue e}if(s)return!1}return!0},An=[new ue(">=0.0.0-0")],zr=[new ue(">=0.0.0")],qn=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=An:t=zr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=zr}let s=new Set,n,i;for(let h of t)h.operator===">"||h.operator===">="?n=Kr(n,h,r):h.operator==="<"||h.operator==="<="?i=Zr(i,h,r):s.add(h.semver);if(s.size>1)return null;let c;if(n&&i){if(c=fe(n.semver,i.semver,r),c>0)return null;if(c===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let h of s){if(n&&!ae(h,String(n),r)||i&&!ae(h,String(i),r))return null;for(let st of e)if(!ae(h,String(st),r))return!1;return!0}let u,f,$,m,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,L=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let h of e){if(m=m||h.operator===">"||h.operator===">=",$=$||h.operator==="<"||h.operator==="<=",n){if(L&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===L.major&&h.semver.minor===L.minor&&h.semver.patch===L.patch&&(L=!1),h.operator===">"||h.operator===">="){if(u=Kr(n,h,r),u===h&&u!==n)return!1}else if(n.operator===">="&&!h.test(n.semver))return!1}if(i){if(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator==="<"||h.operator==="<="){if(f=Zr(i,h,r),f===h&&f!==i)return!1}else if(i.operator==="<="&&!h.test(i.semver))return!1}if(!h.operator&&(i||n)&&c!==0)return!1}return!(n&&$&&!i&&c!==0||i&&m&&!n&&c!==0||L||E)},Kr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Zr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Jr.exports=Tn});var Ei=p((zo,tt)=>{"use strict";o();var Ee=P(),et=g(),wn=O(),rt=z(),gn=w(),Pn=Ae(),vn=we(),xn=ve(),Cn=De(),Dn=ye(),Gn=je(),yn=Xe(),Fn=_e(),jn=T(),Un=Be(),Xn=Me(),Vn=V(),_n=Ze(),bn=Qe(),Hn=x(),kn=_(),Bn=J(),Yn=Q(),Mn=b(),Wn=H(),zn=ee(),Kn=lr(),Zn=ur(),Jn=C(),Qn=A(),ei=G(),ri=Ar(),ti=wr(),si=Pr(),ni=Cr(),ii=Gr(),oi=Y(),ci=Vr(),li=br(),ai=Br(),ui=Mr(),fi=Qr();tt.exports={parse:gn,valid:Pn,clean:vn,inc:xn,diff:Cn,major:Dn,minor:Gn,patch:yn,prerelease:Fn,compare:jn,rcompare:Un,compareLoose:Xn,compareBuild:Vn,sort:_n,rsort:bn,gt:Hn,lt:kn,eq:Bn,neq:Yn,gte:Mn,lte:Wn,cmp:zn,coerce:Kn,truncate:Zn,Comparator:Jn,Range:Qn,satisfies:ei,toComparators:ri,maxSatisfying:ti,minSatisfying:si,minVersion:ni,validRange:ii,outside:oi,gtr:ci,ltr:li,intersects:ai,simplifyRange:ui,subset:fi,SemVer:wn,re:Ee.re,src:Ee.src,tokens:Ee.t,SEMVER_SPEC_VERSION:et.SEMVER_SPEC_VERSION,RELEASE_TYPES:et.RELEASE_TYPES,compareIdentifiers:rt.compareIdentifiers,rcompareIdentifiers:rt.rcompareIdentifiers}});export{Ei as a};
|
|
1
|
+
import{c as p,g as o}from"./chunk-VKWPEFWQ.js";var g=p((hi,he)=>{"use strict";o();var nt="2.0.0",it=Number.MAX_SAFE_INTEGER||9007199254740991,ot=16,ct=250,lt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];he.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ot,MAX_SAFE_BUILD_LENGTH:ct,MAX_SAFE_INTEGER:it,RELEASE_TYPES:lt,SEMVER_SPEC_VERSION:nt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=p((Ri,pe)=>{"use strict";o();var at=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pe.exports=at});var P=p((q,Re)=>{"use strict";o();var{MAX_SAFE_COMPONENT_LENGTH:M,MAX_SAFE_BUILD_LENGTH:ut,MAX_LENGTH:ft}=g(),Et=v();q=Re.exports={};var ht=q.re=[],pt=q.safeRe=[],l=q.src=[],Rt=q.safeSrc=[],a=q.t={},$t=0,W="[a-zA-Z0-9-]",mt=[["\\s",1],["\\d",ft],[W,ut]],It=t=>{for(let[e,r]of mt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},R=(t,e,r)=>{let s=It(e),n=$t++;Et(t,n,e),a[t]=n,l[n]=e,Rt[n]=s,ht[n]=new RegExp(e,r?"g":void 0),pt[n]=new RegExp(s,r?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*");R("NUMERICIDENTIFIERLOOSE","\\d+");R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${W}*`);R("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);R("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASEIDENTIFIER",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIER]})`);R("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);R("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);R("BUILDIDENTIFIER",`${W}+`);R("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);R("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);R("FULL",`^${l[a.FULLPLAIN]}$`);R("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);R("LOOSE",`^${l[a.LOOSEPLAIN]}$`);R("GTLT","((?:<|>)?=?)");R("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);R("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);R("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);R("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);R("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);R("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${M}})(?:\\.(\\d{1,${M}}))?(?:\\.(\\d{1,${M}}))?`);R("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);R("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);R("COERCERTL",l[a.COERCE],!0);R("COERCERTLFULL",l[a.COERCEFULL],!0);R("LONETILDE","(?:~>?)");R("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);q.tildeTrimReplace="$1~";R("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);R("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);R("LONECARET","(?:\\^)");R("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);q.caretTrimReplace="$1^";R("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);R("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);R("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);R("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);R("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);q.comparatorTrimReplace="$1$2$3";R("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);R("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);R("STAR","(<|>)?=?\\s*\\*");R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var y=p((Ii,$e)=>{"use strict";o();var Lt=Object.freeze({loose:!0}),Nt=Object.freeze({}),Ot=t=>t?typeof t!="object"?Lt:t:Nt;$e.exports=Ot});var z=p((Ni,Le)=>{"use strict";o();var me=/^[0-9]+$/,Ie=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=me.test(t),s=me.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},dt=(t,e)=>Ie(e,t);Le.exports={compareIdentifiers:Ie,rcompareIdentifiers:dt}});var O=p((di,Oe)=>{"use strict";o();var F=v(),{MAX_LENGTH:Ne,MAX_SAFE_INTEGER:j}=g(),{safeRe:U,t:X}=P(),St=y(),{compareIdentifiers:K}=z(),Tt=(t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let s=0;s<r.length;s++)if(K(t[s],r[s])!==0)return!1;return!0},Z=class t{constructor(e,r){if(r=St(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ne)throw new TypeError(`version is longer than ${Ne} characters`);F("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?U[X.LOOSE]:U[X.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<j)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(F("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(F("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(F("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?U[X.PRERELEASELOOSE]:U[X.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];if(s===!1&&(i=[r]),Tt(this.prerelease,r)){let c=this.prerelease[r.split(".").length];isNaN(c)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oe.exports=Z});var w=p((Ti,Se)=>{"use strict";o();var de=O(),At=(t,e,r=!1)=>{if(t instanceof de)return t;try{return new de(t,e)}catch(s){if(!r)return null;throw s}};Se.exports=At});var Ae=p((qi,Te)=>{"use strict";o();var qt=w(),wt=(t,e)=>{let r=qt(t,e);return r?r.version:null};Te.exports=wt});var we=p((gi,qe)=>{"use strict";o();var gt=w(),Pt=(t,e)=>{let r=gt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};qe.exports=Pt});var ve=p((vi,Pe)=>{"use strict";o();var ge=O(),vt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new ge(t instanceof ge?t.version:t,r).inc(e,s,n).version}catch{return null}};Pe.exports=vt});var De=p((Ci,Ce)=>{"use strict";o();var xe=w(),xt=(t,e)=>{let r=xe(t,null,!0),s=xe(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,c=i?r:s,u=i?s:r,f=!!c.prerelease.length;if(!!u.prerelease.length&&!f){if(!u.patch&&!u.minor)return"major";if(u.compareMain(c)===0)return u.minor&&!u.patch?"minor":"patch"}let m=f?"pre":"";return r.major!==s.major?m+"major":r.minor!==s.minor?m+"minor":r.patch!==s.patch?m+"patch":"prerelease"};Ce.exports=xt});var ye=p((Gi,Ge)=>{"use strict";o();var Ct=O(),Dt=(t,e)=>new Ct(t,e).major;Ge.exports=Dt});var je=p((Fi,Fe)=>{"use strict";o();var Gt=O(),yt=(t,e)=>new Gt(t,e).minor;Fe.exports=yt});var Xe=p((Ui,Ue)=>{"use strict";o();var Ft=O(),jt=(t,e)=>new Ft(t,e).patch;Ue.exports=jt});var _e=p((Vi,Ve)=>{"use strict";o();var Ut=w(),Xt=(t,e)=>{let r=Ut(t,e);return r&&r.prerelease.length?r.prerelease:null};Ve.exports=Xt});var T=p((bi,He)=>{"use strict";o();var be=O(),Vt=(t,e,r)=>new be(t,r).compare(new be(e,r));He.exports=Vt});var Be=p((ki,ke)=>{"use strict";o();var _t=T(),bt=(t,e,r)=>_t(e,t,r);ke.exports=bt});var Me=p((Yi,Ye)=>{"use strict";o();var Ht=T(),kt=(t,e)=>Ht(t,e,!0);Ye.exports=kt});var V=p((Wi,ze)=>{"use strict";o();var We=O(),Bt=(t,e,r)=>{let s=new We(t,r),n=new We(e,r);return s.compare(n)||s.compareBuild(n)};ze.exports=Bt});var Ze=p((Ki,Ke)=>{"use strict";o();var Yt=V(),Mt=(t,e)=>t.sort((r,s)=>Yt(r,s,e));Ke.exports=Mt});var Qe=p((Ji,Je)=>{"use strict";o();var Wt=V(),zt=(t,e)=>t.sort((r,s)=>Wt(s,r,e));Je.exports=zt});var x=p((eo,er)=>{"use strict";o();var Kt=T(),Zt=(t,e,r)=>Kt(t,e,r)>0;er.exports=Zt});var _=p((to,rr)=>{"use strict";o();var Jt=T(),Qt=(t,e,r)=>Jt(t,e,r)<0;rr.exports=Qt});var J=p((no,tr)=>{"use strict";o();var es=T(),rs=(t,e,r)=>es(t,e,r)===0;tr.exports=rs});var Q=p((oo,sr)=>{"use strict";o();var ts=T(),ss=(t,e,r)=>ts(t,e,r)!==0;sr.exports=ss});var b=p((lo,nr)=>{"use strict";o();var ns=T(),is=(t,e,r)=>ns(t,e,r)>=0;nr.exports=is});var H=p((uo,ir)=>{"use strict";o();var os=T(),cs=(t,e,r)=>os(t,e,r)<=0;ir.exports=cs});var ee=p((Eo,or)=>{"use strict";o();var ls=J(),as=Q(),us=x(),fs=b(),Es=_(),hs=H(),ps=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ls(t,r,s);case"!=":return as(t,r,s);case">":return us(t,r,s);case">=":return fs(t,r,s);case"<":return Es(t,r,s);case"<=":return hs(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};or.exports=ps});var lr=p((po,cr)=>{"use strict";o();var Rs=O(),$s=w(),{safeRe:k,t:B}=P(),ms=(t,e)=>{if(t instanceof Rs)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?k[B.COERCEFULL]:k[B.COERCE]);else{let f=e.includePrerelease?k[B.COERCERTLFULL]:k[B.COERCERTL],$;for(;($=f.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||$.index+$[0].length!==r.index+r[0].length)&&(r=$),f.lastIndex=$.index+$[1].length+$[2].length;f.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",c=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $s(`${s}.${n}.${i}${c}${u}`,e)};cr.exports=ms});var ur=p(($o,ar)=>{"use strict";o();var Is=w(),Ls=g(),Ns=O(),Os=(t,e,r)=>{if(!Ls.RELEASE_TYPES.includes(e))return null;let s=ds(t,r);return s&&Ss(s,e)},ds=(t,e)=>{let r=t instanceof Ns?t.version:t;return Is(r,e)},Ss=(t,e)=>{if(Ts(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},Ts=t=>t.startsWith("pre");ar.exports=Os});var Er=p((Io,fr)=>{"use strict";o();var re=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};fr.exports=re});var A=p((No,$r)=>{"use strict";o();var As=/\s+/g,te=class t{constructor(e,r){if(r=ws(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof se)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(As," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!pr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Fs(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(ys,"");let s=((this.options.includePrerelease&&Ds)|(this.options.loose&&Gs))+":"+e,n=hr.get(s);if(n)return n;let i=this.options.loose,c=i?S[d.HYPHENRANGELOOSE]:S[d.HYPHENRANGE];e=e.replace(c,Ms(this.options.includePrerelease)),I("hyphen replace",e),e=e.replace(S[d.COMPARATORTRIM],vs),I("comparator trim",e),e=e.replace(S[d.TILDETRIM],xs),I("tilde trim",e),e=e.replace(S[d.CARETTRIM],Cs),I("caret trim",e);let u=e.split(" ").map(E=>js(E,this.options)).join(" ").split(/\s+/).map(E=>Ys(E,this.options));i&&(u=u.filter(E=>(I("loose invalid filter",E,this.options),!!E.match(S[d.COMPARATORLOOSE])))),I("range list",u);let f=new Map,$=u.map(E=>new se(E,this.options));for(let E of $){if(pr(E))return[E];f.set(E.value,E)}f.size>1&&f.has("")&&f.delete("");let m=[...f.values()];return hr.set(s,m),m}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>Rr(s,r)&&e.set.some(n=>Rr(n,r)&&s.every(i=>n.every(c=>i.intersects(c,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gs(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ws(this.set[r],e,this.options))return!0;return!1}};$r.exports=te;var qs=Er(),hr=new qs,ws=y(),se=C(),I=v(),gs=O(),{safeRe:S,src:Ps,t:d,comparatorTrimReplace:vs,tildeTrimReplace:xs,caretTrimReplace:Cs}=P(),{FLAG_INCLUDE_PRERELEASE:Ds,FLAG_LOOSE:Gs}=g(),ys=new RegExp(Ps[d.BUILD],"g"),pr=t=>t.value==="<0.0.0-0",Fs=t=>t.value==="",Rr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},js=(t,e)=>(t=t.replace(S[d.BUILD],""),I("comp",t,e),t=_s(t,e),I("caret",t),t=Xs(t,e),I("tildes",t),t=Hs(t,e),I("xrange",t),t=Bs(t,e),I("stars",t),t),N=t=>!t||t.toLowerCase()==="x"||t==="*",Us=(t,e,r)=>N(t)&&!N(e)||N(e)&&r&&!N(r),Xs=(t,e)=>t.trim().split(/\s+/).map(r=>Vs(r,e)).join(" "),Vs=(t,e)=>{let r=e.loose?S[d.TILDELOOSE]:S[d.TILDE];return t.replace(r,(s,n,i,c,u)=>{I("tilde",t,s,n,i,c,u);let f;return N(n)?f="":N(i)?f=`>=${n}.0.0 <${+n+1}.0.0-0`:N(c)?f=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:u?(I("replaceTilde pr",u),f=`>=${n}.${i}.${c}-${u} <${n}.${+i+1}.0-0`):f=`>=${n}.${i}.${c} <${n}.${+i+1}.0-0`,I("tilde return",f),f})},_s=(t,e)=>t.trim().split(/\s+/).map(r=>bs(r,e)).join(" "),bs=(t,e)=>{I("caret",t,e);let r=e.loose?S[d.CARETLOOSE]:S[d.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,c,u,f)=>{I("caret",t,n,i,c,u,f);let $;return N(i)?$="":N(c)?$=`>=${i}.0.0${s} <${+i+1}.0.0-0`:N(u)?i==="0"?$=`>=${i}.${c}.0${s} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.0${s} <${+i+1}.0.0-0`:f?(I("replaceCaret pr",f),i==="0"?c==="0"?$=`>=${i}.${c}.${u}-${f} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u}-${f} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u}-${f} <${+i+1}.0.0-0`):(I("no pr"),i==="0"?c==="0"?$=`>=${i}.${c}.${u} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u} <${+i+1}.0.0-0`),I("caret return",$),$})},Hs=(t,e)=>(I("replaceXRanges",t,e),t.split(/\s+/).map(r=>ks(r,e)).join(" ")),ks=(t,e)=>{t=t.trim();let r=e.loose?S[d.XRANGELOOSE]:S[d.XRANGE];return t.replace(r,(s,n,i,c,u,f)=>{if(I("xRange",t,s,n,i,c,u,f),Us(i,c,u))return t;let $=N(i),m=$||N(c),E=m||N(u),L=E;return n==="="&&L&&(n=""),f=e.includePrerelease?"-0":"",$?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&L?(m&&(c=0),u=0,n===">"?(n=">=",m?(i=+i+1,c=0,u=0):(c=+c+1,u=0)):n==="<="&&(n="<",m?i=+i+1:c=+c+1),n==="<"&&(f="-0"),s=`${n+i}.${c}.${u}${f}`):m?s=`>=${i}.0.0${f} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${c}.0${f} <${i}.${+c+1}.0-0`),I("xRange return",s),s})},Bs=(t,e)=>(I("replaceStars",t,e),t.trim().replace(S[d.STAR],"")),Ys=(t,e)=>(I("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?d.GTE0PRE:d.GTE0],"")),Ms=t=>(e,r,s,n,i,c,u,f,$,m,E,L)=>(N(s)?r="":N(n)?r=`>=${s}.0.0${t?"-0":""}`:N(i)?r=`>=${s}.${n}.0${t?"-0":""}`:c?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,N($)?f="":N(m)?f=`<${+$+1}.0.0-0`:N(E)?f=`<${$}.${+m+1}.0-0`:L?f=`<=${$}.${m}.${E}-${L}`:t?f=`<${$}.${m}.${+E+1}-0`:f=`<=${f}`,`${r} ${f}`.trim()),Ws=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(I(t[s].semver),t[s].semver!==se.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=p((So,dr)=>{"use strict";o();var D=Symbol("SemVer ANY"),oe=class t{static get ANY(){return D}constructor(e,r){if(r=mr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ie("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ie("comp",this)}parse(e){let r=this.options.loose?Ir[Lr.COMPARATORLOOSE]:Ir[Lr.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Nr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ie("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new Nr(e,this.options)}catch{return!1}return ne(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Or(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Or(this.value,r).test(e.semver):(r=mr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ne(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ne(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};dr.exports=oe;var mr=y(),{safeRe:Ir,t:Lr}=P(),ne=ee(),ie=v(),Nr=O(),Or=A()});var G=p((Ao,Sr)=>{"use strict";o();var zs=A(),Ks=(t,e,r)=>{try{e=new zs(e,r)}catch{return!1}return e.test(t)};Sr.exports=Ks});var Ar=p((wo,Tr)=>{"use strict";o();var Zs=A(),Js=(t,e)=>new Zs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Tr.exports=Js});var wr=p((Po,qr)=>{"use strict";o();var Qs=O(),en=A(),rn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new en(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===-1)&&(s=c,n=new Qs(s,r))}),s};qr.exports=rn});var Pr=p((xo,gr)=>{"use strict";o();var tn=O(),sn=A(),nn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new sn(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===1)&&(s=c,n=new tn(s,r))}),s};gr.exports=nn});var Cr=p((Do,xr)=>{"use strict";o();var ce=O(),on=A(),vr=x(),cn=(t,e)=>{t=new on(t,e);let r=new ce("0.0.0");if(t.test(r)||(r=new ce("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(c=>{let u=new ce(c.semver.version);switch(c.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||vr(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),i&&(!r||vr(r,i))&&(r=i)}return r&&t.test(r)?r:null};xr.exports=cn});var Gr=p((yo,Dr)=>{"use strict";o();var ln=A(),an=(t,e)=>{try{return new ln(t,e).range||"*"}catch{return null}};Dr.exports=an});var Y=p((jo,Ur)=>{"use strict";o();var un=O(),jr=C(),{ANY:fn}=jr,En=A(),hn=G(),yr=x(),Fr=_(),pn=H(),Rn=b(),$n=(t,e,r,s)=>{t=new un(t,s),e=new En(e,s);let n,i,c,u,f;switch(r){case">":n=yr,i=pn,c=Fr,u=">",f=">=";break;case"<":n=Fr,i=Rn,c=yr,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hn(t,e,s))return!1;for(let $=0;$<e.set.length;++$){let m=e.set[$],E=null,L=null;if(m.forEach(h=>{h.semver===fn&&(h=new jr(">=0.0.0")),E=E||h,L=L||h,n(h.semver,E.semver,s)?E=h:c(h.semver,L.semver,s)&&(L=h)}),E.operator===u||E.operator===f||(!L.operator||L.operator===u)&&i(t,L.semver))return!1;if(L.operator===f&&c(t,L.semver))return!1}return!0};Ur.exports=$n});var Vr=p((Xo,Xr)=>{"use strict";o();var mn=Y(),In=(t,e,r)=>mn(t,e,">",r);Xr.exports=In});var br=p((_o,_r)=>{"use strict";o();var Ln=Y(),Nn=(t,e,r)=>Ln(t,e,"<",r);_r.exports=Nn});var Br=p((Ho,kr)=>{"use strict";o();var Hr=A(),On=(t,e,r)=>(t=new Hr(t,r),e=new Hr(e,r),t.intersects(e,r));kr.exports=On});var Mr=p((Bo,Yr)=>{"use strict";o();var dn=G(),Sn=T();Yr.exports=(t,e,r)=>{let s=[],n=null,i=null,c=t.sort((m,E)=>Sn(m,E,r));for(let m of c)dn(m,e,r)?(i=m,n||(n=m)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let u=[];for(let[m,E]of s)m===E?u.push(m):!E&&m===c[0]?u.push("*"):E?m===c[0]?u.push(`<=${E}`):u.push(`${m} - ${E}`):u.push(`>=${m}`);let f=u.join(" || "),$=typeof e.raw=="string"?e.raw:String(e);return f.length<$.length?f:e}});var Qr=p((Mo,Jr)=>{"use strict";o();var Wr=A(),ue=C(),{ANY:le}=ue,ae=G(),fe=T(),Tn=(t,e,r={})=>{if(t===e)return!0;t=new Wr(t,r),e=new Wr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let c=qn(n,i,r);if(s=s||c!==null,c)continue e}if(s)return!1}return!0},An=[new ue(">=0.0.0-0")],zr=[new ue(">=0.0.0")],qn=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=An:t=zr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=zr}let s=new Set,n,i;for(let h of t)h.operator===">"||h.operator===">="?n=Kr(n,h,r):h.operator==="<"||h.operator==="<="?i=Zr(i,h,r):s.add(h.semver);if(s.size>1)return null;let c;if(n&&i){if(c=fe(n.semver,i.semver,r),c>0)return null;if(c===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let h of s){if(n&&!ae(h,String(n),r)||i&&!ae(h,String(i),r))return null;for(let st of e)if(!ae(h,String(st),r))return!1;return!0}let u,f,$,m,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,L=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let h of e){if(m=m||h.operator===">"||h.operator===">=",$=$||h.operator==="<"||h.operator==="<=",n){if(L&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===L.major&&h.semver.minor===L.minor&&h.semver.patch===L.patch&&(L=!1),h.operator===">"||h.operator===">="){if(u=Kr(n,h,r),u===h&&u!==n)return!1}else if(n.operator===">="&&!h.test(n.semver))return!1}if(i){if(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator==="<"||h.operator==="<="){if(f=Zr(i,h,r),f===h&&f!==i)return!1}else if(i.operator==="<="&&!h.test(i.semver))return!1}if(!h.operator&&(i||n)&&c!==0)return!1}return!(n&&$&&!i&&c!==0||i&&m&&!n&&c!==0||L||E)},Kr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Zr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Jr.exports=Tn});var Ei=p((zo,tt)=>{"use strict";o();var Ee=P(),et=g(),wn=O(),rt=z(),gn=w(),Pn=Ae(),vn=we(),xn=ve(),Cn=De(),Dn=ye(),Gn=je(),yn=Xe(),Fn=_e(),jn=T(),Un=Be(),Xn=Me(),Vn=V(),_n=Ze(),bn=Qe(),Hn=x(),kn=_(),Bn=J(),Yn=Q(),Mn=b(),Wn=H(),zn=ee(),Kn=lr(),Zn=ur(),Jn=C(),Qn=A(),ei=G(),ri=Ar(),ti=wr(),si=Pr(),ni=Cr(),ii=Gr(),oi=Y(),ci=Vr(),li=br(),ai=Br(),ui=Mr(),fi=Qr();tt.exports={parse:gn,valid:Pn,clean:vn,inc:xn,diff:Cn,major:Dn,minor:Gn,patch:yn,prerelease:Fn,compare:jn,rcompare:Un,compareLoose:Xn,compareBuild:Vn,sort:_n,rsort:bn,gt:Hn,lt:kn,eq:Bn,neq:Yn,gte:Mn,lte:Wn,cmp:zn,coerce:Kn,truncate:Zn,Comparator:Jn,Range:Qn,satisfies:ei,toComparators:ri,maxSatisfying:ti,minSatisfying:si,minVersion:ni,validRange:ii,outside:oi,gtr:ci,ltr:li,intersects:ai,simplifyRange:ui,subset:fi,SemVer:wn,re:Ee.re,src:Ee.src,tokens:Ee.t,SEMVER_SPEC_VERSION:et.SEMVER_SPEC_VERSION,RELEASE_TYPES:et.RELEASE_TYPES,compareIdentifiers:rt.compareIdentifiers,rcompareIdentifiers:rt.rcompareIdentifiers}});export{Ei as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-NBYS6YQ2.js";import{a as oe}from"./chunk-LCCMXY6N.js";import{a as se}from"./chunk-T5MK7ZSF.js";import{a as z}from"./chunk-DCK2FX6J.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-WCWNI3ZV.js";import{da as Z}from"./chunk-VICNWPLQ.js";import{z as G}from"./chunk-4V4DQ6W7.js";import{b as Y,c as K}from"./chunk-4KRT35A2.js";import{i as H,u as Q}from"./chunk-MGL4YM3S.js";import{d as _}from"./chunk-BHWEA4V2.js";import{r as _e}from"./chunk-3YWUSKWF.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-VPL2NDH6.js";import{j as V}from"./chunk-IU2ZQ6TE.js";import{e as N,g as E}from"./chunk-VPRTJUIN.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
1
|
+
import{A as x,a as ne,b as ie,c as L,d as ae,e as le,g as P,i as v,j as ce,k as ue,m as pe,n as me,o as fe,r as de,s as ge,t as Ee,u as he,v as U,w as ye,x as Te,y as we,z as A}from"./chunk-25HJX3L2.js";import{a as oe}from"./chunk-OZBY45KT.js";import{a as se}from"./chunk-EKVTNWHM.js";import{a as z}from"./chunk-5BKCIDMS.js";import{F as X,Fa as re,_ as ee,ba as te,m as W}from"./chunk-4QTEPWEJ.js";import{ea as Z}from"./chunk-UTO4Z6P6.js";import{z as G}from"./chunk-G4OQABDT.js";import{b as Y,c as K}from"./chunk-OXJBYKMX.js";import{i as H,u as Q}from"./chunk-NTRAWIEJ.js";import{d as _}from"./chunk-TPCG6DCA.js";import{r as _e}from"./chunk-T6CC5WUU.js";import{Lb as M,Mb as S,da as $,eb as F,fb as f,gb as o}from"./chunk-7FQFEB33.js";import{j as V}from"./chunk-773TIA5M.js";import{e as N,g as E}from"./chunk-VKWPEFWQ.js";E();E();E();E();E();E();var C=N(F(),1);function be(t){let s=(0,C.useRef)(t);(0,C.useEffect)(()=>{s.current=t},[t]),(0,C.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:a})=>{a&&(n=setTimeout(i,a))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}E();var B=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:l})=>{let a=await i.appLogs({jwtToken:t,cursor:s},l),{errors:p,status:u}=a;if(u!==200){if(u===401||u===429||u>=500)return{errors:p.map(T=>({status:u,message:T}))};throw new _(`${p.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=a,d=Ce(c,n);return{cursor:r,appLogs:d}};function Ce(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let l=s.status===void 0?!0:i.status===s.status,a=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return l&&a})),n}var b=N(F(),1);async function Fe({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:l,setErrors:a,setAppLogOutputs:p,resubscribeCallback:u,developerPlatformClient:r}){let c=t,d=P,T=s,R=await B({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:l}),m="not_attempted",w=R;if(w.errors){let h=await U({response:w,onThrottle:g=>{a(["Request throttled while polling app logs.",`Retrying in ${g/1e3}s`])},onUnknownError:g=>{a(["Error while polling app logs",`Retrying in ${g/1e3}s`])},onResubscribe:()=>u()});m=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),d=h.retryIntervalMs}else{a(g=>g.length?[]:g);let{appLogs:h}=R;if(T=R.cursor,h)for(let g of h){let y,k,q,j=i.get(g.shop_id.toString());if(j===void 0)continue;switch(g.log_type){case ue:y=de(g.payload),k=`export "${y.export}" executed in ${(y.fuelConsumed/ce).toFixed(4)}M instructions`;break;case pe:y=ge(g.payload),k="network access response retrieved from cache";break;case me:y=Ee(g.payload),k="network access request executing in background";break;case fe:y=he(g.payload),q=y.connectTimeMs&&y.writeReadTimeMs?y.connectTimeMs+y.writeReadTimeMs:null,k=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let ke={status:g.status==="success"?"Success":"Failure",source:g.source,storeName:j,description:k,logTimestamp:$(g.log_timestamp)};y&&p(Ne=>[...Ne,{appLog:y,prefix:ke}])}}return{nextJwtToken:c,retryIntervalMs:d,cursor:T??s,resubscribeResult:m}}function Re({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a}){let[p,u]=(0,b.useState)([]),[r,c]=(0,b.useState)([]),d=(0,b.useRef)(t),T=(0,b.useRef)(0),R=(0,b.useRef)(""),m=(0,b.useRef)(0),w=(0,b.useCallback)(async()=>{let h=await Fe({jwtToken:d.current,cursor:R.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:l,organizationId:a});if(h.resubscribeResult==="failed"){if(m.current+=1,m.current>=v)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(m.current=0);return d.current=h.nextJwtToken,R.current=h.cursor,T.current=h.retryIntervalMs,{retryIntervalMs:T.current}},[]);return be(w),{appLogOutputs:r,errors:p}}var e=N(F(),1);var Me=t=>{switch(t){case L.NoCachedResponse:return"No cached response available";case L.CacheAboutToExpire:return"Cache is about to expire";case L.Unknown:return"Unknown reason"}},xe=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a})=>{let{appLogOutputs:p,errors:u}=Re({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:l,organizationId:a});return e.default.createElement(e.default.Fragment,null,p.map(({appLog:r,prefix:c},d)=>e.default.createElement(f,{flexDirection:"column",key:d},e.default.createElement(f,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(f,{flexDirection:"column",marginLeft:4},r instanceof ne&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(f,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(f,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(f,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(f,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ie&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ae&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Me(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof le&&e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(f,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(f,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(f,{key:c},e.default.createElement(o,{color:"red"},r)))))};var Ie=N(F(),1);async function Se({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l}){let a=async()=>A(n,s,l);return H(Ie.default.createElement(xe,{pollOptions:t,resubscribeCallback:a,storeNameById:i,developerPlatformClient:n,organizationId:l}))}E();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:a=0}){let p=await B({pollOptions:t,developerPlatformClient:n,organizationId:l}),u=P,r=t.jwtToken,c=a,d=p;if(d.errors){let m=await U({response:d,onThrottle:w=>{S(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{S(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,l)});if(m.resubscribeResult==="failed"){if(c+=1,c>=v){S(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else m.resubscribeResult==="succeeded"&&(c=0);m.nextJwtToken&&(r=m.nextJwtToken),u=m.retryIntervalMs}else c=0;let{cursor:T,appLogs:R}=p;R&&R.forEach(m=>{let w=i.get(m.shop_id?.toString());w!==void 0&&M(Te({appLog:m,appLogPayload:we(m.payload,m.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:T??t.cursor,filters:t.filters},storeNameById:i,organizationId:l,consecutiveResubscribeFailures:c}).catch(m=>{throw m})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,l=await Le(t),a=ye(s);if(a.length===0)throw new _("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let d=t.sources.filter(T=>!a.includes(T));if(d.length)throw new _(`Invalid sources: ${d.join(", ")}. Valid sources are: ${a.join(", ")}`)}let p={shopIds:l.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,p,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"?(M(JSON.stringify({subscribedToStores:t.storeFqdns})),S(JSON.stringify({message:"Waiting for app logs..."})),await D({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id})):(S(`Waiting for app logs...
|
|
2
2
|
`),await Se({options:{variables:p,developerPlatformClient:i},pollOptions:c,storeNameById:l.storeNameById,organizationId:t.organization.id}))}async function Le(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:l,organization:a}=t,p=V(s.configPath);t.format==="text"&&Pe(n.title,l.shopDomain,t.storeFqdns,p,a.businessName);let u=new Map;return u.set(l.shopId,l.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let d=await Z(a,c,i);u.set(d.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Pe(t,s,n,i,l){let a=[];n&&n.length>0?n.forEach(u=>a.push(u)):a.push(s);let p=i?W(i):void 0;Q({headline:i?`Using ${p} for default values:`:"Using these settings:",body:ee({appName:t,org:l,devStores:a,messages:[te]})})}var O=N(_e(),1);var J,I=class extends se{async run(){let{flags:s}=await this.parse(J);await X(s.path);let n=await re({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await oe({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),l={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(l),{app:n.app}}};J=I;I.summary="Stream detailed logs for your Shopify app.";I.descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";I.description=J.descriptionWithoutMarkdown();I.flags={...Y,...z,...K,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async t=>G(t)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};var _t=I;export{_t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r}from"./chunk-
|
|
1
|
+
import{b as r}from"./chunk-JCIN73BE.js";import{b as a}from"./chunk-HOSFU6UP.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var i=class extends a{static{this.summary="Upgrades Shopify CLI."}static{this.descriptionWithMarkdown="Upgrades Shopify CLI using your package manager."}static{this.description=this.descriptionWithoutMarkdown()}async run(){await r()}};export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as we,t as ge}from"./chunk-
|
|
1
|
+
import{k as we,t as ge}from"./chunk-5XDQ76DQ.js";import{M as fe,O as de,o as L,va as y,xa as C}from"./chunk-G4OQABDT.js";import{a as ue}from"./chunk-VPPWSKOY.js";import{P as pe,x as le,y as he}from"./chunk-NTRAWIEJ.js";import{d as R}from"./chunk-TPCG6DCA.js";import{Fb as F,Hb as ye,Pb as h}from"./chunk-7FQFEB33.js";import{u as me}from"./chunk-S5IFJ737.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();function _e(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,n);for(let[r,n]of Object.entries(e.replaceExtensionTemplates??[])){let o=r.split("/")[0];t.append(`replace_extension_templates[${o}][${r}]`,n)}return t.append("_method",e.method),t}function S(){return{"User-Agent":`Shopify CLI; v=${ue}`}}function W(e){return delete e.cookie,delete e.authorization,e}l();function T(e){let t={};return e.split(";").forEach(r=>{let n=r.match(/(.*?)=(.*)$/)??[],o=n[1]?.trim(),s=n[2]?.trim()??"";o&&(t[o]=s)}),t}function I(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var k=class extends R{};async function $r(e){return ge(e)}async function jr(e,t){let r=Ce(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),C("theme-service:storefront-session:check-storefront-password");let o=await L(`${r}/password`,{headers:{"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded"},body:n.toString(),method:"POST",redirect:"manual"});if(o.status===429)throw y(new R(`Too many incorrect password attempts. Please try again after ${o.headers.get("retry-after")} seconds.`));return Ee(o,r)}async function Re(e,t,r,n,o={}){let s={},a=await be(e,r,o),c=Ce(t);if(s._shopify_essential=a,C(`theme-service:storefront-session:is-password-protected:${!!n}`),!n)return s;let i=await rt(a,e,c,n,o);return{...s,...i}}async function be(e,t,r,n=1){let o=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${o}`;C("theme-service:storefront-session:get-session-essential-cookie");let a=await L(s,{method:"HEAD",redirect:"manual",headers:{...r,...S()}}),c=a.headers.raw()["set-cookie"]??[],i=z(c,"_shopify_essential");if(!i){if(h(`Failed to obtain _shopify_essential cookie.
|
|
2
2
|
|
|
3
3
|
-Request ID: ${a.headers.get("x-request-id")??"unknown"}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i,i as r,p as s}from"./chunk-
|
|
1
|
+
import{d as i,i as r,p as s}from"./chunk-773TIA5M.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-C5IV2YDQ.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-AIKYSHWL.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-Q4PWEMFD.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-VL4KZWV2.js");return o[n]}}export{D as a};
|