@shopify/cli 4.8.4 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-QK4RFCB6.js +1 -0
- package/dist/analytics-R6I5APDB.js +1 -0
- package/dist/assets/hydrogen/starter/package.json +1 -1
- package/dist/bootstrap.js +1 -3
- package/dist/chunk-22LJALHJ.js +7 -0
- package/dist/{chunk-APUYMORT.js → chunk-23K3B23N.js} +1 -1
- package/dist/chunk-2KLXRVGQ.js +317 -0
- package/dist/{chunk-QXR5DJC2.js → chunk-2LZQM5JG.js} +1 -1
- package/dist/chunk-2OHSGC4Q.js +1 -0
- package/dist/chunk-2Q3WIH7S.js +6 -0
- package/dist/{chunk-FRRA5MI2.js → chunk-2W6M7YDY.js} +1 -1
- package/dist/{chunk-NHOF2IN6.js → chunk-2YFB3PTV.js} +9 -9
- package/dist/chunk-2YRVHJEY.js +4 -0
- package/dist/{chunk-3CZ7DKE5.js → chunk-3AASYIOA.js} +3 -3
- package/dist/chunk-3DMDSAWK.js +20 -0
- package/dist/{chunk-KWQGJ3VC.js → chunk-3SG5EJFC.js} +1 -1
- package/dist/chunk-3T2WMZHC.js +1 -0
- package/dist/{chunk-773TIA5M.js → chunk-3VYOLEQE.js} +2 -2
- package/dist/chunk-3WVEL423.js +1 -0
- package/dist/{chunk-SVYHWGMI.js → chunk-3ZK5JZLY.js} +1 -1
- package/dist/chunk-44QTWXOJ.js +8 -0
- package/dist/{chunk-4QBJ5JBX.js → chunk-4A7FPJVT.js} +16 -15
- package/dist/chunk-4TQFTZVD.js +18 -0
- package/dist/chunk-4WACZNFF.js +1 -0
- package/dist/{chunk-RIM7FNP3.js → chunk-4XSYMLQG.js} +1 -1
- package/dist/{chunk-EJJPEWSB.js → chunk-4Y22EM45.js} +1 -1
- package/dist/chunk-53U6XS3J.js +1 -0
- package/dist/chunk-55NKAIIT.js +1 -0
- package/dist/chunk-55PABKRC.js +5 -0
- package/dist/chunk-5BLXN5WU.js +1 -0
- package/dist/{chunk-LAMTFOVF.js → chunk-5BYVVXGD.js} +1 -1
- package/dist/{chunk-Z5KYKXMH.js → chunk-5HEBS5DG.js} +3 -3
- package/dist/{chunk-LEW5IJK6.js → chunk-5HONV6NQ.js} +1 -1
- package/dist/chunk-5RL6DKWR.js +5 -0
- package/dist/chunk-5XO6PAMV.js +1 -0
- package/dist/chunk-6DHY67FO.js +6 -0
- package/dist/{chunk-6QADNGH4.js → chunk-6GA56I3E.js} +1 -1
- package/dist/chunk-6IL3B5Z5.js +4 -0
- package/dist/{chunk-RHBLXZGU.js → chunk-6ILP6QCH.js} +1 -1
- package/dist/{chunk-H7TDIRIU.js → chunk-6RBCFXJT.js} +1 -1
- package/dist/{chunk-WAJRWCZY.js → chunk-72HS7MHV.js} +1 -1
- package/dist/{chunk-SPNM3GES.js → chunk-74HXMIDM.js} +1 -1
- package/dist/{chunk-ZAH6QID2.js → chunk-77B77IGP.js} +1 -1
- package/dist/chunk-7DRKDQRT.js +1 -0
- package/dist/chunk-7HDJBEBP.js +3 -0
- package/dist/chunk-7IGMIDKK.js +15 -0
- package/dist/chunk-7QQPAT4L.js +1 -0
- package/dist/chunk-7Y4X5I6N.js +1 -0
- package/dist/{chunk-WGFGWDWP.js → chunk-7ZSN2QT5.js} +1 -1
- package/dist/chunk-A54V5UCD.js +5 -0
- package/dist/{chunk-VETLNJ56.js → chunk-AD4S2VEI.js} +1 -1
- package/dist/chunk-ADW7ECNU.js +7 -0
- package/dist/chunk-AS2O62JX.js +1 -0
- package/dist/chunk-ASUARYJD.js +1 -0
- package/dist/chunk-B4RPJYDH.js +1 -0
- package/dist/{chunk-ZCNNJCTQ.js → chunk-BJOJNAKH.js} +1 -1
- package/dist/chunk-BL5JWD3Y.js +16 -0
- package/dist/chunk-BOFCBTX7.js +1 -0
- package/dist/chunk-BPIQ4YTW.js +1 -0
- package/dist/chunk-C6FZII5S.js +1 -0
- package/dist/{chunk-NBXXTQWA.js → chunk-CACPRKUF.js} +1 -1
- package/dist/{chunk-QVO5CAJN.js → chunk-CHLSNYF7.js} +1 -1
- package/dist/chunk-CMICT4XI.js +1 -0
- package/dist/chunk-CPFAATMO.js +6 -0
- package/dist/{chunk-CSOCXWP6.js → chunk-CSRNHTHO.js} +2 -2
- package/dist/chunk-D3K42KBL.js +9 -0
- package/dist/chunk-DGMRL5DQ.js +1 -0
- package/dist/chunk-DKJPE42V.js +2 -0
- package/dist/{chunk-AIILEPSK.js → chunk-DYA5UUXL.js} +1 -1
- package/dist/chunk-E5ND6RBL.js +1 -0
- package/dist/{chunk-XKHKXUQY.js → chunk-E75DJTAF.js} +1 -1
- package/dist/chunk-ECEOBSGD.js +1 -0
- package/dist/{chunk-NDT3F2PR.js → chunk-EYSZRIUL.js} +1 -1
- package/dist/chunk-FCULF3JA.js +1 -0
- package/dist/chunk-FL34EOXG.js +1 -0
- package/dist/chunk-FW5HGFSZ.js +20 -0
- package/dist/{chunk-XRJCD3AO.js → chunk-G54BKNIX.js} +1 -1
- package/dist/{chunk-74CYT3VX.js → chunk-G7OIACY5.js} +1 -1
- package/dist/{chunk-IHH5XTPV.js → chunk-GALDYSEX.js} +1 -1
- package/dist/{chunk-A5U4KKNV.js → chunk-GDQLA5NB.js} +1 -1
- package/dist/{chunk-6A3TDSON.js → chunk-GJJBOCKD.js} +3 -3
- package/dist/{chunk-TAY7HU7X.js → chunk-GQZPGTG7.js} +20 -20
- package/dist/{chunk-XHXKPRF5.js → chunk-GVRFO4CV.js} +1 -1
- package/dist/chunk-HB3MJYBK.js +1 -0
- package/dist/{chunk-AEUCDGTB.js → chunk-HDQXFGYG.js} +1 -1
- package/dist/chunk-HSTNTHWM.js +1 -0
- package/dist/{chunk-A3U7JDUC.js → chunk-HSZC2LBB.js} +1 -1
- package/dist/chunk-I4FGM6UH.js +8 -0
- package/dist/chunk-I7GYNNCU.js +6 -0
- package/dist/{chunk-ZVA5F4QC.js → chunk-IBTQO3JD.js} +1 -1
- package/dist/{chunk-XWXAFJFC.js → chunk-IISE7SBT.js} +1 -1
- package/dist/chunk-IUZZWXJG.js +3 -0
- package/dist/chunk-IWML2HLC.js +5 -0
- package/dist/{chunk-CTNBSUVU.js → chunk-JA2QZ635.js} +2 -2
- package/dist/chunk-JOJRABPY.js +3 -0
- package/dist/chunk-JQKB3D37.js +1 -0
- package/dist/chunk-JROJL6RV.js +1 -0
- package/dist/{chunk-GINXNPAR.js → chunk-JTPVSO6Y.js} +1 -1
- package/dist/chunk-JWDUSMCA.js +1 -0
- package/dist/{chunk-CBMX6XI7.js → chunk-KLYJDAP6.js} +1 -1
- package/dist/{chunk-4HOJJCZ6.js → chunk-KVROYIUQ.js} +1 -1
- package/dist/chunk-L5XWYTHY.js +836 -0
- package/dist/chunk-LOTGSNS5.js +2 -0
- package/dist/{chunk-FGRW7GT4.js → chunk-LQLFMDVD.js} +1 -1
- package/dist/{chunk-7LZ34C4S.js → chunk-LSWFHTJT.js} +1 -1
- package/dist/{chunk-HYPY5WH6.js → chunk-LV2IWYGL.js} +1 -1
- package/dist/{chunk-W4SGAPPR.js → chunk-LYPNQFWX.js} +1 -1
- package/dist/{chunk-U6URYCC6.js → chunk-MRVQ6XRW.js} +1 -1
- package/dist/chunk-MVVHISCR.js +2 -0
- package/dist/{chunk-UJBMY5WR.js → chunk-N4DE5H65.js} +1 -1
- package/dist/{chunk-W6ST525S.js → chunk-N56BJ3F7.js} +1 -1
- package/dist/{chunk-W4SQE6NR.js → chunk-NF7MOA4K.js} +1 -1
- package/dist/{chunk-7KLPRSQR.js → chunk-NGN7U2UF.js} +1 -1
- package/dist/{chunk-TCFGEOE4.js → chunk-NTVEJYKI.js} +1 -1
- package/dist/chunk-NYABB6XW.js +1 -0
- package/dist/{chunk-DH3DMUE2.js → chunk-O6E7YL7N.js} +2 -2
- package/dist/chunk-OASB6XPV.js +16 -0
- package/dist/{chunk-WY7QF7VU.js → chunk-OBYY45BX.js} +1 -1
- package/dist/chunk-OETFY7FE.js +28 -0
- package/dist/{chunk-QZEDYQVT.js → chunk-OEZATTOS.js} +1 -1
- package/dist/{chunk-D6LQ56XT.js → chunk-OG7SF4FU.js} +1 -1
- package/dist/chunk-OM243CQ6.js +6 -0
- package/dist/chunk-P3Z5RLVV.js +3 -0
- package/dist/{chunk-HINK4QAR.js → chunk-PBBZNGS4.js} +1 -1
- package/dist/chunk-PGTKKP2B.js +11 -0
- package/dist/chunk-PK4ID32C.js +1 -0
- package/dist/{chunk-7FVCUY54.js → chunk-PVOWU77O.js} +1 -1
- package/dist/{chunk-66HW6J57.js → chunk-PXD2WJOI.js} +3 -3
- package/dist/chunk-PXXTSW6I.js +4 -0
- package/dist/{chunk-AU7GNCOK.js → chunk-PZHE37Z4.js} +1 -1
- package/dist/{chunk-TA2M37OB.js → chunk-Q34PKJRR.js} +1 -1
- package/dist/{chunk-S5H5U3PR.js → chunk-Q3O3AFZT.js} +1 -1
- package/dist/chunk-Q45XAEG2.js +16 -0
- package/dist/{chunk-QKTBYAUD.js → chunk-QAXFCAOV.js} +5 -5
- package/dist/{chunk-FY47X4NG.js → chunk-QBGSSUJP.js} +1 -1
- package/dist/chunk-QILWHHAQ.js +1 -0
- package/dist/chunk-QJST4LZX.js +1 -0
- package/dist/chunk-QQN4PJZD.js +1 -0
- package/dist/{chunk-6P5FGN6P.js → chunk-QSKOR3ED.js} +1 -1
- package/dist/{chunk-FRVRTOTF.js → chunk-QTEWTPAQ.js} +2 -2
- package/dist/chunk-QWDJRSJJ.js +1 -0
- package/dist/{chunk-GTAYTMCP.js → chunk-R757TSQ6.js} +1 -1
- package/dist/chunk-RCIU7NHA.js +1 -0
- package/dist/chunk-RGIUP4FW.js +1 -0
- package/dist/{chunk-RDS2WYQH.js → chunk-RHNFWHFY.js} +1 -1
- package/dist/{chunk-VG3YVCZW.js → chunk-S7536EWZ.js} +4 -4
- package/dist/{chunk-VBICZDA4.js → chunk-SDFO7P2M.js} +1 -1
- package/dist/{chunk-JQPPLSFT.js → chunk-SDJNAUU6.js} +1 -1
- package/dist/chunk-SGBLCVUX.js +1 -0
- package/dist/chunk-SJARQZVN.js +3 -0
- package/dist/chunk-SKRUMRB4.js +383 -0
- package/dist/{chunk-5Z6EW3FA.js → chunk-SW5EWGBJ.js} +1 -1
- package/dist/chunk-SXPWOYLT.js +7 -0
- package/dist/chunk-T234RERA.js +7 -0
- package/dist/chunk-TJJVX7CU.js +4 -0
- package/dist/{chunk-L4LDNEFK.js → chunk-TMV37ENR.js} +1 -1
- package/dist/{chunk-BYX7SQPM.js → chunk-TNXZWQZU.js} +1 -1
- package/dist/{chunk-67QK26HI.js → chunk-TO7TXDLU.js} +1 -1
- package/dist/chunk-TSLZNTFM.js +3 -0
- package/dist/{chunk-BG7QQU23.js → chunk-UFU2LGFK.js} +1 -1
- package/dist/chunk-VDDNDA5K.js +15 -0
- package/dist/{chunk-T4V7KOGJ.js → chunk-VFO5OYQ4.js} +1 -1
- package/dist/{chunk-HXVUDGLH.js → chunk-VFP3PUGZ.js} +24 -24
- package/dist/{chunk-6QDOCBD4.js → chunk-VZUHMW5E.js} +4 -3
- package/dist/chunk-W7CBJNXD.js +12 -0
- package/dist/chunk-WCAGYCT7.js +4 -0
- package/dist/{chunk-DPNZWBT5.js → chunk-WNO2V53C.js} +1 -1
- package/dist/{chunk-Y4BBTWM5.js → chunk-WPUQTUDX.js} +1 -1
- package/dist/chunk-WU7MSL3I.js +8 -0
- package/dist/chunk-WXV35TPE.js +1 -0
- package/dist/{chunk-2WATX3XV.js → chunk-XBSWZ6BT.js} +6 -6
- package/dist/chunk-XCNJL7ES.js +1 -0
- package/dist/{chunk-C4Y7PQDQ.js → chunk-XFZDFDZV.js} +1 -1
- package/dist/chunk-XTYSJIZY.js +1 -0
- package/dist/chunk-Y5ZN62VF.js +1 -0
- package/dist/{chunk-PNNW7YQG.js → chunk-YAH5WFYR.js} +3 -3
- package/dist/{chunk-DUNE3INK.js → chunk-YBQKJHZW.js} +1 -1
- package/dist/chunk-YD66PU3Y.js +1 -0
- package/dist/chunk-YGFEUXKQ.js +1 -0
- package/dist/chunk-YJWNM4XO.js +18 -0
- package/dist/{chunk-L3JBKCAS.js → chunk-YQQHBFMA.js} +1 -1
- package/dist/chunk-YRHFPXC3.js +1 -0
- package/dist/chunk-YTJ3EPD3.js +1 -0
- package/dist/chunk-YX5GRXRS.js +2368 -0
- package/dist/chunk-Z35PUKKP.js +7 -0
- package/dist/{chunk-7VQBIGJB.js → chunk-Z3XIZMEM.js} +1 -1
- package/dist/chunk-ZGASBRSQ.js +5 -0
- package/dist/{chunk-OY6L7J53.js → chunk-ZHJ6KA43.js} +1 -1
- package/dist/{chunk-YHTONNIZ.js → chunk-ZO4IBP4B.js} +1 -1
- package/dist/chunk-ZOYSMJ27.js +1 -0
- package/dist/chunk-ZPCCSPAE.js +3 -0
- package/dist/chunk-ZSJXZCAW.js +4 -0
- package/dist/{chunk-CP56F5UR.js → chunk-ZSVR5NEO.js} +1 -1
- package/dist/{chunk-JJJIRCQP.js → chunk-ZUVAHONX.js} +1 -1
- package/dist/chunk-ZVDFCUJT.js +2 -0
- 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/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -0
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -0
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -0
- package/dist/cli/commands/app/security/clean.js +1 -0
- package/dist/cli/commands/app/security/instructions.js +1 -0
- package/dist/cli/commands/app/security/record.js +1 -0
- package/dist/cli/commands/app/security/review.js +1 -0
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +16 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +16 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +13 -0
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +13 -0
- 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 +2 -0
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +1 -0
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.d.ts +1 -0
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +431 -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 +11 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +15 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.d.ts +5 -2
- package/dist/cli/help.js +6 -2
- package/dist/cli/services/commands/auth/login/types.d.ts +11 -0
- package/dist/cli/services/commands/auth/login/types.js +7 -0
- package/dist/cli/services/commands/config/autoupgrade/index.d.ts +3 -0
- package/dist/cli/services/commands/config/autoupgrade/index.js +9 -0
- package/dist/cli/services/commands/config/autoupgrade/result.d.ts +2 -0
- package/dist/cli/services/commands/config/autoupgrade/result.js +15 -0
- package/dist/cli/services/commands/config/autoupgrade/types.d.ts +10 -0
- package/dist/cli/services/commands/config/autoupgrade/types.js +7 -0
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -1
- package/dist/cli/services/commands/doc/fetch.js +11 -2
- package/dist/cli/services/commands/help/index.d.ts +3 -0
- package/dist/cli/services/commands/help/index.js +51 -0
- package/dist/cli/services/commands/help/result.d.ts +2 -0
- package/dist/cli/services/commands/help/result.js +6 -0
- package/dist/cli/services/commands/help/types.d.ts +431 -0
- package/dist/cli/services/commands/help/types.js +71 -0
- package/dist/cli/services/commands/search/index.d.ts +2 -0
- package/dist/cli/services/commands/search/index.js +8 -0
- package/dist/cli/services/commands/search/result.d.ts +2 -0
- package/dist/cli/services/commands/search/result.js +12 -0
- package/dist/cli/services/commands/search/types.d.ts +10 -0
- package/dist/cli/services/commands/search/types.js +7 -0
- package/dist/cli/services/commands/version/index.d.ts +2 -0
- package/dist/cli/services/commands/version/index.js +5 -0
- package/dist/cli/services/commands/version/result.d.ts +2 -0
- package/dist/cli/services/commands/version/result.js +6 -0
- package/dist/cli/services/commands/version/types.d.ts +10 -0
- package/dist/cli/services/commands/version/types.js +7 -0
- package/dist/command-json-schema-Y3N2NUZN.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-H3UAVGN5.js → conf-store-5ZA3ILWV.js} +1 -1
- package/dist/custom-oclif-loader-VQKMCXNH.js +1 -0
- package/dist/deprecations-PFQXWNF6.js +1 -0
- package/dist/dist-4X53WJBQ.js +1 -0
- package/dist/dist-5M2V3YCM.js +1 -0
- package/dist/environment-ZUTBXY7U.js +1 -0
- package/dist/environments-3RUZ7F4Q.js +1 -0
- package/dist/error-FBSXLW22.js +1 -0
- package/dist/error-handler-D5BURRJ7.js +1 -0
- package/dist/fs-ZLV5W4TV.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +38 -0
- package/dist/index.js +13 -14
- package/dist/is-global-GZ5CIXQA.js +1 -0
- package/dist/json-error-2BL3UZ7H.js +1 -0
- package/dist/lib-AD2G3QH3.js +1 -0
- package/dist/lib-VEVNMHDE.js +1 -0
- package/dist/lib-ZQW4E7QU.js +1 -0
- package/dist/local-KAZJAYLX.js +1 -0
- package/dist/metadata-M3ZE24WB.js +1 -0
- package/dist/{morph-BMYYMQNX.js → morph-42EXMN3K.js} +3 -3
- package/dist/node-package-manager-RVPONQBY.js +1 -0
- package/dist/notifications-system-MYEMV7JF.js +1 -0
- package/dist/os-DRUILZZR.js +1 -0
- package/dist/output-SDE274Y5.js +1 -0
- package/dist/{path-MBXP7ZIC.js → path-6YMSTSWG.js} +1 -1
- package/dist/system-5FQ3L5PA.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-TEZZM7SE.js +1 -0
- package/dist/uncaught-error-handler.d.ts +6 -0
- package/dist/uncaught-error-handler.js +33 -0
- package/dist/upgrade-3PIVJYBL.js +1 -0
- package/dist/version-FMWTVLMF.js +1 -0
- package/dist/version-IAMVSP7U.js +1 -0
- package/dist/workerd-WRW4ZUYM.js +18 -0
- package/oclif.manifest.json +2646 -226
- package/package.json +17 -8
- package/dist/analytics-M4OC7RPG.js +0 -1
- package/dist/analytics-RGIJMP4U.js +0 -1
- package/dist/chunk-2HW6VRJT.js +0 -2
- package/dist/chunk-2HYR6EUD.js +0 -1
- package/dist/chunk-2IRRFPEY.js +0 -1
- package/dist/chunk-2KD4LHRT.js +0 -5
- package/dist/chunk-2SL443J6.js +0 -1
- package/dist/chunk-2VJ6NBPV.js +0 -15
- package/dist/chunk-2ZROBXJX.js +0 -11
- package/dist/chunk-3DIRCEXA.js +0 -1
- package/dist/chunk-3DT4NS4S.js +0 -4
- package/dist/chunk-3IQ6WXDD.js +0 -3
- package/dist/chunk-43FRAUV6.js +0 -19
- package/dist/chunk-44QD4QNO.js +0 -1
- package/dist/chunk-4DLRS7MT.js +0 -12
- package/dist/chunk-4F3XYIEY.js +0 -1
- package/dist/chunk-4OMKKYFC.js +0 -9
- package/dist/chunk-4ZTRKEA2.js +0 -1
- package/dist/chunk-5DMFEDKY.js +0 -28
- package/dist/chunk-66G2HJ2A.js +0 -3
- package/dist/chunk-6B727IUY.js +0 -5
- package/dist/chunk-6C5AVMKR.js +0 -375
- package/dist/chunk-6CR2EEZ3.js +0 -6
- package/dist/chunk-6V6UNUMM.js +0 -3
- package/dist/chunk-6XLFFOPK.js +0 -1
- package/dist/chunk-A3V2A2I4.js +0 -2
- package/dist/chunk-AQPOPSQ7.js +0 -1
- package/dist/chunk-BAWBC66R.js +0 -5
- package/dist/chunk-BHJ3TGS7.js +0 -1
- package/dist/chunk-BHTHUKHU.js +0 -1
- package/dist/chunk-BV62ZERJ.js +0 -6
- package/dist/chunk-CFQ5G2QS.js +0 -1
- package/dist/chunk-CNK3ZO2B.js +0 -836
- package/dist/chunk-CRALWNNO.js +0 -1
- package/dist/chunk-CVW2HMQO.js +0 -317
- package/dist/chunk-D6QTOQEJ.js +0 -6
- package/dist/chunk-DDZEYA2I.js +0 -8
- package/dist/chunk-DO4SRE4M.js +0 -3
- package/dist/chunk-DZZORIWL.js +0 -4
- package/dist/chunk-EQ2PD2ZA.js +0 -2
- package/dist/chunk-ERBXXVOZ.js +0 -2
- package/dist/chunk-FW3RORD7.js +0 -1
- package/dist/chunk-G2YTINLI.js +0 -6
- package/dist/chunk-GCN4O7HM.js +0 -1
- package/dist/chunk-GGPMDCCB.js +0 -8
- package/dist/chunk-GJHBAOGJ.js +0 -1
- package/dist/chunk-H2HR2AQE.js +0 -7
- package/dist/chunk-HYM3HBDG.js +0 -20
- package/dist/chunk-IHEBV2KO.js +0 -1
- package/dist/chunk-JWHQPDOK.js +0 -3
- package/dist/chunk-JXG2T76F.js +0 -6
- package/dist/chunk-K2DP5Z76.js +0 -1
- package/dist/chunk-KUZ5Z6HM.js +0 -1
- package/dist/chunk-KZU727AL.js +0 -1
- package/dist/chunk-L2DCUVZV.js +0 -1
- package/dist/chunk-L3M7PTHU.js +0 -15
- package/dist/chunk-LBA6FGKC.js +0 -3
- package/dist/chunk-LX5UXWZ7.js +0 -1
- package/dist/chunk-M7VQLMSW.js +0 -1
- package/dist/chunk-MBRFIXCU.js +0 -1705
- package/dist/chunk-MYLMGH7Y.js +0 -1
- package/dist/chunk-NKC3K3XP.js +0 -1
- package/dist/chunk-O72SHE3Q.js +0 -7
- package/dist/chunk-OAG72Q2O.js +0 -1
- package/dist/chunk-OPOPO7DG.js +0 -7
- package/dist/chunk-OUA6EOLX.js +0 -11
- package/dist/chunk-OYCAYEQE.js +0 -7
- package/dist/chunk-PGWQHSDV.js +0 -1
- package/dist/chunk-PM3HRKPR.js +0 -1
- package/dist/chunk-POMWFTBD.js +0 -16
- package/dist/chunk-R3GLEZSE.js +0 -4
- package/dist/chunk-RHNZA4IL.js +0 -5
- package/dist/chunk-SCLGMVNB.js +0 -1
- package/dist/chunk-TU47HMTL.js +0 -1
- package/dist/chunk-UPGRXCFS.js +0 -4
- package/dist/chunk-V2GLAK2W.js +0 -1
- package/dist/chunk-V4774HTF.js +0 -1
- package/dist/chunk-VDGTHMIQ.js +0 -3
- package/dist/chunk-VJ5YOXKL.js +0 -1
- package/dist/chunk-WGUCRVII.js +0 -3
- package/dist/chunk-X4V2CD2H.js +0 -8
- package/dist/chunk-XOYICV6P.js +0 -1
- package/dist/chunk-XYUTD6IU.js +0 -1
- package/dist/chunk-YNFXYVYN.js +0 -2
- package/dist/chunk-Z2HN5L6G.js +0 -6
- package/dist/chunk-ZVJD6CUY.js +0 -18
- package/dist/cli/commands/app/doctor/instructions.js +0 -1
- package/dist/cli/commands/app/doctor.js +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -4
- package/dist/cli/commands/config/autoupgrade/constants.js +0 -1
- package/dist/cli/services/commands/search.d.ts +0 -1
- package/dist/cli/services/commands/search.js +0 -7
- package/dist/cli/services/commands/version.d.ts +0 -1
- package/dist/cli/services/commands/version.js +0 -6
- package/dist/custom-oclif-loader-BWAMUFQ4.js +0 -1
- package/dist/deprecations-TEUM7CML.js +0 -1
- package/dist/dist-62I5X3FS.js +0 -1
- package/dist/dist-YHZ5BTYD.js +0 -1
- package/dist/environments-LAFWOQWO.js +0 -1
- package/dist/error-6ZCGAC5E.js +0 -1
- package/dist/error-handler-JNCW56EC.js +0 -1
- package/dist/fs-QEWOWUPQ.js +0 -1
- package/dist/http-proxy-node16-A6AKKRQH.js +0 -38
- package/dist/is-global-UYMEAGDR.js +0 -1
- package/dist/lib-2BR2WN7L.js +0 -1
- package/dist/lib-M72BVWQ3.js +0 -1
- package/dist/lib-P3APEIHY.js +0 -1
- package/dist/local-Z4ZEMWE4.js +0 -1
- package/dist/metadata-ZCQMB5AB.js +0 -1
- package/dist/node-package-manager-HMOTOBDS.js +0 -1
- package/dist/notifications-system-RT3CY6LZ.js +0 -1
- package/dist/os-G6KDPJMC.js +0 -1
- package/dist/output-BJCZYDNG.js +0 -1
- package/dist/system-T4H2ISV6.js +0 -1
- package/dist/ui-4MQSY5IN.js +0 -1
- package/dist/upgrade-4234MIYJ.js +0 -1
- package/dist/version-FRSRSCRX.js +0 -1
- package/dist/version-RF7QQXRX.js +0 -1
- package/dist/workerd-7E4H2DM3.js +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{a as fo}from"./chunk-RJ5VF3QY.js";import{h as ho,k as po}from"./chunk-OAG72Q2O.js";import{a as Ic}from"./chunk-CX5CC6P5.js";import{Ab as Ve,Ra as Qr,Sa as cr,sb as Fe}from"./chunk-43FRAUV6.js";import{f as mo}from"./chunk-XYUTD6IU.js";import{a as uo,b as lo}from"./chunk-DPNZWBT5.js";import{i as ar}from"./chunk-773TIA5M.js";import{c as g,e as Zr,g as u}from"./chunk-VKWPEFWQ.js";var kt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Ot=class{};q._CodeOrName=Ot;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ke=class extends Ot{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ke;var se=class extends Ot{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ke&&(r[n.str]=(r[n.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function Co(t,...e){let r=[t[0]],n=0;for(;n<e.length;)hn(r,e[n]),r.push(t[++n]);return new se(r)}q._=Co;var fn=new se("+");function Do(t,...e){let r=[Tt(t[0])],n=0;for(;n<e.length;)r.push(fn),hn(r,e[n]),r.push(fn,Tt(t[++n]));return zc(r),new se(r)}q.str=Do;function hn(t,e){e instanceof se?t.push(...e._items):e instanceof Ke?t.push(e):t.push(Uc(e))}q.addCodeArg=hn;function zc(t){let e=1;for(;e<t.length-1;){if(t[e]===fn){let r=Fc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Fc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ke||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ke))return`"${t}${e.slice(1)}`}function Vc(t,e){return e.emptyStr()?t:t.emptyStr()?e:Do`${t}${e}`}q.strConcat=Vc;function Uc(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Tt(Array.isArray(t)?t.join(","):t)}function Lc(t){return new se(Tt(t))}q.stringify=Lc;function Tt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Tt;function Kc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):Co`[${t}]`}q.getProperty=Kc;function Gc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=Gc;function Hc(t){return new se(t.toString())}q.regexpCode=Hc});var yn=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=kt(),pn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},fr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(fr||(Q.UsedValueState=fr={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var hr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=hr;var pr=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${n}]`}};Q.ValueScopeName=pr;var Wc=(0,Z._)`\n`,mn=class extends hr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Wc:Z.nil}}get(){return this._scope}name(e){return new pr(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(e),{prefix:o}=s,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let d=a.get(i);if(d)return d}else a=this._values[o]=new Map;a.set(i,s);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,s.setValue(r,{property:o,itemIndex:l}),s}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Z._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},r,n)}_reduceValues(e,r,n={},s){let o=Z.nil;for(let i in e){let a=e[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,fr.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;o=(0,Z._)`${o}${f} ${l} = ${d};${this.opts._n}`}else if(d=s?.(l))o=(0,Z._)`${o}${d}${this.opts._n}`;else throw new pn(l);c.set(l,fr.Completed)})}return o}};Q.ValueScope=mn});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var O=kt(),le=yn(),ke=kt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return ke._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return ke.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return ke.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return ke.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return ke.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return ke.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return ke.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return ke.Name}});var gr=yn();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return gr.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return gr.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return gr.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return gr.varKinds}});P.operators={GT:new O._Code(">"),GTE:new O._Code(">="),LT:new O._Code("<"),LTE:new O._Code("<="),EQ:new O._Code("==="),NEQ:new O._Code("!=="),NOT:new O._Code("!"),OR:new O._Code("||"),AND:new O._Code("&&"),ADD:new O._Code("+")};var Pe=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},_n=class extends Pe{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?le.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ot(this.rhs,e,r)),this}get names(){return this.rhs instanceof O._CodeOrName?this.rhs.names:{}}},mr=class extends Pe{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof O.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ot(this.rhs,e,r),this}get names(){let e=this.lhs instanceof O.Name?{}:{...this.lhs.names};return _r(e,this.rhs)}},gn=class extends mr{constructor(e,r,n,s){super(e,n,s),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},$n=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},vn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},wn=class extends Pe{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},En=class extends Pe{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ot(this.code,e,r),this}get names(){return this.code instanceof O._CodeOrName?this.code.names:{}}},Rt=class extends Pe{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(e,r)||(Jc(e,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>We(e,r.names),{})}},Ne=class extends Rt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Sn=class extends Rt{},st=class extends Ne{};st.kind="else";var Ge=class t extends Ne{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new st(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Mo(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ot(this.condition,e,r),this}get names(){let e=super.names;return _r(e,this.condition),this.else&&We(e,this.else.names),e}};Ge.kind="if";var He=class extends Ne{};He.kind="for";var bn=class extends He{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ot(this.iteration,e,r),this}get names(){return We(super.names,this.iteration.names)}},Pn=class extends He{constructor(e,r,n,s){super(),this.varKind=e,this.name=r,this.from=n,this.to=s}render(e){let r=e.es5?le.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${r} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=_r(super.names,this.from);return _r(e,this.to)}},yr=class extends He{constructor(e,r,n,s){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ot(this.iterable,e,r),this}get names(){return We(super.names,this.iterable.names)}},jt=class extends Ne{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jt.kind="func";var qt=class extends Rt{render(e){return"return "+super.render(e)}};qt.kind="return";var Nn=class extends Ne{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,s;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(s=this.finally)===null||s===void 0||s.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&We(e,this.catch.names),this.finally&&We(e,this.finally.names),e}},At=class extends Ne{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};At.kind="catch";var Ct=class extends Ne{render(e){return"finally"+super.render(e)}};Ct.kind="finally";var In=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
2
|
-
`:""},this._extScope=e,this._scope=new le.Scope({parent:e}),this._nodes=[new Sn]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,s){let o=this._scope.toName(r);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new _n(e,o,n)),o}const(e,r,n){return this._def(le.varKinds.const,e,r,n)}let(e,r,n){return this._def(le.varKinds.let,e,r,n)}var(e,r,n){return this._def(le.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new mr(e,r,n))}add(e,r){return this._leafNode(new gn(e,P.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==O.nil&&this._leafNode(new En(e)),this}object(...e){let r=["{"];for(let[n,s]of e)r.length>1&&r.push(","),r.push(n),(n!==s||this.opts.es5)&&(r.push(":"),(0,O.addCodeArg)(r,s));return r.push("}"),new O._Code(r)}if(e,r,n){if(this._blockNode(new Ge(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ge(e))}else(){return this._elseNode(new st)}endIf(){return this._endBlockNode(Ge,st)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new bn(e),r)}forRange(e,r,n,s,o=this.opts.es5?le.varKinds.var:le.varKinds.let){let i=this._scope.toName(e);return this._for(new Pn(o,i,r,n),()=>s(i))}forOf(e,r,n,s=le.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let i=r instanceof O.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,O._)`${i}.length`,a=>{this.var(o,(0,O._)`${i}[${a}]`),n(o)})}return this._for(new yr("of",s,o,r),()=>n(o))}forIn(e,r,n,s=this.opts.es5?le.varKinds.var:le.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,O._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new yr("in",s,o,r),()=>n(o))}endFor(){return this._endBlockNode(He)}label(e){return this._leafNode(new $n(e))}break(e){return this._leafNode(new vn(e))}return(e){let r=new qt;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qt)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new Nn;if(this._blockNode(s),this.code(e),r){let o=this.name("e");this._currNode=s.catch=new At(o),r(o)}return n&&(this._currNode=s.finally=new Ct,this.code(n)),this._endBlockNode(At,Ct)}throw(e){return this._leafNode(new wn(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=O.nil,n,s){return this._blockNode(new jt(e,r,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(jt)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ge))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};P.CodeGen=In;function We(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function _r(t,e){return e instanceof O._CodeOrName?We(t,e.names):t}function ot(t,e,r){if(t instanceof O.Name)return n(t);if(!s(t))return t;return new O._Code(t._items.reduce((o,i)=>(i instanceof O.Name&&(i=n(i)),i instanceof O._Code?o.push(...i._items):o.push(i),o),[]));function n(o){let i=r[o.str];return i===void 0||e[o.str]!==1?o:(delete e[o.str],i)}function s(o){return o instanceof O._Code&&o._items.some(i=>i instanceof O.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function Jc(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Mo(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,O._)`!${On(t)}`}P.not=Mo;var Yc=xo(P.operators.AND);function Bc(...t){return t.reduce(Yc)}P.and=Bc;var Xc=xo(P.operators.OR);function Zc(...t){return t.reduce(Xc)}P.or=Zc;function xo(t){return(e,r)=>e===O.nil?r:r===O.nil?e:(0,O._)`${On(e)} ${t} ${On(r)}`}function On(t){return t instanceof O.Name?t:(0,O._)`(${t})`}});var k=g(N=>{"use strict";u();Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var C=b(),Qc=kt();function eu(t){let e={};for(let r of t)e[r]=!0;return e}N.toHash=eu;function tu(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Vo(t,e),!Uo(e,t.self.RULES.all))}N.alwaysValidSchema=tu;function Vo(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let s=n.RULES.keywords;for(let o in e)s[o]||Go(t,`unknown keyword: "${o}"`)}N.checkUnknownRules=Vo;function Uo(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}N.schemaHasRules=Uo;function ru(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}N.schemaHasRulesButRef=ru;function nu({topSchemaRef:t,schemaPath:e},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(n)}`}N.schemaRefOrVal=nu;function su(t){return Lo(decodeURIComponent(t))}N.unescapeFragment=su;function ou(t){return encodeURIComponent(kn(t))}N.escapeFragment=ou;function kn(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=kn;function Lo(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=Lo;function iu(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}N.eachItem=iu;function zo({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(s,o,i,a)=>{let c=i===void 0?o:i instanceof C.Name?(o instanceof C.Name?t(s,o,i):e(s,o,i),i):o instanceof C.Name?(e(s,i,o),o):r(o,i);return a===C.Name&&!(c instanceof C.Name)?n(s,c):c}}N.mergeEvaluated={props:zo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),Rn(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Ko}),items:zo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Ko(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&Rn(t,r,e),r}N.evaluatedPropsToName=Ko;function Rn(t,e,r){Object.keys(r).forEach(n=>t.assign((0,C._)`${e}${(0,C.getProperty)(n)}`,!0))}N.setEvaluated=Rn;var Fo={};function au(t,e){return t.scopeValue("func",{ref:e,code:Fo[e.code]||(Fo[e.code]=new Qc._Code(e.code))})}N.useFunc=au;var Tn;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Tn||(N.Type=Tn={}));function cu(t,e,r){if(t instanceof C.Name){let n=e===Tn.Num;return r?n?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:n?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+kn(t)}N.getErrorPath=cu;function Go(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}N.checkStrictMode=Go});var Ie=g(jn=>{"use strict";u();Object.defineProperty(jn,"__esModule",{value:!0});var H=b(),uu={data:new H.Name("data"),valCxt:new H.Name("valCxt"),instancePath:new H.Name("instancePath"),parentData:new H.Name("parentData"),parentDataProperty:new H.Name("parentDataProperty"),rootData:new H.Name("rootData"),dynamicAnchors:new H.Name("dynamicAnchors"),vErrors:new H.Name("vErrors"),errors:new H.Name("errors"),this:new H.Name("this"),self:new H.Name("self"),scope:new H.Name("scope"),json:new H.Name("json"),jsonPos:new H.Name("jsonPos"),jsonLen:new H.Name("jsonLen"),jsonPart:new H.Name("jsonPart")};jn.default=uu});var Dt=g(W=>{"use strict";u();Object.defineProperty(W,"__esModule",{value:!0});W.extendErrors=W.resetErrorsCount=W.reportExtraError=W.reportError=W.keyword$DataError=W.keywordError=void 0;var R=b(),$r=k(),Y=Ie();W.keywordError={message:({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`};W.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`};function lu(t,e=W.keywordError,r,n){let{it:s}=t,{gen:o,compositeRule:i,allErrors:a}=s,c=Jo(t,e,r);n??(i||a)?Ho(o,c):Wo(s,(0,R._)`[${c}]`)}W.reportError=lu;function du(t,e=W.keywordError,r){let{it:n}=t,{gen:s,compositeRule:o,allErrors:i}=n,a=Jo(t,e,r);Ho(s,a),o||i||Wo(n,Y.default.vErrors)}W.reportExtraError=du;function fu(t,e){t.assign(Y.default.errors,e),t.if((0,R._)`${Y.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${Y.default.vErrors}.length`,e),()=>t.assign(Y.default.vErrors,null)))}W.resetErrorsCount=fu;function hu({gen:t,keyword:e,schemaValue:r,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",s,Y.default.errors,a=>{t.const(i,(0,R._)`${Y.default.vErrors}[${a}]`),t.if((0,R._)`${i}.instancePath === undefined`,()=>t.assign((0,R._)`${i}.instancePath`,(0,R.strConcat)(Y.default.instancePath,o.errorPath))),t.assign((0,R._)`${i}.schemaPath`,(0,R.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,R._)`${i}.schema`,r),t.assign((0,R._)`${i}.data`,n))})}W.extendErrors=hu;function Ho(t,e){let r=t.const("err",e);t.if((0,R._)`${Y.default.vErrors} === null`,()=>t.assign(Y.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${Y.default.vErrors}.push(${r})`),t.code((0,R._)`${Y.default.errors}++`)}function Wo(t,e){let{gen:r,validateName:n,schemaEnv:s}=t;s.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${n}.errors`,e),r.return(!1))}var Je={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Jo(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,R._)`{}`:pu(t,e,r)}function pu(t,e,r={}){let{gen:n,it:s}=t,o=[mu(s,r),yu(t,r)];return _u(t,e,o),n.object(...o)}function mu({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,$r.getErrorPath)(e,$r.Type.Str)}`:t;return[Y.default.instancePath,(0,R.strConcat)(Y.default.instancePath,r)]}function yu({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let s=n?e:(0,R.str)`${e}/${t}`;return r&&(s=(0,R.str)`${s}${(0,$r.getErrorPath)(r,$r.Type.Str)}`),[Je.schemaPath,s]}function _u(t,{params:e,message:r},n){let{keyword:s,data:o,schemaValue:i,it:a}=t,{opts:c,propertyName:l,topSchemaRef:d,schemaPath:f}=a;n.push([Je.keyword,s],[Je.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),c.messages&&n.push([Je.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([Je.schema,i],[Je.parentSchema,(0,R._)`${d}${f}`],[Y.default.data,o]),l&&n.push([Je.propertyName,l])}});var Bo=g(it=>{"use strict";u();Object.defineProperty(it,"__esModule",{value:!0});it.boolOrEmptySchema=it.topBoolOrEmptySchema=void 0;var gu=Dt(),$u=b(),vu=Ie(),wu={message:"boolean schema is false"};function Eu(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Yo(t,!1):typeof r=="object"&&r.$async===!0?e.return(vu.default.data):(e.assign((0,$u._)`${n}.errors`,null),e.return(!0))}it.topBoolOrEmptySchema=Eu;function Su(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Yo(t)):r.var(e,!0)}it.boolOrEmptySchema=Su;function Yo(t,e){let{gen:r,data:n}=t,s={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,gu.reportError)(s,wu,void 0,e)}});var qn=g(at=>{"use strict";u();Object.defineProperty(at,"__esModule",{value:!0});at.getRules=at.isJSONType=void 0;var bu=["string","number","integer","boolean","null","object","array"],Pu=new Set(bu);function Nu(t){return typeof t=="string"&&Pu.has(t)}at.isJSONType=Nu;function Iu(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}at.getRules=Iu});var An=g(Re=>{"use strict";u();Object.defineProperty(Re,"__esModule",{value:!0});Re.shouldUseRule=Re.shouldUseGroup=Re.schemaHasRulesForType=void 0;function Ou({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Xo(t,n)}Re.schemaHasRulesForType=Ou;function Xo(t,e){return e.rules.some(r=>Zo(t,r))}Re.shouldUseGroup=Xo;function Zo(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Re.shouldUseRule=Zo});var Mt=g(J=>{"use strict";u();Object.defineProperty(J,"__esModule",{value:!0});J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;var Tu=qn(),ku=An(),Ru=Dt(),S=b(),Qo=k(),ct;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ct||(J.DataType=ct={}));function ju(t){let e=ei(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}J.getSchemaTypes=ju;function ei(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Tu.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}J.getJSONTypes=ei;function qu(t,e){let{gen:r,data:n,opts:s}=t,o=Au(e,s.coerceTypes),i=e.length>0&&!(o.length===0&&e.length===1&&(0,ku.schemaHasRulesForType)(t,e[0]));if(i){let a=Dn(e,n,s.strictNumbers,ct.Wrong);r.if(a,()=>{o.length?Cu(t,e,o):Mn(t)})}return i}J.coerceAndCheckDataType=qu;var ti=new Set(["string","number","integer","boolean","null"]);function Au(t,e){return e?t.filter(r=>ti.has(r)||e==="array"&&r==="array"):[]}function Cu(t,e,r){let{gen:n,data:s,opts:o}=t,i=n.let("dataType",(0,S._)`typeof ${s}`),a=n.let("coerced",(0,S._)`undefined`);o.coerceTypes==="array"&&n.if((0,S._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,S._)`${s}[0]`).assign(i,(0,S._)`typeof ${s}`).if(Dn(e,s,o.strictNumbers),()=>n.assign(a,s))),n.if((0,S._)`${a} !== undefined`);for(let l of r)(ti.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Mn(t),n.endIf(),n.if((0,S._)`${a} !== undefined`,()=>{n.assign(s,a),Du(t,a)});function c(l){switch(l){case"string":n.elseIf((0,S._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,S._)`"" + ${s}`).elseIf((0,S._)`${s} === null`).assign(a,(0,S._)`""`);return;case"number":n.elseIf((0,S._)`${i} == "boolean" || ${s} === null
|
|
1
|
+
import{a as yo}from"./chunk-RJ5VF3QY.js";import{i as nn,l as _o}from"./chunk-FCULF3JA.js";import{Eb as Fe,Nb as Ve,Va as tn,Wa as ur,Ya as rn,eb as mo}from"./chunk-YJWNM4XO.js";import{g as go}from"./chunk-SGBLCVUX.js";import{a as cr,b as po}from"./chunk-WNO2V53C.js";import{f as ar,i as en}from"./chunk-3VYOLEQE.js";import{a as Rc}from"./chunk-CX5CC6P5.js";import{c as g,e as Qr,g as u}from"./chunk-VKWPEFWQ.js";var kt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Ot=class{};q._CodeOrName=Ot;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ke=class extends Ot{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ke;var se=class extends Ot{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ke&&(r[n.str]=(r[n.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function xo(t,...e){let r=[t[0]],n=0;for(;n<e.length;)_n(r,e[n]),r.push(t[++n]);return new se(r)}q._=xo;var yn=new se("+");function zo(t,...e){let r=[Tt(t[0])],n=0;for(;n<e.length;)r.push(yn),_n(r,e[n]),r.push(yn,Tt(t[++n]));return Lc(r),new se(r)}q.str=zo;function _n(t,e){e instanceof se?t.push(...e._items):e instanceof Ke?t.push(e):t.push(Hc(e))}q.addCodeArg=_n;function Lc(t){let e=1;for(;e<t.length-1;){if(t[e]===yn){let r=Kc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Kc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ke||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ke))return`"${t}${e.slice(1)}`}function Gc(t,e){return e.emptyStr()?t:t.emptyStr()?e:zo`${t}${e}`}q.strConcat=Gc;function Hc(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Tt(Array.isArray(t)?t.join(","):t)}function Wc(t){return new se(Tt(t))}q.stringify=Wc;function Tt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Tt;function Jc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):xo`[${t}]`}q.getProperty=Jc;function Yc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=Yc;function Bc(t){return new se(t.toString())}q.regexpCode=Bc});var vn=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=kt(),gn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},hr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(hr||(Q.UsedValueState=hr={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var pr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=pr;var mr=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${n}]`}};Q.ValueScopeName=mr;var Xc=(0,Z._)`\n`,$n=class extends pr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Xc:Z.nil}}get(){return this._scope}name(e){return new mr(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(e),{prefix:o}=s,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let d=a.get(i);if(d)return d}else a=this._values[o]=new Map;a.set(i,s);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,s.setValue(r,{property:o,itemIndex:l}),s}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Z._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},r,n)}_reduceValues(e,r,n={},s){let o=Z.nil;for(let i in e){let a=e[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,hr.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;o=(0,Z._)`${o}${f} ${l} = ${d};${this.opts._n}`}else if(d=s?.(l))o=(0,Z._)`${o}${d}${this.opts._n}`;else throw new gn(l);c.set(l,hr.Completed)})}return o}};Q.ValueScope=$n});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var O=kt(),le=vn(),ke=kt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return ke._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return ke.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return ke.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return ke.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return ke.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return ke.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return ke.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return ke.Name}});var $r=vn();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return $r.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return $r.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return $r.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return $r.varKinds}});P.operators={GT:new O._Code(">"),GTE:new O._Code(">="),LT:new O._Code("<"),LTE:new O._Code("<="),EQ:new O._Code("==="),NEQ:new O._Code("!=="),NOT:new O._Code("!"),OR:new O._Code("||"),AND:new O._Code("&&"),ADD:new O._Code("+")};var Pe=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},wn=class extends Pe{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?le.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ot(this.rhs,e,r)),this}get names(){return this.rhs instanceof O._CodeOrName?this.rhs.names:{}}},yr=class extends Pe{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof O.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ot(this.rhs,e,r),this}get names(){let e=this.lhs instanceof O.Name?{}:{...this.lhs.names};return gr(e,this.rhs)}},En=class extends yr{constructor(e,r,n,s){super(e,n,s),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Sn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Pn=class extends Pe{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Nn=class extends Pe{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ot(this.code,e,r),this}get names(){return this.code instanceof O._CodeOrName?this.code.names:{}}},Rt=class extends Pe{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(e,r)||(Zc(e,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>We(e,r.names),{})}},Ne=class extends Rt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},In=class extends Rt{},st=class extends Ne{};st.kind="else";var Ge=class t extends Ne{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new st(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Fo(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ot(this.condition,e,r),this}get names(){let e=super.names;return gr(e,this.condition),this.else&&We(e,this.else.names),e}};Ge.kind="if";var He=class extends Ne{};He.kind="for";var On=class extends He{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ot(this.iteration,e,r),this}get names(){return We(super.names,this.iteration.names)}},Tn=class extends He{constructor(e,r,n,s){super(),this.varKind=e,this.name=r,this.from=n,this.to=s}render(e){let r=e.es5?le.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${r} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=gr(super.names,this.from);return gr(e,this.to)}},_r=class extends He{constructor(e,r,n,s){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ot(this.iterable,e,r),this}get names(){return We(super.names,this.iterable.names)}},jt=class extends Ne{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jt.kind="func";var qt=class extends Rt{render(e){return"return "+super.render(e)}};qt.kind="return";var kn=class extends Ne{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,s;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(s=this.finally)===null||s===void 0||s.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&We(e,this.catch.names),this.finally&&We(e,this.finally.names),e}},At=class extends Ne{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};At.kind="catch";var Ct=class extends Ne{render(e){return"finally"+super.render(e)}};Ct.kind="finally";var Rn=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
2
|
+
`:""},this._extScope=e,this._scope=new le.Scope({parent:e}),this._nodes=[new In]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,s){let o=this._scope.toName(r);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new wn(e,o,n)),o}const(e,r,n){return this._def(le.varKinds.const,e,r,n)}let(e,r,n){return this._def(le.varKinds.let,e,r,n)}var(e,r,n){return this._def(le.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new yr(e,r,n))}add(e,r){return this._leafNode(new En(e,P.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==O.nil&&this._leafNode(new Nn(e)),this}object(...e){let r=["{"];for(let[n,s]of e)r.length>1&&r.push(","),r.push(n),(n!==s||this.opts.es5)&&(r.push(":"),(0,O.addCodeArg)(r,s));return r.push("}"),new O._Code(r)}if(e,r,n){if(this._blockNode(new Ge(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ge(e))}else(){return this._elseNode(new st)}endIf(){return this._endBlockNode(Ge,st)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new On(e),r)}forRange(e,r,n,s,o=this.opts.es5?le.varKinds.var:le.varKinds.let){let i=this._scope.toName(e);return this._for(new Tn(o,i,r,n),()=>s(i))}forOf(e,r,n,s=le.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let i=r instanceof O.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,O._)`${i}.length`,a=>{this.var(o,(0,O._)`${i}[${a}]`),n(o)})}return this._for(new _r("of",s,o,r),()=>n(o))}forIn(e,r,n,s=this.opts.es5?le.varKinds.var:le.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,O._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new _r("in",s,o,r),()=>n(o))}endFor(){return this._endBlockNode(He)}label(e){return this._leafNode(new Sn(e))}break(e){return this._leafNode(new bn(e))}return(e){let r=new qt;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qt)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new kn;if(this._blockNode(s),this.code(e),r){let o=this.name("e");this._currNode=s.catch=new At(o),r(o)}return n&&(this._currNode=s.finally=new Ct,this.code(n)),this._endBlockNode(At,Ct)}throw(e){return this._leafNode(new Pn(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=O.nil,n,s){return this._blockNode(new jt(e,r,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(jt)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ge))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};P.CodeGen=Rn;function We(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function gr(t,e){return e instanceof O._CodeOrName?We(t,e.names):t}function ot(t,e,r){if(t instanceof O.Name)return n(t);if(!s(t))return t;return new O._Code(t._items.reduce((o,i)=>(i instanceof O.Name&&(i=n(i)),i instanceof O._Code?o.push(...i._items):o.push(i),o),[]));function n(o){let i=r[o.str];return i===void 0||e[o.str]!==1?o:(delete e[o.str],i)}function s(o){return o instanceof O._Code&&o._items.some(i=>i instanceof O.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function Zc(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Fo(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,O._)`!${jn(t)}`}P.not=Fo;var Qc=Vo(P.operators.AND);function eu(...t){return t.reduce(Qc)}P.and=eu;var tu=Vo(P.operators.OR);function ru(...t){return t.reduce(tu)}P.or=ru;function Vo(t){return(e,r)=>e===O.nil?r:r===O.nil?e:(0,O._)`${jn(e)} ${t} ${jn(r)}`}function jn(t){return t instanceof O.Name?t:(0,O._)`(${t})`}});var k=g(N=>{"use strict";u();Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var C=b(),nu=kt();function su(t){let e={};for(let r of t)e[r]=!0;return e}N.toHash=su;function ou(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ko(t,e),!Go(e,t.self.RULES.all))}N.alwaysValidSchema=ou;function Ko(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let s=n.RULES.keywords;for(let o in e)s[o]||Jo(t,`unknown keyword: "${o}"`)}N.checkUnknownRules=Ko;function Go(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}N.schemaHasRules=Go;function iu(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}N.schemaHasRulesButRef=iu;function au({topSchemaRef:t,schemaPath:e},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(n)}`}N.schemaRefOrVal=au;function cu(t){return Ho(decodeURIComponent(t))}N.unescapeFragment=cu;function uu(t){return encodeURIComponent(An(t))}N.escapeFragment=uu;function An(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=An;function Ho(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=Ho;function lu(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}N.eachItem=lu;function Uo({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(s,o,i,a)=>{let c=i===void 0?o:i instanceof C.Name?(o instanceof C.Name?t(s,o,i):e(s,o,i),i):o instanceof C.Name?(e(s,i,o),o):r(o,i);return a===C.Name&&!(c instanceof C.Name)?n(s,c):c}}N.mergeEvaluated={props:Uo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),Cn(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Wo}),items:Uo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Wo(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&Cn(t,r,e),r}N.evaluatedPropsToName=Wo;function Cn(t,e,r){Object.keys(r).forEach(n=>t.assign((0,C._)`${e}${(0,C.getProperty)(n)}`,!0))}N.setEvaluated=Cn;var Lo={};function du(t,e){return t.scopeValue("func",{ref:e,code:Lo[e.code]||(Lo[e.code]=new nu._Code(e.code))})}N.useFunc=du;var qn;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(qn||(N.Type=qn={}));function fu(t,e,r){if(t instanceof C.Name){let n=e===qn.Num;return r?n?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:n?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+An(t)}N.getErrorPath=fu;function Jo(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}N.checkStrictMode=Jo});var Ie=g(Dn=>{"use strict";u();Object.defineProperty(Dn,"__esModule",{value:!0});var H=b(),hu={data:new H.Name("data"),valCxt:new H.Name("valCxt"),instancePath:new H.Name("instancePath"),parentData:new H.Name("parentData"),parentDataProperty:new H.Name("parentDataProperty"),rootData:new H.Name("rootData"),dynamicAnchors:new H.Name("dynamicAnchors"),vErrors:new H.Name("vErrors"),errors:new H.Name("errors"),this:new H.Name("this"),self:new H.Name("self"),scope:new H.Name("scope"),json:new H.Name("json"),jsonPos:new H.Name("jsonPos"),jsonLen:new H.Name("jsonLen"),jsonPart:new H.Name("jsonPart")};Dn.default=hu});var Dt=g(W=>{"use strict";u();Object.defineProperty(W,"__esModule",{value:!0});W.extendErrors=W.resetErrorsCount=W.reportExtraError=W.reportError=W.keyword$DataError=W.keywordError=void 0;var R=b(),vr=k(),Y=Ie();W.keywordError={message:({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`};W.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`};function pu(t,e=W.keywordError,r,n){let{it:s}=t,{gen:o,compositeRule:i,allErrors:a}=s,c=Xo(t,e,r);n??(i||a)?Yo(o,c):Bo(s,(0,R._)`[${c}]`)}W.reportError=pu;function mu(t,e=W.keywordError,r){let{it:n}=t,{gen:s,compositeRule:o,allErrors:i}=n,a=Xo(t,e,r);Yo(s,a),o||i||Bo(n,Y.default.vErrors)}W.reportExtraError=mu;function yu(t,e){t.assign(Y.default.errors,e),t.if((0,R._)`${Y.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${Y.default.vErrors}.length`,e),()=>t.assign(Y.default.vErrors,null)))}W.resetErrorsCount=yu;function _u({gen:t,keyword:e,schemaValue:r,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",s,Y.default.errors,a=>{t.const(i,(0,R._)`${Y.default.vErrors}[${a}]`),t.if((0,R._)`${i}.instancePath === undefined`,()=>t.assign((0,R._)`${i}.instancePath`,(0,R.strConcat)(Y.default.instancePath,o.errorPath))),t.assign((0,R._)`${i}.schemaPath`,(0,R.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,R._)`${i}.schema`,r),t.assign((0,R._)`${i}.data`,n))})}W.extendErrors=_u;function Yo(t,e){let r=t.const("err",e);t.if((0,R._)`${Y.default.vErrors} === null`,()=>t.assign(Y.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${Y.default.vErrors}.push(${r})`),t.code((0,R._)`${Y.default.errors}++`)}function Bo(t,e){let{gen:r,validateName:n,schemaEnv:s}=t;s.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${n}.errors`,e),r.return(!1))}var Je={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Xo(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,R._)`{}`:gu(t,e,r)}function gu(t,e,r={}){let{gen:n,it:s}=t,o=[$u(s,r),vu(t,r)];return wu(t,e,o),n.object(...o)}function $u({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,vr.getErrorPath)(e,vr.Type.Str)}`:t;return[Y.default.instancePath,(0,R.strConcat)(Y.default.instancePath,r)]}function vu({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let s=n?e:(0,R.str)`${e}/${t}`;return r&&(s=(0,R.str)`${s}${(0,vr.getErrorPath)(r,vr.Type.Str)}`),[Je.schemaPath,s]}function wu(t,{params:e,message:r},n){let{keyword:s,data:o,schemaValue:i,it:a}=t,{opts:c,propertyName:l,topSchemaRef:d,schemaPath:f}=a;n.push([Je.keyword,s],[Je.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),c.messages&&n.push([Je.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([Je.schema,i],[Je.parentSchema,(0,R._)`${d}${f}`],[Y.default.data,o]),l&&n.push([Je.propertyName,l])}});var Qo=g(it=>{"use strict";u();Object.defineProperty(it,"__esModule",{value:!0});it.boolOrEmptySchema=it.topBoolOrEmptySchema=void 0;var Eu=Dt(),Su=b(),bu=Ie(),Pu={message:"boolean schema is false"};function Nu(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Zo(t,!1):typeof r=="object"&&r.$async===!0?e.return(bu.default.data):(e.assign((0,Su._)`${n}.errors`,null),e.return(!0))}it.topBoolOrEmptySchema=Nu;function Iu(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Zo(t)):r.var(e,!0)}it.boolOrEmptySchema=Iu;function Zo(t,e){let{gen:r,data:n}=t,s={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Eu.reportError)(s,Pu,void 0,e)}});var Mn=g(at=>{"use strict";u();Object.defineProperty(at,"__esModule",{value:!0});at.getRules=at.isJSONType=void 0;var Ou=["string","number","integer","boolean","null","object","array"],Tu=new Set(Ou);function ku(t){return typeof t=="string"&&Tu.has(t)}at.isJSONType=ku;function Ru(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}at.getRules=Ru});var xn=g(Re=>{"use strict";u();Object.defineProperty(Re,"__esModule",{value:!0});Re.shouldUseRule=Re.shouldUseGroup=Re.schemaHasRulesForType=void 0;function ju({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&ei(t,n)}Re.schemaHasRulesForType=ju;function ei(t,e){return e.rules.some(r=>ti(t,r))}Re.shouldUseGroup=ei;function ti(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Re.shouldUseRule=ti});var Mt=g(J=>{"use strict";u();Object.defineProperty(J,"__esModule",{value:!0});J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;var qu=Mn(),Au=xn(),Cu=Dt(),S=b(),ri=k(),ct;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ct||(J.DataType=ct={}));function Du(t){let e=ni(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}J.getSchemaTypes=Du;function ni(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(qu.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}J.getJSONTypes=ni;function Mu(t,e){let{gen:r,data:n,opts:s}=t,o=xu(e,s.coerceTypes),i=e.length>0&&!(o.length===0&&e.length===1&&(0,Au.schemaHasRulesForType)(t,e[0]));if(i){let a=Fn(e,n,s.strictNumbers,ct.Wrong);r.if(a,()=>{o.length?zu(t,e,o):Vn(t)})}return i}J.coerceAndCheckDataType=Mu;var si=new Set(["string","number","integer","boolean","null"]);function xu(t,e){return e?t.filter(r=>si.has(r)||e==="array"&&r==="array"):[]}function zu(t,e,r){let{gen:n,data:s,opts:o}=t,i=n.let("dataType",(0,S._)`typeof ${s}`),a=n.let("coerced",(0,S._)`undefined`);o.coerceTypes==="array"&&n.if((0,S._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,S._)`${s}[0]`).assign(i,(0,S._)`typeof ${s}`).if(Fn(e,s,o.strictNumbers),()=>n.assign(a,s))),n.if((0,S._)`${a} !== undefined`);for(let l of r)(si.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Vn(t),n.endIf(),n.if((0,S._)`${a} !== undefined`,()=>{n.assign(s,a),Fu(t,a)});function c(l){switch(l){case"string":n.elseIf((0,S._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,S._)`"" + ${s}`).elseIf((0,S._)`${s} === null`).assign(a,(0,S._)`""`);return;case"number":n.elseIf((0,S._)`${i} == "boolean" || ${s} === null
|
|
3
3
|
|| (${i} == "string" && ${s} && ${s} == +${s})`).assign(a,(0,S._)`+${s}`);return;case"integer":n.elseIf((0,S._)`${i} === "boolean" || ${s} === null
|
|
4
4
|
|| (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(a,(0,S._)`+${s}`);return;case"boolean":n.elseIf((0,S._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(a,!1).elseIf((0,S._)`${s} === "true" || ${s} === 1`).assign(a,!0);return;case"null":n.elseIf((0,S._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(a,null);return;case"array":n.elseIf((0,S._)`${i} === "string" || ${i} === "number"
|
|
5
|
-
|| ${i} === "boolean" || ${s} === null`).assign(a,(0,S._)`[${s}]`)}}}function Du({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,S._)`${e} !== undefined`,()=>t.assign((0,S._)`${e}[${r}]`,n))}function Cn(t,e,r,n=ct.Correct){let s=n===ct.Correct?S.operators.EQ:S.operators.NEQ,o;switch(t){case"null":return(0,S._)`${e} ${s} null`;case"array":o=(0,S._)`Array.isArray(${e})`;break;case"object":o=(0,S._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=i((0,S._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=i();break;default:return(0,S._)`typeof ${e} ${s} ${t}`}return n===ct.Correct?o:(0,S.not)(o);function i(a=S.nil){return(0,S.and)((0,S._)`typeof ${e} == "number"`,a,r?(0,S._)`isFinite(${e})`:S.nil)}}J.checkDataType=Cn;function Dn(t,e,r,n){if(t.length===1)return Cn(t[0],e,r,n);let s,o=(0,Qo.toHash)(t);if(o.array&&o.object){let i=(0,S._)`typeof ${e} != "object"`;s=o.null?i:(0,S._)`!${e} || ${i}`,delete o.null,delete o.array,delete o.object}else s=S.nil;o.number&&delete o.integer;for(let i in o)s=(0,S.and)(s,Cn(i,e,r,n));return s}J.checkDataTypes=Dn;var Mu={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,S._)`{type: ${t}}`:(0,S._)`{type: ${e}}`};function Mn(t){let e=xu(t);(0,Ru.reportError)(e,Mu)}J.reportTypeError=Mn;function xu(t){let{gen:e,data:r,schema:n}=t,s=(0,Qo.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var ni=g(vr=>{"use strict";u();Object.defineProperty(vr,"__esModule",{value:!0});vr.assignDefaults=void 0;var ut=b(),zu=k();function Fu(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let s in r)ri(t,s,r[s].default);else e==="array"&&Array.isArray(n)&&n.forEach((s,o)=>ri(t,o,s.default))}vr.assignDefaults=Fu;function ri(t,e,r){let{gen:n,compositeRule:s,data:o,opts:i}=t;if(r===void 0)return;let a=(0,ut._)`${o}${(0,ut.getProperty)(e)}`;if(s){(0,zu.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,ut._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,ut._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ut._)`${a} = ${(0,ut.stringify)(r)}`)}});var oe=g(A=>{"use strict";u();Object.defineProperty(A,"__esModule",{value:!0});A.validateUnion=A.validateArray=A.usePattern=A.callValidateCode=A.schemaProperties=A.allSchemaProperties=A.noPropertyInData=A.propertyInData=A.isOwnProperty=A.hasPropFunc=A.reportMissingProp=A.checkMissingProp=A.checkReportMissingProp=void 0;var M=b(),xn=k(),je=Ie(),Vu=k();function Uu(t,e){let{gen:r,data:n,it:s}=t;r.if(Fn(r,n,e,s.opts.ownProperties),()=>{t.setParams({missingProperty:(0,M._)`${e}`},!0),t.error()})}A.checkReportMissingProp=Uu;function Lu({gen:t,data:e,it:{opts:r}},n,s){return(0,M.or)(...n.map(o=>(0,M.and)(Fn(t,e,o,r.ownProperties),(0,M._)`${s} = ${o}`)))}A.checkMissingProp=Lu;function Ku(t,e){t.setParams({missingProperty:e},!0),t.error()}A.reportMissingProp=Ku;function si(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,M._)`Object.prototype.hasOwnProperty`})}A.hasPropFunc=si;function zn(t,e,r){return(0,M._)`${si(t)}.call(${e}, ${r})`}A.isOwnProperty=zn;function Gu(t,e,r,n){let s=(0,M._)`${e}${(0,M.getProperty)(r)} !== undefined`;return n?(0,M._)`${s} && ${zn(t,e,r)}`:s}A.propertyInData=Gu;function Fn(t,e,r,n){let s=(0,M._)`${e}${(0,M.getProperty)(r)} === undefined`;return n?(0,M.or)(s,(0,M.not)(zn(t,e,r))):s}A.noPropertyInData=Fn;function oi(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}A.allSchemaProperties=oi;function Hu(t,e){return oi(e).filter(r=>!(0,xn.alwaysValidSchema)(t,e[r]))}A.schemaProperties=Hu;function Wu({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:s,errorPath:o},it:i},a,c,l){let d=l?(0,M._)`${t}, ${e}, ${n}${s}`:e,f=[[je.default.instancePath,(0,M.strConcat)(je.default.instancePath,o)],[je.default.parentData,i.parentData],[je.default.parentDataProperty,i.parentDataProperty],[je.default.rootData,je.default.rootData]];i.opts.dynamicRef&&f.push([je.default.dynamicAnchors,je.default.dynamicAnchors]);let h=(0,M._)`${d}, ${r.object(...f)}`;return c!==M.nil?(0,M._)`${a}.call(${c}, ${h})`:(0,M._)`${a}(${h})`}A.callValidateCode=Wu;var Ju=(0,M._)`new RegExp`;function Yu({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:s}=e.code,o=s(r,n);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,M._)`${s.code==="new RegExp"?Ju:(0,Vu.useFunc)(t,s)}(${r}, ${n})`})}A.usePattern=Yu;function Bu(t){let{gen:e,data:r,keyword:n,it:s}=t,o=e.name("valid");if(s.allErrors){let a=e.let("valid",!0);return i(()=>e.assign(a,!1)),a}return e.var(o,!0),i(()=>e.break()),o;function i(a){let c=e.const("len",(0,M._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:xn.Type.Num},o),e.if((0,M.not)(o),a)})}}A.validateArray=Bu;function Xu(t){let{gen:e,schema:r,keyword:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,xn.alwaysValidSchema)(s,c))&&!s.opts.unevaluated)return;let i=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let d=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(i,(0,M._)`${i} || ${a}`),t.mergeValidEvaluated(d,a)||e.if((0,M.not)(i))})),t.result(i,()=>t.reset(),()=>t.error(!0))}A.validateUnion=Xu});var ci=g($e=>{"use strict";u();Object.defineProperty($e,"__esModule",{value:!0});$e.validateKeywordUsage=$e.validSchemaType=$e.funcKeywordCode=$e.macroKeywordCode=void 0;var B=b(),Ye=Ie(),Zu=oe(),Qu=Dt();function el(t,e){let{gen:r,keyword:n,schema:s,parentSchema:o,it:i}=t,a=e.macro.call(i.self,s,o,i),c=ai(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:B.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}$e.macroKeywordCode=el;function tl(t,e){var r;let{gen:n,keyword:s,schema:o,parentSchema:i,$data:a,it:c}=t;nl(c,e);let l=!a&&e.compile?e.compile.call(c.self,o,i,c):e.validate,d=ai(n,s,l),f=n.let("valid");t.block$data(f,h),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function h(){if(e.errors===!1)m(),e.modifying&&ii(t),_(()=>t.error());else{let $=e.async?y():p();e.modifying&&ii(t),_(()=>rl(t,$))}}function y(){let $=n.let("ruleErrs",null);return n.try(()=>m((0,B._)`await `),T=>n.assign(f,!1).if((0,B._)`${T} instanceof ${c.ValidationError}`,()=>n.assign($,(0,B._)`${T}.errors`),()=>n.throw(T))),$}function p(){let $=(0,B._)`${d}.errors`;return n.assign($,null),m(B.nil),$}function m($=e.async?(0,B._)`await `:B.nil){let T=c.opts.passContext?Ye.default.this:Ye.default.self,I=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,B._)`${$}${(0,Zu.callValidateCode)(t,d,T,I)}`,e.modifying)}function _($){var T;n.if((0,B.not)((T=e.valid)!==null&&T!==void 0?T:f),$)}}$e.funcKeywordCode=tl;function ii(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,B._)`${n.parentData}[${n.parentDataProperty}]`))}function rl(t,e){let{gen:r}=t;r.if((0,B._)`Array.isArray(${e})`,()=>{r.assign(Ye.default.vErrors,(0,B._)`${Ye.default.vErrors} === null ? ${e} : ${Ye.default.vErrors}.concat(${e})`).assign(Ye.default.errors,(0,B._)`${Ye.default.vErrors}.length`),(0,Qu.extendErrors)(t)},()=>t.error())}function nl({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function ai(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,B.stringify)(r)})}function sl(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}$e.validSchemaType=sl;function ol({schema:t,opts:e,self:r,errSchemaPath:n},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw new Error("ajv implementation error");let i=s.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${o}: ${i.join(",")}`);if(s.validateSchema&&!s.validateSchema(t[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}$e.validateKeywordUsage=ol});var li=g(qe=>{"use strict";u();Object.defineProperty(qe,"__esModule",{value:!0});qe.extendSubschemaMode=qe.extendSubschemaData=qe.getSubschema=void 0;var ve=b(),ui=k();function il(t,{keyword:e,schemaProp:r,schema:n,schemaPath:s,errSchemaPath:o,topSchemaRef:i}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,ve._)`${t.schemaPath}${(0,ve.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,ve._)`${t.schemaPath}${(0,ve.getProperty)(e)}${(0,ve.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,ui.escapeFragment)(r)}`}}if(n!==void 0){if(s===void 0||o===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:i,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}qe.getSubschema=il;function al(t,e,{dataProp:r,dataPropType:n,data:s,dataTypes:o,propertyName:i}){if(s!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:d,opts:f}=e,h=a.let("data",(0,ve._)`${e.data}${(0,ve.getProperty)(r)}`,!0);c(h),t.errorPath=(0,ve.str)`${l}${(0,ui.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,ve._)`${r}`,t.dataPathArr=[...d,t.parentDataProperty]}if(s!==void 0){let l=s instanceof ve.Name?s:a.let("data",s,!0);c(l),i!==void 0&&(t.propertyName=i)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}qe.extendSubschemaData=al;function cl(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:o}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}qe.extendSubschemaMode=cl});var Vn=g((zy,di)=>{"use strict";u();di.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;s--!==0;){var i=o[s];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var hi=g((Vy,fi)=>{"use strict";u();var Ae=fi.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};wr(e,n,s,t,"",t)};Ae.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ae.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ae.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ae.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function wr(t,e,r,n,s,o,i,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,s,o,i,a,c,l);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Ae.arrayKeywords)for(var h=0;h<f.length;h++)wr(t,e,r,f[h],s+"/"+d+"/"+h,o,s,d,n,h)}else if(d in Ae.propsKeywords){if(f&&typeof f=="object")for(var y in f)wr(t,e,r,f[y],s+"/"+d+"/"+ul(y),o,s,d,n,y)}else(d in Ae.keywords||t.allKeys&&!(d in Ae.skipKeywords))&&wr(t,e,r,f,s+"/"+d,o,s,d,n)}r(n,s,o,i,a,c,l)}}function ul(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var xt=g(ee=>{"use strict";u();Object.defineProperty(ee,"__esModule",{value:!0});ee.getSchemaRefs=ee.resolveUrl=ee.normalizeId=ee._getFullPath=ee.getFullPath=ee.inlineRef=void 0;var ll=k(),dl=Vn(),fl=hi(),hl=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function pl(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Un(t):e?pi(t)<=e:!1}ee.inlineRef=pl;var ml=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Un(t){for(let e in t){if(ml.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Un)||typeof r=="object"&&Un(r))return!0}return!1}function pi(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!hl.has(r)&&(typeof t[r]=="object"&&(0,ll.eachItem)(t[r],n=>e+=pi(n)),e===1/0))return 1/0}return e}function mi(t,e="",r){r!==!1&&(e=lt(e));let n=t.parse(e);return yi(t,n)}ee.getFullPath=mi;function yi(t,e){return t.serialize(e).split("#")[0]+"#"}ee._getFullPath=yi;var yl=/#\/?$/;function lt(t){return t?t.replace(yl,""):""}ee.normalizeId=lt;function _l(t,e,r){return r=lt(r),t.resolve(e,r)}ee.resolveUrl=_l;var gl=/^[a-z_][-a-z0-9._]*$/i;function $l(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,s=lt(t[r]||e),o={"":s},i=mi(n,s,!1),a={},c=new Set;return fl(t,{allKeys:!0},(f,h,y,p)=>{if(p===void 0)return;let m=i+h,_=o[p];typeof f[r]=="string"&&(_=$.call(this,f[r])),T.call(this,f.$anchor),T.call(this,f.$dynamicAnchor),o[h]=_;function $(I){let D=this.opts.uriResolver.resolve;if(I=lt(_?D(_,I):I),c.has(I))throw d(I);c.add(I);let E=this.refs[I];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?l(f,E.schema,I):I!==lt(m)&&(I[0]==="#"?(l(f,a[I],I),a[I]=f):this.refs[I]=m),I}function T(I){if(typeof I=="string"){if(!gl.test(I))throw new Error(`invalid anchor "${I}"`);$.call(this,`#${I}`)}}}),a;function l(f,h,y){if(h!==void 0&&!dl(f,h))throw d(y)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}ee.getSchemaRefs=$l});var Vt=g(Ce=>{"use strict";u();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.getData=Ce.KeywordCxt=Ce.validateFunctionCode=void 0;var wi=Bo(),_i=Mt(),Kn=An(),Er=Mt(),vl=ni(),Ft=ci(),Ln=li(),v=b(),w=Ie(),wl=xt(),Oe=k(),zt=Dt();function El(t){if(bi(t)&&(Pi(t),Si(t))){Pl(t);return}Ei(t,()=>(0,wi.topBoolOrEmptySchema)(t))}Ce.validateFunctionCode=El;function Ei({gen:t,validateName:e,schema:r,schemaEnv:n,opts:s},o){s.code.es5?t.func(e,(0,v._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{t.code((0,v._)`"use strict"; ${gi(r,s)}`),bl(t,s),t.code(o)}):t.func(e,(0,v._)`${w.default.data}, ${Sl(s)}`,n.$async,()=>t.code(gi(r,s)).code(o))}function Sl(t){return(0,v._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${t.dynamicRef?(0,v._)`, ${w.default.dynamicAnchors}={}`:v.nil}}={}`}function bl(t,e){t.if(w.default.valCxt,()=>{t.var(w.default.instancePath,(0,v._)`${w.default.valCxt}.${w.default.instancePath}`),t.var(w.default.parentData,(0,v._)`${w.default.valCxt}.${w.default.parentData}`),t.var(w.default.parentDataProperty,(0,v._)`${w.default.valCxt}.${w.default.parentDataProperty}`),t.var(w.default.rootData,(0,v._)`${w.default.valCxt}.${w.default.rootData}`),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{t.var(w.default.instancePath,(0,v._)`""`),t.var(w.default.parentData,(0,v._)`undefined`),t.var(w.default.parentDataProperty,(0,v._)`undefined`),t.var(w.default.rootData,w.default.data),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`{}`)})}function Pl(t){let{schema:e,opts:r,gen:n}=t;Ei(t,()=>{r.$comment&&e.$comment&&Ii(t),kl(t),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&Nl(t),Ni(t),ql(t)})}function Nl(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,v._)`${r}.evaluated`),e.if((0,v._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,v._)`${t.evaluated}.props`,(0,v._)`undefined`)),e.if((0,v._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,v._)`${t.evaluated}.items`,(0,v._)`undefined`))}function gi(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,v._)`/*# sourceURL=${r} */`:v.nil}function Il(t,e){if(bi(t)&&(Pi(t),Si(t))){Ol(t,e);return}(0,wi.boolOrEmptySchema)(t,e)}function Si({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function bi(t){return typeof t.schema!="boolean"}function Ol(t,e){let{schema:r,gen:n,opts:s}=t;s.$comment&&r.$comment&&Ii(t),Rl(t),jl(t);let o=n.const("_errs",w.default.errors);Ni(t,o),n.var(e,(0,v._)`${o} === ${w.default.errors}`)}function Pi(t){(0,Oe.checkUnknownRules)(t),Tl(t)}function Ni(t,e){if(t.opts.jtd)return $i(t,[],!1,e);let r=(0,_i.getSchemaTypes)(t.schema),n=(0,_i.coerceAndCheckDataType)(t,r);$i(t,r,!n,e)}function Tl(t){let{schema:e,errSchemaPath:r,opts:n,self:s}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Oe.schemaHasRulesButRef)(e,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function kl(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Oe.checkStrictMode)(t,"default is ignored in the schema root")}function Rl(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,wl.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function jl(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ii({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:s}){let o=r.$comment;if(s.$comment===!0)t.code((0,v._)`${w.default.self}.logger.log(${o})`);else if(typeof s.$comment=="function"){let i=(0,v.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,v._)`${w.default.self}.opts.$comment(${o}, ${i}, ${a}.schema)`)}}function ql(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:s,opts:o}=t;r.$async?e.if((0,v._)`${w.default.errors} === 0`,()=>e.return(w.default.data),()=>e.throw((0,v._)`new ${s}(${w.default.vErrors})`)):(e.assign((0,v._)`${n}.errors`,w.default.vErrors),o.unevaluated&&Al(t),e.return((0,v._)`${w.default.errors} === 0`))}function Al({gen:t,evaluated:e,props:r,items:n}){r instanceof v.Name&&t.assign((0,v._)`${e}.props`,r),n instanceof v.Name&&t.assign((0,v._)`${e}.items`,n)}function $i(t,e,r,n){let{gen:s,schema:o,data:i,allErrors:a,opts:c,self:l}=t,{RULES:d}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Oe.schemaHasRulesButRef)(o,d))){s.block(()=>Ti(t,"$ref",d.all.$ref.definition));return}c.jtd||Cl(t,e),s.block(()=>{for(let h of d.rules)f(h);f(d.post)});function f(h){(0,Kn.shouldUseGroup)(o,h)&&(h.type?(s.if((0,Er.checkDataType)(h.type,i,c.strictNumbers)),vi(t,h),e.length===1&&e[0]===h.type&&r&&(s.else(),(0,Er.reportTypeError)(t)),s.endIf()):vi(t,h),a||s.if((0,v._)`${w.default.errors} === ${n||0}`))}}function vi(t,e){let{gen:r,schema:n,opts:{useDefaults:s}}=t;s&&(0,vl.assignDefaults)(t,e.type),r.block(()=>{for(let o of e.rules)(0,Kn.shouldUseRule)(n,o)&&Ti(t,o.keyword,o.definition,e.type)})}function Cl(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Dl(t,e),t.opts.allowUnionTypes||Ml(t,e),xl(t,t.dataTypes))}function Dl(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{Oi(t.dataTypes,r)||Gn(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),Fl(t,e)}}function Ml(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Gn(t,"use allowUnionTypes to allow union type keyword")}function xl(t,e){let r=t.self.RULES.all;for(let n in r){let s=r[n];if(typeof s=="object"&&(0,Kn.shouldUseRule)(t.schema,s)){let{type:o}=s.definition;o.length&&!o.some(i=>zl(e,i))&&Gn(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function zl(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function Oi(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Fl(t,e){let r=[];for(let n of t.dataTypes)Oi(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function Gn(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Oe.checkStrictMode)(t,e,t.opts.strictTypes)}var Sr=class{constructor(e,r,n){if((0,Ft.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Oe.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",ki(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Ft.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",w.default.errors))}result(e,r,n){this.failResult((0,v.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,v.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,v._)`${r} !== undefined && (${(0,v.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?zt.reportExtraError:zt.reportError)(this,this.def.error,r)}$dataError(){(0,zt.reportError)(this,this.def.$dataError||zt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,zt.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=v.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=v.nil,r=v.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:o,def:i}=this;n.if((0,v.or)((0,v._)`${s} === undefined`,r)),e!==v.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==v.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:s,it:o}=this;return(0,v.or)(i(),a());function i(){if(n.length){if(!(r instanceof v.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,v._)`${(0,Er.checkDataTypes)(c,r,o.opts.strictNumbers,Er.DataType.Wrong)}`}return v.nil}function a(){if(s.validateSchema){let c=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,v._)`!${c}(${r})`}return v.nil}}subschema(e,r){let n=(0,Ln.getSubschema)(this.it,e);(0,Ln.extendSubschemaData)(n,this.it,e),(0,Ln.extendSubschemaMode)(n,e);let s={...this.it,...n,items:void 0,props:void 0};return Il(s,r),s}mergeEvaluated(e,r){let{it:n,gen:s}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Oe.mergeEvaluated.props(s,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Oe.mergeEvaluated.items(s,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(r,()=>this.mergeEvaluated(e,v.Name)),!0}};Ce.KeywordCxt=Sr;function Ti(t,e,r,n){let s=new Sr(t,r,e);"code"in r?r.code(s,n):s.$data&&r.validate?(0,Ft.funcKeywordCode)(s,r):"macro"in r?(0,Ft.macroKeywordCode)(s,r):(r.compile||r.validate)&&(0,Ft.funcKeywordCode)(s,r)}var Vl=/^\/(?:[^~]|~0|~1)*$/,Ul=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ki(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let s,o;if(t==="")return w.default.rootData;if(t[0]==="/"){if(!Vl.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,o=w.default.rootData}else{let l=Ul.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+l[1];if(s=l[2],s==="#"){if(d>=e)throw new Error(c("property/index",d));return n[e-d]}if(d>e)throw new Error(c("data",d));if(o=r[e-d],!s)return o}let i=o,a=s.split("/");for(let l of a)l&&(o=(0,v._)`${o}${(0,v.getProperty)((0,Oe.unescapeJsonPointer)(l))}`,i=(0,v._)`${i} && ${o}`);return i;function c(l,d){return`Cannot access ${l} ${d} levels up, current level is ${e}`}}Ce.getData=ki});var br=g(Wn=>{"use strict";u();Object.defineProperty(Wn,"__esModule",{value:!0});var Hn=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Wn.default=Hn});var Ut=g(Bn=>{"use strict";u();Object.defineProperty(Bn,"__esModule",{value:!0});var Jn=xt(),Yn=class extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Jn.resolveUrl)(e,r,n),this.missingSchema=(0,Jn.normalizeId)((0,Jn.getFullPath)(e,this.missingRef))}};Bn.default=Yn});var Nr=g(ie=>{"use strict";u();Object.defineProperty(ie,"__esModule",{value:!0});ie.resolveSchema=ie.getCompilingSchema=ie.resolveRef=ie.compileSchema=ie.SchemaEnv=void 0;var de=b(),Ll=br(),Be=Ie(),fe=xt(),Ri=k(),Kl=Vt(),dt=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,fe.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};ie.SchemaEnv=dt;function Zn(t){let e=ji.call(this,t);if(e)return e;let r=(0,fe.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:o}=this.opts,i=new de.CodeGen(this.scope,{es5:n,lines:s,ownProperties:o}),a;t.$async&&(a=i.scopeValue("Error",{ref:Ll.default,code:(0,de._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");t.validateName=c;let l={gen:i,allErrors:this.opts.allErrors,data:Be.default.data,parentData:Be.default.parentData,parentDataProperty:Be.default.parentDataProperty,dataNames:[Be.default.data],dataPathArr:[de.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,de.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:de.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,de._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),(0,Kl.validateFunctionCode)(l),i.optimize(this.opts.code.optimize);let f=i.toString();d=`${i.scopeRefs(Be.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let y=new Function(`${Be.default.self}`,`${Be.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:y}),y.errors=null,y.schema=t.schema,y.schemaEnv=t,t.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:c,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){let{props:p,items:m}=l;y.evaluated={props:p instanceof de.Name?void 0:p,items:m instanceof de.Name?void 0:m,dynamicProps:p instanceof de.Name,dynamicItems:m instanceof de.Name},y.source&&(y.source.evaluated=(0,de.stringify)(y.evaluated))}return t.validate=y,t}catch(f){throw delete t.validate,delete t.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(t)}}ie.compileSchema=Zn;function Gl(t,e,r){var n;r=(0,fe.resolveUrl)(this.opts.uriResolver,e,r);let s=t.refs[r];if(s)return s;let o=Jl.call(this,t,r);if(o===void 0){let i=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(o=new dt({schema:i,schemaId:a,root:t,baseId:e}))}if(o!==void 0)return t.refs[r]=Hl.call(this,o)}ie.resolveRef=Gl;function Hl(t){return(0,fe.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Zn.call(this,t)}function ji(t){for(let e of this._compilations)if(Wl(e,t))return e}ie.getCompilingSchema=ji;function Wl(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Jl(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Pr.call(this,t,e)}function Pr(t,e){let r=this.opts.uriResolver.parse(e),n=(0,fe._getFullPath)(this.opts.uriResolver,r),s=(0,fe.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===s)return Xn.call(this,r,t);let o=(0,fe.normalizeId)(n),i=this.refs[o]||this.schemas[o];if(typeof i=="string"){let a=Pr.call(this,t,i);return typeof a?.schema!="object"?void 0:Xn.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||Zn.call(this,i),o===(0,fe.normalizeId)(e)){let{schema:a}=i,{schemaId:c}=this.opts,l=a[c];return l&&(s=(0,fe.resolveUrl)(this.opts.uriResolver,s,l)),new dt({schema:a,schemaId:c,root:t,baseId:s})}return Xn.call(this,r,i)}}ie.resolveSchema=Pr;var Yl=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xn(t,{baseId:e,schema:r,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Ri.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Yl.has(a)&&l&&(e=(0,fe.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Ri.schemaHasRulesButRef)(r,this.RULES)){let a=(0,fe.resolveUrl)(this.opts.uriResolver,e,r.$ref);o=Pr.call(this,n,a)}let{schemaId:i}=this.opts;if(o=o||new dt({schema:r,schemaId:i,root:n,baseId:e}),o.schema!==o.root.schema)return o}});var qi=g((Qy,Bl)=>{Bl.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var es=g((e0,Mi)=>{"use strict";u();var Xl=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Ci=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function Qn(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var Zl=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Ai(t){return t.length=0,!0}function Ql(t,e,r){if(t.length){let n=Qn(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function ed(t){let e=0,r={error:!1,address:"",zone:""},n=[],s=[],o=!1,i=!1,a=Ql;for(let c=0;c<t.length;c++){let l=t[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(i=!0),!a(s,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(o=!0),n.push(":");continue}else if(l==="%"){if(!a(s,n,r))break;a=Ai}else{s.push(l);continue}}return s.length&&(a===Ai?r.zone=s.join(""):i?n.push(s.join("")):n.push(Qn(s))),r.address=n.join(""),r}function Di(t){if(td(t,":")<2)return{host:t,isIPV6:!1};let e=ed(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function td(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function rd(t){let e=t,r=[],n=-1,s=0;for(;s=e.length;){if(s===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(s===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(s===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}function nd(t,e){let r=e!==!0?escape:unescape;return t.scheme!==void 0&&(t.scheme=r(t.scheme)),t.userinfo!==void 0&&(t.userinfo=r(t.userinfo)),t.host!==void 0&&(t.host=r(t.host)),t.path!==void 0&&(t.path=r(t.path)),t.query!==void 0&&(t.query=r(t.query)),t.fragment!==void 0&&(t.fragment=r(t.fragment)),t}function sd(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!Ci(r)){let n=Di(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=t.host}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}Mi.exports={nonSimpleDomain:Zl,recomposeAuthority:sd,normalizeComponentEncoding:nd,removeDotSegments:rd,isIPv4:Ci,isUUID:Xl,normalizeIPv6:Di,stringArrayToHexStripped:Qn}});var Ui=g((r0,Vi)=>{"use strict";u();var{isUUID:od}=es(),id=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,ad=["http","https","ws","wss","urn","urn:uuid"];function cd(t){return ad.indexOf(t)!==-1}function ts(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function xi(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function zi(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function ud(t){return t.secure=ts(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function ld(t){if((t.port===(ts(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function dd(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(id);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let s=`${n}:${e.nid||t.nid}`,o=rs(s);t.path=void 0,o&&(t=o.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function fd(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),s=`${r}:${e.nid||n}`,o=rs(s);o&&(t=o.serialize(t,e));let i=t,a=t.nss;return i.path=`${n||e.nid}:${a}`,e.skipEscape=!0,i}function hd(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!od(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function pd(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Fi={scheme:"http",domainHost:!0,parse:xi,serialize:zi},md={scheme:"https",domainHost:Fi.domainHost,parse:xi,serialize:zi},Ir={scheme:"ws",domainHost:!0,parse:ud,serialize:ld},yd={scheme:"wss",domainHost:Ir.domainHost,parse:Ir.parse,serialize:Ir.serialize},_d={scheme:"urn",parse:dd,serialize:fd,skipNormalize:!0},gd={scheme:"urn:uuid",parse:hd,serialize:pd,skipNormalize:!0},Or={http:Fi,https:md,ws:Ir,wss:yd,urn:_d,"urn:uuid":gd};Object.setPrototypeOf(Or,null);function rs(t){return t&&(Or[t]||Or[t.toLowerCase()])||void 0}Vi.exports={wsIsSecure:ts,SCHEMES:Or,isValidSchemeName:cd,getSchemeHandler:rs}});var Gi=g((s0,kr)=>{"use strict";u();var{normalizeIPv6:$d,removeDotSegments:Lt,recomposeAuthority:vd,normalizeComponentEncoding:Tr,isIPv4:wd,nonSimpleDomain:Ed}=es(),{SCHEMES:Sd,getSchemeHandler:Li}=Ui();function bd(t,e){return typeof t=="string"?t=we(Te(t,e),e):typeof t=="object"&&(t=Te(we(t,e),e)),t}function Pd(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},s=Ki(Te(t,n),Te(e,n),n,!0);return n.skipEscape=!0,we(s,n)}function Ki(t,e,r,n){let s={};return n||(t=Te(we(t,r),r),e=Te(we(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(s.scheme=e.scheme,s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=Lt(e.path||""),s.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=Lt(e.path||""),s.query=e.query):(e.path?(e.path[0]==="/"?s.path=Lt(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?s.path="/"+e.path:t.path?s.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:s.path=e.path,s.path=Lt(s.path)),s.query=e.query):(s.path=t.path,e.query!==void 0?s.query=e.query:s.query=t.query),s.userinfo=t.userinfo,s.host=t.host,s.port=t.port),s.scheme=t.scheme),s.fragment=e.fragment,s}function Nd(t,e,r){return typeof t=="string"?(t=unescape(t),t=we(Tr(Te(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=we(Tr(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=we(Tr(Te(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=we(Tr(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function we(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),s=[],o=Li(n.scheme||r.scheme);o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&s.push(r.scheme,":");let i=vd(r);if(i!==void 0&&(n.reference!=="suffix"&&s.push("//"),s.push(i),r.path&&r.path[0]!=="/"&&s.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=Lt(a)),i===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),s.push(a)}return r.query!==void 0&&s.push("?",r.query),r.fragment!==void 0&&s.push("#",r.fragment),s.join("")}var Id=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Te(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},s=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let o=t.match(Id);if(o){if(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]),n.host)if(wd(n.host)===!1){let c=$d(n.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else s=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let i=Li(r.scheme||n.scheme);if(!r.unicodeSupport&&(!i||!i.unicodeSupport)&&n.host&&(r.domainHost||i&&i.domainHost)&&s===!1&&Ed(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!i||i&&!i.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),i&&i.parse&&i.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var ns={SCHEMES:Sd,normalize:bd,resolve:Pd,resolveComponent:Ki,equal:Nd,serialize:we,parse:Te};kr.exports=ns;kr.exports.default=ns;kr.exports.fastUri=ns});var Wi=g(ss=>{"use strict";u();Object.defineProperty(ss,"__esModule",{value:!0});var Hi=Gi();Hi.code='require("ajv/dist/runtime/uri").default';ss.default=Hi});var ta=g(L=>{"use strict";u();Object.defineProperty(L,"__esModule",{value:!0});L.CodeGen=L.Name=L.nil=L.stringify=L.str=L._=L.KeywordCxt=void 0;var Od=Vt();Object.defineProperty(L,"KeywordCxt",{enumerable:!0,get:function(){return Od.KeywordCxt}});var ft=b();Object.defineProperty(L,"_",{enumerable:!0,get:function(){return ft._}});Object.defineProperty(L,"str",{enumerable:!0,get:function(){return ft.str}});Object.defineProperty(L,"stringify",{enumerable:!0,get:function(){return ft.stringify}});Object.defineProperty(L,"nil",{enumerable:!0,get:function(){return ft.nil}});Object.defineProperty(L,"Name",{enumerable:!0,get:function(){return ft.Name}});Object.defineProperty(L,"CodeGen",{enumerable:!0,get:function(){return ft.CodeGen}});var Td=br(),Zi=Ut(),kd=qn(),Kt=Nr(),Rd=b(),Gt=xt(),Rr=Mt(),is=k(),Ji=qi(),jd=Wi(),Qi=(t,e)=>new RegExp(t,e);Qi.code="new RegExp";var qd=["removeAdditional","useDefaults","coerceTypes"],Ad=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Cd={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Dd={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Yi=200;function Md(t){var e,r,n,s,o,i,a,c,l,d,f,h,y,p,m,_,$,T,I,D,E,me,be,Yr,Br;let St=t.strict,Xr=(e=t.code)===null||e===void 0?void 0:e.optimize,ao=Xr===!0||Xr===void 0?1:Xr||0,co=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Qi,Nc=(s=t.uriResolver)!==null&&s!==void 0?s:jd.default;return{strictSchema:(i=(o=t.strictSchema)!==null&&o!==void 0?o:St)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:St)!==null&&c!==void 0?c:!0,strictTypes:(d=(l=t.strictTypes)!==null&&l!==void 0?l:St)!==null&&d!==void 0?d:"log",strictTuples:(h=(f=t.strictTuples)!==null&&f!==void 0?f:St)!==null&&h!==void 0?h:"log",strictRequired:(p=(y=t.strictRequired)!==null&&y!==void 0?y:St)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:ao,regExp:co}:{optimize:ao,regExp:co},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:Yi,loopEnum:(_=t.loopEnum)!==null&&_!==void 0?_:Yi,meta:($=t.meta)!==null&&$!==void 0?$:!0,messages:(T=t.messages)!==null&&T!==void 0?T:!0,inlineRefs:(I=t.inlineRefs)!==null&&I!==void 0?I:!0,schemaId:(D=t.schemaId)!==null&&D!==void 0?D:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(me=t.validateSchema)!==null&&me!==void 0?me:!0,validateFormats:(be=t.validateFormats)!==null&&be!==void 0?be:!0,unicodeRegExp:(Yr=t.unicodeRegExp)!==null&&Yr!==void 0?Yr:!0,int32range:(Br=t.int32range)!==null&&Br!==void 0?Br:!0,uriResolver:Nc}}var Ht=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Md(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new Rd.ValueScope({scope:{},prefixes:Ad,es5:r,lines:n}),this.logger=Ld(e.logger);let s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,kd.getRules)(),Bi.call(this,Cd,e,"NOT SUPPORTED"),Bi.call(this,Dd,e,"DEPRECATED","warn"),this._metaOpts=Vd.call(this),e.formats&&zd.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Fd.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),xd.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,s=Ji;n==="id"&&(s={...Ji},s.id=s.$id,delete s.$id),r&&e&&this.addMetaSchema(s,s[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let s=n(r);return"$async"in n||(this.errors=n.errors),s}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,e,r);async function s(d,f){await o.call(this,d.$schema);let h=this._addSchema(d,f);return h.validate||i.call(this,h)}async function o(d){d&&!this.getSchema(d)&&await s.call(this,{$ref:d},!0)}async function i(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof Zi.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),i.call(this,d)}}function a({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function c(d){let f=await l.call(this,d);this.refs[d]||await o.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function l(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(e,r,n,s=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,n,s);return this}let o;if(typeof e=="object"){let{schemaId:i}=this.opts;if(o=e[i],o!==void 0&&typeof o!="string")throw new Error(`schema ${i} must be string`)}return r=(0,Gt.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,s,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,e);if(!s&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return s}getSchema(e){let r;for(;typeof(r=Xi.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,s=new Kt.SchemaEnv({schema:{},schemaId:n});if(r=Kt.resolveSchema.call(this,s,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Xi.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Gt.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Gd.call(this,n,r),!r)return(0,is.eachItem)(n,o=>os.call(this,o)),this;Wd.call(this,r);let s={...r,type:(0,Rr.getJSONTypes)(r.type),schemaType:(0,Rr.getJSONTypes)(r.schemaType)};return(0,is.eachItem)(n,s.type.length===0?o=>os.call(this,o,s):o=>s.type.forEach(i=>os.call(this,o,s,i))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let s=n.rules.findIndex(o=>o.keyword===e);s>=0&&n.rules.splice(s,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(s=>`${n}${s.instancePath} ${s.message}`).reduce((s,o)=>s+r+o)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let s of r){let o=s.split("/").slice(1),i=e;for(let a of o)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,d=i[a];l&&d&&(i[a]=ea(d))}}return e}_removeAllSchemas(e,r){for(let n in e){let s=e[n];(!r||r.test(n))&&(typeof s=="string"?delete e[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[n]))}}_addSchema(e,r,n,s=this.opts.validateSchema,o=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof e=="object")i=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,Gt.normalizeId)(i||n);let l=Gt.getSchemaRefs.call(this,e,n);return c=new Kt.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),s&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Kt.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Kt.compileSchema.call(this,e)}finally{this.opts=r}}};Ht.ValidationError=Td.default;Ht.MissingRefError=Zi.default;L.default=Ht;function Bi(t,e,r,n="error"){for(let s in t){let o=s;o in e&&this.logger[n](`${r}: option ${s}. ${t[o]}`)}}function Xi(t){return t=(0,Gt.normalizeId)(t),this.schemas[t]||this.refs[t]}function xd(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function zd(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Fd(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Vd(){let t={...this.opts};for(let e of qd)delete t[e];return t}var Ud={log(){},warn(){},error(){}};function Ld(t){if(t===!1)return Ud;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Kd=/^[a-z_$][a-z0-9_$:-]*$/i;function Gd(t,e){let{RULES:r}=this;if((0,is.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Kd.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function os(t,e,r){var n;let s=e?.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,i=s?o.post:o.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},o.rules.push(i)),o.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,Rr.getJSONTypes)(e.type),schemaType:(0,Rr.getJSONTypes)(e.schemaType)}};e.before?Hd.call(this,i,a,e.before):i.rules.push(a),o.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Hd(t,e,r){let n=t.rules.findIndex(s=>s.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function Wd(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=ea(e)),t.validateSchema=this.compile(e,!0))}var Jd={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ea(t){return{anyOf:[t,Jd]}}});var ra=g(as=>{"use strict";u();Object.defineProperty(as,"__esModule",{value:!0});var Yd={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};as.default=Yd});var ia=g(Xe=>{"use strict";u();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.callRef=Xe.getValidate=void 0;var Bd=Ut(),na=oe(),te=b(),ht=Ie(),sa=Nr(),jr=k(),Xd={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:s,schemaEnv:o,validateName:i,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&s===l.baseId)return f();let d=sa.resolveRef.call(c,l,s,r);if(d===void 0)throw new Bd.default(n.opts.uriResolver,s,r);if(d instanceof sa.SchemaEnv)return h(d);return y(d);function f(){if(o===l)return qr(t,i,o,o.$async);let p=e.scopeValue("root",{ref:l});return qr(t,(0,te._)`${p}.validate`,l,l.$async)}function h(p){let m=oa(t,p);qr(t,m,p,p.$async)}function y(p){let m=e.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,te.stringify)(p)}:{ref:p}),_=e.name("valid"),$=t.subschema({schema:p,dataTypes:[],schemaPath:te.nil,topSchemaRef:m,errSchemaPath:r},_);t.mergeEvaluated($),t.ok(_)}}};function oa(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,te._)`${r.scopeValue("wrapper",{ref:e})}.validate`}Xe.getValidate=oa;function qr(t,e,r,n){let{gen:s,it:o}=t,{allErrors:i,schemaEnv:a,opts:c}=o,l=c.passContext?ht.default.this:te.nil;n?d():f();function d(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=s.let("valid");s.try(()=>{s.code((0,te._)`await ${(0,na.callValidateCode)(t,e,l)}`),y(e),i||s.assign(p,!0)},m=>{s.if((0,te._)`!(${m} instanceof ${o.ValidationError})`,()=>s.throw(m)),h(m),i||s.assign(p,!1)}),t.ok(p)}function f(){t.result((0,na.callValidateCode)(t,e,l),()=>y(e),()=>h(e))}function h(p){let m=(0,te._)`${p}.errors`;s.assign(ht.default.vErrors,(0,te._)`${ht.default.vErrors} === null ? ${m} : ${ht.default.vErrors}.concat(${m})`),s.assign(ht.default.errors,(0,te._)`${ht.default.vErrors}.length`)}function y(p){var m;if(!o.opts.unevaluated)return;let _=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(o.props=jr.mergeEvaluated.props(s,_.props,o.props));else{let $=s.var("props",(0,te._)`${p}.evaluated.props`);o.props=jr.mergeEvaluated.props(s,$,o.props,te.Name)}if(o.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(o.items=jr.mergeEvaluated.items(s,_.items,o.items));else{let $=s.var("items",(0,te._)`${p}.evaluated.items`);o.items=jr.mergeEvaluated.items(s,$,o.items,te.Name)}}}Xe.callRef=qr;Xe.default=Xd});var aa=g(cs=>{"use strict";u();Object.defineProperty(cs,"__esModule",{value:!0});var Zd=ra(),Qd=ia(),ef=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Zd.default,Qd.default];cs.default=ef});var ca=g(us=>{"use strict";u();Object.defineProperty(us,"__esModule",{value:!0});var Ar=b(),De=Ar.operators,Cr={maximum:{okStr:"<=",ok:De.LTE,fail:De.GT},minimum:{okStr:">=",ok:De.GTE,fail:De.LT},exclusiveMaximum:{okStr:"<",ok:De.LT,fail:De.GTE},exclusiveMinimum:{okStr:">",ok:De.GT,fail:De.LTE}},tf={message:({keyword:t,schemaCode:e})=>(0,Ar.str)`must be ${Cr[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Ar._)`{comparison: ${Cr[t].okStr}, limit: ${e}}`},rf={keyword:Object.keys(Cr),type:"number",schemaType:"number",$data:!0,error:tf,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Ar._)`${r} ${Cr[e].fail} ${n} || isNaN(${r})`)}};us.default=rf});var ua=g(ls=>{"use strict";u();Object.defineProperty(ls,"__esModule",{value:!0});var Wt=b(),nf={message:({schemaCode:t})=>(0,Wt.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Wt._)`{multipleOf: ${t}}`},sf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:nf,code(t){let{gen:e,data:r,schemaCode:n,it:s}=t,o=s.opts.multipleOfPrecision,i=e.let("res"),a=o?(0,Wt._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}`:(0,Wt._)`${i} !== parseInt(${i})`;t.fail$data((0,Wt._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};ls.default=sf});var da=g(ds=>{"use strict";u();Object.defineProperty(ds,"__esModule",{value:!0});function la(t){let e=t.length,r=0,n=0,s;for(;n<e;)r++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<e&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return r}ds.default=la;la.code='require("ajv/dist/runtime/ucs2length").default'});var fa=g(fs=>{"use strict";u();Object.defineProperty(fs,"__esModule",{value:!0});var Ze=b(),of=k(),af=da(),cf={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Ze.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Ze._)`{limit: ${t}}`},uf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cf,code(t){let{keyword:e,data:r,schemaCode:n,it:s}=t,o=e==="maxLength"?Ze.operators.GT:Ze.operators.LT,i=s.opts.unicode===!1?(0,Ze._)`${r}.length`:(0,Ze._)`${(0,of.useFunc)(t.gen,af.default)}(${r})`;t.fail$data((0,Ze._)`${i} ${o} ${n}`)}};fs.default=uf});var ha=g(hs=>{"use strict";u();Object.defineProperty(hs,"__esModule",{value:!0});var lf=oe(),df=k(),pt=b(),ff={message:({schemaCode:t})=>(0,pt.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,pt._)`{pattern: ${t}}`},hf={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ff,code(t){let{gen:e,data:r,$data:n,schema:s,schemaCode:o,it:i}=t,a=i.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=i.opts.code,l=c.code==="new RegExp"?(0,pt._)`new RegExp`:(0,df.useFunc)(e,c),d=e.let("valid");e.try(()=>e.assign(d,(0,pt._)`${l}(${o}, ${a}).test(${r})`),()=>e.assign(d,!1)),t.fail$data((0,pt._)`!${d}`)}else{let c=(0,lf.usePattern)(t,s);t.fail$data((0,pt._)`!${c}.test(${r})`)}}};hs.default=hf});var pa=g(ps=>{"use strict";u();Object.defineProperty(ps,"__esModule",{value:!0});var Jt=b(),pf={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Jt.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Jt._)`{limit: ${t}}`},mf={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:pf,code(t){let{keyword:e,data:r,schemaCode:n}=t,s=e==="maxProperties"?Jt.operators.GT:Jt.operators.LT;t.fail$data((0,Jt._)`Object.keys(${r}).length ${s} ${n}`)}};ps.default=mf});var ma=g(ms=>{"use strict";u();Object.defineProperty(ms,"__esModule",{value:!0});var Yt=oe(),Bt=b(),yf=k(),_f={message:({params:{missingProperty:t}})=>(0,Bt.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Bt._)`{missingProperty: ${t}}`},gf={keyword:"required",type:"object",schemaType:"array",$data:!0,error:_f,code(t){let{gen:e,schema:r,schemaCode:n,data:s,$data:o,it:i}=t,{opts:a}=i;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?l():d(),a.strictRequired){let y=t.parentSchema.properties,{definedProperties:p}=t.it;for(let m of r)if(y?.[m]===void 0&&!p.has(m)){let _=i.schemaEnv.baseId+i.errSchemaPath,$=`required property "${m}" is not defined at "${_}" (strictRequired)`;(0,yf.checkStrictMode)(i,$,i.opts.strictRequired)}}function l(){if(c||o)t.block$data(Bt.nil,f);else for(let y of r)(0,Yt.checkReportMissingProp)(t,y)}function d(){let y=e.let("missing");if(c||o){let p=e.let("valid",!0);t.block$data(p,()=>h(y,p)),t.ok(p)}else e.if((0,Yt.checkMissingProp)(t,r,y)),(0,Yt.reportMissingProp)(t,y),e.else()}function f(){e.forOf("prop",n,y=>{t.setParams({missingProperty:y}),e.if((0,Yt.noPropertyInData)(e,s,y,a.ownProperties),()=>t.error())})}function h(y,p){t.setParams({missingProperty:y}),e.forOf(y,n,()=>{e.assign(p,(0,Yt.propertyInData)(e,s,y,a.ownProperties)),e.if((0,Bt.not)(p),()=>{t.error(),e.break()})},Bt.nil)}}};ms.default=gf});var ya=g(ys=>{"use strict";u();Object.defineProperty(ys,"__esModule",{value:!0});var Xt=b(),$f={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Xt.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Xt._)`{limit: ${t}}`},vf={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$f,code(t){let{keyword:e,data:r,schemaCode:n}=t,s=e==="maxItems"?Xt.operators.GT:Xt.operators.LT;t.fail$data((0,Xt._)`${r}.length ${s} ${n}`)}};ys.default=vf});var Dr=g(_s=>{"use strict";u();Object.defineProperty(_s,"__esModule",{value:!0});var _a=Vn();_a.code='require("ajv/dist/runtime/equal").default';_s.default=_a});var ga=g($s=>{"use strict";u();Object.defineProperty($s,"__esModule",{value:!0});var gs=Mt(),K=b(),wf=k(),Ef=Dr(),Sf={message:({params:{i:t,j:e}})=>(0,K.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,K._)`{i: ${t}, j: ${e}}`},bf={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Sf,code(t){let{gen:e,data:r,$data:n,schema:s,parentSchema:o,schemaCode:i,it:a}=t;if(!n&&!s)return;let c=e.let("valid"),l=o.items?(0,gs.getSchemaTypes)(o.items):[];t.block$data(c,d,(0,K._)`${i} === false`),t.ok(c);function d(){let p=e.let("i",(0,K._)`${r}.length`),m=e.let("j");t.setParams({i:p,j:m}),e.assign(c,!0),e.if((0,K._)`${p} > 1`,()=>(f()?h:y)(p,m))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function h(p,m){let _=e.name("item"),$=(0,gs.checkDataTypes)(l,_,a.opts.strictNumbers,gs.DataType.Wrong),T=e.const("indices",(0,K._)`{}`);e.for((0,K._)`;${p}--;`,()=>{e.let(_,(0,K._)`${r}[${p}]`),e.if($,(0,K._)`continue`),l.length>1&&e.if((0,K._)`typeof ${_} == "string"`,(0,K._)`${_} += "_"`),e.if((0,K._)`typeof ${T}[${_}] == "number"`,()=>{e.assign(m,(0,K._)`${T}[${_}]`),t.error(),e.assign(c,!1).break()}).code((0,K._)`${T}[${_}] = ${p}`)})}function y(p,m){let _=(0,wf.useFunc)(e,Ef.default),$=e.name("outer");e.label($).for((0,K._)`;${p}--;`,()=>e.for((0,K._)`${m} = ${p}; ${m}--;`,()=>e.if((0,K._)`${_}(${r}[${p}], ${r}[${m}])`,()=>{t.error(),e.assign(c,!1).break($)})))}}};$s.default=bf});var $a=g(ws=>{"use strict";u();Object.defineProperty(ws,"__esModule",{value:!0});var vs=b(),Pf=k(),Nf=Dr(),If={message:"must be equal to constant",params:({schemaCode:t})=>(0,vs._)`{allowedValue: ${t}}`},Of={keyword:"const",$data:!0,error:If,code(t){let{gen:e,data:r,$data:n,schemaCode:s,schema:o}=t;n||o&&typeof o=="object"?t.fail$data((0,vs._)`!${(0,Pf.useFunc)(e,Nf.default)}(${r}, ${s})`):t.fail((0,vs._)`${o} !== ${r}`)}};ws.default=Of});var va=g(Es=>{"use strict";u();Object.defineProperty(Es,"__esModule",{value:!0});var Zt=b(),Tf=k(),kf=Dr(),Rf={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Zt._)`{allowedValues: ${t}}`},jf={keyword:"enum",schemaType:"array",$data:!0,error:Rf,code(t){let{gen:e,data:r,$data:n,schema:s,schemaCode:o,it:i}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let a=s.length>=i.opts.loopEnum,c,l=()=>c??(c=(0,Tf.useFunc)(e,kf.default)),d;if(a||n)d=e.let("valid"),t.block$data(d,f);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let y=e.const("vSchema",o);d=(0,Zt.or)(...s.map((p,m)=>h(y,m)))}t.pass(d);function f(){e.assign(d,!1),e.forOf("v",o,y=>e.if((0,Zt._)`${l()}(${r}, ${y})`,()=>e.assign(d,!0).break()))}function h(y,p){let m=s[p];return typeof m=="object"&&m!==null?(0,Zt._)`${l()}(${r}, ${y}[${p}])`:(0,Zt._)`${r} === ${m}`}}};Es.default=jf});var wa=g(Ss=>{"use strict";u();Object.defineProperty(Ss,"__esModule",{value:!0});var qf=ca(),Af=ua(),Cf=fa(),Df=ha(),Mf=pa(),xf=ma(),zf=ya(),Ff=ga(),Vf=$a(),Uf=va(),Lf=[qf.default,Af.default,Cf.default,Df.default,Mf.default,xf.default,zf.default,Ff.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Vf.default,Uf.default];Ss.default=Lf});var Ps=g(Qt=>{"use strict";u();Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateAdditionalItems=void 0;var Qe=b(),bs=k(),Kf={message:({params:{len:t}})=>(0,Qe.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Qe._)`{limit: ${t}}`},Gf={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Kf,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,bs.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Ea(t,n)}};function Ea(t,e){let{gen:r,schema:n,data:s,keyword:o,it:i}=t;i.items=!0;let a=r.const("len",(0,Qe._)`${s}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Qe._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,bs.alwaysValidSchema)(i,n)){let l=r.var("valid",(0,Qe._)`${a} <= ${e.length}`);r.if((0,Qe.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,d=>{t.subschema({keyword:o,dataProp:d,dataPropType:bs.Type.Num},l),i.allErrors||r.if((0,Qe.not)(l),()=>r.break())})}}Qt.validateAdditionalItems=Ea;Qt.default=Gf});var Ns=g(er=>{"use strict";u();Object.defineProperty(er,"__esModule",{value:!0});er.validateTuple=void 0;var Sa=b(),Mr=k(),Hf=oe(),Wf={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return ba(t,"additionalItems",e);r.items=!0,!(0,Mr.alwaysValidSchema)(r,e)&&t.ok((0,Hf.validateArray)(t))}};function ba(t,e,r=t.schema){let{gen:n,parentSchema:s,data:o,keyword:i,it:a}=t;d(s),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Mr.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,Sa._)`${o}.length`);r.forEach((f,h)=>{(0,Mr.alwaysValidSchema)(a,f)||(n.if((0,Sa._)`${l} > ${h}`,()=>t.subschema({keyword:i,schemaProp:h,dataProp:h},c)),t.ok(c))});function d(f){let{opts:h,errSchemaPath:y}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(h.strictTuples&&!m){let _=`"${i}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${y}"`;(0,Mr.checkStrictMode)(a,_,h.strictTuples)}}}er.validateTuple=ba;er.default=Wf});var Pa=g(Is=>{"use strict";u();Object.defineProperty(Is,"__esModule",{value:!0});var Jf=Ns(),Yf={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Jf.validateTuple)(t,"items")};Is.default=Yf});var Ia=g(Os=>{"use strict";u();Object.defineProperty(Os,"__esModule",{value:!0});var Na=b(),Bf=k(),Xf=oe(),Zf=Ps(),Qf={message:({params:{len:t}})=>(0,Na.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Na._)`{limit: ${t}}`},eh={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Qf,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:s}=r;n.items=!0,!(0,Bf.alwaysValidSchema)(n,e)&&(s?(0,Zf.validateAdditionalItems)(t,s):t.ok((0,Xf.validateArray)(t)))}};Os.default=eh});var Oa=g(Ts=>{"use strict";u();Object.defineProperty(Ts,"__esModule",{value:!0});var ae=b(),xr=k(),th={message:({params:{min:t,max:e}})=>e===void 0?(0,ae.str)`must contain at least ${t} valid item(s)`:(0,ae.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,ae._)`{minContains: ${t}}`:(0,ae._)`{minContains: ${t}, maxContains: ${e}}`},rh={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:th,code(t){let{gen:e,schema:r,parentSchema:n,data:s,it:o}=t,i,a,{minContains:c,maxContains:l}=n;o.opts.next?(i=c===void 0?1:c,a=l):i=1;let d=e.const("len",(0,ae._)`${s}.length`);if(t.setParams({min:i,max:a}),a===void 0&&i===0){(0,xr.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,xr.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,xr.alwaysValidSchema)(o,r)){let m=(0,ae._)`${d} >= ${i}`;a!==void 0&&(m=(0,ae._)`${m} && ${d} <= ${a}`),t.pass(m);return}o.items=!0;let f=e.name("valid");a===void 0&&i===1?y(f,()=>e.if(f,()=>e.break())):i===0?(e.let(f,!0),a!==void 0&&e.if((0,ae._)`${s}.length > 0`,h)):(e.let(f,!1),h()),t.result(f,()=>t.reset());function h(){let m=e.name("_valid"),_=e.let("count",0);y(m,()=>e.if(m,()=>p(_)))}function y(m,_){e.forRange("i",0,d,$=>{t.subschema({keyword:"contains",dataProp:$,dataPropType:xr.Type.Num,compositeRule:!0},m),_()})}function p(m){e.code((0,ae._)`${m}++`),a===void 0?e.if((0,ae._)`${m} >= ${i}`,()=>e.assign(f,!0).break()):(e.if((0,ae._)`${m} > ${a}`,()=>e.assign(f,!1).break()),i===1?e.assign(f,!0):e.if((0,ae._)`${m} >= ${i}`,()=>e.assign(f,!0)))}}};Ts.default=rh});var Ra=g(Ee=>{"use strict";u();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateSchemaDeps=Ee.validatePropertyDeps=Ee.error=void 0;var ks=b(),nh=k(),tr=oe();Ee.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,ks.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,ks._)`{property: ${t},
|
|
5
|
+
|| ${i} === "boolean" || ${s} === null`).assign(a,(0,S._)`[${s}]`)}}}function Fu({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,S._)`${e} !== undefined`,()=>t.assign((0,S._)`${e}[${r}]`,n))}function zn(t,e,r,n=ct.Correct){let s=n===ct.Correct?S.operators.EQ:S.operators.NEQ,o;switch(t){case"null":return(0,S._)`${e} ${s} null`;case"array":o=(0,S._)`Array.isArray(${e})`;break;case"object":o=(0,S._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=i((0,S._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=i();break;default:return(0,S._)`typeof ${e} ${s} ${t}`}return n===ct.Correct?o:(0,S.not)(o);function i(a=S.nil){return(0,S.and)((0,S._)`typeof ${e} == "number"`,a,r?(0,S._)`isFinite(${e})`:S.nil)}}J.checkDataType=zn;function Fn(t,e,r,n){if(t.length===1)return zn(t[0],e,r,n);let s,o=(0,ri.toHash)(t);if(o.array&&o.object){let i=(0,S._)`typeof ${e} != "object"`;s=o.null?i:(0,S._)`!${e} || ${i}`,delete o.null,delete o.array,delete o.object}else s=S.nil;o.number&&delete o.integer;for(let i in o)s=(0,S.and)(s,zn(i,e,r,n));return s}J.checkDataTypes=Fn;var Vu={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,S._)`{type: ${t}}`:(0,S._)`{type: ${e}}`};function Vn(t){let e=Uu(t);(0,Cu.reportError)(e,Vu)}J.reportTypeError=Vn;function Uu(t){let{gen:e,data:r,schema:n}=t,s=(0,ri.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:t}}});var ii=g(wr=>{"use strict";u();Object.defineProperty(wr,"__esModule",{value:!0});wr.assignDefaults=void 0;var ut=b(),Lu=k();function Ku(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let s in r)oi(t,s,r[s].default);else e==="array"&&Array.isArray(n)&&n.forEach((s,o)=>oi(t,o,s.default))}wr.assignDefaults=Ku;function oi(t,e,r){let{gen:n,compositeRule:s,data:o,opts:i}=t;if(r===void 0)return;let a=(0,ut._)`${o}${(0,ut.getProperty)(e)}`;if(s){(0,Lu.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,ut._)`${a} === undefined`;i.useDefaults==="empty"&&(c=(0,ut._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ut._)`${a} = ${(0,ut.stringify)(r)}`)}});var oe=g(A=>{"use strict";u();Object.defineProperty(A,"__esModule",{value:!0});A.validateUnion=A.validateArray=A.usePattern=A.callValidateCode=A.schemaProperties=A.allSchemaProperties=A.noPropertyInData=A.propertyInData=A.isOwnProperty=A.hasPropFunc=A.reportMissingProp=A.checkMissingProp=A.checkReportMissingProp=void 0;var M=b(),Un=k(),je=Ie(),Gu=k();function Hu(t,e){let{gen:r,data:n,it:s}=t;r.if(Kn(r,n,e,s.opts.ownProperties),()=>{t.setParams({missingProperty:(0,M._)`${e}`},!0),t.error()})}A.checkReportMissingProp=Hu;function Wu({gen:t,data:e,it:{opts:r}},n,s){return(0,M.or)(...n.map(o=>(0,M.and)(Kn(t,e,o,r.ownProperties),(0,M._)`${s} = ${o}`)))}A.checkMissingProp=Wu;function Ju(t,e){t.setParams({missingProperty:e},!0),t.error()}A.reportMissingProp=Ju;function ai(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,M._)`Object.prototype.hasOwnProperty`})}A.hasPropFunc=ai;function Ln(t,e,r){return(0,M._)`${ai(t)}.call(${e}, ${r})`}A.isOwnProperty=Ln;function Yu(t,e,r,n){let s=(0,M._)`${e}${(0,M.getProperty)(r)} !== undefined`;return n?(0,M._)`${s} && ${Ln(t,e,r)}`:s}A.propertyInData=Yu;function Kn(t,e,r,n){let s=(0,M._)`${e}${(0,M.getProperty)(r)} === undefined`;return n?(0,M.or)(s,(0,M.not)(Ln(t,e,r))):s}A.noPropertyInData=Kn;function ci(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}A.allSchemaProperties=ci;function Bu(t,e){return ci(e).filter(r=>!(0,Un.alwaysValidSchema)(t,e[r]))}A.schemaProperties=Bu;function Xu({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:s,errorPath:o},it:i},a,c,l){let d=l?(0,M._)`${t}, ${e}, ${n}${s}`:e,f=[[je.default.instancePath,(0,M.strConcat)(je.default.instancePath,o)],[je.default.parentData,i.parentData],[je.default.parentDataProperty,i.parentDataProperty],[je.default.rootData,je.default.rootData]];i.opts.dynamicRef&&f.push([je.default.dynamicAnchors,je.default.dynamicAnchors]);let h=(0,M._)`${d}, ${r.object(...f)}`;return c!==M.nil?(0,M._)`${a}.call(${c}, ${h})`:(0,M._)`${a}(${h})`}A.callValidateCode=Xu;var Zu=(0,M._)`new RegExp`;function Qu({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:s}=e.code,o=s(r,n);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,M._)`${s.code==="new RegExp"?Zu:(0,Gu.useFunc)(t,s)}(${r}, ${n})`})}A.usePattern=Qu;function el(t){let{gen:e,data:r,keyword:n,it:s}=t,o=e.name("valid");if(s.allErrors){let a=e.let("valid",!0);return i(()=>e.assign(a,!1)),a}return e.var(o,!0),i(()=>e.break()),o;function i(a){let c=e.const("len",(0,M._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:Un.Type.Num},o),e.if((0,M.not)(o),a)})}}A.validateArray=el;function tl(t){let{gen:e,schema:r,keyword:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Un.alwaysValidSchema)(s,c))&&!s.opts.unevaluated)return;let i=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let d=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(i,(0,M._)`${i} || ${a}`),t.mergeValidEvaluated(d,a)||e.if((0,M.not)(i))})),t.result(i,()=>t.reset(),()=>t.error(!0))}A.validateUnion=tl});var di=g($e=>{"use strict";u();Object.defineProperty($e,"__esModule",{value:!0});$e.validateKeywordUsage=$e.validSchemaType=$e.funcKeywordCode=$e.macroKeywordCode=void 0;var B=b(),Ye=Ie(),rl=oe(),nl=Dt();function sl(t,e){let{gen:r,keyword:n,schema:s,parentSchema:o,it:i}=t,a=e.macro.call(i.self,s,o,i),c=li(r,n,a);i.opts.validateSchema!==!1&&i.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:B.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}$e.macroKeywordCode=sl;function ol(t,e){var r;let{gen:n,keyword:s,schema:o,parentSchema:i,$data:a,it:c}=t;al(c,e);let l=!a&&e.compile?e.compile.call(c.self,o,i,c):e.validate,d=li(n,s,l),f=n.let("valid");t.block$data(f,h),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function h(){if(e.errors===!1)m(),e.modifying&&ui(t),_(()=>t.error());else{let $=e.async?y():p();e.modifying&&ui(t),_(()=>il(t,$))}}function y(){let $=n.let("ruleErrs",null);return n.try(()=>m((0,B._)`await `),T=>n.assign(f,!1).if((0,B._)`${T} instanceof ${c.ValidationError}`,()=>n.assign($,(0,B._)`${T}.errors`),()=>n.throw(T))),$}function p(){let $=(0,B._)`${d}.errors`;return n.assign($,null),m(B.nil),$}function m($=e.async?(0,B._)`await `:B.nil){let T=c.opts.passContext?Ye.default.this:Ye.default.self,I=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,B._)`${$}${(0,rl.callValidateCode)(t,d,T,I)}`,e.modifying)}function _($){var T;n.if((0,B.not)((T=e.valid)!==null&&T!==void 0?T:f),$)}}$e.funcKeywordCode=ol;function ui(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,B._)`${n.parentData}[${n.parentDataProperty}]`))}function il(t,e){let{gen:r}=t;r.if((0,B._)`Array.isArray(${e})`,()=>{r.assign(Ye.default.vErrors,(0,B._)`${Ye.default.vErrors} === null ? ${e} : ${Ye.default.vErrors}.concat(${e})`).assign(Ye.default.errors,(0,B._)`${Ye.default.vErrors}.length`),(0,nl.extendErrors)(t)},()=>t.error())}function al({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function li(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,B.stringify)(r)})}function cl(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}$e.validSchemaType=cl;function ul({schema:t,opts:e,self:r,errSchemaPath:n},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw new Error("ajv implementation error");let i=s.dependencies;if(i?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${o}: ${i.join(",")}`);if(s.validateSchema&&!s.validateSchema(t[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}$e.validateKeywordUsage=ul});var hi=g(qe=>{"use strict";u();Object.defineProperty(qe,"__esModule",{value:!0});qe.extendSubschemaMode=qe.extendSubschemaData=qe.getSubschema=void 0;var ve=b(),fi=k();function ll(t,{keyword:e,schemaProp:r,schema:n,schemaPath:s,errSchemaPath:o,topSchemaRef:i}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,ve._)`${t.schemaPath}${(0,ve.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,ve._)`${t.schemaPath}${(0,ve.getProperty)(e)}${(0,ve.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,fi.escapeFragment)(r)}`}}if(n!==void 0){if(s===void 0||o===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:s,topSchemaRef:i,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}qe.getSubschema=ll;function dl(t,e,{dataProp:r,dataPropType:n,data:s,dataTypes:o,propertyName:i}){if(s!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:d,opts:f}=e,h=a.let("data",(0,ve._)`${e.data}${(0,ve.getProperty)(r)}`,!0);c(h),t.errorPath=(0,ve.str)`${l}${(0,fi.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,ve._)`${r}`,t.dataPathArr=[...d,t.parentDataProperty]}if(s!==void 0){let l=s instanceof ve.Name?s:a.let("data",s,!0);c(l),i!==void 0&&(t.propertyName=i)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}qe.extendSubschemaData=dl;function fl(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:o}){n!==void 0&&(t.compositeRule=n),s!==void 0&&(t.createErrors=s),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}qe.extendSubschemaMode=fl});var Gn=g((Ky,pi)=>{"use strict";u();pi.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;s--!==0;){var i=o[s];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var yi=g((Hy,mi)=>{"use strict";u();var Ae=mi.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};Er(e,n,s,t,"",t)};Ae.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ae.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ae.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ae.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Er(t,e,r,n,s,o,i,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,s,o,i,a,c,l);for(var d in n){var f=n[d];if(Array.isArray(f)){if(d in Ae.arrayKeywords)for(var h=0;h<f.length;h++)Er(t,e,r,f[h],s+"/"+d+"/"+h,o,s,d,n,h)}else if(d in Ae.propsKeywords){if(f&&typeof f=="object")for(var y in f)Er(t,e,r,f[y],s+"/"+d+"/"+hl(y),o,s,d,n,y)}else(d in Ae.keywords||t.allKeys&&!(d in Ae.skipKeywords))&&Er(t,e,r,f,s+"/"+d,o,s,d,n)}r(n,s,o,i,a,c,l)}}function hl(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var xt=g(ee=>{"use strict";u();Object.defineProperty(ee,"__esModule",{value:!0});ee.getSchemaRefs=ee.resolveUrl=ee.normalizeId=ee._getFullPath=ee.getFullPath=ee.inlineRef=void 0;var pl=k(),ml=Gn(),yl=yi(),_l=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function gl(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Hn(t):e?_i(t)<=e:!1}ee.inlineRef=gl;var $l=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hn(t){for(let e in t){if($l.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Hn)||typeof r=="object"&&Hn(r))return!0}return!1}function _i(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!_l.has(r)&&(typeof t[r]=="object"&&(0,pl.eachItem)(t[r],n=>e+=_i(n)),e===1/0))return 1/0}return e}function gi(t,e="",r){r!==!1&&(e=lt(e));let n=t.parse(e);return $i(t,n)}ee.getFullPath=gi;function $i(t,e){return t.serialize(e).split("#")[0]+"#"}ee._getFullPath=$i;var vl=/#\/?$/;function lt(t){return t?t.replace(vl,""):""}ee.normalizeId=lt;function wl(t,e,r){return r=lt(r),t.resolve(e,r)}ee.resolveUrl=wl;var El=/^[a-z_][-a-z0-9._]*$/i;function Sl(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,s=lt(t[r]||e),o={"":s},i=gi(n,s,!1),a={},c=new Set;return yl(t,{allKeys:!0},(f,h,y,p)=>{if(p===void 0)return;let m=i+h,_=o[p];typeof f[r]=="string"&&(_=$.call(this,f[r])),T.call(this,f.$anchor),T.call(this,f.$dynamicAnchor),o[h]=_;function $(I){let D=this.opts.uriResolver.resolve;if(I=lt(_?D(_,I):I),c.has(I))throw d(I);c.add(I);let E=this.refs[I];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?l(f,E.schema,I):I!==lt(m)&&(I[0]==="#"?(l(f,a[I],I),a[I]=f):this.refs[I]=m),I}function T(I){if(typeof I=="string"){if(!El.test(I))throw new Error(`invalid anchor "${I}"`);$.call(this,`#${I}`)}}}),a;function l(f,h,y){if(h!==void 0&&!ml(f,h))throw d(y)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}ee.getSchemaRefs=Sl});var Vt=g(Ce=>{"use strict";u();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.getData=Ce.KeywordCxt=Ce.validateFunctionCode=void 0;var bi=Qo(),vi=Mt(),Jn=xn(),Sr=Mt(),bl=ii(),Ft=di(),Wn=hi(),v=b(),w=Ie(),Pl=xt(),Oe=k(),zt=Dt();function Nl(t){if(Ii(t)&&(Oi(t),Ni(t))){Tl(t);return}Pi(t,()=>(0,bi.topBoolOrEmptySchema)(t))}Ce.validateFunctionCode=Nl;function Pi({gen:t,validateName:e,schema:r,schemaEnv:n,opts:s},o){s.code.es5?t.func(e,(0,v._)`${w.default.data}, ${w.default.valCxt}`,n.$async,()=>{t.code((0,v._)`"use strict"; ${wi(r,s)}`),Ol(t,s),t.code(o)}):t.func(e,(0,v._)`${w.default.data}, ${Il(s)}`,n.$async,()=>t.code(wi(r,s)).code(o))}function Il(t){return(0,v._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${t.dynamicRef?(0,v._)`, ${w.default.dynamicAnchors}={}`:v.nil}}={}`}function Ol(t,e){t.if(w.default.valCxt,()=>{t.var(w.default.instancePath,(0,v._)`${w.default.valCxt}.${w.default.instancePath}`),t.var(w.default.parentData,(0,v._)`${w.default.valCxt}.${w.default.parentData}`),t.var(w.default.parentDataProperty,(0,v._)`${w.default.valCxt}.${w.default.parentDataProperty}`),t.var(w.default.rootData,(0,v._)`${w.default.valCxt}.${w.default.rootData}`),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{t.var(w.default.instancePath,(0,v._)`""`),t.var(w.default.parentData,(0,v._)`undefined`),t.var(w.default.parentDataProperty,(0,v._)`undefined`),t.var(w.default.rootData,w.default.data),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`{}`)})}function Tl(t){let{schema:e,opts:r,gen:n}=t;Pi(t,()=>{r.$comment&&e.$comment&&ki(t),Al(t),n.let(w.default.vErrors,null),n.let(w.default.errors,0),r.unevaluated&&kl(t),Ti(t),Ml(t)})}function kl(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,v._)`${r}.evaluated`),e.if((0,v._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,v._)`${t.evaluated}.props`,(0,v._)`undefined`)),e.if((0,v._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,v._)`${t.evaluated}.items`,(0,v._)`undefined`))}function wi(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,v._)`/*# sourceURL=${r} */`:v.nil}function Rl(t,e){if(Ii(t)&&(Oi(t),Ni(t))){jl(t,e);return}(0,bi.boolOrEmptySchema)(t,e)}function Ni({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function Ii(t){return typeof t.schema!="boolean"}function jl(t,e){let{schema:r,gen:n,opts:s}=t;s.$comment&&r.$comment&&ki(t),Cl(t),Dl(t);let o=n.const("_errs",w.default.errors);Ti(t,o),n.var(e,(0,v._)`${o} === ${w.default.errors}`)}function Oi(t){(0,Oe.checkUnknownRules)(t),ql(t)}function Ti(t,e){if(t.opts.jtd)return Ei(t,[],!1,e);let r=(0,vi.getSchemaTypes)(t.schema),n=(0,vi.coerceAndCheckDataType)(t,r);Ei(t,r,!n,e)}function ql(t){let{schema:e,errSchemaPath:r,opts:n,self:s}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Oe.schemaHasRulesButRef)(e,s.RULES)&&s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Al(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Oe.checkStrictMode)(t,"default is ignored in the schema root")}function Cl(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Pl.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Dl(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function ki({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:s}){let o=r.$comment;if(s.$comment===!0)t.code((0,v._)`${w.default.self}.logger.log(${o})`);else if(typeof s.$comment=="function"){let i=(0,v.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,v._)`${w.default.self}.opts.$comment(${o}, ${i}, ${a}.schema)`)}}function Ml(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:s,opts:o}=t;r.$async?e.if((0,v._)`${w.default.errors} === 0`,()=>e.return(w.default.data),()=>e.throw((0,v._)`new ${s}(${w.default.vErrors})`)):(e.assign((0,v._)`${n}.errors`,w.default.vErrors),o.unevaluated&&xl(t),e.return((0,v._)`${w.default.errors} === 0`))}function xl({gen:t,evaluated:e,props:r,items:n}){r instanceof v.Name&&t.assign((0,v._)`${e}.props`,r),n instanceof v.Name&&t.assign((0,v._)`${e}.items`,n)}function Ei(t,e,r,n){let{gen:s,schema:o,data:i,allErrors:a,opts:c,self:l}=t,{RULES:d}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Oe.schemaHasRulesButRef)(o,d))){s.block(()=>ji(t,"$ref",d.all.$ref.definition));return}c.jtd||zl(t,e),s.block(()=>{for(let h of d.rules)f(h);f(d.post)});function f(h){(0,Jn.shouldUseGroup)(o,h)&&(h.type?(s.if((0,Sr.checkDataType)(h.type,i,c.strictNumbers)),Si(t,h),e.length===1&&e[0]===h.type&&r&&(s.else(),(0,Sr.reportTypeError)(t)),s.endIf()):Si(t,h),a||s.if((0,v._)`${w.default.errors} === ${n||0}`))}}function Si(t,e){let{gen:r,schema:n,opts:{useDefaults:s}}=t;s&&(0,bl.assignDefaults)(t,e.type),r.block(()=>{for(let o of e.rules)(0,Jn.shouldUseRule)(n,o)&&ji(t,o.keyword,o.definition,e.type)})}function zl(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Fl(t,e),t.opts.allowUnionTypes||Vl(t,e),Ul(t,t.dataTypes))}function Fl(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{Ri(t.dataTypes,r)||Yn(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),Kl(t,e)}}function Vl(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Yn(t,"use allowUnionTypes to allow union type keyword")}function Ul(t,e){let r=t.self.RULES.all;for(let n in r){let s=r[n];if(typeof s=="object"&&(0,Jn.shouldUseRule)(t.schema,s)){let{type:o}=s.definition;o.length&&!o.some(i=>Ll(e,i))&&Yn(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Ll(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function Ri(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Kl(t,e){let r=[];for(let n of t.dataTypes)Ri(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function Yn(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Oe.checkStrictMode)(t,e,t.opts.strictTypes)}var br=class{constructor(e,r,n){if((0,Ft.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Oe.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",qi(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Ft.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",w.default.errors))}result(e,r,n){this.failResult((0,v.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,v.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,v._)`${r} !== undefined && (${(0,v.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?zt.reportExtraError:zt.reportError)(this,this.def.error,r)}$dataError(){(0,zt.reportError)(this,this.def.$dataError||zt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,zt.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=v.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=v.nil,r=v.nil){if(!this.$data)return;let{gen:n,schemaCode:s,schemaType:o,def:i}=this;n.if((0,v.or)((0,v._)`${s} === undefined`,r)),e!==v.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==v.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:s,it:o}=this;return(0,v.or)(i(),a());function i(){if(n.length){if(!(r instanceof v.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,v._)`${(0,Sr.checkDataTypes)(c,r,o.opts.strictNumbers,Sr.DataType.Wrong)}`}return v.nil}function a(){if(s.validateSchema){let c=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,v._)`!${c}(${r})`}return v.nil}}subschema(e,r){let n=(0,Wn.getSubschema)(this.it,e);(0,Wn.extendSubschemaData)(n,this.it,e),(0,Wn.extendSubschemaMode)(n,e);let s={...this.it,...n,items:void 0,props:void 0};return Rl(s,r),s}mergeEvaluated(e,r){let{it:n,gen:s}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Oe.mergeEvaluated.props(s,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Oe.mergeEvaluated.items(s,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:s}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return s.if(r,()=>this.mergeEvaluated(e,v.Name)),!0}};Ce.KeywordCxt=br;function ji(t,e,r,n){let s=new br(t,r,e);"code"in r?r.code(s,n):s.$data&&r.validate?(0,Ft.funcKeywordCode)(s,r):"macro"in r?(0,Ft.macroKeywordCode)(s,r):(r.compile||r.validate)&&(0,Ft.funcKeywordCode)(s,r)}var Gl=/^\/(?:[^~]|~0|~1)*$/,Hl=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qi(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let s,o;if(t==="")return w.default.rootData;if(t[0]==="/"){if(!Gl.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);s=t,o=w.default.rootData}else{let l=Hl.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let d=+l[1];if(s=l[2],s==="#"){if(d>=e)throw new Error(c("property/index",d));return n[e-d]}if(d>e)throw new Error(c("data",d));if(o=r[e-d],!s)return o}let i=o,a=s.split("/");for(let l of a)l&&(o=(0,v._)`${o}${(0,v.getProperty)((0,Oe.unescapeJsonPointer)(l))}`,i=(0,v._)`${i} && ${o}`);return i;function c(l,d){return`Cannot access ${l} ${d} levels up, current level is ${e}`}}Ce.getData=qi});var Pr=g(Xn=>{"use strict";u();Object.defineProperty(Xn,"__esModule",{value:!0});var Bn=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Xn.default=Bn});var Ut=g(es=>{"use strict";u();Object.defineProperty(es,"__esModule",{value:!0});var Zn=xt(),Qn=class extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Zn.resolveUrl)(e,r,n),this.missingSchema=(0,Zn.normalizeId)((0,Zn.getFullPath)(e,this.missingRef))}};es.default=Qn});var Ir=g(ie=>{"use strict";u();Object.defineProperty(ie,"__esModule",{value:!0});ie.resolveSchema=ie.getCompilingSchema=ie.resolveRef=ie.compileSchema=ie.SchemaEnv=void 0;var de=b(),Wl=Pr(),Be=Ie(),fe=xt(),Ai=k(),Jl=Vt(),dt=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,fe.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};ie.SchemaEnv=dt;function rs(t){let e=Ci.call(this,t);if(e)return e;let r=(0,fe.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:o}=this.opts,i=new de.CodeGen(this.scope,{es5:n,lines:s,ownProperties:o}),a;t.$async&&(a=i.scopeValue("Error",{ref:Wl.default,code:(0,de._)`require("ajv/dist/runtime/validation_error").default`}));let c=i.scopeName("validate");t.validateName=c;let l={gen:i,allErrors:this.opts.allErrors,data:Be.default.data,parentData:Be.default.parentData,parentDataProperty:Be.default.parentDataProperty,dataNames:[Be.default.data],dataPathArr:[de.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,de.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:de.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,de._)`""`,opts:this.opts,self:this},d;try{this._compilations.add(t),(0,Jl.validateFunctionCode)(l),i.optimize(this.opts.code.optimize);let f=i.toString();d=`${i.scopeRefs(Be.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,t));let y=new Function(`${Be.default.self}`,`${Be.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:y}),y.errors=null,y.schema=t.schema,y.schemaEnv=t,t.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:c,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){let{props:p,items:m}=l;y.evaluated={props:p instanceof de.Name?void 0:p,items:m instanceof de.Name?void 0:m,dynamicProps:p instanceof de.Name,dynamicItems:m instanceof de.Name},y.source&&(y.source.evaluated=(0,de.stringify)(y.evaluated))}return t.validate=y,t}catch(f){throw delete t.validate,delete t.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(t)}}ie.compileSchema=rs;function Yl(t,e,r){var n;r=(0,fe.resolveUrl)(this.opts.uriResolver,e,r);let s=t.refs[r];if(s)return s;let o=Zl.call(this,t,r);if(o===void 0){let i=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;i&&(o=new dt({schema:i,schemaId:a,root:t,baseId:e}))}if(o!==void 0)return t.refs[r]=Bl.call(this,o)}ie.resolveRef=Yl;function Bl(t){return(0,fe.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:rs.call(this,t)}function Ci(t){for(let e of this._compilations)if(Xl(e,t))return e}ie.getCompilingSchema=Ci;function Xl(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Zl(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Nr.call(this,t,e)}function Nr(t,e){let r=this.opts.uriResolver.parse(e),n=(0,fe._getFullPath)(this.opts.uriResolver,r),s=(0,fe.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===s)return ts.call(this,r,t);let o=(0,fe.normalizeId)(n),i=this.refs[o]||this.schemas[o];if(typeof i=="string"){let a=Nr.call(this,t,i);return typeof a?.schema!="object"?void 0:ts.call(this,r,a)}if(typeof i?.schema=="object"){if(i.validate||rs.call(this,i),o===(0,fe.normalizeId)(e)){let{schema:a}=i,{schemaId:c}=this.opts,l=a[c];return l&&(s=(0,fe.resolveUrl)(this.opts.uriResolver,s,l)),new dt({schema:a,schemaId:c,root:t,baseId:s})}return ts.call(this,r,i)}}ie.resolveSchema=Nr;var Ql=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ts(t,{baseId:e,schema:r,root:n}){var s;if(((s=t.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Ai.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Ql.has(a)&&l&&(e=(0,fe.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Ai.schemaHasRulesButRef)(r,this.RULES)){let a=(0,fe.resolveUrl)(this.opts.uriResolver,e,r.$ref);o=Nr.call(this,n,a)}let{schemaId:i}=this.opts;if(o=o||new dt({schema:r,schemaId:i,root:n,baseId:e}),o.schema!==o.root.schema)return o}});var Di=g((s0,ed)=>{ed.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var ss=g((o0,Fi)=>{"use strict";u();var td=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),xi=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function ns(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var rd=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Mi(t){return t.length=0,!0}function nd(t,e,r){if(t.length){let n=ns(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function sd(t){let e=0,r={error:!1,address:"",zone:""},n=[],s=[],o=!1,i=!1,a=nd;for(let c=0;c<t.length;c++){let l=t[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(i=!0),!a(s,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(o=!0),n.push(":");continue}else if(l==="%"){if(!a(s,n,r))break;a=Mi}else{s.push(l);continue}}return s.length&&(a===Mi?r.zone=s.join(""):i?n.push(s.join("")):n.push(ns(s))),r.address=n.join(""),r}function zi(t){if(od(t,":")<2)return{host:t,isIPV6:!1};let e=sd(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function od(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function id(t){let e=t,r=[],n=-1,s=0;for(;s=e.length;){if(s===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(s===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(s===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}function ad(t,e){let r=e!==!0?escape:unescape;return t.scheme!==void 0&&(t.scheme=r(t.scheme)),t.userinfo!==void 0&&(t.userinfo=r(t.userinfo)),t.host!==void 0&&(t.host=r(t.host)),t.path!==void 0&&(t.path=r(t.path)),t.query!==void 0&&(t.query=r(t.query)),t.fragment!==void 0&&(t.fragment=r(t.fragment)),t}function cd(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!xi(r)){let n=zi(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=t.host}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}Fi.exports={nonSimpleDomain:rd,recomposeAuthority:cd,normalizeComponentEncoding:ad,removeDotSegments:id,isIPv4:xi,isUUID:td,normalizeIPv6:zi,stringArrayToHexStripped:ns}});var Gi=g((a0,Ki)=>{"use strict";u();var{isUUID:ud}=ss(),ld=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,dd=["http","https","ws","wss","urn","urn:uuid"];function fd(t){return dd.indexOf(t)!==-1}function os(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function Vi(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function Ui(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function hd(t){return t.secure=os(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function pd(t){if((t.port===(os(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function md(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(ld);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let s=`${n}:${e.nid||t.nid}`,o=is(s);t.path=void 0,o&&(t=o.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function yd(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),s=`${r}:${e.nid||n}`,o=is(s);o&&(t=o.serialize(t,e));let i=t,a=t.nss;return i.path=`${n||e.nid}:${a}`,e.skipEscape=!0,i}function _d(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!ud(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function gd(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Li={scheme:"http",domainHost:!0,parse:Vi,serialize:Ui},$d={scheme:"https",domainHost:Li.domainHost,parse:Vi,serialize:Ui},Or={scheme:"ws",domainHost:!0,parse:hd,serialize:pd},vd={scheme:"wss",domainHost:Or.domainHost,parse:Or.parse,serialize:Or.serialize},wd={scheme:"urn",parse:md,serialize:yd,skipNormalize:!0},Ed={scheme:"urn:uuid",parse:_d,serialize:gd,skipNormalize:!0},Tr={http:Li,https:$d,ws:Or,wss:vd,urn:wd,"urn:uuid":Ed};Object.setPrototypeOf(Tr,null);function is(t){return t&&(Tr[t]||Tr[t.toLowerCase()])||void 0}Ki.exports={wsIsSecure:os,SCHEMES:Tr,isValidSchemeName:fd,getSchemeHandler:is}});var Ji=g((u0,Rr)=>{"use strict";u();var{normalizeIPv6:Sd,removeDotSegments:Lt,recomposeAuthority:bd,normalizeComponentEncoding:kr,isIPv4:Pd,nonSimpleDomain:Nd}=ss(),{SCHEMES:Id,getSchemeHandler:Hi}=Gi();function Od(t,e){return typeof t=="string"?t=we(Te(t,e),e):typeof t=="object"&&(t=Te(we(t,e),e)),t}function Td(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},s=Wi(Te(t,n),Te(e,n),n,!0);return n.skipEscape=!0,we(s,n)}function Wi(t,e,r,n){let s={};return n||(t=Te(we(t,r),r),e=Te(we(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(s.scheme=e.scheme,s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=Lt(e.path||""),s.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(s.userinfo=e.userinfo,s.host=e.host,s.port=e.port,s.path=Lt(e.path||""),s.query=e.query):(e.path?(e.path[0]==="/"?s.path=Lt(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?s.path="/"+e.path:t.path?s.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:s.path=e.path,s.path=Lt(s.path)),s.query=e.query):(s.path=t.path,e.query!==void 0?s.query=e.query:s.query=t.query),s.userinfo=t.userinfo,s.host=t.host,s.port=t.port),s.scheme=t.scheme),s.fragment=e.fragment,s}function kd(t,e,r){return typeof t=="string"?(t=unescape(t),t=we(kr(Te(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=we(kr(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=we(kr(Te(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=we(kr(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function we(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),s=[],o=Hi(n.scheme||r.scheme);o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&s.push(r.scheme,":");let i=bd(r);if(i!==void 0&&(n.reference!=="suffix"&&s.push("//"),s.push(i),r.path&&r.path[0]!=="/"&&s.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=Lt(a)),i===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),s.push(a)}return r.query!==void 0&&s.push("?",r.query),r.fragment!==void 0&&s.push("#",r.fragment),s.join("")}var Rd=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Te(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},s=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let o=t.match(Rd);if(o){if(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]),n.host)if(Pd(n.host)===!1){let c=Sd(n.host);n.host=c.host.toLowerCase(),s=c.isIPV6}else s=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let i=Hi(r.scheme||n.scheme);if(!r.unicodeSupport&&(!i||!i.unicodeSupport)&&n.host&&(r.domainHost||i&&i.domainHost)&&s===!1&&Nd(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!i||i&&!i.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),i&&i.parse&&i.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var as={SCHEMES:Id,normalize:Od,resolve:Td,resolveComponent:Wi,equal:kd,serialize:we,parse:Te};Rr.exports=as;Rr.exports.default=as;Rr.exports.fastUri=as});var Bi=g(cs=>{"use strict";u();Object.defineProperty(cs,"__esModule",{value:!0});var Yi=Ji();Yi.code='require("ajv/dist/runtime/uri").default';cs.default=Yi});var sa=g(L=>{"use strict";u();Object.defineProperty(L,"__esModule",{value:!0});L.CodeGen=L.Name=L.nil=L.stringify=L.str=L._=L.KeywordCxt=void 0;var jd=Vt();Object.defineProperty(L,"KeywordCxt",{enumerable:!0,get:function(){return jd.KeywordCxt}});var ft=b();Object.defineProperty(L,"_",{enumerable:!0,get:function(){return ft._}});Object.defineProperty(L,"str",{enumerable:!0,get:function(){return ft.str}});Object.defineProperty(L,"stringify",{enumerable:!0,get:function(){return ft.stringify}});Object.defineProperty(L,"nil",{enumerable:!0,get:function(){return ft.nil}});Object.defineProperty(L,"Name",{enumerable:!0,get:function(){return ft.Name}});Object.defineProperty(L,"CodeGen",{enumerable:!0,get:function(){return ft.CodeGen}});var qd=Pr(),ta=Ut(),Ad=Mn(),Kt=Ir(),Cd=b(),Gt=xt(),jr=Mt(),ls=k(),Xi=Di(),Dd=Bi(),ra=(t,e)=>new RegExp(t,e);ra.code="new RegExp";var Md=["removeAdditional","useDefaults","coerceTypes"],xd=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),zd={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Fd={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Zi=200;function Vd(t){var e,r,n,s,o,i,a,c,l,d,f,h,y,p,m,_,$,T,I,D,E,me,be,Br,Xr;let St=t.strict,Zr=(e=t.code)===null||e===void 0?void 0:e.optimize,fo=Zr===!0||Zr===void 0?1:Zr||0,ho=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ra,kc=(s=t.uriResolver)!==null&&s!==void 0?s:Dd.default;return{strictSchema:(i=(o=t.strictSchema)!==null&&o!==void 0?o:St)!==null&&i!==void 0?i:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:St)!==null&&c!==void 0?c:!0,strictTypes:(d=(l=t.strictTypes)!==null&&l!==void 0?l:St)!==null&&d!==void 0?d:"log",strictTuples:(h=(f=t.strictTuples)!==null&&f!==void 0?f:St)!==null&&h!==void 0?h:"log",strictRequired:(p=(y=t.strictRequired)!==null&&y!==void 0?y:St)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:fo,regExp:ho}:{optimize:fo,regExp:ho},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:Zi,loopEnum:(_=t.loopEnum)!==null&&_!==void 0?_:Zi,meta:($=t.meta)!==null&&$!==void 0?$:!0,messages:(T=t.messages)!==null&&T!==void 0?T:!0,inlineRefs:(I=t.inlineRefs)!==null&&I!==void 0?I:!0,schemaId:(D=t.schemaId)!==null&&D!==void 0?D:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(me=t.validateSchema)!==null&&me!==void 0?me:!0,validateFormats:(be=t.validateFormats)!==null&&be!==void 0?be:!0,unicodeRegExp:(Br=t.unicodeRegExp)!==null&&Br!==void 0?Br:!0,int32range:(Xr=t.int32range)!==null&&Xr!==void 0?Xr:!0,uriResolver:kc}}var Ht=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Vd(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new Cd.ValueScope({scope:{},prefixes:xd,es5:r,lines:n}),this.logger=Wd(e.logger);let s=e.validateFormats;e.validateFormats=!1,this.RULES=(0,Ad.getRules)(),Qi.call(this,zd,e,"NOT SUPPORTED"),Qi.call(this,Fd,e,"DEPRECATED","warn"),this._metaOpts=Gd.call(this),e.formats&&Ld.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Kd.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Ud.call(this),e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,s=Xi;n==="id"&&(s={...Xi},s.id=s.$id,delete s.$id),r&&e&&this.addMetaSchema(s,s[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let s=n(r);return"$async"in n||(this.errors=n.errors),s}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return s.call(this,e,r);async function s(d,f){await o.call(this,d.$schema);let h=this._addSchema(d,f);return h.validate||i.call(this,h)}async function o(d){d&&!this.getSchema(d)&&await s.call(this,{$ref:d},!0)}async function i(d){try{return this._compileSchemaEnv(d)}catch(f){if(!(f instanceof ta.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),i.call(this,d)}}function a({missingSchema:d,missingRef:f}){if(this.refs[d])throw new Error(`AnySchema ${d} is loaded but ${f} cannot be resolved`)}async function c(d){let f=await l.call(this,d);this.refs[d]||await o.call(this,f.$schema),this.refs[d]||this.addSchema(f,d,r)}async function l(d){let f=this._loading[d];if(f)return f;try{return await(this._loading[d]=n(d))}finally{delete this._loading[d]}}}addSchema(e,r,n,s=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,n,s);return this}let o;if(typeof e=="object"){let{schemaId:i}=this.opts;if(o=e[i],o!==void 0&&typeof o!="string")throw new Error(`schema ${i} must be string`)}return r=(0,Gt.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,s,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let s=this.validate(n,e);if(!s&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return s}getSchema(e){let r;for(;typeof(r=ea.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,s=new Kt.SchemaEnv({schema:{},schemaId:n});if(r=Kt.resolveSchema.call(this,s,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=ea.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Gt.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Yd.call(this,n,r),!r)return(0,ls.eachItem)(n,o=>us.call(this,o)),this;Xd.call(this,r);let s={...r,type:(0,jr.getJSONTypes)(r.type),schemaType:(0,jr.getJSONTypes)(r.schemaType)};return(0,ls.eachItem)(n,s.type.length===0?o=>us.call(this,o,s):o=>s.type.forEach(i=>us.call(this,o,s,i))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let s=n.rules.findIndex(o=>o.keyword===e);s>=0&&n.rules.splice(s,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(s=>`${n}${s.instancePath} ${s.message}`).reduce((s,o)=>s+r+o)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let s of r){let o=s.split("/").slice(1),i=e;for(let a of o)i=i[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,d=i[a];l&&d&&(i[a]=na(d))}}return e}_removeAllSchemas(e,r){for(let n in e){let s=e[n];(!r||r.test(n))&&(typeof s=="string"?delete e[n]:s&&!s.meta&&(this._cache.delete(s.schema),delete e[n]))}}_addSchema(e,r,n,s=this.opts.validateSchema,o=this.opts.addUsedSchema){let i,{schemaId:a}=this.opts;if(typeof e=="object")i=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,Gt.normalizeId)(i||n);let l=Gt.getSchemaRefs.call(this,e,n);return c=new Kt.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),s&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Kt.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Kt.compileSchema.call(this,e)}finally{this.opts=r}}};Ht.ValidationError=qd.default;Ht.MissingRefError=ta.default;L.default=Ht;function Qi(t,e,r,n="error"){for(let s in t){let o=s;o in e&&this.logger[n](`${r}: option ${s}. ${t[o]}`)}}function ea(t){return t=(0,Gt.normalizeId)(t),this.schemas[t]||this.refs[t]}function Ud(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Ld(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Kd(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Gd(){let t={...this.opts};for(let e of Md)delete t[e];return t}var Hd={log(){},warn(){},error(){}};function Wd(t){if(t===!1)return Hd;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Jd=/^[a-z_$][a-z0-9_$:-]*$/i;function Yd(t,e){let{RULES:r}=this;if((0,ls.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Jd.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function us(t,e,r){var n;let s=e?.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,i=s?o.post:o.rules.find(({type:c})=>c===r);if(i||(i={type:r,rules:[]},o.rules.push(i)),o.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,jr.getJSONTypes)(e.type),schemaType:(0,jr.getJSONTypes)(e.schemaType)}};e.before?Bd.call(this,i,a,e.before):i.rules.push(a),o.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Bd(t,e,r){let n=t.rules.findIndex(s=>s.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function Xd(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=na(e)),t.validateSchema=this.compile(e,!0))}var Zd={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function na(t){return{anyOf:[t,Zd]}}});var oa=g(ds=>{"use strict";u();Object.defineProperty(ds,"__esModule",{value:!0});var Qd={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ds.default=Qd});var ua=g(Xe=>{"use strict";u();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.callRef=Xe.getValidate=void 0;var ef=Ut(),ia=oe(),te=b(),ht=Ie(),aa=Ir(),qr=k(),tf={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:s,schemaEnv:o,validateName:i,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&s===l.baseId)return f();let d=aa.resolveRef.call(c,l,s,r);if(d===void 0)throw new ef.default(n.opts.uriResolver,s,r);if(d instanceof aa.SchemaEnv)return h(d);return y(d);function f(){if(o===l)return Ar(t,i,o,o.$async);let p=e.scopeValue("root",{ref:l});return Ar(t,(0,te._)`${p}.validate`,l,l.$async)}function h(p){let m=ca(t,p);Ar(t,m,p,p.$async)}function y(p){let m=e.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,te.stringify)(p)}:{ref:p}),_=e.name("valid"),$=t.subschema({schema:p,dataTypes:[],schemaPath:te.nil,topSchemaRef:m,errSchemaPath:r},_);t.mergeEvaluated($),t.ok(_)}}};function ca(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,te._)`${r.scopeValue("wrapper",{ref:e})}.validate`}Xe.getValidate=ca;function Ar(t,e,r,n){let{gen:s,it:o}=t,{allErrors:i,schemaEnv:a,opts:c}=o,l=c.passContext?ht.default.this:te.nil;n?d():f();function d(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=s.let("valid");s.try(()=>{s.code((0,te._)`await ${(0,ia.callValidateCode)(t,e,l)}`),y(e),i||s.assign(p,!0)},m=>{s.if((0,te._)`!(${m} instanceof ${o.ValidationError})`,()=>s.throw(m)),h(m),i||s.assign(p,!1)}),t.ok(p)}function f(){t.result((0,ia.callValidateCode)(t,e,l),()=>y(e),()=>h(e))}function h(p){let m=(0,te._)`${p}.errors`;s.assign(ht.default.vErrors,(0,te._)`${ht.default.vErrors} === null ? ${m} : ${ht.default.vErrors}.concat(${m})`),s.assign(ht.default.errors,(0,te._)`${ht.default.vErrors}.length`)}function y(p){var m;if(!o.opts.unevaluated)return;let _=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(o.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(o.props=qr.mergeEvaluated.props(s,_.props,o.props));else{let $=s.var("props",(0,te._)`${p}.evaluated.props`);o.props=qr.mergeEvaluated.props(s,$,o.props,te.Name)}if(o.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(o.items=qr.mergeEvaluated.items(s,_.items,o.items));else{let $=s.var("items",(0,te._)`${p}.evaluated.items`);o.items=qr.mergeEvaluated.items(s,$,o.items,te.Name)}}}Xe.callRef=Ar;Xe.default=tf});var la=g(fs=>{"use strict";u();Object.defineProperty(fs,"__esModule",{value:!0});var rf=oa(),nf=ua(),sf=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rf.default,nf.default];fs.default=sf});var da=g(hs=>{"use strict";u();Object.defineProperty(hs,"__esModule",{value:!0});var Cr=b(),De=Cr.operators,Dr={maximum:{okStr:"<=",ok:De.LTE,fail:De.GT},minimum:{okStr:">=",ok:De.GTE,fail:De.LT},exclusiveMaximum:{okStr:"<",ok:De.LT,fail:De.GTE},exclusiveMinimum:{okStr:">",ok:De.GT,fail:De.LTE}},of={message:({keyword:t,schemaCode:e})=>(0,Cr.str)`must be ${Dr[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Cr._)`{comparison: ${Dr[t].okStr}, limit: ${e}}`},af={keyword:Object.keys(Dr),type:"number",schemaType:"number",$data:!0,error:of,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Cr._)`${r} ${Dr[e].fail} ${n} || isNaN(${r})`)}};hs.default=af});var fa=g(ps=>{"use strict";u();Object.defineProperty(ps,"__esModule",{value:!0});var Wt=b(),cf={message:({schemaCode:t})=>(0,Wt.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Wt._)`{multipleOf: ${t}}`},uf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:cf,code(t){let{gen:e,data:r,schemaCode:n,it:s}=t,o=s.opts.multipleOfPrecision,i=e.let("res"),a=o?(0,Wt._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}`:(0,Wt._)`${i} !== parseInt(${i})`;t.fail$data((0,Wt._)`(${n} === 0 || (${i} = ${r}/${n}, ${a}))`)}};ps.default=uf});var pa=g(ms=>{"use strict";u();Object.defineProperty(ms,"__esModule",{value:!0});function ha(t){let e=t.length,r=0,n=0,s;for(;n<e;)r++,s=t.charCodeAt(n++),s>=55296&&s<=56319&&n<e&&(s=t.charCodeAt(n),(s&64512)===56320&&n++);return r}ms.default=ha;ha.code='require("ajv/dist/runtime/ucs2length").default'});var ma=g(ys=>{"use strict";u();Object.defineProperty(ys,"__esModule",{value:!0});var Ze=b(),lf=k(),df=pa(),ff={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Ze.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Ze._)`{limit: ${t}}`},hf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ff,code(t){let{keyword:e,data:r,schemaCode:n,it:s}=t,o=e==="maxLength"?Ze.operators.GT:Ze.operators.LT,i=s.opts.unicode===!1?(0,Ze._)`${r}.length`:(0,Ze._)`${(0,lf.useFunc)(t.gen,df.default)}(${r})`;t.fail$data((0,Ze._)`${i} ${o} ${n}`)}};ys.default=hf});var ya=g(_s=>{"use strict";u();Object.defineProperty(_s,"__esModule",{value:!0});var pf=oe(),mf=k(),pt=b(),yf={message:({schemaCode:t})=>(0,pt.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,pt._)`{pattern: ${t}}`},_f={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:yf,code(t){let{gen:e,data:r,$data:n,schema:s,schemaCode:o,it:i}=t,a=i.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=i.opts.code,l=c.code==="new RegExp"?(0,pt._)`new RegExp`:(0,mf.useFunc)(e,c),d=e.let("valid");e.try(()=>e.assign(d,(0,pt._)`${l}(${o}, ${a}).test(${r})`),()=>e.assign(d,!1)),t.fail$data((0,pt._)`!${d}`)}else{let c=(0,pf.usePattern)(t,s);t.fail$data((0,pt._)`!${c}.test(${r})`)}}};_s.default=_f});var _a=g(gs=>{"use strict";u();Object.defineProperty(gs,"__esModule",{value:!0});var Jt=b(),gf={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Jt.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Jt._)`{limit: ${t}}`},$f={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:gf,code(t){let{keyword:e,data:r,schemaCode:n}=t,s=e==="maxProperties"?Jt.operators.GT:Jt.operators.LT;t.fail$data((0,Jt._)`Object.keys(${r}).length ${s} ${n}`)}};gs.default=$f});var ga=g($s=>{"use strict";u();Object.defineProperty($s,"__esModule",{value:!0});var Yt=oe(),Bt=b(),vf=k(),wf={message:({params:{missingProperty:t}})=>(0,Bt.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Bt._)`{missingProperty: ${t}}`},Ef={keyword:"required",type:"object",schemaType:"array",$data:!0,error:wf,code(t){let{gen:e,schema:r,schemaCode:n,data:s,$data:o,it:i}=t,{opts:a}=i;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(i.allErrors?l():d(),a.strictRequired){let y=t.parentSchema.properties,{definedProperties:p}=t.it;for(let m of r)if(y?.[m]===void 0&&!p.has(m)){let _=i.schemaEnv.baseId+i.errSchemaPath,$=`required property "${m}" is not defined at "${_}" (strictRequired)`;(0,vf.checkStrictMode)(i,$,i.opts.strictRequired)}}function l(){if(c||o)t.block$data(Bt.nil,f);else for(let y of r)(0,Yt.checkReportMissingProp)(t,y)}function d(){let y=e.let("missing");if(c||o){let p=e.let("valid",!0);t.block$data(p,()=>h(y,p)),t.ok(p)}else e.if((0,Yt.checkMissingProp)(t,r,y)),(0,Yt.reportMissingProp)(t,y),e.else()}function f(){e.forOf("prop",n,y=>{t.setParams({missingProperty:y}),e.if((0,Yt.noPropertyInData)(e,s,y,a.ownProperties),()=>t.error())})}function h(y,p){t.setParams({missingProperty:y}),e.forOf(y,n,()=>{e.assign(p,(0,Yt.propertyInData)(e,s,y,a.ownProperties)),e.if((0,Bt.not)(p),()=>{t.error(),e.break()})},Bt.nil)}}};$s.default=Ef});var $a=g(vs=>{"use strict";u();Object.defineProperty(vs,"__esModule",{value:!0});var Xt=b(),Sf={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Xt.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Xt._)`{limit: ${t}}`},bf={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Sf,code(t){let{keyword:e,data:r,schemaCode:n}=t,s=e==="maxItems"?Xt.operators.GT:Xt.operators.LT;t.fail$data((0,Xt._)`${r}.length ${s} ${n}`)}};vs.default=bf});var Mr=g(ws=>{"use strict";u();Object.defineProperty(ws,"__esModule",{value:!0});var va=Gn();va.code='require("ajv/dist/runtime/equal").default';ws.default=va});var wa=g(Ss=>{"use strict";u();Object.defineProperty(Ss,"__esModule",{value:!0});var Es=Mt(),K=b(),Pf=k(),Nf=Mr(),If={message:({params:{i:t,j:e}})=>(0,K.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,K._)`{i: ${t}, j: ${e}}`},Of={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:If,code(t){let{gen:e,data:r,$data:n,schema:s,parentSchema:o,schemaCode:i,it:a}=t;if(!n&&!s)return;let c=e.let("valid"),l=o.items?(0,Es.getSchemaTypes)(o.items):[];t.block$data(c,d,(0,K._)`${i} === false`),t.ok(c);function d(){let p=e.let("i",(0,K._)`${r}.length`),m=e.let("j");t.setParams({i:p,j:m}),e.assign(c,!0),e.if((0,K._)`${p} > 1`,()=>(f()?h:y)(p,m))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function h(p,m){let _=e.name("item"),$=(0,Es.checkDataTypes)(l,_,a.opts.strictNumbers,Es.DataType.Wrong),T=e.const("indices",(0,K._)`{}`);e.for((0,K._)`;${p}--;`,()=>{e.let(_,(0,K._)`${r}[${p}]`),e.if($,(0,K._)`continue`),l.length>1&&e.if((0,K._)`typeof ${_} == "string"`,(0,K._)`${_} += "_"`),e.if((0,K._)`typeof ${T}[${_}] == "number"`,()=>{e.assign(m,(0,K._)`${T}[${_}]`),t.error(),e.assign(c,!1).break()}).code((0,K._)`${T}[${_}] = ${p}`)})}function y(p,m){let _=(0,Pf.useFunc)(e,Nf.default),$=e.name("outer");e.label($).for((0,K._)`;${p}--;`,()=>e.for((0,K._)`${m} = ${p}; ${m}--;`,()=>e.if((0,K._)`${_}(${r}[${p}], ${r}[${m}])`,()=>{t.error(),e.assign(c,!1).break($)})))}}};Ss.default=Of});var Ea=g(Ps=>{"use strict";u();Object.defineProperty(Ps,"__esModule",{value:!0});var bs=b(),Tf=k(),kf=Mr(),Rf={message:"must be equal to constant",params:({schemaCode:t})=>(0,bs._)`{allowedValue: ${t}}`},jf={keyword:"const",$data:!0,error:Rf,code(t){let{gen:e,data:r,$data:n,schemaCode:s,schema:o}=t;n||o&&typeof o=="object"?t.fail$data((0,bs._)`!${(0,Tf.useFunc)(e,kf.default)}(${r}, ${s})`):t.fail((0,bs._)`${o} !== ${r}`)}};Ps.default=jf});var Sa=g(Ns=>{"use strict";u();Object.defineProperty(Ns,"__esModule",{value:!0});var Zt=b(),qf=k(),Af=Mr(),Cf={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Zt._)`{allowedValues: ${t}}`},Df={keyword:"enum",schemaType:"array",$data:!0,error:Cf,code(t){let{gen:e,data:r,$data:n,schema:s,schemaCode:o,it:i}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let a=s.length>=i.opts.loopEnum,c,l=()=>c??(c=(0,qf.useFunc)(e,Af.default)),d;if(a||n)d=e.let("valid"),t.block$data(d,f);else{if(!Array.isArray(s))throw new Error("ajv implementation error");let y=e.const("vSchema",o);d=(0,Zt.or)(...s.map((p,m)=>h(y,m)))}t.pass(d);function f(){e.assign(d,!1),e.forOf("v",o,y=>e.if((0,Zt._)`${l()}(${r}, ${y})`,()=>e.assign(d,!0).break()))}function h(y,p){let m=s[p];return typeof m=="object"&&m!==null?(0,Zt._)`${l()}(${r}, ${y}[${p}])`:(0,Zt._)`${r} === ${m}`}}};Ns.default=Df});var ba=g(Is=>{"use strict";u();Object.defineProperty(Is,"__esModule",{value:!0});var Mf=da(),xf=fa(),zf=ma(),Ff=ya(),Vf=_a(),Uf=ga(),Lf=$a(),Kf=wa(),Gf=Ea(),Hf=Sa(),Wf=[Mf.default,xf.default,zf.default,Ff.default,Vf.default,Uf.default,Lf.default,Kf.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Gf.default,Hf.default];Is.default=Wf});var Ts=g(Qt=>{"use strict";u();Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateAdditionalItems=void 0;var Qe=b(),Os=k(),Jf={message:({params:{len:t}})=>(0,Qe.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Qe._)`{limit: ${t}}`},Yf={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Jf,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Os.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Pa(t,n)}};function Pa(t,e){let{gen:r,schema:n,data:s,keyword:o,it:i}=t;i.items=!0;let a=r.const("len",(0,Qe._)`${s}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Qe._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,Os.alwaysValidSchema)(i,n)){let l=r.var("valid",(0,Qe._)`${a} <= ${e.length}`);r.if((0,Qe.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,d=>{t.subschema({keyword:o,dataProp:d,dataPropType:Os.Type.Num},l),i.allErrors||r.if((0,Qe.not)(l),()=>r.break())})}}Qt.validateAdditionalItems=Pa;Qt.default=Yf});var ks=g(er=>{"use strict";u();Object.defineProperty(er,"__esModule",{value:!0});er.validateTuple=void 0;var Na=b(),xr=k(),Bf=oe(),Xf={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return Ia(t,"additionalItems",e);r.items=!0,!(0,xr.alwaysValidSchema)(r,e)&&t.ok((0,Bf.validateArray)(t))}};function Ia(t,e,r=t.schema){let{gen:n,parentSchema:s,data:o,keyword:i,it:a}=t;d(s),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=xr.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,Na._)`${o}.length`);r.forEach((f,h)=>{(0,xr.alwaysValidSchema)(a,f)||(n.if((0,Na._)`${l} > ${h}`,()=>t.subschema({keyword:i,schemaProp:h,dataProp:h},c)),t.ok(c))});function d(f){let{opts:h,errSchemaPath:y}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(h.strictTuples&&!m){let _=`"${i}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${y}"`;(0,xr.checkStrictMode)(a,_,h.strictTuples)}}}er.validateTuple=Ia;er.default=Xf});var Oa=g(Rs=>{"use strict";u();Object.defineProperty(Rs,"__esModule",{value:!0});var Zf=ks(),Qf={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Zf.validateTuple)(t,"items")};Rs.default=Qf});var ka=g(js=>{"use strict";u();Object.defineProperty(js,"__esModule",{value:!0});var Ta=b(),eh=k(),th=oe(),rh=Ts(),nh={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},sh={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:nh,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:s}=r;n.items=!0,!(0,eh.alwaysValidSchema)(n,e)&&(s?(0,rh.validateAdditionalItems)(t,s):t.ok((0,th.validateArray)(t)))}};js.default=sh});var Ra=g(qs=>{"use strict";u();Object.defineProperty(qs,"__esModule",{value:!0});var ae=b(),zr=k(),oh={message:({params:{min:t,max:e}})=>e===void 0?(0,ae.str)`must contain at least ${t} valid item(s)`:(0,ae.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,ae._)`{minContains: ${t}}`:(0,ae._)`{minContains: ${t}, maxContains: ${e}}`},ih={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:oh,code(t){let{gen:e,schema:r,parentSchema:n,data:s,it:o}=t,i,a,{minContains:c,maxContains:l}=n;o.opts.next?(i=c===void 0?1:c,a=l):i=1;let d=e.const("len",(0,ae._)`${s}.length`);if(t.setParams({min:i,max:a}),a===void 0&&i===0){(0,zr.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&i>a){(0,zr.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,zr.alwaysValidSchema)(o,r)){let m=(0,ae._)`${d} >= ${i}`;a!==void 0&&(m=(0,ae._)`${m} && ${d} <= ${a}`),t.pass(m);return}o.items=!0;let f=e.name("valid");a===void 0&&i===1?y(f,()=>e.if(f,()=>e.break())):i===0?(e.let(f,!0),a!==void 0&&e.if((0,ae._)`${s}.length > 0`,h)):(e.let(f,!1),h()),t.result(f,()=>t.reset());function h(){let m=e.name("_valid"),_=e.let("count",0);y(m,()=>e.if(m,()=>p(_)))}function y(m,_){e.forRange("i",0,d,$=>{t.subschema({keyword:"contains",dataProp:$,dataPropType:zr.Type.Num,compositeRule:!0},m),_()})}function p(m){e.code((0,ae._)`${m}++`),a===void 0?e.if((0,ae._)`${m} >= ${i}`,()=>e.assign(f,!0).break()):(e.if((0,ae._)`${m} > ${a}`,()=>e.assign(f,!1).break()),i===1?e.assign(f,!0):e.if((0,ae._)`${m} >= ${i}`,()=>e.assign(f,!0)))}}};qs.default=ih});var Aa=g(Ee=>{"use strict";u();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateSchemaDeps=Ee.validatePropertyDeps=Ee.error=void 0;var As=b(),ah=k(),tr=oe();Ee.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,As.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,As._)`{property: ${t},
|
|
6
6
|
missingProperty: ${n},
|
|
7
7
|
depsCount: ${e},
|
|
8
|
-
deps: ${r}}`};var sh={keyword:"dependencies",type:"object",schemaType:"object",error:Ee.error,code(t){let[e,r]=oh(t);Ta(t,e),ka(t,r)}};function oh({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?e:r;s[n]=t[n]}return[e,r]}function Ta(t,e=t.schema){let{gen:r,data:n,it:s}=t;if(Object.keys(e).length===0)return;let o=r.let("missing");for(let i in e){let a=e[i];if(a.length===0)continue;let c=(0,tr.propertyInData)(r,n,i,s.opts.ownProperties);t.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),s.allErrors?r.if(c,()=>{for(let l of a)(0,tr.checkReportMissingProp)(t,l)}):(r.if((0,ks._)`${c} && (${(0,tr.checkMissingProp)(t,a,o)})`),(0,tr.reportMissingProp)(t,o),r.else())}}Ee.validatePropertyDeps=Ta;function ka(t,e=t.schema){let{gen:r,data:n,keyword:s,it:o}=t,i=r.name("valid");for(let a in e)(0,nh.alwaysValidSchema)(o,e[a])||(r.if((0,tr.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:a},i);t.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),t.ok(i))}Ee.validateSchemaDeps=ka;Ee.default=sh});var qa=g(Rs=>{"use strict";u();Object.defineProperty(Rs,"__esModule",{value:!0});var ja=b(),ih=k(),ah={message:"property name must be valid",params:({params:t})=>(0,ja._)`{propertyName: ${t.propertyName}}`},ch={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ah,code(t){let{gen:e,schema:r,data:n,it:s}=t;if((0,ih.alwaysValidSchema)(s,r))return;let o=e.name("valid");e.forIn("key",n,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},o),e.if((0,ja.not)(o),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(o)}};Rs.default=ch});var qs=g(js=>{"use strict";u();Object.defineProperty(js,"__esModule",{value:!0});var zr=oe(),he=b(),uh=Ie(),Fr=k(),lh={message:"must NOT have additional properties",params:({params:t})=>(0,he._)`{additionalProperty: ${t.additionalProperty}}`},dh={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:lh,code(t){let{gen:e,schema:r,parentSchema:n,data:s,errsCount:o,it:i}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Fr.alwaysValidSchema)(i,r))return;let l=(0,zr.allSchemaProperties)(n.properties),d=(0,zr.allSchemaProperties)(n.patternProperties);f(),t.ok((0,he._)`${o} === ${uh.default.errors}`);function f(){e.forIn("key",s,_=>{!l.length&&!d.length?p(_):e.if(h(_),()=>p(_))})}function h(_){let $;if(l.length>8){let T=(0,Fr.schemaRefOrVal)(i,n.properties,"properties");$=(0,zr.isOwnProperty)(e,T,_)}else l.length?$=(0,he.or)(...l.map(T=>(0,he._)`${_} === ${T}`)):$=he.nil;return d.length&&($=(0,he.or)($,...d.map(T=>(0,he._)`${(0,zr.usePattern)(t,T)}.test(${_})`))),(0,he.not)($)}function y(_){e.code((0,he._)`delete ${s}[${_}]`)}function p(_){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){y(_);return}if(r===!1){t.setParams({additionalProperty:_}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Fr.alwaysValidSchema)(i,r)){let $=e.name("valid");c.removeAdditional==="failing"?(m(_,$,!1),e.if((0,he.not)($),()=>{t.reset(),y(_)})):(m(_,$),a||e.if((0,he.not)($),()=>e.break()))}}function m(_,$,T){let I={keyword:"additionalProperties",dataProp:_,dataPropType:Fr.Type.Str};T===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(I,$)}}};js.default=dh});var Da=g(Cs=>{"use strict";u();Object.defineProperty(Cs,"__esModule",{value:!0});var fh=Vt(),Aa=oe(),As=k(),Ca=qs(),hh={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:s,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Ca.default.code(new fh.KeywordCxt(o,Ca.default,"additionalProperties"));let i=(0,Aa.allSchemaProperties)(r);for(let f of i)o.definedProperties.add(f);o.opts.unevaluated&&i.length&&o.props!==!0&&(o.props=As.mergeEvaluated.props(e,(0,As.toHash)(i),o.props));let a=i.filter(f=>!(0,As.alwaysValidSchema)(o,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?d(f):(e.if((0,Aa.propertyInData)(e,s,f,o.opts.ownProperties)),d(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function d(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Cs.default=hh});var Fa=g(Ds=>{"use strict";u();Object.defineProperty(Ds,"__esModule",{value:!0});var Ma=oe(),Vr=b(),xa=k(),za=k(),ph={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:s,it:o}=t,{opts:i}=o,a=(0,Ma.allSchemaProperties)(r),c=a.filter(m=>(0,xa.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=i.strictSchema&&!i.allowMatchingProperties&&s.properties,d=e.name("valid");o.props!==!0&&!(o.props instanceof Vr.Name)&&(o.props=(0,za.evaluatedPropsToName)(e,o.props));let{props:f}=o;h();function h(){for(let m of a)l&&y(m),o.allErrors?p(m):(e.var(d,!0),p(m),e.if(d))}function y(m){for(let _ in l)new RegExp(m).test(_)&&(0,xa.checkStrictMode)(o,`property ${_} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){e.forIn("key",n,_=>{e.if((0,Vr._)`${(0,Ma.usePattern)(t,m)}.test(${_})`,()=>{let $=c.includes(m);$||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:_,dataPropType:za.Type.Str},d),o.opts.unevaluated&&f!==!0?e.assign((0,Vr._)`${f}[${_}]`,!0):!$&&!o.allErrors&&e.if((0,Vr.not)(d),()=>e.break())})})}}};Ds.default=ph});var Va=g(Ms=>{"use strict";u();Object.defineProperty(Ms,"__esModule",{value:!0});var mh=k(),yh={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,mh.alwaysValidSchema)(n,r)){t.fail();return}let s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Ms.default=yh});var Ua=g(xs=>{"use strict";u();Object.defineProperty(xs,"__esModule",{value:!0});var _h=oe(),gh={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_h.validateUnion,error:{message:"must match a schema in anyOf"}};xs.default=gh});var La=g(zs=>{"use strict";u();Object.defineProperty(zs,"__esModule",{value:!0});var Ur=b(),$h=k(),vh={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Ur._)`{passingSchemas: ${t.passing}}`},wh={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:vh,code(t){let{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;let o=r,i=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(i,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((d,f)=>{let h;(0,$h.alwaysValidSchema)(s,d)?e.var(c,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,Ur._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Ur._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(a,f),h&&t.mergeEvaluated(h,Ur.Name)})})}}};zs.default=wh});var Ka=g(Fs=>{"use strict";u();Object.defineProperty(Fs,"__esModule",{value:!0});var Eh=k(),Sh={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let s=e.name("valid");r.forEach((o,i)=>{if((0,Eh.alwaysValidSchema)(n,o))return;let a=t.subschema({keyword:"allOf",schemaProp:i},s);t.ok(s),t.mergeEvaluated(a)})}};Fs.default=Sh});var Wa=g(Vs=>{"use strict";u();Object.defineProperty(Vs,"__esModule",{value:!0});var Lr=b(),Ha=k(),bh={message:({params:t})=>(0,Lr.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Lr._)`{failingKeyword: ${t.ifClause}}`},Ph={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:bh,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Ha.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let s=Ga(n,"then"),o=Ga(n,"else");if(!s&&!o)return;let i=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),s&&o){let d=e.let("ifClause");t.setParams({ifClause:d}),e.if(a,l("then",d),l("else",d))}else s?e.if(a,l("then")):e.if((0,Lr.not)(a),l("else"));t.pass(i,()=>t.error(!0));function c(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(d)}function l(d,f){return()=>{let h=t.subschema({keyword:d},a);e.assign(i,a),t.mergeValidEvaluated(h,i),f?e.assign(f,(0,Lr._)`${d}`):t.setParams({ifClause:d})}}}};function Ga(t,e){let r=t.schema[e];return r!==void 0&&!(0,Ha.alwaysValidSchema)(t,r)}Vs.default=Ph});var Ja=g(Us=>{"use strict";u();Object.defineProperty(Us,"__esModule",{value:!0});var Nh=k(),Ih={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,Nh.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Us.default=Ih});var Ya=g(Ls=>{"use strict";u();Object.defineProperty(Ls,"__esModule",{value:!0});var Oh=Ps(),Th=Pa(),kh=Ns(),Rh=Ia(),jh=Oa(),qh=Ra(),Ah=qa(),Ch=qs(),Dh=Da(),Mh=Fa(),xh=Va(),zh=Ua(),Fh=La(),Vh=Ka(),Uh=Wa(),Lh=Ja();function Kh(t=!1){let e=[xh.default,zh.default,Fh.default,Vh.default,Uh.default,Lh.default,Ah.default,Ch.default,qh.default,Dh.default,Mh.default];return t?e.push(Th.default,Rh.default):e.push(Oh.default,kh.default),e.push(jh.default),e}Ls.default=Kh});var Ba=g(Ks=>{"use strict";u();Object.defineProperty(Ks,"__esModule",{value:!0});var F=b(),Gh={message:({schemaCode:t})=>(0,F.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,F._)`{format: ${t}}`},Hh={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Gh,code(t,e){let{gen:r,data:n,$data:s,schema:o,schemaCode:i,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:d,self:f}=a;if(!c.validateFormats)return;s?h():y();function h(){let p=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=r.const("fDef",(0,F._)`${p}[${i}]`),_=r.let("fType"),$=r.let("format");r.if((0,F._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(_,(0,F._)`${m}.type || "string"`).assign($,(0,F._)`${m}.validate`),()=>r.assign(_,(0,F._)`"string"`).assign($,m)),t.fail$data((0,F.or)(T(),I()));function T(){return c.strictSchema===!1?F.nil:(0,F._)`${i} && !${$}`}function I(){let D=d.$async?(0,F._)`(${m}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,F._)`${$}(${n})`,E=(0,F._)`(typeof ${$} == "function" ? ${D} : ${$}.test(${n}))`;return(0,F._)`${$} && ${$} !== true && ${_} === ${e} && !${E}`}}function y(){let p=f.formats[o];if(!p){T();return}if(p===!0)return;let[m,_,$]=I(p);m===e&&t.pass(D());function T(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function I(E){let me=E instanceof RegExp?(0,F.regexpCode)(E):c.code.formats?(0,F._)`${c.code.formats}${(0,F.getProperty)(o)}`:void 0,be=r.scopeValue("formats",{key:o,ref:E,code:me});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,F._)`${be}.validate`]:["string",E,be]}function D(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!d.$async)throw new Error("async format in sync schema");return(0,F._)`await ${$}(${n})`}return typeof _=="function"?(0,F._)`${$}(${n})`:(0,F._)`${$}.test(${n})`}}}};Ks.default=Hh});var Xa=g(Gs=>{"use strict";u();Object.defineProperty(Gs,"__esModule",{value:!0});var Wh=Ba(),Jh=[Wh.default];Gs.default=Jh});var Za=g(mt=>{"use strict";u();Object.defineProperty(mt,"__esModule",{value:!0});mt.contentVocabulary=mt.metadataVocabulary=void 0;mt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];mt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ec=g(Hs=>{"use strict";u();Object.defineProperty(Hs,"__esModule",{value:!0});var Yh=aa(),Bh=wa(),Xh=Ya(),Zh=Xa(),Qa=Za(),Qh=[Yh.default,Bh.default,(0,Xh.default)(),Zh.default,Qa.metadataVocabulary,Qa.contentVocabulary];Hs.default=Qh});var rc=g(Kr=>{"use strict";u();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.DiscrError=void 0;var tc;(function(t){t.Tag="tag",t.Mapping="mapping"})(tc||(Kr.DiscrError=tc={}))});var sc=g(Js=>{"use strict";u();Object.defineProperty(Js,"__esModule",{value:!0});var yt=b(),Ws=rc(),nc=Nr(),ep=Ut(),tp=k(),rp={message:({params:{discrError:t,tagName:e}})=>t===Ws.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,yt._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},np={keyword:"discriminator",type:"object",schemaType:"object",error:rp,code(t){let{gen:e,data:r,schema:n,parentSchema:s,it:o}=t,{oneOf:i}=s;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,yt._)`${r}${(0,yt.getProperty)(a)}`);e.if((0,yt._)`typeof ${l} == "string"`,()=>d(),()=>t.error(!1,{discrError:Ws.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function d(){let y=h();e.if(!1);for(let p in y)e.elseIf((0,yt._)`${l} === ${p}`),e.assign(c,f(y[p]));e.else(),t.error(!1,{discrError:Ws.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(y){let p=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:y},p);return t.mergeEvaluated(m,yt.Name),p}function h(){var y;let p={},m=$(s),_=!0;for(let D=0;D<i.length;D++){let E=i[D];if(E?.$ref&&!(0,tp.schemaHasRulesButRef)(E,o.self.RULES)){let be=E.$ref;if(E=nc.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,be),E instanceof nc.SchemaEnv&&(E=E.schema),E===void 0)throw new ep.default(o.opts.uriResolver,o.baseId,be)}let me=(y=E?.properties)===null||y===void 0?void 0:y[a];if(typeof me!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);_=_&&(m||$(E)),T(me,D)}if(!_)throw new Error(`discriminator: "${a}" must be required`);return p;function $({required:D}){return Array.isArray(D)&&D.includes(a)}function T(D,E){if(D.const)I(D.const,E);else if(D.enum)for(let me of D.enum)I(me,E);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function I(D,E){if(typeof D!="string"||D in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[D]=E}}}};Js.default=np});var oc=g((A_,sp)=>{sp.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Bs=g((x,Ys)=>{"use strict";u();Object.defineProperty(x,"__esModule",{value:!0});x.MissingRefError=x.ValidationError=x.CodeGen=x.Name=x.nil=x.stringify=x.str=x._=x.KeywordCxt=x.Ajv=void 0;var op=ta(),ip=ec(),ap=sc(),ic=oc(),cp=["/properties"],Gr="http://json-schema.org/draft-07/schema",_t=class extends op.default{_addVocabularies(){super._addVocabularies(),ip.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(ap.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ic,cp):ic;this.addMetaSchema(e,Gr,!1),this.refs["http://json-schema.org/schema"]=Gr}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Gr)?Gr:void 0)}};x.Ajv=_t;Ys.exports=x=_t;Ys.exports.Ajv=_t;Object.defineProperty(x,"__esModule",{value:!0});x.default=_t;var up=Vt();Object.defineProperty(x,"KeywordCxt",{enumerable:!0,get:function(){return up.KeywordCxt}});var gt=b();Object.defineProperty(x,"_",{enumerable:!0,get:function(){return gt._}});Object.defineProperty(x,"str",{enumerable:!0,get:function(){return gt.str}});Object.defineProperty(x,"stringify",{enumerable:!0,get:function(){return gt.stringify}});Object.defineProperty(x,"nil",{enumerable:!0,get:function(){return gt.nil}});Object.defineProperty(x,"Name",{enumerable:!0,get:function(){return gt.Name}});Object.defineProperty(x,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var lp=br();Object.defineProperty(x,"ValidationError",{enumerable:!0,get:function(){return lp.default}});var dp=Ut();Object.defineProperty(x,"MissingRefError",{enumerable:!0,get:function(){return dp.default}})});var fc=g(Se=>{"use strict";u();Object.defineProperty(Se,"__esModule",{value:!0});Se.formatNames=Se.fastFormats=Se.fullFormats=void 0;function $t(t,e){return{validate:t,compare:e}}Se.fullFormats={date:$t(uc,Qs),time:$t(lc,eo),"date-time":$t(mp,dc),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:gp,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Pp,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:$p,int32:{type:"number",validate:Ep},int64:{type:"number",validate:Sp},float:{type:"number",validate:cc},double:{type:"number",validate:cc},password:!0,binary:!0};Se.fastFormats={...Se.fullFormats,date:$t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Qs),time:$t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,eo),"date-time":$t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,dc),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Se.formatNames=Object.keys(Se.fullFormats);function fp(t){return t%4===0&&(t%100!==0||t%400===0)}var hp=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,pp=[0,31,28,31,30,31,30,31,31,30,31,30,31];function uc(t){let e=hp.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],s=+e[3];return n>=1&&n<=12&&s>=1&&s<=(n===2&&fp(r)?29:pp[n])}function Qs(t,e){if(t&&e)return t>e?1:t<e?-1:0}var Xs=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function lc(t,e){let r=Xs.exec(t);if(!r)return!1;let n=+r[1],s=+r[2],o=+r[3],i=r[5];return(n<=23&&s<=59&&o<=59||n===23&&s===59&&o===60)&&(!e||i!=="")}function eo(t,e){if(!(t&&e))return;let r=Xs.exec(t),n=Xs.exec(e);if(r&&n)return t=r[1]+r[2]+r[3]+(r[4]||""),e=n[1]+n[2]+n[3]+(n[4]||""),t>e?1:t<e?-1:0}var Zs=/t|\s/i;function mp(t){let e=t.split(Zs);return e.length===2&&uc(e[0])&&lc(e[1],!0)}function dc(t,e){if(!(t&&e))return;let[r,n]=t.split(Zs),[s,o]=e.split(Zs),i=Qs(r,s);if(i!==void 0)return i||eo(n,o)}var yp=/\/|:/,_p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function gp(t){return yp.test(t)&&_p.test(t)}var ac=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function $p(t){return ac.lastIndex=0,ac.test(t)}var vp=-(2**31),wp=2**31-1;function Ep(t){return Number.isInteger(t)&&t<=wp&&t>=vp}function Sp(t){return Number.isInteger(t)}function cc(){return!0}var bp=/[^\\]\\Z/;function Pp(t){if(bp.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var hc=g(vt=>{"use strict";u();Object.defineProperty(vt,"__esModule",{value:!0});vt.formatLimitDefinition=void 0;var Np=Bs(),pe=b(),Me=pe.operators,Hr={formatMaximum:{okStr:"<=",ok:Me.LTE,fail:Me.GT},formatMinimum:{okStr:">=",ok:Me.GTE,fail:Me.LT},formatExclusiveMaximum:{okStr:"<",ok:Me.LT,fail:Me.GTE},formatExclusiveMinimum:{okStr:">",ok:Me.GT,fail:Me.LTE}},Ip={message:({keyword:t,schemaCode:e})=>pe.str`should be ${Hr[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>pe._`{comparison: ${Hr[t].okStr}, limit: ${e}}`};vt.formatLimitDefinition={keyword:Object.keys(Hr),type:"string",schemaType:"string",$data:!0,error:Ip,code(t){let{gen:e,data:r,schemaCode:n,keyword:s,it:o}=t,{opts:i,self:a}=o;if(!i.validateFormats)return;let c=new Np.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():d();function l(){let h=e.scopeValue("formats",{ref:a.formats,code:i.code.formats}),y=e.const("fmt",pe._`${h}[${c.schemaCode}]`);t.fail$data(pe.or(pe._`typeof ${y} != "object"`,pe._`${y} instanceof RegExp`,pe._`typeof ${y}.compare != "function"`,f(y)))}function d(){let h=c.schema,y=a.formats[h];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${s}": format "${h}" does not define "compare" function`);let p=e.scopeValue("formats",{key:h,ref:y,code:i.code.formats?pe._`${i.code.formats}${pe.getProperty(h)}`:void 0});t.fail$data(f(p))}function f(h){return pe._`${h}.compare(${r}, ${n}) ${Hr[s].fail} 0`}},dependencies:["format"]};var Op=t=>(t.addKeyword(vt.formatLimitDefinition),t);vt.default=Op});var _c=g((rr,yc)=>{"use strict";u();Object.defineProperty(rr,"__esModule",{value:!0});var wt=fc(),Tp=hc(),to=b(),pc=new to.Name("fullFormats"),kp=new to.Name("fastFormats"),ro=(t,e={keywords:!0})=>{if(Array.isArray(e))return mc(t,e,wt.fullFormats,pc),t;let[r,n]=e.mode==="fast"?[wt.fastFormats,kp]:[wt.fullFormats,pc],s=e.formats||wt.formatNames;return mc(t,s,r,n),e.keywords&&Tp.default(t),t};ro.get=(t,e="full")=>{let n=(e==="fast"?wt.fastFormats:wt.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function mc(t,e,r,n){var s,o;(s=(o=t.opts.code).formats)!==null&&s!==void 0||(o.formats=to._`require("ajv-formats/dist/formats").${n}`);for(let i of e)t.addFormat(i,r[i])}yc.exports=rr=ro;Object.defineProperty(rr,"__esModule",{value:!0});rr.default=ro});u();u();var bt;(function(t){t.Local="local",t.Production="production"})(bt||(bt={}));function Oc(t=process.env){return t[lo.serviceEnv]==="local"?bt.Local:bt.Production}function en(t=process.env){return Oc(t)===bt.Local}u();u();import{isDeepStrictEqual as jp}from"node:util";import gc from"node:process";import{Buffer as nr}from"node:buffer";import tt from"node:fs";import $c from"node:path";import sr from"node:crypto";import qp from"node:assert";import{EventEmitter as Ap}from"node:events";u();var Ue=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")},tn=new Set(["__proto__","prototype","constructor"]),Tc=new Set("0123456789");function ur(t){let e=[],r="",n="start",s=!1;for(let o of t)switch(o){case"\\":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=o),n="property",s=!s;break;case".":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=o;break}if(tn.has(r))return[];e.push(r),r="",n="property";break;case"[":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=o;break}if(n==="property"){if(tn.has(r))return[];e.push(r),r=""}n="index";break;case"]":if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index");default:if(n==="index"&&!Tc.has(o))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=o}switch(s&&(r+="\\"),n){case"property":{if(tn.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}function rn(t,e){if(typeof e!="number"&&Array.isArray(t)){let r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function yo(t,e){if(rn(t,e))throw new Error("Cannot use string index")}function _o(t,e,r){if(!Ue(t)||typeof e!="string")return r===void 0?t:r;let n=ur(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){let o=n[s];if(rn(t,o)?t=s===n.length-1?void 0:null:t=t[o],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}function nn(t,e,r){if(!Ue(t)||typeof e!="string")return t;let n=t,s=ur(e);for(let o=0;o<s.length;o++){let i=s[o];yo(t,i),o===s.length-1?t[i]=r:Ue(t[i])||(t[i]=typeof s[o+1]=="number"?[]:{}),t=t[i]}return n}function go(t,e){if(!Ue(t)||typeof e!="string")return!1;let r=ur(e);for(let n=0;n<r.length;n++){let s=r[n];if(yo(t,s),n===r.length-1)return delete t[s],!0;if(t=t[s],!Ue(t))return!1}}function $o(t,e){if(!Ue(t)||typeof e!="string")return!1;let r=ur(e);if(r.length===0)return!1;for(let n of r){if(!Ue(t)||!(n in t)||rn(t,n))return!1;t=t[n]}return!0}u();import xc from"node:path";u();import j from"node:fs";import{promisify as G}from"node:util";u();u();var kc=(t,e)=>{let{onError:r}=e;return function(...s){return t.apply(void 0,s).catch(r)}},ye=kc;u();var Rc=(t,e)=>{let{onError:r}=e;return function(...s){try{return t.apply(void 0,s)}catch(o){return r(o)}}},ue=Rc;u();u();var qc=(t,e)=>{let{isRetriable:r}=e;return function(s){let{timeout:o}=s,i=s.interval??250,a=Date.now()+o;return function c(...l){return t.apply(void 0,l).catch(d=>{if(!r(d)||Date.now()>=a)throw d;let f=Math.round(i*Math.random());return f>0?new Promise(y=>setTimeout(y,f)).then(()=>c.apply(void 0,l)):c.apply(void 0,l)})}}},_e=qc;u();var Ac=(t,e)=>{let{isRetriable:r}=e;return function(s){let{timeout:o}=s,i=Date.now()+o;return function(...c){for(;;)try{return t.apply(void 0,c)}catch(l){if(!r(l)||Date.now()>=i)throw l;continue}}}},ge=Ac;u();import wo from"node:process";u();var Pt={isChangeErrorOk:t=>{if(!Pt.isNodeError(t))return!1;let{code:e}=t;return e==="ENOSYS"||!vo&&(e==="EINVAL"||e==="EPERM")},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!Pt.isNodeError(t))return!1;let{code:e}=t;return e==="EMFILE"||e==="ENFILE"||e==="EAGAIN"||e==="EBUSY"||e==="EACCESS"||e==="EACCES"||e==="EACCS"||e==="EPERM"},onChangeError:t=>{if(!Pt.isNodeError(t))throw t;if(!Pt.isChangeErrorOk(t))throw t}},sn=Pt;var Nt={onError:sn.onChangeError},X={onError:()=>{}},vo=wo.getuid?!wo.getuid():!1,U={isRetriable:sn.isRetriableError};var Cc={attempt:{chmod:ye(G(j.chmod),Nt),chown:ye(G(j.chown),Nt),close:ye(G(j.close),X),fsync:ye(G(j.fsync),X),mkdir:ye(G(j.mkdir),X),realpath:ye(G(j.realpath),X),stat:ye(G(j.stat),X),unlink:ye(G(j.unlink),X),chmodSync:ue(j.chmodSync,Nt),chownSync:ue(j.chownSync,Nt),closeSync:ue(j.closeSync,X),existsSync:ue(j.existsSync,X),fsyncSync:ue(j.fsync,X),mkdirSync:ue(j.mkdirSync,X),realpathSync:ue(j.realpathSync,X),statSync:ue(j.statSync,X),unlinkSync:ue(j.unlinkSync,X)},retry:{close:_e(G(j.close),U),fsync:_e(G(j.fsync),U),open:_e(G(j.open),U),readFile:_e(G(j.readFile),U),rename:_e(G(j.rename),U),stat:_e(G(j.stat),U),write:_e(G(j.write),U),writeFile:_e(G(j.writeFile),U),closeSync:ge(j.closeSync,U),fsyncSync:ge(j.fsyncSync,U),openSync:ge(j.openSync,U),readFileSync:ge(j.readFileSync,U),renameSync:ge(j.renameSync,U),statSync:ge(j.statSync,U),writeSync:ge(j.writeSync,U),writeFileSync:ge(j.writeFileSync,U)}},V=Cc;u();import Le from"node:process";var Eo="utf8",on=438,So=511;var bo={},Po=Le.geteuid?Le.geteuid():-1,No=Le.getegid?Le.getegid():-1;var Io=1e3,Oo=!!Le.getuid,Pm=Le.getuid?!Le.getuid():!1,an=128;u();var To=t=>t instanceof Error&&"code"in t;var cn=t=>typeof t=="string",lr=t=>t===void 0;u();u();import Mc from"node:path";u();u();import nt from"node:process";u();import ko from"node:process";var Ro=ko.platform==="linux",dr=ko.platform==="win32";u();var un=["SIGHUP","SIGINT","SIGTERM"];dr||un.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");Ro&&un.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var jo=un;var ln=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();e&&(dr&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?nt.kill(nt.pid,"SIGTERM"):nt.kill(nt.pid,e))}},this.hook=()=>{nt.once("exit",()=>this.exit());for(let e of jo)try{nt.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}},qo=new ln;var Dc=qo.register,Ao=Dc;var ne={store:{},create:t=>{let e=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),s=`.tmp-${Date.now().toString().slice(-10)}${e}`;return`${t}${s}`},get:(t,e,r=!0)=>{let n=ne.truncate(e(t));return n in ne.store?ne.get(t,e,r):(ne.store[n]=r,[n,()=>delete ne.store[n]])},purge:t=>{ne.store[t]&&(delete ne.store[t],V.attempt.unlink(t))},purgeSync:t=>{ne.store[t]&&(delete ne.store[t],V.attempt.unlinkSync(t))},purgeSyncAll:()=>{for(let t in ne.store)ne.purgeSync(t)},truncate:t=>{let e=Mc.basename(t);if(e.length<=an)return t;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(e);if(!r)return t;let n=e.length-an;return`${t.slice(0,-e.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};Ao(ne.purgeSyncAll);var It=ne;function dn(t,e,r=bo){if(cn(r))return dn(t,e,{encoding:r});let s={timeout:r.timeout??Io},o=null,i=null,a=null;try{let c=V.attempt.realpathSync(t),l=!!c;t=c||t,[i,o]=It.get(t,r.tmpCreate||It.create,r.tmpPurge!==!1);let d=Oo&&lr(r.chown),f=lr(r.mode);if(l&&(d||f)){let h=V.attempt.statSync(t);h&&(r={...r},d&&(r.chown={uid:h.uid,gid:h.gid}),f&&(r.mode=h.mode))}if(!l){let h=xc.dirname(t);V.attempt.mkdirSync(h,{mode:So,recursive:!0})}a=V.retry.openSync(s)(i,"w",r.mode||on),r.tmpCreated&&r.tmpCreated(i),cn(e)?V.retry.writeSync(s)(a,e,0,r.encoding||Eo):lr(e)||V.retry.writeSync(s)(a,e,0,e.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?V.retry.fsyncSync(s)(a):V.attempt.fsync(a)),V.retry.closeSync(s)(a),a=null,r.chown&&(r.chown.uid!==Po||r.chown.gid!==No)&&V.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==on&&V.attempt.chmodSync(i,r.mode);try{V.retry.renameSync(s)(i,t)}catch(h){if(!To(h)||h.code!=="ENAMETOOLONG")throw h;V.retry.renameSync(s)(i,It.truncate(t))}o(),i=null}finally{a&&V.attempt.closeSync(a),i&&It.purge(i)}}var wc=Zr(Bs(),1),Ec=Zr(_c(),1);u();var Rp=(t,e={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);let{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:s=!1,after:o=!0}=e;if(!s&&!o)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let i,a,c,l=function(...d){let f=this,h=()=>{i=void 0,a&&(clearTimeout(a),a=void 0),o&&(c=t.apply(f,d))},y=()=>{a=void 0,i&&(clearTimeout(i),i=void 0),o&&(c=t.apply(f,d))},p=s&&!i;return clearTimeout(i),i=setTimeout(h,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(y,n)),p&&(c=t.apply(f,d)),c};return fo(l,t),l.cancel=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearTimeout(a),a=void 0)},l},no=Rp;var rt=Zr(Ic(),1),Wr=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},z=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},et,xe,ce,ze,Cp=wc.default.default,Dp=Ec.default.default,vc="aes-256-cbc",Et=()=>Object.create(null),Mp=t=>t!=null,xp=(t,e)=>{let r=new Set(["undefined","symbol","function"]),n=typeof e;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${t}\` is not allowed as it's not supported by JSON`)},Jr="__internal__",so=`${Jr}.migrations.version`,or=class{constructor(e={}){Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),et.set(this,void 0),xe.set(this,void 0),ce.set(this,void 0),ze.set(this,{}),Object.defineProperty(this,"_deserialize",{enumerable:!0,configurable:!0,writable:!0,value:i=>JSON.parse(i)}),Object.defineProperty(this,"_serialize",{enumerable:!0,configurable:!0,writable:!0,value:i=>JSON.stringify(i,void 0," ")});let r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...e};if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=uo(r.projectName,{suffix:r.projectSuffix}).config}if(Wr(this,ce,r,"f"),r.schema){if(typeof r.schema!="object")throw new TypeError("The `schema` option must be an object.");let i=new Cp({allErrors:!0,useDefaults:!0});Dp(i);let a={type:"object",properties:r.schema};Wr(this,et,i.compile(a),"f");for(let[c,l]of Object.entries(r.schema))l?.default&&(z(this,ze,"f")[c]=l.default)}r.defaults&&Wr(this,ze,{...z(this,ze,"f"),...r.defaults},"f"),r.serialize&&(this._serialize=r.serialize),r.deserialize&&(this._deserialize=r.deserialize),this.events=new Ap,Wr(this,xe,r.encryptionKey,"f");let n=r.fileExtension?`.${r.fileExtension}`:"";this.path=$c.resolve(r.cwd,`${r.configName??"config"}${n}`);let s=this.store,o=Object.assign(Et(),r.defaults,s);this._validate(o);try{qp.deepEqual(s,o)}catch{this.store=o}if(r.watch&&this._watch(),r.migrations){if(!r.projectVersion)throw new Error("Please specify the `projectVersion` option.");this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}}get(e,r){if(z(this,ce,"f").accessPropertiesByDotNotation)return this._get(e,r);let{store:n}=this;return e in n?n[e]:r}set(e,r){if(typeof e!="string"&&typeof e!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof e}`);if(typeof e!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(e))throw new TypeError(`Please don't use the ${Jr} key, as it's used to manage this module internal operations.`);let{store:n}=this,s=(o,i)=>{xp(o,i),z(this,ce,"f").accessPropertiesByDotNotation?nn(n,o,i):n[o]=i};if(typeof e=="object"){let o=e;for(let[i,a]of Object.entries(o))s(i,a)}else s(e,r);this.store=n}has(e){return z(this,ce,"f").accessPropertiesByDotNotation?$o(this.store,e):e in this.store}reset(...e){for(let r of e)Mp(z(this,ze,"f")[r])&&this.set(r,z(this,ze,"f")[r])}delete(e){let{store:r}=this;z(this,ce,"f").accessPropertiesByDotNotation?go(r,e):delete r[e],this.store=r}clear(){this.store=Et();for(let e of Object.keys(z(this,ze,"f")))this.reset(e)}onDidChange(e,r){if(typeof e!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);return this._handleChange(()=>this.get(e),r)}onDidAnyChange(e){if(typeof e!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`);return this._handleChange(()=>this.store,e)}get size(){return Object.keys(this.store).length}get store(){try{let e=tt.readFileSync(this.path,z(this,xe,"f")?null:"utf8"),r=this._encryptData(e),n=this._deserialize(r);return this._validate(n),Object.assign(Et(),n)}catch(e){if(e?.code==="ENOENT")return this._ensureDirectory(),Et();if(z(this,ce,"f").clearInvalidConfig&&e.name==="SyntaxError")return Et();throw e}}set store(e){this._ensureDirectory(),this._validate(e),this._write(e),this.events.emit("change")}*[(et=new WeakMap,xe=new WeakMap,ce=new WeakMap,ze=new WeakMap,Symbol.iterator)](){for(let[e,r]of Object.entries(this.store))yield[e,r]}_encryptData(e){if(!z(this,xe,"f"))return e.toString();try{let r=e.slice(0,16),n=sr.pbkdf2Sync(z(this,xe,"f"),r.toString(),1e4,32,"sha512"),s=sr.createDecipheriv(vc,n,r);return nr.concat([s.update(nr.from(e.slice(17))),s.final()]).toString("utf8")}catch{}return e.toString()}_handleChange(e,r){let n=e(),s=()=>{let o=n,i=e();jp(i,o)||(n=i,r.call(this,i,o))};return this.events.on("change",s),()=>this.events.removeListener("change",s)}_validate(e){if(!z(this,et,"f")||z(this,et,"f").call(this,e)||!z(this,et,"f").errors)return;let n=z(this,et,"f").errors.map(({instancePath:s,message:o=""})=>`\`${s.slice(1)}\` ${o}`);throw new Error("Config schema violation: "+n.join("; "))}_ensureDirectory(){tt.mkdirSync($c.dirname(this.path),{recursive:!0})}_write(e){let r=this._serialize(e);if(z(this,xe,"f")){let n=sr.randomBytes(16),s=sr.pbkdf2Sync(z(this,xe,"f"),n.toString(),1e4,32,"sha512"),o=sr.createCipheriv(vc,s,n);r=nr.concat([n,nr.from(":"),o.update(nr.from(r)),o.final()])}if(gc.env.SNAP)tt.writeFileSync(this.path,r,{mode:z(this,ce,"f").configFileMode});else try{dn(this.path,r,{mode:z(this,ce,"f").configFileMode})}catch(n){if(n?.code==="EXDEV"){tt.writeFileSync(this.path,r,{mode:z(this,ce,"f").configFileMode});return}throw n}}_watch(){this._ensureDirectory(),tt.existsSync(this.path)||this._write(Et()),gc.platform==="win32"?tt.watch(this.path,{persistent:!1},no(()=>{this.events.emit("change")},{wait:100})):tt.watchFile(this.path,{persistent:!1},no(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(e,r,n){let s=this._get(so,"0.0.0"),o=Object.keys(e).filter(a=>this._shouldPerformMigration(a,s,r)),i={...this.store};for(let a of o)try{n&&n(this,{fromVersion:s,toVersion:a,finalVersion:r,versions:o});let c=e[a];c?.(this),this._set(so,a),s=a,i={...this.store}}catch(c){throw this.store=i,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${c}`)}(this._isVersionInRangeFormat(s)||!rt.default.eq(s,r))&&this._set(so,r)}_containsReservedKey(e){return typeof e=="object"&&Object.keys(e)[0]===Jr?!0:typeof e!="string"?!1:z(this,ce,"f").accessPropertiesByDotNotation?!!e.startsWith(`${Jr}.`):!1}_isVersionInRangeFormat(e){return rt.default.clean(e)===null}_shouldPerformMigration(e,r,n){return this._isVersionInRangeFormat(e)?r!=="0.0.0"&&rt.default.satisfies(r,e)?!1:rt.default.satisfies(n,e):!(rt.default.lte(e,r)||rt.default.gt(e,n))}_get(e,r){return _o(this.store,e,r)}_set(e,r){let{store:n}=this;nn(n,e,r),this.store=n}};function zp(t){let e=t.replace(/^\uFEFF/,"");return JSON.parse(e)}var ir=class{config;constructor(e){this.config=new or({...e,clearInvalidConfig:!0,deserialize:zp})}get(e){try{return this.config.get(e)}catch(r){this.handleError(r,"get")}}set(e,r){try{this.config.set(e,r)}catch(n){this.handleError(n,"set")}}delete(e){try{this.config.delete(e)}catch(r){this.handleError(r,"delete")}}clear(){try{this.config.clear()}catch(e){this.handleError(e,"clear")}}handleError(e,r){throw this.isPermissionError()?new ho(`Failed to access local storage (${r}): ${e}`,this.tryMessage()):new po(`Unexpected error while accessing local storage at ${this.config.path} (${r}): ${e}`)}isPermissionError(){let e=Qr(this.config.path),r=Qr(ar(this.config.path)),n=cr(this.config.path);return!e||!r||n===!1}tryMessage(){let e=cr(this.config.path),r=cr(ar(this.config.path)),n=["Check that you have write permissions for",{filePath:this.config.path}];return(e===!1||r===!1)&&n.push("- The file is owned by a different user. This typically happens when Shopify CLI was previously run with elevated permissions (e.g., sudo)."),n.push(`
|
|
8
|
+
deps: ${r}}`};var ch={keyword:"dependencies",type:"object",schemaType:"object",error:Ee.error,code(t){let[e,r]=uh(t);ja(t,e),qa(t,r)}};function uh({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let s=Array.isArray(t[n])?e:r;s[n]=t[n]}return[e,r]}function ja(t,e=t.schema){let{gen:r,data:n,it:s}=t;if(Object.keys(e).length===0)return;let o=r.let("missing");for(let i in e){let a=e[i];if(a.length===0)continue;let c=(0,tr.propertyInData)(r,n,i,s.opts.ownProperties);t.setParams({property:i,depsCount:a.length,deps:a.join(", ")}),s.allErrors?r.if(c,()=>{for(let l of a)(0,tr.checkReportMissingProp)(t,l)}):(r.if((0,As._)`${c} && (${(0,tr.checkMissingProp)(t,a,o)})`),(0,tr.reportMissingProp)(t,o),r.else())}}Ee.validatePropertyDeps=ja;function qa(t,e=t.schema){let{gen:r,data:n,keyword:s,it:o}=t,i=r.name("valid");for(let a in e)(0,ah.alwaysValidSchema)(o,e[a])||(r.if((0,tr.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=t.subschema({keyword:s,schemaProp:a},i);t.mergeValidEvaluated(c,i)},()=>r.var(i,!0)),t.ok(i))}Ee.validateSchemaDeps=qa;Ee.default=ch});var Da=g(Cs=>{"use strict";u();Object.defineProperty(Cs,"__esModule",{value:!0});var Ca=b(),lh=k(),dh={message:"property name must be valid",params:({params:t})=>(0,Ca._)`{propertyName: ${t.propertyName}}`},fh={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:dh,code(t){let{gen:e,schema:r,data:n,it:s}=t;if((0,lh.alwaysValidSchema)(s,r))return;let o=e.name("valid");e.forIn("key",n,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},o),e.if((0,Ca.not)(o),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(o)}};Cs.default=fh});var Ms=g(Ds=>{"use strict";u();Object.defineProperty(Ds,"__esModule",{value:!0});var Fr=oe(),he=b(),hh=Ie(),Vr=k(),ph={message:"must NOT have additional properties",params:({params:t})=>(0,he._)`{additionalProperty: ${t.additionalProperty}}`},mh={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ph,code(t){let{gen:e,schema:r,parentSchema:n,data:s,errsCount:o,it:i}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Vr.alwaysValidSchema)(i,r))return;let l=(0,Fr.allSchemaProperties)(n.properties),d=(0,Fr.allSchemaProperties)(n.patternProperties);f(),t.ok((0,he._)`${o} === ${hh.default.errors}`);function f(){e.forIn("key",s,_=>{!l.length&&!d.length?p(_):e.if(h(_),()=>p(_))})}function h(_){let $;if(l.length>8){let T=(0,Vr.schemaRefOrVal)(i,n.properties,"properties");$=(0,Fr.isOwnProperty)(e,T,_)}else l.length?$=(0,he.or)(...l.map(T=>(0,he._)`${_} === ${T}`)):$=he.nil;return d.length&&($=(0,he.or)($,...d.map(T=>(0,he._)`${(0,Fr.usePattern)(t,T)}.test(${_})`))),(0,he.not)($)}function y(_){e.code((0,he._)`delete ${s}[${_}]`)}function p(_){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){y(_);return}if(r===!1){t.setParams({additionalProperty:_}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Vr.alwaysValidSchema)(i,r)){let $=e.name("valid");c.removeAdditional==="failing"?(m(_,$,!1),e.if((0,he.not)($),()=>{t.reset(),y(_)})):(m(_,$),a||e.if((0,he.not)($),()=>e.break()))}}function m(_,$,T){let I={keyword:"additionalProperties",dataProp:_,dataPropType:Vr.Type.Str};T===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(I,$)}}};Ds.default=mh});var za=g(zs=>{"use strict";u();Object.defineProperty(zs,"__esModule",{value:!0});var yh=Vt(),Ma=oe(),xs=k(),xa=Ms(),_h={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:s,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&xa.default.code(new yh.KeywordCxt(o,xa.default,"additionalProperties"));let i=(0,Ma.allSchemaProperties)(r);for(let f of i)o.definedProperties.add(f);o.opts.unevaluated&&i.length&&o.props!==!0&&(o.props=xs.mergeEvaluated.props(e,(0,xs.toHash)(i),o.props));let a=i.filter(f=>!(0,xs.alwaysValidSchema)(o,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?d(f):(e.if((0,Ma.propertyInData)(e,s,f,o.opts.ownProperties)),d(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function d(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};zs.default=_h});var La=g(Fs=>{"use strict";u();Object.defineProperty(Fs,"__esModule",{value:!0});var Fa=oe(),Ur=b(),Va=k(),Ua=k(),gh={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:s,it:o}=t,{opts:i}=o,a=(0,Fa.allSchemaProperties)(r),c=a.filter(m=>(0,Va.alwaysValidSchema)(o,r[m]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=i.strictSchema&&!i.allowMatchingProperties&&s.properties,d=e.name("valid");o.props!==!0&&!(o.props instanceof Ur.Name)&&(o.props=(0,Ua.evaluatedPropsToName)(e,o.props));let{props:f}=o;h();function h(){for(let m of a)l&&y(m),o.allErrors?p(m):(e.var(d,!0),p(m),e.if(d))}function y(m){for(let _ in l)new RegExp(m).test(_)&&(0,Va.checkStrictMode)(o,`property ${_} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){e.forIn("key",n,_=>{e.if((0,Ur._)`${(0,Fa.usePattern)(t,m)}.test(${_})`,()=>{let $=c.includes(m);$||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:_,dataPropType:Ua.Type.Str},d),o.opts.unevaluated&&f!==!0?e.assign((0,Ur._)`${f}[${_}]`,!0):!$&&!o.allErrors&&e.if((0,Ur.not)(d),()=>e.break())})})}}};Fs.default=gh});var Ka=g(Vs=>{"use strict";u();Object.defineProperty(Vs,"__esModule",{value:!0});var $h=k(),vh={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,$h.alwaysValidSchema)(n,r)){t.fail();return}let s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Vs.default=vh});var Ga=g(Us=>{"use strict";u();Object.defineProperty(Us,"__esModule",{value:!0});var wh=oe(),Eh={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:wh.validateUnion,error:{message:"must match a schema in anyOf"}};Us.default=Eh});var Ha=g(Ls=>{"use strict";u();Object.defineProperty(Ls,"__esModule",{value:!0});var Lr=b(),Sh=k(),bh={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Lr._)`{passingSchemas: ${t.passing}}`},Ph={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:bh,code(t){let{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;let o=r,i=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(i,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((d,f)=>{let h;(0,Sh.alwaysValidSchema)(s,d)?e.var(c,!0):h=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,Lr._)`${c} && ${i}`).assign(i,!1).assign(a,(0,Lr._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(a,f),h&&t.mergeEvaluated(h,Lr.Name)})})}}};Ls.default=Ph});var Wa=g(Ks=>{"use strict";u();Object.defineProperty(Ks,"__esModule",{value:!0});var Nh=k(),Ih={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let s=e.name("valid");r.forEach((o,i)=>{if((0,Nh.alwaysValidSchema)(n,o))return;let a=t.subschema({keyword:"allOf",schemaProp:i},s);t.ok(s),t.mergeEvaluated(a)})}};Ks.default=Ih});var Ba=g(Gs=>{"use strict";u();Object.defineProperty(Gs,"__esModule",{value:!0});var Kr=b(),Ya=k(),Oh={message:({params:t})=>(0,Kr.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Kr._)`{failingKeyword: ${t.ifClause}}`},Th={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Oh,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Ya.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let s=Ja(n,"then"),o=Ja(n,"else");if(!s&&!o)return;let i=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),s&&o){let d=e.let("ifClause");t.setParams({ifClause:d}),e.if(a,l("then",d),l("else",d))}else s?e.if(a,l("then")):e.if((0,Kr.not)(a),l("else"));t.pass(i,()=>t.error(!0));function c(){let d=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(d)}function l(d,f){return()=>{let h=t.subschema({keyword:d},a);e.assign(i,a),t.mergeValidEvaluated(h,i),f?e.assign(f,(0,Kr._)`${d}`):t.setParams({ifClause:d})}}}};function Ja(t,e){let r=t.schema[e];return r!==void 0&&!(0,Ya.alwaysValidSchema)(t,r)}Gs.default=Th});var Xa=g(Hs=>{"use strict";u();Object.defineProperty(Hs,"__esModule",{value:!0});var kh=k(),Rh={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,kh.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Hs.default=Rh});var Za=g(Ws=>{"use strict";u();Object.defineProperty(Ws,"__esModule",{value:!0});var jh=Ts(),qh=Oa(),Ah=ks(),Ch=ka(),Dh=Ra(),Mh=Aa(),xh=Da(),zh=Ms(),Fh=za(),Vh=La(),Uh=Ka(),Lh=Ga(),Kh=Ha(),Gh=Wa(),Hh=Ba(),Wh=Xa();function Jh(t=!1){let e=[Uh.default,Lh.default,Kh.default,Gh.default,Hh.default,Wh.default,xh.default,zh.default,Mh.default,Fh.default,Vh.default];return t?e.push(qh.default,Ch.default):e.push(jh.default,Ah.default),e.push(Dh.default),e}Ws.default=Jh});var Qa=g(Js=>{"use strict";u();Object.defineProperty(Js,"__esModule",{value:!0});var F=b(),Yh={message:({schemaCode:t})=>(0,F.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,F._)`{format: ${t}}`},Bh={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Yh,code(t,e){let{gen:r,data:n,$data:s,schema:o,schemaCode:i,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:d,self:f}=a;if(!c.validateFormats)return;s?h():y();function h(){let p=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=r.const("fDef",(0,F._)`${p}[${i}]`),_=r.let("fType"),$=r.let("format");r.if((0,F._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(_,(0,F._)`${m}.type || "string"`).assign($,(0,F._)`${m}.validate`),()=>r.assign(_,(0,F._)`"string"`).assign($,m)),t.fail$data((0,F.or)(T(),I()));function T(){return c.strictSchema===!1?F.nil:(0,F._)`${i} && !${$}`}function I(){let D=d.$async?(0,F._)`(${m}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,F._)`${$}(${n})`,E=(0,F._)`(typeof ${$} == "function" ? ${D} : ${$}.test(${n}))`;return(0,F._)`${$} && ${$} !== true && ${_} === ${e} && !${E}`}}function y(){let p=f.formats[o];if(!p){T();return}if(p===!0)return;let[m,_,$]=I(p);m===e&&t.pass(D());function T(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function I(E){let me=E instanceof RegExp?(0,F.regexpCode)(E):c.code.formats?(0,F._)`${c.code.formats}${(0,F.getProperty)(o)}`:void 0,be=r.scopeValue("formats",{key:o,ref:E,code:me});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,F._)`${be}.validate`]:["string",E,be]}function D(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!d.$async)throw new Error("async format in sync schema");return(0,F._)`await ${$}(${n})`}return typeof _=="function"?(0,F._)`${$}(${n})`:(0,F._)`${$}.test(${n})`}}}};Js.default=Bh});var ec=g(Ys=>{"use strict";u();Object.defineProperty(Ys,"__esModule",{value:!0});var Xh=Qa(),Zh=[Xh.default];Ys.default=Zh});var tc=g(mt=>{"use strict";u();Object.defineProperty(mt,"__esModule",{value:!0});mt.contentVocabulary=mt.metadataVocabulary=void 0;mt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];mt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var nc=g(Bs=>{"use strict";u();Object.defineProperty(Bs,"__esModule",{value:!0});var Qh=la(),ep=ba(),tp=Za(),rp=ec(),rc=tc(),np=[Qh.default,ep.default,(0,tp.default)(),rp.default,rc.metadataVocabulary,rc.contentVocabulary];Bs.default=np});var oc=g(Gr=>{"use strict";u();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.DiscrError=void 0;var sc;(function(t){t.Tag="tag",t.Mapping="mapping"})(sc||(Gr.DiscrError=sc={}))});var ac=g(Zs=>{"use strict";u();Object.defineProperty(Zs,"__esModule",{value:!0});var yt=b(),Xs=oc(),ic=Ir(),sp=Ut(),op=k(),ip={message:({params:{discrError:t,tagName:e}})=>t===Xs.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,yt._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},ap={keyword:"discriminator",type:"object",schemaType:"object",error:ip,code(t){let{gen:e,data:r,schema:n,parentSchema:s,it:o}=t,{oneOf:i}=s;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,yt._)`${r}${(0,yt.getProperty)(a)}`);e.if((0,yt._)`typeof ${l} == "string"`,()=>d(),()=>t.error(!1,{discrError:Xs.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function d(){let y=h();e.if(!1);for(let p in y)e.elseIf((0,yt._)`${l} === ${p}`),e.assign(c,f(y[p]));e.else(),t.error(!1,{discrError:Xs.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(y){let p=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:y},p);return t.mergeEvaluated(m,yt.Name),p}function h(){var y;let p={},m=$(s),_=!0;for(let D=0;D<i.length;D++){let E=i[D];if(E?.$ref&&!(0,op.schemaHasRulesButRef)(E,o.self.RULES)){let be=E.$ref;if(E=ic.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,be),E instanceof ic.SchemaEnv&&(E=E.schema),E===void 0)throw new sp.default(o.opts.uriResolver,o.baseId,be)}let me=(y=E?.properties)===null||y===void 0?void 0:y[a];if(typeof me!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);_=_&&(m||$(E)),T(me,D)}if(!_)throw new Error(`discriminator: "${a}" must be required`);return p;function $({required:D}){return Array.isArray(D)&&D.includes(a)}function T(D,E){if(D.const)I(D.const,E);else if(D.enum)for(let me of D.enum)I(me,E);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function I(D,E){if(typeof D!="string"||D in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[D]=E}}}};Zs.default=ap});var cc=g((z_,cp)=>{cp.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var eo=g((x,Qs)=>{"use strict";u();Object.defineProperty(x,"__esModule",{value:!0});x.MissingRefError=x.ValidationError=x.CodeGen=x.Name=x.nil=x.stringify=x.str=x._=x.KeywordCxt=x.Ajv=void 0;var up=sa(),lp=nc(),dp=ac(),uc=cc(),fp=["/properties"],Hr="http://json-schema.org/draft-07/schema",_t=class extends up.default{_addVocabularies(){super._addVocabularies(),lp.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(dp.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(uc,fp):uc;this.addMetaSchema(e,Hr,!1),this.refs["http://json-schema.org/schema"]=Hr}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Hr)?Hr:void 0)}};x.Ajv=_t;Qs.exports=x=_t;Qs.exports.Ajv=_t;Object.defineProperty(x,"__esModule",{value:!0});x.default=_t;var hp=Vt();Object.defineProperty(x,"KeywordCxt",{enumerable:!0,get:function(){return hp.KeywordCxt}});var gt=b();Object.defineProperty(x,"_",{enumerable:!0,get:function(){return gt._}});Object.defineProperty(x,"str",{enumerable:!0,get:function(){return gt.str}});Object.defineProperty(x,"stringify",{enumerable:!0,get:function(){return gt.stringify}});Object.defineProperty(x,"nil",{enumerable:!0,get:function(){return gt.nil}});Object.defineProperty(x,"Name",{enumerable:!0,get:function(){return gt.Name}});Object.defineProperty(x,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var pp=Pr();Object.defineProperty(x,"ValidationError",{enumerable:!0,get:function(){return pp.default}});var mp=Ut();Object.defineProperty(x,"MissingRefError",{enumerable:!0,get:function(){return mp.default}})});var mc=g(Se=>{"use strict";u();Object.defineProperty(Se,"__esModule",{value:!0});Se.formatNames=Se.fastFormats=Se.fullFormats=void 0;function $t(t,e){return{validate:t,compare:e}}Se.fullFormats={date:$t(fc,no),time:$t(hc,so),"date-time":$t($p,pc),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Ep,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Tp,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Sp,int32:{type:"number",validate:Np},int64:{type:"number",validate:Ip},float:{type:"number",validate:dc},double:{type:"number",validate:dc},password:!0,binary:!0};Se.fastFormats={...Se.fullFormats,date:$t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,no),time:$t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,so),"date-time":$t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,pc),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Se.formatNames=Object.keys(Se.fullFormats);function yp(t){return t%4===0&&(t%100!==0||t%400===0)}var _p=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,gp=[0,31,28,31,30,31,30,31,31,30,31,30,31];function fc(t){let e=_p.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],s=+e[3];return n>=1&&n<=12&&s>=1&&s<=(n===2&&yp(r)?29:gp[n])}function no(t,e){if(t&&e)return t>e?1:t<e?-1:0}var to=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function hc(t,e){let r=to.exec(t);if(!r)return!1;let n=+r[1],s=+r[2],o=+r[3],i=r[5];return(n<=23&&s<=59&&o<=59||n===23&&s===59&&o===60)&&(!e||i!=="")}function so(t,e){if(!(t&&e))return;let r=to.exec(t),n=to.exec(e);if(r&&n)return t=r[1]+r[2]+r[3]+(r[4]||""),e=n[1]+n[2]+n[3]+(n[4]||""),t>e?1:t<e?-1:0}var ro=/t|\s/i;function $p(t){let e=t.split(ro);return e.length===2&&fc(e[0])&&hc(e[1],!0)}function pc(t,e){if(!(t&&e))return;let[r,n]=t.split(ro),[s,o]=e.split(ro),i=no(r,s);if(i!==void 0)return i||so(n,o)}var vp=/\/|:/,wp=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Ep(t){return vp.test(t)&&wp.test(t)}var lc=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function Sp(t){return lc.lastIndex=0,lc.test(t)}var bp=-(2**31),Pp=2**31-1;function Np(t){return Number.isInteger(t)&&t<=Pp&&t>=bp}function Ip(t){return Number.isInteger(t)}function dc(){return!0}var Op=/[^\\]\\Z/;function Tp(t){if(Op.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var yc=g(vt=>{"use strict";u();Object.defineProperty(vt,"__esModule",{value:!0});vt.formatLimitDefinition=void 0;var kp=eo(),pe=b(),Me=pe.operators,Wr={formatMaximum:{okStr:"<=",ok:Me.LTE,fail:Me.GT},formatMinimum:{okStr:">=",ok:Me.GTE,fail:Me.LT},formatExclusiveMaximum:{okStr:"<",ok:Me.LT,fail:Me.GTE},formatExclusiveMinimum:{okStr:">",ok:Me.GT,fail:Me.LTE}},Rp={message:({keyword:t,schemaCode:e})=>pe.str`should be ${Wr[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>pe._`{comparison: ${Wr[t].okStr}, limit: ${e}}`};vt.formatLimitDefinition={keyword:Object.keys(Wr),type:"string",schemaType:"string",$data:!0,error:Rp,code(t){let{gen:e,data:r,schemaCode:n,keyword:s,it:o}=t,{opts:i,self:a}=o;if(!i.validateFormats)return;let c=new kp.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():d();function l(){let h=e.scopeValue("formats",{ref:a.formats,code:i.code.formats}),y=e.const("fmt",pe._`${h}[${c.schemaCode}]`);t.fail$data(pe.or(pe._`typeof ${y} != "object"`,pe._`${y} instanceof RegExp`,pe._`typeof ${y}.compare != "function"`,f(y)))}function d(){let h=c.schema,y=a.formats[h];if(!y||y===!0)return;if(typeof y!="object"||y instanceof RegExp||typeof y.compare!="function")throw new Error(`"${s}": format "${h}" does not define "compare" function`);let p=e.scopeValue("formats",{key:h,ref:y,code:i.code.formats?pe._`${i.code.formats}${pe.getProperty(h)}`:void 0});t.fail$data(f(p))}function f(h){return pe._`${h}.compare(${r}, ${n}) ${Wr[s].fail} 0`}},dependencies:["format"]};var jp=t=>(t.addKeyword(vt.formatLimitDefinition),t);vt.default=jp});var vc=g((rr,$c)=>{"use strict";u();Object.defineProperty(rr,"__esModule",{value:!0});var wt=mc(),qp=yc(),oo=b(),_c=new oo.Name("fullFormats"),Ap=new oo.Name("fastFormats"),io=(t,e={keywords:!0})=>{if(Array.isArray(e))return gc(t,e,wt.fullFormats,_c),t;let[r,n]=e.mode==="fast"?[wt.fastFormats,Ap]:[wt.fullFormats,_c],s=e.formats||wt.formatNames;return gc(t,s,r,n),e.keywords&&qp.default(t),t};io.get=(t,e="full")=>{let n=(e==="fast"?wt.fastFormats:wt.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function gc(t,e,r,n){var s,o;(s=(o=t.opts.code).formats)!==null&&s!==void 0||(o.formats=oo._`require("ajv-formats/dist/formats").${n}`);for(let i of e)t.addFormat(i,r[i])}$c.exports=rr=io;Object.defineProperty(rr,"__esModule",{value:!0});rr.default=io});u();u();var bt;(function(t){t.Local="local",t.Production="production"})(bt||(bt={}));function jc(t=process.env){return t[po.serviceEnv]==="local"?bt.Local:bt.Production}function sn(t=process.env){return jc(t)===bt.Local}u();u();import{isDeepStrictEqual as Dp}from"node:util";import wc from"node:process";import{Buffer as nr}from"node:buffer";import tt from"node:fs";import Ec from"node:path";import sr from"node:crypto";import Mp from"node:assert";import{EventEmitter as xp}from"node:events";u();var Ue=t=>{let e=typeof t;return t!==null&&(e==="object"||e==="function")},on=new Set(["__proto__","prototype","constructor"]),qc=new Set("0123456789");function lr(t){let e=[],r="",n="start",s=!1;for(let o of t)switch(o){case"\\":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=o),n="property",s=!s;break;case".":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=o;break}if(on.has(r))return[];e.push(r),r="",n="property";break;case"[":if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=o;break}if(n==="property"){if(on.has(r))return[];e.push(r),r=""}n="index";break;case"]":if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index");default:if(n==="index"&&!qc.has(o))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=o}switch(s&&(r+="\\"),n){case"property":{if(on.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}function an(t,e){if(typeof e!="number"&&Array.isArray(t)){let r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function $o(t,e){if(an(t,e))throw new Error("Cannot use string index")}function vo(t,e,r){if(!Ue(t)||typeof e!="string")return r===void 0?t:r;let n=lr(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){let o=n[s];if(an(t,o)?t=s===n.length-1?void 0:null:t=t[o],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}function cn(t,e,r){if(!Ue(t)||typeof e!="string")return t;let n=t,s=lr(e);for(let o=0;o<s.length;o++){let i=s[o];$o(t,i),o===s.length-1?t[i]=r:Ue(t[i])||(t[i]=typeof s[o+1]=="number"?[]:{}),t=t[i]}return n}function wo(t,e){if(!Ue(t)||typeof e!="string")return!1;let r=lr(e);for(let n=0;n<r.length;n++){let s=r[n];if($o(t,s),n===r.length-1)return delete t[s],!0;if(t=t[s],!Ue(t))return!1}}function Eo(t,e){if(!Ue(t)||typeof e!="string")return!1;let r=lr(e);if(r.length===0)return!1;for(let n of r){if(!Ue(t)||!(n in t)||an(t,n))return!1;t=t[n]}return!0}u();import Uc from"node:path";u();import j from"node:fs";import{promisify as G}from"node:util";u();u();var Ac=(t,e)=>{let{onError:r}=e;return function(...s){return t.apply(void 0,s).catch(r)}},ye=Ac;u();var Cc=(t,e)=>{let{onError:r}=e;return function(...s){try{return t.apply(void 0,s)}catch(o){return r(o)}}},ue=Cc;u();u();var Mc=(t,e)=>{let{isRetriable:r}=e;return function(s){let{timeout:o}=s,i=s.interval??250,a=Date.now()+o;return function c(...l){return t.apply(void 0,l).catch(d=>{if(!r(d)||Date.now()>=a)throw d;let f=Math.round(i*Math.random());return f>0?new Promise(y=>setTimeout(y,f)).then(()=>c.apply(void 0,l)):c.apply(void 0,l)})}}},_e=Mc;u();var xc=(t,e)=>{let{isRetriable:r}=e;return function(s){let{timeout:o}=s,i=Date.now()+o;return function(...c){for(;;)try{return t.apply(void 0,c)}catch(l){if(!r(l)||Date.now()>=i)throw l;continue}}}},ge=xc;u();import bo from"node:process";u();var Pt={isChangeErrorOk:t=>{if(!Pt.isNodeError(t))return!1;let{code:e}=t;return e==="ENOSYS"||!So&&(e==="EINVAL"||e==="EPERM")},isNodeError:t=>t instanceof Error,isRetriableError:t=>{if(!Pt.isNodeError(t))return!1;let{code:e}=t;return e==="EMFILE"||e==="ENFILE"||e==="EAGAIN"||e==="EBUSY"||e==="EACCESS"||e==="EACCES"||e==="EACCS"||e==="EPERM"},onChangeError:t=>{if(!Pt.isNodeError(t))throw t;if(!Pt.isChangeErrorOk(t))throw t}},un=Pt;var Nt={onError:un.onChangeError},X={onError:()=>{}},So=bo.getuid?!bo.getuid():!1,U={isRetriable:un.isRetriableError};var zc={attempt:{chmod:ye(G(j.chmod),Nt),chown:ye(G(j.chown),Nt),close:ye(G(j.close),X),fsync:ye(G(j.fsync),X),mkdir:ye(G(j.mkdir),X),realpath:ye(G(j.realpath),X),stat:ye(G(j.stat),X),unlink:ye(G(j.unlink),X),chmodSync:ue(j.chmodSync,Nt),chownSync:ue(j.chownSync,Nt),closeSync:ue(j.closeSync,X),existsSync:ue(j.existsSync,X),fsyncSync:ue(j.fsync,X),mkdirSync:ue(j.mkdirSync,X),realpathSync:ue(j.realpathSync,X),statSync:ue(j.statSync,X),unlinkSync:ue(j.unlinkSync,X)},retry:{close:_e(G(j.close),U),fsync:_e(G(j.fsync),U),open:_e(G(j.open),U),readFile:_e(G(j.readFile),U),rename:_e(G(j.rename),U),stat:_e(G(j.stat),U),write:_e(G(j.write),U),writeFile:_e(G(j.writeFile),U),closeSync:ge(j.closeSync,U),fsyncSync:ge(j.fsyncSync,U),openSync:ge(j.openSync,U),readFileSync:ge(j.readFileSync,U),renameSync:ge(j.renameSync,U),statSync:ge(j.statSync,U),writeSync:ge(j.writeSync,U),writeFileSync:ge(j.writeFileSync,U)}},V=zc;u();import Le from"node:process";var Po="utf8",ln=438,No=511;var Io={},Oo=Le.geteuid?Le.geteuid():-1,To=Le.getegid?Le.getegid():-1;var ko=1e3,Ro=!!Le.getuid,km=Le.getuid?!Le.getuid():!1,dn=128;u();var jo=t=>t instanceof Error&&"code"in t;var fn=t=>typeof t=="string",dr=t=>t===void 0;u();u();import Vc from"node:path";u();u();import nt from"node:process";u();import qo from"node:process";var Ao=qo.platform==="linux",fr=qo.platform==="win32";u();var hn=["SIGHUP","SIGINT","SIGTERM"];fr||hn.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");Ao&&hn.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Co=hn;var pn=class{constructor(){this.callbacks=new Set,this.exited=!1,this.exit=e=>{if(!this.exited){this.exited=!0;for(let r of this.callbacks)r();e&&(fr&&e!=="SIGINT"&&e!=="SIGTERM"&&e!=="SIGKILL"?nt.kill(nt.pid,"SIGTERM"):nt.kill(nt.pid,e))}},this.hook=()=>{nt.once("exit",()=>this.exit());for(let e of Co)try{nt.once(e,()=>this.exit(e))}catch{}},this.register=e=>(this.callbacks.add(e),()=>{this.callbacks.delete(e)}),this.hook()}},Do=new pn;var Fc=Do.register,Mo=Fc;var ne={store:{},create:t=>{let e=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),s=`.tmp-${Date.now().toString().slice(-10)}${e}`;return`${t}${s}`},get:(t,e,r=!0)=>{let n=ne.truncate(e(t));return n in ne.store?ne.get(t,e,r):(ne.store[n]=r,[n,()=>delete ne.store[n]])},purge:t=>{ne.store[t]&&(delete ne.store[t],V.attempt.unlink(t))},purgeSync:t=>{ne.store[t]&&(delete ne.store[t],V.attempt.unlinkSync(t))},purgeSyncAll:()=>{for(let t in ne.store)ne.purgeSync(t)},truncate:t=>{let e=Vc.basename(t);if(e.length<=dn)return t;let r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(e);if(!r)return t;let n=e.length-dn;return`${t.slice(0,-e.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};Mo(ne.purgeSyncAll);var It=ne;function mn(t,e,r=Io){if(fn(r))return mn(t,e,{encoding:r});let s={timeout:r.timeout??ko},o=null,i=null,a=null;try{let c=V.attempt.realpathSync(t),l=!!c;t=c||t,[i,o]=It.get(t,r.tmpCreate||It.create,r.tmpPurge!==!1);let d=Ro&&dr(r.chown),f=dr(r.mode);if(l&&(d||f)){let h=V.attempt.statSync(t);h&&(r={...r},d&&(r.chown={uid:h.uid,gid:h.gid}),f&&(r.mode=h.mode))}if(!l){let h=Uc.dirname(t);V.attempt.mkdirSync(h,{mode:No,recursive:!0})}a=V.retry.openSync(s)(i,"w",r.mode||ln),r.tmpCreated&&r.tmpCreated(i),fn(e)?V.retry.writeSync(s)(a,e,0,r.encoding||Po):dr(e)||V.retry.writeSync(s)(a,e,0,e.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?V.retry.fsyncSync(s)(a):V.attempt.fsync(a)),V.retry.closeSync(s)(a),a=null,r.chown&&(r.chown.uid!==Oo||r.chown.gid!==To)&&V.attempt.chownSync(i,r.chown.uid,r.chown.gid),r.mode&&r.mode!==ln&&V.attempt.chmodSync(i,r.mode);try{V.retry.renameSync(s)(i,t)}catch(h){if(!jo(h)||h.code!=="ENAMETOOLONG")throw h;V.retry.renameSync(s)(i,It.truncate(t))}o(),i=null}finally{a&&V.attempt.closeSync(a),i&&It.purge(i)}}var bc=Qr(eo(),1),Pc=Qr(vc(),1);u();var Cp=(t,e={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);let{wait:r=0,maxWait:n=Number.POSITIVE_INFINITY,before:s=!1,after:o=!0}=e;if(!s&&!o)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let i,a,c,l=function(...d){let f=this,h=()=>{i=void 0,a&&(clearTimeout(a),a=void 0),o&&(c=t.apply(f,d))},y=()=>{a=void 0,i&&(clearTimeout(i),i=void 0),o&&(c=t.apply(f,d))},p=s&&!i;return clearTimeout(i),i=setTimeout(h,r),n>0&&n!==Number.POSITIVE_INFINITY&&!a&&(a=setTimeout(y,n)),p&&(c=t.apply(f,d)),c};return yo(l,t),l.cancel=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearTimeout(a),a=void 0)},l},ao=Cp;var rt=Qr(Rc(),1),Jr=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},z=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},et,xe,ce,ze,zp=bc.default.default,Fp=Pc.default.default,Sc="aes-256-cbc",Et=()=>Object.create(null),Vp=t=>t!=null,Up=(t,e)=>{let r=new Set(["undefined","symbol","function"]),n=typeof e;if(r.has(n))throw new TypeError(`Setting a value of type \`${n}\` for key \`${t}\` is not allowed as it's not supported by JSON`)},Yr="__internal__",co=`${Yr}.migrations.version`,or=class{constructor(e={}){Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),et.set(this,void 0),xe.set(this,void 0),ce.set(this,void 0),ze.set(this,{}),Object.defineProperty(this,"_deserialize",{enumerable:!0,configurable:!0,writable:!0,value:i=>JSON.parse(i)}),Object.defineProperty(this,"_serialize",{enumerable:!0,configurable:!0,writable:!0,value:i=>JSON.stringify(i,void 0," ")});let r={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...e};if(!r.cwd){if(!r.projectName)throw new Error("Please specify the `projectName` option.");r.cwd=cr(r.projectName,{suffix:r.projectSuffix}).config}if(Jr(this,ce,r,"f"),r.schema){if(typeof r.schema!="object")throw new TypeError("The `schema` option must be an object.");let i=new zp({allErrors:!0,useDefaults:!0});Fp(i);let a={type:"object",properties:r.schema};Jr(this,et,i.compile(a),"f");for(let[c,l]of Object.entries(r.schema))l?.default&&(z(this,ze,"f")[c]=l.default)}r.defaults&&Jr(this,ze,{...z(this,ze,"f"),...r.defaults},"f"),r.serialize&&(this._serialize=r.serialize),r.deserialize&&(this._deserialize=r.deserialize),this.events=new xp,Jr(this,xe,r.encryptionKey,"f");let n=r.fileExtension?`.${r.fileExtension}`:"";this.path=Ec.resolve(r.cwd,`${r.configName??"config"}${n}`);let s=this.store,o=Object.assign(Et(),r.defaults,s);this._validate(o);try{Mp.deepEqual(s,o)}catch{this.store=o}if(r.watch&&this._watch(),r.migrations){if(!r.projectVersion)throw new Error("Please specify the `projectVersion` option.");this._migrate(r.migrations,r.projectVersion,r.beforeEachMigration)}}get(e,r){if(z(this,ce,"f").accessPropertiesByDotNotation)return this._get(e,r);let{store:n}=this;return e in n?n[e]:r}set(e,r){if(typeof e!="string"&&typeof e!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof e}`);if(typeof e!="object"&&r===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(e))throw new TypeError(`Please don't use the ${Yr} key, as it's used to manage this module internal operations.`);let{store:n}=this,s=(o,i)=>{Up(o,i),z(this,ce,"f").accessPropertiesByDotNotation?cn(n,o,i):n[o]=i};if(typeof e=="object"){let o=e;for(let[i,a]of Object.entries(o))s(i,a)}else s(e,r);this.store=n}has(e){return z(this,ce,"f").accessPropertiesByDotNotation?Eo(this.store,e):e in this.store}reset(...e){for(let r of e)Vp(z(this,ze,"f")[r])&&this.set(r,z(this,ze,"f")[r])}delete(e){let{store:r}=this;z(this,ce,"f").accessPropertiesByDotNotation?wo(r,e):delete r[e],this.store=r}clear(){this.store=Et();for(let e of Object.keys(z(this,ze,"f")))this.reset(e)}onDidChange(e,r){if(typeof e!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof e}`);if(typeof r!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof r}`);return this._handleChange(()=>this.get(e),r)}onDidAnyChange(e){if(typeof e!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof e}`);return this._handleChange(()=>this.store,e)}get size(){return Object.keys(this.store).length}get store(){try{let e=tt.readFileSync(this.path,z(this,xe,"f")?null:"utf8"),r=this._encryptData(e),n=this._deserialize(r);return this._validate(n),Object.assign(Et(),n)}catch(e){if(e?.code==="ENOENT")return this._ensureDirectory(),Et();if(z(this,ce,"f").clearInvalidConfig&&e.name==="SyntaxError")return Et();throw e}}set store(e){this._ensureDirectory(),this._validate(e),this._write(e),this.events.emit("change")}*[(et=new WeakMap,xe=new WeakMap,ce=new WeakMap,ze=new WeakMap,Symbol.iterator)](){for(let[e,r]of Object.entries(this.store))yield[e,r]}_encryptData(e){if(!z(this,xe,"f"))return e.toString();try{let r=e.slice(0,16),n=sr.pbkdf2Sync(z(this,xe,"f"),r.toString(),1e4,32,"sha512"),s=sr.createDecipheriv(Sc,n,r);return nr.concat([s.update(nr.from(e.slice(17))),s.final()]).toString("utf8")}catch{}return e.toString()}_handleChange(e,r){let n=e(),s=()=>{let o=n,i=e();Dp(i,o)||(n=i,r.call(this,i,o))};return this.events.on("change",s),()=>this.events.removeListener("change",s)}_validate(e){if(!z(this,et,"f")||z(this,et,"f").call(this,e)||!z(this,et,"f").errors)return;let n=z(this,et,"f").errors.map(({instancePath:s,message:o=""})=>`\`${s.slice(1)}\` ${o}`);throw new Error("Config schema violation: "+n.join("; "))}_ensureDirectory(){tt.mkdirSync(Ec.dirname(this.path),{recursive:!0})}_write(e){let r=this._serialize(e);if(z(this,xe,"f")){let n=sr.randomBytes(16),s=sr.pbkdf2Sync(z(this,xe,"f"),n.toString(),1e4,32,"sha512"),o=sr.createCipheriv(Sc,s,n);r=nr.concat([n,nr.from(":"),o.update(nr.from(r)),o.final()])}if(wc.env.SNAP)tt.writeFileSync(this.path,r,{mode:z(this,ce,"f").configFileMode});else try{mn(this.path,r,{mode:z(this,ce,"f").configFileMode})}catch(n){if(n?.code==="EXDEV"){tt.writeFileSync(this.path,r,{mode:z(this,ce,"f").configFileMode});return}throw n}}_watch(){this._ensureDirectory(),tt.existsSync(this.path)||this._write(Et()),wc.platform==="win32"?tt.watch(this.path,{persistent:!1},ao(()=>{this.events.emit("change")},{wait:100})):tt.watchFile(this.path,{persistent:!1},ao(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(e,r,n){let s=this._get(co,"0.0.0"),o=Object.keys(e).filter(a=>this._shouldPerformMigration(a,s,r)),i={...this.store};for(let a of o)try{n&&n(this,{fromVersion:s,toVersion:a,finalVersion:r,versions:o});let c=e[a];c?.(this),this._set(co,a),s=a,i={...this.store}}catch(c){throw this.store=i,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${c}`)}(this._isVersionInRangeFormat(s)||!rt.default.eq(s,r))&&this._set(co,r)}_containsReservedKey(e){return typeof e=="object"&&Object.keys(e)[0]===Yr?!0:typeof e!="string"?!1:z(this,ce,"f").accessPropertiesByDotNotation?!!e.startsWith(`${Yr}.`):!1}_isVersionInRangeFormat(e){return rt.default.clean(e)===null}_shouldPerformMigration(e,r,n){return this._isVersionInRangeFormat(e)?r!=="0.0.0"&&rt.default.satisfies(r,e)?!1:rt.default.satisfies(n,e):!(rt.default.lte(e,r)||rt.default.gt(e,n))}_get(e,r){return vo(this.store,e,r)}_set(e,r){let{store:n}=this;cn(n,e,r),this.store=n}};function Nc(t){if(!(t instanceof Error))return!1;let e=t.code;return e==="EACCES"||e==="EPERM"}function Lp(t,e){if(typeof e.path=="string")return e.syscall==="mkdir"?ar(e.path,"config.json"):ar(e.path);let r=t.cwd??(t.projectName?cr(t.projectName,{suffix:"nodejs"}).config:void 0);return r?ar(r,"config.json"):void 0}function Kp(t){let e=t.replace(/^\uFEFF/,"");return JSON.parse(e)}var ir=class{config;constructor(e){try{this.config=new or({...e,clearInvalidConfig:!0,deserialize:Kp})}catch(r){if(!Nc(r))throw r;let n=Lp(e,r);throw n&&this.handleError(r,"initialize",n),new nn(`Failed to access local storage (initialize): ${r}`)}}get(e){try{return this.config.get(e)}catch(r){this.handleError(r,"get")}}set(e,r){try{this.config.set(e,r)}catch(n){this.handleError(n,"set")}}delete(e){try{this.config.delete(e)}catch(r){this.handleError(r,"delete")}}clear(){try{this.config.clear()}catch(e){this.handleError(e,"clear")}}handleError(e,r,n=this.config.path){throw Nc(e)||this.isPermissionError(n)?new nn(`Failed to access local storage (${r}): ${e}`,this.tryMessage(n)):new _o(`Unexpected error while accessing local storage at ${n} (${r}): ${e}`)}isPermissionError(e){let r=tn(e),n=tn(en(e)),s=ur(e);return!r||!n||s===!1}tryMessage(e){let r=en(e),n=rn(r),s=n?e:mo(".",{cwd:r,type:"directory"})??r,o=rn(e)?ur(e):void 0,a=ur(n?r:s),c=["Check that you have write permissions for",{filePath:s}];return(o===!1||a===!1)&&c.push("- The file is owned by a different user. This typically happens when Shopify CLI was previously run with elevated permissions (e.g., sudo)."),n&&(c.push(`
|
|
9
9
|
|
|
10
|
-
To resolve this, remove the Shopify CLI preferences folder:`),
|
|
10
|
+
To resolve this, remove the Shopify CLI preferences folder:`),c.push({filePath:r})),c}};var Ic;function re(){return Ic??=new ir({projectName:`shopify-cli-kit${go()?"-test":""}`}),Ic}function uo(){return sn()?"devSessionStore":"sessionStore"}function lo(){return sn()?"currentDevSessionId":"currentSessionId"}function vg(t=re()){return Ve(Fe`Getting session store...`),t.get(uo())}function wg(t,e=re()){Ve(Fe`Setting session store...`),e.set(uo(),t)}function Eg(t=re()){Ve(Fe`Removing session store...`),t.delete(uo())}function Sg(t=re()){return Ve(Fe`Getting current session ID...`),t.get(lo())}function bg(t,e=re()){Ve(Fe`Setting current session ID...`),e.set(lo(),t)}function Pg(t=re()){Ve(Fe`Removing current session ID...`),t.delete(lo())}async function Ng(t,e,r,n=re()){let s=Hp(t,n);if(s?.value!==void 0&&(r===void 0||Date.now()-s.timestamp<r))return s.value;let o=await e();return Gp(t,o,n),o}function Gp(t,e,r=re()){let n=r.get("cache")??{};n[t]={value:e,timestamp:Date.now()},r.set("cache",n)}function Hp(t,e=re()){return(e.get("cache")??{})[t]}function Ig(t=re()){t.delete("cache")}function Oc({days:t=0,hours:e=0,minutes:r=0,seconds:n=0}){return(t*24*60*60+e*60*60+r*60+n)*1e3}async function Og(t,e,r,n=re()){let s=n.get("cache")??{},o=`most-recent-occurrence-${t}`,i=s[o];return i?.value!==void 0&&Date.now()-i.timestamp<Oc(e)?!1:(await r(),s[o]={value:!0,timestamp:Date.now()},n.set("cache",s),!0)}async function Tg(t,e=re()){let{key:r,limit:n,timeout:s,task:o}=t,i=e.get("cache")??{},a=`rate-limited-occurrences-${r}`,c=i[a],l=Date.now();if(c?.value){let d=l-Oc(s),f=c.value.filter(h=>h>=d);if(f.length>=n)return i[a]={value:f,timestamp:Date.now()},e.set("cache",i),!1;await o(),i[a]={value:[...f,l],timestamp:l}}else await o(),i[a]={value:[l],timestamp:l};return e.set("cache",i),!0}function kg(t=re()){return t.get("autoUpgradeEnabled")??!0}function Rg(t,e=re()){e.set("autoUpgradeEnabled",t)}function Tc(){return new ir({projectName:"shopify-cli-kit-partner-status"})}function jg(t){return t&&Tc().get(t)?!0:null}function qg(t){Tc().set(t,{status:!0,checkedAt:new Date().toISOString()})}export{bt as a,jc as b,sn as c,eo as d,ir as e,vg as f,wg as g,Eg as h,Sg as i,bg as j,Pg as k,Ng as l,Gp as m,Hp as n,Ig as o,Oc as p,Og as q,Tg as r,kg as s,Rg as t,Tc as u,jg as v,qg as w};
|